Posts tagged ‘Programming’

Web2Py now works with Jython.

Woah, talk about nice. Knowing that they all work together, Jython, Java, Python, and Web2Py. This opens a wide veriety of features that I could use web2py for.
For example, I use Java and Jython at my work. Imagine being able to pull from the same databases and datasources as I did in my Java application but do it a hundred times faster and easier, and more securely, etc… all with web2py in Jython.
I currently use web2py for a social networking application I am making for my thesis project and it’s a blast to work on. I have to learn a few things, but I am getting there. The great thing about the project is the helpful team found in the mailing list. I have been able to get most of my questions answered withing a day or two there.
In the same breath I want to say that the mailing list is getting a little too crowded. There are a lot of new users of this product and it would be nice to have an area for them and then another for developers of W2P itself.
Another interesting aspect is the new Terminal tool… if you didn’t know, you can do everything you need built right into the browser; even edit all the files with a built in text editor. Don’t worry, you can use other editors too. (I like geany.) Anyway, back to the terminal, though it’s fun to test my different issues I have with python, there is no clear pointer as to how I could test my modules. For example, when I debug, I would love to see the outputs of my print commands in that terminal. Or perhaps have it load the page in an iframe when I call the function and tell information about the page that I just ran. Imaging being able to edit variables and step through a page load.  That could be very helpful.  But a lot of work to program for developers. :P
Anyway, I love the project, it’s got a lot going for it, and it’s fast and well supported by a great development team.
Go web2py!
As soon as the next book comes out I am sooo getting it.

June 12, 2009 at 7:06 pm Leave a comment

Updating your version of PyDev in Eclipse…

So I have hated PyDev as it crashed all the time, but after looking at their website I found out that the version in ubuntu is rather outdated.
Here is how I updated my version, it’s not to hard at all.
First I removed PyDev from my computer with synaptic.
Then use sudo eclipse to run eclipse as root.
Then I went to “Help—>Software Update—>Find and Install…”
From there I select “Search for new features to install…” and click next. (I hate next buttons.)
From there I click on new remote site and enter…
“http://pydev.sourceforge.net/updates/” and give it a name, anything you like.
It then asked to install the software I clicked on what I could, all but one, and it installed.
So far not crashed, but it’s not fully tested yet.
Hopefully this will be a big improvement.
The website for PyDev is…http://pydev.sourceforge.net
Have fun wit’ dat.

January 4, 2009 at 9:02 pm Leave a comment

Ok OK Eclipse, well yah, it’s sucking again…

I don’t mind it that much. Infact I may keep it around for a while, but mad it crashes all the time! And it’s random too, the only expected things is it may go off when I go to save or run my app. Very annoying. So a word to you beginners, keep it simple and stay outta eclipse!
I will be moving back to Geany once I clean out all them darn project files.

January 3, 2009 at 7:46 pm Leave a comment

Giving Eclipse with Python Another try…

You know, I learned how to program in java on Eclipse. I knew that it was a pretty good program. I liked it, but hated the many steps to configure it and it seems way to much for a program that should edit just a few files.
I eventually moved to geany as it is fast and seems to get the job done just fine. Infact, I use it as my main editor for everything.
None the less, I live in a world of freedom and think I will give eclipse a try again.
To program in Python with Eclipse I installed the pydev package and let the package manager do the rest. After a whopping 380+ megs of downloads and a little wait on the install I was ready. I setup the environment in windows—>preferences and told it where to find python (weird, but it could at least make a guess or two.)
After that it worked just fine.
We will see if I keep this whale on my computer, I like that it can tell me obvious errors in my code and has nice code completion. They tell me other editors have it, but it’s certainly not like this.
Another aspect is that it starts glade up when I click on a glade file in the navigator, thankfully it’s smart enough to know to start that rather than try to edit it itself.
As an added note, I did setup and install pylint too. As it may help me stick to common programming practice… (Like tabs and such.)

December 28, 2008 at 6:12 am 2 comments



Follow

Get every new post delivered to your Inbox.