
Search In
I am running a script that runs once and stops. How do I loop it infinitely?
import time
outpins = [ 4, 5, 6, 12, 13, 17 ]
inpins = [ 18, 22, 23, 24, 25, 26 ]
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
nlines = 6
Inherit OpenERP Models:
There are two ways of Inheritance in openerp:-
1-Object Inheritance - _inherit
2-view inheritance
1-Object Inheritance -
Objects may be inherited in some custom or specific modules. It is better to inherit an object to add/mo
To send an e-mail with mixed content you requires to set Content-type header to multipart/mixed. Then, text and attachment sections can be specified within boundaries.
A boundary started with two hyphens followed by a unique number, which cannot appe
REPEAT(str,count)
If you want to repeat a string str at given times then you can use the REPEAT mysql function. REPEAT function returns a string consisting of the string str repeated count times. It returns an empty string if count is less than 1 an
Hello Reader's!, If you are developing the html 5 based form and need to show the progress bar of file uploading then you can use the following code written in PHP and Javascript:-
The PHP html file will be go like this:-
<?php
//get unique id
Content marketing is the best way to build and increase the awareness about a brand and establish a direct interaction with the customers and potential customers. Using content marketing techniques, one can tell the audience a unique story
We can override Login Struts action by using Hook.
In the below example we are overriding struts action "/login/login". When a user login in Liferay "com.liferay.portlet.login.action.LoginAction" is the action class that calls.
Follow the below ste
There are different ways to print a List, below are some example to print a list using:
1. For loop
2. While loop, and
3. Iterator
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
public class printmyList {
public stat
Hello Readers, this is a small blog on making divs display horizontally not vertically. Here is a very simple and easy code that will make divs to stack horizontally.
To achieve this we will make HTML page and CSS page
Hello guys,
This tutorial will help you to guide that "to share files without using an internet". Through this tutorial, we can share any type of files between android devices. I am explaining this step by step.
Step1- Introductio
