Dec 26 2011

Picking the Best Fit for Wooden Floors

When you make evaluation of your situation purchase a new carpeting for any part of your household you need to know what will fit, both for aesthetics and heading work in the space you may have.  Given that there exists a number of merchants that provide a variety of flooring options like wood flooring, laminate flooring, bamboo flooring, etc.

You should have a think about what you’re looking for from flooring followed by narrow down the best types suitable for you.  Here, we will guide you through the three most common flooring alternatives, for example hardwood flooring, laminate flooring, and bamboo floors.

Hardwood flooring, given that the name implies, gives you flooring options constructed from wood. In these, you can get to select from various kinds of wood, different finishes, different patterns, etc.  Natural hardwood is also very durable easy to preserve, the next always a good option.

Hardwood flooring liquidators are businesses that purchase their stock in bulk, and this allows them to sell some at considerably the best prices, especially if you are to compare their prices with retail outlets.  They may be new to a lot of industries but the truth is will find larger stores often supply best prices and they are rather easy to find.

In truth, there is a good chance that a solitary flooring liquidator will be equipped to supply you with diverse flooring options, and good flooring liquidators also sell other flooring related materials like cleaners, adhesives, fasteners, etc.1201BFO2011HPBL

Nov 09 2011

Lightweight Databases

Introduction

The internet (WWW) allows hypertext documents to become created and browse by users over the Internet. A lot of information is available these days at the various WWW sites, and appears to be growing exponentially. Moreover the net is being cross-linked make it possible for users to locate their way round the available information. Although WWW documents might be useful to human readers, there’s often a have to perform automated queries on information.

Typical these include searching for contact details, determining costs of services, re-formatting existing documents, searching indexes etc. The ability to perform predicate queries on the body of knowledge is important for resource discovery and handling the information overload which WWW engenders. Current WWW technologies don’t provide adequate support for such automated use of information. Many authors have proposed the integration of relational database anagement systems (RDBMSs) with WWW, although they have concentrated on interactive instead of automated query submission.

We now have investigated an alternate approach by which web pages are marked-up with semantic information based on an underlying database schema. We range from the database structure explicitly in to the web, allowing queries to become performed client- or server-side. While not suitable for applications with highly intensive database requirements, such “lightweight” database webs allow modest database functionality to become obtained effortlessly and with no overhead of utilizing a full RDBMS. In this paper we present our approach and discuss it in relationship with other work on database integration and semantic mark-up.

We describe an example application of the strategy that of “flattening” a document with hyperlinks to create a paper copy.

Semantic Mark-up

A document is really a source of information for any reader. An average document is going to be structured into headings, sections, tables etc, each of which could have useful information. SGML[SoftQuad] allows a document’s structure to become completely divorced from the presentation. HTML[Berners-Lee94] is stiffer in this respect, for the reason that presentational information is implicit within the tags accustomed to mark-up a document. Although a document makes information open to the human reader, making exactly the same information available to automatic processing tools requires additional effort.

For instance, although my phone number is immediately available on the internet, an automatic tool could be hard-put to distinguish it from my fax number. Human readers are much more tolerant than machines.

Something must be in a position to determine the semantic content of a part of a document and extract the appropriate information (without extraneous formatting). It should be able to navigate around an internet to locate the necessary information – preferably without lengthy searching – and cope with relationships between bits of information.

Techniques already exist inside the database world for formally describing interconnected information. Probably the most widely-accepted technique is to make use of the relational model[Date86] to structure information. The data may then be accessed by posing queries in relational algebra. We now have investigated importing the relational formalism into WWW using a minimal extension to HTML. This enables elements of a document to become identified with aspects of an underlying relational database.

The data is still stored directly within the web, using the database structures offering an alternate view to the data.

Notation

In overview, the approach is really as follows: we first choose the information which you want to publish in machine-readable form, and execute a standard data analysis onto it. The result of this can be a conceptual model of the data as a assortment of entities having attributes and connected by relations.

Then we mark-up information within the web pages based on this schema – observe that it is not necessary to create a logical type of the information as tables as will be the case for any standard relational database. The notation for mark-up extends HTML with three extra elements:

??<ENT>…</ENT> identifies an entity of the particular class

??<ATTR>…</ATTR> identifies a named attribute of the entity

??<REL>…</REL> denotes rapport between entities

These components directly capture the conceptual-level structure of knowledge, allowing individual entities to encapsulate several sub-values as attributes and allowing entities to become linked using meaningful connectives.

No elements has any presentational content – they offer meta-information about a part of a document but don’t alter its presentation. They might thus be prevented by browsers presenting a document to some user. The overhead in adding such mark-up to some page is usually very small, and thus does not effect on performance.

The sun and rain turn an easy web right into a lightweight database. They permit a database formalism to become imported straight into web pages, which allows a database-aware client application to extract information from the pages based on the underlying schema. We shall explain using the mark-up by way of an example below. Further information on the notation might be found in [Dobson94a].

Mark-up Example: Project Descriptions

As one example of the use of the notation, we shall mark-up a webpage which describes an investigation project. Inside our own Department all on-going projects have descriptions within the web. An average project page is shown in figure 1. Each project features a number of useful bits of information, including:

-an extended title, short title and logo;

-an intro and the project’s aims;

-any collaborating organisations;

-the funding source, total funding and RAL’s share from it; and

-a message name for more information.

We begin by defining an appropriate conceptual model for any project. Since our projects are extremely similar, you’ll be able to derive a canonical model which encapsulates the core information: this still allows individual projects to incorporate extra info on their pages if desired. The model is shown in figure 2 – observe that each entity class includes a primary key (shown by underlining) which identifies each instance uniquely inside a class.

Each project is represented like a single entity from the project class. These kinds has features of long and short names, logo etc. We mark-up the top-level project entity the following:

<ENT KEY=mips> <H1> <ATTR NAME=logo><IMG SRC=”MIPS.gif”></ATTR> The <ATTR NAME=shortname>MIPS</ATTR> Project </H1> … </ENT>

The ENT element offers the primary key value and entity class from the information. Significant bits of information are captured within ATTR elements, which identify attributes by name. The page itself contains extra formatting information, like the use of H1 for that heading, but this isn’t significant (from the database perspective) and lies away from scope from the identified attributes. Entities are linked using relations. Within our example, the MIPS project is related to a particular person underneath the has_contact relation. We might encode this as:

<ENT KEY=mips> … <REL NAME=”has_contact” KEY=mdw HREF=”/people/mdw.html”> <A HREF=”/people/mdw.html”>Michael Wilson</A> </REL> … </ENT>

The REL element relates the containing entity to a different entity recognized by key value and entity class within named relationship. The HREF attribute provides location information, indicating the URL where the target entity might be found. This simplifies searching, like a search engine may move straight to the target from the relationship.

We regard this like a useful navigational hint, less an essential area of the mark-up. Notice that the REL element includes a denotation of the relationship, which in this instance is a hyperlink. You should realise the relationship structure of the lightweight database is distinct in the hyperlink structure of the document.

You can form relationships between entities without needing hyperlinks, or hyperlinks without invoking rapport (in the database sense). This is particularly useful whenever we want to provide information within the database which isn’t directly accessible with a human browser: rapport without a corresponding hyperlink is effectively invisible, although a databaseaware client could still traverse the connection to acquire the data.

We may also desire to relate entities that are stored in exactly the same document but that are logically distinct. For instance, the MIPS project’s introduction is really a section entity presented combined with the project’s top page. This relationship might be encoded by nesting an entity element directly inside a relationship element:

