- Frequently Asked Questions¶ Frequently Asked Questions. Installing and Running Redmine. Does Redmine work with Rails 2.x.x? When I start the application, I get this.
- 1. Foreman 1.3 Manual Foreman Architecture. A Foreman installation will always contain a central foreman instance that is responsible for providing the Web based GUI.
- 1. Foreman 1.1 Manual ## Foreman Architecture. A Foreman installation will always contain a central foreman instance that is responsible for providing the Web based.
- This article is a general list of applications sorted by category, as a reference for those looking for packages. Many sections are split between console.
- Pinboard: Bookmarks for jblevins This page is no longer being updated. My bookmarks are now hosted on Pinboard. 2015-06-07 jblevins links bookmarks.
- End of my Rubygems mirror. With the advent of Gemcutter, I don’t feel the need to maintain my own rubygems mirror anymore. Please remove it from your gem source if.
Random thoughts about web and mac development. Hi, if you read those lines it means the DNS were updated and you’re looking at this blog hosted on Heroku. It’s been a long time since I wanted to try Heroku for more than a little Sinatra test app, so I decided to try with this blog. We’ll see how it goes in the next weeks. Published on Sat, 1.
![T Activate Rubyforge Download T Activate Rubyforge Download](http://www.hercampus.com/sites/default/files/2011/04/02/fries_0.jpg)
რეკლამა Droni.ge-ზე, სპეციალური ფასები: 599 877 901, 599 877 908.
Jun 2. 01. 1 1. 2: 2. With the advent of Gemcutter, I don’t feel the need to maintain my own rubygems mirror anymore. Please remove it from your gem source if you’re using it and replace it by Gemcutter. To install gemcutter as the main source for your gems : gem install gemcutter.
Published on Sat, 0. Dec 2. 00. 9 1. 7: 5. Lately, with my friend and colleague Joseph, we made some experiments with the Sinatra Ruby Framework.
Download Collection.com periodically updates software information from the publisher. You can visit publisher website by clicking Homepage link.
As part of the experiment we’ve chosen to stick with our DB of choice Postgre. SQL and our preferred template engine HAML, but we decided to give the Sequel.
T Activate Rubyforge Organization
![T Activate Rubyforge Gem T Activate Rubyforge Gem](http://www.bestfree.ru/soft/inet/GoogleChrome_8.png)
ORM a try as well as using Ruby 1. We also wanted to store our datas as UTF- 8 (this part is the most painful of all). Our first goal was to have a simple application tying everything together and testable with RSpec and Cucumber. Using Sinatra and HAML is a snap, as it’s a core feature of Sinatra, just be sure to use HAML version > = 2. Ruby 1. 9 String Encoding.
Then comes Sequel, using it is as simple as requiring it and feeding it with database connection information, just be sure to set the : encoding => 'UTF- 8' (cf : Sequel: :Database. Sequel is great in that it has adapters for most commons connectors, first we tried Data. Objects’s do_postgres as it should support asynchronous query (and it does !), but we had to fall back to the PG one and even to a patched version.
Let me explain the problem here, and be warned it’s not limited to Sequel, but to any ORM using currently available db connectors, when using a charset different from ASCII- 8. BIT under Ruby 1. What happens is that ORMs do not force any encoding on String returned by the database connectors even when you specified an encoding (commonly used to set the connection’s “client_encoding”). Current ruby connectors (under Ruby 1. This is not a problem on Ruby 1. Ruby 1. 9 you get some weird results, the string returned from db have a default encoding “ASCII- 8.
BIT” (in fact default for BINARY), as ORMs do not force encodings this result in a String with the bad Encoding. Try to display it on a page and you’re welcomed with friendly “incompatible character encodings: ASCII- 8. BIT and UTF- 8.” messages or try to use Webrat with RSpec matchers and you get “incompatible encoding regexp match (UTF- 8 regexp with ASCII- 8. BIT string)”. So here are the libraries versions to use to have a working Sinatra, Sequel with Postgres, HAML, RSpec, Cucumber stack : Sinatra > = 0. Rack- Test > = 0. Webrat > = 0. 5. Sequel > = 3. 0.
RSpec > = 1. 2. Cucumber > = 0. Then you need to monkey- patch Rack (this is highly untested, it worked for my current app but it should not be used in production environment) : module. Rackmodule. Utilsdefescape(s). RUBY_VERSION > = "1. Encoding. find('UTF- 8'). A- Z0- 9_.- ]+)/uelse/([^ a- z.
A- Z0- 9_.- ]+)/nend. H2'*bytesize($1)).
This does 2 things : it’s using bytesize($1) to correctly handle multibyte chars (taken from http: //github. UTF- 8 Strings under Ruby 1. There you go, you can finally test your Sinatra apps outside- in even when using non- us languages under Ruby 1. Isn’t that great ?
Published on Thu, 2. Aug 2. 00. 9 1. 0: 3. Due to the increasing time/resources needed to generate the indices for my rubygems mirror, I decided to stop generating the ones for old Ruby. Gems versions (< = 1. This greatly help with the load generated on the server by the mirroring/indexing process.
From now on I will only generate the legacy indices (for Ruby. Gems < = 1. 2. AM UTC+2/1. 2PM UTC+2. Published on Sun, 2. Jun 2. 00. 9 2. 0: 1.
In case you want to create your own Ruby. Gem mirror here’s how I did mine.
From now on, let’s pretend we will store the mirrored gems in : /data/rubygems. First you need to create a config file (YAML format) specifying the source and destination for your mirror (put it in /data/gemmirror. Then all you have to do is to add this commands as a cron task : /usr/bin/gem mirror - -config- file=/data/gemmirror. Here’s what you asked for Nick !
Published on Fri, 2. May 2. 00. 8 2. 2: 0. Today I faced a problem with specing a helper where I use the haml_tag/puts methods (haml_tag was previously open). Here’s a solution working with Rails 2. RSpec 1. 0. 3 and HAML 1.
Spec: :Runner. configure do |config|. Activate haml to spec helpers. Haml: :Helpers. config. Action. View: :Helpers. Update from Evgeny comment, with HAML > = 1. Old way for HAML < = 1.
Haml: :Buffer. new] endend. Application. Helperdo. User). capture_haml {. The interesting method is capture_haml, which does the same as Rails builtin capture but for HAML. String, thus we cannot just test on the method output. Published on Wed, 2. May 2. 00. 8 2. 1: 3.
I encountered, for some time now, problems when connecting over ssh from my mac to a linux machine. These problems were related to backspace/delete key in both nano and zsh the solutions I found today are : For zsh type : echo "bindkey ^? WARNING : you should type these commands not copy/paste them, ^? For nano type : ## Fix Backspace/Delete confusion problem. All should works now. Published on Sat, 2.
Feb 2. 00. 8 2. 0: 4. Following my last post, here’s another handy new thing to do in Leopard. I never used this in Tiger (Mac. OS X. 4) because it was not practical (besides being possible), but I swear it was usable by the time. Auto- mounting remote shared server (Samba, NFS, AFS) wherever I want, without being stuck with a dead Finder. I lost wifi network, I change room or my mac goes to sleep (yep I used to have some problems with this). So now how to do this ?
Net. Info is gone so where can I define my automount points, remember when I said Net. Info is dead for the best ? First, you should edit /etc/auto_master : sudo nano /etc/auto_master. The stock version should looks like this : #. Automounter master map.
Use directory service. Network/Servers - fstab.
You need to add a line like this, just before /- - static. Where /my/mount/point/path will be the full path to the directory where remote shared folders will appears. Mine is set to /Users/_myusername_/Desktop/Shares. Now create a new file in /etc/auto. And add one line per remote folder you want to mount automatically, each line should looks like this : www - fstype=smbfs : //username: password@remote_server_name_or_ip/shared_folder_namewww : this is the name you want to give to the remote folder locally- fstype=smbfs : specify the kind of filesystem to use, I only cover samba here.: //username: passwordremote_server_name_or_ip/shared_folder_name@ : this is the informations to connect to the remote server. Change username and password with yours, specify remote_server_name_or_ip to reflect the way you access the machine and set shared_folder_name to the name of the remote folder. Then set permission on the new file : sudo chmod 6.
Now restart automount daemon : You should see your new mount point as well as stock ones : automount: /net updated. Notice just like /etc/hosts that Leopard seems to only detect a change if a line is added/removed, so anytime you make a change that does not change the line number in the file add a comment (#) at the beginning or end to force a reload. Published on Sat, 2. Jan 2. 00. 8 2. 2: 2. Back in Tiger days, I used to love having aliases pointing to localhost or other servers saving me some typing and allowing me to use Apache vhosts locally. To achieve this without restarting the whole system, I used Net. Info to add a new Machine entry, this works great, no restart needed only Net.
Info reload. With Leopard, Net. Info is gone (for the best) and it has been replaced by a folder hierarchy full of flat . No more Net. Info Manager, but a new dscl command and a bunch of related one : dscacheutil (lookupd replacement), dseditgroup, dsmemberutil, etc. For today, we’ll use dscl and dscacheutil, let’s create a new Host entry to map myvhost. I like adding . loc to distinguish my added hosts, but you’re free to use anything else) : sudo dscl localhost - create /Local/Default/Hosts/myvhost. IPAddress 1. 27. 0. Then to be sure it’s looked up correctly by software (in fact it’s only needed if you tried to access the myvhost.
A little handy feature of the new dscacheutil when we’re at it : sudo dscacheutil - cachedump - entries Host. This will list all entries cached by Leopard, it can comes in handy when trying to solve a name resolution problem. And finally if you want to get ride of your entry later on : sudo dscl localhost - delete /Local/Default/Hosts/myvhost. Update 2. 00. 8/0. Benjamin Stiglitz wrote a comment to say /etc/hosts is now automatically watched for changes on Leopard, so there’s no more need to play with dscl to add simple host. Thanks again Benjamin. Published on Sat, 0.
Jan 2. 00. 8 1. 8: 3. David Chelimsky anounced this morning the release of RSpec 1.
RSpec 1. 1 and just now the brand new website hosting. What’s in this release ? Nested Example Groups : allows you to nest your describe blocks resulting in group sharing common specifications. Test: :Unit interoperability : switch smoothly from Test: :Unit to RSpec by allowing you to run your Test: :Unit tests with RSpec. The goal here is to provide a way to progressively transition your tests to RSpec syntax. More infos on David blog post about the RSpec 1.
Congratulation and many thanks to everyone involved in this release ! Published on Fri, 1. Dec 2. 00. 7 0. 9: 5.