Pages

Friday, January 3, 2020

Programming language useful for creating IOT applications

In this consistently developing system of physical gadgets, Internet of Things (IoT) has gotten substantially more practical, with keen gadgets that permit less human information and more machine yield. Today, it is especially a reality that savvy home center points, wearable gadgets, associated vehicles, modern Internet, shrewd retail, and a lot more consider IoT for usefulness.

The work area applications, servers, and portable applications utilize some programming dialects that are pretty much the equivalent. So it causes us to accept that there is no distinction in brilliant items as they resemble minicomputers. IoT involves a three-level design condition that comprises of creating the information, sorting out the information by the nearby passages, or center points and brought together servers that are topographically far off where every one of the information winds up.

Choosing a particular language for your IoT ventures is as perplexing as choosing an equipment stage. Here, we give you the rundown of programming dialects that are best for IoT ventures.

Java

With respect to code, Java is the most outstanding programming language out there. So it's nothing surprising that it's a noticeable choice among IoT engineers. This is especially clear with respect to IoT building that enables you to "form it once, and run it wherever."

Java is, in like manner, a lingo that has obtained coding methodologies from Mesa, C, C++, and various others. Further, it's an extraordinary component to enable investigating code on a PC and, a short time later, moving it to a chip through a Java Virtual Machine (JVM).

This suggests the code can continue running in a couple of better places where JVMs are ordinary like mobile phones and servers. In any case, in this event, it can, in like manner, be continued running on the most minor of machines.



As you may have hypothesized, a lot of "things" won't for the most part exist without a champion among the most fundamental programming dialects, similar to C. It's basically a starting stage and is the most notable language for introduced devices.

C has been used with IoT sheets, as Arduino, and it is used every now and again, in spite of the way that various dialects may rank essentially higher.

C++ 

C doesn't have the getting ready force of an inquiry organized pre-processor like C++. In this manner, it's used as a pre-processor for C to engage it to run a bigger measure of dialects. It's anything but difficult to submit stores of blunders with this programming language, yet it's generally adored by programming engineers.

Since the most broadly perceived Linux reaches out as the introduced programming language, it engages layers of things and reflections. It's ideal for engineers wanting to extend their programming code for IoT and embed code. Further, C++ makes you use various dialects including C#, Java, and Python.

Python

Two or three years earlier, no one figured Python would be used for IoT for the most focal part around web applications. Nevertheless, that has changed as of late as it's a straightforward programming language to grasp and use in IoT adventures.

Regardless of the way that Python started as a scripting language to stick code together, it has gotten one of the basic dialects and is used by a lot of specialists. As meager contraptions have confined computational power and memory, engineers need to get creative to make life basic. Consequently, it has grown fundamentally inside embedded devices' space while engaging designers to make applications that can pass on justifiable data mining results.

These days, by far most of the notable microcontrollers are in like manner utilizing Python. For example, there are even little structures like the MicroPython board, which is only several square inches and a programming pack. If you have to make something cool for Alexa, you better get up to speed with your Python programming aptitudes.

PHP

At the point when you consider PHP, you, generally, you ought to consider webpage models and web diaries, not IoT. Regardless, that is valid as huge amounts of designers are right now joining PHP code in their stack. Its kind of an obvious assurance as the code's essential structure is to shuffle microservices on the server.

Raspberry Pi engineers are as of now using LAMP over Linux, transforming something saw as lowliest on the web into a hard and fast web server. Putting a LAMP stack on a chip makes it less requesting to make, as the Raspberry Pi has enough additional cycles. Moreover, all server-side code that was made throughout ongoing decades can be housed on an unobtrusive sensor.

JavaScript

All HTML and Internet programs today use JavaScript as their programming language. Regardless of the way that it has taken miscellaneous items from various dialects, similar to Python and C, you can express that it's a scripting language shares other programming language libraries, similar to Java.

This goes far in making devices interoperable and its expansive use in present programming helps make things less requesting. The acclaimed branch in IoT headway has been Node.js, a noteworthy piece of the work is based on focuses and servers to aggregate data and store it.

Two microcontrollers that run JavaScript from the most punctual beginning stage are Espruino and Tessel. JavaScript is pervasive in web applications and locales, and now, web engineers can without a doubt continue forward to IoT headway without taking up another dialect.

GO

Offering various resemblances to C, Go is an introduced programming language that was made by Google. What's cool about Go is that it's more grounded than C and empowers devices to coordinate to send and get data in various channels all the way long.

