Archive for July, 2008

Amazon to Compete with Paypal and Checkout

This article in the NY Times came across Neohawk IT this morning. Looks like Amazon offers three new services for ecommerce or online financial transactions; Amazon Checkout, Amazon Simple Pay, and Flexible Payments Services(for developers). Amazon will now compete with Paypal and Google Checkout.

Strikes me that advantage with Amazon is that a whole lot of people have accounts at Amazon and won’t need to register their information like credit cards again, but can take advantage of what they already have registered. That’s handy.

I’ll need to check out the pdfs and code samples to see how easy it is to integrate into a website. I have one in mind for which Amazon may be the better solution than what we have now.

Japanese Planets Down for Now

For now, I have turned off the Japanese planets, Planet Ohio-Japan and Planet Uchina. There is something decidedly odd with them as they eat up all my memory. Not sure what it is at this point, and don’t really have time right now to fix ‘em. I’ll get to them eventually, but for now they are down.

Django Trunk Changes

Yesterday at the “Sausalito Sprint“, a bunch of folks started merging some backwards-incompatible changes to the django trunk. So if you are developing off of trunk beware and forewarned, if you hadn’t already known.

I wasn’t aware it was happening this weekend, and all of a sudden a little site I’m developing went kaplooie. (Is that a word?). II knew that I had updated my django source from the trunk, so I didn’t panic. Made some minor changes, and at least my local dev server would start. In particular, I removed the prepopulate_from = (_(‘title’)) from my models. So I want to localhost:8000/admin but none of my models were there.

Which isn’t surpising now that I have actually read the backwards incompatible changes page. With the merging of newforms and using newforms in the admin, some other changes have also been implemented. One is that you now need to separate a separate AppNameAdmin(model.Admin) class. And you need to import xxx . So for example, I have a simple model (still under development) that describes “prints”. I had to add the following:

from django.contrib import admin class PrintAdmin(admin.ModelAdmin): prepopulated_fields = {'slug': ('title',)} admin.site.register(Print,PrintAdmin)

Once I added this and resynced the db, the Print model showed up in /admin. I haven’t figured out how to do radio buttons with choices yet, but I just started catching up here. I also had to update the django-tagging module from trunk, and after doing so that worked just fine. I know need to go through the various modules I’ve used to see what’s been updated.

At the same time, due to the shear number of changes that look to be coming in the run up to the Django 1.0 release, I’m not sure I want to be touching anything that’s already running until these changes are finished. For example, I am going to postpone using S3 as the ability to use different, including remote storage like S3, appears to be part of the 1.0 feature set. So I might as well wait a month, until those changes are final.

Now it’s time to find out what else has changed!

Planet Ohio Japan, Planet Uchina 直した

今朝、やっとPlanet Ohio JapanPlanet Uchinaを直した。 この間、アップグレードした時から いくつかのフィードがhtmlそのまま表示されていた。 修正方法は簡単だったのだが、なんかなんか、時間をとれず、修正していなかった。

今はPlanet Uchinaを削除しようかなと考えています。 アクセスは殆んどないし、 実は自分もあんまり見ていないっす。 というか、自分のRSSリーダーによほど沖縄関連内容が多いためそこを使っている。そして、他の方も興味がないそうで、サーバー資源を考えたら不要かなと重い始めています。

もし、残して欲しければ、コメントを残してください。今月末までにコメントがなければ削除します。

Nice Nuggets

Some nice nuggets today. Or chunks really. It all started with chunks.

django-chunks actually.

One thing led to another and I came across Clint Ecker’s post on Django-chunks. Simply put, django chunks is a django application that allows you to add chunks of text or whatever into a flatpage template. The chunks can be added and edited in the admin section. I had created something similar, which I called “sidebars”, but this is vastly more simple.

It looks to be a handy time to find it, since I forsee using it on a project I’m currently working on. Or at least based on django-chunks anyway.

Do you feel lucky punk?

So as I look more around “Officially Lucky“, I find even more goodies from Clint.

Clint also points out some other tools/template tags that I think I will find useful as well. One he mentions is dbtemplates, which stores your django templates in the database and you can edit them via the django admin screen. Handy that.

He’s also building a feed aggregator, called Django Galaxy, as he found that feedjack was not exactly what he needed. Feedjack is the django-based software that runs my Planets, Planet NEO, Neohawk IT, Planet Ohio-Japan, and Planet Uchina. Don’t get me wrong, it works well, and as the author of Feedjack says in the comment to Clint’s post above, it can be added to another site/project.

I have yet to download django-galaxy yet, but I fully intend to, as it appears it will be more to my liking. For example, one of his frustrations was:

cant easy fit into existing site/project

And that’s the situation here at neohawk.info. Each of my planets is in fact a separate website. I also would’ve liked to incorporate it into one application. At this point, I probably won’t switch, but I’m definitely going to download it and give it a shot.

He also has yet another project for incorporating friendfeeds. As I’m not a user of friendfeeds yet, this goes on the backburner’s backburner.

note: I wrote this post a while ago, but had it in draft. I’m publishing it today, August 1st. Sorry about the delay….

First S3 Usage

I have successfully used Amazon’s Simple Storage Service for the first time. It’s one of those things that’s been on my to do list, but I just never got around to it. However, in the next week or two, I’ll be contracting to build a really simple small website and I thought it would be a perfect opportunity to use S3. But before that, I needed to test it out, and this morning was the perfect time to do so:

So I created a bucket on S3, and uploaded some of the stylesheets from this site to format it. Looks pretty good if you ask me. Although to really get it right I need to tweak the html some more, but for testing purposes it was perfect.

I had some starts and stop with S3 trying to figure out how to use it. Some of the references I used are:

Next step on the learning curve is to think about using the Amazon Simple Storage Service code for django and trying to integrate it into an application. I’ll need that for the end user of the website I’m going to be developing.