Re: multi-line input field

2014-05-12 Thread Bartosz Dziewoński

On Mon, 12 May 2014 14:49:33 +0200, Sebastjan Hribar 
sebastjan.hri...@gmail.com wrote:


I can only use textarea rows:'5' @testform.testing

for displaying pruposes.


Why? textarea is the way to do multiline text inputs in HTML.

--
Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: first app - some questions

2014-04-19 Thread Bartosz Dziewoński

On Sat, 19 Apr 2014 13:22:52 +0200, Sebastjan Hribar 
sebastjan.hri...@gmail.com wrote:


2. UTF-8 encoding doesn't work. Special characters like č, š, ž from my 
language are not displayed. Should I force the encoding and how?


You need to do two things:

a) Ensure that the source text is, in fact, encoded in UTF-8. Your editor 
should provide a way to change the encoding used, most sane ones use UTF-8 by 
default nowadays, though.

b) Ensure that a 'meta charset=UTF-8 /' tag (or equivalent, there are many 
variants, all of which work) is present on the HTML output of your application. Otherwise 
browsers try to guess the encoding used and usually get it wrong.


Looking at the source code you linked, you have the following in the `layout` 
method:

html do
  title 'Aplikacija za dvojezične obrazce'
  body do
self  yield
  end
end

This should probably be:

html do
  head do
title 'Aplikacija za dvojezične obrazce'
  end
  body do
self  yield
  end
end

I *think* the latest mab adds the meta tag I mentioned automatically if you 
call `head`, but I'm not entirely sure – just check :), and if it doesn't, add `meta 
charset: 'UTF-8'` just after `head do` yourself.

--
Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Is this message getting through?

2012-08-14 Thread Bartosz Dziewoński
It went thru to me.

-- Matma Rex


2012/8/14 Jenna Fox a...@creativepony.com:
 testing. list seems to be ignoring my messages

 —
 Jenna


 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/camping-list
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Gone a little crazy

2012-04-29 Thread Bartosz Dziewoński
The fonts don't display because Opera sucks balls when it comes to
text-transform.