Regardless, there is a basic damage here as there's a high likelihood of data disaster or slip-ups if it's not regulated authentically in the midst of the coding stage. In any case, as this programming language keeps on creating, things may change in the near future.


B# 

B# was especially created for little applications, so you can use this programming language on different stages using an Embedded Virtual Machine (EVM) that reinforces B#.

On the off chance that you're not wanting to collect anything tremendous, B# is the best vernacular for clear IoT applications.


End

There still emerges a perplexity over which programming language is the best for IoT advancement. Most importantly, who has its very own job and impact inside this space? The ones that stand apart of the clear backings the end utilization of the applications, also. In the present situation, Java is a programming language that is driving the pattern, yet it can likewise change after some time. While deciding the language for your IoT venture, it comes down to the individual inclination of the engineer and the particular needs of your undertaking. To fit the ideal match in the IoT venture, it is crucial to comprehend the present market inclines and pick your administrations in like manner.

Wednesday, January 16, 2019

How to Make your Website PCI DSS Compliant

Web application that need to take payment online, then it has to follow the PCI DSS compliance (Payment Card Industry Data Security Standards). Ensuring that website is secure for taking payment and its not stolen the card data and password by anyone.

There are few point need to implement in application to follow PCI DSS compliance
a). Secure Hosting (Use SSL)
b). Use Latest TLS version of web server
c). Protect Card Data : Use Hosted payment form for any gateway (Not use website payment form)
d). CSRF token use for every request
e). Do not store card data in database : If need to reuse user card information then use token instead of storing card details
f). For reference if storing card data then store in masked format and store only last 4 digit of card number
g). Password Expiration policy
h). Always use strong password encryption algorithm for storing password in DB
i). Prevent XSS in application

Monday, July 16, 2018

How to Fix the Leverage Browser Caching?

What is Browser caching?
  • Browser stores web page files on a local computer when a user browses any web page.
  • "Leveraging" browser caching: When a webmaster has instructed browsers how their resources should be handled like what its expiration and what's the age of web page resources like css and js or any other media.

For resolve leverage browser caching error we need simple put below code into .htaccess file.

## EXPIRES HEADER CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType image/svg "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType application/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES HEADER CACHING ##

Monday, July 2, 2018

MYSQL Comma Seperated Rows | Concatenate multiple MySQL rows into one field

Tips Trick to Concatenate comma separated rows Value:

Suppose you want to show comma separate row value using mysql query and want output like below:

Mysql query to get favorite subject of Person :

SELECT subjects FROM user_subject_table WHERE user_id = 5; 

It will Give below output:

subjects
Computer
History
English
Chemistry

But you want to show comma separate in single row with user id then use below query:

SELECT user_id, GROUP_CONCAT(subjects SEPARATOR ', ') as fav_subject
FROM user_subject_table GROUP BY user_id

Output:

user_id          fav_subject
2                     English, Computer
5                     Computer, History, English, Chemistry

Advance Usage : 
1. Show Distinct subjects

SELECT user_id, GROUP_CONCAT(DISTINCT subjects  SEPARATOR ', ') as fav_subject

FROM user_subject_table GROUP BY user_id

2.  Show Subject Order by (ASC or DESC)

SELECT user_id , GROUP_CONCAT(subjects  ORDER BY subjects  ASC SEPARATOR ', ') as fav_subject FROM user_subject_table GROUP BY user_id






Saturday, June 30, 2018

How to Check Version of Codeigniter Framework Using

Method 1:
Follow this path : root_folder of CI
Navigate to system -> Core -> Codeigniter.php
Here you can see the version of CI under CI_VERSION constant.
define('CI_VERSION', '3.0.0');

Method 2:
Easy and simple way:
Just write below line in any controller or any view

for example Welcome.php or Index.php (Controller)
In any function or constructor put this:

echo CI_VERSION;

This will give you the version of the CI currently you are using.

Codeigniter | How to Insert Batch Records

When you want to insert batch data into database table then you not need to insert using loop just use insert_batch function provided by Codeigniter.
Example :

$data = array(
   array(
      'title' => 'Title 1' ,
      'name' => 'Name 1' ,
      'date' => 'date('Y-m-d H:i:s)'
   ),
   array(
      'title' => 'Title 2' ,
      'name' => 'Name 2' ,
      'date' => 'date('Y-m-d H:i:s)'
   )
);

$this->db->insert_batch('your_table_name', $data);

This will reduce memory and execution time.