Topic for #ruby is now Ruby programming language || ruby-lang.org || RUBY SUMMER OF CODE! rubysoc.org/ || Paste >3 lines of text in http://pastie.org || Para a nossa audiencia em portugues http://ruby-br.org/
<sabooky>
Quick question.. in ruby is there an html form builder gem (trying to programatically generate dynamic html forms), or is the best route to just roll my own with a templating language (haml, erb, etc..)?
briankbuckley has joined #ruby
elake has joined #ruby
kevinbond has joined #ruby
philcrissman has joined #ruby
shevy has joined #ruby
Helius has joined #ruby
fedalto has joined #ruby
<Quirrell>
As a side thought, is there something I could put in a class method, without the aforementioned gem, that could be called up by a function outside of the class and printed?
<banister`sleep>
Quirrell: wat do u mean
<Quirrell>
Perhaps a value in a method that can be called up as needed; class Etc; def mymethod(params); value; other stuff; end; end, then: def help; get the value in mymethod; end
<banister`sleep>
Quirrell: still dont know what u mean :D
<Quirrell>
Not sure how to elaborate further
yoklov has joined #ruby
<banisterfiend>
Quirrell: firstly a 'value' cant really be called
<banisterfiend>
so your terminology is weird
phantasm66 has joined #ruby
LowKey has joined #ruby
PragCypher has joined #ruby
<Alantas>
mvangala: What does it mean to "sort" a string? By lines? By characters?
<mvangala>
by characters
<mvangala>
cars.sort should output acrs
<Quirrell>
You could split the string into a list, sort it, then join it again
<Alantas>
It's likely to sort by lines, since Strings are Enumerable (at least in 1.8) and they enumerate by lines, so mystring.sort should sort by lines.
<mvangala>
it's surprising that String class doesn't come with sort method?!
<Alantas>
In any case, you can turn it into an array and sort *that*. In your case, something like: "cars".each_char.sort.join
burns180_ has joined #ruby
<Alantas>
Er, rather: "cars".split(//).sort.join
albemuth has joined #ruby
<mvangala>
trying that. Thanks, Alantas
<Alantas>
mvangala: It'd be surprising if it *did*. Sorting is something that's done to collections; a string is typically thought of as a single unit, not as a collection. So, you can sort an array of strings, no problem, but sorting the string itself is like sorting a bignum.
<banisterfiend>
Alantas: this is nicer: "cars".chars.sort.join
<Alantas>
Ah, didn't know about chars(). Another trick to pick up!
<Quirrell>
mvangala: You could add a sort method to the String class using the string.chars.sort.join convention
chimkan_ has joined #ruby
orospakr has joined #ruby
<banisterfiend>
Quirrell: very naughty to monkeypatch String like that ;)
<mvangala>
Quirrell: thanks for that tip.
<banisterfiend>
mvangala: dont do it ;)
<mvangala>
you guys are helpful. Prompt responses.
<Alantas>
Or name it "sort_chars" or something. Make it more explicit, and don't clobber any existing 'sort'.
<Alantas>
See, in my 1.8.7, String *does* have a sort(), which sorts by lines. "one\ntwo\nthree\n".sort produces ["one\n", "three\n", "two\n"]
havenn has joined #ruby
<Alantas>
If anything depended on that, and you went and duck-punched String's sort() like that, you'd get eaten by a grue.
ZachBeta has joined #ruby
ascarter has joined #ruby
<banisterfiend>
Alantas: yeah that's a result of string being Enumerable in 1.8
briankbuckley has joined #ruby
colinwd has joined #ruby
nfluxx has joined #ruby
skrewler has joined #ruby
burns180 has joined #ruby
odinswand has joined #ruby
<robert_>
sup banisterfiend
danishkhan has joined #ruby
TalkSoup has joined #ruby
sohocoke has joined #ruby
<banisterfiend>
robert_: working on wonderful and magnificent projects as usual, u
<mvangala>
super.method in a child class should propagate that call to it's parent, right?
workmad3 has joined #ruby
kevinbond has joined #ruby
Targen has joined #ruby
<mvangala>
whoa, so unlike Java, we should just call super in ruby
<mvangala>
weird. Shoudn't it be like super.method_name?
luisjose has joined #ruby
<apeiros_>
super on its own already invokes the method in the superclass
<apeiros_>
and no, it should not
<apeiros_>
(be like super.method_name)
dhruvasagar has joined #ruby
robert_ has joined #ruby
burns180 has joined #ruby
<stephenjudkins>
mvangala: yeah, super's behavior is weird and kind of dumb in ruby
<stephenjudkins>
it ALSO passes all the arguments from your method to the superclass's method
<stephenjudkins>
if you want to invoke super without any arguments, the best solution i've found is super *[]
<banisterfiend>
stephenjudkins: it's not hard to stop that
KL7 has joined #ruby
<stephenjudkins>
banisterfiend: is there a better way?
<banisterfiend>
stephenjudkins: i think super() works
<apeiros_>
super(&nil) if you don't want a block be passed on
<banisterfiend>
stephenjudkins: yep super() works
<stephenjudkins>
still too magical for my taste
<banisterfiend>
stephenjudkins: not as magical as 'super' in java that appears to behave differently in constructor context vs normal method context
cbuxton has joined #ruby
Asebolka has joined #ruby
<stephenjudkins>
banisterfiend: constructors in java are pretty crazy and painful to use
cbuxton has joined #ruby
DrShoggoth has joined #ruby
elake has joined #ruby
tommyvyo has joined #ruby
adit has joined #ruby
choffstein has joined #ruby
sohocoke has joined #ruby
robert_ has joined #ruby
Asebolka has joined #ruby
hooper has joined #ruby
sohocoke has joined #ruby
burns180_ has joined #ruby
senthil has joined #ruby
frishi has joined #ruby
sako has joined #ruby
CheeToS has joined #ruby
eywu has joined #ruby
methodfree has joined #ruby
<senthil>
anyone have experience with facebook api? i'm trying to post using JSON
bgupta has joined #ruby
<shevy>
dumdeudm
<shevy>
die, facebook, die!
<deryldoucette>
doobie doobie doo
<shevy>
die, google, die!
<banisterfiend>
shevy: i got offered a j-o-b at fb
<shevy>
ewww
<shevy>
but congrats
<Quirrell>
What shevy said
<banisterfiend>
yeah i dont use fb either
<deryldoucette>
only way to stay in touch with most of my family and friends without rackin up obscene LD charges
<banisterfiend>
deryldoucette: what's wrong with skype pups
<banisterfiend>
skyp + email
<banisterfiend>
> fb
<banisterfiend>
for that kind of thing
<banisterfiend>
IMO
<Quirrell>
Or teach them to IRC
<shevy>
hmm I just removed my backup of ruby-gnome-0.x permanently, which means from now on I'll be on the ruby-gnome-1.x
<deryldoucette>
banisterfiend: they don't have skype, the ones on the other side of canada don't have internet except for the library, and irc scares the shit out of them for some reason (or so they act like, but they sure can text on their phones, not much different)
<shevy>
bye gstreamer :(
<deryldoucette>
they're all centralized on FB, so its just easier rather than trying to influence their choice *just* so i can get off fb
<Quirrell>
Fair enough I s'pose
kremlon has joined #ruby
<senthil>
i don't understand why facebook doesn't accept body/content-type param in a post request. google does it properly
sythe has joined #ruby
sythe has joined #ruby
<deryldoucette>
because FB is like MS. they know better than everyone else.
<senthil>
isn't that the restful way to do it?
shtirlic_ has joined #ruby
<shevy>
once they are big enough, they don't care about breaking things anymore
burns180 has joined #ruby
<senthil>
yea, i just want to make sure i'm understanding it right
msch has joined #ruby
<CacheMoney1>
Can I update an object's instance variable and make that update a different class's instance variable at the same time? http://pastie.org/3508542
<banisterfiend>
CacheMoney1: by using a method to do it, sure
<banisterfiend>
CacheMoney1: but not by accessing an @ivar directly
cloke_ has joined #ruby
Seisatsu has joined #ruby
<CacheMoney1>
banisterfiend: So, what you're saying is I should create a method that iterates through each player object in the @team array and sum each of their point totals?
<shevy>
he is saying to use a method to modify an @ivar
<shevy>
but you can do that
nesoi has joined #ruby
<shevy>
it's a simple counting up operation after all :P
andrew3898 has joined #ruby
<CacheMoney1>
shevy: What would I need to add to the two_make method to make that possible?
<nesoi>
hey, what's the best way to set up to do ruby dev on osx 10.6? I tried sudu gem install activerecord and it says I my version of rubygems is too old
<shevy>
CacheMoney1 and where do I see that method
<msch>
nesoi: can you do a ruby -v i think the default ruby on snow leopard is too old for the current activerecord, etc
<shevy>
ah yes now I see it
<shevy>
I usually use << to append
<shevy>
and avoid .pop and .push and .unshift
<CacheMoney1>
should I not use tap?
looopy has joined #ruby
<CacheMoney1>
someone recommended it to me
<shevy>
dunno
<shevy>
it was not me
<nesoi>
msch, 1.8.7, but the problem is that I need rubygems 1.3.6 or greater
<shevy>
ask the one who recommended it to you
<CacheMoney1>
i'll leave it, it gets the job done
<shevy>
I take responsibility only for what I suggest, not what others suggest :)
<shevy>
CacheMoney1, and your important method is two_make ?
<shevy>
you can let it return those three values
<msch>
nesoi: ah 1.8.7 is fine. yes, just do gem update --system and if that doesn't work try sudo gem update --system (i think the default ruby on snow leopard needs sudo for gem installations)
<nesoi>
msch, and I have gem 1.3.5
<shevy>
return [ @twoAtt, @twoMade, @points ]
<shevy>
I have no idea which value you need
<nesoi>
msch, cool, updated to 1.8.17
<nesoi>
thanks
<CacheMoney1>
I just need @points...
<shevy>
well ok then return that
<shevy>
though actually
<shevy>
I think it already does
al3xnull has joined #ruby
<shevy>
the last expression is usually returned when a method finishes
<shevy>
so in your case this is already @points I guess
<shevy>
CacheMoney1 well, store the value in class Game, in an @ivar
<shevy>
like @sum
sacarlson has joined #ruby
<shevy>
and iterate over your @team dataset
<nesoi>
msch, hmm. now installing activerecord I got "unrecognized option --encoding"
<CacheMoney1>
shevy: instead of @sum can I just use @points to keep the score for the Game?
<nesoi>
any idea?
<nesoi>
that was when installing the documentation
<msch>
nesoi: can you paste the whole command and output?
<msch>
nesoi: ah in that case do gem install activerecord --no-ri --no-rdoc
<msch>
nesoi: it's because proper encoding support was added to ruby 1.9 and i guess rdoc is expecting it in 1.8 too but it's not there.
<nesoi>
so always used those switches for all gem installs?
ceej has joined #ruby
<msch>
nesoi: yes, but you can configure those in ~/.gemrc
<msch>
nesoi: your gems, sorry. gem install activerecord ruby-mws
<Squarism>
now im trying to parse a RTF file.. guess what, after all these years there doesnt exist a ruby gem that handles the simplest of formats
<nesoi>
I wonder if I just got phished... I did the 1st command on this page https://rvm.beginrescueend.com/rvm/install/ and it asked for a password and I unthinkingly entered my root password
<Squarism>
there are ones, that rely on you compiling C++ code making multi platform build process a fakking mess.. as allways in ruby space
<patrick99e99>
banisterfiend: I am good, and wanted to ask you a question about something I am trying to do...
<CacheMoney1>
shevy: Since I have an array of objects, which each have quite a few variables I want to sum (ie points, rebounds, steals, etc). Is there are quick way to do this or do I need to iterate through each object for each variable?
<Squarism>
further more it will force you to write ugly install instructions / builds for each of those platforms
<nesoi>
msch, ok, so now I tried to install rvm, and it goes through the script but rvm is still an undefined command...
<patrick99e99>
banisterfiend: http://pastie.org/3508655 ... I am trying to create a simple class that will basically act like an OpenStruct, where I can just on the fly create a setter/getter by calling foo.blah= and foo.blah
<msch>
nesoi: did you close/reopen the terminal?
<shevy>
CacheMoney1 I have no real idea what you are trying to do. I suggest, write your .each iterator for now, then upload on pastie so that people can have a look and give feedback
<Squarism>
but nothing is a problem in ruby space.. just hack it, where hacks arent considered bad but the way of a pioneer
denom has joined #ruby
<nesoi>
msch, yep!
<Squarism>
...no matter the maintainance cost
<banisterfiend>
patrick99e99: what's the prob u r having
<shevy>
CacheMoney1 well that looks fairly ok or?
<msch>
nesoi: run source ~/.rvm/scripts/rvm and check if that makes rvm available
<nesoi>
msch, it doesn't!
<msch>
Squarism: i don't see the problem with polyglot programming.
<patrick99e99>
banisterfiend: but I ran into two problems: One is, I was surprised to see that inside my class << self, there was no way to reference my "args" variable. So I had to do something hacky and set it to a class ivar....... Is there another way to do this? The other problem is, when I try to do foo = JsDataObject.new; foo.bar = "baz"; foo.bar; I get a proc instead of "baz" .. and am totally confused why
<msch>
nesoi: does it output anything?
<nesoi>
-bash: /Users/ril/.rvm/scripts/rvm: No such file or directory
<CacheMoney1>
shevy: I don't want to be redundant and write a update_rebounds method, update_assists method, etc
<msch>
nesoi: hm, head over to #rvm, i think something with your rvm installation is broken
<banisterfiend>
patrick99e99: (1) use a closure instead (2) the reason you get a proc is because you're just defining a method, not invoking it
<nesoi>
okie, thanks!
<banisterfiend>
and the return value of define_method is a proc
<Squarism>
msch, well i do. All "such" projects ive been into has been a total mess. Especially accross developer computers, OS, versios, build server, test servers and production
<Squarism>
try a platform independent language and yo'll learn that you spend more time programming instead of fixing platform issues
mayfield_ has joined #ruby
<msch>
Squarism: i don't know, i never had any issues across different unixes. shelling out is the unix way after all. but i agree that ruby dev on windows is broken
<shevy>
CacheMoney1 well
<shevy>
as I told you I would use one hash instead
<shevy>
but I have no idea what you are doing there anyway
eywu has joined #ruby
<shevy>
I'd say, be redundant and get the job done
<CacheMoney1>
okay... I'll be redundant for now. Once everything works, I'll try to refactor my code to be more efficient (ie use a hash for instance variables)
<shevy>
yay!
<shevy>
well for your counter variables
<shevy>
because that's really the only thing they are doing
<Squarism>
msch, ruby as a language and all sorts of dependency on OS'es is SHIT. Even if less modern, any bigger project is much more likely to succeed in java
<shevy>
Squarism ruby is wonderful on linux and windows
akem has joined #ruby
pdtpatr1ck has joined #ruby
<Squarism>
no, its shit.
<shevy>
how so?
machine1 has joined #ruby
<Squarism>
untyped, inconsistent, bad 3rd party libs, the rails mess etc etc
burns180 has joined #ruby
<msch>
Squarism: can you elaborate on the rails mess?
<td123>
troll much? dynamic typing is a feature of the language?
<shevy>
lol, lol, agreed, agreed
<shevy>
but I fail to see how rails equates ruby in the first place
<Squarism>
msch, its a damn operation based webframework in 2012
<deryldoucette>
and since when are THRID party libs a defining instance of how good or bad the language *itself* is?
<deryldoucette>
its not. thats the answer you were looking for
<Squarism>
deryl, since allways
<deryldoucette>
since never
<Squarism>
haskell is a wonderful language, unusable because of lib support
<deryldoucette>
anyone can code _shit_. ruby as a language and in and of itself is great.
<msch>
oh come on deryldoucette and Squarism of course the language is independent of the libs, but Squarism is talking about the ruby ecosystem as a whole
<shevy>
if random guy x writes a crappy third party lib, how is this the language's fault? because this situation exists for languages like php python and lua just as much
<deryldoucette>
msch: no he's not. he is specifically targetting ruby itself.
<deryldoucette>
or thats *clearly* how he reads
<msch>
deryldoucette: and ruby as a language in and of itself isn't great, there are a billion quirks some of which got fixed in 1.9, but it's still not half as elegant as smalltalk
<Squarism>
msch, right!
<shevy>
haskell is overly complicated. can you explain the difference between a monad and an arrow?
<deryldoucette>
oh christ. nevermind. why did i let myself get drawn into bullshit from people with no clue.
<shevy>
and why I need arrows when they are monads that can operate nondeterministically in parallel anyway
<deryldoucette>
gone &
<Squarism>
i dont need to use them for the problems i solve
<patrick99e99>
banisterfiend: sorry-- distracted again!! Umm.. so when you say use a closure, aren't I by default using a closure by setting a variable outside of class << self?
<Squarism>
Scala has everything ruby has as a language - just better in every way. + all the tool support
<Squarism>
even has good IDE's now days
<Squarism>
cant see a single motivation for using ruby other than for shell scripting
<banisterfiend>
patrick99e99: no
<msch>
deryldoucette: sorry should have rephrased. ruby is a great language, in fact my favorite language because of the ecosystem, but if smalltalk had the tool support, the ecosystem, etc of ruby I'd switch in a heartbeat.
<patrick99e99>
banisterfiend: so how do I create a closure in this context?
<deryldoucette>
then why oyou in the channel running your mouth about it? go delete ruby off your computer, install your scala and toolset chain, use that, and quit your job if you have to program ruby and get a job that lets you work with what you like, want, and don't have to deal with because its (and i quote) shit
<banisterfiend>
patrick99e99: use blocks
<deryldoucette>
i mean give it up
<deryldoucette>
you're just trolling and wasting people's time and bandwidth
<deryldoucette>
msch: now THAT is a decent answer
<msch>
deryldoucette: well i was under the impression that everyone in #ruby kinda agrees with that. didn't realize Squarism is just trolling
<Squarism>
i HAVE TO use ruby, not my choise
<Squarism>
--> deryldoucette
<deryldoucette>
yes it is. just don't do it
<shevy>
Squarism you need java for scala
<msch>
shevy: no, mongodb works too
<shevy>
?
<deryldoucette>
go find a different job if it upsets you so much i mean why stress yourself out over something so stupid and crappy as ruby. find another job. if its such crap i'm sure you've made sure you've learned something else that is better and use that more. so go find a job using that
<deryldoucette>
duh
<shevy>
#ruby is being invaded :(
<msch>
shevy: i was being facetious :)
<shevy>
man I am just going to watch who the next will be
<deryldoucette>
you do that. i'm going to do something i like. like watching tv and snackin on popcorn with a beer
mikeric has joined #ruby
<patrick99e99>
banisterfiend: hmmm... I don't quite see what you mean with blocks? You don't mean use a proc do you?
<banisterfiend>
patrick99e99: class_eval
<patrick99e99>
oh
<banisterfiend>
Squarism: just curious, but you can point out some ruby inconsistencies? :)
<Squarism>
well all the hashmap, array juggeling
<banisterfiend>
Squarism: what do u mean?
<shevy>
having fun eh banisterfiend ;)
<msch>
banisterfiend: hehe :)
<Squarism>
i dont have time to go into this
<Squarism>
try scala and yo'll see a world of clarity
elake has joined #ruby
<banisterfiend>
Squarism: but you had time to complain for the last 30 mins? :) i would have thought if the inconsistencies were so glaring you'd be able to rattle off a few in a number of seconds
<banisterfiend>
i'm not saying ruby doesn't have inconsistencies, i was just curious about the ones you had in mind
wmoxam has joined #ruby
<shevy>
scala is 100% free of inconsistencies
<shevy>
you will never find a single inconsistency
<Squarism>
also all that proc, lambda, block stuff
<Squarism>
wouldnt one, with options, suffice
<Squarism>
why not call it a "function", just like all other functions
<Squarism>
like scala does it
<banisterfiend>
Squarism: well blocks/procs distinction make sense (IMO), one is just a special case of the other optimized for the common case. I'm less happy about lambdas as i dont remember ever needing to use them - so i would say maybe ruby has unnecessary richness there, but it's still not really an inconsistency.
clougeek has joined #ruby
<Squarism>
ok.. lets call it messy then
<banisterfiend>
not really messy either, just kind of bloaty perhaps
<td123>
it could also be an implementation detail
<apeiros_>
Squarism: we could replace all methods with a single one with options
<td123>
since calling return in a lambda wont return the outside function
<apeiros_>
wouldn't that be jolly nice?
<apeiros_>
we actually already have it: send
<Squarism>
method constructs yes
pdtpatr1ck has joined #ruby
sroy2_ has joined #ruby
briankbuckley has joined #ruby
akem has joined #ruby
<banisterfiend>
Squarism: iirc the way that scala fakes 'blocks' via the {} is really creepy. It just allows you to use {} instead of () to invoke a method in certain circumstances, and then pass in an anonymous function in the arg list
<Squarism>
its just a anonymous function definition with implicit arguments
<patrick99e99>
when I try to data.foo my ruby process takes up 100% processing power and hangs
<patrick99e99>
it's getting suck in recursion and I don't see why
thecreators has joined #ruby
<Squarism>
all the info is there for the compiler, so why dont use it... and relieve the programmer from explicitly typing it
<banisterfiend>
Squarism: but the whole `{}` thing is weird
<patrick99e99>
*stuck not suck
<shevy>
Squarism how do you use an anonymous block in scala syntax?
ZeepZop has joined #ruby
<banisterfiend>
the curly brackets do not denote a 'block' but instead are just an alternate way of passing a parameter to a function, for example i can go: myfunc { param1 } instead of myfunc(param1)......... (the {} can only be used instead of () if the func takes just ONE parameter)
rexbutler has joined #ruby
<shevy>
scala is very consistent
<banisterfiend>
so how can i go fren(myvar) { code } if 'code' is just another
<banisterfiend>
parameter ? well the trick is that fren(myvar) actually returns
<banisterfiend>
another function (through currying) that accepts just one parameter.
<banisterfiend>
sorry, just pasting from the notes i took when i was reading the scala book
<shevy>
though in reality, the java guys are too lazy to learn a proper language so they swim around within their ecosystem
<shevy>
banisterfiend, he has no answer for any of that
<banisterfiend>
so, in scala fren(myvar) { blah } is actually equivalent to fren(myvar, blah). It's just that through use of currying and the {}style function invocation you can make it look like a control construct.
<banisterfiend>
Squarism: Yeah, so i found that ugly
<Squarism>
well parantheses are optional
<rexbutler>
Question: Say I have a ChessSquare class. I want to initialize it with either an array [u,v] with values from 0..7 or with a "algebraic notation" string which goes from "a1" at one corner to "h8" at the other.
<Squarism>
a.b(c) = a b c
<rexbutler>
Is checking for types in initialize a bad idea?
<Squarism>
the use of {}
<shevy>
rexbutler it is usually better to use methods for that, and try to keep initialize lean
<shevy>
from within initialize, pass those things to other methods
<shevy>
which do the initializing of the array
<rexbutler>
shevy: So maybe put a str_to_coord class method?
<shevy>
hmm
<Squarism>
is used if you define an anonymous function in that sense... myFunc({ x = > x == "a"}) eq myFunc { x => x == "a" }
<patrick99e99>
banisterfiend: i am confused and have to go meet someone for dinner.. I will be back later to get a grasp on this........ thanks anyway for your time
<shevy>
rexbutler, you have example code?
<rexbutler>
shevy: Well, I have chess related code but...
Squarepy has joined #ruby
<shevy>
well bundle this into a method
<shevy>
then do the type checking on the given arguments
<shevy>
if bla.is_a? String # use algebraic notation
<shevy>
else # use the 0..7 range initialization
Squarepy has joined #ruby
<shevy>
you can put it into initialize too of course
<shevy>
but I found it nicer to read when there are methods that "work" on your data
burns180_ has joined #ruby
<Squarism>
is catdoc available on mac?
<rexbutler>
shevy: I think I was reading in Eloquent Ruby about not testing for types in initializers, if I remember correctly
idletom has joined #ruby
<Squarism>
banisterfiend, all your confusion relatats to that that a.b(c) = a b c, there ain that many forms of syntactic sugar in scala, but that is one
<rexbutler>
shevy: Maybe I could stick with the [u,v] initializer only and then add a method to convert "a1" --> [0,0], "h8" --> [7,7]
<CacheMoney1>
in Jave when I want to change a variable name, I can do it and change it everywhere else it's found in the code. Is that possible with Ruby?
<CacheMoney1>
*Java
<shevy>
rexbutler no idea about that. I found that I like to keep these in methods because I can reset an object lateron easily again when I call some methods (like .cleanup or .reset or something like that.)
<shevy>
CacheMoney1 what do you mean
<shevy>
a search and replace to change "foo" into "bar" within the code?
<CacheMoney1>
yeah
<shevy>
but you use an IDE or editor for that?
<Squarism>
banisterfiend, {} in a way is just to denote scope, and as you could write myFunc( x => x == "a" ), you cant write myFunc x => x == "a" wo stating scope
<banisterfiend>
Squarism: using {} as a sugar for () so that you can pretend that you're doing something you're not, i find kind of ugly
<rexbutler>
shevy: There are a lot of initializers in the standard libraries that take multiple types... I'll look at them. For example, the Set class
<CacheMoney1>
i found it... in Java I could just right click the variable and do it. Here I have to do a search and replace, thanks
<Squarism>
banisterfiend, its not a replacement... its a scope instruction
maletor has joined #ruby
<shevy>
s1 = Set.new [1, 2]
<shevy>
that input is just an array
<shevy>
CacheMoney1 you use a funky IDE? :)
<CacheMoney1>
i'm using Sublime Text 2
<banisterfiend>
Squarism: hm, the scala book says it's the same as () but only works when there's one argument
sdwrage has joined #ruby
<rexbutler>
shevy: Okay, how about BigDecimal
akem has joined #ruby
akem has joined #ruby
<rexbutler>
shevy: Or maybe not, that's implemented in C
yoklov has joined #ruby
<shevy>
hehe
<banisterfiend>
Squarism: see page 170-171
<Squarism>
banisterfiend, nested functions?
Squarepy_ has joined #ruby
<banisterfiend>
"the purpose of this ability to substitute curly braces for parentheses for passing in one argument is to enable client programmers to write function literals between curly braces. This can make a method call feel more like a control abstraction."
<Squarism>
i might have an old copy
<banisterfiend>
Squarism: this is "programming scala" by odersky
<banisterfiend>
artima
<rexbutler>
shevy: Let me write something up, I think I've got it
colinwd has joined #ruby
joast has joined #ruby
<Squarism>
aha.. i only got scala book
Squarepy_ has joined #ruby
luisjose has joined #ruby
ZachBeta has joined #ruby
<banisterfiend>
Squarism: anyway ill probably do some more scala in the future, esp on android. But as far as dynamic languages go ruby is my favorite by far
<Squarism>
banisterfiend, there is a special construct i think of that might be it... if a fucntion "myFunc" takes one function as an argument... say that argument should be x:DifferentTypes => some-definition .... then instead of writing myFunc( x match { case A => ... case B => ...) .... that can be writen as myFunc { case A => ... case B => ... }
tomzx has joined #ruby
<Squarism>
banisterfiend, but that thing you talked about only has to do with the syntactic suger of a.b(c) = a b c
<bonhoeffer_>
i'm doing require app and app is the directory -- am i missing something?
<banisterfiend>
bonhoeffer_: man, active since 2008 and only 1 follower on github ;) you need to market yourself better hehe
<bonhoeffer_>
does the file need to have certain permission
<bonhoeffer_>
yeah, don't follow me
<bonhoeffer_>
but you can nudge me in the right direction . . .
shadoi has joined #ruby
<bonhoeffer_>
banisterfiend: do you have any idea why i'm getting that error?
radic has joined #ruby
<banisterfiend>
bonhoeffer_: try require './app'
<bonhoeffer_>
will do -- but that shouldn't be neccessary, right?
<banisterfiend>
bonhoeffer_: it is in 1.9.2+
<banisterfiend>
bonhoeffer_: also try require_relative instead of require
<bonhoeffer_>
oh -- getting with the times . . .
<Squarism>
banisterfiend, fun to hear you are interrested!
<Squarism>
banisterfiend, dont take that long to get into.. prolly just need some project to get going.. im sure yo'll love all of it.. especielly if you liked the constructs ruby introduced on the "enterprise" scene.
stephenjudkins has joined #ruby
<shevy>
right
<banisterfiend>
Squarism: i haven't got bored of ruby yet though :) what's the scala repl like?
<shevy>
time for pry to go enterprise, banisterfiend
<banisterfiend>
shevy: we're getting there
<Squarism>
banisterfiend, flawless? =D
<banisterfiend>
Squarism: i mean does it have any interesting features
chessguy has joined #ruby
<bonhoeffer_>
chessguy: are you in dc?
<bonhoeffer_>
i'm in alexandria
<chessguy>
i'm in northern virginia
<chessguy>
near dulles airport
sythe has joined #ruby
headius has joined #ruby
kevinbond has joined #ruby
<bonhoeffer_>
nice -- infoether is out there, a friend of mine works there
<bonhoeffer_>
wait -- now he is at living social
<bonhoeffer_>
anyone with insight into where i would put register Barista::Integration::Sinatra in a sinatra app?
<bonhoeffer_>
i'm supposed to put that " in the scope of your app"
<Squarism>
banisterfiend, autocomplete atleast ... i seldom use it though
<banisterfiend>
Squarism: ok, maybe that could be my first mission in scala, write a kick ass repl :)
<Squarism>
banisterfiend, oh.. that sounds hard =D
pu22l3r has joined #ruby
<Squarism>
it does seem powerful
<Squarism>
i mean, it doesnt stop you in any way
<Squarism>
has configuarable keybindings
bigkm has joined #ruby
<bonhoeffer_>
i'm not familiar with what register Barista::Integration::Sinatra does
philcrissman has joined #ruby
<bonhoeffer_>
is that like including a module?
<chessguy>
bonhoeffer_: are you talking about flipse?
<chessguy>
hmm, another rubyist around here that just started at LS. i guess it's not that odd
burns180_ has joined #ruby
tyman_ has joined #ruby
sythe has quit ["Parting is such sweet sorrow."]
pac1_ has joined #ruby
looopy has joined #ruby
fukushima has joined #ruby
wmoxam has joined #ruby
mtkd has joined #ruby
Evixion` has joined #ruby
looopy has joined #ruby
nfluxx has joined #ruby
bigkm has joined #ruby
bglusman has joined #ruby
cook1es has joined #ruby
statix has joined #ruby
burns180 has joined #ruby
fayimora_ has joined #ruby
techhelp has joined #ruby
albemuth has joined #ruby
pu22l3r has joined #ruby
nerdy has joined #ruby
macmartine has joined #ruby
techhelp has joined #ruby
jameshyde has joined #ruby
cloke has joined #ruby
neurodrone has joined #ruby
neurodrone has joined #ruby
jsdrk has joined #ruby
drbawb has joined #ruby
drbawb has joined #ruby
burns180_ has joined #ruby
zakwilson has joined #ruby
ZachBeta has joined #ruby
snip_it has joined #ruby
<minijupe>
I have the following string: http://tailrank.com/share/?link_href={url}&title={title}. What is the best way to insert strings for {url} and {title} ? sub?
voodoofish has joined #ruby
bigkm has joined #ruby
CircleDot has joined #ruby
rramsden has joined #ruby
parsifal_ has joined #ruby
<parsifal_>
I need to set a variable, and then require a file and let the code in that file access the variable. How can I do that?
<parsifal_>
I tried setting it like: $var = '...'
drbawb has joined #ruby
Choobie has joined #ruby
srp_ has joined #ruby
srp__ has joined #ruby
Nisstyre has joined #ruby
nerdy has joined #ruby
burns180 has joined #ruby
ZachBeta has joined #ruby
zomgbie has joined #ruby
ascarter has joined #ruby
wookiehangover has joined #ruby
nlc has joined #ruby
thebastl has joined #ruby
savage- has joined #ruby
tyman has joined #ruby
bigkm has joined #ruby
banisterfiend has joined #ruby
dhruvasagar has joined #ruby
randym_ has joined #ruby
burns180_ has joined #ruby
ZachBeta has joined #ruby
srp_ has joined #ruby
yxhuvud has joined #ruby
scalebyte has joined #ruby
rohit has joined #ruby
x0F_ has joined #ruby
gokul has joined #ruby
sacarlson has joined #ruby
dhruvasagar_ has joined #ruby
tudorstudio has joined #ruby
wshaddix has joined #ruby
albemuth has joined #ruby
odinswand has joined #ruby
<scalebyte>
user.profile.detail.each_pair{|key, value| puts "key: #{key} value: #{value}"} how can I get this printed in html slim ?
<ksinkar>
which is the stable version of rake for ruby 1.9.2?
wyhaines has joined #ruby
<scalebyte>
ksinkar: rake-0.9.2.2
luisjose has quit ["Leaving"]
ZachBeta has joined #ruby
cobragoat has joined #ruby
ksinkar_ has joined #ruby
Morkel has joined #ruby
havenn has joined #ruby
zomgbie has joined #ruby
burns180 has joined #ruby
ZachBeta has joined #ruby
sgmac has joined #ruby
cook1es has joined #ruby
ZachBeta has joined #ruby
ksinkar__ has joined #ruby
mdw has joined #ruby
sako has joined #ruby
machine1 has joined #ruby
maletor has joined #ruby
ZachBeta has joined #ruby
rippa has joined #ruby
burns180_ has joined #ruby
ZachBeta has joined #ruby
CodeZombie has joined #ruby
ZachBeta has joined #ruby
csherin has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
ksinkar has joined #ruby
zakwilson_ has joined #ruby
justinmcp has joined #ruby
blueadept has joined #ruby
Squarism has joined #ruby
burns180 has joined #ruby
mohsin^ has joined #ruby
<mohsin^>
hi
<mohsin^>
I am trying to write my first ruby program
<mohsin^>
and need some help with setting up environment
bier has joined #ruby
<mohsin^>
I have AptanaStudio3 installed in Ubuntu 11.10
<mohsin^>
can someone walk be through writing and debugging "hello world"
mikepack has joined #ruby
nemesit has joined #ruby
zomgbie has joined #ruby
Natch has joined #ruby
mikeric has joined #ruby
nfluxx has joined #ruby
mikeric has joined #ruby
greenarrow has joined #ruby
akemrir has joined #ruby
mikepack has joined #ruby
ksinkar_ has joined #ruby
crayfishx has joined #ruby
ezkl has joined #ruby
burns180_ has joined #ruby
sako has joined #ruby
<crayfishx>
Hi, seems a lot of people are having problems installing mysql gem on Ruby 1.8.7 - most seem to think installing mysql-devel fixes it, but I've done that - any ideas? This is what I've got installed and the output from gem install, it's a standard CentOS 6 server... http://pastie.org/3510079
<crayfishx>
It seems to be using -I/usr/include/mysql and I definatly have a mysql.h installed there
sizz_ has joined #ruby
akem has joined #ruby
mikeric has joined #ruby
srp_ has joined #ruby
davidcelis has joined #ruby
Natch| has joined #ruby
ed_hz_ has joined #ruby
snearch has joined #ruby
burns180 has joined #ruby
tommyvyo has joined #ruby
ksinkar_ has joined #ruby
Spockz` has joined #ruby
adit has joined #ruby
sina_ has joined #ruby
n3m has joined #ruby
CheeToS has joined #ruby
mohsin^ has joined #ruby
<sina_>
hello all :) can someone tell me what exactly happens when we run a class inherited from Test::Unit::TestCase? (it creates an instance for each test?)
adambeynon has joined #ruby
ephemerian has joined #ruby
adambeynon has joined #ruby
sgmac has quit [#ruby]
sgmac has joined #ruby
sgmac has quit [#ruby]
sgmac has joined #ruby
hackoo has joined #ruby
senthil has joined #ruby
sgmac has quit [#ruby]
sgmac has joined #ruby
<senthil>
is rspec after suite mostly for tearing down stuff? does it have access to how many tests passed/failed?
sgmac has quit [#ruby]
sgmac has joined #ruby
<senthil>
if i wanted to collect data on how many specs pass/total specs, how should i go about it?
<senthil>
i was thinking of using rspec's after suite, but i don't think it has access to that info
tommyvyo has joined #ruby
zxiest has joined #ruby
<zxiest>
Hello everybody :-)
ksinkar__ has joined #ruby
burns180_ has joined #ruby
blacktulip has joined #ruby
tommyvyo has joined #ruby
sacarlson has joined #ruby
francisfish has joined #ruby
gentz has joined #ruby
Pideras2 has joined #ruby
<Pideras2>
hello, can someone help me with that problem ? can't fix it for ages. screenshot - http://bitsy.me/img4dy
n1x has joined #ruby
pantsman has joined #ruby
n1x has quit [#ruby]
amerine has joined #ruby
adman65 has joined #ruby
Talvino has joined #ruby
mdw has joined #ruby
neojan31985 has joined #ruby
burns180 has joined #ruby
sizz has joined #ruby
<neojan31985>
help i need ruby screencasts !!!!
kawa_xxx has joined #ruby
sina_ has joined #ruby
the_hack has joined #ruby
randym_zzz has joined #ruby
ksinkar_ has joined #ruby
bluOxigen has joined #ruby
drbawb has joined #ruby
drbawb has joined #ruby
Vert has joined #ruby
johndbritton has joined #ruby
d34th4ck3r has joined #ruby
Redjack1964 has joined #ruby
punkrawkR has joined #ruby
ksinkar__ has joined #ruby
zomgbie has joined #ruby
glosoli has joined #ruby
rohit has joined #ruby
ksinkar has joined #ruby
Seisatsu has joined #ruby
srp__ has joined #ruby
maletor has joined #ruby
kp666 has joined #ruby
tommyvyo has joined #ruby
kW_ has joined #ruby
al3xnull has joined #ruby
<kW_>
Hello! How do I find out if the superclass of the current class actually responds to a certain method (such that I can call it using "super" in case it is defined)?
<Hanmac>
yes you can :P
scalebyte has joined #ruby
jlebrech has joined #ruby
<Hanmac>
defined?("super") should work ... or defined?(super) ... never tryed
<banisterfiend>
scalebyte: i dont want to help you because i find you annoying
<scalebyte>
banisterfiend: a friend in need is a friend in deed... mate I have never tried to annoy you intentionally may be my anxiety could have pestered you in the past. and if that's the case I apologize
<scalebyte>
banisterfiend: i need help so that I could get that done.. please mate !!
eldariof has joined #ruby
<jlebrech>
i'm trying to change this class with worked ok with instance methods https://gist.github.com/d2114ad16772e636b744 but i'm changing it to use static methods instead, could someone have a look :)
<jlebrech>
which*
<banisterfiend>
scalebyte: join a rails channel, that's not even appropriate for this channel
<banisterfiend>
scalebyte: so not only are ou annoying, you're also asking questions that are inappropriate for this channel
<scalebyte>
banisterfiend: I have been banned there... You would be knowing a thing or two about rails ryt ?
<banisterfiend>
scalebyte: i dont caer if you're banned there, you're probably banned for good reason: i.e you're annoying.
<banisterfiend>
scalebyte: that doesnt mean you can ask off-topic questions here
<scalebyte>
banisterfiend: u r being rude
<banisterfiend>
scalebyte: find another rails channel
<banisterfiend>
scalebyte: there's more than one rails channel
<scalebyte>
banisterfiend: name please
<jlebrech>
hi
<jlebrech>
could you see what wrong with my code? i can't use self.class.get from a static method, what should I do?
nemesit has joined #ruby
<banisterfiend>
jlebrech: just use self.get :P
ksinkar_ has joined #ruby
<jlebrech>
banisterfiend: now i'm getting undefined method `strip' for nil:NilClass on line 56 :(
<banisterfiend>
jlebrech: you haven't even pated code so how can i help you ? :P
<Kleggas>
Hi. Does anyone have any good tip for oauth2 library for ruby, that works with 1.8.7 and 1.9.1, exist in standard gem repos and got examples of how to use? Ive been looking around at different solutions but only part of them seems to exist in repos, if its even them as they seem outdated (some of them). Any good one which people "commonly" use?
fermion has joined #ruby
<Kleggas>
sorry, might add I meant oauth2 server/provider, not client
<Nate75Sanders>
I'm looking for a strongly-typed Ruby DSL for the actor model.
<scalebyte>
akemrir: mate we spoke yesterday about the hashes
<akemrir>
scalebyte: hello
<scalebyte>
akemrir: yes.. have to solve something urgently that has been breaking my head long.. kindly help me friend !! how can I updates the params in the controller ? https://gist.github.com/1965397
<akemrir>
scalebyte: this form will be sent in params hash to controller update method. Did you inspected this hash?
<jlebrech>
my httparty class returns a hash like this {:users=>[{:id => 1 ... } {:id => 1}... how do I process that so that I have an array of objects instead?
<scalebyte>
akemrir: when i try submmiting the form.. i get the error like this ActiveModel::MassAssignmentSecurity::Error in UsersController#update Can't mass-assign protected attributes: Education, College
<scalebyte>
akemrir: which should come... how can I save these hashes in the db using params..? I am not simply geting it.. may b coz am nervous :-/ tough time.. at work !!
<akemrir>
scalebyte: why you use second and first?
<akemrir>
scalebyte: sorry i know now
<akemrir>
scalebyte: you have worng syntax
<scalebyte>
akemrir: detail: {:Education=>["B.Tech", true], :College=>["ABC College", true]} you see this... user should be able to edit "Btech" and "ABC college" thats y i have them in tet fileds and true false in check boxes
<scalebyte>
akemrir: so Btech would be called by user.profile.detail[:Education].first
<scalebyte>
akemrir: and boolean using user.profile.detail[:Education].second
<scalebyte>
akemrir: or if there is any better way to save it tell me.... i am freaking mate !!
kevinbond has joined #ruby
<akemrir>
scalebyte: text_field_tag("user[#{key}][first]", value.first) -> maybe that should work, text_field_tag("user["profile"]["detail"][#{key}][first]", value.first)
<scalebyte>
akemrir: both text_tag you wrote are same ryt ?
<scalebyte>
akemrir: i need to know hw I can save them ?
<akemrir>
scalebyte: test it locally without any additional action, maybe that modification in model would work
sacarlson has joined #ruby
<scalebyte>
akemrir: user.profile.detail.each do |key,value| [78] puts key puts value.first puts value.second end
<scalebyte>
akemrir: this works in console
<akemrir>
scalebyte: did you tested my tip in app?
<scalebyte>
akemrir: how to do that? can u b a lil precise
<akemrir>
this one -> text_field_tag("user["profile"]["detail"][#{key}][first]", value.first)
<jlebrech>
how do you add a variable to an object from a string? basically i have a hash u.each do |k,v| i want a variable named k with the value of v
<scalebyte>
akemrir: the same for check box ?
cantonic_ has joined #ruby
<akemrir>
scalebyte: yes same but not with second. but with [1]
<akemrir>
scalebyte: first can be replaced with [0] (this is index from array)
<scalebyte>
akemrir: so u mean = text_field_tag("user["profile"]["detail"][#{key}][first]", value[0]) = check_box_tag("user["profile"]["detail"][#{key}][first]", value[1])
<apeiros_>
jlebrech: do you mean you have a hash like: {:foo => "bar"}, and an object obj, where you can do obj.foo, and obj.foo = "bar", and now you want to set obj.foo from the hash?
<scalebyte>
akemrir: ok leme try
<jlebrech>
apeiros, yeah i want the keyname to become the variable name with the value
<scalebyte>
akemrir: so finally = text_field_tag("user["profile"]["detail"][#{key}][0]", value[0]) = check_box_tag("user["profile"]["detail"][#{key}][1]", value[1])
<akemrir>
yes
<apeiros_>
jlebrech: ok then. obj.foo and obj.foo= are not variables, they are methods (which may or may not set a variable).
<apeiros_>
jlebrech: since they're methods, you can use Object#send
<jlebrech>
apeiros_:i'll check that out
<apeiros_>
e.g. with the example: attribute_name = "foo"; obj.send("#{attribute_name}=", "bar"); obj.foo # => "bar"
<scalebyte>
Unexpected error while processing request: expected Hash (got String) for param `Education'
<scalebyte>
akemrir: ^^
Squarism has joined #ruby
<akemrir>
scalebyte: this error is for line with checkbox_tag?
<scalebyte>
akemrir: listen mate
<scalebyte>
akemrir: i got it as u wanted : https://gist.github.com/1965397 the form is now like this and the error i get is
<scalebyte>
akemrir: ActiveModel::MassAssignmentSecurity::Error in UsersController#update Can't mass-assign protected attributes: profile
<scalebyte>
akemrir: so the params are reaching the server
<akemrir>
two things
<scalebyte>
akemrir: i just need to save the values now... that is where i was getting stuck initially
<scalebyte>
akemrir: yes tell me
iMe has joined #ruby
<akemrir>
1. you have string where it must be boolean --> = check_box_tag "user[profile][detail][#{key}][1]", "1", value[1] to -> = check_box_tag "user[profile][detail][#{key}][1]", 1, value[1]
<scalebyte>
akemrir: everything is getting passed to params fine..now to save the values !1
<akemrir>
2. in user model add attr_accessible :profile and accepts_nested_attributes_for :profile, :allow_destroy => true
<scalebyte>
akemrir: ok then
<akemrir>
btw you must pass integer from checkbox not string, when you put number between quotation marks, then it is string
<scalebyte>
akemrir: no mate it works.... i have put "1" in some other forms also and it works
<akemrir>
scalebyte: if you say so, leave it
<scalebyte>
akemrir: i was going wrong in the text field name with double quotes whcih is solved now
KL-7 has joined #ruby
<scalebyte>
akemrir: do i need to add attr_accessible :profile and accepts_nested_attributes_for :profile, :allow_destroy => true ?
zxiest[a] has joined #ruby
d34th4ck3r has joined #ruby
<scalebyte>
akemrir: i have already a relation with user.. user has_one profile and profile belongs_to user
<jlebrech>
apeiros_ when I try object.send i get this "undefined method `playerName=' for #<Object:0x00000106a3f8c0>"
ksinkar has joined #ruby
<scalebyte>
akemrir: the params are getting fetched appropriately.. I just need to save it form the update action of controller
<scalebyte>
akemrir: hw can I do that ? this brings us back to the firs question !1
<akemrir>
attr_accessible is for security in forms
<scalebyte>
akemrir: ok...
<apeiros_>
jlebrech: well, then
<apeiros_>
gah, accidental send
<apeiros_>
jlebrech: what you have doesn't do what you told me it would.
<scalebyte>
akemrir: how to save the params
<apeiros_>
obj.playerName = "foo" must work in order to do the same via send…
nemesit has joined #ruby
<jlebrech>
apeiros_: how is obj defined? is it obj = Object.new?
<akemrir>
scalebyte: test it now
<apeiros_>
jlebrech: errr, it's your code, you tell me…
<jlebrech>
apeiros_: I then did obj.testing = "hello"
<scalebyte>
akemrir: test it means ? when i submit i get this error : ActiveModel::MassAssignmentSecurity::Error in UsersController#update Can't mass-assign protected attributes: profile
<jlebrech>
apeiros_ I mean is that right? :)
<scalebyte>
akemrir: as it should me giving me that i need to fetch the params and save it
ksinkar_ has joined #ruby
<akemrir>
scalebyte: did you added this accepts_nested_attributes_for ??
<apeiros_>
jlebrech: Object.new will give you an object without any accessors
langbiangplaza has joined #ruby
<apeiros_>
jlebrech: so no, obj = Object.new; obj.testing = "hello" will not work, since there's no method "testing=" defined in the class Object.
<apeiros_>
jlebrech: are you coming from javascript?
kW has joined #ruby
<jlebrech>
apeiros_: is there a way to add an accessor using send
<apeiros_>
jlebrech: accessors are normal methods
<jlebrech>
apeiros_: yeah i've done some js
<apeiros_>
attr_accessor :foo is just an easier way to do: def foo; return @foo; end; def foo=(value); @foo = value; return @foo; end
<apeiros_>
jlebrech: if you want an object where you can add stuff without previously defining the accessors, then you either have to use a hash (but there with [] and []=), or an openstruct
<akemrir>
scalebyte: yes, this allows saving data for other model from one form
<jlebrech>
apeiros_: i have about 20 hashes and they come from an api, so I want to create accessors.
<apeiros_>
o = OpenStruct.new; o.foo = "bar"; o.foo # => "bar" # that works
<apeiros_>
jlebrech: define a proper class then
<apeiros_>
which defines all attributes the API can give you
<jlebrech>
apeiros_ so I have to define everything? I just want to add accessors on the fly :D
<apeiros_>
jlebrech: as said, see OpenStruct then
<jlebrech>
apeiros_ ok i'll check it out
<jlebrech>
apeiros_ so basically I was reinventing OpenStruct
<scalebyte>
akemrir: if i add that wont i have to fetch the params and save it ? will it take care of it automatically ?
<akemrir>
scalebyte: test this approach
<akemrir>
scalebyte: I must go now, I`ll be back later
<scalebyte>
akemrir: sure thanks for the help
fbernier has joined #ruby
waxjar has joined #ruby
<msch>
hi, i've got two arrays: one array ['a', 'b', 'c'] and an array of hashes [{code:'c'}, {code:'a'}]. i now want to order the second array so that it has the same order as the first array when looking at one of its keys
<msch>
apeiros_: thanks!, yeah, don't care about complexity, i've got 20 items
<apeiros_>
if you want it to scale, create a hash first: pos = Hash[ary1.each_with_index.map { |v,k| [k,v] }]
<apeiros_>
same but use pos instead of ary1
pangur has joined #ruby
<pangur>
File.open('data2.csv', 'r') do |f1|; while line = f1.gets ; print line; puts all names into the console but not into my browser.
<pangur>
Is that normal?
<pangur>
puts each line into console but does not print to browser
snearch has joined #ruby
<pangur>
The lines it puts into console are correct.
<pangur>
How can I get the console output to appear in the browser?
manojhans has joined #ruby
<pangur>
Also, the names are sent to the console only when I refresh my browser.
<pangur>
Whether I am using eclipse or netbeans, the same happens.
KL-7 has quit [#ruby]
burns180_ has joined #ruby
<pangur>
Run the program within (netbeans or eclipse). Shows me sinatra is running on 4567. Does not list names. I then refresh my browser at localhost:4567. Blank. However, back in the console, the moment I hit browser-refresh, console updates to include every line from my data2.csv.
<pangur>
I am wondering whether that is normal?
* pangur
looks mystified
* pangur
has to go away from keyboard but will be back to look for answers.
* pangur_away
is away: Gone away for now
KL-7 has joined #ruby
td123 has joined #ruby
lukas has joined #ruby
havenn has joined #ruby
becom33 has joined #ruby
<becom33>
looking for a good ruby scripting framework for a command line software :/ . need some guides
<Tasser>
becom33, what do you want to be done for you? there's highline
* becom33
anyone ?
<Tasser>
...
looopy has joined #ruby
iocor has joined #ruby
chaitanya_ has joined #ruby
elake has joined #ruby
mengu has joined #ruby
speggey_ has joined #ruby
Helius has joined #ruby
sudhi has joined #ruby
<sudhi>
Hi, I come from PHP background (not much, just 7-8months) , but I used the php.net manual pages extensively, I am sure ruby has something similar, whats the "official" URI ?
<sudhi>
Hanmac: thanks, I was looking at railsapi.com , but I just want to learn/experiment with basic ruby, so I need the standard lib/functions of ruby thats all
<sudhi>
BTW, I am on 1.9.2
<sudhi>
if you have every visited php.net , you will see that its one standard reference for whatever functions/built-in classes that PHP provides, and its official (i think) , i am looking for ruby-equivalent
<sudhi>
s/every/ever/
`brendan has joined #ruby
arturaz has joined #ruby
<Tasser>
sudhi, take a look
the_hack has joined #ruby
<Tasser>
sudhi, and I don't see where in php.net...
pac1 has joined #ruby
<sudhi>
Tasser: I meant docs.php.net ; the official docs of php
<sudhi>
anyways, I dont think it doesnt matter much as long as I stick to one ; I just downloaded the 8mb Zip from railsapi.com , so I can search/browse offline, that should suffice ?
<sudhi>
(assuming all the docs are generated via RDoc)
tayy has joined #ruby
banisterfiend has joined #ruby
xissburg has joined #ruby
<Tasser>
sudhi, I'd use yard and yard server --gems
<sudhi>
Tasser: I just wrote my first line of ruby, I am not sure if I will grok yard/gems
<Mon_Ouie>
I'd use that or ri
adman65 has joined #ruby
KL7 has joined #ruby
<sudhi>
Mon_Ouie: that ? as in yard/rubydoc.info ? and ri == rubyInterpreter ?
al3xnull has joined #ruby
<Mon_Ouie>
ri = ruby interactive
PragCypher has joined #ruby
<Mon_Ouie>
man for Ruby classes and methods
<Mon_Ouie>
And that as in "what Tasser said"
raluxgaza has joined #ruby
ph^ has joined #ruby
valli-R has joined #ruby
<sudhi>
Tasser: ohhk, how do I get started with yar/rubydoc.info ? do I need to clone the git repositories, or just browse the website (stdlib for now ofcourse)
<sudhi>
s/yar/yard/
chessguy has joined #ruby
<Tasser>
sudhi, rubydoc.info got stdlib as a special one
<Tasser>
shouldn't be too hard to find
<Tasser>
wow, my .gem is 5 GB
burns180 has joined #ruby
<Hanmac>
Tasser what have you done? :P
xissburg has joined #ruby
<banisterfiend>
Tasser: i have a 10 meg gem
<banseljaj>
Tasser: A 5 gb geM?
<sudhi>
Tasser: yes, I am on rubydoc.info/stdlib/core/1.9.2/ , but when I type gsub in the search box, I get nothing :(
<banisterfiend>
oh
<banisterfiend>
5 gig
<banisterfiend>
i cant compete with that
<Tasser>
banisterfiend, that's my gem folder
<banisterfiend>
ah
<Hanmac>
i think tasser never used cleanup
<Tasser>
I did ;-)
* banseljaj
goes to cleanup
<Hanmac>
banisterfiend: could you please check if your pry is working with slop > 3? i feel wired if have an outdated gem installed
KL-7 has joined #ruby
<Hanmac>
Tasser: whats your bigest gem?
<Tasser>
du -sh is still running
<banisterfiend>
Hanmac: we'll update it for slop 3.0 for the next release, im sure it wont work with slop 3 now
<Tasser>
it's kinda slow, I want to switch to my SSD, but first I'll have to crop stuff
chimkan has joined #ruby
<banisterfiend>
Hanmac: slop 3 is a major api change, and we relied heavily on the old api in the current pry version
<banisterfiend>
Hanmac: so it's not trivial to update
<Tasser>
Hanmac, that's why the debian guys tend to say the ruby ecosystem sucks ;-)
<Hanmac>
it does a little bit ... currently it is not possible to install ruby as multiarch package
xissburg has quit [#ruby]
parsifal_ has joined #ruby
techhelp has joined #ruby
<Hanmac>
my biggest gem is gosu ... but it has ruby+c++ inside ... and yours Tasser?
<shevy>
the debian guys suck
theoros has joined #ruby
<shevy>
lazy bums
<Tasser>
Hanmac, still running
<Hanmac>
shevy: why? because hey dont want to ship ruby as one big package?
parsifal_ has quit [#ruby]
<shevy>
Hanmac no, because they cripple packages by default and offload the workload on the user
the_hack has joined #ruby
chimkan_ has joined #ruby
<shevy>
I mean that in general too, not only limited to ruby.
fr0gprince_mac has joined #ruby
<Hanmac>
hm okay, but some of the ruby guys are also suck ... i asked 62 days ago, if the paths of the ruby. and where the gems are go (and vendor ruby) chould be changed, so someone (like me) could package ruby as multiarch package so i chould install both the lib32 and the lib64 version ... until now i dont get an answer ...
ezkl has joined #ruby
sohocoke has joined #ruby
<shevy>
what is required for a multiarch package? just different library paths?
<Tasser>
Hanmac, a lot of gems are like 50 MB
<Tasser>
yard probably?
wyhaines has joined #ruby
<Tasser>
48M./stringex-1.3.0/.yardoc
<Tasser>
wtf ...
<ezkl>
Working on a gem (https://github.com/ezkl/sniffles) and can't figure out why a local install via Bundler's gemtasks works, but not if I release to Rubygems and install. Specs pass locally and on Travis. I are confused. Anyone feel like lending me a fresh set of eyes?
<shevy>
ezkl, I dont have any real experience with bundler but always when I tried, it failed for me so I gave up on it
<shevy>
Hanmac did you issue at bugs.ruby-lang.org too? most of the guys there dont read the mailing list, and normal users wont reply to such a narrow and specific topic at hand :)
<ezkl>
shevy: Hmm. I've used it quite a bit and never had this issue before. I did a serious overhaul of the library over the course of the night and am sure it is something really, really simple that I'm missing.
<shevy>
the /usr/lib/ruby/ contains directories: 1.8/ gems/ site_ruby/ vendor_ruby/
<Hanmac>
hm i can try it at bugs
arturaz has joined #ruby
<shevy>
there is a problem I think
<shevy>
the /usr/lib/libruby(version)
<shevy>
that dir does not exist right now
<shevy>
hmm what exists is /usr/lib/ruby/1.8
seanstickle has joined #ruby
<shevy>
and 1.9.1/ in ruby 1.9.x
<shevy>
btw what madness is this to call it 1.9.1 when the real ruby version changes?
<Tasser>
shevy, no idea
Rishi_ has joined #ruby
johndbritton has joined #ruby
<Hanmac>
shevy /usr/lib/ruby/(version) works too, an /(arch)/ is added bewteen lib and ruby
<shevy>
ok so for example
<shevy>
one would have /usr/lib/lib64/ruby/1.9.1
<shevy>
one would have /usr/lib/lib32/ruby/1.9.1
<shevy>
?
nachtwandler has joined #ruby
libertyp1ime has joined #ruby
<Hanmac>
no valid arch are "x86_64-linux-gnu" and "i386-linux-gnu" (for my pc)
<shevy>
ewww
<shevy>
that's like 50% of the name hehehe
<shevy>
hmm /usr/lib/x86_64-linux-gnu/ruby/1.9.1
iamjarvo has joined #ruby
<shevy>
and /usr/lib/i386-linux-gnu/ruby/1.9.1
<shevy>
I'd issue at bugs.ruby-lang anyway just because I am curious what they will say :)
davidpk has joined #ruby
francisfish has joined #ruby
<JNZ>
Is there a commonly accepted tutorial for learning Ruby if you already have a background in programming?
<JNZ>
Aside from the "Ruby in 20 minutes" thing.
<JNZ>
I'm mostly looking for something that shows the sort of... "Ruby way" to do things. I don't want to code C# in Ruby after all.
delinquentme has joined #ruby
<ekaleidox>
ive got a good url, lemme dig it up
<delinquentme>
print chunk unless chunk =~ />416.+Range/ ... whats going on here ... specifically the chunk operator and that crazy value
<jlebrech>
tryruby.org
francisfish has joined #ruby
<delinquentme>
what is going on here ? ( question mark )
<dominikh>
delinquentme: "chunk operator"? chunk probably is a variable or method. and all it does is check if the value of chunk matches that regexp, print it
<JNZ>
Thanks ekaleidox :)
<delinquentme>
chunk =~ thats an operator right
<dominikh>
=~ is.
<dominikh>
chunk is just a name
<delinquentme>
ok cool .. i've never seen regexs used like that
akem has joined #ruby
<davidpk>
delinquentme: it's a pretty common Perl idiom which made its way to Ruby
<shevy>
JNZ chris pine learn to program. ignore the title, it's good
burns180_ has joined #ruby
<JNZ>
shevy: Another thing to drop into my Ruby bookmarks folder then.
<JNZ>
Thank'ee
<shevy>
yeah it has a different style. poignant guide was creative but it also confused me back then.
Sailias|work has joined #ruby
<JNZ>
I decided I needed a tutorial when I found that integers supported seemingly arbitrary precision but floating point numbers did not :p
snip_it has joined #ruby
zomgbie has joined #ruby
<davidpk>
JNZ: yeah, it's like in most Lisps: we have bigints but not arbitrary-precision floats
<davidpk>
i believe one can get gems/libs for arbitrary precision floats but personally i've never needed them
<JNZ>
It wouldn't surprise me if there was a way to tie into libgmp
<Mon_Ouie>
Also, are you *sure* you want to use @@class_variables, as opposed to class-level @variables?
<Mon_Ouie>
The former are shared with subclasses
<parsifal_>
humm.. I think so
<parsifal_>
I'm storing proxy information, and login credentials
<parsifal_>
but there will be subclasses that access specific resources
<parsifal_>
and I'm bootstrapping the class with that informatoin
<parsifal_>
*information
cuci has joined #ruby
<Mon_Ouie>
And if a subclass sets the class variable to something, should it change the value for all of the other classes?
fayimora has joined #ruby
<Mon_Ouie>
Because that's what will happen
<parsifal_>
yeah
<parsifal_>
I don't think it'll ever happen
albemuth has joined #ruby
<shevy>
@@vars stink
<parsifal_>
I'm open to suggestions
<shevy>
well you can use them
mikespokefire has joined #ruby
<shevy>
I did too, did not work for me, I decided to avoid them
pantsman has joined #ruby
<parsifal_>
no I mean honestly, I'm no ruby expert
<shevy>
the hard part is the thinking, not necessarily the implementation
<parsifal_>
okay :)
<shevy>
if you really think that using @@foo is the way to go then that's ok
yoklov has joined #ruby
<shevy>
to me, @@class vars are crippled global variables residing in a namespace
DamienDeVille has joined #ruby
syamajala has joined #ruby
<cuci>
hi guys! I'm trying to make a Rock-paper-scissors game like so:https://gist.github.com/1966766, but running rps_tournament_winner for:[[[["Armando", "P"], ["Dave", "S"]], [["Richard", "R"], ["Michael", "S"]]], [[["Allen", "S"], ["Omer", "P"]], [["David", "R"], ["Richard", "P"]]]]
* Hanmac
never used $globalvariables ... but when he do, he used them virtualy
<shevy>
or perhaps you are using it, I am not sure, your code confuses me cuci ;)
<shevy>
scalebyte looks damn complicated, isn't that rails stuff?
<shevy>
one would need to understand the rails ecosystem to make sense of that
<scalebyte>
shevy: some how help me i dead tired...
<mikespokefire>
scalebyte you might be better asking that one in #RubyOnRails ;-)
<scalebyte>
mikespokefire: I am banned there
ceej has joined #ruby
<mikespokefire>
o.O
<scalebyte>
neeeed help....................
<scalebyte>
mikespokefire: can u ask this q behalf of me in the #rubyonrails room ?
<JNZ>
I don't think they would like that.
<mikespokefire>
scalebyte sadly no, I'm not a go between
<scalebyte>
mikespokefire: :( ok
<scalebyte>
somebody wana try helping me ?
<jlebrech>
i've been using abort ... .to_yaml a lot, is there a better way to debug my code similar to abort?
<JNZ>
Is there a way to create an array with a range of values, like 1 .. 32?
Jragon has joined #ruby
<Jragon>
Hi!
<JNZ>
I would've expected to be able to do: x = [1..32] or something to that effect.
<Jragon>
I've just started out, and I have the basics down, but I need something to test out my 'skils' something to ferther my 'skills'...
<Jragon>
Any ideaS?
<dominikh>
Jragon: (1..32).to_a or [*1..32]
<dominikh>
sorry, wrong person
<dominikh>
JNZ: ^
<JNZ>
I imagine that (1..32).to_a is the more accepted way
<shevy>
Jragon write a ruby script or start a project that is useful to you. something that I still do a lot is to check user input against a set of actions
<mvangala_>
can anyone tell how I can go add attribute_name_history please?
jetblack has joined #ruby
<mvangala_>
foo.bar = 1; foo.bar = 2; p foo.bar_history # should give me [nil, 1, 2]
albemuth has joined #ruby
<ekaleidox>
i dont think it works that way
<mvangala_>
seems like we can add to class Class?
<mvangala_>
can you please check the pastebin code I posted?
nemesit has joined #ruby
mikeycgto has joined #ruby
mikeycgto has joined #ruby
cool has joined #ruby
<cool>
Hello everyone!
wroathe has joined #ruby
KL-7 has joined #ruby
omry_ has joined #ruby
iocor has joined #ruby
glacius has joined #ruby
burns180_ has joined #ruby
wallerdev has joined #ruby
fareko has joined #ruby
chaitanya_ has joined #ruby
omry_ has joined #ruby
rippa has joined #ruby
IAD has joined #ruby
srp_ has joined #ruby
jgrevich has joined #ruby
KL-7 has joined #ruby
fayimora has joined #ruby
davidpk has joined #ruby
al3xnull has joined #ruby
ZachBeta has joined #ruby
nemesit has joined #ruby
zakwilson has joined #ruby
glosoli has joined #ruby
wroathe has joined #ruby
<pangur>
Run the program within (netbeans or eclipse). Shows me sinatra is running on 4567. Does not list names. I then refresh my browser at localhost:4567. Blank. However, back in the console, the moment I hit browser-refresh, console updates to include every line from my data2.csv.
<pangur>
File.open('data2.csv', 'r') do |f1|; while line = f1.gets ; print line; puts all names into the console but not into my browser.
<Tasser>
I suppose I can't cast classes in ruby ^^
pantsman has joined #ruby
pantsman has joined #ruby
looopy has joined #ruby
burns180 has joined #ruby
Guest__ has joined #ruby
ryannielson has joined #ruby
jetblack has joined #ruby
tatsuya__ has joined #ruby
PragCypher has joined #ruby
zakwilson has joined #ruby
<Mon_Ouie>
pangur: It's not supposed to output anything in the browser
<Mon_Ouie>
(Or rather, in the returned web page)
wmoxam has joined #ruby
<Mon_Ouie>
The block you passed to get returned nil, so it outputs… nothing
<Mon_Ouie>
You're supposed to return what you want to be the output
<pangur>
thanks Mon_Ouie - I am also asking in Sinatra - :)
dql has joined #ruby
dhruvasagar has joined #ruby
zomgbie has joined #ruby
speggey_ has joined #ruby
Seisatsu has joined #ruby
vraa_ has joined #ruby
speggey_ has quit [#ruby]
yeggeps has joined #ruby
bragh has joined #ruby
mohsin^ has joined #ruby
burns180_ has joined #ruby
nixmaniack has joined #ruby
shruggar has joined #ruby
<mohsin^>
hi .. this is my first day of ruby .. and I need some help.
sacarlson has joined #ruby
ZachBeta has joined #ruby
<arturaz>
shoot
<mohsin^>
string.gsub!("[[:punct:]]", "")
Legato has joined #ruby
sonkei has joined #ruby
<mohsin^>
this is supposed to remove punctuations .. but sets the string to "1"
<mohsin^>
the string has one exclamation mark
<rippa>
that's not a regex
akemrir has quit [#ruby]
zomgbie has joined #ruby
the_hack has joined #ruby
sohocoke has joined #ruby
<mohsin^>
thanks rippa .. got it .. it should be string.gsub!(/[[:punct:]]/, "")
pattersonc has joined #ruby
<frontendloader>
is it just me or is a lot of activerecord's niceness and ease of use tied to rails?
<frontendloader>
I was about to use it for a non-rails project, but I'm disappointed migrations and schema creation has to be done by hand
Legato_ has joined #ruby
dbgster has joined #ruby
sako has joined #ruby
<shevy>
frontendloader yeah it is a viral ecosystem
philips has joined #ruby
<frontendloader>
I feel like rails has swallowed ruby whole :(
Jambato has joined #ruby
the_hack has joined #ruby
wallerdev has joined #ruby
<yxhuvud>
it is better now than a few years back. At least there are other big competing projects nowadays
<yxhuvud>
or maybe not necessarily competing, liek puppet/chef.
burns180 has joined #ruby
<pangur>
Can anything in ruby compete with the mighty Rails?
<any-key>
rails is ruby
<Hanmac>
pangur, everyting i wrote in ruby looks better then rails :P
<any-key>
it's all just one big ruby, mayne
<shevy>
hehe Hanmac
<shevy>
frontendloader I dunno, I never used ruby because of rails. And if rails vanishes I won't notice personally either
<shevy>
though I want a simpler language
<any-key>
I started my ruby career as an intern at a small rails shop...then I started using ruby to do everything
<any-key>
and it has become my hammer
<any-key>
square peg? round hole? ruby.
<any-key>
*smashsmashsmash*
<shevy>
the longer I use ruby, the less features I use
<any-key>
I've found gems to help me do anything; generating excel spreadsheets? there's a gem for that
BrianE has joined #ruby
compcube has joined #ruby
<any-key>
for a project I'm working on I'm using ruby to process accelerometer data and talk to a transceiver...
<frontendloader>
python's still my hammer
<arturaz>
frontendloader, just use ActiveRecord::Migration
<arturaz>
or smth
<arturaz>
like thah
<arturaz>
like that
<pangur>
I cannot get ruby to show http://fpaste.org/dF8L/ onscreen. Rather it offers it to me as a download!
<any-key>
heh, last time I worked with CSV files and the internet I had the opposite problem
<any-key>
depends on the way the web server serves it up; the mime type, etc
Nisstyre has joined #ruby
<pangur>
I have tried netbeans and eclipse (internal browsers), opera and chrome.
<shevy>
frontendloader what I dont like about python is explicit self
<pangur>
python is happy enough dealing with csv files.
<any-key>
pangur: it doesn't matter; they all see the server say "yo, download this csv file, it ain't text"
<frontendloader>
what you mean def classfunc(self, a, b): ?
<any-key>
fasterCSV is awesome
<shevy>
frontendloader yeah
<pangur>
any-key: if refusing to show csv files on screen is awesome ... grr
<frontendloader>
there are occasions when you don't want to pass in self too
<frontendloader>
local class methods for simple operations that operate on only a small portion of the class
<any-key>
pangur: it is the web server telling the browser the wrong content type
zakwilson has joined #ruby
<any-key>
pangur: if you're working on this in the sinatra dev environment I'd suggest googling around for config settings for the server
<frontendloader>
I've never been one to dislike any language based on syntax, except perl. I only use python as a hammer out of experience.
<shevy>
frontendloader, what I mean is not whether there is a need to pass self or not but that I don't think in an OOP centric language an object should stay dumb and not know about itself
<pangur>
thnaks any-key.
<any-key>
Ruby and Python are great because they mix all my favorite programming paradigms
<shevy>
I want a merger :(
<any-key>
and aren't verbose as fuck (I'm looking at you, Java)
chimkan has joined #ruby
<any-key>
Ruby has an amazing balance between procedural, functional, and imperative programming and some OOP thrown in
<shevy>
does not seem as if anyone wants to create a new general purpose scripting language anymore
<frontendloader>
there's a lot of work being done with javascript "compilers"
<frontendloader>
like coffeescript for one
baroquebobcat has joined #ruby
<any-key>
shevy: I doooo!
<any-key>
tons of people love 'em, especially for web shits
<pangur>
I saw a gem called rubypython or pythonruby - cannot rember which - that seemed like a good idea to me. Got rid of all the "ends".
<shevy>
yeah but coffeescript is only a wrapper around javascript
<pangur>
"end"s even.
<frontendloader>
js as a general purpose scripting language seems to be on the rise
<shevy>
pangur that I would like to be able to use, within a .rb file
<pangur>
Unfortunately, it does not seem to be maintained
<any-key>
js is a shit language
<any-key>
there, I said it.
<shevy>
it is true. it is also more popular than ruby on github
<yxhuvud>
not really. I suggest you look up what the get method should return.
<pangur>
data2.csv consists of 61 lines of 6 elements each.
<pangur>
Where would I look that up, yxhuvud?
<pangur>
I expect it to return an array
<yxhuvud>
well, here is a hint: it is probably not an array of arrays which is what I'd guess your CSV parsing returns
albemuth has joined #ruby
yeggeps has joined #ruby
<pangur>
I do not think that it is an array of arrays but 366 csv elements, broken into 61 lines. I do not think that that makes it an array of arrays from a ruby point of view?
<Hanmac>
hm i think i does ... but get does not want an array :P (or array of array)
<pangur>
It does not have [] as bookend at the start and finish of each line or text in quotes.
centr0 has joined #ruby
<pangur>
So, how could I turn it into something that sinatra would accept?
* pangur
has ruby 1.9 agile library book by his bedside
<shevy>
:P
etank has joined #ruby
<Hanmac>
and have you looked in this book?
<shevy>
it sounds crappy anyway
etank has joined #ruby
<shevy>
good for a fire though
<pangur>
I have but it does not give very many examples - more copious lists of what many many functions do.
<pangur>
I started off with rails and wanted to get back to basic ruby.
<pangur>
It was rails that drew me to ruby.
<Hanmac>
shevy wasnt it you that said if someone first use rails and then try ruby they will fail?
<pangur>
I realised that I did not know much about ruby, so thought I would learn by using what I thought would be very straightforward easy examples :)
chimkan__ has joined #ruby
<pangur>
That's encouraging, Hanmac :)
<shevy>
Hanmac I dont think I said that hmm, trying to remember
<shevy>
sounds a little bit too general to be valid for me. after all there are quite many out there who learned both rails and ruby properly
<pangur>
At first, I did not think that I needed to know much about ruby to do rails but then I realised that ruby was something that I should get the hang of in its own right. So far, Hanmac/shevy are right :)
n3m has joined #ruby
<pangur>
I learned a bit of python and found it very good for doing the sort of simple things that I wanted to do with csv files etc. but I wanted to be able to the same stuff in ruby without having to ask in here every step of the way.
Russell^^ has joined #ruby
<pangur>
However, I have spent rather a large amount of time on getting names to appear in my browser :)
PragCypher has joined #ruby
chimkan__ has joined #ruby
<pangur>
If I remove return patron.display, I get "undefined method `bytesize' "
<pangur>
So, I need to keep "return patron.display"
Dreamer3 has joined #ruby
minsa has joined #ruby
Dreamer3 has joined #ruby
chimkan__ has joined #ruby
havenn has joined #ruby
Dreamer3 has joined #ruby
fayimora has joined #ruby
<arturaz>
pangur, my suggestion would be to learn some of the lang and framework first, instead of just poking around randomly
<axisys>
LoadError: no such file to load -- universal_ruby_whois from (irb):1:in `require'
Vendethiel has joined #ruby
zomgbie has joined #ruby
<Testmongrel>
I'm developing a rather large web project, and have been debating on which framework makes the most sense to use. I've been debating between Yii vs. Ruby on Rails.. I'm planning on hiring a developer to code it for me, but am concerned if there is turnover and the developer were to leave, i want to ensure that the development can continue without much delay.
PragCypher has joined #ruby
<Testmongrel>
From my understanding Yii community is extremely small as compared to Ruby... wanted to see what you guys thought about whether my concern is valid...
<axisys>
not available.. might be some ubuntu pkg missing.. let me look.. thanks
shruggar has joined #ruby
havenn has joined #ruby
mohsin^ has joined #ruby
<shevy>
test in irb
<shevy>
also gem install activesupport
<shevy>
and before requiring that gem do require 'rubygems'
badabim has joined #ruby
<Testmongrel>
anyone can help me - any advice appreciated.. on whether my concern above is valid or not.. not sure if going with Ror or Yii with my development project and if turnover occurs, which route would be a safer option
<shevy>
Testmongrel it always depends on the code quality I would say and whether there was documention
<Testmongrel>
shevy: thx for the response
<mohsin^>
hi .. sorry to bother again .. I am trying to chain gsub like string.downcase!.gsub(/[[:punct:]]|\W/, "")
<Testmongrel>
assuming all programmers hired were of great quality
<shevy>
I myself have been using ruby since almost 8 years. without rails so I could not really dig into a codebase that is rails-centric. whereas if it were ruby-centric I dont think I'd have any problem, if the quality is good to start with
sythe has joined #ruby
<shevy>
Testmongrel, nono, what they produce must be of great quality ;)
<shevy>
80% of the software out there stinks
<mohsin^>
how can i avoid the case when gsub returns nil ?
<Testmongrel>
yes deefinitely
<Testmongrel>
my problem... what i'jm stuck with is choosing a framework that will minimize the risk of the "i depended on that guy".. "that guy bailed on the project".. "what do i do now?" type of feeling.. i just want to reduce risk of turnover
<Testmongrel>
aned ensure the framework chosen is a good one
<shevy>
well rails is big
<Testmongrel>
i narrowed it down to yii and ror.... only to find that ror have 10X the developers of Yii
<mohsin^>
ezkl, how should i go about it ? separate lines with if conditions ?
<axisys>
ezkl: ubuntu might find that whois over ubuntu whois ?
burns180_ has joined #ruby
badabim has joined #ruby
<ezkl>
axisys: Oh, didn't realize that was the problem you're trying to solve. I belive its executable installs as ruby-whois = You could symlink it to /usr/local/bin/whois and make sure /usr/local/bin is ahead of /bin/whois in $PATH
<Testmongrel>
hark o hark.. i wish i knew what to do - RoR or Yii - which is the better option to minimize turnover risk =9
<Testmongrel>
=(
drbawb has joined #ruby
<ezkl>
axisys: That'll probably break something, but it'd be an easy fix.
<shevy>
Testmongrel well make a little list on paper with a SWOT analysis (strength, weaknesses, opportunities, threats) comparing yii and RoR
<RubyPanther>
Testmongrel: it doesn't matter except that in one case you'll have Ruby devs, in the other PHP.
<ezkl>
mohsin^: You could do that or break it out into separate methods, or lots of options. Whatever works for you.
<RubyPanther>
If turnover is a risk has to do more with the devs you hire and if they follow "best practices" than what framework you choose
lkba has joined #ruby
techhelp has joined #ruby
havenn has joined #ruby
<Testmongrel>
oh ok
<Testmongrel>
yeah that part was confusing to me
<Testmongrel>
rubypanther thanks for the response
<Testmongrel>
i just wasn't sure whether i would inherently have turnover risk disadvnatages.. thus pidgen holding myself if i used yii over ror
<ezkl>
axisys: `sudo gem update --system` Looks like it requires a newer version of rubygems than you're running.
<Testmongrel>
because if i had hired someone that knew lets' say Framework X where the community fo Framework X is small.. then if developer left my stranded.. finding someone else to coming and resume might be hard.. and if that person was a great developer and then had to learn framework X and it took him 1 year to do it.. my project would be dead
<shevy>
they HATE if someone is trying to take control away from them
<shevy>
"gem update --system is disabled on Debian, because you are our slave now"
<axisys>
ezkl: i thought that was for different version of ruby.. did not know also apply to rubygems
seanstickle has joined #ruby
<axisys>
shevy: :-)
<Testmongrel>
rubypanther o rubypanther where art thou
<RubyPanther>
Testmongrel: only the worst bottom of the barrel devs are restricted to a framework. Normally it is more divided by language. If it is a PHP framework, any decent PHP dev should be able to help you
<ezkl>
axisys: I'd look at it more as a way to have more control over Ruby than anything else.
<Testmongrel>
o cool - there you are
<Testmongrel>
got it
<shevy>
what I like about RubyPanther is that he speaks of an idealized, perfect world :)
<Testmongrel>
when i searched elance odesk freelancer.. searched yii vs. ruby on rails... i think you're saying i was searching the wrong thing..
<Testmongrel>
perhaps my logic error was focusing
<RubyPanther>
I do not have a synchronous network interface
<Testmongrel>
on the fact thtat the framework itself has the power to pidgeon hole
ph^ has joined #ruby
<Testmongrel>
when in fact per your suggestion it doesnt'
<ezkl>
axisys: It doesn't require you to uninstall your system's ruby if you've got other packages that depend on it. Just make sure you read the documentation.
<Testmongrel>
it's based on knowledge of the overall knowledge of the base language
<Testmongrel>
not the framewrok
<RubyPanther>
shevy: yeah in the real world people hire whichever idiot is cheaper, and you have to hope they've already written the exact same site for somebody else before so that they finish it this time
<Testmongrel>
i don't want cheap
<Testmongrel>
i've been there and it stinks
<Testmongrel>
bad
<Testmongrel>
i just want to get the job done right and be able to have risk measurement in place to have people be able to jump in as needed
<Testmongrel>
in case some extremities occur
<Testmongrel>
turnover.. isn't my friend
<Testmongrel>
i hope it doesn't have to do with management style =)
davidpk has joined #ruby
<RubyPanther>
Testmongrel: the only way you're going to have that is if you follow the modern "Agile" software design model.
<shevy>
hehe
<Testmongrel>
ok i shall
<RubyPanther>
That is what they are teaching in schools now for "software as a service" which is what any web framework is
<Testmongrel>
i'm planning on having er diagrams, use case, role diagrams, everyu possible piece of documentation yuou could ijmagine to minimize turnover risk
<RubyPanther>
waterfall works fine... if you hire the right engineer and don't have turnover. Agile is more flexible.
<Testmongrel>
high level architecture.. more documentation the better that is my motto
<Testmongrel>
i'll tell people i'm agile to sound like i know what i'm doing
<Testmongrel>
but insead.. i'm super waterfall... more than tlc in fact
<shevy>
documentation is important
philips has joined #ruby
<shevy>
(I include specification as part of documentation too)
<Testmongrel>
i use a prototype now
<RubyPanther>
Testmongrel: by modern theory having too much up-front design will increase the burden of turnover, instead you want design as tests in code and to incrementally improve an always-working prototype
<Testmongrel>
i hate wireframes
<Testmongrel>
rubypanther.. but concern is
<Testmongrel>
prototype isn't broken out to with best visibility as to what is to come in future phases
<RubyPanther>
That is is always functioning is what protects against turnover
<Testmongrel>
build out could cause features that will be totally revamped or eliminated.. thus wasted effort
<Testmongrel>
this is another struggle i've had
<Testmongrel>
people say agile is great.. just work incrementalky... but does this mean the "increment" should mean that the stakeholder does not have a blueprint of future features
<Testmongrel>
such that current feature implemetnation will not be altered so dramatically as to render prior work as wasted?
cantonic has joined #ruby
<RubyPanther>
Testmongrel: it is the opposite effect, because you're not invested in a feature being exactly a certain way, you don't have as much wasted effort when small changes are made.
<shevy>
well, is it really wasted?
<shevy>
if it worked as intended at one point, it surely has some worth in itself
<Testmongrel>
yes makes sense
<RubyPanther>
Each change is encapsulated by having to get finished before the next change has a chance to be added, so you can manage that by changing or not changing and you only have as much waste as you had change, instead of the amount of change * the amount of design documentation
<RubyPanther>
and the documentation changes are encapsulated together with (before!) the code changes
<shevy>
I am rewriting a project that has around 100 .rb files plus some data. the most important change I did today was however that I changed one specification (I made that part more logical), and now I can just follow that specification and implement the new code logic according to it, which makes it a lot easier than the old way I used to deal with that class (which had a specification that did not make 100% sen
<shevy>
se, had wrong interdepdenencies within etc..)
<RubyPanther>
so you still have the important part of waterfall... planing and documenting before implementing
<Testmongrel>
yeah i have that part
<Testmongrel>
i know what you mean
<Testmongrel>
in temws of full time spent documenting.. then realizing as you develop a feawture in initial phases can cause huge changes in documentation
<Testmongrel>
meaning a lot of wasted effort
<Testmongrel>
and wasted time
<Testmongrel>
by using a full waterfall approach
albemuth has joined #ruby
<shevy>
well in the beginning you can always just get a prototype out as quickly as possible and not care about documentation that much
<Testmongrel>
yeah shevy that's what i'm doing...
<Testmongrel>
maybe i don't know what the definition of prototype versus documentation is
<Testmongrel>
my prototype has build in annotations
<Testmongrel>
and has an accompanying glossary
<Testmongrel>
for terms
<Testmongrel>
that may be unfamiliar to the developer
wmoxam has joined #ruby
<Testmongrel>
to define the steps associated with certain features
manuel_ has joined #ruby
<Testmongrel>
that wouldn't make sense and would add too much clutter if place in the prototype
mdw has joined #ruby
<Testmongrel>
i created this prototype in full
<Testmongrel>
so i can understand the high level of the project
<Testmongrel>
is agile such that the entire prototyep should never be created?
<Testmongrel>
and only bits and pieces done at on etime?
<ezkl>
shevy: "well, is it really wasted?" - Different, arguably mutually exclusive perspectives on that very question have kept managers and engineers at odds since the beginning of days.
<Testmongrel>
such that you reallky never have an overall idea
burns180 has joined #ruby
<Testmongrel>
yeah i don't get it.. sorry guys
<Testmongrel>
i'm bad at this
lapinferoce has joined #ruby
<Testmongrel>
and am hoping to get better
<Testmongrel>
.. funny thing is as if i had only done bits and pieces
etank has joined #ruby
<Testmongrel>
without going through the entire prototype
<Testmongrel>
i realized i missed a lot of stuff that was supposed to be done in the prior parts
<Testmongrel>
and then i have a higher risk of being screwed.. because i created a feature a certain way.. only to realize it should have been done differently after flushing out the rest of the project
<Testmongrel>
hehe i'm writing a book here
<Testmongrel>
sorry for taking over the chat room guys
<Testmongrel>
i apologize to everyone here for this unmarked behavior
<Testmongrel>
and my mass uage of words that fill this chat room to the brim of destruction
ryanf has joined #ruby
startling has joined #ruby
chimkan_ has joined #ruby
<mohsin^>
Testmongrel . . I hope you feel better after venting :)
<Testmongrel>
haha no i feel bad
<Testmongrel>
i am sobbing
<Testmongrel>
because of my pain
<Testmongrel>
... =---(
<Testmongrel>
and wish there was a pill i could swallow to enlighten me of the knowledge of agile developers
<Testmongrel>
and cast away these fears and insecurities which i hold so deep
JNZ has joined #ruby
<RubyPanther>
I don't actually use agile except when I have to, but it is an effective system and it is being broadly taught enough so that you'll have people available who are used to it for a generation at least
wyhaines has joined #ruby
JNZ has joined #ruby
<ezkl>
Testmongrel: I'd focus on pinning down a minimum viable product (http://en.wikipedia.org/wiki/Minimum_viable_product) and identifying engineers that you trust. I'd argue that framework decisions are entirely an engineering question. By enforcing that sort of decision before the engineering process has even begun to take place probably isn't prudent and is likely a waste of your time and energy.
<Testmongrel>
RubyPanther: can you teach me those ways?
<Testmongrel>
.. i don't get this part either... my concern is if i let someone choose the framework
<Testmongrel>
they will most likely just chooose what they are familiar with
<Testmongrel>
... hmm.... i guess my problem mainly comes down to finding a good developer
<Testmongrel>
because if i have a good developer
<Testmongrel>
they are probably usihng a good framework by default
<Testmongrel>
thus my issue is at the developer end not the framework end
td123 has joined #ruby
<Testmongrel>
because as you guys jmenitoned (props to ruby panther).. that it's nor eally dependent on the framework or language really
<Testmongrel>
mainly just finding a good deeveloper that knows his stuff
<Testmongrel>
.. guys do you know how i can do this?
<RubyPanther>
or, a good developer might be effective even with a sucky framework and not bother to switch to better tools
sabooky has joined #ruby
<Testmongrel>
oh yeah
<Testmongrel>
i didn't think of that one =)
<Testmongrel>
tou-shay my friend
yeggeps has joined #ruby
<ezkl>
It's all very subjective.
<Testmongrel>
the good developer could be used to using a bad framework
<Testmongrel>
it would be liike him tryingt to drag race with a geo metro
<Testmongrel>
'93 edition. the one that has no aerodynamic body, front flaps that restrict air flow, and other features i am making up on the fly because i dont' know what a geo metro has
<Testmongrel>
but i would guess a good developer would have a higher chance3 at using a more efficient framework than a bad developer
<Testmongrel>
problem is.. how do i find a good develloper
<Testmongrel>
there is some cool websites out there
<wmoxam>
if they are good they'll want to use something effective
<Testmongrel>
yeah that's what i was thikning too wnoxam
<RubyPanther>
The problem is, you need to be a good software engineer to choose a good framework, but these days software engineering is downplayed and is no longer considered an essential skills... meaning that the project manager then instead has to at least be a good enough software engineer to make effective high level decisions like frameworks
<Testmongrel>
they have these cool sites where you can input programming questions in
<ezkl>
axisys: https://rvm.beginrescueend.com/rvm/install/ - install system requirements and a new version of Ruby. Tell RVM to use that version of Ruby rather than system Ruby.
<Testmongrel>
ruby that's true.. that' what screwed me up.. i don't know programmiong and i'm here trying to find programmers.. seems like a catch 22 and kmy chances of finding someone good are slim
<RubyPanther>
Yep. This is why project managers make more money than developers...
<Testmongrel>
they have some cool websites that let you input questions in there.. aned then you can test candidates to see how good their programmiong is.. it actually lets these programmers input code and i can have someone review it
JNZ has joined #ruby
<Testmongrel>
as pdiddy said with bad boy: it's all about the developers baby... but he called the developers by a weird name he used "benjamin" insteaed
<Testmongrel>
dunno why
<Testmongrel>
ruby: i was thinking about using those websites
<Testmongrel>
plug in some scenarios to
<Testmongrel>
test these guys
<RubyPanther>
Typically you would find one good dev with a decent engineering mindset that you're sure isn't going to leave, who has a stake in the project, and then they can set things up under them so everybody else is expendable
<Testmongrel>
and see whos hot and whos not
<Testmongrel>
yeah unfortuantely id ont' know anyone that is a good developer
<Testmongrel>
thus need ot hire
<Testmongrel>
i want to give a stake
<Testmongrel>
but not at start
<Testmongrel>
need to build trust
<Testmongrel>
and then give stake
<Testmongrel>
or i would just buy my own stake back
<Testmongrel>
every time there is turnover
<Testmongrel>
which would suck
<Testmongrel>
because it's happened to people i know and it isn't good... premature equity turnover.. i wish i hada good friend that was interested in what i'm doing that was a great programmer, and would work with me and take som e eequity and would never leave until the business is dead or needs resuscitation or is on life support
<Testmongrel>
... but i don't =---(
<Testmongrel>
so i end up having to hire guys and filter them out..
<Testmongrel>
do you guys have any suggestions on what might be good ways to filter out these developers?
<Testmongrel>
i have personality tests, quiz questions (actual programming ones.. not multiple choice)
<RubyPanther>
lol
<Testmongrel>
and also interview with a hired hand that helps me do the technical interviews
<RubyPanther>
If they're not crazy enough, they probably suck
<Testmongrel>
ruby:.. i should add a mental disorder teest?
nachtwandler has joined #ruby
<Testmongrel>
1,. do you have major emotion upswings/downswings? Rate on scale of 1-10
<Testmongrel>
how should i determine craziness factor?
<RubyPanther>
Yeah, the more tolerance you have for weird personalities, the more competent developer you can tolerate... so really first you need to test yourself
<Testmongrel>
i'm pretty bad
<Testmongrel>
i have no tolerance
<Testmongrel>
but i can try and improve
<Testmongrel>
my intention with all these filters is to nudify these developers and take a glimpse into their mind, aned see what i can find, and determine whether if i find is something good or not
<Testmongrel>
ruby: what should i do?
<RubyPanther>
like the craziest Rubyist ever, _why the lucky stiff, his code is so good I can take a C extension he wrote over 5 years ago and compile it against a new Ruby version, and it already works without porting. But also he would blog code as images forcing people to type it in instead of pasting...
odinswand has joined #ruby
<Testmongrel>
oh
<Testmongrel>
.. that is hard to do with a simple quiz
<Testmongrel>
determination of that involves heavy research
<Testmongrel>
and background checking to see what that guy has done
<Testmongrel>
.. but i can easily see how many extensions someone has created
<Testmongrel>
i have used that as a filter before
<Testmongrel>
as well as how many posts they have on a forum
<Testmongrel>
to determine if the guy knows his stufff or not
<Testmongrel>
. i have had very very bad expereince using freelancer, elance, odesk, etc.
<Testmongrel>
get a lot of random stuff and hired people that really turned out bad
<Testmongrel>
... or it could be that i'm a bad managuer
<Testmongrel>
but in my world i prefer to blame it on them
<RubyPanther>
That is hard to judge by unless you know what you're looking for and put a lot of time into it... did they actually create that project, or were they just a helper?
<Testmongrel>
nope they were supposed to create the entire web project
io_syl has joined #ruby
<Testmongrel>
but failed miserabley and when they couldn't meet requirement and realized they underestimated
<Testmongrel>
they asked for more money for being late to deliver
<Testmongrel>
my favorite combination
<RubyPanther>
Really if you don't know these answers you're better off hiring a reputable consulting firm and paying through the [redacted]
yeggeps has joined #ruby
<Testmongrel>
yeah i was just thinking of finding someone that no doubt knows his stuff and asking him to create a team
<Testmongrel>
i'm not cheap
<Testmongrel>
or at least id on't think i am
<Testmongrel>
but i could be...
<Testmongrel>
i don't mind paying
<ezkl>
Testmongrel: I don't want to sound like a dick, but have you taken the personality test yourself? If I were a potential hire reading the interaction you're involved in right now, your lack of confidence in your own decision-making ability would be a pretty big red flag.
<Testmongrel>
at this point i prefer paying more actually
<Testmongrel>
ezkl: i kno i kno =).. some of it is just for fun.. i could take a personality test as well.. i don't know if i would pass
<Testmongrel>
actually since there are no failure.. everyone wins!
<Testmongrel>
no worries ezkl no offense taken.. love has been ingested
<Testmongrel>
ok guys - i think i have the magic answers that I seeked .. namely - framework not important quality of developer most important
<Testmongrel>
thanks my friends - hasta la vista - i am taking off and hopefully this time something better will come out of it
<RubyPanther>
good luck
<Testmongrel>
thx ruby, thx, ezkl, and thx to sawjig and sayakb (the latter two didn't speak but i want to thank them beccause they beared witness to the excruciating text that I had laid out to them)
<Testmongrel>
i understand the pain and apologize in advance for what you had endured during the past 30 minutes
<Testmongrel>
adios amigos
Testmongrel has quit [#ruby]
yeggeps has joined #ruby
cpruitt has joined #ruby
senthil has joined #ruby
parsifal_ has joined #ruby
parsifal_ has quit [#ruby]
hadees has joined #ruby
drbawb has joined #ruby
drbawb has joined #ruby
vaneda has joined #ruby
f13o has joined #ruby
burns180_ has joined #ruby
techhelp has joined #ruby
odinswand has joined #ruby
irocksu has joined #ruby
iszak has joined #ruby
fowl has joined #ruby
mikepack has joined #ruby
jbw_ has joined #ruby
<iszak>
Is there anyway to construct a pathname that doesn't exist?
<epitron>
that line of code was ejected from satan's cock
cobragoat has joined #ruby
<epitron>
designed to impregnate and corrupt all code it touches
<epitron>
creating hellspawn applications
<epitron>
clippy says: "it looks like you're trying to remove duplicate characters"
<epitron>
couldn't you do that with a regex? :)
yeggeps has joined #ruby
<Hanmac>
it remove, and make a list of suggestions
<epitron>
you're suggesting every single permutation of a string with a duplicate character removed?
S1kx has joined #ruby
S1kx has joined #ruby
havenn has joined #ruby
<fowl>
epitron: if we allow even one permutation to exist in our land we will LOSE IT. DO YOU UNDERSTAND ME
skipper has joined #ruby
artOfWar has joined #ruby
emmanuelux has joined #ruby
<epitron>
THIS IS PLAYING GOD
<epitron>
PERMUTATIONS ARE AGAINST NATURE
burns180_ has joined #ruby
stringoO has joined #ruby
mdw_ has joined #ruby
<shevy>
do you have two gods now
<shevy>
god and nature
albemuth has joined #ruby
<Hanmac>
ruby is the language of the devil :P
<shevy>
nah
<shevy>
that is php
<shevy>
given the amount of curses you hear from down under
vaneda has joined #ruby
<banisterfiend>
shevy: no, that's german/austrian
<banisterfiend>
:P
Ziphre has joined #ruby
<shevy>
nah
<shevy>
there are more curses in english
<dominikh>
my ass
tvw has joined #ruby
mengu has joined #ruby
priteshjain has joined #ruby
<iszak>
Anyone know of a ruby gem that they recommend for video codec/audio codec detection from a file?
<Hanmac>
japanise have the less "bad words" i know ... the only one i remember is "baka" :P
startling has quit [#ruby]
snearch has joined #ruby
undersc0re has joined #ruby
<robertjpayne>
I have a class Zwite::Compass and then there is a class Compass::Compiler getting errors trying to use Compass::Compiler inside of Zwite::Compass, is there any way to ensure it looks at module Compass first?
odinswand has joined #ruby
<shevy>
dominikh yeah that was a nasty curse
<Hanmac>
i think you want ::Compass::Compiler
<robertjpayne>
Hanmac: thank you!
burns180 has joined #ruby
looopy has joined #ruby
<regedarek>
rubyist which colorscheme in vim do you use?? if i can ask
<drmegahertz>
solarized, for the moment
<any-key>
railscasts (for vim
<any-key>
)
<any-key>
sometimes ir_black, and other times molokai
<regedarek>
is possible to setup in vim background
<heftig>
jellybeans
<any-key>
regedarek: what do you mean?
<regedarek>
hmm now i must set up background for all open terminals
<Hanmac>
its crap that eclips does not have color shemes ...
<shevy>
black white not good enough for ya?
<shevy>
I somehow could not adjust to the big IDEs
<any-key>
me neither
<any-key>
either
<shevy>
does smalltalk have an IDE?
<any-key>
heh
<shevy>
well
<shevy>
I want a ruby IDE
<any-key>
considering how big it was in the corporate world, I wouldn't be surprised
<any-key>
there's RubyMine
<shevy>
but I dont want a rails one, I dont want a vim, nor emacs things
<sarmiena_>
having a problem with httpclient-2.2.4 on ruby 1.9.3-p125. openssl's PKCS7.read_smime is raising a "malloc failed to allocate memory" exception
berserkr has joined #ruby
odinswand has joined #ruby
<cantonic>
hey guys. i need a hint. I need to write a tool for some automation on a java applet in a windows machine and want to use ruby. but i would really like to use activerecord… should I use Rails even if it is not a web application?
<cantonic>
I wouldn't even need views...
<any-key>
you can use AR without rails
<ryanf>
you can use activerecord separately from rails
<sarmiena_>
cantonic: yeah. not sure about that library or what's wrong with it. but i know it's possible
mvangala_ has joined #ruby
<cantonic>
sarmiena_: ok… maybe i should try it without migrations and create the database manually… thank you
<sarmiena_>
cantonic: you can look at the padrino framework and see what it does
<sarmiena_>
so… any ideas on my problem with httpclient-2.2.4 on ruby 1.9.3-p125. openssl's PKCS7.read_smime is raising a "malloc failed to allocate memory" exception
<cantonic>
sarmiena_: nice hint. thank you
<sarmiena_>
np
al3xnull has joined #ruby
minijupe has joined #ruby
mxweas_ has joined #ruby
mikepack has joined #ruby
<Hanmac>
sarmiena_ ... i think you need an newer ruby version ... there was an bug with ssl
<sarmiena_>
Hanmac: newer than 1.9.3-p125?
<sarmiena_>
do you have an article i can reference for this bug?
<sarmiena_>
or a ticket?
<Hanmac>
hmm no ... p125 IS the version wich should solv the problem oO
wallerdev has joined #ruby
sbanwart has joined #ruby
* Hanmac
's body is switching to hipernate
Foxandxss has joined #ruby
jergason has joined #ruby
CheeToS has joined #ruby
stringoO has joined #ruby
<glosoli>
Wunderlist app was developed using Ruby ?