<ENT KEY=mips> … <REL NAME=”has_introduction”> <ENT KEY=”mips_introduction” CLASS=introduction> Most individuals are… </ENT> </REL> … </ENT>

Again, the database structure from the information is outside of the way it is presented when it comes to in-line inclusion and hyperlinks. You can see the information to be stored in a means which is easiest for the most common mode useful (browsing) whilst remaining available to other modes (database queries).

Application Example: Printing Hypertext Documents

Our motivations for that lightweight database extensions would be a need to generate printed “hand-outs” from hypertext project descriptions for distribution to your customers without web access. We now have developed a small server-side application which uses the lightweight mark-up to “flatten” a document for printing.

The printing application consists of three parts: an interpreter for that semantic markup, a query engine, along with a template post-processor. The very first stage interprets a light-weight database web to create a table of entities, attributes and relationships. This table will then be interrogated through the query engine to extract the specified entities or attributes, using general database-style queries. Templates are utilized to re-format extracted elements into HTML for presentation towards the user.

A template is definitely an HTML document augmented with queries serving as place-holders for the outcomes of database accesses. An average query may be to locate the project entity having a given primary key, in order to extract the phone number of the hr person for a project.

The printing application submits each query towards the query engine and uses the outcomes to expand web site. There is a single template for every class of document. Thus all project hand-outs retain the same information within the same format, even though hypertext project descriptions show some individual variation. We made a decision to prototype our bodies in Caml Light[Cousineau90], a dialect from the ML language.

It has proved to be a great platform for developing “proof of concept” tools, and that we have extended the fundamental system having a small library[Dobson94b] of types and processes encapsulating the common WWW operations. The lightweight database interpreter and query engine form thing about this library, which makes it easy to develop additional database-aware tools. The printing application might be accessed with the addition of a “print” icon to some page which links to some CGI script invoking the flattening system – the rightmost icon at the end of the figure generates a flattened copy from the project description having a single click. T

he consequence of the flattening process is definitely an HTML document – usually, though certainly not, without hyperlinks – which might then be printed from a browser or passed with a intermediate rendering system for more processing (especially helpful for high-quality copy).

Spanning Servers

Entities are associated using REL elements, which might contain an HREF attribute pointing towards the document containing the prospective entity, This attribute allows a credit card application to follow information while using database schema as opposed to the hyperlinks. Often the hyper structure of a document is going to be richer compared to relationship structure from the lightweight database, which means this may lessen the amount of traversal necessary.

If two servers share a typical schema for (areas of) their information, they might include relationships to every others’ entities. This enables the servers to co-ordinate their information right into a single virtual database. An example application may be where two sites co-operate in providing a bibliography of published work.

They might agree on a typical schema for references, and mark-up their reference lists accordingly. Such schemata happen to be developed for numerous purposes by other projects[Genesereth90].

However, there is a real danger that different sites might adopt subtly different types for the same information, producing a proliferation of non-interworking lightweight databases. An identical approach enables you to generate indices to information using “robots” – autonomous daemons which scavenge for information in WWW.

By publishing the semantic content of pages, sites offer better search and retrieval possibilities than simple keyword searches, and may avoid the overhead involved with speculative traversal of links by “data miner” applications. Generally a lightweight database is every bit accessible to client- or server-side processing, meaning processing may occur wherever is most effective or easiest.

Related Work Integrated Relational Databases

As stated before, several authors (e.g. [Varela94]) have reported integrating database engines to WWW. An average example is really a site’s telephone directory that is accessed utilizing a CGI script interfacing to some relational database engine for example Ingres. We see the current work as being complementary to those efforts. A light-weight database should never be a substitute for a complete RDBMS in applications with substantial searching requirements.

However many applications have substantially less intensive requirements. Our illustration of structuring a document is normal: few sites would store their documents within an RDBMS as a matter of course, but turning a document right into a lightweight database facilitates searching and re-formatting with little effort. An additional feature in our approach is it makes the database public.

The mark-up essentially publishes the dwelling of the information, instead of having it tied-up inside a package. This will make client-side querying – instead of keyword-only searching – possible, off-loading processing in the central server[DeBra94].

SGML and Hytime

Essential is the migration of WWW for the SGML and Hytime standards. These allows WWW to provide richer and much more varied mark-up styles, possibly tailoring the tags used towards precisely the sort of machine-readability we’ve been investigating using the current work. We feel that our approach allows simple, lightweight, generic databases to become constructed within webpage’s. These databases could use any appropriate data model agreed between communicating parties.

The additional elements are sufficiently simple they do not enlarge documents in order to impact on performance, and could easily be recognised and stripped from documents if necessary. SGML offers the chance of alternative, document-specific mark-up to define the dwelling of information. This enables more “targeted” mark-up. Additionally, it allows documents that do not have a clear relational structure to possess semantics added to them – clearly an issue in our approach. There’s a significant cost to moving to full SGML, however, which is by no means clear what lengths WWW will evolve within this direction.

We feel a more important point is the fact that our approach couples the semantics of the page directly using its text, which makes it difficult to support multiple views onto some pages. Essentially this is a similar problem to that particular of explicit link and anchor tags in HTML – the writer pre-defines the hyperlink (or database) structure, limiting future re-use and expansion.

Nevertheless the same techniques which decouple links from documents in Hytime or Microcosm[David93] can also be employed in lightweight databases. The choice to move towards machine- in addition to human-readable documents may be the important point you want to stress. The precise approach taken is within many respects much less important compared to results of making the net more available to automated processing.

Conclusion

We now have presented a little extension to HTML to incorporate semantic information right into a document’s mark-up. The semantics follow a fundamental schema based on a well-known database formalism, and allows the making of generic “lightweight” databases which might span servers. The mark-up can be utilized by client- or server-side applications to extract information from web pages using relational queries.

We now have presented a good example of generating printed copies of hypertext documents, using mark-up to extract sections for printing. This avoids the necessity to follow hyperlinks, and allows alternative sections to become inserted or omitted as required. Further work will focus on making queries more effective, checking the integrity of the lightweight database against a conceptual model, and exchanging data between lightweight databases and full RDBMS systems.

We feel that information retrieval using automated tools is really a valuable method of reducing the mass confusion in WWW. Making the semantic content of pages available directly raises the accessibility from the information and – by permitting improved searching and indexing – may lessen the need for keyword-only searches.

 

Essential is the migration of WWW for the SGML and Hytime standards. These allows WWW to provide richer and much more varied mark-up styles, possibly tailoring the tags used towards precisely the sort of machine-readability we’ve been investigating using the current work. We feel that our approach allows simple, lightweight, generic databases to become constructed within webpage’s. These databases could use any appropriate data model agreed between communicating parties.

The additional elements are sufficiently simple they do not enlarge documents in order to impact on performance, and could easily be recognised and stripped from documents if necessary. SGML offers the chance of alternative, document-specific mark-up to define the dwelling of information. This enables more “targeted” mark-up. Additionally, it allows documents that do not have a clear relational structure to possess semantics added to them – clearly an issue in our approach. There’s a significant cost to moving to full SGML, however, which is by no means clear what lengths WWW will evolve within this direction.

We feel a more important point is the fact that our approach couples the semantics of the page directly using its text, which makes it difficult to support multiple views onto some pages. Essentially this is a similar problem to that particular of explicit link and anchor tags in HTML – the writer pre-defines the hyperlink (or database) structure, limiting future re-use and expansion.