I have ran into problems with it before (when dynamically changing
.style.textTransform of an input field, the text displayed is not
updated - testcase:
http://dl.dropbox.com/u/10983006/textransformbug.html) and reported
them, and that was almost a year ago now, and is still not fixed.

Opera is pretty cool, but really sucks when it comes to handling bug
reports, eh.

You can work around this with a simple bit of JavaScript:

if(window.opera) // if you're feeling like it, you could maybe somehow
detect that the text is not shown correctly and check for this,
instead of just detecting Opera
{
var lst = document.querySelectorAll('h1,h2,h3,h4,h5,h6')
for(var i=0; ilst.length; i++) lst[i].firstChild.nodeValue =
lst[i].firstChild.nodeValue.toUpperCase()
}

(Or you could change the HTML source to use uppercase text, but I
guess you don't want to do that.)

(Or you could change the font files to use the same glyphs for upper-
and lower-case characters, but I guess that would require some work.)

-- Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: framework size, forking etc.

2012-04-16 Thread Bartosz Dziewoński
W dniu 16 kwietnia 2012 20:50 użytkownik Nokan Emiro
uzleep...@gmail.com napisał:
 Actually I think it's not logical that you can build HTML by default using
 Markaby, but you can't build CSS in the same way.

You never need to insert any variables into your CSS code. (If you do,
you're doing it wrong.)

-- Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Serving static files within a single app

2012-04-15 Thread Bartosz Dziewoński
Camping.goes :App
module App
use Rack::Static, :urls = ['/static']
end

-- Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: Markaby license issue

2011-12-18 Thread Bartosz Dziewoński
You can't really write Javascript in Ruby due to the way it (and its
libraries like jQuery) handle functions. Sure, it could be done, but
the code would be ugly.

2011/12/18, Isak Andersson icepa...@lavabit.com:
 Not really sure to be honest.
 It looks very nice and is basically markaby.

 But I think we should either create our own, or fork it so we could have our
 own cool stuff, like the AJAX things someone mentioned.

 Also, it would be cool if you could also write JS in ruby easily with
 camping out of the box. I know Coffeescript is similar but does it use ruby
 syntax?

 I just think we should have all the good stuff in our own language. So we
 can make it work well with camping.
 Like having an optional module for scripts that you can use in any view to
 make stuff dry. Or you could write scripts in the view.

 I think we could do something cool
 --
 Skickat från min Android-telefon med K-9 E-post. Ursäkta min fåordighet.

 Jenna Fox a...@creativepony.com skrev:

 Nice! Lets just all use this thing!


 What say you, everyone?



 —

 Jenna Fox


 On Sunday, 18 December 2011 at 12:47 PM, Steve Klabnik wrote:

 A wild project appears: http://krainboltgreene.github.com/dapper-dan/

 ___

 Camping-list mailing list

 Camping-list@rubyforge.org

 http://rubyforge.org/mailman/listinfo/camping-list


   Looking for hosting web? Find it at Www.sandglass.com
   
 http://click.lavabit.com/wjq784xbw67pm3h5ryf3kjnsycsihms3uo8gg1qdyuphy7ixobbb/




-- 
-- Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: setting controllers etc

2011-12-18 Thread Bartosz Dziewoński
I don't think I understand the problem - can't you just `require` all
the files with controllers?

-- Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: Mab: The tiny Markaby-alternative

2011-12-18 Thread Bartosz Dziewoński
I don't have time to look thru now, but it doesn't seem to support
boolean attributes (e.g. `input checked:true` should render input
checked=checked /)? I was very much missing this feature in old
Markaby, and finally even wrote a patch, as you might remember[1].

It'd probably be quite easy to add, and after all it was included in
the latest 0.7.2 version.


[1] 
https://github.com/markaby/markaby/commit/999c418e3c096d2007d18c0a118390bd07d40eb0

-- Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: run my Camping app as a Rack app

2011-10-09 Thread Bartosz Dziewoński
I'm not sure what are you trying to accomplish.

Can't you just create a config.ru file like this:
  require './yourapp.rb'
  run YourApp

And then use `rackup` to start the app?

config.ru files are widely understood, the same thing works for
example with mod_passenger or Heroku.

-- Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: run my Camping app as a Rack app

2011-10-09 Thread Bartosz Dziewoński
The app itself implements Rack protocol. (That is, if you do
Camping.goes :App, then your obj variable would be App - it
implements .call, I think it's all that's needed?)


-- Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: run my Camping app as a Rack app

2011-10-09 Thread Bartosz Dziewoński
Does it work the regular way? (via rackup)

Does it work your way, but with a different handler?

Which version of rack you're using? I can't find any usage of tr
method in 1.3.4's rack/utils.rb, and line 37 of rack/session/cookie.rb
is a comment.

-- Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: Simplest easiest rss feeds?

2011-10-05 Thread Bartosz Dziewoński
I was only once generating an RSS feed, and I just did it with
Markaby. You can see live example here:
http://warlightrss.heroku.com/general - and the source code: (RSS
generation is at the very bottom)
http://warlightrss.heroku.com/source/web.rb

Also, don't judge, this is old (still just works, so I didn't mess
with it for some time). ;)

-- Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: Maintenance release of 2.1

2011-10-03 Thread Bartosz Dziewoński
Personally I hate it. It's like table border=2 and font size=7
once again, except this time camouflaged as CSS classes. The only good
things in there are either styled pretty much the same way by default
(like, say, headers), or require a line of code (@basefont, layouts).

-- Matma Rex



