Easy Code Share > Articles by: Editorial Staff

Auto Refresh HTML Data in Web Page by 4 Methods

Auto Refresh HTML Data in Web Page by 4 Methods

There are 4 methods to auto refresh Html data in display boards such as currency rate boards, so that the web page keeps changing periodically. The former two methods are about that browsers are polling the host site actively to get newest data. In the latter two methods, browsers just passively receive notifications of status … Read more

Easy Code Share > Articles by: Editorial Staff

Python Parallel for Loop on Producer-consumer Model

Python Parallel for Loop on Producer-consumer Model

Python parallel for loop can simplify the producer-consumer model, and we provide a simple Python example that uses the async thread module, asyncio, for demonstration. The example simulates the behaviors of restaurant’s cookers and their customers. Briefly, Python language provides a quick method to execute for loop in parallel that meets the feature of such … Read more

Easy Code Share > Articles by: Editorial Staff

Solving Post JSON to Python CGI FieldStorage Error

Solving Post JSON to Python CGI FieldStorage Error

Python CGI module gets popular among developers for only unstructured data, but its FieldStorage() gives rise to an error for posting JSON data. The article describes the problem in details and raise a solution. You should configure Apache CGI on Windows or Linux before studying this topic, because practices make perfect. All codes here are … Read more

Easy Code Share > Articles by: Editorial Staff

WebSocket Push Message to a Specific Client in Html

WebSocket Push Message to a Specific Client in Html

Unlike HTTP servers, WebSocket servers can push a message to a specific client in Html and JavaScript. The feature is valuable for many applications such as web chatting. This article starts from WebSocket basics that introduces the way how clients and servers talk. Subsequently, the demo example uses NodeJS to build a server that manages … Read more

Easy Code Share > Articles by: Editorial Staff

Loop Multidimensional Array in PHP by 3 Recursive Demos

Loop Multidimensional Array in PHP by 3 Recursive Demos

You can walk across one-dimensional array simply, but may laboriously loop through multidimensional array in PHP using recursive methods. Truly, the multidimensional features in data need more efforts for traversal of array. Obviously, recursive methods involve many types of applications such as traversing files in a directory, Towers of Hanoi, types of Tree Traversal and … Read more

Easy Code Share > Articles by: Editorial Staff

Googletrans Python Example for A French Chatbot

Googletrans Python Example for A French Chatbot

The Googletrans Python library can implement multilingual chatbot examples such as a French chatbot. In general, the French stemmer, one of NLTK(Natural Language Toolkit) Snowball Stemmers, is able to parse French sentences and phases to achieve a French chatbot. Alternatively, we provide here another approach and will tell you the reason. Although the NLTK Snowball … Read more

Easy Code Share > Articles by: Editorial Staff

NLP Chatbot Deep Learning by Tensorflow and NLTK

NLP Chatbot Deep Learning by Tensorflow and NLTK

NLP chatbot can wisely acts as a person in charge of customer service, and we want to concisely reveal the secret of AI(Artificial Intelligence) chatbot by introducing the deep machine learning with Tensorflow and NLTK in Python. By definition, NLP(Natural Language Processing) is the process that chatbot is able to understand what human is talking … Read more

Easy Code Share > Articles by: Editorial Staff

WSGI App in Python under Apache mod_wsgi

WSGI App in Python under Apache mod_wsgi

Walking through an example, you will learn how to install and configure mod_wsgi on Apache, and enable a Python wsgi app. Accordingly, the app accepts GET and POST data and replies with text, html or json data. Unfortunately, the ways to retrieval of GET and POST parameters from mod_wsgi are different. But when you understand … Read more

Easy Code Share > Articles by: Editorial Staff

Canvas Ajax Upload from Cordova App

Canvas Ajax Upload from Cordova App

How Cordova app uploads a Canvas image via Ajax will be presented here. We create a signature image data by HTML DOM TouchEvent on the Canvas element. The canvas data can be sent to the server and saved. Behind the topics, there are two essential limits that should be fixed for Cordova upload through Ajax. … Read more

Easy Code Share > Articles by: Editorial Staff

How Cordova Customize Icon and Splash by config.xml

How Cordova Customize Icon and Splash by config.xml

You will learn how to customize the app’s icon and splash from config.xml in Cordova projects. Also, if config.xml defines the plugins used, Cordova will auto install them during the app building process. Free download and walk through a demo for quick start. All codes here are not complicated, so you can easily understand even … Read more