Nevertheless the same techniques which decouple links from documents in Hytime or Microcosm[David93] can also be employed in lightweight databases. The choice to move towards machine- in addition to human-readable documents may be the important point you want to stress. The precise approach taken is within many respects much less important compared to results of making the net more available to automated processing.

Conclusion

We now have presented a little extension to HTML to incorporate semantic information right into a document’s mark-up. The semantics follow a fundamental schema based on a well-known database formalism, and allows the making of generic “lightweight” databases which might span servers. The mark-up can be utilized by client- or server-side applications to extract information from web pages using relational queries.

We now have presented a good example of generating printed copies of hypertext documents, using mark-up to extract sections for printing. This avoids the necessity to follow hyperlinks, and allows alternative sections to become inserted or omitted as required. Further work will focus on making queries more effective, checking the integrity of the lightweight database against a conceptual model, and exchanging data between lightweight databases and full RDBMS systems.

We feel that information retrieval using automated tools is really a valuable method of reducing the mass confusion in WWW. Making the semantic content of pages available directly raises the accessibility from the information and – by permitting improved searching and indexing – may lessen the need for keyword-only searches.

Nov 05 2011

A Brand New Room By Way of a Great Look

When designing an innovative room or even redecorating it there are a lot of things to think about. You make sure people do not feel homeless and are relaxed while in it. This touches on anything from the sofa at the layout of the room and in some cases if it has curtains or Roman Shades.

To come up with a room look right you should make sure that everything in everyone in the room is colour coordinated. This include things like ornaments, curtains tassels and rugs. Basically you should not have vast contrasts with a single room. Things will be noticed in a bad way if you get this wrong. So living room with a blue theme rrncluding a large bright red vase would never look right.

Some individuals really good taste while others simply do not. So choosing the right items for a room, especially the large ones in important. So assuring your couch is a useful one and matches your roman blinds is actually.

You really need to think that everything has its set up a room and you have to do things a certain way. So you would have the television from a certain part of the room and usually you would have the seating facing it. If things really don’t point the right way this will just feel weird and people feel uncomfortable. You would get a designer in to accomplish this for you if you struggle nonetheless they will cost you.

Oct 12 2011

Improve FFDA of Web Servers via a Rule-Based Logging Approach

Log files happen to be exploited by FFDA to do system evaluation and analysis within several domains (e.g., , , , ). The amount of trust on FFDA results is strongly associated with the quality of logged information. Moreover, log production is really a developer-dependent , error-prone process. It’s left towards the late stages from the development cycle also it lacks an organized approach.

Arbitrary semantics, duplicated or misleading data, and also the lack of important error data compromise ale identifying actual failures by collected logs. Issues raised by traditional logging are exacerbated when it comes to complex systems. These usually integrate many software items (e.g., operating-system, middleware layers, and applicative components) executed inside a distributed fashion. The possible lack of a standardized logging solution across vendors makes them items log by utilizing specific formats and with no form of cooperation.

The resulting field databases are thus heterogeneous, inaccurate and highly redundant , , . Several works address logs issues by proposing manipulation techniques (e.g., filtering, coalescence) to become applied to the filed databases as it is. Pre-analysis processing is essential to reduce the quantity of useless information . Anyway logs may miss important failure data , .

Our knowledge about the popular Apache Web Server causes us to be claim that missing log entries can impact FFDA results much more than useless or redundant ones. Actually we experienced that about 6 from every 10 actual failures don’t leave any trace in Apache logs. A complete failure databases is the key to do effective FFDA. We declare that this can be achieved only by improving log production instead of analysis techniques.

Our driving idea would be to devote a design effort to logs. We propose a three-phases approach (i) to define evidences the analyst expects from logs (ii) to create what and where you can log to offer the required evidences throughout the system operational time (iii) to offer design leads to terms of logging rules that must be followed at coding some time and which guarantee exhaustive logs. They are intended to support FFDA analyses and also to ease third-party processing (e.g., error-data extraction, coalescence). The paper is definitely the principles underlying our proposal and shows its benefits poor a practical knowledge about the Apache Web Server.

The aim of this experimentation is twofold (i) to judge logging capabilities of the widely used software system (ii) to check the results with those achievable using the proposed approach. For this aim, we instrumented the Apache Web Server to use a set of logging rules created by focusing on timing failures (e.g., component crash or hang ).

Results reveal that the proposed approach significantly increases logs coverage regarding this type of failures. All of those other paper is organized the following. After describing related work (Section II), we present our preliminary log design experience (Section III). Then we describe the support tool enabling on-line failure data generation (Section IV) and also the experience with the Apache Web Server (Sections V and VI). Section VII concludes the job. II.

The past few years have been seen as a proliferation of FFDA studies on several classes of systems, for example commodity os’s , and supercomputers , . These studies typically adopt log files because the primary supply of failure data. The increasing usage of FFDA for dependability analysis also encouraged the realization of software programs for automating FFDA phases (e.g., data collecting, data coalescing and analysis). A good example is represented by MEADEP , providing an information pre-processor for converting data in a variety of formats, along with a data analyzer for graphical data-presentation and parameter estimation.

In a tool for on-line log analysis is presented. It defines some rules to model and correlate log events at runtime, resulting in a faster recognition of problems. The phrase rules, however, still depends upon the log contents and analyst skills.

Even though it is clear that log files can offer useful and detailed understanding of the dependability behaviour of real-world systems, several works underline logs deficiencies, for example inaccuracy (e.g., non signalled reboots in ), or provision of ambiguous information , . Recent contributions began to address these problems. A proposal for any new generation of log files are supplied in , where several recommendations are brought to improve log expressiveness by enriching their format. A metric can also be proposed to measure information entropy of log files, to be able to compare different logging solutions.

Another proposal may be the IBM Common Event Infrastructure , introduced mainly in order to save the time required for root cause analysis. It provides a consistent, unified group of APIs and infrastructure for that creation, transmission, persistence and distribution of log events, formatted based on a well defined format. To conclude, all recent research efforts on log-based dependability analysis mainly address format heterogeneity issues, while crucial decisions about log semantics and production continue to be left to developers, late within the development cycle. III. RULE-BASED LOGGING We discuss the important thing aspects of our logging approach, already described in and the way it has been put on our example.

After presenting the adopted system model we describe the principles underlying our proposal. A. System Model One is used to explain the main aspects of a system combined with the interactions included in this. This is a technology-independent way (i) to know how to place logging mechanisms inside the source code and (ii) to pursue a proper mean to prove the potency of the logged information. Our proposal considers two types of components, i.e., entities and resources. The first kind is an active unit (i) encapsulating executable code (e.g., an item module, a shared library) (ii) providing services.

The second is a passive unit, like a file, a shared memory, along with a socket. Entities allow complex services by way of interactions along with other entities or resources from the system.

Proposed definitions provide general concepts, which may be tailored to designers’ needs. For example, an entity may model an entire OS process or package of code, independently from the process executing it. Furthermore designers can deliberately make a decision to leave un-modelled areas of the system thus concentrating on specific entities (e.g., applicative ones).

Approach The proposed approach includes three phases (Fig.1). What’s needed specification addresses the question ”which evidence does the analyst expect from logs?”. Throughout the design phase we investigate what and where you can log to offer the identified evidences throughout the system operational time. Within the last phase loggin rules are supplied.