2011/10/3 Jenna Fox a...@creativepony.com:
 Meanwhile, have you guys seen http://twitter.github.com/bootstrap/ ? It
 looks pretty nice, and I imagine something like that could be pretty
 powerful if deeply integrated with a version of markaby, as a 'ui toolkit
 for the web' sort of thing - a nice sensible clean default style for quickly
 prototyping ideas, and teaching beginners the concepts of the web.

___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: Feature: Simple controllers?

2011-09-24 Thread Bartosz Dziewoński
So, are we reverting it? It's still in the latest GitHub commit.

(If it was unclear, I agree with Jenna - while certainly neat, this should go.)

-- Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: What is the Best Way to Install Camping in 2011?

2011-08-30 Thread Bartosz Dziewoński
`gem install camping`

:D

(You may also want to install Markaby, ActiveRecord and all that.)

-- 
-- Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: Feature: Inline templates?

2011-08-26 Thread Bartosz Dziewoński
If this only supports Erb, then we should throw it away as fast as
possible ;) I see no reason why would anyone want to use something
*that* dinosauric in a new project.

If it also supports (or can support), say, Haml, then I see how it
could be useful (although nearly all of my Camping projects end up
split between many files anyway ;) ). Personally I love Markaby, but
for many people it might look weird, and I can understand why.

-- Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: Feature: Simple controllers?

2011-08-25 Thread Bartosz Dziewoński
Personally I probably won't be using it, I like having class names
around and being able to link to them with R(). (I change my paths
often.) Certainly won't hurt to have it, for really small apps.

-- Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: Need input on proposed tweaks to www.ruby-camping.com

2010-08-19 Thread Bartosz Dziewoński
Jenna, on whitebook.mooo.com there are links pointing to localhost:4331.

Website is nice, but menu item are slightly unreadable :(

-- 
Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: Need input on proposed tweaks to www.ruby-camping.com

2010-08-19 Thread Bartosz Dziewoński
2010/8/19 Jenna Fox a...@creativepony.com:
 Not right now? I can find no mention of this localhost:4331. I guess you 
 caught my dev server while I was playing around and forgot to set the 
 hostname right. It wouldn't be published like that. It's a macro-type thing 
 to make the tumblog work properly with nav and stylesheet reference when on a 
 diff domain/subdomain.

I know, I know, just wanted to point out, maybe you had had forgotten
about it or something. Everything works now.


 Website is nice, but menu item are slightly unreadable :(

 Too unreadable?

Well, yes, the sidebar menu font (TopStitch) is classy, but hard to
read, especially at this size. Of course, if I focus on it, I can read
it, but IMO menus, just like main text, should be readable at first
glance. Maybe try bolding it (if this font is available bold) or
raising font size to 17-18 pt?

(To make sure it's not something wrong on my side and that we're
talking about the same thing, screenshot: http://imgur.com/2rfQv.png.
I have old crappy small 1024x768 display.)

-- 
Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: Camping 2.1 and whywentcamping.com

2010-07-04 Thread Bartosz Dziewoński
2010/7/4 Philippe Monnet r...@monnet-usa.com:
 Just for fun and to keep creative juives flowing I mocked up one idea of
 layout including a resizable look and a slideshow to showcase key points
 about Camping. That slideshow is using straight HTML and Javascript.
 See http://rubycamping.monnet-usa.com/

Try it at 1024x768. Just sayin'. Also the slideshow is too fast,
actually I don't think that making it an automated slideshow is a good
idea; let the viewer decide when to see next slide.

Except for that, I'd say it looks good (I'm just a regular Camping
user, not dev or anything).

-- 
Matma Rex
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: Where I can find Reststop-based blog.rb?

2010-06-08 Thread Bartosz Dziewoński
2010/6/8, Raimon Fernandez co...@montx.com:
  In Reststop docs they say a good example is the blog.rb, but their link is 
 broken.

  Where I can find it ?

It should come with the gem, in examples directory. You can also find
it here: http://github.com/camping/camping/blob/master/examples/blog.rb

-- 
Matma Rex - http://matma-rex.prv.pl/
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list