Tag Archives: development

8 Brilliant Tips for Developing the Applications for Internet of Things

Important Tips for Developing the Application for the Internet of Things_YWF

Before we go deeper with IoT, it is imperative to understand what Internet of Things (IoT) actually is. Basically, a platform enables the network, the smart device and user to get connected with the internet via a definite identifier. In general, IoT works on an embedded technology to communicate with all external environments. No wonder this thing has been seen as one of the revolutionary mobile app development trends in this generation, as it can manage everything right from an array of cohesive events to number of interconnected devices.

In fact, many have predicted that 2 billion devices will get connected to IOT by 2020, whereas the next five years $6 trillion is expected to be invested in IoT. This shows that Internet of Things have influenced a diverse set of industries to speak of, including the healthcare sector, the entertainment and gaming, automotive, home automation, and logistics. This is why IoT has a great potential in the future.

The Three Pillars of IoT

There are three major pillars which are important to note, regarding to the entire structure of the Internet of Things, such as:

  • Network: Generally network will perform similar function like router does in connecting the network to device. In this case, the devices are linked to the cloud. The infrastructure stationed at data centers will receive information. The things provide the data stream and also manage it. On the other hand, software helps to organize the things.
  • The things in themselves: it acts as Internet Gateway which is regarded as an Internet Gateway that helps other device communication through a single or many protocols. In fact, you won’t see a screen once the device gets connected to the network.
  • The cloud: it is a server that primarily aims for securing users confidential data. So, when users meet a critical juncture, the data will still get processed whereas the processing of a program usually happens during the concluding stages.

Tips for Developing Applications for IoT

Now, you have a better understanding about IoT and you may have lots of apps for the Internet of Things in mind. However, before you create one, you may want to know some factors that you can use as consideration, such as:

  1. Choose an Appropriate and Convenient Platform

The first step that every developer should do is to select the appropriate platform for the development process. One thing for sure, the platform should support the IoT applications and its components. Some platforms that are IoT proven and offer the scope to design the best in class apps are Ubidots, Xively or Thingworx. With the help of these platforms, you don’t have to start anything from the beginning.

  1. Consider the Industry for IoT Application

As stated above that Internet of Things has much widened and extended services, but there are still some fields that aren’t connected with Internet of Things. Therefore, you have to discover set of industries that can optimally connected such as healthcare, transportation, energy resources, sports, manufacturing etc. For instance, with IoT application, people can easily find transportation such as connecting buses or trains.

  1. Segregate Services from API Interface

Bear in mind that you need to separate the services from API interface while you are developing the apps for IoT. This will ensure you to have an app that runs smoothly on mobile and web desktop. You will surely get better opportunity once you manage your IoT applications well.

  1. IoT Data must be Secured Strongly

Every application developer knows about how important a strong secured environment is, especially to IoT data from the physical attacks. In fact, the security becomes more important when it comes to building GPS networks or banking apps.

  1. The Different Levels of IoT Apps

In order to understand the system and function of IoT applications, you have to know the various levels of IoT applications. Basically, there are four different layers; the devices, the ingestion tier, the analytics area and the end-user.

First of all, you have to consider the devices that you will be connecting. Then, you will see the infrastructure or the software receives data or organizes it. The next layer is all about data which actually is mainly processed with the help of analytics area. The last layer is about the end users for whom the app is getting developed.

  1. Keep an Eye on IoT Device Firmware Security

The difference between the Internet of Things from the traditional web and mobile apps is its hardware which is always apprehended to have security based issues in the firmware this is why it is essential to stay authenticated and signed before the update.

  1. Do not Neglect with Speed and Quality

You cannot comprise with the speed and quality at any cost when creating application for the IoT. Therefore, you have to focus on transforming the ideas into practice and provide stable working prototype.

  1. Ensure Scalability to the Application

It is important to build scalable applications since IoT is still a new concept. However, many believe that IoT is going to get bigger than ever with the time to arrive. In fact, having a good scalability will allow your app to remain in light for a long period of time.

