The Geek Wannabe: Vim-BloggerBeta Plugin Release
http://djcraven5.blogspot.com/2006/12/vim-bloggerbeta-plugin-release.html
I found and started using a plugin to post entries to Blogger.
It is great that I can use my favorite editor to post blogs.
Apr 30, 2008
Apr 29, 2008
Apr 19, 2008
Next step
I was satisfied to just create some web applications so far, and didn't pay attention to call people to my application. Now I stop creating new applications, and will update my existing application to call many people.
Apr 17, 2008
Snippet Sharing Service
I am now working in a personal snippet service project.
HachinosSnippets (Japanese version only for now)
I wanted a useful tool to save some code snippets that I wrote, and thought it would be nice if I can find many snippets that other people wrote in one place.
An idea to share snippets is not so new, and there are some snippet sharing services already movind in the world, but I wanted to create something to learn more about django.
I finished coding the first version, so next I will add some new functions like RSS feeds.
HachinosSnippets (Japanese version only for now)
I wanted a useful tool to save some code snippets that I wrote, and thought it would be nice if I can find many snippets that other people wrote in one place.
An idea to share snippets is not so new, and there are some snippet sharing services already movind in the world, but I wanted to create something to learn more about django.
I finished coding the first version, so next I will add some new functions like RSS feeds.
Apr 15, 2008
Apr 14, 2008
Charlotte's Web
To increase my vocabulary, I decided to read books written in English.
The first book is "Charlotte's Web".
I have read it before, when I was in elementary school, and remembered about it when I saw a TV commercial of the movie.
I read about half of the story, and I realized that my English level is still at elementary level. The English level of this book exactly matched my English level. It was a good choise to start with this book.
The first book is "Charlotte's Web".
I have read it before, when I was in elementary school, and remembered about it when I saw a TV commercial of the movie.
I read about half of the story, and I realized that my English level is still at elementary level. The English level of this book exactly matched my English level. It was a good choise to start with this book.
Apr 13, 2008
Cherry blossoms
Many small tools and something to gather them
Services and tools should be simple and small to use it easily and speedy.
But it will be difficult to manage too many tools.
So, we will need something to gather these tools in one place.
But it will be difficult to manage too many tools.
So, we will need something to gather these tools in one place.
SNS Service for learning English
To improve my English language level, I started using "iKnow", a SNS service for learning English with friends.
iKnow (Japanese site)
For the moment, there are 8 courses called "Channel", and you can choose a Channel according to your purpose, such as "Basic", "For Business", "For studying abroad".
In each Channel, you can learn popular words and phrases, using easy-to-use flash tools.
The most interesting function for me, is the one called "Dictation".
This is a function to train translation from Japanese to English, using popular phrases. I think it would help me writing more beautiful and correct sentences in this blog.
iKnow (Japanese site)
For the moment, there are 8 courses called "Channel", and you can choose a Channel according to your purpose, such as "Basic", "For Business", "For studying abroad".
In each Channel, you can learn popular words and phrases, using easy-to-use flash tools.
The most interesting function for me, is the one called "Dictation".
This is a function to train translation from Japanese to English, using popular phrases. I think it would help me writing more beautiful and correct sentences in this blog.
Supper of one day
Introducing some Japanese food may interest you.
So, I will like to introduce some of my lunch and suppers in my blog.
The photo in the right is a set of Sashimi.
Tuna(maguro), yellowtail(hamachi), shrimp, sea urchin(uni), cuttlefish(ika) is included in the set.
This set is for about 3 or 4 people. It is a kind of appetizer.
So, I will like to introduce some of my lunch and suppers in my blog.
The photo in the right is a set of Sashimi.
Tuna(maguro), yellowtail(hamachi), shrimp, sea urchin(uni), cuttlefish(ika) is included in the set.
This set is for about 3 or 4 people. It is a kind of appetizer.
Apr 12, 2008
Using Django besides Web Applications
I read an article about using Django in command-linse scripts.
It is about using the Django model APIs and settings in ex-web python scripts.
By using this method, we can use the same API in batch scripts with heavy proccesses, like parsing huge XML files, and converting movie file types.
SQLObjects was the only choicse for me before reading this article, so I am happy to know about this method.
It is about using the Django model APIs and settings in ex-web python scripts.
By using this method, we can use the same API in batch scripts with heavy proccesses, like parsing huge XML files, and converting movie file types.
SQLObjects was the only choicse for me before reading this article, so I am happy to know about this method.
Using the new Django Paginator with page links
I have made a Customized Page class for the new Django Paginator.
It shows page links with "prev", "next" buttons.
utils.py
It shows page links with "prev", "next" buttons.
utils.py
import string
from django.core.paginator import Page, InvalidPage
class BetterPage(Page):
def __init__(self, page, link_template):
self.link_template = link_template
Page.__init__(self, page.object_list, page.number, page.paginator)
def previous_link(self):
if self.has_previous():
tpl = string.Template(self.link_template)
return tpl.safe_substitute({"page": self.number - 1})
else:
return None
def next_link(self):
if self.has_next():
tpl = string.Template(self.link_template)
return tpl.safe_substitute({"page": self.number + 1})
else:
return None
def make_page_links(self, start, end):
tpl = string.Template(self.link_template)
return [(p+1, tpl.safe_substitute({"page": p + 1}), (p+1 == self.number)) for p in range(start, end)]
def page_links(self):
return self.make_page_links(0, self.paginator.num_pages)
def windowed_page_links(self, window_size=5):
links = []
if self.paginator.num_pages <= window_size: links = [self.page_links()] elif self.number - window_size/2 <= 3: links = [self.make_page_links(0, window_size), self.make_page_links(self.paginator.num_pages-2, self.paginator.num_pages)] elif self.number + window_size/2 > self.paginator.num_pages - 2:
links = [self.make_page_links(0, 2), self.make_page_links(self.paginator.num_pages-window_size, self.paginator.num_pages)]
else:
links = [self.make_page_links(0, 2),
self.make_page_links(self.number-window_size/2-1, self.number+window_size/2-1),
self.make_page_links(self.paginator.num_pages-2, self.paginator.num_pages)]
return links
Starting an English blog
From today, I decided to write a English blog for English study.
My sentences might be strange for a while, but I won't stop and
will just hope it gets better as I continue studying and writing.
I am a programmer working in Osaka, Japan.
I mainly use Python, Actionscript and Java.
So I think almost all of my articles will be about programming.
My sentences might be strange for a while, but I won't stop and
will just hope it gets better as I continue studying and writing.
I am a programmer working in Osaka, Japan.
I mainly use Python, Actionscript and Java.
So I think almost all of my articles will be about programming.
Subscribe to:
Posts (Atom)