- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re: Instead of following code <?php $submit = $_POST['submit']; $username = $_POST['username']; $password = $_POST['pasword']; // <---wrong, s missing!!! $repeatpassword = $_POST['repeatpassword']; $email = $_POST['email']; if($submit) { echo "$username/$password/$repeatpassword/$email"; } ?> check submitting like this, for example: <?php if(isset($_POST['submit'])) { $username = $_POST['username']; $password = $_POST['password']; $repeatpassword = $_POST['repeatpassword']; $email = … | |
Re: Hi d5e5. I think biojet wants opposite. biojet, try this one: [CODE] my $first = 12; my $second = "Tai"; my $oneval = "$first$second"; say $oneval; [/CODE] | |
Hi folk. Can I use join() method in implementation of run(), like this: [CODE] public class MyThread extends Thread { @Override public void run() { int timeout = 30000; // here is some heavy work join(timeout); } } [/CODE] Is above thread terminated after timeout milliseconds if task takes longer … | |
Re: In first and second codes class name were LoginExample. In last snippet it is LoginExamples. Have you changed your project properties for LoginExample"S" ??? | |
Re: can you put here your layout xml file? I think, you put wrong properties for number EditText. | |
Re: try to remove hasBluetoothAPI() method. I think, problem is in this method. | |
Actually I'm trying to open serial port to send logging data in j2me. When I connect my phone via usb cable to pc my code works correctly. But when I start app without usb cable connecting to phone it is hanging up. [CODE]private static void sendToSerial(String msg) { try { … | |
I have test midlet which requests my location via JSR-179 Location API. I use Nokia 6275i. Its java: MIDP-2.0, GPS enabled (I see blue icon on top of my mobile device) When I run this app I got the following error: "java.lang.securityexception: Positioning Log denied Location access." Google do not … | |
Hi all. I need to highlight comments on mcedit. 1) comments start with "--" 2) comments may may end with "\n" or with "--" how to do it in mcedit syntax file? These lines are my syntax file content which responsible to highlight comments context -- \n brown # here … | |
Is there a way to get current date and time from remote windows machine on linux? On remote windows machine ssh not enabled, there are no powershell. Can we achieve result via telnet or smbclient? | |
I've bought 2 Epson P50 printers. Then tried to print photos on windows 7 on them at the same time. * using Nero cover designer * using ms word After printing some part of photos both printers throw papers. I've also tried install windows xp, then printed on them, again … | |
I need to convert this C code to python. void GetChkSum(Int len, PSTR buf, PSTR res) { memset(res, 0, 4); for(int i=0; i<len; i+=4) { res[0]^=(buf+i)[0]; res[1]^=(buf+i)[1]; res[2]^=(buf+i)[2]; res[3]^=(buf+i)[3]; } res[0]=~res[0]; res[1]=~res[1]; res[2]=~res[2]; res[3]=~res[3]; } In my case, buf is bytes object. for example: buf = b'00000001TXBEG 0000' len is … | |
I have two codes in C and in Python. They gave me different results. Can anybody explain how they works, why I get different results? Thank you in advance!!! In C: ----------- #include <stdio.h> int main() { int a = 100; printf("%d = %02x\n", a, a); a = ~a; printf("%d … | |
Re: http://forums.java.net/node/655954 | |
I have string like: 'par1=val1,par2=val2,par3="some text, again some text, again some text",par4="some text",par5=val5' I have to split it to parts like: par1=val1 par2=val2 par3="some text, again some text, again some text" par4="some text" par5=val5' I use this code: [CODE] a = 'par1=val1,par2=val2,par3="some text1, again some text2, again some text3",par4="some text",par5=val5'.split(',') … | |
Hello! I'm new in java. I need some help, guys. How can I determine in Java next run time of cron-like job? For example, if I have crontab entry without command, like [I]"*/15 * * * *", every 15 minutes "5 */2 * * 1", every Monday at 00:05, 02:05, … | |
Re: [url]http://docs.python.org/py3k/reference/lexical_analysis.html?highlight=indentation[/url] | |
Hi guys. I've just installed libnetty-java package on my ubuntu $ sudo apt-get install libnetty-java and then try compile this code [CODE] import org.jboss.netty.channel.ChannelHandlerContext; import org.jboss.netty.channel.ExceptionEvent; import org.jboss.netty.channel.MessageEvent; import org.jboss.netty.channel.SimpleChannelUpstreamHandler; ... [/CODE] It throws this error: javac QuoteOfTheMomentClientHandler.java QuoteOfTheMomentClientHandler.java:1: package org.jboss.netty.channel does not exist import org.jboss.netty.channel.ChannelHandlerContext; ^ QuoteOfTheMomentClientHandler.java:2: package org.jboss.netty.channel … | |
Hi all. I'm trying install python 3.1.2 on RHEL4 from source, but 'make' failed to build some necessary modules. Followings are from build log: *** WARNING: importing extension "_ctypes" failed with <class 'AttributeError'>: 'module' object has no attribute 'load_dynamic' Python build finished, but the necessary bits to build these modules … | |
Hi. How can I get subprocess.Popen.stdout size? Before reading from Popen.stdout I want to check its size, then get bytes from it. [CODE] def execute_bash(self): wait_sec = 5 import time import subprocess wForceKill = True res = subprocess.Popen(self.command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) for i in range(wait_sec): res.poll() if res.returncode != None: … | |
Hi. I want to run some shell commands on linux machine with python Popen, for ex. "ping". How I can terminate the process, if it isn't finished normally in a given time? I've tried write some code, can anybody improve it or give some better idea? Any suggestions appreciated. Thanx. … | |
Is it possible to get system utilization information in pl/sql? are there any routines to get them? | |
How can I get results from exec()? Any suggestions appreciated!!! [CODE] #!/usr/bin/python import socket sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) host = socket.gethostname() port = 1234 sock.bind((host,port)) while True: cmd, addr = sock.recvfrom(1024) if len(cmd) > 0: print("Received ", cmd, " command from ", addr) exec(cmd) # here how I can get … | |
How can I get error message? [CODE] try: ...# some operations except: sock.sendto(err_msg,0,addr) # send client err_msg from exception [/CODE] | |
Re: If array's elements quantity known in advance you can use this code: [CODE]val1, val2, val3 = opc.read('QMS.Readings.TABRawProfileValues.0.DataArray')[/CODE] | |
Re: What is your python version? When you run it do you get any errors? |