This is the way design answers are made available to developers. For this aim each rule precisely defines what and where you can log also it prevents ambiguous and unstructured events. Approach overview. Within this paper the main focus is on timing failures. We try to design logs, which will make it possible find proof of this type of failures during operations. Timing failures would be the result of the unexpected suspension/termination from the program control flow, including infinite loops triggering. You’ll be able to detect timing failures by placing logs at specific points inside the execution flow from the system entities. Particularly, we concentrate on services and interactions by logging (i) something start (SST) and repair end (SEN) event at the start and at the finish of a service, respectively (ii) an interaction start (IST) and interaction end (IEN) event immediately pre and post an interaction, respectively.

Fig.2 sketches how these events may be used in the context of a C or C program. Using logging rules. When the control flow is modified with a fault (e.g., a poor pointer manipulation) triggered by service_1 (Fig.2 A) SEN will probably miss. If interaction_2 (Fig.2 B) fails (e.g., by never giving back the control, as with case of the hang within the called) we could find it out by logs, since IEN is missing. Not one other instructions need to exist between IST-IEN. Table I summarizes logging rules coping with timing failures. We extract failure data by our rule-based logs throughout the system operational time. On-line processing is enabled by sending logs on the delivery broker named Log-Bus, which eases the range tasks in the event of distributed systems.

Logging and Analysis Infrastructure

Timing failures could be detected by processing in pairs the beginning and end events associated with the same service or interaction. To alleviate the processing task they are logged jointly having a unique key. For every entity, on-agent keeps constantly updated the expected amount of the time between your start and end events of every service or interaction. For example, let us consider service 08 and interaction 15 and represent their expected duration, respectively.

On-agent internals. An effective timeout is tuned for every duration. Let _08 and _15 (Fig.4) be these timeouts. If your service or interaction exceeds its currently estimated timeout, a mistake is raised, otherwise _ and _ estimates are updated. Two kinds of error are generated through the on-agent tool: _ Interaction Error (InE): it’s generated when IST isn’t followed by the related IEN inside the currently estimated timeout; _ Computation Error (CoE): it’s generated when SST isn’t followed by the related SEN inside the expected timeout with no interaction errors happen to be raised.

A mistake log is permanently stored for every raised error. Collected logs are then supplied towards the analysis phase. V. EXPERIMENTS We present our preliminary knowledge about the Apache Web Server1 version 1.3.41. We try to evaluate logging capabilities each of traditional logging as well as the proposed approach. This is accomplished by conducting a software fault injection campaign, to be able to force failures occurrence, by evaluating the policy of the logs, i.e., the share of failures actually observed on the internet Server that an evidence can be found in the logs.

Software Fault Injection We inject software faults by way of changes in the origin code from the program. Changes are introduced based on fault-operators based upon actual faults uncovered in a number of open-source projects [16]. Examples would be the “missing function call” operator (OMFC) and also the “missing variable initialization utilizing a value” operator (OMVIV). A complete list of fault operators are available in [16]. A single fault is introduced within the source code for every experiment. Code is compiled and also the faulty Web Server version is stored for that experimental campaign. A support tool2 continues to be developed to automate the fault injection process. We inject 8,433 software faults in the primary Web Server source code (i.e., /src/main folder). Table II reports the experiments breakup both by fault operator by source file.

Web Server Modelling

We identify 6 entities encapsulating the primary processing items composing the net Server. All of them is mapped to the following source files, respectively (i) http_protocol.c (ii) http_main.c (iii) http_request.c (iv) http_config.c (v) http_core.c (vi) http_vhost.c. We identify services and interactions included in this and we instrument the code based on the proposed rules. We don’t model the entire Web Server, even when we execute a full injection campaign in the code (Table II). This is accomplished to show that (i) the analyst can freely chose just the entities he/she has an interest in (ii) the proposed rules enable failures to become logged even when a fault is activated in a un-modelled item.

Experimental campaign We deploy a 2-hosts testbed to do the campaign. Fig.5 depicts the involved components. The customer Machine hosts (i) on-agent producing our Rule-Based (RB) error logs and, (ii) httperf i.e., the Web-Server workload generator. We configure httperf to be able to exploit the majority of the features provided by the Web Server (i.e., virtual-hosts, multiple methods and file extensions, cookies). Testbed The Server Machine hosts (i) the present faulty Web Server and (ii) the exam manager program. The exam manager coordinates the experimental campaign (Fig.5). For every experiment it (1) starts on-agent (2) starts a faulty Web Server version (3) starts httperf (4) stops the constituents after a proper timeout (i.e., of sufficient length to enable workload to accomplish) and collects experiments data. Experiments outputs include produced logs (both RB and Apache error logs) along with a label summarizing the experiment outcome with regards to the web server behaviour seen in response to the injected fault.

The final results are classified as follows: _ Crash: unexpected termination from the Web Server; _ Hang: a number of the HTTP requests, or even the Web Server start/stop phases, aren’t executed inside the timeout; _ Other: all error problems that are not classifiable as crash or hang (e.g., non-timing failures, for example wrong values sent to the client); _ No failure: all of the requests given by the workload generator are correctly executed. VI. RESULTS Throughout the campaign 1,386 (i.e., 101 hangs, 744 crashes, 541 other) from 8,433 experiments create a failure outcome. The Apache logging mechanism results in 615 out of 1,386 logged failures.

The policy is about 44.4%. Fig.6 depicts how coverage varies with regards to the outcomes. Apache error logs often lack entries in the event of hang and crash failures. Actually only 11.9% of hangs and 37.5% of crashes are logged. Other failures are instead mostly logged (i.e., 59.9%). This really is due to the inherent incapacity of traditional logs at providing proof of timing failures. Clearly, following a crash or hang it’s not possible to log any entry.

Simultaneously, there are low chances the evidence of an imminent crash or hang are available in the log. However, non-timing failures, for example value failures, tend to be more often because of errors that are detected within the code, after which logged. Coverage breakup by failure type (Apache) Overall the proposed RB logs result in a higher coverage: 849 from 1,386 failures are logged, hence the policy is about 61.3%. Fig.7 depicts how coverage varies with regards to the outcomes. As opposite from traditional logging, the majority of hang and crash failures are logged (i.e., 81.2% and 87.2% respectively), whereas only 21.8% of other failures are logged.

This can be a result of our design-based approach. RB logs happen to be designed specifically by concentrating on timing failures. Consequently, the majority of timing failures are logged, even when only a fraction from the source code continues to be instrumented according to the proposed rules. For the similar reason, the policy of other kinds of failures is low if when compared with timing failures.

Coverage breakup by failure type (Proposed Approach) To summarize, we perform an in-depth comparison between Apache and RB logs. This is accomplished by splitting the quantity of each failure outcome into 4 classes: logged both by RB and Apache, not logged by RB but logged by Apache, logged by RB although not logged by Apache and, not logged by both RB and Apache (i.e., RB^Ap, !RB^Ap, RB^!Ap, !RB^!Ap, respectively).

Once we expect, the majority of timing failures could be logged using the RB approach only. Apache logs (Fig.8) provide further evidence only in 4.9% and three.1% of cases (hangs and crashes respectively). Our design-based approach significantly boosts the amount of logged timing failures, 69.3% and 49.7% for hangs and crashes respectively, thus potentially resulting in more effective FFDA results. However, Apache logs represent a much better source for other kinds of failures, for example value failures. It’s also interesting to notice that Apache and RB logs are almost complementary at covering non-timing failures (only 2.4% of “other” failures are handled by both Apache and RB logs, i.e., there’s a small intersection).

This means that that a combined approach could boost the overall coverage capacity from the logging mechanism. VII. CONCLUSION This paper depicted the important thing elements of a rule-based logging approach targeted at overcoming the well-known limitations of traditional logging. Proposed rules cantered on timing failures, for example crashes or hangs.

