Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
4
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
Member Avatar for gogs85

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 = …

Member Avatar for gogs85
0
690
Member Avatar for biojet

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]

Member Avatar for biojet
0
422
Member Avatar for _neo_

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 …

Member Avatar for _neo_
0
292
Member Avatar for AbdullahDar

In first and second codes class name were LoginExample. In last snippet it is LoginExamples. Have you changed your project properties for LoginExample"S" ???

Member Avatar for _neo_
0
864
Member Avatar for emorjon2

can you put here your layout xml file? I think, you put wrong properties for number EditText.

Member Avatar for _neo_
0
153
Member Avatar for Rahul Das
Member Avatar for _neo_
0
158
Member Avatar for _neo_

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 { …

Member Avatar for _neo_
0
307
Member Avatar for _neo_

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 …

Member Avatar for _neo_
0
264
Member Avatar for _neo_

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 …

Member Avatar for _neo_
0
251
Member Avatar for _neo_

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?

Member Avatar for _neo_
0
1K
Member Avatar for _neo_

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 …

Member Avatar for _neo_
0
182
Member Avatar for _neo_

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 …

Member Avatar for _neo_
0
319
Member Avatar for _neo_

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 …

Member Avatar for _neo_
1
214
Member Avatar for almefab
Member Avatar for _neo_

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(',') …

Member Avatar for Gribouillis
0
10K
Member Avatar for _neo_

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, …

Member Avatar for _neo_
0
3K
Member Avatar for Naynah

[url]http://docs.python.org/py3k/reference/lexical_analysis.html?highlight=indentation[/url]

Member Avatar for Naynah
0
162
Member Avatar for _neo_

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 …

Member Avatar for _neo_
0
1K
Member Avatar for UaBoy
Member Avatar for _neo_

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 …

Member Avatar for _neo_
0
754
Member Avatar for _neo_

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: …

Member Avatar for _neo_
0
156
Member Avatar for _neo_

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. …

Member Avatar for Gribouillis
0
1K
Member Avatar for _neo_
Member Avatar for _neo_

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 …

Member Avatar for _neo_
0
4K
Member Avatar for _neo_

How can I get error message? [CODE] try: ...# some operations except: sock.sendto(err_msg,0,addr) # send client err_msg from exception [/CODE]

Member Avatar for _neo_
0
268
Member Avatar for pleasecompile

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]

Member Avatar for pleasecompile
0
437
Member Avatar for James0l9l