The document discusses upcoming web standards like HTML5 and WebSockets. It provides examples of using local storage, handling errors with window.onerror, and the Same Origin Policy. It also demonstrates how to access device sensors and use the webcam with getUserMedia. The document promotes Opera's developer tools like Dragonfly and extensions to aid web development.
The document provides code samples for sending push notifications from a UWP app to Windows devices. It shows how to request a channel URI, register with a cloud notification service, authenticate with tokens, and send badge, toast, tile, and secondary tile notifications by making HTTP requests and passing XML payload. Optional steps include creating channels for secondary tiles and handling notification activation events.
The document discusses configuring caching in Mule using a non-persistent managed objects store. It shows how to configure a caching strategy with a non-persistent managed object store, test the cached web service response, invalidate the cache to force a database hit, and configure a flow to clear the cache. The caching allows retrieving the same response even if the database data is deleted, and invalidating empties the cache so the service hits the database again.
This document provides instructions for connecting to a Microsoft SQL Server database from Mule and executing a stored procedure to retrieve result sets in JSON format. It describes the prerequisites, Mule flow configuration including global configuration, data source configuration, database component configuration, and logger component configuration to call a stored procedure and output the results as JSON.
The document describes how to use Ajax techniques to fetch data from a text file and display it on a web page without refreshing the page. It includes:
1) An HTML file with a button that, when clicked, calls a JavaScript function to fetch the data.
2) The JavaScript function uses the XMLHttpRequest object to make an asynchronous GET request to the text file and display the response in a <div> element.
3) It analyzes how the XMLHttpRequest object is used to open a connection, handle the response, and display the fetched data on the page without reloading.
The document describes code for an Ajax program that fetches data from a text file without refreshing the page. It includes:
1. HTML with a button to call the getData() function, which makes an AJAX request and displays the response in a <div>.
2. JavaScript code to create an XMLHttpRequest object and define the getData() function. This function opens a GET request, defines an onreadystatechange handler to process the response, and sends the request.
3. An analysis of the code, explaining how it works step-by-step, including creating the XMLHttpRequest object, making the asynchronous request, and updating the HTML with the response text.
The world of open source libraries and tools is vast for Android developers. Writing apps using solely Android SDK is impractical. Libraries can help you in many ways. They can speed up your development, save you creating boilerplate code and dealing with platform fragmentation, simplify your code and make it more readable and maintainable. In the talk I’m showing how several truly useful libraries can help a developer.
Presented at MobCon Europe 2017.
CakePHP is an open-source PHP framework used for developing web applications. The document outlines how to install CakePHP using Composer, create a project, configure databases, implement CRUD functionality, use caching, and deploy applications. Key aspects include using Composer to install dependencies, setting the database connection in config/app.php, generating controllers and models with bake, and clearing cache groups when data changes.
The document discusses upcoming web standards like HTML5 and WebSockets. It provides examples of using local storage, handling errors with window.onerror, and the Same Origin Policy. It also demonstrates how to access device sensors and use the webcam with getUserMedia. The document promotes Opera's developer tools like Dragonfly and extensions to aid web development.
The document provides code samples for sending push notifications from a UWP app to Windows devices. It shows how to request a channel URI, register with a cloud notification service, authenticate with tokens, and send badge, toast, tile, and secondary tile notifications by making HTTP requests and passing XML payload. Optional steps include creating channels for secondary tiles and handling notification activation events.
The document discusses configuring caching in Mule using a non-persistent managed objects store. It shows how to configure a caching strategy with a non-persistent managed object store, test the cached web service response, invalidate the cache to force a database hit, and configure a flow to clear the cache. The caching allows retrieving the same response even if the database data is deleted, and invalidating empties the cache so the service hits the database again.
This document provides instructions for connecting to a Microsoft SQL Server database from Mule and executing a stored procedure to retrieve result sets in JSON format. It describes the prerequisites, Mule flow configuration including global configuration, data source configuration, database component configuration, and logger component configuration to call a stored procedure and output the results as JSON.
The document describes how to use Ajax techniques to fetch data from a text file and display it on a web page without refreshing the page. It includes:
1) An HTML file with a button that, when clicked, calls a JavaScript function to fetch the data.
2) The JavaScript function uses the XMLHttpRequest object to make an asynchronous GET request to the text file and display the response in a <div> element.
3) It analyzes how the XMLHttpRequest object is used to open a connection, handle the response, and display the fetched data on the page without reloading.
The document describes code for an Ajax program that fetches data from a text file without refreshing the page. It includes:
1. HTML with a button to call the getData() function, which makes an AJAX request and displays the response in a <div>.
2. JavaScript code to create an XMLHttpRequest object and define the getData() function. This function opens a GET request, defines an onreadystatechange handler to process the response, and sends the request.
3. An analysis of the code, explaining how it works step-by-step, including creating the XMLHttpRequest object, making the asynchronous request, and updating the HTML with the response text.
The world of open source libraries and tools is vast for Android developers. Writing apps using solely Android SDK is impractical. Libraries can help you in many ways. They can speed up your development, save you creating boilerplate code and dealing with platform fragmentation, simplify your code and make it more readable and maintainable. In the talk I’m showing how several truly useful libraries can help a developer.
Presented at MobCon Europe 2017.
CakePHP is an open-source PHP framework used for developing web applications. The document outlines how to install CakePHP using Composer, create a project, configure databases, implement CRUD functionality, use caching, and deploy applications. Key aspects include using Composer to install dependencies, setting the database connection in config/app.php, generating controllers and models with bake, and clearing cache groups when data changes.
The easy way to develop Java applications has always been the standard stack (Spring, JEE, SQL) that confirms the LAMP equivalent in Java-speak. This presentation compares this model with a real use case based on Guice, Jersey and AppEngine.
탑크리에듀교육센터(www.topcredu.co.kr)제공
스프링프레임워크 & 마이바티스(Spring Framework, MyBatis)
18번째 자료입니다. 참고하시어 많은 도움되셨길 바랍니다.
교육 및 수강문의/기타문의사항은 홈페이지(www.topcredu.co.kr)를 통하여 하실 수 있습니다.^^
The document discusses how to programmatically make URL requests in Java. It covers using the URL and URLConnection classes to (1) parse URLs, (2) retrieve URL contents by opening connections or streams, and (3) get header information. It also provides examples of how to fake GET and POST form submissions by encoding parameters and sending requests via URLConnection.
Servlets are Java programs that run on a web server and generate dynamic web page content. Servlets receive HTTP requests and return HTTP responses. They provide an interface between web clients and web servers. Key points:
- Servlets run on web servers like Tomcat and handle HTTP requests/responses dynamically.
- They extend the HttpServlet class and implement doGet() and/or doPost() methods to process requests.
- Servlets can access request parameters, headers, cookies and generate HTML responses by setting headers and writing to the response.
- Servlets are configured in the web server and mapped to URLs to handle requests for those URLs dynamically.
The document discusses the basics of JavaScript, including:
- JavaScript is used to add dynamic behavior to web pages by modifying HTML content, changing attributes, styles, and showing/hiding elements.
- It describes how to embed JavaScript code in HTML using <script> tags and how to output content using methods like innerHTML, document.write(), and alerts.
- The core JavaScript syntax is covered, including variables, operators, conditional statements, loops, and functions. Built-in functions and objects like Strings are also introduced.
This document discusses different options for saving application data in Android. It covers SharedPreferences for saving key-value pairs, internal and external file storage, and SQLite databases. For SharedPreferences, it shows how to get a SharedPreferences object, write and read preferences. For files, it explains internal and external storage and permissions. For SQLite databases, it discusses the SQLiteOpenHelper class, content values for inserting data, and querying data. It also briefly introduces the ObjectBox ORM library as an alternative to SQLite.
This document provides an overview of JSP/Servlet architecture. It describes how a web request is handled from the browser to the web server and JSP/Servlet container. It then discusses key components like servlets, JSPs, the request and response objects. It provides examples of basic servlet and JSP code to output text and access request parameters. It also covers servlet configuration, mappings, and the use of forwards and redirects.
1. The document provides information on various Salesforce concepts like email templates, relationships between objects, preventing recursive triggers, map concepts, aggregate functions, sending attachments in emails, sharing rules for standard and custom objects, batch classes, and scheduler classes.
2. Key details are provided on how to implement each concept through code examples and explanations of methods and interfaces.
3. Best practices are highlighted like querying new records instead of using DML in triggers and maintaining state when using batch classes.
This document discusses using Firebase services for backendless mobile apps. It covers using Firebase Authentication to allow anonymous and social logins. It also covers using Firebase Cloud Firestore for content storage and realtime data, Firebase Cloud Functions for backend logic, and Firebase Cloud Messaging for push notifications. Code snippets in Kotlin demonstrate integrating these services, such as authenticating users anonymously, uploading and downloading files, listening to database changes, and writing Cloud Functions with Kotlin.
Rx 101 Codemotion Milan 2015 - Tamir DresherTamir Dresher
Slides from my talk about Reactive Extensions (Rx) fundamentals from Codemotion Milan 2015 conference. The demos and other samples can be found in the github repository: https://github.com/tamirdresher/Rx101
This document provides instructions for configuring and using a Box connector in Mule to authorize with a Box developer account, get folder item details from Box in JSON format, and then unauthorize from Box. The flow authorizes with Box using the client ID and secret, gets folder items details, transforms the result to JSON, logs the payload, and then unauthorizes from Box. Source code is provided to configure the Box connector and create a flow to perform these actions.
Digital Mayflower - Data Pilgrimage with the Drupal Migrate ModuleErich Beyrent
In the year 1620, a collection of data left their proprietary database in search of a new, open ecosystem. Okay, so maybe that's not quite how the story goes, but it works for a modern reboot of the classic saga.
That moment of panic when someone assigns you the task of migrating a legacy site into Drupal. It's a daunting project, fraught with undocumented data, mixed character sets, bizarre content modules, and impossible deadlines. Fortunately, it's now easier than ever to migrate data from an existing source into Drupal, thanks to the Migrate module.
In this session, we'll cover:
An overview of the Migrate module
Common hooks for iterating and transforming your data
Migration from databases, CSV files, and static HTML
How to use Drush to control your migrations
Engaging users with live tiles and notificationsAlex Golesh
The document provides instructions for sending push notifications from a UWP application to Windows 10 devices using the Windows Notification Service (WNS). It includes steps to request the channel URI, register with a cloud service, authenticate with the service, and send badge, toast, tile, and secondary tile notifications. Code samples are provided to get an access token, create notification payloads, and send notifications to WNS.
This document discusses hooks, events, and the event dispatcher in Drupal 8. It provides an overview of hooks and why they were replaced by events, which allow for more object-oriented and loosely coupled code. It describes how to create event subscribers by implementing the EventSubscriberInterface and defining subscriber methods. It also covers how to dispatch events by extending the base Event class and calling the dispatch method on the event dispatcher service.
This document discusses dependency injection in Spring Framework. It covers setter injection, constructor injection, and method injection using both XML and annotation-based configurations. Setter injection allows injecting dependencies into properties through setter methods. Constructor injection injects dependencies through a class's constructor. Method injection replaces or augments existing methods at runtime. Both setter and constructor injection can be used with XML's <property> and <constructor-arg> tags or with annotations like @Autowired on setter methods or constructors. Method injection replaces or augments methods using the <replaced-method> or <lookup-method> tags in XML.
The state of hooking into Drupal - DrupalCon DublinNida Ismail Shah
https://events.drupal.org/dublin2016/sessions/state-hooking-drupal
Major portion of drupal development has been about hooks. We have all used them. But there have been talks about replacing the procedural hook system in Drupal with its Object oriented version - Events. We are already on the track and we, as of now, are required to use Events for many things in Drupal 8.
This session will mainly elustrate:
How hooks work in Drupal.
How we are on the track of moving from hooks to Events in Drupal 8
Where we are? What all do we need Events for and where we are still stuck with hooks.
When to alter and when to fire an event.
How to create and dispatch an Event from your module.
How to listen or subscribe to an Event from your custom Event or an event from core.
How to expose custom hooks in Drupal 8.
Attendees should be familiar with:
Basic Drupal 8 module development.
Basic OOP principles and practices.
Symfony components used in D8.
After attending this session attendees will be able to:
Create their custom events in Drupal 8
Subscribe to the events from core and other modules and to their custom events too.
Will have a knowledge of where to explore the events and where we have to still use hooks.
REST/JSON/CoreData Example Code - A TourCarl Brown
The NetworkManager singleton class handles network requests for the application. It starts monitoring network reachability when initialized. It kicks off the initial data fetch by queuing a request for a specific URL path. The NetworkManager will inform the user of network status and reject requests if offline.
This document discusses how to compress and decompress payloads in Mule flows. It describes using the gzip-compress-transformer to compress a payload, which reduces its size, and the gzip-uncompress-transformer to decompress it back to the original size. An example is provided of a flow that picks up a 83 KB file, compresses it reducing it to 21.99 KB, then decompresses it back to the original 83 KB size.
Spring Framework is a popular and stable Java application framework that reduces dependencies and provides solutions to common coding problems like working with databases and web services. It uses dependency injection and aspect-oriented programming to increase modularity. The framework manages Java objects called beans, creating and injecting their dependencies based on bean definition files. This allows applications to access services without needing to understand their implementation.
This document contains code for a Java web application that allows users to submit a registration form with their first name, last name, and email address. The form submission is handled by a JSP page that inserts the user details into a MySQL database using Java and JDBC. It then queries the database and displays the stored users in an HTML table. The code includes classes for the User object model and a SQLDBUtil class for database operations like insertion, updating, and checking if a user already exists by email.
RESTEasy is a framework for building RESTful web services in Java. It allows developers to write JAX-RS annotated Java classes to define resources and their representations. Resources are addressable via URIs and support standard HTTP methods like GET, PUT, POST, and DELETE. Resources return representations in formats like JSON, XML, and HTML. Communication is stateless and driven by hypermedia links between resources. RESTEasy supports features like interceptors, asynchronous jobs, caching, GZIP compression, and integration with Spring and other frameworks.
The easy way to develop Java applications has always been the standard stack (Spring, JEE, SQL) that confirms the LAMP equivalent in Java-speak. This presentation compares this model with a real use case based on Guice, Jersey and AppEngine.
탑크리에듀교육센터(www.topcredu.co.kr)제공
스프링프레임워크 & 마이바티스(Spring Framework, MyBatis)
18번째 자료입니다. 참고하시어 많은 도움되셨길 바랍니다.
교육 및 수강문의/기타문의사항은 홈페이지(www.topcredu.co.kr)를 통하여 하실 수 있습니다.^^
The document discusses how to programmatically make URL requests in Java. It covers using the URL and URLConnection classes to (1) parse URLs, (2) retrieve URL contents by opening connections or streams, and (3) get header information. It also provides examples of how to fake GET and POST form submissions by encoding parameters and sending requests via URLConnection.
Servlets are Java programs that run on a web server and generate dynamic web page content. Servlets receive HTTP requests and return HTTP responses. They provide an interface between web clients and web servers. Key points:
- Servlets run on web servers like Tomcat and handle HTTP requests/responses dynamically.
- They extend the HttpServlet class and implement doGet() and/or doPost() methods to process requests.
- Servlets can access request parameters, headers, cookies and generate HTML responses by setting headers and writing to the response.
- Servlets are configured in the web server and mapped to URLs to handle requests for those URLs dynamically.
The document discusses the basics of JavaScript, including:
- JavaScript is used to add dynamic behavior to web pages by modifying HTML content, changing attributes, styles, and showing/hiding elements.
- It describes how to embed JavaScript code in HTML using <script> tags and how to output content using methods like innerHTML, document.write(), and alerts.
- The core JavaScript syntax is covered, including variables, operators, conditional statements, loops, and functions. Built-in functions and objects like Strings are also introduced.
This document discusses different options for saving application data in Android. It covers SharedPreferences for saving key-value pairs, internal and external file storage, and SQLite databases. For SharedPreferences, it shows how to get a SharedPreferences object, write and read preferences. For files, it explains internal and external storage and permissions. For SQLite databases, it discusses the SQLiteOpenHelper class, content values for inserting data, and querying data. It also briefly introduces the ObjectBox ORM library as an alternative to SQLite.
This document provides an overview of JSP/Servlet architecture. It describes how a web request is handled from the browser to the web server and JSP/Servlet container. It then discusses key components like servlets, JSPs, the request and response objects. It provides examples of basic servlet and JSP code to output text and access request parameters. It also covers servlet configuration, mappings, and the use of forwards and redirects.
1. The document provides information on various Salesforce concepts like email templates, relationships between objects, preventing recursive triggers, map concepts, aggregate functions, sending attachments in emails, sharing rules for standard and custom objects, batch classes, and scheduler classes.
2. Key details are provided on how to implement each concept through code examples and explanations of methods and interfaces.
3. Best practices are highlighted like querying new records instead of using DML in triggers and maintaining state when using batch classes.
This document discusses using Firebase services for backendless mobile apps. It covers using Firebase Authentication to allow anonymous and social logins. It also covers using Firebase Cloud Firestore for content storage and realtime data, Firebase Cloud Functions for backend logic, and Firebase Cloud Messaging for push notifications. Code snippets in Kotlin demonstrate integrating these services, such as authenticating users anonymously, uploading and downloading files, listening to database changes, and writing Cloud Functions with Kotlin.
Rx 101 Codemotion Milan 2015 - Tamir DresherTamir Dresher
Slides from my talk about Reactive Extensions (Rx) fundamentals from Codemotion Milan 2015 conference. The demos and other samples can be found in the github repository: https://github.com/tamirdresher/Rx101
This document provides instructions for configuring and using a Box connector in Mule to authorize with a Box developer account, get folder item details from Box in JSON format, and then unauthorize from Box. The flow authorizes with Box using the client ID and secret, gets folder items details, transforms the result to JSON, logs the payload, and then unauthorizes from Box. Source code is provided to configure the Box connector and create a flow to perform these actions.
Digital Mayflower - Data Pilgrimage with the Drupal Migrate ModuleErich Beyrent
In the year 1620, a collection of data left their proprietary database in search of a new, open ecosystem. Okay, so maybe that's not quite how the story goes, but it works for a modern reboot of the classic saga.
That moment of panic when someone assigns you the task of migrating a legacy site into Drupal. It's a daunting project, fraught with undocumented data, mixed character sets, bizarre content modules, and impossible deadlines. Fortunately, it's now easier than ever to migrate data from an existing source into Drupal, thanks to the Migrate module.
In this session, we'll cover:
An overview of the Migrate module
Common hooks for iterating and transforming your data
Migration from databases, CSV files, and static HTML
How to use Drush to control your migrations
Engaging users with live tiles and notificationsAlex Golesh
The document provides instructions for sending push notifications from a UWP application to Windows 10 devices using the Windows Notification Service (WNS). It includes steps to request the channel URI, register with a cloud service, authenticate with the service, and send badge, toast, tile, and secondary tile notifications. Code samples are provided to get an access token, create notification payloads, and send notifications to WNS.
This document discusses hooks, events, and the event dispatcher in Drupal 8. It provides an overview of hooks and why they were replaced by events, which allow for more object-oriented and loosely coupled code. It describes how to create event subscribers by implementing the EventSubscriberInterface and defining subscriber methods. It also covers how to dispatch events by extending the base Event class and calling the dispatch method on the event dispatcher service.
This document discusses dependency injection in Spring Framework. It covers setter injection, constructor injection, and method injection using both XML and annotation-based configurations. Setter injection allows injecting dependencies into properties through setter methods. Constructor injection injects dependencies through a class's constructor. Method injection replaces or augments existing methods at runtime. Both setter and constructor injection can be used with XML's <property> and <constructor-arg> tags or with annotations like @Autowired on setter methods or constructors. Method injection replaces or augments methods using the <replaced-method> or <lookup-method> tags in XML.
The state of hooking into Drupal - DrupalCon DublinNida Ismail Shah
https://events.drupal.org/dublin2016/sessions/state-hooking-drupal
Major portion of drupal development has been about hooks. We have all used them. But there have been talks about replacing the procedural hook system in Drupal with its Object oriented version - Events. We are already on the track and we, as of now, are required to use Events for many things in Drupal 8.
This session will mainly elustrate:
How hooks work in Drupal.
How we are on the track of moving from hooks to Events in Drupal 8
Where we are? What all do we need Events for and where we are still stuck with hooks.
When to alter and when to fire an event.
How to create and dispatch an Event from your module.
How to listen or subscribe to an Event from your custom Event or an event from core.
How to expose custom hooks in Drupal 8.
Attendees should be familiar with:
Basic Drupal 8 module development.
Basic OOP principles and practices.
Symfony components used in D8.
After attending this session attendees will be able to:
Create their custom events in Drupal 8
Subscribe to the events from core and other modules and to their custom events too.
Will have a knowledge of where to explore the events and where we have to still use hooks.
REST/JSON/CoreData Example Code - A TourCarl Brown
The NetworkManager singleton class handles network requests for the application. It starts monitoring network reachability when initialized. It kicks off the initial data fetch by queuing a request for a specific URL path. The NetworkManager will inform the user of network status and reject requests if offline.
This document discusses how to compress and decompress payloads in Mule flows. It describes using the gzip-compress-transformer to compress a payload, which reduces its size, and the gzip-uncompress-transformer to decompress it back to the original size. An example is provided of a flow that picks up a 83 KB file, compresses it reducing it to 21.99 KB, then decompresses it back to the original 83 KB size.
Spring Framework is a popular and stable Java application framework that reduces dependencies and provides solutions to common coding problems like working with databases and web services. It uses dependency injection and aspect-oriented programming to increase modularity. The framework manages Java objects called beans, creating and injecting their dependencies based on bean definition files. This allows applications to access services without needing to understand their implementation.
This document contains code for a Java web application that allows users to submit a registration form with their first name, last name, and email address. The form submission is handled by a JSP page that inserts the user details into a MySQL database using Java and JDBC. It then queries the database and displays the stored users in an HTML table. The code includes classes for the User object model and a SQLDBUtil class for database operations like insertion, updating, and checking if a user already exists by email.
RESTEasy is a framework for building RESTful web services in Java. It allows developers to write JAX-RS annotated Java classes to define resources and their representations. Resources are addressable via URIs and support standard HTTP methods like GET, PUT, POST, and DELETE. Resources return representations in formats like JSON, XML, and HTML. Communication is stateless and driven by hypermedia links between resources. RESTEasy supports features like interceptors, asynchronous jobs, caching, GZIP compression, and integration with Spring and other frameworks.
This document provides an overview of REST (Representational State Transfer), including the key aspects of RESTful architectures such as:
- Resources are addressed through URIs
- Standard HTTP methods like GET, PUT, POST, DELETE are used to manipulate resources
- Data is represented in various formats like JSON, XML, HTML
- Communication is stateless between client and server
It then discusses how these REST principles are implemented in RESTEasy, the JBoss RESTful Web Services framework, through annotations and APIs. Features like content negotiation, interceptors, asynchronous calls and caching are also covered.
The document discusses how to access a MySQL database from a Struts 2 application. It describes setting up the database with a table and data. It then covers creating a Struts 2 action class to query the database on user login, and JSP views for successful and failed logins. Configuration files including struts.xml and web.xml are provided to wire it all together.
Step By Step Guide For Buidling Simple Struts AppSyed Shahul
This document provides steps to build a simple Struts application, including creating forms, actions, configuration files, and JSP pages. The key steps are:
1. Set up the project directory structure and files like web.xml.
2. Define forms, actions, and mappings in struts-config.xml.
3. Create ActionForm classes to handle form fields and validation.
4. Write Action classes to process requests and select views.
5. Develop JSP pages to display forms and output using Struts tags.
6. Build, deploy and test the complete application.
iPhone applications can often benefit by talking to a web service to synchronize data or share information with a community. Ruby on Rails, with its RESTful conventions, is an ideal backend for iPhone applications. In this session you'll learn how to use ObjectiveResource in an iPhone application to interact with a RESTful web service implemented in Rails. This session isn't about how to build web applications that are served up on the iPhone. It's about how to build iPhone applications with a native look and feel that happen to talk to Rails applications under the hood. The upshot is a user experience that transcends the device.
The document discusses various aspects of building a web application using Java including HTML forms, handling form data with servlets and requests/responses, connecting to a database using MySQL and its Java connector library, using the MVC pattern to manage database requests, and implementing user authentication with a login servlet that verifies credentials against a users table.
David Keeney - SQL Database Server Requests from the Browser @ Postgres OpenPostgresOpen
This document describes a universal web application backend called RdbHost that allows writing SQL directly in browser-side JavaScript code. It provides various methods for making database queries from the client-side using JavaScript, including authentication options and ways to whitelist queries for security. The service aims to remove layers from the traditional web stack by handling data access and business logic directly in browser-side code.
Rails 3 provides a concise overview of changes in Rails 3 including maintaining MVC structure and RESTful routing while improving areas like file structure, block helpers, routing and constraints, ActiveRecord querying, resources routing, and ActionMailer delivery. Key changes include a more Rack-like implementation, chainable ActiveRecord scopes, and pagination and layout support in ActionMailer.
This document provides an overview of best practices for Android development. It discusses topics such as UI design, including layouts and styles; using the action bar for search and progress indicators; accessibility; network connections; asynchronous tasks and services; fragments and navigation patterns; geolocation and performance; dependency injection; and recommended tools and libraries. The document provides code snippets and links to the Android developer documentation for further information on these topics.
The document contains details of 9 practical assignments for an Advance Java course. Each practical assignment involves developing a Java program or application to demonstrate a concept. For example, Practical 01 involves creating a program to select stationary products and display prices; Practical 02 creates an editable employee table; Practical 03 uses a split pane to display planet images; and so on. The final practical involves developing a room reservation system using Enterprise Java Beans.
The document describes the design and implementation of a library management system with both a Windows Forms and ASP.NET web application, including user interfaces to add members, books, check items in and out, and backend classes for business logic and data access with a SQL Server database using stored procedures. It provides code snippets and screenshots illustrating the user interface, validation, class structure and data flow between the different tiers when adding an adult member.
The document provides an overview of the MVC pattern and how it is implemented in Symfony. It discusses how Symfony separates code into models, views, and controllers and layers these components. It also describes common Symfony structures like modules, actions, and templates as well as tools like parameter holders, constants, and autoloading that are frequently used.
Ajax allows for asynchronous retrieval of data from a server in the background without reloading the page. It uses a combination of technologies like XMLHttpRequest, JavaScript, and DOM to make asynchronous calls to a server and update portions of a page without reloading. The document then provides an example of how an Ajax interaction works, from making an asynchronous request to a server to processing the response and updating the HTML DOM.
Ajax allows for asynchronous retrieval of data from a server in the background without reloading the page. It uses a combination of technologies like XMLHttpRequest, JavaScript, and DOM to make asynchronous calls to a server and update portions of a page without reloading. The document then provides an example of how an Ajax interaction works, from making an asynchronous request to a server to processing the response and updating the HTML DOM.
The document discusses recommendations for computer science students before graduating, including taking programming courses focused on object-oriented principles and design patterns, finding internships that involve programming work, learning English, studying microeconomics, completing sample applications to demonstrate skills, and being active in online communities. It also emphasizes the importance of documentation, graduating quickly, avoiding dismissing non-IT courses, and focusing on skills rather than specific future jobs.
Mumbai Academics is Mumbai’s first dedicated Professional Training Center for Training with Spoke and hub model with Multiple verticles . The strong foundation of Mumbai Academics is laid by highly skilled and trained Professionals, carrying mission to provide industry level input to the freshers and highly skilled and trained Software Professionals/other professional to IT companies.
Mail OnLine Android Application at DroidCon - Turin - ItalyYahoo
This document describes the architecture of the Mail Online Android app. It discusses key components like the REST method library for network requests, command framework for background tasks, and image handling. It emphasizes goals like performance, extensibility and avoiding antipatterns. The app aims to optimize data usage and battery life while personalizing content for each user.
The document discusses using annotations in Java, providing examples of annotations for servlets, EJBs, web services, CDI, and using frameworks like JUnit, Spring, Javassist, and ASM. It presents code samples to define servlets, session beans, RESTful and SOAP web services, and component injection using annotations instead of XML configurations. The document also demonstrates how to programmatically read annotation values and metadata using reflection, Javassist, and ASM.
Mata Kuliah : Mobile Technologies
Pertemuan 12 -- Splash Screen, dan Simpan data ke Database Mysql dengan JSONParser
Dosen Pengampu : Tri Sugihartono, M.Kom
www.atmaluhur.ac.id
Mobile technologies memberikan panduan untuk membuat menu utama dengan menambahkan gambar ukuran 150x150 ke folder res/drawable-hdpi dan menambahkan image button pada halaman utama setelah login. Panduan ini juga menyertakan desain logika untuk halaman tersebut.
Dokumen ini memberikan instruksi langkah-langkah untuk mengekspor aplikasi Android ke format file APK, termasuk menentukan lokasi penyimpanan file APK, memasukkan kata sandi untuk keystore, dan mengekstrak file APK yang siap diinstal pada perangkat Android.
Dokumen ini membahas tentang menyimpan data ke database dari aplikasi Android. Topik utama adalah membuat aktivitas baru untuk menu siswa dan guru, membuat tabel database untuk menyimpan data siswa, dan mengkoneksikan aplikasi Android ke database MySQL menggunakan file PHP.
Teknologi mobile menjadi topik pembahasan. Dokumen ini membahas latihan-latihan terkait teknologi mobile untuk memberikan pemahaman dasar. Beberapa latihan dirangkum untuk memberikan wawasan praktis tentang teknologi seluler.
Dokumen tersebut memberikan instruksi untuk membuat project baru dengan nama Lat4 di Android Studio, menambahkan komponen textview, button, dan large text ke layout activity_main.xml, kemudian menambahkan fungsi onClick pada button hitung untuk menghitung sesuatu di dalam kode Java. Instruksi tersebut bertujuan untuk membuat tampilan antarmuka pengguna dan fungsi dasar kalkulasi pada aplikasi Android.
Dokumen tersebut memberikan instruksi singkat untuk membuat proyek aplikasi Android pertama dengan nama "Hello World" yang meliputi penambahan proyek baru, konfigurasi icon, pembuatan activity, dan menjalankan proyek di emulator untuk melihat tampilan awalnya.
Dokumen ini memberikan instruksi tentang instalasi dan konfigurasi yang dibutuhkan untuk membuat aplikasi Android menggunakan editor Eclipse. Beberapa file yang dibutuhkan adalah Eclipse, ADT Plugin, dan Android SDK. Setelah menginstal ketiganya, perlu dikonfigurasi SDK dan Android Virtual Device untuk menguji aplikasi. Kemudian siap untuk membuat project Android menggunakan Eclipse.
Dokumen tersebut membahas tentang kegiatan pengujian perangkat lunak meliputi faktor-faktor pengujian, alat-alat pengujian seperti walkthrough dan matriks resiko, pembentukan tim resiko untuk mengidentifikasi resiko, dan contoh kegiatan pengujian pada berbagai tahap perangkat lunak.
A Free 200-Page eBook ~ Brain and Mind Exercise.pptxOH TEIK BIN
(A Free eBook comprising 3 Sets of Presentation of a selection of Puzzles, Brain Teasers and Thinking Problems to exercise both the mind and the Right and Left Brain. To help keep the mind and brain fit and healthy. Good for both the young and old alike.
Answers are given for all the puzzles and problems.)
With Metta,
Bro. Oh Teik Bin 🙏🤓🤔🥰
How to Setup Default Value for a Field in Odoo 17Celine George
In Odoo, we can set a default value for a field during the creation of a record for a model. We have many methods in odoo for setting a default value to the field.
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...TechSoup
Whether you're new to SEO or looking to refine your existing strategies, this webinar will provide you with actionable insights and practical tips to elevate your nonprofit's online presence.
Brand Guideline of Bashundhara A4 Paper - 2024khabri85
It outlines the basic identity elements such as symbol, logotype, colors, and typefaces. It provides examples of applying the identity to materials like letterhead, business cards, reports, folders, and websites.
🔥🔥🔥🔥🔥🔥🔥🔥🔥
إضغ بين إيديكم من أقوى الملازم التي صممتها
ملزمة تشريح الجهاز الهيكلي (نظري 3)
💀💀💀💀💀💀💀💀💀💀
تتميز هذهِ الملزمة بعِدة مُميزات :
1- مُترجمة ترجمة تُناسب جميع المستويات
2- تحتوي على 78 رسم توضيحي لكل كلمة موجودة بالملزمة (لكل كلمة !!!!)
#فهم_ماكو_درخ
3- دقة الكتابة والصور عالية جداً جداً جداً
4- هُنالك بعض المعلومات تم توضيحها بشكل تفصيلي جداً (تُعتبر لدى الطالب أو الطالبة بإنها معلومات مُبهمة ومع ذلك تم توضيح هذهِ المعلومات المُبهمة بشكل تفصيلي جداً
5- الملزمة تشرح نفسها ب نفسها بس تكلك تعال اقراني
6- تحتوي الملزمة في اول سلايد على خارطة تتضمن جميع تفرُعات معلومات الجهاز الهيكلي المذكورة في هذهِ الملزمة
واخيراً هذهِ الملزمة حلالٌ عليكم وإتمنى منكم إن تدعولي بالخير والصحة والعافية فقط
كل التوفيق زملائي وزميلاتي ، زميلكم محمد الذهبي 💊💊
🔥🔥🔥🔥🔥🔥🔥🔥🔥
Information and Communication Technology in EducationMJDuyan
(𝐓𝐋𝐄 𝟏𝟎𝟎) (𝐋𝐞𝐬𝐬𝐨𝐧 2)-𝐏𝐫𝐞𝐥𝐢𝐦𝐬
𝐄𝐱𝐩𝐥𝐚𝐢𝐧 𝐭𝐡𝐞 𝐈𝐂𝐓 𝐢𝐧 𝐞𝐝𝐮𝐜𝐚𝐭𝐢𝐨𝐧:
Students will be able to explain the role and impact of Information and Communication Technology (ICT) in education. They will understand how ICT tools, such as computers, the internet, and educational software, enhance learning and teaching processes. By exploring various ICT applications, students will recognize how these technologies facilitate access to information, improve communication, support collaboration, and enable personalized learning experiences.
𝐃𝐢𝐬𝐜𝐮𝐬𝐬 𝐭𝐡𝐞 𝐫𝐞𝐥𝐢𝐚𝐛𝐥𝐞 𝐬𝐨𝐮𝐫𝐜𝐞𝐬 𝐨𝐧 𝐭𝐡𝐞 𝐢𝐧𝐭𝐞𝐫𝐧𝐞𝐭:
-Students will be able to discuss what constitutes reliable sources on the internet. They will learn to identify key characteristics of trustworthy information, such as credibility, accuracy, and authority. By examining different types of online sources, students will develop skills to evaluate the reliability of websites and content, ensuring they can distinguish between reputable information and misinformation.
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...EduSkills OECD
Andreas Schleicher, Director of Education and Skills at the OECD presents at the launch of PISA 2022 Volume III - Creative Minds, Creative Schools on 18 June 2024.
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Simpan data- ke- database
1. Mata kuliah : Mobile Technologies (3sks)
Dosen Pengampu : Tri Sugihartono, M.Kom
Materi : Simpan Data ke Database
Website : www.atmaluhur.ac.id
Menambahkan / menyimpan data ke database pada Eclipse
Buat lah database local menggunakan XAMPP dan masuk ke alamat localhost/phpmyadmin
Buat database = “mahasiswa” dan nama tabel “biodata”
Setelah membuat database – buat file php untuk menghubungkan aplikasi
android kita dengan database mysql
Buat file “simpan.php”
<?php
$db_host = "localhost";
$db_user = "root";
$db_pass = "";
$db_name = "mahasiswa";
$koneksi = mysqli_connect($db_host, $db_user, $db_pass, $db_name);
if (mysqli_connect_error()) {
echo 'Gagal melakukan koneksi ke Database
:'.mysqli_connect_error();
}
$nim = $_POST['nim'];
$nama = $_POST['nama'];
$prodi = $_POST['prodi'];
2. Mata kuliah : Mobile Technologies (3sks)
Dosen Pengampu : Tri Sugihartono, M.Kom
Materi : Simpan Data ke Database
Website : www.atmaluhur.ac.id
$query = mysqli_query($koneksi, "INSERT INTO biodata (nim, nama, prodi)
VALUES ('$nim', '$nama','$prodi')");
$result = mysqli_query($koneksi, "SELECT * FROM mahasiswa where nim =
'$nim'");
$row = mysqli_fetch_array($result);
$data = $row[2];
if ($data)
{
echo "0";
} else {
echo "2";
}
mysqli_close($con);
?>
Setelah itu buat lah project baru dengan nama “SimpanDatabase”
Buatlah file java “CustomHttpClient.java”
package com.example.crud;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URI;
import java.util.ArrayList;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.conn.params.ConnManagerParams;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.params.HttpConnectionParams;
import org.apache.http.params.HttpParams;
public class CustomHttpClient {
/** The time it takes for our client to timeout */
public static final int HTTP_TIMEOUT = 30 * 1000; // milliseconds
/** Single instance of our HttpClient */
private static HttpClient mHttpClient;
/**
* Get our single instance of our HttpClient object.
3. Mata kuliah : Mobile Technologies (3sks)
Dosen Pengampu : Tri Sugihartono, M.Kom
Materi : Simpan Data ke Database
Website : www.atmaluhur.ac.id
*
* @return an HttpClient object with connection parameters set
*/
private static HttpClient getHttpClient() {
if (mHttpClient == null) {
mHttpClient = new DefaultHttpClient();
final HttpParams params = mHttpClient.getParams();
HttpConnectionParams.setConnectionTimeout(params,
HTTP_TIMEOUT);
HttpConnectionParams.setSoTimeout(params, HTTP_TIMEOUT);
ConnManagerParams.setTimeout(params, HTTP_TIMEOUT);
}
return mHttpClient;
}
/**
* Performs an HTTP Post request to the specified url with the
* specified parameters.
*
* @param url The web address to post the request to
* @param postParameters The parameters to send via the request
* @return The result of the request
* @throws Exception
*/
public static String executeHttpPost(String url,
ArrayList<NameValuePair> postParameters) throws Exception {
BufferedReader in = null;
try {
HttpClient client = getHttpClient();
HttpPost request = new HttpPost(url);
UrlEncodedFormEntity formEntity = new
UrlEncodedFormEntity(postParameters);
request.setEntity(formEntity);
HttpResponse response = client.execute(request);
in = new BufferedReader(new
InputStreamReader(response.getEntity().getContent()));
StringBuffer sb = new StringBuffer("");
String line = "";
String NL = System.getProperty("line.separator");
while ((line = in.readLine()) != null) {
sb.append(line + NL);
}
in.close();
String result = sb.toString();
return result;
} finally {
if (in != null) {
try {
in.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
4. Mata kuliah : Mobile Technologies (3sks)
Dosen Pengampu : Tri Sugihartono, M.Kom
Materi : Simpan Data ke Database
Website : www.atmaluhur.ac.id
}
/**
* Performs an HTTP GET request to the specified url.
*
* @param url The web address to post the request to
* @return The result of the request
* @throws Exception
*/
public static String executeHttpGet(String url) throws Exception {
BufferedReader in = null;
try {
HttpClient client = getHttpClient();
HttpGet request = new HttpGet();
request.setURI(new URI(url));
HttpResponse response = client.execute(request);
in = new BufferedReader(new
InputStreamReader(response.getEntity().getContent()));
StringBuffer sb = new StringBuffer("");
String line = "";
String NL = System.getProperty("line.separator");
while ((line = in.readLine()) != null) {
sb.append(line + NL);
}
in.close();
String result = sb.toString();
return result;
} finally {
if (in != null) {
try {
in.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}
}
Setelah itu desain layout activity_main.xml