Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 40
Search took 0.10 seconds.
Search: Posts Made By: pippin418
Forum: Python 05-09-2010, 10:08 PM
Replies: 2
Views: 2,341
Posted By pippin418
Ah, it was error code 21. It told me 256 when I...

Ah, it was error code 21. It told me 256 when I tested it. Well, nevermind then.
Forum: Python 05-09-2010, 07:35 AM
Replies: 4
Views: 5,834
Posted By pippin418
Also, if you're using any version of unix, you...

Also, if you're using any version of unix, you can use the 'diff' bash command, or maybe it's in windows too. That would've solved your problem.
Forum: Python 05-09-2010, 07:21 AM
Replies: 2
Views: 2,341
Posted By pippin418
Another error

I feel like a huge newbie.
I can't figure out what's going wrong here.
if com == 'remf':
rem = raw_input("What file: ")
rea = raw_input("Really remove %s? (y/n): " % rem)
if rea in ('y'):...
Forum: Python 05-09-2010, 06:49 AM
Replies: 2
Views: 2,392
Posted By pippin418
Thanks a lot.

Thanks a lot.
Forum: Python 05-07-2010, 09:35 PM
Replies: 2
Views: 2,392
Posted By pippin418
Process different commands based on error

Okay, I have this:

if com == 'del':
rem = raw_input("What file: ")
rea = raw_input("Really remove %s? (y/n)" % rem)
if rea in ('y'):
try:
...
Forum: Python 05-07-2010, 09:31 PM
Replies: 3
Views: 2,568
Posted By pippin418
No, I mean in the interpreter. It works, but when...

No, I mean in the interpreter. It works, but when you quit() you have to run from clear import clear again.
Forum: Computer/PC discussions 05-07-2010, 01:14 AM
Replies: 2
Views: 3,628
Posted By pippin418
There's a good python script I made for this too....

There's a good python script I made for this too.
Run it as root.

import os
proc = raw_input("Do you want to turn XBOX compatability on or off? (on/off): ")
if proc in ('on', 'o', 'y', 'yes',...
Forum: Python 05-06-2010, 11:57 PM
Replies: 3
Views: 2,568
Posted By pippin418
Add Command to Python

I noticed that python has no clear() function.
So I made one:
def clear():
import os
os.system("clear")
Where can I put this (in a .py file) so that python recognizes it as a command...
Forum: Computer/PC discussions 05-02-2010, 08:12 PM
Replies: 2
Views: 3,628
Posted By pippin418
TUT: Use your Ubuntu laptop as WiFi adapter for XBOX360

I use this guide I made to connect to Xbox LIVE. It's easy, but takes a while. When you connect, your NAT will be Moderate.

Items needed:
Xbox
Xbox LIVE
Laptop w/ Ubuntu 10.04 LTS (what I used,...
Forum: PHP 04-06-2010, 02:59 AM
Replies: 0
Views: 486
Posted By pippin418
cURL problem

Yet again, I must call upon your services.
I have a script that puts the source of http://www.frazierhost.com/ into the variable $fh.

It doesn't return anything.
<html>
<head>...
Forum: PHP 03-22-2010, 02:36 AM
Replies: 3
Views: 726
Posted By pippin418
Thank you SKDevelopment. That worked like a charm.

Thank you SKDevelopment. That worked like a charm.
Forum: PHP 03-21-2010, 08:57 AM
Replies: 3
Views: 726
Posted By pippin418
stripslashes .... thing. Removing \ from multiple chars

So. If I type:
The quick brown fox was too freakin' lazy to jump over the lazy dog.
I get:
The quick brown fox was too freakin\' lazy to jump over the lazy dog.
(I know the new PHP stops this,...
Forum: PHP 03-21-2010, 07:46 AM
Replies: 12
Views: 727
Posted By pippin418
That script is not in any way valid. 1. $ar is...

That script is not in any way valid.
1. $ar is non existent.
2. $ar is not an array so foreach is wrong.
3. The string to convert isn't in there.


BUT:
The working script is (drumroll):...
Forum: PHP 03-21-2010, 01:35 AM
Replies: 12
Views: 727
Posted By pippin418
The copy of the script on my laptop server gave...

The copy of the script on my laptop server gave me interesting results.
I commented out all of the letters after the lowercase ones in the array.
<?php
$str = $_POST['a'];
$output = '';
$string...
Forum: PHP 03-21-2010, 01:12 AM
Replies: 12
Views: 727
Posted By pippin418
Actually: j_gge Hello3llHello After the...

Actually:
j_gge Hello3llHello
After the encoded word (which isn't right) is the response from what I sent.
$_REQUEST['value2'] == Hello3llHello
Forum: PHP 03-21-2010, 01:08 AM
Replies: 12
Views: 727
Posted By pippin418
What about them? I double checked them and they...

What about them? I double checked them and they correspond to what they're supposed to.
Forum: PHP 03-21-2010, 12:56 AM
Replies: 12
Views: 727
Posted By pippin418
Still gives the wrong results. While it has the...

Still gives the wrong results. While it has the right number of letters/numbers, it's the wrong combination.

<?php
if (strtolower($_REQUEST['msg']) == "cancel") {
echo "<reset>";...
Forum: PHP 03-20-2010, 11:56 PM
Replies: 12
Views: 727
Posted By pippin418
Anybody?

Anybody?
Forum: PHP 03-20-2010, 11:04 PM
Replies: 12
Views: 727
Posted By pippin418
I haven't really used foreach(). What code would...

I haven't really used foreach(). What code would I use to accomplish that?
Forum: PHP 03-20-2010, 10:42 PM
Replies: 12
Views: 727
Posted By pippin418
str_replace and Arrays not playing nice.

$str = $_REQUEST['value2'];
$alp =...
Forum: PHP 03-10-2010, 03:57 AM
Replies: 1
Views: 477
Posted By pippin418
Ahh... Nevermind. I changed $val2 =...

Ahh... Nevermind. I changed $val2 = number_format($val + $prin2, 2); to $val2 = $val + $prin2;

Then I put the number_format() in the echo
Forum: PHP 03-10-2010, 03:44 AM
Replies: 1
Views: 477
Posted By pippin418
Math Problem

I have a script that makes compound interest graphs, but whenever it gets past $1000 it goes back to one.

1. $10000 × 0.12 = 1200 + $10000 = $11,200.00
2. $11,200.00 × 0.12 = 1.32 + $11,200.00 =...
Forum: PHP 02-18-2010, 12:43 AM
Replies: 18
Views: 1,259
Posted By pippin418
Yeah, I have a script for anonymous mail (sent...

Yeah, I have a script for anonymous mail (sent from any address), and it sends the message with the from variable fine.
Forum: PHP 02-17-2010, 06:52 PM
Replies: 18
Views: 1,259
Posted By pippin418
My anonymous mail script sends them fine, it's...

My anonymous mail script sends them fine, it's not that the server won't send it as a different server. It must be the script...
Forum: PHP 02-17-2010, 06:51 PM
Replies: 18
Views: 1,259
Posted By pippin418
I was talking about the from variable is what you...

I was talking about the from variable is what you entered in the email form for "yup".

You're right about:
If a person types "billsmith@aol.com" into that text box, the $from variable will be...
Showing results 1 to 25 of 40

 
Forum Jump

All times are GMT +1. The time now is 12:29 AM.