Archive

Posts Tagged ‘ruby’

Ruby Net:Ftp file upload stalled

April 27th, 2009 Comments off

I have recently discovered that my Ruby hooks for SVN which I use as a post-commit to upload new revision to FTP server are hanging.

It looked very strange , first file was nicely uploaded but the second was stalled. During debugging process I’ve discovered that any command after STOR is ignored and hanging.

I didn’t find a reason, so had to make a short-cut and now my script does one file per connection, so it opens connection, uploads 1 file, closes it. I will have to put it in a parallel loop for performance gain.

Do you have any Ideas about it ?

Tags: ,

Some more

January 18th, 2009 1 comment

All that festive time is gone. Finally. Craze at work is also stabilizing.

Some more of Randolph Lalonde

I’ve bought the FirstLight – Omnibus and as Spinwardfringe, it kept me glued to the screen. I really like your work, keep them coming! You can get Freeground on Amazon now.

Some more of coding

I am currently writing brand new munin plugin for Bind using stats output. I had some experience with plotting bind but none of the old ones works with my system so I am writing my own.

Some more cursing

Backup Exec and Windows server – why this shit doesn’t want to backup local resources ?!

Ruby on Rails on Maemo 2008 N810

November 16th, 2008 Comments off

I’ve been looking to be able to code a bit of RoR while on the go. From a few devices which I have, N810 has the longest battery run time.

So… Google gave me a nice How To from Jon Forrent, it talks about N800 but it’s the same.

I was trying to do all the steps but I just managed to install ruby and sqlite3 packages. After that Gems package installed well but it wasn’t too useful, any attempt at

gem install

or

gem update

nothing worked, left it over the night, nothing happen.

So…

Uninstalled the gem package, downloaded Real Ruby Gems in a zip file ( you will need the unzip package ).

Unzipped the file, went inside the directory. then:

ruby setup.rb --no-ri --no-rdoc

wow it installed something, now doing :

gem update

told me nothing requires update, great, now lets go with rails:

gem install rails

Amazing, installed really quick ( I would recommend not installing the ri and rdoc as well here )

Just created some test rails app and it works!
Now it’s time to find a decent text editor for it and client for Mercurial.

SVN and Solaris 10

December 15th, 2006 Comments off

One word: Nightmare!

How on Earth, can I install SVN/Subversion on that bloody operating system , so it will include bindings for either Perl or Ruby ?! fighting with it for last two days… finally got source to at least compile  … but even if I have Ruby ( from CSW ) and Perl ( by Sun ) I just can’t get binding for them …

Why it can’t just work… like on Linux distributions ( Ubuntu/Gentoo , you name it … ) …

The other thing, this Solaris is running inside Microsoft Virtual Server… on a decent machine … but it is slow like Dell PE2400 which I use for concept testing … and no, VS machine is not taken over by other VM …

My Solaris experience … so far

September 28th, 2006 Comments off

Solaris …
The operating system…
I have a server, test server at work, with Solaris 10 6/06 on it and I am playing with it.
ZFS, no problem, really great thing spanning across 4 drives with raidz(or zraid) , yam.
Zones or how some write, containers. Also great thingy. Containing different functionality on a same machine is very useful and adds to security ( as long long as base zone is not doing anything else that hosting other zones ).
G I just hate how bare setup you get when the system is fresh. Your env looks like it is coming from 80s no … 70s. I know that that is enoght for POSIX , but it doesn’t say that you should not make experience more pleasant. Setting PATH to use /usr/sfw /usr/ccs by default by root is not that hard… still I can deal with that, writing simple script which will add some usability to my shell is not a big problem.
What really got me angry is that I don’t know where are sources for apache2 delivered with a system… I need em to compile fastcgi module so I will have some decent speed with my rails app … now apache2 and rails are soooo bloody slow that webrick is faster than that. And no body has a pkg with lighttpd for sol 10 x86 … I will cry…
So far my experience with Solaris 10 is much of a pain… I see how much Linux distributions like Gentoo, Ubuntu are much superior to Sol , at least for starters. I know that when you know system well it is the best system for you, I know Solaris little bit, I’m learning … the only thing which pushes me back is the lack of modern env and nice intro documentation … at least I didn’t found anything …
Tomorrow is a day to compile and install lighttpd and check if it is any faster :) maybe will write my sol_init.sh to stop bitching about no default configuration.
and yes, MySQL ( the pkg ) from mysql.com for Solaris 10 is not finished it  does not contain config for smf …

Xeons, Rails and some DVDs

June 26th, 2006 Comments off

So new Xeons are almost out. Can not wait until more price drops, as I need a server.

I have obtained Agile Web Development with Rails β version as a PDF and now spending most of my time swallowing it… almost last weekend I have spent on CSI: Miami and a History of violence, both great.

Ruby on Rails

May 24th, 2006 Comments off

Heard about it for a while, I have even used some of its components, with some of my small projects, which never went out of half-working stage. Recently decided, that I will give it a try. What I have done after reading a tutorial, which had more info how to install ruby and IDE, than actually coding.

And after installation ( much strait forward, than what was in tutorial ) I have created simple database with one table. To create RoR project I have used one command, which has created nice skeleton of folders with some files inside. Then I have configured database access for my project. The last step was to ‘scaffold’ a projects. And that was it. After scaffolding I was able to do CRUD on my db. I can bet, that even MS VS.net freaks spend more time to achieve what I have done in few seconds ( ok , it was more, because I couldn’t believe that it was SO! Rapid application development, and I was investigating what has been done for me ).

I am really impressed by that. I will spend more time on RoR now, and already I have big plans for it… more to be seen in time.

Tags: ,

Ruby Og

July 31st, 2005 Comments off

Just to not forget c=db.store.load(2,RegContact)

Tags: ,

Ruby

June 6th, 2005 Comments off

Done some coding, with Ruby and OG, It was a pain after so long time, but now everything is OK , especially after learning about changes between 0.15, and 0.18 in Og!

Another round in soccer, and now, clearly I’m winning, even getting higher scores than 1 :)

Anna was acting strangely today, like not she. I’m not worried but, I’ve noticed. And she doen’t like how I look a like now.


bzium

March 18th, 2005 Comments off

I’ve switched to Firefox on my laptop. It’s due to fact is I’m not using any other Mozilla suite component in here, than Navigator. Due to that I had to say good bye to my last LiveJournal entry tool, and say hello to LogJam… which for now is OK :)

Also I’ve managed to clean up my bookmarks :D , and I’ve synced ‘em with my machine at work :)

Almost nobody know that I’m working on some pretty good app, which will help me in managing something complex :P . So today after writing for couple days I’ve used code against a ruby -c :) which … showed only 2 parse errors :D ( ok, more, but that was the same misuse in couple of lines ).

So far so good, maybe I’ll get it partially working before the end of March.