Re: First time on Camping

2010-06-19 Thread Raimon Fernandez
On 19jun, 2010, at 16:34 , Magnus Holm wrote: > I think the problem is that Builder don't know that you're using > UTF-8, so it's just doing the "safest" thing and just escapes > everything. But this shouldn't really be a "problem", since the parser > should handle it and treat every á as á. yes

Re: First time on Camping

2010-06-19 Thread Magnus Holm
I think the problem is that Builder don't know that you're using UTF-8, so it's just doing the "safest" thing and just escapes everything. But this shouldn't really be a "problem", since the parser should handle it and treat every á as á. // Magnus Holm On Sat, Jun 19, 2010 at 15:53, Raimon Fer

Re: First time on Camping

2010-06-19 Thread Raimon Fernandez
Hi all, On 18jun, 2010, at 17:51 , Magnus Holm wrote: > This shouldn't be a problem, because that's the way to add non-ASCII > characters to XML documents. A proper XML parser should handle it... But in this case, it's an ASCII á, well, the extended ASCII, and all .xml files that I've created n

Re: First time on Camping

2010-06-18 Thread Magnus Holm
This shouldn't be a problem, because that's the way to add non-ASCII characters to XML documents. A proper XML parser should handle it... // Magnus Holm (from my phone) On Friday, June 18, 2010, Raimon Fernandez wrote: > Hi again, > > I know this is more related to builder than to camping, but n

Re: First time on Camping

2010-06-18 Thread Dave Everitt
Hmm - quickly: in similar setups this usually requires UTF-8 to be specified throughout Camping(?), the database, within your files (and any markup files they generate), and (sometimes) also on the server. Then you can just use/store/retrieve the characters as they are - Dave E The main di

Re: First time on Camping

2010-06-18 Thread Raimon Fernandez
Hi again, I know this is more related to builder than to camping, but not sure where to ask for it ... :-) My app receives .xml file from some different sources, and all of them, except the camping one, are formatted like this: Jim Fernández 555-1234 but camping is formatting like

Re: First time on Camping

2010-06-18 Thread Raimon Fernandez
On 18jun, 2010, at 15:34 , Magnus Holm wrote: > Oh, and I also have the speed issue! That's definitely a bug. I'll > have a look at it later... u, I was thinking it was my code ... :-) thanks ! regards, r. > > On Friday, June 18, 2010, Raimon Fernandez wrote: >> buf, now I'm lost ...

Re: First time on Camping

2010-06-18 Thread Magnus Holm
Oh, and I also have the speed issue! That's definitely a bug. I'll have a look at it later... On Friday, June 18, 2010, Raimon Fernandez wrote: > buf, now I'm lost ... > > :-)) > > no, really, thanks for that info, now I have working as I want ... > > :-) > > > I've tested and created a new datab

Re: First time on Camping

2010-06-18 Thread Magnus Holm
Excellent! Camping uses Rack, so it should be very simple to get it running on any Ruby web server. Just create a config.ru like this: require 'list' List.create if List.respond_to?(:create) # call List.create if it exists run List # and run the app! Then you can start it with: `thin start

Re: First time on Camping

2010-06-18 Thread Dave Everitt
Raimon a few things you probably already know but... just in case! 1. because of the preceding '.' in '.camping.db' you'll need to use ls - al to see the file listed (in the ~ home dir) in your file system. 2. In Magnus' example settings (database => "list") you can also add a path to your

Re: First time on Camping

2010-06-18 Thread Raimon Fernandez
buf, now I'm lost ... :-)) no, really, thanks for that info, now I have working as I want ... :-) I've tested and created a new databse, and is working also. I've created a new sqlite3 from terminal and filled-up with some data and now I can use this databse from Camping, cool! And, caping

Re: First time on Camping

2010-06-18 Thread Magnus Holm
Yeah, people always get a little confused because you don't need to define your database when you're using bin/camping (it has a default SQLite database at ~/.camping.db). I also see that there's some old, database code here; we definitely need to update our documentation (yes, I'm working on it!)

Re: First time on Camping

2010-06-18 Thread Raimon Fernandez
On 17jun, 2010, at 21:04 , Magnus Holm wrote: > > That's (hopefully) the simplest way to generate XML with Camping. > > You still need to create a model to store/retrieve the data. Before we > can help you here, we need to know a few things: Is it going to fetch > data from a specific place, or

