Thursday, January 31, 2019

Website Builders: WordPress vs Squarespace



WordPress and Squarespace are the two most popular website building platforms among small business owners. WordPress is a free, open source, and perhaps the most flexible website builder you’ll find out there. Squarespace is no pushover either. Boasting high-quality designer templates to easily build a site, it has a large number of dedicated users who keep increasing by the day. Below, we compare the two platforms side by side to help you pick the best website platform for your organization.



Wednesday, January 30, 2019

C# Invoice post in tally XML format connect to web to tally - Static IP Configuration

Asp.net C# application invoice post in tally in XML format - Web base application connect to tally ERP using static IP 

public string xmlPosting(string xml)
    {
       
        WebRequest request = WebRequest.Create("http://00.000.00.000:9000");​//Static IP

        request.Method = "POST";
        request.Timeout = 99000;
        byte[] byteArray = Encoding.UTF8.GetBytes(xml);
        request.ContentType = "application/x-www-form-urlencoded";
        request.ContentLength = byteArray.Length;
        Stream dataStream = request.GetRequestStream();
        dataStream.Write(byteArray, 0, byteArray.Length);
        dataStream.Close();
        WebResponse response = request.GetResponse();
        Response.Write(((HttpWebResponse)response).StatusDescription);
        dataStream = response.GetResponseStream();
        StreamReader reader = new StreamReader(dataStream);
        string responseFromServer = reader.ReadToEnd();
        //Response.Write(responseFromServer);
        // Clean up the streams.
        reader.Close();
        dataStream.Close();
        response.Close();
        StringBuilder output = new StringBuilder();
        return XmlError(responseFromServer);
    }

Tuesday, January 29, 2019

ASP.Net Zero vs ASP.Net Boilerplate Framework


To start with, both, ASP.net Zero and ASP.Net Boilerplate framework are considered to be a strong infrastructure for modern web applications. ASP.NET Zero is an effective resolution for building web and mobile apps. Full source code is obtained from it and based on the business idea and need, it can be changed as desired. This structural model of ASP.NET Zero is centered on the open-source and community-driven ASP.Net Boilerplate framework. However, there are many differentiation that make them unique in many which ways. Let us understand them in detail and get into the nitty-gritties of both to them to get a clear the picture.

What is ASP.Net Zero and ASP.Net Boilerplate framework?

It is nothing but a Visual Studio resolution. It is put together centred on layered structural design and other software It delivers a firm, robust and accessible solution architecture, along with pre-built pages, to name a few. It does prove to be beneficial for all the business enthusiasts who do have a brilliant business idea in their mind and want to execute in form of a web application for the prospective clienteles. For building a web application by extending the business idea, then ASP.Net Zero with finest practices is taken as the base solution. This will not only save the precious time of the developers but also they do not have to start afresh. Requirements such as: user, role and permission management, audit logging, setting management, user profile management, localization and so on are taken care of in this visual studio solution. Case in point, a lot of pre-built functionalities are made responsible by it. What is more, it also makes your everyday development effort stress-free by means of a comprehensive web application structure.

On the other hand, ASP.NET Boilerplate automates common software development jobs by resolution, focusing on the business code. All in all, ASP.NET Boilerplate is an open source and nicely-documented application structure. It is not just a structure, as it delivers a solid architectural model centered on Domain Driven Design too, using all the finest practices in mind.

Friday, January 27, 2017

Monday, January 2, 2017

How to limit process number per user for linux user and apache/cgi

How to limit process number per user for linux user and apache/cgi



Instructions for installing PostgreSQL and Management over users and databases.

Included instructions for rebuilding of php with pgsql so you could use phpPgAdmin.


Monday, November 21, 2016

php.ini per folder CentOS WebPanel CWP

All server with CWP can have custom php.ini file set per user account or per folder.
User can manually create php.ini file and add values which needs to be changed in it.

Location of the global server php.ini file is

/usr/local/php/php.ini

Location of the global per account php.ini file is

/home/USERNAME/php.ini
You can also have per folder changes, example:
/home/USERNAME/public_html/website1.com/php.ini
/home/USERNAME/public_html/website2.com/php.ini
/home/USERNAME/public_html/website2.com/myapp/php.ini
How to test php.ini changes?
Simple create phpinfo.php file in the users public_html folder and add the following content in it.
Example location: /home/USERNAME/public_html/phpinfo.php
<?php
phpinfo();
?>

Now open url in your browser (Apache restart is NOT needed):
http://your-domain.com/phpinfo.php
PHP.ini values
http://php.net/manual/en/ini.list.php

Sunday, November 20, 2016

How can I add captcha in my contact form in PHP?

By distinguishing between humans and automated computer programs, CAPTCHA offers safety and security in a number of ways. Why use CAPTCHA:
1) Protecting Registration Forms in Websites
2) Preventing Spam Comments
3) Making Online Shopping More Secure
4) Protecting Email Accounts
It is very easy to implement a Captcha in any html forms using php. you can go through any of below mention links to implement it.
Happy coding.