Refresh to display a web page using Python

Python Program Example 1.

If you’re going to need a refresh on the same tab, you’ll need selenium webdriver. After installing selenium using pip, you can use the following code:

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
driver = webdriver.Firefox()
driver.get("http://www.python.org")
while True:
   time.sleep(10)
   driver.refresh()

If you are browsing a static page, you can pass a parameter in it and run, for example passing "pycon" to search as below script:

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Firefox()
driver.get("http://www.python.org")
assert "Python" in driver.title
elem = driver.find_element_by_name("q")
elem.clear()
elem.send_keys("pycon")
elem.send_keys(Keys.RETURN)
assert "No results found." not in driver.page_source
driver.close()

read more

Open Source IT Asset Management Software

Recently, I browsed a useful web blog about IT management, called “Capterra IT Management Blog” from link –> http://blog.capterra.com/the-top-3-free-and-open-source-itam-software-solutions/ . It listed out three open source IT asset management software. They are useful, so I copy and share in it for your reference.

SysAid IT Asset Management

This free IT asset management solution has been around since 2002 and is available for both cloud and on-premise (Windows and Linux)

Pros

With SysAid’s asset management solution, users have access to all the standard features of licensed ITAM software, including the ability to view all software and hardware, as well as the manufacturer details of computers, printers, and other networked devices. Other benefits include automatic notifications of asset changes and the ability to create management reports.

read more

What is "China Manufacturing 2025" ?


Industry 4.0是实体物理世界与虚拟网络世界融合的时代。但德国业界对Industry 4.0的响应者却不多,原因之一是所谓的虚拟网络-实体物理系统(Cyber-Physical System,CPS)融合的主要思想,美国早在若干年前就已提出。未来 10 年,基于信息物理系统(Cyber-PhysicalSystem,CPS)的智能化,将使人类步入以智能制造为主导的第四次工业革命。产品全生命周期、全制造流程数字化以及基于信息通信技术的模块集成,将形成一种高度灵活、个性化、数字化的产品与服务新生产模式。

read more

What is Industry 4.0 ?

Industrial Applications« BACK TO INDUSTRIAL APPLICATIONS
Industry 4.0 – What’s That About?
By John Donovan for Mouser Electronics

First we had inflection points; then paradigm shifts were all the rage. Now we are hearing about a new Industrial Revolution – Industry 4.0. According to its proponents it is a new method of production that is creating a fourth Industrial Revolution. Really? What’s that about?

To back up a bit – actually about 250 years – James Watt’s improvements to the Newcomen steam engine in the late 18th century kick started the First Industrial Revolution. Watt did not invent the steam engine, but his numerous innovations increased the productivity of the textile industry by three orders of magnitude. Mechanized factories had arrived.

read more

Reference Info/Link for Python's Django Development

A great document for more complex installations—those that host multiple Django Web sites (projects) using only one instance of Apache—can be found at –>
http://forum.webfaction.com/ -> search for ‘Django’

You can find out more about some of the possible Web server arrangements at –>
http://code.djangoproject.com/wiki/ServerArrangements.

More about Django and database installation at –>
http://docs.djangoproject.com/en/dev/topics/install/#database-installation.

read more