In conclusion

Internet of Things is still considered as new comer in the technological area, but we will immediately see it is expanding and reached to a different height. This will surely help people access information easily and get connected one to each other at a  low price. On the other hand, it is also a challenge for the developers as it is different from other conventional methods.

Customizing the Error Page for Deactivated or Archived WordPress Sites

When someone visits a site by default, that means they are deactivated, then they will see a pretty dull default screen, informing that the site has been suspended. However, the problem comes when you want to customize, or add some custom content. Therefore, as a solution, this article will show you the exact way to do that. Below are some of the ways:

Suspending Sites in Your Network – the Options

Many web developers may think that terminology around deleting and suspending sites in a network is very confusing, since it’s not clear what each one means and sometimes when you do one, the system will tell you that you’ve done another.

Below is a recap on the options for removing sites from your network.

Here’s a detail of the Multisite Sites screen, which you access by going to My Sites>Network Admin>Sites:

You can find four options for removing the site:

  • When your users signup for a site, you can deactivate reverse the activation step users. However, it can be reactivated any time, since it doesn’t permanently delete the site. Besides, both the front end and the site admin screens aren’t accessible.
  • It is important to mark a site as being archived to prevent other users from accessing it. The admin screens can be accessed but not the front end. Besides, you can archive a site easily at any time and it hasn’t been removed.
  • Once your site gets spam, your site will be marked as spam, not deleted. To make it available again, you can decide whether to unmark it as spam or delete it.
  • Delete the site, but be careful when deleting the site because you have to make sure that you are ready to delete it.

The Default Screen for Suspended Sites

When your site is removed, WordPress will show a default screen. Below are scenarios that you will see.

Deactivated Sites

Visitors can see a default screen if a site is deactivated and someone other than the (logged in) network admin visits it.

Archived Sites and Sites Marked as spam

You’ll get a different screen notification, when you mark a site as spam or archived.

I know that the screens may be too basic and simple. Therefore there is not much information or explanation about what’s meant by ‘no longer available’ or ‘archived or suspended’.

Creating a Page for Deactivated Sites

Creating a new page for displaying when someone visits a deactivated site is quite straightforward. You simply create a new file called blog-deleted.php and put it in your network’s wp-content folder. This file will then be used to display a custom page instead of the default page.

Note that this is in the network’s wp-content.php folder and so the same file will be used for any sites in your network that are deactivated. In other words, you have to create something generic, rather than something specific to one site in your network.

To avoid your site from using theme or calling any plugins or additional files, the page you create has to stand alone. As a solution, you need to include any styling in that file or call an external stylesheet, which you would put in a styles folder in your wp-content folder.

Remember to include the <head> section and the opening and closing <body> tags as these won’t be coming in via your themes’ header or footer files.

You can try this by using a very simple file with all the styling included in it or with a completely blank file if you’d like or you can copy some of the content from your theme files. For example, use the copied contents of  theme’s header.php file and edit those down significantly, then manually add the rest of the markup.

Here’s the content of  <head> section:

<?php
              // file for displaying an error message on deleted sites
?>
<!DOCTYPE html>
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
<title><?php
              /*
               * Print the <title> tag based on what is being viewed.
               */
              global $page, $paged;
              wp_title( ‘|’, true, ‘right’ );
              // Add the blog name.
              bloginfo( ‘name’ );
?></title>
<style>
              .content {
                             width:500px;
                             height:500px;
                             margin:0 auto;
                             background:#999;
                             position:absolute;
                             left:50%;
                             top:50%;
                             margin-left:-250px;
                             margin-top:-250px;
                             padding: 10px;
              }
              .content p {
                             position: relative;
                             top: 50%;
                             transform: translateY(-50%);
                             text-align: center;
                             font-size: 18px;
                             font-family: ‘Helvetica Neue’, Verdana, sans-serif;
              }
              a:link,
              a:visited {
                             color: #fff;
                             text-decoration: underline;
              }
              a:hover,
              a:active {
                             color: #fff;
                             text-decoration: none;
              }