Experimental results around the widely used Apache Web Server show that (i) RB logging creates a higher overall coverage regarding traditional logging; (ii) RB logs exhibit a great coverage particularly with respect to timing failures whereas traditional logs are better on other kinds of failures; (iii) RB and traditional logs are complementary regarding other types of failures. A combined approach is promising to improve the coverage from the logging mechanism. This is often also achieved by extending our group of rules.

After this objective, future work is going to be devoted to the phrase logging rules made to target non-timing failures, for example value failures. Also, methods and methods will be investigated to prevent manual log production by enabling tools (e.g., by utilizing model-driven techniques) to automate logging-code writing.

 

Oct 05 2011

Satellite Satnav Systems in Play in the Modern Day

GPS equipment is definetly growing in popularity every since its introduction along with the supporting advancements in computerised equipment. Anything from small devices, utilised by walkers to help them on long walks, to the everyday car sat nav system.

The technologies have come a long way in the last 10 years as there were some inevitable teething problems whenever they first came out. It could be loaded with a map of your respective country with the roads while the GPS would collect you and tell you the spot where you were. Often this became wrong when they had several roads together and confused drivers.

As with anything in which there are issues every company that supplies them desire to be the first to fix them and enjoying the best on the market. This saw some quite quick movements in your technology to get them better. It could possibly be surprising to see each of these issues anymore invariably are very advanced.

As on the internet new products there are a great deal of companies producing them and after that only a few come through all the testing to be the most popular brands. Brands most notably Navigationsgeräte Test in Germany and TomTom in great britain to name but a few. There are a lot of add-ons you can purchase for these devices to support to customise them. You could possibly get different maps for areas outside your country or possibly voices. Hell you can even record the voice.

Most of them GPS systems will only come equip with maps loaded of your respective country. You generally will need to buy in additional maps you need to travel into different countries. These may be installed to your system and used in next to no time.

Oct 04 2011

Strategies for People to Market Your Products

Each New Year or season will probably bring with it an array of new fashions. Often celebs emerged out wearing an item of clothing and it can quickly become the thing to wear. They always are considered wearing something different so when in the public eye often claim that they will try not to ever be seen in the same task twice.

Celebs could be the envy of most as a lot of people would love to maintain their position of experiencing a vast amount of different clothing. Most highly successful people are on very large wages while you would be mistaken to reflect this is how they afford come to be attire. A large amount of clothing brands actually pay different celebs in your public eye to utilize there clothing to be a cheap promotion of their total brand.

Each celebrity has ones own look from a beach bum style, to rough and raged or posh and sleek. Different manufacturers like to be associated with a different look fitting their brand values. They as well as find the celebrities which have been in the news close to a launch of a new line and pay them to wear their clothing.

With several brand releases, that have a strong marketing team along with good amount of money to their rear, they will often release their product after which you can pay a group of different celebs to make use of it and be seen in them. The likes of Jennifer Lopez and Cameron Diaz were a handful of that reportedly got taken care of wearing them. Another superb way for promotion is always to appear on a popular show. The Ugg boots was featured on Oprah Winfrey’s show in primetime. This started using it a mass of people looking at it and it become massively popular virtually overnight.

Sep 21 2011

The 2nd Life of a Sensor: Integrating Real-world Experience

Virtual Worlds using Cell phones

Virtual world simulators like Second Life represent the most recent and most successful frontier of online services for entertainment and business. Individuals have virtual lives during these worlds using personal avatars. Bridging actual life and these virtual worlds together is challenging, but enables new application scenarios of these systems.

Existing work concentrates on the representation of objects inside virtual worlds. We feel that the overall experience is going to be improved as we can reproduce not just inanimate and passive objects like buildings and beer steins but the subjects during these virtual environments. To be able to have a seamless integration between your physical and virtual worlds, and to enhance the scale of adoption, the machine should depend on devices that individuals already use every single day.

For this reason, we feel that cell phones are a natural and ideal conduit. Within this paper, we reason that the sensors baked into commercial cell phones can be used to infer real-world activities that consequently can be reproduced in virtual settings. We discuss the difficulties related to the implementation of these a system both from algorithmic and systematic perspectives. We present the appearance of a prototype integrating a platform for inferring activities using cell phones and Second Life. Towards the best of our knowledge this is actually the first time that sensors utilized on everyday cell phones reflecting a person’s activity within the physical world continues to be expressed in virtual worlds for example Second Life.

Virtual world simulators represent the newest and most successful frontiers of online entertainment. Included in this, Second Life is probably the most popular Internet based virtual worlds when it comes to subscribers with more than 500,000 active users. A customer program known as the Second Life Viewer allows its users (called residents) to have interaction with each other through mobile avatars. Within the game, residents can socialize and take part in individual and group activities. An avatar’s appearance might be customized across an array of physical attributes. Avatars might be completely invented, with no relation to the physical part of the human user, or can be created to bear much resemblance to the human whom they represent.

However, in the present system, there’s still a divide between your virtual world and also the real one. Specifically, a person may be able to recreate his appearance but he is able to not automatically mirror/translate his current actions and movements in the real life towards the virtual lifetime of his avatar. Our vision would be to bridge the present divide between real worlds and virtual worlds, with real world activities (e.g., sitting, walking, running, cooking) along with other aspects of a person’s represented instantly in the virtual world. Our aim would be to go one step further than simply reproducing spaces (e.g., rooms, buildings, public spaces [7, 11]) and also the objects that humans interact. We focus instead on providing an online representation of humans, their surroundings as sensed through the humans themselves, and interactions using the members of their internet sites (e.g., fetched from external sources for example Facebook ).

You will find existing virtual worlds that map towards the real one with great accuracy when it comes to geographical locations and native features. Complex virtual representations of real geographical places exist like the ones supplied by Google Earth and Microsoft Virtual Earth . In the search engines Earth you’ll be able to insert 3-D representations of buildings and artefacts by way of Google Sketch. We feel that the next thing will be representing real life activities within this kind of virtual setting whereby personal avatars can move inside these artificial spaces following a real positions and activities of individuals.

Architecture from the system bridging CenceMe and 2nd Life Sensors happen to be used to support presence in virtual environments because the first experiments around the Virtual Reality Theatres . In many of these systems, individuals carry special wearable devices like helmets and wristbands with embedded sensors measuring their movements. They are special-purpose external devices accustomed to map user’s actions. Recently, the integration of sensors and 2nd Life is discussed like a future operate in , where the authors offer reproduce the whole floor of the building using data collected by way of the Plug platform. However, the main focus of is around the reproduction of the working space and never on the activities of individuals moving within it (i.e, it’s focused on places and objects and never on subjects).

Moreover, is with different non-standard hardware platform manufactured in small quantities and never available to everyone. Starting from this technological scenario, the contribution of the paper could be summarized the following: _ We discuss the systems challenges and also the design issues in integrating real life people-centric sensor systems and virtual worlds; _ We present something that is in a position to reproduce human activities and never only inanimate objects inside a virtual world the very first time; _ We discuss the appearance of a preliminary prototype in line with the integration of the system for activity inference according to mobile phones and 2nd Life.

In Section 2 we produce an overview of the primary challenges in implementing systems supporting real activity inference algorithms for virtual worlds according to data extracted using cell phones. In Section 3 we discuss our ongoing focus on the CenceMe platform that’s the basis for the practical implementation from the proposed system, and offer preliminary results which are at the root from the proposed architecture. Section 4 concludes the paper, summarizing the contribution in our work.

