In some of my projects I have Rails checked out in vendor/rails and I keep it under local subversion repository (not as an external nor ignored). Why? It is sometimes to handy to have just whole application in one repository. The only problem I encountered is when I need to upgrade Rails version. Normal rake […]
I needed to send UDP packets from my Ruby application, with fixed source port, but not in response to other packets. Well it turned out You need create UDP server, and then send packets: s=UDPSocket.new s.bind(‘192.168.248.128′,5000) ar = [1000,24,12,3,100,1] s.send(ar.pack(“L6”), 0, “192.168.248.1”, 5000) That’s it!
When I have discovered Rails through 4 Days on Rails over a year and half ago, I decided to buy Agile Web Development with Rails, which is great book for learning Rails. And there I found following statement (page 52): It turns out that the WEBrick-based Rails dispatcher is pretty clever. In development mode (as […]
Recently I wrote a lot code with Ruby and Tk. I just need to write some old fashioned GUI application. And being somewhere in 1/3 way with this work, what I can say? This is my first time I’m using Tk so I’m newcomer to this land, and my first impressions are quite positive (YMMV). […]