</style>
</head>

 

You can find some metadata and styling from the example above.

Now for the <body>:

<body <?php body_class(); ?>>
       <section class=”content”>
 
              <?php _e( ‘<p>This blog has been deleted, sorry! To create your own site, please visit <a href=”‘ . network_site_url() . ‘”>The Main Network Site</a>.’, ‘compass’ ); ?>
 
       </section>
</body>

 

The code above is just an element for the content, with a paragraph inside it and some text, which is translatable. If your network allows user sign-ups, you might need to include a link to the main site. If this site has been replaced, you might need to link to a different site or to a page on your main site explaining your policy for deleting sites, or wherever you want.

So, now the result will be like:

Isn’t it pretty? Now, you can add some different styling colors and maybe a headline. Furthermore, it is also possible to replace the default page for deleted sites and add anything you want to.

Creating a Page for Archived Sites

You can also create a custom page for sites which have been archived or marked as spam and you need to create another file also in your wp-content folder. This is called blog-suspended.php. file, but with a slightly different text. Here’s the code:

<?php
              // file for displaying an error message on deleted sites
?>
<!DOCTYPE html>
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
<title><?php
              /*
               * Print the <title> tag based on what is being viewed.
               */
              global $page, $paged;
              wp_title( ‘|’, true, ‘right’ );
              // Add the blog name.
              bloginfo( ‘name’ );
?></title>
<style>
              .content {
                             width:500px;
                             height:500px;
                             margin:0 auto;
                             background:#999;
                             position:absolute;
                             left:50%;
                             top:50%;
                             margin-left:-250px;
                             margin-top:-250px;
                             padding: 10px;
              }
              .content p {
                             position: relative;
                             top: 50%;
                             transform: translateY(-50%);
                             text-align: center;
                             font-size: 18px;
                             font-family: ‘Helvetica Neue’, Verdana, sans-serif;
              }
              a:link,
              a:visited {
                             color: #fff;
                             text-decoration: underline;
              }
              a:hover,
              a:active {
                             color: #fff;
                             text-decoration: none;
              }
</style>
</head>
<body <?php body_class(); ?>>
       <section class=”content”>
 
              <?php _e( ‘<p>This blog has been suspended, sorry! To create your own site, please visit <a href=”‘ . network_site_url() . ‘”>The Main Network Site</a>.’, ‘compass’ ); ?>
 
       </section>
</body>

 

The page below is what you will get when you visit an archived site:

 

By this, our visitor will get more information and a link to the main site which you can replace it with whatever you want.

Hopefully, by following the steps above, you can quickly and easily replace the default pages for archived, suspended or deleted sites. As a result, visitors will get more information from the default screens which will give them a link to your main site. This will prevent users from just leaving your network entirely.

Knowing What’s Missing in WordPress Functionality

WORDPRESS’-MISSING-FUNCTIONALITY-(AND-HOW-TO-FIND-IT)_ywf

WordPress has become one of the most well-known website platforms in the world. Many people love this platform because of its flexibility, security and ranges of plugins that one can install to provide additional functionality. However, with many benefits that it offers, WordPress still lacks with many things. If you are a web developer, the information below can be beneficial for you. Here are a few requests for the missing functionality in WordPress; and some workarounds for the meantime.

Ability to Duplicate Posts

WordPress is equipped with completely redo settings to get the desired output which can be unnecessarily time consuming. This functionality on WordPress is limited to the use of a plugin: Duplicate Post.

With a duplicate post plugin, you can “clone” a post or “create a new draft”. The latter copies the post and opens it in a new window for editing. On the other hand, the former creates a new post entirely.

