The document contains code for a web service class that connects to a MySQL database and provides various methods for retrieving, updating, and inserting user data. The methods include login authentication, retrieving user account information and transaction history, changing passwords, transferring funds between accounts, and getting the current account balance. The class connects to the database, executes SQL queries, and returns data to the caller.
1. The document explains Ajax frameworks and functions from the Ajax Gold library. Ajax frameworks contain JavaScript functions that simplify making Ajax requests, reducing code. The getDataReturnText function uses GET to fetch text from a URL, calling a callback function on completion. getDataReturnXml similarly fetches XML. postDataReturnText uses POST to send data to a URL and receive a text response.
1. The document discusses using Ajax to return JavaScript code and objects from a server. Code examples are provided to return a JavaScript function from a PHP file using XMLHttpRequest, and to convert text into a JavaScript object.
2. Methods for using the XMLHttpRequest HEAD method are demonstrated to retrieve header information from the server, such as the server name, date/time, and file modification date.
3. The code is modified to extract only the last modified date from the header, and then further modified to display individual parts of the date like date, month, year, hours, minutes, and seconds.
4. An example is given to check if a URL exists using HEAD requests and XMLHttpRequest.
MongoDB .local Munich 2019: New Encryption Capabilities in MongoDB 4.2: A Dee...MongoDB
This document discusses MongoDB's new client-side field level encryption capabilities in version 4.2. It describes how client-side encryption works, including encrypting and decrypting data before it is sent to or retrieved from the database. It also covers key management and the use of JSON schemas to define which fields should be encrypted.
This document provides an overview of using Android and Firebase. It outlines key aspects of working with Firebase databases including their tree-like JSON structure, offline data support, and CRUD operations. Example code is given for creating a user model class, inserting, reading, updating, and deleting data from the Firebase database. Implementation in an Android app is discussed, including layout design and creating the database structure with nodes for app title and user profiles.
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.
Webinar: MongoDB 2.4 Feature Demo and Q&A on Hash-based ShardingMongoDB
In version 2.4, MongoDB introduces hash-based sharding, allowing the user to shard based on a randomized shard key to spread documents evenly across a cluster. Hash-based sharding is an alternative to range-based sharding, making it easier to manage your growing cluster. In this talk, we'll discuss provide an overview of this new feature and discuss the pros and cons of using a hash-based sharding vs. range-based approach.
Optimizing Slow Queries with Indexes and CreativityMongoDB
This document discusses optimizing slow queries in MongoDB through the use of indexes and schema design. It begins with examples of common performance issues like inefficient reads from table scans and writes causing locks. Each example shows the slow query, explains the problem, and proposes a solution like adding an index. It emphasizes that new indexes only scale up to a point and sometimes the best approach is to redesign the schema or add hardware. The talk provides guidance on measuring performance, finding slow queries, determining if they can be indexed, and rephrasing problems in terms of desired queries.
1. The document explains Ajax frameworks and functions from the Ajax Gold library. Ajax frameworks contain JavaScript functions that simplify making Ajax requests, reducing code. The getDataReturnText function uses GET to fetch text from a URL, calling a callback function on completion. getDataReturnXml similarly fetches XML. postDataReturnText uses POST to send data to a URL and receive a text response.
1. The document discusses using Ajax to return JavaScript code and objects from a server. Code examples are provided to return a JavaScript function from a PHP file using XMLHttpRequest, and to convert text into a JavaScript object.
2. Methods for using the XMLHttpRequest HEAD method are demonstrated to retrieve header information from the server, such as the server name, date/time, and file modification date.
3. The code is modified to extract only the last modified date from the header, and then further modified to display individual parts of the date like date, month, year, hours, minutes, and seconds.
4. An example is given to check if a URL exists using HEAD requests and XMLHttpRequest.
MongoDB .local Munich 2019: New Encryption Capabilities in MongoDB 4.2: A Dee...MongoDB
This document discusses MongoDB's new client-side field level encryption capabilities in version 4.2. It describes how client-side encryption works, including encrypting and decrypting data before it is sent to or retrieved from the database. It also covers key management and the use of JSON schemas to define which fields should be encrypted.
This document provides an overview of using Android and Firebase. It outlines key aspects of working with Firebase databases including their tree-like JSON structure, offline data support, and CRUD operations. Example code is given for creating a user model class, inserting, reading, updating, and deleting data from the Firebase database. Implementation in an Android app is discussed, including layout design and creating the database structure with nodes for app title and user profiles.
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.
Webinar: MongoDB 2.4 Feature Demo and Q&A on Hash-based ShardingMongoDB
In version 2.4, MongoDB introduces hash-based sharding, allowing the user to shard based on a randomized shard key to spread documents evenly across a cluster. Hash-based sharding is an alternative to range-based sharding, making it easier to manage your growing cluster. In this talk, we'll discuss provide an overview of this new feature and discuss the pros and cons of using a hash-based sharding vs. range-based approach.
Optimizing Slow Queries with Indexes and CreativityMongoDB
This document discusses optimizing slow queries in MongoDB through the use of indexes and schema design. It begins with examples of common performance issues like inefficient reads from table scans and writes causing locks. Each example shows the slow query, explains the problem, and proposes a solution like adding an index. It emphasizes that new indexes only scale up to a point and sometimes the best approach is to redesign the schema or add hardware. The talk provides guidance on measuring performance, finding slow queries, determining if they can be indexed, and rephrasing problems in terms of desired queries.
Thomas Rückstieß gave a presentation on indexing and query optimization in MongoDB. He discussed what indexes are, why they are needed, how to create and manage indexes, and how to optimize queries. He emphasized that absent or suboptimal indexes are a common performance problem and outlined some common indexing mistakes to avoid, such as trying to use multiple indexes per query, low selectivity indexes, and queries that cannot use indexes like regular expressions and negation.
This document provides an overview of indexing in MongoDB. It discusses what indexes are, why they are needed to optimize queries, and how to work with indexes in MongoDB. Some key points covered include how to create, manage, and optimize indexes. Common indexing mistakes are also discussed, such as trying to use multiple indexes per query, having indexes with low selectivity, and queries that cannot use indexes like regular expressions and negation queries.
Reducing Development Time with MongoDB vs. SQLMongoDB
Buzz Moschetti compares the development time and effort required to save and fetch contact data using MongoDB versus SQL over the course of two weeks. With SQL, each time a new field is added or the data structure changes, the SQL schema must be altered and code updated in multiple places. With MongoDB, the data structure can evolve freely without changes to the data access code - it remains a simple insert and find. By day 14, representing the more complex data structure in SQL would require flattening some data and storing it in non-ideal ways, while MongoDB continues to require no changes to the simple data access code.
Rapid and Scalable Development with MongoDB, PyMongo, and MingRick Copeland
This intermediate-level talk will teach you techniques using the popular NoSQL database MongoDB and the Python library Ming to write maintainable, high-performance, and scalable applications. We will cover everything you need to become an effective Ming/MongoDB developer from basic PyMongo queries to high-level object-document mapping setups in Ming.
Spring Data provides a unified model for data access and management across different data access technologies such as relational, non-relational and cloud data stores. It includes utilities such as repository support, object mapping and templating to simplify data access layers. Spring Data MongoDB provides specific support for MongoDB including configuration, mapping, querying and integration with Spring MVC. It simplifies MongoDB access through MongoTemplate and provides a repository abstraction layer.
Tame Accidental Complexity with Ruby and MongoMapperGiordano Scalzo
The document introduces MongoMapper, an ORM for MongoDB that aims to simplify Rails application development by avoiding accidental complexity. It discusses how MongoMapper handles object persistence, embedded documents, validation and callbacks. It also covers querying capabilities via Plucky and available plugins. The goal is to provide a familiar ActiveRecord-like interface while taking advantage of MongoDB's flexible data model.
MongoDB .local Houston 2019: Using Client Side Encryption in MongoDB 4.2MongoDB
Encryption is not a new concept to MongoDB. Encryption may occur in-transit (with TLS) and at-rest (with the encrypted storage engine). But MongoDB 4.2 introduces support for Client Side Encryption, ensuring the most sensitive data is encrypted before ever leaving the client application. Even full access to your MongoDB servers is not enough to decrypt this data. And better yet, Client Side Encryption can be enabled at the "flick of a switch".
This session covers using Client Side Encryption in your applications. This includes the necessary setup, how to encrypt data without sacrificing queryability, and what trade-offs to expect.
This document discusses MongoDB and PHP. It provides an introduction to MongoDB, explaining why it was created and some of its key features and goals. It then discusses how to connect to MongoDB from PHP, perform basic CRUD operations like inserting and querying documents, and how PHP handles MongoDB concepts like documents, collections, and ObjectId keys. Nested documents and various query operators are also covered. The document is aimed at developers looking to use MongoDB as a database for PHP applications.
Paintfree Object-Document Mapping for MongoDB by Philipp KrennJavaDayUA
This document summarizes a talk on using Morphia, an object-document mapping library for MongoDB. Morphia allows mapping Java objects to MongoDB documents using annotations, providing an object-relational mapping-style interface for MongoDB. The talk covers Morphia features like collections, indexes, queries, and patterns for normalization and inheritance. While Morphia simplifies development, the speaker notes it does not provide transactions or joins like traditional ORMs.
Data access 2.0? Please welcome: Spring Data!Oliver Gierke
Spring Data provides a consistent programming model for data access while retaining store-specific features. It supports common repositories and query languages across relational, document, and graph databases. Spring Data includes sophisticated mapping support, template classes, query methods in repository interfaces, and integration of Querydsl for complex queries. It allows for cross-store persistence while also enabling specialized features like geospatial queries for MongoDB.
MongoDB Basics - An introduction of mongo for beginners.
Covered basic of Indexing, Replicaset, Covered queries, Backup tools and Why we need mongo and some use cases.
This document introduces Spring Data, an open source framework that provides a consistent programming model for data access while retaining store-specific features. It supports both relational and non-relational data stores. Spring Data offers mapping support, template classes, and repositories that provide a common interface for querying different data sources. It aims to simplify data access and reduce boilerplate code.
KNOTX.io is an event-driven, non-blocking integration framework that uses Vert.x and RxJava. It allows for highly scalable and modular integration of modern platforms. KNOTX provides features like data ingestion from CMSs and services, forms handling, prototyping with mocks, and extensibility through pluggable modules. It handles integration challenges through a transparent, reusable, and easily replaceable modern microservices-based architecture. Performance is optimized through asynchronous non-blocking code, event-driven architecture, and reactive programming with RxJava.
Using Arbor/ RGraph JS libaries for Data VisualisationAlex Hardman
This document provides an overview and code snippets for data visualization using JavaScript libraries. It discusses using the Arbor.js and RGraph libraries to create interactive node graphs and bar charts. Code examples are provided for initializing the graph systems, feeding in data, handling user interactions, and rendering the graph objects and edges on an HTML5 canvas. Object-oriented patterns like MVC are demonstrated to organize the code.
Query Analyzing
Introduction into indexes
Indexes In Mongo
Managing indexes in MongoDB
Using index to sort query results.
When should I use indexes.
When should we avoid using indexes.
The document provides an overview of Ajax operations and patterns. It discusses the anatomy of an Ajax pattern which includes a trigger, operation, and update. It then covers using the XMLHttpRequest (XHR) object to make requests, including how to create a request, write a callback, make the request, and parse responses. The document also discusses different response formats like XML, HTML, and JSON and how to handle each type of response. It concludes with an overview of common Ajax operations like lookup, persist, validate, invoke, and message.
This book attempts to address the movement of the Young Indians who want fight against the environment crisis facing the global world, who have ideas and solutions.
This document provides information about the Freelance Community of Top Coders called Showcase. It summarizes the community's founding date, top members and their achievements. It also outlines the college-wise distribution of active students, categories of projects completed, benefits of using the community for posting projects, running coding contests and hiring top coders. Contact details are provided at the end for users to reach out to the founder.
Retargeting 101 - Presentation at 500 startupslexity
The document is a presentation by Amit Kumar about retargeting using Google Adwords. It discusses who to retarget, how to set up an Adwords campaign for retargeting including creating retargeting lists and ad creatives. It also touches on bid management, automation, conversion tracking and some observations about retargeting.
The food processing industry in India provides opportunities for US companies. India is a major producer of agricultural goods but only processes 6% domestically, compared to 60-80% in developed nations. The processed food market is growing at 14% annually but remains underdeveloped, with only 2% of total agricultural output processed. Increased urbanization, incomes, and preferences for convenience foods are driving demand for processed and packaged foods. While India has strong agricultural production, its share of global food trade is less than 2% due to low domestic processing levels. The industry remains fragmented with potential for investment and consolidation.
Thomas Rückstieß gave a presentation on indexing and query optimization in MongoDB. He discussed what indexes are, why they are needed, how to create and manage indexes, and how to optimize queries. He emphasized that absent or suboptimal indexes are a common performance problem and outlined some common indexing mistakes to avoid, such as trying to use multiple indexes per query, low selectivity indexes, and queries that cannot use indexes like regular expressions and negation.
This document provides an overview of indexing in MongoDB. It discusses what indexes are, why they are needed to optimize queries, and how to work with indexes in MongoDB. Some key points covered include how to create, manage, and optimize indexes. Common indexing mistakes are also discussed, such as trying to use multiple indexes per query, having indexes with low selectivity, and queries that cannot use indexes like regular expressions and negation queries.
Reducing Development Time with MongoDB vs. SQLMongoDB
Buzz Moschetti compares the development time and effort required to save and fetch contact data using MongoDB versus SQL over the course of two weeks. With SQL, each time a new field is added or the data structure changes, the SQL schema must be altered and code updated in multiple places. With MongoDB, the data structure can evolve freely without changes to the data access code - it remains a simple insert and find. By day 14, representing the more complex data structure in SQL would require flattening some data and storing it in non-ideal ways, while MongoDB continues to require no changes to the simple data access code.
Rapid and Scalable Development with MongoDB, PyMongo, and MingRick Copeland
This intermediate-level talk will teach you techniques using the popular NoSQL database MongoDB and the Python library Ming to write maintainable, high-performance, and scalable applications. We will cover everything you need to become an effective Ming/MongoDB developer from basic PyMongo queries to high-level object-document mapping setups in Ming.
Spring Data provides a unified model for data access and management across different data access technologies such as relational, non-relational and cloud data stores. It includes utilities such as repository support, object mapping and templating to simplify data access layers. Spring Data MongoDB provides specific support for MongoDB including configuration, mapping, querying and integration with Spring MVC. It simplifies MongoDB access through MongoTemplate and provides a repository abstraction layer.
Tame Accidental Complexity with Ruby and MongoMapperGiordano Scalzo
The document introduces MongoMapper, an ORM for MongoDB that aims to simplify Rails application development by avoiding accidental complexity. It discusses how MongoMapper handles object persistence, embedded documents, validation and callbacks. It also covers querying capabilities via Plucky and available plugins. The goal is to provide a familiar ActiveRecord-like interface while taking advantage of MongoDB's flexible data model.
MongoDB .local Houston 2019: Using Client Side Encryption in MongoDB 4.2MongoDB
Encryption is not a new concept to MongoDB. Encryption may occur in-transit (with TLS) and at-rest (with the encrypted storage engine). But MongoDB 4.2 introduces support for Client Side Encryption, ensuring the most sensitive data is encrypted before ever leaving the client application. Even full access to your MongoDB servers is not enough to decrypt this data. And better yet, Client Side Encryption can be enabled at the "flick of a switch".
This session covers using Client Side Encryption in your applications. This includes the necessary setup, how to encrypt data without sacrificing queryability, and what trade-offs to expect.
This document discusses MongoDB and PHP. It provides an introduction to MongoDB, explaining why it was created and some of its key features and goals. It then discusses how to connect to MongoDB from PHP, perform basic CRUD operations like inserting and querying documents, and how PHP handles MongoDB concepts like documents, collections, and ObjectId keys. Nested documents and various query operators are also covered. The document is aimed at developers looking to use MongoDB as a database for PHP applications.
Paintfree Object-Document Mapping for MongoDB by Philipp KrennJavaDayUA
This document summarizes a talk on using Morphia, an object-document mapping library for MongoDB. Morphia allows mapping Java objects to MongoDB documents using annotations, providing an object-relational mapping-style interface for MongoDB. The talk covers Morphia features like collections, indexes, queries, and patterns for normalization and inheritance. While Morphia simplifies development, the speaker notes it does not provide transactions or joins like traditional ORMs.
Data access 2.0? Please welcome: Spring Data!Oliver Gierke
Spring Data provides a consistent programming model for data access while retaining store-specific features. It supports common repositories and query languages across relational, document, and graph databases. Spring Data includes sophisticated mapping support, template classes, query methods in repository interfaces, and integration of Querydsl for complex queries. It allows for cross-store persistence while also enabling specialized features like geospatial queries for MongoDB.
MongoDB Basics - An introduction of mongo for beginners.
Covered basic of Indexing, Replicaset, Covered queries, Backup tools and Why we need mongo and some use cases.
This document introduces Spring Data, an open source framework that provides a consistent programming model for data access while retaining store-specific features. It supports both relational and non-relational data stores. Spring Data offers mapping support, template classes, and repositories that provide a common interface for querying different data sources. It aims to simplify data access and reduce boilerplate code.
KNOTX.io is an event-driven, non-blocking integration framework that uses Vert.x and RxJava. It allows for highly scalable and modular integration of modern platforms. KNOTX provides features like data ingestion from CMSs and services, forms handling, prototyping with mocks, and extensibility through pluggable modules. It handles integration challenges through a transparent, reusable, and easily replaceable modern microservices-based architecture. Performance is optimized through asynchronous non-blocking code, event-driven architecture, and reactive programming with RxJava.
Using Arbor/ RGraph JS libaries for Data VisualisationAlex Hardman
This document provides an overview and code snippets for data visualization using JavaScript libraries. It discusses using the Arbor.js and RGraph libraries to create interactive node graphs and bar charts. Code examples are provided for initializing the graph systems, feeding in data, handling user interactions, and rendering the graph objects and edges on an HTML5 canvas. Object-oriented patterns like MVC are demonstrated to organize the code.
Query Analyzing
Introduction into indexes
Indexes In Mongo
Managing indexes in MongoDB
Using index to sort query results.
When should I use indexes.
When should we avoid using indexes.
The document provides an overview of Ajax operations and patterns. It discusses the anatomy of an Ajax pattern which includes a trigger, operation, and update. It then covers using the XMLHttpRequest (XHR) object to make requests, including how to create a request, write a callback, make the request, and parse responses. The document also discusses different response formats like XML, HTML, and JSON and how to handle each type of response. It concludes with an overview of common Ajax operations like lookup, persist, validate, invoke, and message.
This book attempts to address the movement of the Young Indians who want fight against the environment crisis facing the global world, who have ideas and solutions.
This document provides information about the Freelance Community of Top Coders called Showcase. It summarizes the community's founding date, top members and their achievements. It also outlines the college-wise distribution of active students, categories of projects completed, benefits of using the community for posting projects, running coding contests and hiring top coders. Contact details are provided at the end for users to reach out to the founder.
Retargeting 101 - Presentation at 500 startupslexity
The document is a presentation by Amit Kumar about retargeting using Google Adwords. It discusses who to retarget, how to set up an Adwords campaign for retargeting including creating retargeting lists and ad creatives. It also touches on bid management, automation, conversion tracking and some observations about retargeting.
The food processing industry in India provides opportunities for US companies. India is a major producer of agricultural goods but only processes 6% domestically, compared to 60-80% in developed nations. The processed food market is growing at 14% annually but remains underdeveloped, with only 2% of total agricultural output processed. Increased urbanization, incomes, and preferences for convenience foods are driving demand for processed and packaged foods. While India has strong agricultural production, its share of global food trade is less than 2% due to low domestic processing levels. The industry remains fragmented with potential for investment and consolidation.
Dokumen tersebut merangkum berbagai pengertian dan klasifikasi kelompok sosial. Kelompok sosial didefinisikan sebagai sekumpulan manusia yang memiliki ciri dan pola interaksi yang sama serta kesadaran keanggotaan bersama. Kelompok sosial dapat dikelompokkan berdasarkan cara terbentuknya, erat longgarnya ikatan, kualitas hubungan, dan pencapaian tujuan. Beberapa contoh kelompok s
Nigeria media consumption research main 23 apr-12rosannaman
1) Mobile devices are becoming the primary means of media consumption in Nigeria, with the average mobile web user spending 5.5 hours per day on mobile media.
2) 67% of mobile web users in Nigeria use their mobile as either their primary or exclusive means of going online.
3) Mobile is increasingly becoming a major component of internet behavior across Africa and Asia Pacific regions, with 67% of Nigerian mobile web users using their mobile as their primary or only way to access the internet.
Business in networks by Antony Mayfield at Internet World Kongress MunichAntony Mayfield
This document summarizes a presentation given by Antony Mayfield at the Internet World Congress on digital business networks. The presentation discussed how digital marketing is transforming businesses and requiring new digital literacies. It also examined the concepts of networks, data, social media, and how organizations need to adapt to an increasingly complex business environment driven by networks and connectivity. New skills like network thinking, sharing, and focus were identified as important for businesses and individuals.
IL&FS is an infrastructure company with 256 subsidiaries focused on sectors like bridges, buildings, energy, transportation and urban development. It uses digital marketing strategies like blogs, social media and thought leadership reports. It provides infrastructure-related services and packaging to government, private sector and organizations. While employment opportunities and available resources are strengths, the industry faces threats from natural disasters, inefficient planning and safety challenges.
Msc business and management dissertation ankit yadav - 450148ankityadavuk
The document is a dissertation analyzing irregularities in India's Department of Telecommunications (DOT) allocation of second generation telecom licenses in 2008. It finds gaps in implementation of the Unified Access Services licensing model, including undue haste in processing applications. Key issues were multiple activities on January 10, 2008 including license issuance, spectrum allocation, and access to dual technology. The process lacked transparency and failed to maximize revenue. This resulted in significant financial losses to the government from underpricing spectrum, estimated at over $30 billion. Recommendations include establishing an independent regulator and conducting market-based auctions for licenses and spectrum.
This document discusses the training and development policies and processes at Shreya Life Sciences. It provides an overview of the company, its mission to become a top 25 pharmaceutical company in India by 2014-15 through organic and inorganic growth.
The training policy focuses on enhancing scientific knowledge and communication skills of field executives, controlling the percentage of untrained field force, and providing special guidance to area managers. The training process involves need analysis, various training methods like classroom and on-the-job training, and evaluation through formative, process, outcome and impact assessments.
Challenges for a good comp and ben in current indian scenario Manisha Kunwar
This document summarizes compensation and benefits practices in India. It discusses the evolution of India's benefits system from a state-focused model to one that also encourages private initiatives. It highlights the importance of compensation for attracting and motivating talent. The document also outlines challenges like managing workforce diversity and aligning compensation with employee needs. Current trends noted include viewing total compensation costs and linking variable pay to individual and company performance. The document concludes by mentioning a compensation survey report from Deloitte.
This document discusses the importance of leadership and defines key concepts. It describes leadership as the process of influencing others to work enthusiastically toward achieving objectives. Leadership involves establishing a clear vision, sharing that vision with others, providing knowledge to realize it, and coordinating interests. The document outlines different leadership styles such as autocratic, bureaucratic, charismatic, democratic, and laissez-faire. It also lists characteristics, functions, and importance of effective leadership, and distinguishes the differences between managers and leaders.
HR planning identifies current and future human resource needs to achieve organizational goals, while an HR audit reviews policies, procedures, and legal compliance to eliminate liabilities and implement best practices. The document discusses the importance of HR planning and forecasting to meet replacement, expansion, and future staffing needs. It also outlines the objectives and approaches of an HR audit, including comparing policies and results to benchmarks, legal standards, and management objectives. The audit evaluates all HR functions from planning to industrial relations.
Café Coffee Day and Starbucks are two leading coffee chains in India. Café Coffee Day was launched in 1994 and has over 1438 outlets across India serving hot coffee, cold coffee, food and beverages. Starbucks entered India in 2012 through a joint venture with Tata and currently has 7 outlets in Mumbai and Delhi. Both chains offer similar coffee and food products but Café Coffee Day has significantly more outlets and higher revenues in India compared to Starbucks which is focusing on expanding operations in the country.
Samsonite is one of the largest luggage companies in the world, celebrating 100 years in business in 2010. It was founded in 1910 as Shwayder Trunk Manufacturing Company and began using the Samsonite trademark in 1941. Samsonite has grown significantly over the decades through acquisitions, joint ventures, and innovation, and now operates in over 100 countries with 23,000 retail outlets. The company owns several major luggage brands including Samsonite, American Tourister, Lacoste bags, and Timberland bags.
The document summarizes the manufacturing sector in India. It discusses that manufacturing contributes 15.24% to India's GDP and employs over 6 million people. The major manufacturing sectors include textiles, metals, chemicals, automotive, and electronics. While India has the potential to increase manufacturing's share of GDP to 25%, the sector faces challenges like inadequate infrastructure, unskilled labor, low access to financing, and complex regulations. The government is taking steps to address issues and promote growth in manufacturing.
Pestle Analysis – South Korea and Samsung PPTManisha Kunwar
This document provides a PESTLE analysis of South Korea. It analyzes the political, economic, social, technological, legal and environmental factors in South Korea. Some key points include:
- South Korea has a population of 50 million and its capital and largest city is Seoul with 9.8 million people.
- Politically, centralization of power and strong foreign relationships are strengths, while military influence in politics is a challenge. Future prospects include confidence building with North Korea.
- Economically, export sector and economic reforms are strengths, while low imports and FDI are challenges. Future prospects include free trade agreements and competitive tax policies.
- Socially, challenges include low fertility rates and aging society, while high
GreenDAO is an ORM (Object Relational Mapping) library that uses code generation to provide a faster alternative to reflection-based ORMs for Android. It works by mapping Java objects to SQLite database tables to allow for CRUD (create, read, update, delete) operations on the data. The library includes a schema definition and code generator that automatically generates DAO classes to manage database access and queries. This avoids the performance overhead of reflection and allows for compiler checks of the database schema.
This document discusses metaprogramming with JavaScript. Metaprogramming allows program structure and functionality to be modified programmatically. It works at design-time, compile-time, run-time, or just-in-time. Changes can occur to data types, identifiers, calls, algorithm parameters, and more. Introspection is an important technique that allows examining an object's properties and methods. Several examples demonstrate extracting metadata from tasks to build a configurable metamodel for iterating tasks, filtering names based on conditions, and implementing introspection in a data source. Overall, metaprogramming can decrease code size, increase flexibility and integration, and provide more working pleasure while potentially decreasing speed slightly.
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.
This document contains code for a .NET class library that provides methods for generating hardware identification codes and license keys. It includes methods for retrieving hardware identifiers like the hard drive serial number, motherboard serial number, and CPU ID. It also contains encryption utilities for hashing, encoding, and generating cryptographic keys. The main purpose seems to be activating or validating software licenses based on hardware identifiers in a machine-specific way.
This document discusses using MongoDB as a log collector. It provides examples of storing log data from syslog-ng in MongoDB collections, including filtering and parsing logs. It also gives examples of analyzing the log data through map-reduce to find top IP addresses and provides ideas for other uses like CAPTCHAs, error localization, and analytics.
The document discusses several common Java anti-patterns, including:
1) Approving a task by rejecting it in a method called "approve".
2) Avoiding the use of helper libraries to simplify tasks like file name parsing.
3) Using reflection when direct method calls would suffice.
This document introduces Simple.Data, an open source .NET library that aims to simplify database access. It demonstrates how Simple.Data allows retrieving data with a single line of code, compared to multiple lines of code needed with traditional ADO.NET. Simple.Data also supports more complex queries and basic object-relational mapping capabilities. The goal of Simple.Data is to favor convention over configuration for common data access tasks.
The document discusses using MongoDB as a log collector. It provides an agenda that includes who the presenter is, how logging is currently done, and ideas for using MongoDB for logging in the future. Specific topics covered include using syslog-ng to send logs to MongoDB, examples of logging Apache traffic, and map-reduce examples for analyzing logs like finding the top 10 IP addresses.
This document discusses the DataStax Java driver and DevCenter tool for Cassandra. It provides an overview of client/server communication in Cassandra, including request pipelining and notifications. It then summarizes key aspects of the asynchronous Java driver architecture, including failover handling. The document demonstrates basic usage of the driver for connecting, reading, writing with prepared statements, and asynchronous reads. It also introduces the object mapping functionality for avoiding boilerplate code when mapping Cassandra rows to Java objects.
- JavaScript has come a long way from its early days of form validation and image rollovers in 1995 to modern innovations like ES2015, Promises, async/await, and Web Assembly.
- Today, JavaScript features like classes, arrow functions, and template strings in ES2015 are widely adopted, and new standards like Promises, generators, and async programming have revolutionized asynchronous JavaScript.
- Emerging web platform technologies like Web Components, Service Workers, and CSS Paint enable new kinds of custom elements, offline/progressive web apps, and painting APIs, while proposals like decorators, value types, and module loading continue pushing the language forward.
This document summarizes the new features of JPA 2.0 as defined in JSR 317. Key additions include expanded object-relational mappings, improved domain modeling capabilities, enhancements to the Java Persistence query language including a Criteria API, standardization of configuration hints, support for validation via JSR 303, and second level caching.
This document contains advice from Marcin Dryka on test-driven development (TDD) and best practices for writing unit tests. Some of the key points made include:
1. TDD is a design process, not just a testing process. Tests should describe desired functionality before writing code.
2. Tests should have single, well-defined purposes and only test one interaction at a time. Avoid complex logic in tests.
3. Mock external dependencies but not the system under test. Tests should be deterministic and independent from each other.
We all know, or should know, about SOLID. The question is, do we write C++ according to the SOLID principles?
https://platis.solutions/blog/2020/06/22/how-to-write-solid-cpp/
The document discusses XML parsers and compares DOM and SAX parsers. DOM parsers build an in-memory tree representation of the XML document, allowing random access but using more memory. SAX parsers use callbacks to stream the XML events to the client, using less memory but providing event-based access. The document also provides an overview of the popular Xerces-J parser and gives an example of using DOM and SAX parsers to extract circle element information from an XML document.
The document describes a Java program that simulates DNS using UDP sockets. It includes algorithms for getting frame size from the user, creating and sending frames to the server from the client, and the server sending ACK/NACK signals. The program code provided implements a UDP DNS server that receives host requests, looks up IPs in a hardcoded array, and responds to clients. It also implements a UDP DNS client that takes user input, sends requests to the server, and displays the IP response.
Developing Applications with MySQL and Java for beginnersSaeid Zebardast
A presentation about Developing Applications with MySQL and Java for beginners. It includes the following topics:
- Requirements
- MySQL Data Definitions
- Java Classes
- MySQL Connector (JDBC)
- Define Methods
- Compile and Run
The document discusses 10 ways to improve code quality based on a presentation by Martin Cronje. It provides examples of refactoring code to remove switch/if statements, use polymorphism instead of switch statements, extract methods to improve readability, add comments appropriately, use frameworks instead of building your own, and avoid premature optimization. It also emphasizes fundamentals over cool technologies and understanding quality and purpose.
The document discusses database input vulnerabilities like SQL injection and inference problems. It provides remedies like using parameterized queries and stored procedures to prevent SQL injection, and applying statistical inference controls to queries to prevent sensitive data from being inferred. The document covers topics like never connecting as a system admin, building SQL statements securely, and using quotation functions to avoid injection when dynamically building SQL.
The document discusses Android Architecture Components which provide lifecycle-aware observables, lightweight ViewModels, and object mapping for SQLite. It describes lifecycles and how they allow observers to automatically subscribe and unsubscribe from data based on a component's lifecycle state. LiveData is introduced as an observable data holder that is lifecycle-aware and manages automatic subscription. ViewModels are described as data holders for UI controllers that survive configuration changes. Room provides object mapping for SQLite to reduce boilerplate code. The document outlines how activities, fragments, ViewModels, repositories, and data sources fit together in the Android architecture.
1. Di WebTech Mail - (no subject) https://mail.google.com/mail/u/0/?ui=2&ik=f2506c64f4&view=pt&searc...
Ankur Kumar <akumar@diwebtech.com>
(no subject)
1 message
Pankaj Sharma <pksharma@diwebtech.com> Tue, Jul 24, 2012 at 11:29 AM
To: Ankur Kumar <akumar@diwebtech.com>
using System;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using MySql.Data.MySqlClient;
using System.Data;
using System.Net;
using System.IO;
[WebService(Namespace = "http://rwa47.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class Service : System.Web.Services.WebService
{
MySqlConnection connection = new MySqlConnection("server=localhost; user=root; password=123;
database=easymoney");
public Service()
{
}
public struct RawDataEnq
{
public String transdate;
public String usrtransid;
public String usrcity;
public String usrbank;
public String usrname;
public String usraccountno;
public String usramount;
}
public struct RawDataLogin
{
public String id;
public bool result;
}
public struct RawData
{
public String username;
public String amount;
public String type;
public String comment;
public String date;
1 of 5 9/1/2012 8:24 PM
2. Di WebTech Mail - (no subject) https://mail.google.com/mail/u/0/?ui=2&ik=f2506c64f4&view=pt&searc...
public String prevbal;
public String id;
public String time;
}
[WebMethod]
public DataSet connectoToMySql()
{
MySqlDataAdapter mysqlAdap = new MySqlDataAdapter("SELECT * FROM pankajku201235", connection);
DataSet ds = new DataSet();
mysqlAdap.Fill(ds, "users");
return ds;
}
[WebMethod]
public RawDataLogin [] LoginCheck(string user_id, string user_pass)
{
MySqlCommand mycommand = connection.CreateCommand();
connection.Open();
//mycommand.CommandText = "SELECT COUNT(*) FROM members where (username='" + user_id + "' and
password='" + user_pass + "')";
//object scalar = mycommand.ExecuteScalar();
//int rows = int.Parse(scalar.ToString());
//mycommand.Dispose();
int i = 0;
mycommand.CommandText = "Select id,username,password from members where (username='" + user_id + "'
and password='" + user_pass + "')";
RawDataLogin[] Data = new RawDataLogin[1];
)
MySqlDataAdapter myDA = new MySqlDataAdapter(mycommand);
MySqlDataReader reader = mycommand.ExecuteReader();
while (reader.Read())
{
if (user_id.Equals(reader.GetString(1).ToString()) && user_pass.Equals(reader.GetString(2).ToString()))
{
Data[i].id = reader.GetString(0).ToString();
Data[i].result = true;
}
else
{
Data[i].result = false ;
}
}
reader.Close();
return Data ;
}
[WebMethod]
public RawData [] MyAccount(string user_id)
{
MySqlCommand mycommand = connection.CreateCommand();
connection.Open();
mycommand.CommandText = "SELECT COUNT(*) FROM recharge where username='"+user_id +"'";
object scalar = mycommand.ExecuteScalar();
int rows = int.Parse(scalar.ToString());
mycommand.Dispose();
int i = 0;
2 of 5 9/1/2012 8:24 PM
3. Di WebTech Mail - (no subject) https://mail.google.com/mail/u/0/?ui=2&ik=f2506c64f4&view=pt&searc...
mycommand.CommandText = "Select * from recharge where username='" + user_id + "'";
RawData[] Data = new RawData[rows];
MySqlDataAdapter myDA = new MySqlDataAdapter(mycommand);
MySqlDataReader reader = mycommand.ExecuteReader();
while (reader.Read())
{
if (i < rows)
{
Data[i].username = reader.GetString(0).ToString();
Data[i].amount = reader.GetString(1).ToString();
Data[i].type = reader.GetString(2).ToString();
Data[i].comment = reader.GetString(3).ToString();
Data[i].date = reader.GetString(4).ToString();
Data[i].prevbal = reader.GetString(5).ToString();
Data[i].id = reader.GetString(6).ToString();
Data[i].time = reader.GetString(6).ToString();
}
i++;
}
reader.Close();
return Data;
}
[WebMethod]
public RawDataEnq[] Enquiry(string user_id, DateTime start_date, DateTime end_date)
{
MySqlCommand mycommand = connection.CreateCommand();
connection.Open();
mycommand.CommandText = "SELECT COUNT(*) FROM " + user_id + " where transdate between '" +
start_date.Date.ToString("yyyy-MM-dd") + "' and '" + end_date.Date.ToString("yyyy-MM-dd") + "'";
object scalar = mycommand.ExecuteScalar(); 6
int rows = int.Parse(scalar.ToString());
mycommand.Dispose();
int i = 0;
mycommand.CommandText = "Select transdate,usrtransid,usrcity,usrbank,usrname,usraccountno,usramount
from " + user_id + " where transdate between '" + start_date.Date.ToString("yyyy-MM-dd") + "' and '" +
end_date.Date.ToString("yyyy-MM-dd") + "'";
RawDataEnq[] Data = new RawDataEnq[rows];
MySqlDataAdapter myDA = new MySqlDataAdapter(mycommand);
MySqlDataReader reader = mycommand.ExecuteReader();
while (reader.Read())
{
if (i < rows)
{
Data[i].transdate = reader.GetString(0).ToString();
Data[i].usraccountno = reader.GetString(1).ToString();
Data[i].usramount = reader.GetString(2).ToString();
Data[i].usrbank = reader.GetString(3).ToString();
Data[i].usrcity = reader.GetString(4).ToString();
Data[i].usrname = reader.GetString(5).ToString();
Data[i].usrtransid = reader.GetString(6).ToString();
}
i++;
}
reader.Close();
return Data;
3 of 5 9/1/2012 8:24 PM
4. Di WebTech Mail - (no subject) https://mail.google.com/mail/u/0/?ui=2&ik=f2506c64f4&view=pt&searc...
}
[WebMethod]
public bool ChangePassword(string user_id, string current_pass, string new_pass)
{
MySqlCommand mycommand = connection.CreateCommand();
connection.Open();
mycommand.CommandText = "update members set password='" + new_pass + "' where username='" +
user_id + "' and password='" + current_pass + "'";
mycommand.ExecuteNonQuery();
mycommand.Dispose();
bool result = false;
mycommand.CommandText = "Select username,password from members where (username='" + user_id + "')";
MySqlDataAdapter myDA = new MySqlDataAdapter(mycommand);
MySqlDataReader reader = mycommand.ExecuteReader();
while (reader.Read())
{
if (new_pass.Equals(reader.GetString(1).ToString()))
result = true;
}
reader.Close();
return result;
}
[WebMethod]
public string MoneyTransfer(string user_id, string user_bank, string user_city, string user_name, string
user_accountno, int user_amount)
{
MySqlCommand mycommand = connection.CreateCommand();
connection.Open(); e
mycommand.CommandText = "Select afterbal from " + user_id + " ";
MySqlDataAdapter myDA = new MySqlDataAdapter(mycommand);
MySqlDataReader reader = mycommand.ExecuteReader();
int rows = 0;
while (reader.Read())
{
rows = int.Parse(reader.GetString(0).ToString());
}
int user_prevbal = rows;
int user_afterbal = rows - (user_amount + 50);
DateTime user_transdate = DateTime.Today;
DateTime user_transtime = DateTime.Now;
reader.Close();
mycommand.Dispose();
mycommand.CommandText = "insert into " + user_id + " (usrtransid,usrvoucherno,usrbank,usrstate,usrdistrict,
usrcity,usrname,usraccountno,usramount,transdate,transtime,usrifsccode ,prevbal,afterbal) values(500,100,'" +
user_bank + "','up','lko','" + user_city + "','" + user_name + "','" + user_accountno + "'," + user_amount + ",'" +
user_transdate.Date.ToString("yyyy-MM-dd") + "','" + user_transtime.ToString("HH:mm:ss") + "','fdfd'," +
user_prevbal + "," + user_afterbal + ")";
mycommand.ExecuteNonQuery();
mycommand.Dispose();
string s = "";
mycommand.CommandText = "Select usrname from " + user_id + " ";
MySqlDataAdapter myDA1 = new MySqlDataAdapter(mycommand);
MySqlDataReader reader1 = mycommand.ExecuteReader();
while (reader.Read())
{
4 of 5 9/1/2012 8:24 PM
5. Di WebTech Mail - (no subject) https://mail.google.com/mail/u/0/?ui=2&ik=f2506c64f4&view=pt&searc...
s = reader1.GetString(0).ToString();
}
reader1.Close();
return s;
}
[WebMethod]
public string CurrentBalance(string user_id)
{
string rows = "";
MySqlCommand mycommand = connection.CreateCommand();
connection.Open();
mycommand.CommandText = "Select afterbal from " + user_id + " ";
MySqlDataAdapter myDA = new MySqlDataAdapter(mycommand);
MySqlDataReader reader = mycommand.ExecuteReader();
while (reader.Read())
{
rows =reader.GetString(0).ToString();
}
reader.Close();
return rows;
}
}
e
5 of 5 9/1/2012 8:24 PM