System Design Challenges

Within this section, we discuss the important thing issues in detecting real world activities by way of commercial cell phones and seamlessly integrating these details into virtual world’s environments.

Activity Recognition and Visualization

Activity inference, mapping and visualization are key facets of the proposed system. Activity inference includes the extraction of high-level activities (e.g., sitting, running, walking or talking) from time number of raw data sampled from sensors (e.g., accelerometer, microphone). There’s significant curiosity about the research community in designing high accuracy activity recognition algorithms [6, 12]. Many user-specified visualization policies for inferred activity may exist. Quite a few users might want to map their activities in the real world into different virtual ones. For instance, a user might want to specify the action of running corresponds to flying within the virtual world. Another interesting aspect is information accuracy.

Quite a few users may would rather discard the data if the inference isn’t sufficiently accurate given predefined quantitative thresholds. Alternatively, a default activity (e.g., standing) could be preset, which is visualized when the system is unable to perform activity recognition having a sufficient accuracy. This method can be in line with the definition of specific classifier thresholds around the Receiver Operating Characteristic (ROC) curves .

Generally, the precision of these measurements relates to the limitations of now available embedded sensors. We feel activity recognition accuracy is only going to improve later on when stronger sensors become readily available for use with increased effective inference algorithms. We consider the chance of information flow from virtual worlds towards the phones.

Of particular interest rates are researching the very best methods for reporting and representing in real life changes and interactions that exist in the virtual world. One particular very simple interaction may be the opening of the internet chat window if avatars begin a conversation in Second Life. More complicated interaction dynamics could be envisaged and also the improvements from the user interfaces from the phones will probably open a new study opportunities.

Intermittent Connectivity

Mobile phones may experience intermittent connectivity because of limits in network coverage. Virtual avatars ought to be set to some meaningful state (like the latest known state having a question mark appearing over the avatar) during intervals when no new updates are received. A far more complex solution may involve using prediction strategies to determine the present state and also the location because of the sequence from the previous states.

Delay tolerant mechanisms may also be adopted to temporarily store user status locally on the telephone in case of disconnection. Time series of state data can later be input towards the virtual world. Scientific studies are needed to figure out how to best (if) represent this type of delayed burst of physical state information within the virtual world. We feel that strict real-time action rendering very can be not necessary for most users. However, it is really an interesting aspect that needs to be analyzed at length for different activities and classes of users by way of experiments and surveys.

Scalability

Because of the potentially large number of users, designing for scalability is essential. To reduce the amount of status updates flowing in to the Second Life visualization, the status/activity from the virtual avatar is updated only if the inferred status/activity from the human user changes. This, consequently, is dependent how often the activity classifier is executed. By leveraging historical activity traces, we offer set the classifier execution frequency proportional as far as of variability from the users past behaviour. A sensor data push model in the mobile phone towards the server can be used.

We believe the cell phone is best positioned to handle the trade-off between limited local storage, data upload opportunity, and user expectations of application responsiveness. Therefore, our default approach would be to run activity recognition algorithms around the mobile device to lessen communication costs also to reduce the computational burden around the server. However, we notice that some classification algorithms might be too computationally intensive for handheld devices and offer run a portion (possibly all) from the classifier on a tailgate end server in these instances.

This may be particularly appropriate throughout the training phase of the classification model, or when data sourced from multiple users support feature vectors input towards the classifier. Low-fidelity classifiers requiring fewer resources may be used on cell phones in lack of connectivity in order to reduce transmission costs.

Data Sharing and Group Activities

The main focus of existing focus on sensor-based human activity inference is around the analysis and processing of knowledge collected by devices carried by or mounted on a single individual [6, 12]. This inference process exploits just the information extracted through the local sensors. We feel that the system should leverage the sharing of raw or processed data among differing people in physical proximity by way of short range radio communication.

This mechanism could also allow for a far more accurate inference of group activities for example talking or moving together, improving their rendering within the virtual space . Moreover, by way of this mechanism, individuals can update not just their status, but additionally those of their neighbours.

External Sensing Devices

Along with sourcing data from phones, the game recognition process might be augmented by way of external devices attached to the phones with the Bluetooth radio. These units may be designed with additional sensors to be able to improve the accuracy of activity classifiers running on the telephone, or to extend the group of the actions that may be inferred. Using a small size sensing module external towards the phone (e.g., connected to the ankle) enables more accurate activity inference (e.g., running) in contrast to using phone-embedded sensors which can be ill-positioned (e.g., within the pocket).

For this function, we created a badge-sized device, the BlueCel, integrating some various sensors including accelerometer, light, temperature and Galvanic Skin Response (GSR) sensors. The GSR sensor may be used to infer emotions like stress level. Within our vision, the machine should not depend on these devices, but on off-the-shelf platforms (i.e., the sensors integrated within the mobile phones). Simultaneously, it should be able to utilize them in a seamless and opportunistic manner when available.

Context Reflection

Virtual worlds are a great medium to represent environmental data. There’s a growing curiosity about displaying sensor data using common and popular media for example Web based portals (e.g., the Sensor Map project , the BikeNet system ). People-centric sensing is a perfect way of collecting data of these systems in real-time.

Data could be collected and displayed in virtual worlds for example Second Life inside a powerful and captivating manner by changing the look of an environment based on the sensed data. For instance, high humidity may trigger the visualization of rain or misty conditions. A pre-processing from the raw environmental data might be performed within the back-end. Users could also actively take part in the data collection process with the acquisition of multimedia content for example recordings of sounds and voices, pics and vids to be integrated within the virtual worlds. While these aspects are extremely promising, they’re out of the scope of the work.

Privacy and Social Implications

To handle their exposure, users will be able to disconnect in the virtual worlds anytime or be in a position to interrupt the sampling of the activities. The particular positions and also the actions of users within the virtual world might be disclosed based on pre-configured user policies (e.g., simply to one’s listed buddies imported using their company websites like Facebook ). The issue of location privacy is much more important in these kinds of systems where private information is subjected to a potentially large group of people.

Additional privacy issues are based on the collection of environmental data by way of people carrying devices and, most importantly, data collected about the subject. In the authors discuss important security and privacy challenges associated with people-centric sensing. System Prototype Implementation Within this section, we discuss the general architecture from the system for that integration of activity information into virtual worlds for example Second Life and Map Services for example Google Earth.

We first describe ongoing work associated with the CenceMe platform, which acts because the core service for that retrieval and also the analysis of the sensed data within our architecture. Bridging CenceMe and Virtual Worlds. We provide a brief summary of the CenceMe platform to be able to understand the key problems that underpin the proposed architecture. For additional information on CenceMe make reference to . CenceMe is a general personal sensing system that allows members of internet sites to share their sensing presence extracted by way of mobile phones using their buddies. CenceMe has the capacity to provide details about the personal status of their users as well as their surroundings.

Similarly, by mining the sensed data CenceMe can extract patterns and options that come with importance inside a user’s life routines, like the current status when it comes to activity (e.g., as sitting, walking, standing, dancing, meeting friends) and physical or logical location (e.g., in the club, coffee shop, at the office or other significant places for that individuals).

We now have integrated the CenceMe back-end and also the Second Life servers using a connector component, produced for the Second Life Linux client, that receives inputs in the CenceMe back-end. The logical architecture from the system is shown within the Second Life Linux client Code from the LSL script triggering the mapping from the activities can be obtained as open-source software as an alpha version release. CenceMe may be used to interconnect virtual worlds and social media systems for example Facebook that are presently extremely popular.

