Quantcast

Jump to content


Photo

Java, PHP, and Python IDEs?


  • Please log in to reply
23 replies to this topic

#1 Zeeknon

Zeeknon
  • 63 posts

Posted 18 June 2010 - 01:03 PM

I want to try programming but I don't know which IDEs to use. For Python and Java - I want one that has a GUI Builder or whatever they are called. And for PHP I want an IDE that has syntax highlighting and stuff and also works with HTML and CSS.

PS: where do I get a python httpwrapper?

#2 Waser Lave

Waser Lave

  • 25516 posts


Users Awards

Posted 18 June 2010 - 02:52 PM

For java I would go with NetBeans. For PHP, Python, HTML etc I just use a basic text editor called Crimson Editor (which is only like 1-2mb in size) which has syntax highlighting but I'm sure other people will be able to suggest better ones (perhaps notepad++ or VIM).

#3 Zeeknon

Zeeknon
  • 63 posts

Posted 18 June 2010 - 03:05 PM

What about that python httpwrapper?

#4 Waser Lave

Waser Lave

  • 25516 posts


Users Awards

Posted 18 June 2010 - 03:10 PM

What about that python httpwrapper?


You'd have to speak to ShadowLink about that, I don't really do any internet programming with Python that would need a httpwrapper. You could just try using urllib or httplib depending on what you need to do.

#5 iargue

iargue
  • 10048 posts


Users Awards

Posted 19 June 2010 - 07:32 PM

Yeah, we use ViM here.

Our HTTP wrapper is custom coded and so I can't share that with you. Maybe try looking around for how to do it.

#6 Zeeknon

Zeeknon
  • 63 posts

Posted 19 June 2010 - 08:35 PM

What do you guys use to make python GUIs?

#7 iargue

iargue
  • 10048 posts


Users Awards

Posted 19 June 2010 - 09:13 PM

wxDesigner

#8 Zeeknon

Zeeknon
  • 63 posts

Posted 19 June 2010 - 09:16 PM

I found a python wrapper that uses pyCurl. I have Python 2.x.x installed on my computer, how do I add in pyCurl?

#9 iargue

iargue
  • 10048 posts


Users Awards

Posted 19 June 2010 - 09:27 PM

Download it.
Run it.
It will autofind you're python install. Install there.


Read the documentation :)

http://www.pythonwar...dbook/index.htm

#10 Waser Lave

Waser Lave

  • 25516 posts


Users Awards

Posted 20 June 2010 - 02:28 AM

You can also use Tkinter for GUIs but they don't look as good.

#11 Zeeknon

Zeeknon
  • 63 posts

Posted 20 June 2010 - 06:39 AM

Download it.
Run it.
It will autofind you're python install. Install there.


Read the documentation :)

http://www.pythonwar...dbook/index.htm


I ran the .exe and it said it could not find Python in the registry. I've included screenshots.

Attached Files



#12 Waser Lave

Waser Lave

  • 25516 posts


Users Awards

Posted 20 June 2010 - 06:52 AM

You are aware that PIL and PyCurl are two very different things right?

#13 Zeeknon

Zeeknon
  • 63 posts

Posted 20 June 2010 - 07:00 AM

I didn't realize that, the guy said that the PIL link was the link for pyCurl. I've found pyCurl, I just don't know which to download to use. I'm on windows 7 64bit

#14 Waser Lave

Waser Lave

  • 25516 posts


Users Awards

Posted 20 June 2010 - 07:19 AM

Well it looks like PyCurl only supports up to Python 2.5 so first of all you'll have to uninstall Python 2.6 and download and install Python 2.5. Then go here:

http://pycurl.source...e.net/download/

And I would guess you'll want to most recent exe on the list.

#15 Zeeknon

Zeeknon
  • 63 posts

Posted 20 June 2010 - 07:48 AM

Ok so I've uninstalled 2.6 and now I have 2.5. I tried to install the pycurl-ssl-7.18.2.win32-py2.5.exe, and I attached images of the errors I got.

Attached Files



#16 Waser Lave

Waser Lave

  • 25516 posts


Users Awards

Posted 20 June 2010 - 07:51 AM

Are you running it as administrator with full privileges?

#17 Zeeknon

Zeeknon
  • 63 posts

Posted 20 June 2010 - 07:59 AM

Are you running it as administrator with full privileges?


I forgot to run as administrator, that fixed it. So now I have a wrapper named http.py. I don't know how to include it or whatever. The source is here.

Edit: The wrapper is actually posted on Neocodex by Chaos_Blader here.

Edited by Zeeknon, 20 June 2010 - 08:01 AM.


#18 Waser Lave

Waser Lave

  • 25516 posts


Users Awards

Posted 20 June 2010 - 08:04 AM

You'd want another python file in the same directory (say example.py or something), and at the top of that you'll do "import http" (if your wrapper file is called http.py). Then you'll be able to use wrapper functions.

#19 Zeeknon

Zeeknon
  • 63 posts

Posted 20 June 2010 - 08:10 AM

Can you give me an example? I'm still fairly new to Python

#20 Waser Lave

Waser Lave

  • 25516 posts


Users Awards

Posted 20 June 2010 - 08:14 AM

There's an example in the link you used:

http://www.neocodex....er-recognition/

import wx
import MaraONR
myImage = Image.open("myFile.png")
myImage.load()
timer = wx.StopWatch()
maraONR = MaraONR.MaraONR()
nums = maraONR.getNums(self.myImage)
print "Program Number: "+nums
print "Time Taken: " + str(timer.Time()) + "ms"

Instead of http.py, that example is MaraONR.py but it shows you how to access the functions.

maraONR = MaraONR.MaraONR()

#21 Zeeknon

Zeeknon
  • 63 posts

Posted 20 June 2010 - 08:59 AM

So here's my code (test.py):
import http

w = http.BaseOpener().get('http://www.google.com/')

print w

And when it runs, I get a ton of errors:
Traceback (most recent call last):

 File "C:\Users\Owner\Desktop\test.py", line 2, in <module>

	w = http.BaseOpener().get('http://www.google.com/')

 File "C:\Users\Owner\Desktop\http.py", line 95, in get

	return self.open(GET, url, referrer)

 File "C:\Users\Owner\Desktop\http.py", line 129, in open

	assert headers.get('User-Agent'), 'No user agent set!'

AssertionError: No user agent set!


#22 Waser Lave

Waser Lave

  • 25516 posts


Users Awards

Posted 20 June 2010 - 09:06 AM

It tells you what the error is:

Assertionerror: No user agent set!

Perhaps you should set the user-agent...

#23 Zeeknon

Zeeknon
  • 63 posts

Posted 20 June 2010 - 09:09 AM

But http.py sets default headers?
# Browser headers

IE6_XP2 = {

	'User-Agent': 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)',

	'Accept': 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/msword, */*',

	'Accept-Encoding': 'gzip, deflate',

	'Accept-Language': 'en-us'}



FF_XP2 = {

	'User-Agent': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6',

	'Accept': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',

	'Accept-Language': 'en-us,en;q=0.5',

	'Accept-Encoding': 'gzip,deflate',

	'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'}



DEFAULT_HEADERS = IE6_XP2


#24 Rambo

Rambo
  • 833 posts

Posted 23 June 2010 - 01:49 AM

Did I ever say I dislike Python although it has its similarities to Java :p


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users