Re: First time on Camping

2010-06-18 Thread Raimon Fernandez
On 18jun, 2010, at 10:25 , Dave Everitt wrote: > Rubygems.org was playing up recently (gems.rubyforge.org forwards to it - see > previous posts), and this looks like the same issue... Dave E. > >> Something's not right with your rubygems install maybe try `gem update >> --system` first?

Re: First time on Camping

2010-06-18 Thread Dave Everitt
Rubygems.org was playing up recently (gems.rubyforge.org forwards to it - see previous posts), and this looks like the same issue... Dave E. Something's not right with your rubygems install maybe try `gem update --system` first? ___ Camping-li

Re: First time on Camping

2010-06-18 Thread Raimon Fernandez
Hi Magnus, On 17jun, 2010, at 21:04 , Magnus Holm wrote: > Hey Raimon, > > I see that you've been experimenting with Camping and Reststop lately, > and just thought I should chime in a bit. > > You definitely don't *need* Reststop in order to achieve what you > want, so it might be a good idea

Re: First time on Camping

2010-06-17 Thread Matt Zukowski
P.S. latest version of reststop with Philippe's changes has been pushed to gemcutter... I am told it now works with the latest version of camping, but haven't had a chance to try it myself. On Thu, Jun 17, 2010 at 5:12 PM, Matt Zukowski wrote: > Something's not right with your rubygems install..

Re: First time on Camping

2010-06-17 Thread Matt Zukowski
Something's not right with your rubygems install maybe try `gem update --system` first? On Tue, Jun 8, 2010 at 3:33 PM, Raimon Fernandez wrote: > > On 8jun, 2010, at 21:18 , David Susco wrote: > > > Is the hoe gem installed? > > no, the same error as before: > > Last login: Tue Jun 8 18:43:

Re: First time on Camping

2010-06-17 Thread Magnus Holm
Hey Raimon, I see that you've been experimenting with Camping and Reststop lately, and just thought I should chime in a bit. You definitely don't *need* Reststop in order to achieve what you want, so it might be a good idea to just leave Reststop until it gets a little more robust. Let's see how

Re: First time on Camping

2010-06-08 Thread Raimon Fernandez
On 8jun, 2010, at 21:18 , David Susco wrote: > Is the hoe gem installed? no, the same error as before: Last login: Tue Jun 8 18:43:33 on ttys002 MacBook-ProII-2:~ montx$ sudo gem install hoe Password: ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) SocketError: getaddrinfo

Re: First time on Camping

2010-06-08 Thread David Susco
Is the hoe gem installed? Dave On Tue, Jun 8, 2010 at 1:01 PM, Raimon Fernandez wrote: > > On 8jun, 2010, at 18:43 , David Susco wrote: > >> I don't believe the gem has been updated to include Matt's or >> Philippe's latest changes. You could clone it from GitHub though and >> rake and install i

Re: First time on Camping

2010-06-08 Thread Raimon Fernandez
On 8jun, 2010, at 18:43 , David Susco wrote: > I don't believe the gem has been updated to include Matt's or > Philippe's latest changes. You could clone it from GitHub though and > rake and install it yourself. I think it requieres 'hoe' and I can't install without rubygems working or once aga

Re: First time on Camping

2010-06-08 Thread David Susco
I don't believe the gem has been updated to include Matt's or Philippe's latest changes. You could clone it from GitHub though and rake and install it yourself. Dave On Tue, Jun 8, 2010 at 11:55 AM, Raimon Fernandez wrote: > Hi Dave, > > On 8jun, 2010, at 17:04 , David Susco wrote: > >> Camping

Re: First time on Camping

2010-06-08 Thread Raimon Fernandez
Hi Dave, On 8jun, 2010, at 17:04 , David Susco wrote: > Camping with reststop ought will make serving the xml files easy > enough. The example on github ought to get you started: > > http://github.com/camping/reststop thanks ! reststop is also a gem for camping ? regards, r. ___

Re: First time on Camping

2010-06-08 Thread David Susco
Camping with reststop ought will make serving the xml files easy enough. The example on github ought to get you started: http://github.com/camping/reststop Dave On Tue, Jun 8, 2010 at 2:25 AM, Raimon Fernandez wrote: > hi list, > > > This is my first time here, my first time reading seriously s