Information could be fetched from social networks and displayed in virtual environments (e.g., presence details about the buddies/groups could be automatically reflected in Second Life). Virtual social events can as well be organized between people in the same social media community. Rather than using basic im, members could see what their colleagues and friends are doing (playing sports, walking, etc.) as well as their current geographical position using a three-dimensional visualization supplied by a virtual environment rendering engine such as the one utilized by Second Life.

This might replace the present simple but instead cryptic idle/away/online status icons and texts. There is currently no freely available API to create and move characters in map services using Google Earth or Microsoft Live Search Maps. A proposal for merging Google Earth and 2nd Life exists as far as inanimate objects are worried. We intend to integrate CenceMe which tools the moment an API is created available.

Design and Preliminary Evaluation from the Prototype. We design an initial prototype of the component bridging Second Life and CenceMe to higher understand the limitations in our systems design. The integration is dependent on the exploitation of virtual CenceMe objects the Second Life avatar can wear or carry. This object alters the avatar animation to mirror the actual activity state of the human user carrying a mobile phone that is running the CenceMe sensing application. The CenceMe object is implemented like a standard Second Life object that people program to speak with the CenceMe infrastructure via XML encoded requests and responses exchanged via HTTP.

Second Life CenceMe object behaviour is designed in LSL (Linden Script Language Figure 3. Second Life display of near-real-time inferred activities injected from CenceMe. Three states set through the CenceMe infrastructure are translated based on a user-defined mapping: sitting ! yoga-floating (left), standing ! standing (centre), and running ! flying (right). ). The interactions using the CenceMe infrastructure make use of the same CenceMe external application extension APIs as other application plug-ins (i.e., Facebook, Pidgin) which have been constructed (as described in ). Objects get a new state by polling the CenceMe infrastructure for a price that can be set by users (within ranges based on CenceMe administrators).

The avatar can disconnect from CenceMe if you take off the object. The interface between your CenceMe system and 2nd Life largely uses off-the-shelf technologies. Java servlets hosted inside a Tomcat server provide a set of APIs provided via XML-RPC for retrieving details about user activities from the MySQL database. The communication paradigm between your Second Life and CenceMe platforms that people adopt is pull-based, i.e., periodic requests are from a script running within the Second Life platform towards the CenceMe server. Our implementation uses this API to both retrieve inferred activities about CenceMe users in addition to a specification that defines how these inferences should be represented.

A library of potential Second Lifestyle is maintained (e.g., walking, teleporting, yoga-floating) that the user might want to map specific real-world activities. These relationships are imported and put on all incoming data. Real actions could be mapped to various actions within the virtual world (e.g., running mapped to flying). Each virtual object within Second Life retrieves data independently in the CenceMe server.

Each object is implemented while using LSL language. LSL may be used to specify object behaviour inside the Second Life environment. The code is published by Second Life servers into byte code having a maximum memory usage limit of 16KB. The byte code is executed by virtual machines running on these servers. LSL is definitely an event oriented language which is suited to implement state machine style solutions. Within our case, it’s used to implement reactions to alterations in real world activities by triggering modifications from the activities displayed within the virtual world.

Delay Measurements when the object is connected to the avatar, a periodic timer is initiated. Within our experiment, the time of the timer was 0.5 seconds. Your body of the timer causes the HTTP request to become made (begin to see the timer() body in Figure 2). An XML-RPC based request both the latest inferred action and also the user defined mapping from CenceMe inferred activities to Second Life actions is distributed. An event handler for that returning response (begin to see the http_response() block) first calls parseResponse() which processes the incoming response, returning a summary of potentially invoked avatar actions. Then, this output is supplied to a second function, induceAction() that takes these responses and determines which avatar action ought to be displayed. As described above, we make use of a clothing metaphor to supply an intuitive method for people to configure and control the mapping of the actions. In Figure 3, we show numerous screenshots of an avatar that has a CenceMe virtual object (in this instance, a pager – see inset).

Within the figures, we show three states set through the CenceMe infrastructure and translated based on a user-defined mapping: sitting ! yoga-floating (left), standing ! standing (centre), and running ! flying (right). Information about the activity classifiers are available in . Alternative CenceMe clothes and accessories include significant places t-shirts that display the emblem graphic representing an area of significance within the user’s life (i.e., the house, gym, pizzeria, etc.), and virtual mood rings that display the inferred emotional state of the baby. We also present some preliminary performance outcomes of the integrated system.

We show the typical delay experienced between performing the game in the real world and displaying the inferred activities in Second Life. The experiment includes a sequence of activities done by users in repeated sessions at different times during the day (at noon, 4pm, and 8pm ET).We average the information over 15 sessions. The succession of activities is standing still ! walking ! running ! standing still. The transitions between states are reported as step curves. We observe a typical delay around 30 seconds in reporting the game changes.

This delay is a result of the activity recognition process around the phones, the transmission from the inferred activity towards the back-end, its retrieval from CenceMe database, and it is display in Second Life. The delay is mainly caused by the periodic inference process running around the phones and also the uploading of the information towards the CenceMe back-end. The delay because of the transmission in the CenceMe back-end to the Second Life servers, and also the display from the activity information in Second Everyday life is negligible. We’re augmenting our current implementation to: investigate controlling movement within the geographical space; define appropriate privacy policy pages; and develop mechanisms to deal with periods once the avatar becomes disconnected in the physical user, or when inferred user state accuracy falls below a suitable bound.

Conclusion

Within this paper, we now have proposed to bridge real and virtual worlds using commercial cell phones equipped with standard sensors. We now have discussed numerous key problems that need to be tackled to understand our vision. We presented an initial implementation of the architecture, demonstrating an active system integration of CenceMe and 2nd Life. Towards the best of our knowledge, this is actually the first time that sensors utilized on everyday cell phones reflecting a person’s activity within the physical world continues to be expressed in Second Life.

Basic MySQL/PHP Interactivity – Exactly why is PHP/MySQL useful?

PHP is really a server-side scripting language that operates on a huge variety of platforms while offering web developers a strong tool to render dynamic HTML content. MySQL is really a popular, free relational database application that facilitates massive, rapid data storage and retrieval.

PHP may be used with many relational database applications, but provides a wide array of functionality aimed at interaction with MySQL. Overall PHP is really a forgiving programming language, it features a wide variety of built-in functions, includes a relatively simple syntax, and may be embedded straight into HTML. Both projects have extensive user bases, in addition to copious levels of documentation.

Practical Uses

PHP is a component of an estimated 20 million websites and A million web servers. Popular web applications for example Facebook, and Wikipedia utilize it to render their content. As pointed out above PHP is especially good at outputting dynamic HTML. So far as an expressive tool, PHP is excellent at formatting and display large types of media, in addition to performing logic operations on data. This is often information from the user or from another databases. PHP has additionally been extended by other, third-parties, types of this range from the PEAR application/object repository and frameworks for example CakePHP.

Basic: Running web server with PHP installed Basic knowledge of the PHP options enabled around the server Good text editor, designed with text highlighting functionality PHP manual MySQL manual Errors at verbose throughout the development process

The “Application”

The applying we will be building is definitely an image management system. The important thing functions the application must have are as follows:

  • Offer an end user by having an HTML form that uploads images to some public image directory, and commits these phones a database together with addition descriptive meta-data.
  • Give a method of recalling and editing this picture data.
  • A listing view which allows the user to see the items in the images database. This application is going to be designed to highlight a few of the core functionality of PHP and MySQL. Though not terribly functional, it’s a good departure point for creating a more complex/usable application

