Making subdomains on localhost
Developing websites on localhost may sometimes need making of sub domains. Installing and running another server for this purpose is useless, consumes more resources etc. So here is the technique to make sub domains on localhost. You can also use this to host more than one site on localhost. i.e, you can host multiple sites situated on different folders.
Create virtual hosts in a WAMP server
This simple example demonstrates how to get virtual hosts up and running quickly on your WAMP server. The Windows Apache MySQL PHP (WAMP) server is incredibly powerful. Not only does it allow you to host a website using the world's most flexible web server, it also allows you to do so on your Windows host.
Build a Responsive, Mobile-Friendly Website: Getting Mobile
In the fifth part of the series we’ve seen the rules we have to apply to render our website responsive and to assure a good layout on tablets. In this last part, we’ll conclude it with the code for mobile and some final considerations and advice. Before showing you the CSS code with the rules inherent to the mobile version, we have to add a little piece of HTML code to create the mobile version of our menu. As you can see from the screenshot, the menu of the mobile version is a drop-down list ( element).
Build a Responsive, Mobile-Friendly Website: Responsive Rules
In the last article we’ve seen the basic rules to create a simple layout for a website. After concentrating on the pc-desktop version, in this fifth part of the series, we’ll see which are the rules to apply to make the layout responsive. So, the final result will become pleasant for both tablets and smartphones, as we’ll see in the final part. Remember that a responsive design isn’t a mere matter of a technique applied to pat yourself on the back, but it’s a way to enhance the experience of the user in using the website.
Build a Responsive, Mobile-Friendly Website: CSS stylesheet
In the last article of this series, I’ve shown how to start building a website from scratch with a particular focus on the HTML code and its main elements. Now it’s time to introduce the first CSS rules in order to have a general idea of the graphic style that the homepage of our website will display, especially for the pc-desktop version.
Build a Responsive, Mobile-Friendly Website: Semantic HTML
In the last article, as promised, we’ve begun doing some practical work with the planning and creation of a mockup. Now, we’ve focused on how to build a personal project wireframe thinking responsively and—consequently—how a responsive design can adapt to three target layouts: Default (PC desktop), Portrait Tablet, and Smartphone. We’ve seen how to arrange the elements of a typical website in the three main devices’ categories by creating a template that represents the common content elements. In this third part of this series, I’ll concentrate on writing the HTML code and work on the structure of the homepage, while in the very next, I’ll be setting the first CSS styling rules to build the initial design of our project.
Build a Responsive, Mobile-Friendly Website: Design a Mockup
In the first article of this brand new series, I have introduced the main objectives of the series and given a short but complete introduction on the critical components of media queries and responsive breakpoints. Now, it’s time to begin doing some practical work. As I have mentioned before, I’ll start with the planning and creation of a mockup for each of the three main device types on which our responsive website will be designed, tested, and displayed: PC desktops, tablets, and mobile phones.
Advanced HTML & CSS: Performance & Organization
Having the ability to write HTML and CSS with a solid understanding is a great expertise to have. As a website’s code base and traffic grows, a new skill set comes into play, one that is extremely important to both development time and user experience. Knowing the fundamentals of website performance and organization can go a long way. The organization and architecture of a code base can greatly affect not only the speed of development, but also the speed at which pages render. Both of which can be sizeable concerns not only for developers but also users. Taking the time to design the right structure for a code base, and identify how all of the different components will work together, can speed up production and make for a better experience all around.
Responsive Web Design
The Internet took off quicker than anyone would have predicted, growing like crazy. Now, for the past few years, mobile growth has exploded onto the scene. The growth of mobile Internet usage is also far out pacing that of general Internet usage growth. These days it is hard to find someone who doesn’t own a mobile device, or multiple, connected to the Internet. In the UK there are more mobile phones than people, and should trends continue mobile Internet usage will surpass that of desktop Internet usage within the year.
JSF Nested Flows
In this article we will cover JSF nested flows: How to call a nested flow, pass parameters into the flow and return to the main flow. We will create a very simple main flow that creates an illustrative customer. After the customer creation, the user will be given the possibility of adding customer interests like technology or sports, but these will be added inside a nested flow.
JPA Tutorial: Mapping Entities – Part 2
In my last post I showed a simple way of persisting an entity. I explained the default approach that JPA uses to determine the default table for an entity. Let’s assume that we want to override this default name. We may like to do so because the data model has been designed and fixed before and the table names do not match with our class names (I have seen people to create tables with “tbl_” prefix, for example). So how should we override the default table names to match the existing data model?
JPA tutorial: Mapping Entities – Part 1
Typically, mapping is the process through which you provide necessary information about your database to your ORM tool. The tool then uses this information to read/write objects into the database. Usually you tell your ORM tool the table name to which an object of a certain type will be saved. You also provide column names to which an object’s properties will be mapped to. Relation between different object types also need to be specified. All of these seem to be a lot of tasks, but fortunately JPA follows what is known as “Convention over Configuration” approach, which means if you adopt to use the default values provided by JPA, you will have to configure very little parts of your applications.
AJAX calling in Play Framework
Java 8 Lambda expressions example
In this article we will cover Java 8 Lambda expressions. While implementing single method interfaces - often to be passed as a parameter to another function as callbacks - we often end up writing an anonymous class. Considering what we want to achieve, we may come up with something that is unnecessarily verbose.
Java 8 Predicates and Functions
Google Guava library users are already familiar with the concepts that we will cover in this article. Predicate and Function are a couple of useful Functional Interfaces introduced in Java 8 (more information about Functional Interfaces in the following article: Java 8 Lambda expressions example). Let us see which features each one of these interfaces provide.
Java 8 Streams
Java 8 introduced streams as way to perform functional operations over collections of elements, such as the traditional map-reduce transformations. In this article we will cover the most important features provided by Java 8 streams. One important feature of streams is the kind of operations one may execute against them. There are two kinds of operations: intermediate and terminal. Intermediate operations return the modified stream to the caller so one may call additional operations over the stream in a nested way. Terminal operations return a result of a given type and one may not execute any other streaming operations over the result.
Java 8 Consumer and Supplier
The Consumer and Supplier interfaces are a couple of Functional Interfaces that belong to the new Java 8 java.util.function package. As the package name states, these interfaces are meant to be used together with the new functional Java 8 features.
Java 8 Parallel Streams
As we have seen previously in Java 8 Streams, Java 8 introduced streams as way to perform functional operations over collections of elements. In this article we will see how we may take advantage of the parallel streams feature in order to implement parallel stream processing.
Java.lang.NoSuchFieldError – How to solve SuchFieldError
In this tutorial we will discuss about the NoSuchFieldError in Java. This exception is thrown to indicate that an application tries to access or modify an object’s field, but that field no longer exists. This error can only occur during runtime, if the definition of a class has incompatibly changed.
How to create XML in java using DOM parser
This tutorial covers about how to create a XML file using DOM Parser in Java and also covers that how to indent an XML using java . XML is made up of Elements . You can visit my earlier tutorial for more on XML and How to traverse / parse an XML. DOM allows a developer to create objects like root, child elements , comments and text nodes, etc. Document interface have the factory methods to create these objects. Elements are represented by Element interface , can have other elements , text, attributes . Document and Element interface inherit Node interface which is the primary datatype for the DOM.