Archive for May, 2005
May 26, 2005 at 11:22 pm · tags: Python
I’m leaving for four months (I’ll be back in late September) so if you want to reach me send me an email to l dot oluyede at gmail dot com.
Bye bye!
ps. I cannot guarantee to reply soon to emails because I’m not sure If I have an Internet connection (and the time to search for it).
brb
May 20, 2005 at 8:41 pm · tags: Rails Rebbin Ruby
I released another version with some improvements and a lot of bugfixes
What’s new?
- RSS 2.0 and Atom 0.3 feeds
- XMLRPC and SOAP support:
- num_of_pastes: returns the number of pastes
- get_languages: returns the list of supported languages
- add_paste: adds a paste to the pastebin and returns the id
- get_paste: returns the paste with the given id
- get_latest_pastes: returns the latest pastes
- Scheduler to destroy pastes automatically, it destroys pastes older than 48h and it runs every 24h in a separate thread
- Improved sorting in archive page
What’s changed?
The support for text wordwrap has been removed
What about the future?
The main issue is the external highlighter I want to replace with custom-clean-safe-fast-ruby-lexer_based code. I tried syntax but it doesn’t fit my needs. It will take a lot of time but I think it’s the way to go.
http://rebbin.berlios.de/
May 14, 2005 at 3:34 pm · tags: Rails Rebbin Ruby
What is it?
Rebbin is an open source pastebin developed in Ruby.
What is a pastebin?
A pastebin is a web application which allows its users to upload snippets of text, usually samples of source code, for public viewing […]
Why it does exist?
Because I didn’t know what to code to learn Rails and meanwhile Ruby
Why did you release it?
For the glory
Which features it has?
- Syntax highlighting
- Export pastes as plain text
- Easy navigation interface
- Archive page with sorting capabilities
- Store author name in a cookie
- Unicode (UTF-8) support
- PostgreSQL and MySQL Schemas
- Basic unit and functional testing
- Markup is XHTML 1.0 transitional valid
- Global in-memory cache
- Text wordwrap
Where I can find it?
http://rebbin.berlios.de/
May 14, 2005 at 1:28 am · tags: Ruby
In the past two days I tried to rewrite a bunch of popen based code that drives an external tool I need for a webapp I’m coding (in Rails). The problems arose because IO::popen hung when used behind the webapp with a 5K+ input sent it from the standard input. In my “journey” I learnt about RubyInline, nice tool to wrap C/C++ code, I learnt more about IPC world, Ruby support for I/O and more so I was happy learning new stuff but my problem was still there.
Here comes session library (and his author Ara T. Howard) to the rescue
His latest version (2.4.0 at the time) solves all my problems with hangs.
Good job Ara, very good job.
ps. here is the solution
cmd = 'theprocesstodrive'
text = 'thetexttopasstothestdinoftheaboveprocess'
session = Session.new
result = session.execute cmd, :stdin => text
Nice, isn’t it?
May 7, 2005 at 1:13 am · tags: Web
Didn’t you heard about 37Signals rants about Google Web Accelerator?
I quoted some posts/comments/interesting points of view (you’ll be the judge): Read the rest of this entry »