Core Concepts

Fundamental Variable Types Understanding how to work with different types of variables and knowing their strengths, limitations and also the techniques accustomed to extract the values included in the variables. Of particular curiosity about this being active is the array and associative array (hash/dictionary etc) types accustomed to store multiple values by key.

Basic Control Structures Types of these include if/else statements, for performing different actions according to variable values, and looping mechanisms for example for each and while for iterating over complex variables for example arrays. Interpolation The ways that variables are interpolated or interpreted in strings using single or double quotes. Be aware of difference to ensure that when writing statements using strings you make sure that the PHP interpreter isn’t doing work.

Error management: Techniques accustomed to control the errors that occur once the connection functions are passed bad parameters, along with the techniques to assure the script ends gracefully. Particularly observe the techniques accustomed to both capture errors and interpret errors in addition to how to suppress them if needed.

Additionally it is vital that you decide upon the amount of verbosity your application must have, by wondering: “How much information concerning the process will i want to hand back to the user as feedback?” Code Reuse: Examine your code, whenever possible move repeatable actions into functions. This not just makes the code more legible to people who edit it once you, it helps you save from writing exactly the same logic over and over. Your time is valuable.

Basic Connection (basic_db_connection.php)

The initial step in using MySQL with PHP is establishing an association to the database server and upon success establishing an association to the specific database. The initial step is done with the mysql_connect function that will return a kind of link or resource towards the connection upon success, and can return false on failure.

In taking a look at this example make sure note the required arguments for mysql_connect and exactly how that errors are handled along with the way that success is registered. Following a successful link with the database server, the particular database must be selected using the mysql_select_db function, passing it the resource returned in the earlier function as well because the name from the database that you simply wish to use.

MySQL Connection as Function (basic_db_function.php)

Programmers are by habit (plus some might say necessity) a lazy bunch. The you are able to write quality code and obtain more things made by being lazy. This statement certainly seems paradoxical, but it is true. This situation shows a really basic the first step can take to ratchet in the lazy. By enclosing both mysql_connect and mysql_db_select calls inside a function, connections might be made over and over without the demand for rewriting exactly the same code again and again.

This methodology does apply to a multitude of problems and also the end result is (usually) more legible code, more maintainable code, less wasted effort and much more effective utilization of time.

Fetching (basic_db_select.php)

This file illustrates the strategy of querying the database for the records inside a particular table. While using mysql_query function and passing it a string variable which has the text from the SQL we can retrieve a question resource. This resource id may then in turn be employed to retrieve the particular results from the database. As before note the methods that errors are handled and pay particular focus on the way that the outcomes are retrieved by using a while loop.

Inserting (im_form_submit_example.php)

The insertion example may be the function “administration” element of our application. Utilizing PHP with the HTML form, we could both produce a new record and populate it with data in the form. Of note is that they specific way the shape is designed with the specific encoding kind of multipart/form-data and specially the way that PHP handles the uploaded files storing a number of information about it within the $_FILES array. Also introduced may be the specific syntax for inserting records in to the database.

Updating (image_manager/im_form.php)

This file represents the ultimate form for that actual image manager application. It serves a dual use, functioning as both uploader for creating new entries towards the database plus an editor, allowing a person to edit existing files within the database. Note how a file presents different content and performs different logic in line with the existence and items in the $_POST or $_GET variables.

Since the file does double duty, the functionality for uploading the files in addition to retrieving a particular file by unique ID. The file also utilizes the require_once function, including another file which has the details from the myDBConnect function as well as automatically produces the $dbConn resource to be used within the file.

Take not of how that the fields from the form are populated when the record has been retrieved in the database by ID. Be familiar with best practices regarding security and also the vetting of all data received externally of the application. An entire security audit of the application is outside the scope of the class but spot the use of the safeEscapeString() function utilized on all post and obtain data, to make sure that data is properly applied for the database in addition to eliminating the chance of a user running arbitrary SQL queries around the database.

Additionally, inside a production setting it might be wise to take away the MySQL login and password data in the DB function file, or move the whole file to some non-public directory. Then the file might be included again with the require_once() function after editing the include search path using the set_include_path() function.

Extend The applying

Here are some suggestions for extending the applying: Add a connect to the full size image within the database list view. Add keyword search and sort functionality. Add other sorting functions for name, date added, size. Add logic to ensure that all form fields are populated, and display a mistake if not. Extend the thumbnail generator to consider multiple types (gif,png,bmp) of images. Create functionality to delete records.

Aug 01 2011

Finally Obtain that Fitness Routine On Your Side

It is important that you’ve got a good attitude when you are to succeed at becoming fit. You need the right attitude to go going regularly to possess a good effect on you a better standard of overall fitness. As important it will be to start a fitness routine, it is vital that you keep up the motivation to carry on your routine constantly.

At the beginning of the year people intend to make a new start colliding with new goals therefore you will find that the gyms possess a higher busier for the month of January. The issue is that 90% of these individuals will last one, maybe 8 weeks going to the gym after which lose focus.

There are some that manage to keep up this routine independently, but a lot will benefit from getting some form of help or assistance. You find someone you know with the same desires and partner them to the gym. This way you can make use of them to get fit together. This causes you to be a lot less likely not to ever go to the gym while you would be letting in the other person.

Some areas usually help and push individuals to work out, areas like San Antonio is one this year. One option, any time you struggle and reside in this area, is to hire a San Antonio personal trainer. They can help you on your own personal plan and push that you hit those goals. This being said there is simply a cheaper option in joining a fitness group for a San Antonio boot camp.

Jul 26 2011

Start to Beat Your Friends in Tennis Almost Immediately

If you are looking to grasp tennis then you will be capable of paying a good coach that will your game.  They can sometimes focus on more complex aspects of the game like cross court backhand shots, or use the smash or the drop shot.

There is also ways you can get to see a dramatic improvement on your game. Mainly you should start to look at where you can gain most points after which you can work on that ingredient of your game.  So, you should focus on a shot you’re guaranteed to use in a house game of tennis that is certainly the tennis serve.

When playing tennis you may serve for a game then an opponent will serve, and continue along these lines for the whole game.  If you possibly can master the art of serving then you will massively increase the possibility that winning the games that you simply serve on.  Think regarding it, if you have a great serve in that case your opponent may not be also able to return it, meaning you win the point with just 1 shot.  Within a short period of the time it is possible to win whole games together serve or off your opponent’s weak return.

Once you find your serve perfected you’ll be able to move onto the other strokes and methods to truly master the sport. As you move through perfecting the different stroke, or as well as you can, then soon enough you will have a good overall game.

Jul 08 2011

Find Out How to Improve Recovery From a Sporting Injury

A guy within my gym is a really good overall athlete and is very efficient at a variety of different activities. He is a superb basketball player which enable it to play great in soccer. He also learns how to play tennis and badminton and his awesome skill is actually such as those people who are professional player.

He really loves sports since the time he was a child and has now been actively getting involved in any sports competition which he can join. Not too long ago he was taken down in a game and pulled some ligaments in the knee when it was overstretched.

He was very fortunate that it was not a factures because it will surely stop his sports career. I had referred to this really good physical therapy assistant that had helped another I know in the same position. He was more than willing to pay for someone to help him finish this and back to his winning physical ways.

He is a rehab programme at this moment and is seeing some truly good marked improvements. Little by little I see the progress in her condition. He is now in a position to walk without any help. This demonstrates that having someone from this profession help you has to be a great way to get back into very good condition.