Moreover, you can also edit settings that let you do things like copying with this plugin:

  • Original date,
  • Original status (saved to draft, published, pending),
  • Original excerpt; original attachments,
  • Children of the original page,
  • Taxonomies/custom fields.

You are also able to work with custom post types in this plugin. Unfortunately, not all plugins are compatible and doesn’t necessarily call out these incompatibilities on the front end. As a result, it can cause worst scenario, such as complication from using this plugin can crash your website, so it is important for you to have a backup.

Bundle Settings and Plugins for New Installs

If you are planning to create multiple sites in WordPress, it would be particularly helpful to have some functionality that combines all the desired features into a file that could be uploaded to the site you’re building. If you work with clients in a similar industry, you will see that many WordPress websites have the same base features. However, installing /activating the launch list plugins one by one is tedious, so as a solution, you can install WordPress Install Profiles plugins. Once installed and activated, Go to Plugins > Bulk Install Profiles.

Furthermore, you can easily add or remove plugins from the list with a default list of plugins. Use the name on the plugin’s URL to add a new plugin, after that, give the list profile a name and download it to your computer.

You’ll need to have the WordPress Install Profiles plugin installed and activated on that site, then import the profile you want to install on another website. However, since this plugin hasn’t been updated in many years, there may be compatibility or security issues associated with its use.

SITE CACHING

Site caching supports your site to load faster by storing the website processes in an HTML file to be loaded as needed. That is why page loading is a major factor for ranking in technical SEO. To avoid any server calls, developers wish that WordPress had site caching.

Even though you cannot find site caching built into the platform, there are many plugins that can initiate this process, like W3 Total Cache and WP Super Cache. Actually, there are some WordPress hosting companies that offer site caching. However, many find that site caching offered through a web host is more efficient than these plugins, so if that’s an option, don’t install a caching plugin.

Built-In Form Builder

You can find a lot of form builder plugins, but since most businesses use forms anyway, why not add this functionality to the WordPress core code? Rather than waiting for this functionality missing in WordPress, try an all-purpose contact form plugin like Contact Form 7. With contact Form 7, you can manage multiple contact forms, and you can easily customize form and email content with simple markup. Besides, Contact Form 7 supports Ajax-powered submitting, CAPTCHA, Akismet spam filtering, and other important security factors. Another benefit that you can get is the simplicity to set-up, flexible, as well as it offers customizable default messages, and easily-defined mail messages.

Improved Theming System

In terms of the theming system, WordPress still needs lots of improvement. There are still “sloppy code” and “disastrous mix of business and display logic”. In the current version, you can see that template hierarchy does not take plugins into account. As a result, the plugin has to override the template system, or create a workaround to provide a default template for displaying this custom post type if you have a plugin with a custom post type for movies.

The more complex the code base, there is a greater opportunity to improve code practices, eliminate short codes, and fix template hierarchy for a more efficient base theme.

Custom User Permissions

In general, WordPress serves its users with 5 roles:

  • Administrator
  • Editor
  • Author
  • Contributor
  • Writer

In terms of managing tasks, each of these roles has their own specific limits. Many developers suggest it, so that WordPress could allow users to set, specify, or limit what each individual user can do, especially for a multi-author/user site.

To overcome this functionality missing, you can use Advanced Access Manager plugin; which manages both frontend and backend access.

File Browsing Interface

Even though you can find various plugins available, you have to be careful in choosing the right plugin for your website, since certain plugins may cause your website to slow down. By having an error code, you can identify this, but when it does not, then you have to manually deactivate all files, and then reactivate them one by one in the admin area to determine what is causing the error. However, you have to use a File Transfer protocol (FTP) like Firezilla to backup all plugin files if the error does not allow access to the admin area.

Besides, developers can quickly fix issues without needing cPanel/FTP access since you can access files directly from WordPress.

Nowadays, WordPress is still the most powerful platform on its own. No wonder there are various plugins that have been developed to support the functionality missing in WordPress, even though many developers are still hoping that the issues will immediately get built-in solutions.