Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: How to compare string
Post: RE: How to compare string
(Jan-17-2019, 06:08 PM)ichabod801 Wrote: ";Day1=13/10/18;Day2=14= Shift;Time11=15:17;PRICE=10"done here# Input string.
Input_string = ";Day1=13/10/18;Day2=14= Shift;Time11=15:17;PRICE=10"
# Separat... |
|
Rehan11 |
General Coding Help |
3 |
2,388 |
Jan-19-2019, 03:03 PM |
|
|
Thread: How to compare string
Post: How to compare string
I need help to compare string
Let's say I am getting string continousely from input
input message may be following
string = ";Day1=13/10/18;Day2=14= Shift;Time11=15:17;PRICE=10"
strong = ";Day1=... |
|
Rehan11 |
General Coding Help |
3 |
2,388 |
Jan-17-2019, 06:03 PM |
|
|
Thread: TCP/IP client script help
Post: RE: TCP/IP client script help
(Jan-14-2019, 07:44 PM)nilamo Wrote: You currently send it once. To send it repeatedly, use a loop.
You currently get and display the response. Use an if statement to check it's result.Thanks nila... |
|
Rehan11 |
Networking |
2 |
2,414 |
Jan-15-2019, 06:48 AM |
|
|
Thread: TCP/IP client script help
Post: TCP/IP client script help
Client script
Here's simple code to send and receive data by TCP in Python:
#!/usr/bin/env python
import socket
TCP_IP = '192.168.0.12'
TCP_PORT = 5004
BUFFER_SIZE = 1024
MESSAGE = "How are you!"
... |
|
Rehan11 |
Networking |
2 |
2,414 |
Jan-12-2019, 12:52 PM |
|
|
Thread: How to send/receive data over TCP
Post: How to send/receive data over TCP
I have tow system one is system A and anothr is system B
System A - Server (pi)
System B - Client (printer)
I want to send a request to the printer
if request accepted, get the data from the print... |
|
Rehan11 |
Networking |
1 |
3,658 |
Dec-29-2018, 06:39 PM |
|
|
Thread: Reset counter when the day turns over
Post: RE: Reset counter when the day turns over
(Dec-28-2018, 06:02 PM)nilamo Wrote: So you want a script that's always running?yes
Quote:What happens if the machine loses power? Would you expect the count to be 0 once it started back up, or to... |
|
Rehan11 |
General Coding Help |
3 |
5,605 |
Dec-29-2018, 09:40 AM |
|
|
Thread: Reset counter when the day turns over
Post: Reset counter when the day turns over
I want to monitor an event's and store value in counter and when the day turns over, it resets the counter to zero.
Here is a example
Day: 28 Count: 0
Day: 28 Count: 1
Day: 28 Count: 2
... .....
Day:... |
|
Rehan11 |
General Coding Help |
3 |
5,605 |
Dec-28-2018, 03:55 PM |
|
|
Thread: How to save record
Post: How to save record
How to save variable value entered by user from GUI
I made this program How to modified program to store details
python 3 raspbain os
from tkinter import *
top = Tk()
NameLabel= Label(top, ... |
|
Rehan11 |
GUI |
2 |
2,710 |
Dec-27-2018, 05:48 PM |
|
|
Thread: how to call WCF from python
Post: RE: how to call WCF from python
(Dec-20-2018, 04:00 AM)nilamo Wrote: Oh I get it now, thanks for clarifying. As long as the service you're connecting to is available to the network, then yes that should be what you need to use.Th... |
|
Rehan11 |
General Coding Help |
5 |
11,276 |
Dec-20-2018, 08:15 AM |
|
|
Thread: how to call WCF from python
Post: RE: how to call WCF from python
(Dec-19-2018, 07:06 PM)nilamo Wrote: .
So... there's three completely different things in your post. If you let us know what you're trying to accomplish, we can try to help you get there.
Pir sens... |
|
Rehan11 |
General Coding Help |
5 |
11,276 |
Dec-20-2018, 03:33 AM |
|
|
Thread: how to call WCF from python
Post: how to call WCF from python
can anybody help with the script
I don't understand how to call WCF from python running on the raspberry ?
Is this script enough to call WCF ?
from suds.client import Client
print "Connecting to S... |
|
Rehan11 |
General Coding Help |
5 |
11,276 |
Dec-19-2018, 06:52 PM |
|
|
Thread: How to get number with print statement
Post: How to get number with print statement
I wrote program to add two integer.
(using python 2.7)
print "Promote user to enter first number"
number1 = int(raw_input())
print "Promote user to enter second number"
number2 = int(raw_input())... |
|
Rehan11 |
General Coding Help |
1 |
2,253 |
Jul-28-2018, 02:00 PM |
|
|
Thread: How to print number from user
Post: RE: How to print number from user
(Dec-01-2017, 05:23 PM)Larz60+ Wrote: print('Hello', + person)remove the comma
I strongly recommend you start using the f-string method (first appears in python 3.6),Hi Larz60+
Your code is not wor... |
|
Rehan11 |
General Coding Help |
5 |
3,422 |
Dec-03-2017, 02:56 PM |
|
|
Thread: How to print number from user
Post: RE: How to print number from user
Thank you very much @Larz60+
Still this does not print name
>>> person = input('Enter your name: ')
print('Hello', + person)
File "<pyshell#0>", line 2
person = input('Enter y... |
|
Rehan11 |
General Coding Help |
5 |
3,422 |
Dec-01-2017, 04:32 PM |
|
|
Thread: How to print number from user
Post: How to print number from user
I am newbie here. I don't have knowledge of python program. after some reading I tried to write one program I just want to write simple program that will take input name from user and print the name o... |
|
Rehan11 |
General Coding Help |
5 |
3,422 |
Dec-01-2017, 05:59 AM |