Here is a macro that gets data from a server ( specifically mSupply server www.msupply.org.nz ) using Rest API. It could work with other servers that require authentication on URL header.
This document discusses connecting to different database systems like MySQL, Oracle, PostgreSQL, and SQLite using DataObjects and retrieving data using commands. It demonstrates how to execute queries, retrieve result sets and field values, and handle data typecasting between the database and Ruby types. It also mentions implementing specs to test the database adapters according to standard specifications and supporting the BigDecimal type.
This document contains code for a Visual Basic .NET application that connects to a SQL database. It includes code to query the database based on an inputted ID number, display the results, and enable editing of fields to allow adding a new record to the database. The code opens a SQL connection, executes a stored procedure to search the database based on an ID, loads the results into text boxes, and includes a method to enable editing of the fields in preparation for inserting a new record.
Testando API's de forma unitária mocando as dependênciasMarcelo Aymone
Slides da talk na trilha de golang no TDC 2018.
Testando API's de forma unitária mocando as dependências aborda técnicas de mocks para testes unitários em golang.
The document opens an Excel workbook and worksheet to retrieve login credentials. It then launches a browser to the Gmail login page, inputs the credentials from the Excel cells into the login fields, and attempts to log in. The script checks if the inbox page is displayed within 5 seconds to determine if login was successful or unsuccessful, and writes the result back to the Excel worksheet. It repeats this process to test multiple login credential rows from the worksheet.
The document describes how to connect to a Microsoft Access database using data readers in Visual Studio .NET. It involves the following steps:
1. Create an Employee database in MS Access with a table containing employee fields.
2. Open Visual Studio .NET and add a connection to the Access database file.
3. Write code to perform CRUD (create, read, update, delete) operations on the employee table using OleDbConnection, OleDbCommand and OleDbDataReader objects.
The document discusses creating and inserting nodes in HTML DOM using JavaScript. It describes how to create comment, element and text nodes using createComment(), createElement(), and createTextNode() respectively. It also explains how to create attributes using createAttribute(). Finally, it provides examples of inserting new elements into the document using insertBefore() and appendChild(), demonstrating how to insert a new paragraph before an existing <div> element.
The document contains 7 code samples from different programming domains:
1. Data modeling and user interface design
2. SQL stored procedure
3. C# regular expressions
4. C# error logging to file
5. C#/ADO.NET method to retrieve a library member
6. XML web configuration file
7. ASP.NET web form with controls and validation
The samples provide snippets of code related to various programming tasks like data access, validation, error handling, and user interfaces.
The Mediator pattern promotes loose coupling by defining an object that encapsulates interactions between other objects. It defines an intermediary object that manages interactions between peers to decouple them. The Mediator pattern identifies classes that would benefit from decoupling, encapsulates their interactions in a mediator class, and has peer objects interact only with the mediator rather than each other directly.
This document discusses connecting to different database systems like MySQL, Oracle, PostgreSQL, and SQLite using DataObjects and retrieving data using commands. It demonstrates how to execute queries, retrieve result sets and field values, and handle data typecasting between the database and Ruby types. It also mentions implementing specs to test the database adapters according to standard specifications and supporting the BigDecimal type.
This document contains code for a Visual Basic .NET application that connects to a SQL database. It includes code to query the database based on an inputted ID number, display the results, and enable editing of fields to allow adding a new record to the database. The code opens a SQL connection, executes a stored procedure to search the database based on an ID, loads the results into text boxes, and includes a method to enable editing of the fields in preparation for inserting a new record.
Testando API's de forma unitária mocando as dependênciasMarcelo Aymone
Slides da talk na trilha de golang no TDC 2018.
Testando API's de forma unitária mocando as dependências aborda técnicas de mocks para testes unitários em golang.
The document opens an Excel workbook and worksheet to retrieve login credentials. It then launches a browser to the Gmail login page, inputs the credentials from the Excel cells into the login fields, and attempts to log in. The script checks if the inbox page is displayed within 5 seconds to determine if login was successful or unsuccessful, and writes the result back to the Excel worksheet. It repeats this process to test multiple login credential rows from the worksheet.
The document describes how to connect to a Microsoft Access database using data readers in Visual Studio .NET. It involves the following steps:
1. Create an Employee database in MS Access with a table containing employee fields.
2. Open Visual Studio .NET and add a connection to the Access database file.
3. Write code to perform CRUD (create, read, update, delete) operations on the employee table using OleDbConnection, OleDbCommand and OleDbDataReader objects.
The document discusses creating and inserting nodes in HTML DOM using JavaScript. It describes how to create comment, element and text nodes using createComment(), createElement(), and createTextNode() respectively. It also explains how to create attributes using createAttribute(). Finally, it provides examples of inserting new elements into the document using insertBefore() and appendChild(), demonstrating how to insert a new paragraph before an existing <div> element.
The document contains 7 code samples from different programming domains:
1. Data modeling and user interface design
2. SQL stored procedure
3. C# regular expressions
4. C# error logging to file
5. C#/ADO.NET method to retrieve a library member
6. XML web configuration file
7. ASP.NET web form with controls and validation
The samples provide snippets of code related to various programming tasks like data access, validation, error handling, and user interfaces.
The Mediator pattern promotes loose coupling by defining an object that encapsulates interactions between other objects. It defines an intermediary object that manages interactions between peers to decouple them. The Mediator pattern identifies classes that would benefit from decoupling, encapsulates their interactions in a mediator class, and has peer objects interact only with the mediator rather than each other directly.
PyMongo is a Python driver for working with MongoDB and allows developers to connect to MongoDB from Python, interface with MongoDB databases and collections, and perform common operations like inserting, finding, updating, and deleting documents. It maps common SQL concepts like databases, tables, and rows to MongoDB concepts like databases, collections, and BSON documents. The document provides examples of basic PyMongo operations for connecting to a MongoDB server, getting and working with databases and collections, and performing CRUD operations on documents.
Performance improvement strategies in Redux. Use memoized selectors to avoid redundant derivations in your mapStateToProps. Divide and flatten your reducers to prevent unnecessary re-renders of components.
This document contains Visual Basic .NET code that is attempting to connect to an Access database file (.accdb) using the Microsoft ACE OLEDB 12.0 provider to perform basic CRUD (create, read, update, delete) operations. It is getting the "Microsoft.ACE.OLEDB.12.0 provider is not registered" error, which means the necessary data provider is not installed on the local machine to connect to Access databases.
The document provides examples of QuickTest Professional (QTP) scripts for connecting to a Microsoft Access database, using data from an Excel spreadsheet for data-driven testing, creating a folder in Windows, setting a timeout for a message box, and logging into and out of the Yahoo mail login page. It also includes links to the author's blog for more QTP script examples and information on using descriptive programming for automation tasks.
The BootStrap.groovy file is used to simulate example data in a Grails application. When the application starts, it will automatically execute the BootStrap class to create sample User and Role domain objects and associate them for testing purposes. It also configures email settings to send notifications when the application starts or shuts down.
A constructor is a special member function that is called whenever an object of its class is created. It initializes the objects of its class. The constructor has the same name as the class and is automatically called when an object is instantiated. Constructors can be default (taking no parameters) or parameterized (taking parameters). Constructors initialize the data members of objects and can allocate memory dynamically. Copy constructors are used to initialize one object using another object of the same class.
This document provides a summary of MongoDB and Mongoose 101 presented at a Phoenix MongoDB Meetup. It introduces the presenter and his background. It then provides a high-level overview of MongoDB and compares SQL and MongoDB terminology. The remainder of the document demonstrates basic CRUD operations in MongoDB using the Mongo shell and introduces Mongoose, an ORM for MongoDB, demonstrating how to define schemas and models and perform queries and validations. It also discusses subdocuments and population features in Mongoose.
This document discusses how to work with multiple tables in a relational database using a DataSet in Visual Basic. It covers setting up data adapters and command builders to fill the DataSet with data from different tables, displaying and editing data, adding and deleting rows, and establishing relationships between tables to link related data.
The Ring programming language version 1.3 book - Part 10 of 88Mahmoud Samir Fayed
This document section discusses variables in Ring programming language. It notes that Ring uses dynamic typing where variables can hold values of different types. The same variable name can be used to hold a string, number, list, or other type by simply assigning it a new value. Deep copying of values and complex objects can be done using the assignment operator, which fully duplicates the data rather than just creating a reference. Examples are provided to illustrate dynamic typing in action by changing the type of a variable through assignment.
Εδώ χρησιμοποιούμε τη γλώσσα προγραμματισμού VBA για να διαβάσουμε τα περιεχόμενα βάσης δεδομένων. Μέσω της Visual basic for Applicartions διαβάζουμε εγγραφές της Microsoft Access
This document discusses ADO.Net and how it can be used to access and manipulate database data in ASP.Net applications. It explains that ADO.Net provides a standardized way to connect to databases and perform common data operations. The key components of ADO.Net - such as Connection, Command, and DataReader - are introduced. Examples are also provided showing how to execute SQL queries to retrieve and display data from a database.
Yes, this is very wide problem: you expect something, but reality is a bit different.
You expect that query will run 1 sec, but it runs (Oh, my God!) 1 hour. You expect that your query will perform index seek, but it performs index scan instead. You expect your query doesn't use locks, but it uses them.
So this session will be focused on understanding the internals of such situations and making our expectations more close to reality.
This document discusses how to connect to different database types from QTP scripts using ADO (ActiveX Data Objects). It provides code samples for connecting to MS Access, SQL Server, Oracle, MySQL, Excel, and Sybase databases. The code samples show how to open an ADO connection and recordset, retrieve field values from the recordset, and populate them into application window controls before closing the connection. Connecting to databases allows test scripts to work with real data during automation testing.
This document provides an overview of Mongoose and how to get started using it with MongoDB. It explains how to connect to a MongoDB database, define a schema for documents, compile a model, create and save documents to the database, add methods to documents, and query the database. Key aspects covered include defining schemas with fields and validators, creating document instances from models, saving documents, adding methods to schemas to expose functionality on documents, and querying for all documents in a collection.
How to build microservices with node.jsKaty Slemon
In this guide, we’ll learn how to build Microservices with Node.js, i.e., a node app using microservices architecture. You can clone the github repo provided
Building multi lingual and empatic bots - Sander van den Hoven - Codemotion A...Codemotion
We are entering an era where interactions with computers will drastically change. Standard I/O will be replaced by solutions that interact with natural language either spoken or written. The signs of this change are the numerous bots that appear everywhere. The most popular are chatbots. This session focusses on bots, to access them with any client and to create meaningful dialogs respecting the language and emotion of the user.
AWS Atlanta meetup CloudFormation conditionals Adam Book
These are the slides from the December 19, 2018 AWS Atlanta Meetup Group. The topic was cloudformation conditionals and using them in your cloud formation templates (both JSON and YAML) to enhance your templates to make them more powerful.
This document discusses various object-oriented programming concepts in .NET including:
- Method overloading using a class with multiple methods that differ by parameters
- Inheritance with a base class inherited by a derived class
- MustInherit abstract classes that can only be inherited not instantiated
- Multiple inheritance using interfaces
- Constructors and destructors to initialize and cleanup class objects
The document discusses JSON hijacking methods and countermeasures. JSON hijacking involves exploiting vulnerabilities in JSON responses to steal sensitive user data from authenticated requests. It works by getting a user to visit a malicious site that executes scripts targeting JSON services the user is logged into. The script uses object prototype setters to hijack sensitive data from the JSON response. Countermeasures include using non-array JSON formats, POST requests only for JSON, and adding unpredictable parameters to requests.
Mongoose is an object data modeling (ODM) library for MongoDB and Node.js which allows for defining schemas and models. It provides features like validation, middleware, population (joins), and document operation methods. With Mongoose, schemas can be defined to specify the structure and types of data, and models can then be created to interact with MongoDB documents according to those schemas.
please code in c#- please note that im a complete beginner- northwind.docxAustinaGRPaigey
please code in c#.
please note that im a complete beginner.
northwind.mdf.
northwind_log.ldf
OrderDetailsMaintenance.zip
1. Include the two above files in the root of your OrderDetailsMaintenance project.
2. Make sure to mark them as "Content" and "Copy Always" or "Copy if newer" in the properties window of those two files.
3. Run the Scaffold-DbContext command to create a context class as well as a class to encapsulate the Orders objects from the associated table in the mdf file. Make sure to include the parameters for -Tables Customers (only worry about the attributes associated with the text boxes, you don't need to worry about any other rows from the table)
4. Once you have ran the command, include an app.config file and add a connection string element. Make sure to copy the connection string from your Context class to your app.config. Then edit your context to grab the connection string from the app.config (ConfigurationManager.ConnectionString["Northwind"].ConnectionString)
5. Code the Find button to Find the customer id and populate the details in the below text boxes.
1. If no order is found, display a message box.
6. Code the exit button
7. Code the Save button to update its attributes and call Update and SaveChanges() on that particular entity.
1. Note: If you close the program, reopen it, and search for the entity you recently updated. You may not see the changes depending on how you setup the mdf file in your project (because it copies a new version to the bin directory each time you run the program). So, if you don't see your changes, don't be alarmed.
============
HERE IS WHAT I HAVE SO FAR
frmCustomerMaintenance.cs
namespace OrderDetailsMaintenance
{
public partial class frmCustomerMaintenance : Form
{
public frmCustomerMaintenance()
{
InitializeComponent();
}
}
}
frmCustomerMaintenance.resx
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name".
PyMongo is a Python driver for working with MongoDB and allows developers to connect to MongoDB from Python, interface with MongoDB databases and collections, and perform common operations like inserting, finding, updating, and deleting documents. It maps common SQL concepts like databases, tables, and rows to MongoDB concepts like databases, collections, and BSON documents. The document provides examples of basic PyMongo operations for connecting to a MongoDB server, getting and working with databases and collections, and performing CRUD operations on documents.
Performance improvement strategies in Redux. Use memoized selectors to avoid redundant derivations in your mapStateToProps. Divide and flatten your reducers to prevent unnecessary re-renders of components.
This document contains Visual Basic .NET code that is attempting to connect to an Access database file (.accdb) using the Microsoft ACE OLEDB 12.0 provider to perform basic CRUD (create, read, update, delete) operations. It is getting the "Microsoft.ACE.OLEDB.12.0 provider is not registered" error, which means the necessary data provider is not installed on the local machine to connect to Access databases.
The document provides examples of QuickTest Professional (QTP) scripts for connecting to a Microsoft Access database, using data from an Excel spreadsheet for data-driven testing, creating a folder in Windows, setting a timeout for a message box, and logging into and out of the Yahoo mail login page. It also includes links to the author's blog for more QTP script examples and information on using descriptive programming for automation tasks.
The BootStrap.groovy file is used to simulate example data in a Grails application. When the application starts, it will automatically execute the BootStrap class to create sample User and Role domain objects and associate them for testing purposes. It also configures email settings to send notifications when the application starts or shuts down.
A constructor is a special member function that is called whenever an object of its class is created. It initializes the objects of its class. The constructor has the same name as the class and is automatically called when an object is instantiated. Constructors can be default (taking no parameters) or parameterized (taking parameters). Constructors initialize the data members of objects and can allocate memory dynamically. Copy constructors are used to initialize one object using another object of the same class.
This document provides a summary of MongoDB and Mongoose 101 presented at a Phoenix MongoDB Meetup. It introduces the presenter and his background. It then provides a high-level overview of MongoDB and compares SQL and MongoDB terminology. The remainder of the document demonstrates basic CRUD operations in MongoDB using the Mongo shell and introduces Mongoose, an ORM for MongoDB, demonstrating how to define schemas and models and perform queries and validations. It also discusses subdocuments and population features in Mongoose.
This document discusses how to work with multiple tables in a relational database using a DataSet in Visual Basic. It covers setting up data adapters and command builders to fill the DataSet with data from different tables, displaying and editing data, adding and deleting rows, and establishing relationships between tables to link related data.
The Ring programming language version 1.3 book - Part 10 of 88Mahmoud Samir Fayed
This document section discusses variables in Ring programming language. It notes that Ring uses dynamic typing where variables can hold values of different types. The same variable name can be used to hold a string, number, list, or other type by simply assigning it a new value. Deep copying of values and complex objects can be done using the assignment operator, which fully duplicates the data rather than just creating a reference. Examples are provided to illustrate dynamic typing in action by changing the type of a variable through assignment.
Εδώ χρησιμοποιούμε τη γλώσσα προγραμματισμού VBA για να διαβάσουμε τα περιεχόμενα βάσης δεδομένων. Μέσω της Visual basic for Applicartions διαβάζουμε εγγραφές της Microsoft Access
This document discusses ADO.Net and how it can be used to access and manipulate database data in ASP.Net applications. It explains that ADO.Net provides a standardized way to connect to databases and perform common data operations. The key components of ADO.Net - such as Connection, Command, and DataReader - are introduced. Examples are also provided showing how to execute SQL queries to retrieve and display data from a database.
Yes, this is very wide problem: you expect something, but reality is a bit different.
You expect that query will run 1 sec, but it runs (Oh, my God!) 1 hour. You expect that your query will perform index seek, but it performs index scan instead. You expect your query doesn't use locks, but it uses them.
So this session will be focused on understanding the internals of such situations and making our expectations more close to reality.
This document discusses how to connect to different database types from QTP scripts using ADO (ActiveX Data Objects). It provides code samples for connecting to MS Access, SQL Server, Oracle, MySQL, Excel, and Sybase databases. The code samples show how to open an ADO connection and recordset, retrieve field values from the recordset, and populate them into application window controls before closing the connection. Connecting to databases allows test scripts to work with real data during automation testing.
This document provides an overview of Mongoose and how to get started using it with MongoDB. It explains how to connect to a MongoDB database, define a schema for documents, compile a model, create and save documents to the database, add methods to documents, and query the database. Key aspects covered include defining schemas with fields and validators, creating document instances from models, saving documents, adding methods to schemas to expose functionality on documents, and querying for all documents in a collection.
How to build microservices with node.jsKaty Slemon
In this guide, we’ll learn how to build Microservices with Node.js, i.e., a node app using microservices architecture. You can clone the github repo provided
Building multi lingual and empatic bots - Sander van den Hoven - Codemotion A...Codemotion
We are entering an era where interactions with computers will drastically change. Standard I/O will be replaced by solutions that interact with natural language either spoken or written. The signs of this change are the numerous bots that appear everywhere. The most popular are chatbots. This session focusses on bots, to access them with any client and to create meaningful dialogs respecting the language and emotion of the user.
AWS Atlanta meetup CloudFormation conditionals Adam Book
These are the slides from the December 19, 2018 AWS Atlanta Meetup Group. The topic was cloudformation conditionals and using them in your cloud formation templates (both JSON and YAML) to enhance your templates to make them more powerful.
This document discusses various object-oriented programming concepts in .NET including:
- Method overloading using a class with multiple methods that differ by parameters
- Inheritance with a base class inherited by a derived class
- MustInherit abstract classes that can only be inherited not instantiated
- Multiple inheritance using interfaces
- Constructors and destructors to initialize and cleanup class objects
The document discusses JSON hijacking methods and countermeasures. JSON hijacking involves exploiting vulnerabilities in JSON responses to steal sensitive user data from authenticated requests. It works by getting a user to visit a malicious site that executes scripts targeting JSON services the user is logged into. The script uses object prototype setters to hijack sensitive data from the JSON response. Countermeasures include using non-array JSON formats, POST requests only for JSON, and adding unpredictable parameters to requests.
Mongoose is an object data modeling (ODM) library for MongoDB and Node.js which allows for defining schemas and models. It provides features like validation, middleware, population (joins), and document operation methods. With Mongoose, schemas can be defined to specify the structure and types of data, and models can then be created to interact with MongoDB documents according to those schemas.
please code in c#- please note that im a complete beginner- northwind.docxAustinaGRPaigey
please code in c#.
please note that im a complete beginner.
northwind.mdf.
northwind_log.ldf
OrderDetailsMaintenance.zip
1. Include the two above files in the root of your OrderDetailsMaintenance project.
2. Make sure to mark them as "Content" and "Copy Always" or "Copy if newer" in the properties window of those two files.
3. Run the Scaffold-DbContext command to create a context class as well as a class to encapsulate the Orders objects from the associated table in the mdf file. Make sure to include the parameters for -Tables Customers (only worry about the attributes associated with the text boxes, you don't need to worry about any other rows from the table)
4. Once you have ran the command, include an app.config file and add a connection string element. Make sure to copy the connection string from your Context class to your app.config. Then edit your context to grab the connection string from the app.config (ConfigurationManager.ConnectionString["Northwind"].ConnectionString)
5. Code the Find button to Find the customer id and populate the details in the below text boxes.
1. If no order is found, display a message box.
6. Code the exit button
7. Code the Save button to update its attributes and call Update and SaveChanges() on that particular entity.
1. Note: If you close the program, reopen it, and search for the entity you recently updated. You may not see the changes depending on how you setup the mdf file in your project (because it copies a new version to the bin directory each time you run the program). So, if you don't see your changes, don't be alarmed.
============
HERE IS WHAT I HAVE SO FAR
frmCustomerMaintenance.cs
namespace OrderDetailsMaintenance
{
public partial class frmCustomerMaintenance : Form
{
public frmCustomerMaintenance()
{
InitializeComponent();
}
}
}
frmCustomerMaintenance.resx
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name".
This document provides information about JSON (JavaScript Object Notation) including:
1. What JSON is and how it is used to structure and exchange data between web applications.
2. The syntax rules of JSON including how data is separated into name/value pairs within curly braces and square brackets.
3. Examples of JSON syntax including objects, arrays, and accessing JSON data using dot notation.
4. How JSON differs from JavaScript objects and how to convert between the two formats using JSON.parse() and JSON.stringify() methods.
Python Code Camp (Professionals) is a whole day workshop that aims to enable professionals to learn Python Basics and Django.
Visit: http://devcon.ph/events/python-code-camp-professionals-2016
Interface Python with MySQL connectivity.pptxBEENAHASSINA1
The document discusses connecting a Python application to a MySQL database. It provides steps to install the mysql.connector package to bridge the connection between Python and MySQL. It explains how to open a connection, create a cursor, execute queries to retrieve and manipulate data, and extract results. Methods shown include using cursors to fetch data row by row, parameterized queries using placeholders, and performing INSERT, UPDATE and DELETE operations with commit.
1. The document discusses pointers in C++. It explains that pointers store the address of a variable in memory rather than the variable's value.
2. Examples are provided to demonstrate declaring and accessing pointers, including dereferencing pointers using asterisks to modify the value of the variable being pointed to.
3. Structures are introduced as a way to create custom data types that can group together different data types as members, like combining name, ID, and grade data for a student record.
Descriptive programming allows testers to directly enter object information into test scripts without using an object repository. There are two main types: static programming, where object information is directly provided in the script using properties and values, and dynamic programming, where description objects are created and used in the script. Descriptive programming is useful when objects are dynamic, the object repository is large, the application is not ready for recording, or modifications are needed but the repository is read-only. It offers benefits like faster execution, portability, easier maintenance, and the ability to start testing without the full application.
Google apps script database abstraction exposed versionBruce McPherson
This document describes a database abstraction library for Google Apps Script that provides a consistent API for NoSQL databases. It allows code to be reused across different database backends by handling queries, authentication, caching, and more transparently. The library exposes the capabilities through a JSON REST API that can be accessed from other programming languages. It also includes a VBA client library that translates VBA calls into requests to the JSON API, allowing VBA code to access databases in the same way as Google Apps Script.
This document discusses using Python to interact with SQLite databases. It provides examples of how to connect to an SQLite database, create tables, insert/update/delete records, and query the database. Key points covered include using the sqlite3 module to connect to a database, getting a cursor object to execute SQL statements, and various cursor methods like execute(), executemany(), fetchone(), fetchall(), commit(), and close(). Example code is given for common SQLite operations like creating a table, inserting records, updating records, deleting records, and selecting records.
The document provides an overview of building a REST API with Node.js and Express. It discusses setting up a MongoDB database using Mongoose as an ODM. It describes defining schemas and models, and using models to perform CRUD operations. It also covers creating routes and controllers to build out the REST API endpoints.
The Magic Revealed: Four Real-World Examples of Using the Client Object Model...SPTechCon
The document summarizes Peter Serzo's presentation on the client-side story and object model in SharePoint 2010. It discusses how the client object model allows accessing SharePoint data through managed code, Silverlight, JavaScript and web services. It provides examples of using the client object model to upload files, retrieve list data, and get user profile properties. It also covers using jQuery templates and REST to display and format list data on a page.
The document discusses functions and objects in JavaScript. It defines a function as a reusable block of code that performs operations to fulfill a specific task. Functions can be invoked to execute their code. Objects are collections of properties and methods that represent real-world entities. The document describes how to create user-defined functions and objects in JavaScript, including defining properties and methods. It also provides examples of the built-in String and Math objects and their properties and methods.
This document provides an introduction and overview of AJAX (Asynchronous JavaScript And XML). It explains that AJAX is not a new technology, but rather a combination of existing technologies like HTML, JavaScript, DHTML and DOM. AJAX allows for asynchronous data retrieval, which can make web applications more interactive and user-friendly by updating parts of a page without reloading the whole page. The key component that enables asynchronous requests is the XMLHttpRequest object, which is used to facilitate communication between the client and server.
This AJAX tutorial introduces the key technologies involved in AJAX including HTML, JavaScript, XMLHttpRequest object, and DOM. It explains that AJAX allows for asynchronous communication between the browser and server to update parts of a web page without reloading the entire page. The tutorial demonstrates how to use the XMLHttpRequest object to retrieve data from a server and update a form with the response, improving the user experience of a web application.
The document summarizes key aspects of server-side ASP.NET including the page, session, application, cache, request, response, and server objects. It describes properties and methods of the server, request, and response objects that provide information and functionality for server-side processing like accessing headers, cookies, files and performing redirects. Examples of properties and methods are given for each object to illustrate their usage.
This document provides an overview of key C# language concepts including variables and data types, arrays, array lists, enumerations, operators, type conversions, the DateTime and TimeSpan types, conditional logic, loops, methods, parameters, delegates, and comments. It describes basic syntax for these concepts and provides examples to illustrate their usage in C# code.
1. The document describes how to dynamically format the color of a column value displayed in a ListView or Repeater control in ASP.NET based on the length of the value.
2. It provides four answer options that insert code in different locations to handle the ItemDataBound event and retrieve the target Label control to set its forecolor property.
3. The correct answer is to insert an OnItemDataBound handler and retrieve the label from the bound item in the event args.
4. A similar process is described for a Repeater, with the correct answer again being to retrieve the label from the bound item in the event args.
5. The question asks how to dynamically add a user
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfPaige Cruz
Monitoring and observability aren’t traditionally found in software curriculums and many of us cobble this knowledge together from whatever vendor or ecosystem we were first introduced to and whatever is a part of your current company’s observability stack.
While the dev and ops silo continues to crumble….many organizations still relegate monitoring & observability as the purview of ops, infra and SRE teams. This is a mistake - achieving a highly observable system requires collaboration up and down the stack.
I, a former op, would like to extend an invitation to all application developers to join the observability party will share these foundational concepts to build on:
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
Threats to mobile devices are more prevalent and increasing in scope and complexity. Users of mobile devices desire to take full advantage of the features
available on those devices, but many of the features provide convenience and capability but sacrifice security. This best practices guide outlines steps the users can take to better protect personal devices and information.
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...Neo4j
Leonard Jayamohan, Partner & Generative AI Lead, Deloitte
This keynote will reveal how Deloitte leverages Neo4j’s graph power for groundbreaking digital twin solutions, achieving a staggering 100x performance boost. Discover the essential role knowledge graphs play in successful generative AI implementations. Plus, get an exclusive look at an innovative Neo4j + Generative AI solution Deloitte is developing in-house.
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionAggregage
Join Maher Hanafi, VP of Engineering at Betterworks, in this new session where he'll share a practical framework to transform Gen AI prototypes into impactful products! He'll delve into the complexities of data collection and management, model selection and optimization, and ensuring security, scalability, and responsible use.
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
20 Comprehensive Checklist of Designing and Developing a WebsitePixlogix Infotech
Dive into the world of Website Designing and Developing with Pixlogix! Looking to create a stunning online presence? Look no further! Our comprehensive checklist covers everything you need to know to craft a website that stands out. From user-friendly design to seamless functionality, we've got you covered. Don't miss out on this invaluable resource! Check out our checklist now at Pixlogix and start your journey towards a captivating online presence today.
Building RAG with self-deployed Milvus vector database and Snowpark Container...Zilliz
This talk will give hands-on advice on building RAG applications with an open-source Milvus database deployed as a docker container. We will also introduce the integration of Milvus with Snowpark Container Services.
UiPath Test Automation using UiPath Test Suite series, part 6DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 6. In this session, we will cover Test Automation with generative AI and Open AI.
UiPath Test Automation with generative AI and Open AI webinar offers an in-depth exploration of leveraging cutting-edge technologies for test automation within the UiPath platform. Attendees will delve into the integration of generative AI, a test automation solution, with Open AI advanced natural language processing capabilities.
Throughout the session, participants will discover how this synergy empowers testers to automate repetitive tasks, enhance testing accuracy, and expedite the software testing life cycle. Topics covered include the seamless integration process, practical use cases, and the benefits of harnessing AI-driven automation for UiPath testing initiatives. By attending this webinar, testers, and automation professionals can gain valuable insights into harnessing the power of AI to optimize their test automation workflows within the UiPath ecosystem, ultimately driving efficiency and quality in software development processes.
What will you get from this session?
1. Insights into integrating generative AI.
2. Understanding how this integration enhances test automation within the UiPath platform
3. Practical demonstrations
4. Exploration of real-world use cases illustrating the benefits of AI-driven test automation for UiPath
Topics covered:
What is generative AI
Test Automation with generative AI and Open AI.
UiPath integration with generative AI
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...Zilliz
Join us to introduce Milvus Lite, a vector database that can run on notebooks and laptops, share the same API with Milvus, and integrate with every popular GenAI framework. This webinar is perfect for developers seeking easy-to-use, well-integrated vector databases for their GenAI apps.
Full-RAG: A modern architecture for hyper-personalizationZilliz
Mike Del Balso, CEO & Co-Founder at Tecton, presents "Full RAG," a novel approach to AI recommendation systems, aiming to push beyond the limitations of traditional models through a deep integration of contextual insights and real-time data, leveraging the Retrieval-Augmented Generation architecture. This talk will outline Full RAG's potential to significantly enhance personalization, address engineering challenges such as data management and model training, and introduce data enrichment with reranking as a key solution. Attendees will gain crucial insights into the importance of hyperpersonalization in AI, the capabilities of Full RAG for advanced personalization, and strategies for managing complex data integrations for deploying cutting-edge AI solutions.
Communications Mining Series - Zero to Hero - Session 1DianaGray10
This session provides introduction to UiPath Communication Mining, importance and platform overview. You will acquire a good understand of the phases in Communication Mining as we go over the platform with you. Topics covered:
• Communication Mining Overview
• Why is it important?
• How can it help today’s business and the benefits
• Phases in Communication Mining
• Demo on Platform overview
• Q/A
In the rapidly evolving landscape of technologies, XML continues to play a vital role in structuring, storing, and transporting data across diverse systems. The recent advancements in artificial intelligence (AI) present new methodologies for enhancing XML development workflows, introducing efficiency, automation, and intelligent capabilities. This presentation will outline the scope and perspective of utilizing AI in XML development. The potential benefits and the possible pitfalls will be highlighted, providing a balanced view of the subject.
We will explore the capabilities of AI in understanding XML markup languages and autonomously creating structured XML content. Additionally, we will examine the capacity of AI to enrich plain text with appropriate XML markup. Practical examples and methodological guidelines will be provided to elucidate how AI can be effectively prompted to interpret and generate accurate XML markup.
Further emphasis will be placed on the role of AI in developing XSLT, or schemas such as XSD and Schematron. We will address the techniques and strategies adopted to create prompts for generating code, explaining code, or refactoring the code, and the results achieved.
The discussion will extend to how AI can be used to transform XML content. In particular, the focus will be on the use of AI XPath extension functions in XSLT, Schematron, Schematron Quick Fixes, or for XML content refactoring.
The presentation aims to deliver a comprehensive overview of AI usage in XML development, providing attendees with the necessary knowledge to make informed decisions. Whether you’re at the early stages of adopting AI or considering integrating it in advanced XML development, this presentation will cover all levels of expertise.
By highlighting the potential advantages and challenges of integrating AI with XML development tools and languages, the presentation seeks to inspire thoughtful conversation around the future of XML development. We’ll not only delve into the technical aspects of AI-powered XML development but also discuss practical implications and possible future directions.
For the full video of this presentation, please visit: https://www.edge-ai-vision.com/2024/06/building-and-scaling-ai-applications-with-the-nx-ai-manager-a-presentation-from-network-optix/
Robin van Emden, Senior Director of Data Science at Network Optix, presents the “Building and Scaling AI Applications with the Nx AI Manager,” tutorial at the May 2024 Embedded Vision Summit.
In this presentation, van Emden covers the basics of scaling edge AI solutions using the Nx tool kit. He emphasizes the process of developing AI models and deploying them globally. He also showcases the conversion of AI models and the creation of effective edge AI pipelines, with a focus on pre-processing, model conversion, selecting the appropriate inference engine for the target hardware and post-processing.
van Emden shows how Nx can simplify the developer’s life and facilitate a rapid transition from concept to production-ready applications.He provides valuable insights into developing scalable and efficient edge AI solutions, with a strong focus on practical implementation.
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!SOFTTECHHUB
As the digital landscape continually evolves, operating systems play a critical role in shaping user experiences and productivity. The launch of Nitrux Linux 3.5.0 marks a significant milestone, offering a robust alternative to traditional systems such as Windows 11. This article delves into the essence of Nitrux Linux 3.5.0, exploring its unique features, advantages, and how it stands as a compelling choice for both casual users and tech enthusiasts.
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Excel to Use Rest API to communicate with a server
1. Getting Excel to use Rest API
Here is a way to retrieve data from a server that supports REST API.
Not sure how useful this will be, but I am sharing anyway.
On excel a button with macro is placed.
Clicking the button we get a window that shows the data.
Now if I had time, I could list data into excel cells, but I don’t.
Willing to e-mail the excel to anyone who wants it.
The Button method or the whole macro looks something like this.
The Base64Encode function does basic encoding of username and password.
Option Explicit
Sub Button1_Click()
Dim restReq, url, userName, password
Set restReq = CreateObject("Microsoft.XMLHTTP")
' Replace <node> with the address of your INSTEON device
2. ' Additionally, any REST command will work here
url = "http://192.168.3.235:8080/mobile/name?name=a@,customer=true&sortby=+name"
' If auth is required, replace the userName and password values
' with the ones you use on your ISY
userName = "Sam"
password = "Somepass"
restReq.Open "GET", url, False
restReq.setRequestHeader "Authorization", "Basic " + Base64Encode(userName + ":" + password)
restReq.send
'WScript.echo restReq.responseText
MsgBox (restReq.responseText)
End Sub
Function Base64Encode(sText)
Dim oXML, oNode
Set oXML = CreateObject("Msxml2.DOMDocument.3.0")
Set oNode = oXML.CreateElement("base64")
oNode.DataType = "bin.base64"
oNode.nodeTypedValue = Stream_StringToBinary(sText)
Base64Encode = oNode.Text
Set oNode = Nothing
Set oXML = Nothing
End Function
Function Base64Decode(ByVal vCode)
Dim oXML, oNode
Set oXML = CreateObject("Msxml2.DOMDocument.3.0")
Set oNode = oXML.CreateElement("base64")
oNode.DataType = "bin.base64"
oNode.Text = vCode
Base64Decode = Stream_BinaryToString(oNode.nodeTypedValue)
Set oNode = Nothing
Set oXML = Nothing
End Function
'Stream_StringToBinary Function
'2003 Antonin Foller, http://www.motobit.com
'Text - string parameter To convert To binary data
Function Stream_StringToBinary(Text)
Const adTypeText = 2
Const adTypeBinary = 1
'Create Stream object
Dim BinaryStream 'As New Stream
Set BinaryStream = CreateObject("ADODB.Stream")
'Specify stream type - we want To save text/string data.
BinaryStream.Type = adTypeText
3. 'Specify charset For the source text (unicode) data.
BinaryStream.Charset = "us-ascii"
'Open the stream And write text/string data To the object
BinaryStream.Open
BinaryStream.WriteText Text
'Change stream type To binary
BinaryStream.Position = 0
BinaryStream.Type = adTypeBinary
'Ignore first two bytes - sign of
BinaryStream.Position = 0
'Open the stream And get binary data from the object
Stream_StringToBinary = BinaryStream.Read
Set BinaryStream = Nothing
End Function
'Stream_BinaryToString Function
'2003 Antonin Foller, http://www.motobit.com
'Binary - VT_UI1 | VT_ARRAY data To convert To a string
Function Stream_BinaryToString(Binary)
Const adTypeText = 2
Const adTypeBinary = 1
'Create Stream object
Dim BinaryStream 'As New Stream
Set BinaryStream = CreateObject("ADODB.Stream")
'Specify stream type - we want To save binary data.
BinaryStream.Type = adTypeBinary
'Open the stream And write binary data To the object
BinaryStream.Open
BinaryStream.Write Binary
'Change stream type To text/string
BinaryStream.Position = 0
BinaryStream.Type = adTypeText
'Specify charset For the output text (unicode) data.
BinaryStream.Charset = "us-ascii"
'Open the stream And get text/string data from the object
Stream_BinaryToString = BinaryStream.ReadText
Set BinaryStream = Nothing
End Function