Exception Handling in C++

  • Reading time:43 mins read

Exception handling is a powerful feature in C++ that allows a program to deal with unexpected situations, or exceptions, that occur during program execution. It helps in writing robust and…

Save HTML5 Canvas as image on server

  • Reading time:86 mins read

Working with HTML we sometimes face with necessity of saving the results as image. The image can be saved on server or we can force downloading the result directly into your browser

Design Patterns in PHP

  • Reading time:441 mins read

Patterns in PHP. Today we will discuss design patterns in web development, more precisely – in PHP. Experienced developers are probably already familiar with many of them, but our article would be extremely useful for all developers. So, what is it – design patterns? Design Patterns aren’t analysis patterns, they are not descriptions of common structures like linked lists, nor are they particular application or framework designs. In fact, design patterns are “descriptions of communicating objects and classes that are customized to solve a general design problem in a particular context.” In other words, Design patterns provide a generic reusable solution to the programming problems that we encounter every day. Design patterns are not ready classes or libraries, that can be simply applied to your system, this is not a concrete solution that can be converted in to source code, design patterns are much more than that. They are patterns, or templates, that can be implemented to solve a problem in different particular situations.
Design patterns help to speed up the development, as the templates are proven and from the developer’s position, only implementation is required. Design patterns not only make software development faster, but also encapsulate big ideas in a simpler way. Also, be careful not to use them in wrong places in order to avoid unpleasant situations. In addition to the theory, we also give you the most abstract and simple examples of design patterns.

(more…)

CRUD Repository for Web API (SQL server)

  • Reading time:274 mins read

In today's lesson we will continue developing backend Web API and our goal is database access. We will be creating CRUD API entry points handling GET, POST, PUT and DELETE…

Backend Web API with C# – step by step tutorial

  • Reading time:81 mins read

The question of choosing a language for server backend logic is one of the most important question for almost every developer, especially for a beginner.At the moment there are already…

Fill Out PDF forms with PDFtk and PHP

  • Reading time:10 mins read

PDF forms with PDFtk & PHP. As we know that PDF files comes to be one of the most common options for people to share various documents online, whether the question comes about passing our client’s material to a third-party service providers such as banks, insurance companies and many other such firms or whether we send a CV to any employer with the help of PDF document, is frequently considered as the first option to work with. Well, working with PDF files lets you transfer plain as well as formatted text, images, hyperlinks, and even various forms that you need to be filled out.
(more…)

Java Mail API On Android working With A Restful API On The Web

  • Reading time:193 mins read

Java Mail API On Android working With A Restful API On The Web

The JavaMail API is considered a bona fide set of classes for building a fully functional mail system that remains unconstrained by any protocols or platform. Now, the APIs serve an even greater goal when they are used for the RESTful API web services. But that comes later.

(more…)

Content organization on the number of votes

  • Reading time:324 mins read

Content organization on the number of votes

Quite often, we have the task to display any content (from the database) on the screen, many may argue that this is quite simple and trite. This is true, but when we have additional social components, for example on how to sort records by the number of comments or by rating – many novice webmasters can fall into confusion. Today we will consider the question of how to display the records by the number of gained votes. To do this, we will prepare a simple voting system.

(more…)

How to parse web pages using XPath

  • Reading time:146 mins read

Parsing pages with XPath. Today I will tell you how you can make parsers of remote HTML pages (in PHP). In this article I will show you how to perform xpath queries to Web pages. XPath – a query language to elements of xml or xhtml document. To obtain the necessary data, we just need to create the necessary query. For the work, we also need: browser Mozilla Firefox, firebug and firepath plugins. For our experiment, I suggest this webpage Google Sci/Tech News. Of course you can choose any other web page too.

(more…)

How to Easily Create a Flash Photo Gallery

  • Reading time:68 mins read

Flash Photo Gallery tutorial. Today I will tell you how to create very nice photo album using one small flash gallery. This have very easy way to see photos, just check its demo. Hope that you will like this too. One of important features of this gallery is that it can accept custom set of images via php-generated XML file. So just imagine, that in your script (or maybe some CMS), you will able to generate different galleries based on different params. As example photo galleries of members of your website.

(more…)