<centrx>
multi_io, it's like saying >= 1.5.0 AND <= 1.6.0 (next major version)
lemur_ has quit [Remote host closed the connection]
lemur has joined #ruby
<centrx>
multi_io, as major version usually indicates backwards-incompatible changes, while minor versions indicate backwards-compatible changes
rkalfane has joined #ruby
hamakn has joined #ruby
sinkensabe has joined #ruby
jpdicosola has quit [Quit: jpdicosola]
<multi_io>
TTilus: hey, the tab completion works now :P
<multi_io>
centrx: ok I see
<Phrogz>
I thought (with little confidence) that ~> "1.5" would allow 1.5.0 - 1.5.99, but ~> "1.5.0" would only allow "1.5.0.1" and so on.
<Phrogz>
No?
toretore has quit [Quit: This computer has gone to sleep]
melik has quit [Quit: Computer has gone to sleep.]
<multi_io>
as I understand it, ~> "1.5" would allow 1.[5...infinity]
<centrx>
"The specifier ~> has a special meaning, best shown by example. ~> 2.0.3 is identical to >= 2.0.3 and < 2.1. ~> 2.1 is identical to >= 2.1 and < 3.0. ~> 2.2.beta will match prerelease versions like 2.2.beta.12.
<Phrogz>
Ah. :) Well, it works well; even moreso if you override the #class method :)
Georg3 has joined #ruby
olekenneth has quit [Ping timeout: 260 seconds]
emocakes has joined #ruby
hanjianwei has joined #ruby
pushnell has quit [Quit: pushnell]
olekenneth has joined #ruby
oleo has quit [Read error: Connection reset by peer]
oleo has joined #ruby
hmsimha has joined #ruby
chipotle has quit [Quit: cya]
a_ has quit [Ping timeout: 245 seconds]
bbloom_ has joined #ruby
snath has joined #ruby
bbloom has quit [Ping timeout: 246 seconds]
bmurt has quit []
mikepack has quit [Remote host closed the connection]
dwn has joined #ruby
<dwn>
hey, if I want to extend String to add a new in-place modification method...
<dwn>
how would my method modify the current value stored by the String
armyriad has quit [Ping timeout: 240 seconds]
<centrx>
dwn, You can extend String either by monkey-patching core String, or by creating a new class that contains (composes) a String inside, e.g. @value = str
Mon_Ouie has quit [Quit: WeeChat 1.0]
armyriad has joined #ruby
dropperbloated has quit [Ping timeout: 245 seconds]
<dwn>
yeah, I think I'm adding a def to core String
deric_skibotn has joined #ruby
<centrx>
dwn, yeah just put a library in lib/ or sometimes core_ext/
<centrx>
dwn, then require it as appropriate
<dwn>
class String \n def whatever!(val)\n # do stuff to internal val \n end \n end
<centrx>
yup
<dwn>
right
<dwn>
but how do I modify the internal val
<dwn>
is the question
<centrx>
dwn, Ruby is completely object-oriented with these base classes too
<centrx>
dwn, maybe self or self.to_s
ghr has joined #ruby
<dwn>
ah, ok
zorak8 has joined #ruby
Spami has joined #ruby
hanjianwei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AnimalChin has joined #ruby
rutnop has joined #ruby
<dwn>
nope
<dwn>
not self or self.to_s
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dwn>
can't change the value of self
ghr has quit [Ping timeout: 245 seconds]
<Phrogz>
dwn: String#replace
echevemaster has joined #ruby
<centrx>
>> class String; def hi; puts "hi " + self; end; end; name = "Bob"; name.hi
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nisstyre has joined #ruby
jjd has quit [Quit: leaving]
<Phrogz>
Hah, I was trying to track down why Windows RubyInstaller was stuck at 2.0.0, and then discovered that yesterday 2.1.3 was released. Huzzah!
fabrice31 has joined #ruby
<centrx>
yeah Ruby with Windows is not the best
TTilus has quit [Ping timeout: 260 seconds]
six has quit [Ping timeout: 260 seconds]
jamo_ has quit [Ping timeout: 244 seconds]
<crome>
ruby changelog ftw
jjd has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
<Phrogz>
Other than this, and cmd.exe being suck wrt Unicode, I've had no trouble with Ruby on Windows. Must be hard work on the team's part to keep it up.
jdj is now known as j4jackj
<centrx>
It used to be significantly slower, I think that has cleared up
jjd has quit [Client Quit]
gsd has joined #ruby
TheNet_ has joined #ruby
TheNet has quit [Read error: Connection reset by peer]
OrkzRule has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
InhalingPixels has joined #ruby
JoshGlzBrk has joined #ruby
<msx>
sillybutton: think about anything you need and start working on it
<sillybutton>
msx: erm...I need nanokernel Linux
<fred-inRio>
Thanks guys
<msx>
so we have a jester here?
braincrash has joined #ruby
<sillybutton>
msx: possibly yes
<sillybutton>
because that's way too hard for a newbie
<sillybutton>
so, what could I make?
<sillybutton>
if I made a program to put text inside boxes
<sillybutton>
or a kitchen timer program
<sillybutton>
Hey yeah a kitchen timer program!
<sillybutton>
but how??
<sillybutton>
all I know is it must be a precise timer and implemented in Gtk+ 3
<zorak8>
make some tutorials
AtumT has quit [Remote host closed the connection]
<sillybutton>
another thing is a Ruby implementation of conky using Cairo and compatible with Wayland
<sillybutton>
anything to make Xorg users happier using Wayland
InhalingPixels has quit [Ping timeout: 272 seconds]
northfurr has joined #ruby
<sillybutton>
so if you could get me started on making my kitchen timer
pu22l3r has quit [Remote host closed the connection]
rubyonrailed has joined #ruby
<msx>
sillybutton: programming isn't that different to learning any other 'speaking' language. As zorak8 said you should try with some tutorials to start acquiring concepts, terminology, 'vocabulary' and so on...
chrisramon has joined #ruby
<sillybutton>
msx: so where are the tutorials? I need to know how to do for loops in Ruby
<sillybutton>
I wanna make a diamond shape as ascii art using a for loop
* sillybutton
googles ruby tutorials
<msx>
you know about about Google, right!!?? Check above, guys (including myself) have already posted some good resources to start familiarizing with Ruby
Mia has quit [Read error: Connection reset by peer]
<diegoviola>
is that a joke? I mean, is ruby still ruby with static typing?
<diegoviola>
"Well, all the new kids in the street these days, like Scala, TypeScript, Dart and Go, they are all static typed language, so why not Ruby?"
_Xamin_ has quit [Quit: Leaving]
MasterPiece has joined #ruby
dx7 has quit [Remote host closed the connection]
dx7 has joined #ruby
<diegoviola>
...
<diegoviola>
if I really wanted static typing I would be coding in C
chipotle has quit [Quit: cya]
xorax has joined #ruby
n88 has quit [Changing host]
n88 has joined #ruby
russt has quit [Quit: russt]
dx7 has quit [Ping timeout: 258 seconds]
mocfive has joined #ruby
arup_r has joined #ruby
xorax has quit [Client Quit]
xorax has joined #ruby
Fezzler has joined #ruby
xorax has quit [Client Quit]
xorax has joined #ruby
<zorak8>
what is static typing?
russt has joined #ruby
Phrogz_ has joined #ruby
duncannz has quit [Ping timeout: 244 seconds]
Shidash has joined #ruby
mikepack has quit [Remote host closed the connection]
<multi_io>
zorak8: it's when types are known at compile time
<zorak8>
??
mikepack has joined #ruby
<multi_io>
i.e. to the compiler
Phrogz_ has quit [Ping timeout: 246 seconds]
Phrogz_ has joined #ruby
<multi_io>
the types of variables
<multi_io>
zorak8: it's when types of variables are known to the compiler
kadoppe has joined #ruby
freerobby has quit [Quit: Leaving.]
<zorak8>
im very new to programming and only know ruby, never compile in my life
sinkensabe has joined #ruby
<zorak8>
exept some make in linux
<zorak8>
and what are the diff are ruby now
<zorak8>
?
<multi_io>
in statically typed languages like c, you tell the compiler that a variable x has type int (for example)
<multi_io>
which means that you can only ever assign ints to it
<multi_io>
if you try to assign e.g. a string to it, the compiler won't accept that
<robert_>
http://codepad.org/LYrwFwNM -- so for everybody here last night who saw my code before- I've worked on it a little bit more, and now I get a deadlock while calling EventLog::create_source(); any ideas why?
krz has quit [Client Quit]
yfeldblum has joined #ruby
<robert_>
also, I'm aware that I'm missing a pair of << when sending the result to channel_out
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mr-foobar has joined #ruby
fold has joined #ruby
i8igmac has quit [Read error: Connection reset by peer]
end_guy has joined #ruby
sinkensabe has joined #ruby
i8igmac has joined #ruby
Wolland_ has joined #ruby
Wolland has quit [Disconnected by services]
Wolland_ is now known as Wolland
sinkensabe has quit [Ping timeout: 240 seconds]
sevenseacat has joined #ruby
<robert_>
anyone have any ideas about my problem, though?
memph1s has joined #ruby
banister is now known as banister_
hmsimha has quit [Ping timeout: 260 seconds]
bruno- has joined #ruby
memph1s has quit [Read error: Connection reset by peer]
memph1s has joined #ruby
<Hanmac>
robert_: first, "f = @todo_message; f("Event Subscription Infrastructure");" does not work
<Hanmac>
second "def initialize (id, name, *param, **kwarg);" remove the " " before "(" and the ";" at the end or it might bite you in your ass
bruno- has quit [Ping timeout: 245 seconds]
j_mcnally has joined #ruby
kevkev has joined #ruby
<robert_>
okay.
<robert_>
I can't use lambdas like that?
<Hanmac>
robert_: third, for @notsupported i would choice NotImplementedError
kadoppe has quit [Quit: WeeChat 0.4.3]
<robert_>
I'll fix everything at the same time. :D
<Hanmac>
robert_: @todo_message.call("Event Subscription Infrastructure") would work ... or @todo_message.("Event Subscription Infrastructure") ... but not @todo_message("Event Subscription Infrastructure") ... notice the "." before the "(" in the second one
<robert_>
ah, .call
<robert_>
yeah.
<robert_>
I'll remember that. :D
kevkev has quit [Ping timeout: 272 seconds]
Mon_Ouie has joined #ruby
<robert_>
Hanmac: Just going through the issues as you see then? :D
mocfive has quit [Remote host closed the connection]
techsethi has quit [Quit: techsethi]
mocfive has joined #ruby
<Hanmac>
hm in EventChannel you did maybe forgot the Thread:: before Queue.new
fabrice31 has joined #ruby
<robert_>
Watch it be something stupid like that. :p
<Hanmac>
MyDumbScheduler#scheduler_thread does not work because it does try to call logger.create_source before the logger was set
mocfive has quit [Ping timeout: 240 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
angusiguess has joined #ruby
echevemaster has quit [Remote host closed the connection]
<robert_>
yeah, it expires even when I'm not using MyDumbScheduler.
<robert_>
the initial call to create_source also fails.
almostworking has left #ruby ["Leaving"]
fabrice31 has quit [Ping timeout: 244 seconds]
InhalingPixels has joined #ruby
kadoppe has joined #ruby
<Hanmac>
robert_: no the problem is that whne MyDumbScheduler#scheduler_thread is called, logger is still nil, so logger.create_source does crash because nil does not have a create_source method
teddyp1cker has joined #ruby
angusiguess has quit [Ping timeout: 244 seconds]
<robert_>
I fixed that by moving .run into work(), but that's not the issue.
<multi_io>
couldn't do it without the string-based class_eval
Phrogz_ has quit [Ping timeout: 260 seconds]
carraroj has quit [Quit: Konversation terminated!]
Beoran_ has joined #ruby
willgo has quit [Remote host closed the connection]
<Mon_Ouie>
You could, just use with define_method instead of def
cirn0 has joined #ruby
willgo has joined #ruby
mr-foobar has joined #ruby
<Mon_Ouie>
(Also I feel like guessing the attributes is too much magic, I'd rather explicitly state which methods should be called to compare the objects)
spectator has joined #ruby
Beoran has quit [Ping timeout: 240 seconds]
thomasxie has left #ruby [#ruby]
spectator has quit [Remote host closed the connection]
carraroj has joined #ruby
carraroj has quit [Changing host]
carraroj has joined #ruby
linojon has quit [Quit: linojon]
dukz has joined #ruby
willgo has quit [Ping timeout: 244 seconds]
cirn0 has quit [Ping timeout: 260 seconds]
<multi_io>
Mon_Ouie: with define_method I'd again have the problem of how to pass the attr_readers into it. I guess I'd have to use some global/class variable, which isn't so nice
<multi_io>
ignore the attributes guessing. the whole thing is just for some internal unit tests here.
InhalingPixels has joined #ruby
<Mon_Ouie>
No you wouldn't, you can use a local variable
<Mon_Ouie>
>> class Foo; x = 3; define_method(:bar) { x }; end; Foo.new.bar
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
willgo has joined #ruby
kraljev1 has joined #ruby
kraljev1 has left #ruby [#ruby]
b00stfr3ak has quit [Ping timeout: 258 seconds]
angusiguess has quit [Ping timeout: 260 seconds]
kraljev7 has quit [Ping timeout: 245 seconds]
HelperW_____ has joined #ruby
HelperW____ has quit [Ping timeout: 260 seconds]
sevenseacat has quit [Ping timeout: 246 seconds]
Guest57058 is now known as masak_grr
ndrei has quit [Ping timeout: 260 seconds]
glebm has joined #ruby
ndrei_ has quit [Ping timeout: 258 seconds]
HelperW_____ has quit [Ping timeout: 260 seconds]
comma8 has joined #ruby
melik has quit [Quit: Computer has gone to sleep.]
Fusl has quit [Read error: Connection reset by peer]
hanjianwei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
microdex has quit [Remote host closed the connection]
Fusl has joined #ruby
adac has quit [Ping timeout: 258 seconds]
AlexRussia has joined #ruby
jottr_ has joined #ruby
<mikecmpbll>
is assigning a lamba to a constant terrible?
havenn has quit [Ping timeout: 240 seconds]
spectator has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
<mikecmpbll>
just looking to store a mathematical function -- could use a method of course.
bruno- has joined #ruby
<crome>
yeah, it is terrible
kaspergrubbe_ has joined #ruby
nighter_ has quit [Ping timeout: 272 seconds]
nighter has joined #ruby
<mikecmpbll>
:D
willgo has quit [Ping timeout: 246 seconds]
spectator has joined #ruby
spectator has quit [Read error: Connection reset by peer]
vieq has joined #ruby
bruno- has quit [Ping timeout: 258 seconds]
drawingthesun has quit [Ping timeout: 246 seconds]
kevkev has joined #ruby
spectator has joined #ruby
eval-in__ has joined #ruby
teddyp1c_ has joined #ruby
Phrogz_ has joined #ruby
sigurding has joined #ruby
teddyp1cker has quit [Read error: Connection reset by peer]
eval-in_ has quit [Remote host closed the connection]
<banister_>
mikecmpbll it's not terrible, it depends how you intend to use it
<banister_>
if you can get away with a method then use a method, but if the use of a method causes u to use weird syntax i.e &method(:blah) then use a lambda assigned to a constant instead
<mikecmpbll>
ah okay.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
kevkev has quit [Ping timeout: 272 seconds]
Phrogz_ has quit [Ping timeout: 260 seconds]
<crome>
also, use the lambda + constant thing if you want to take photos of your colleauges scratching their head thinking why on earth someone did this
<Hanmac>
banister_: i did use method(:%) and got away with it ;P
yfeldblum has quit [Remote host closed the connection]
<Hanmac>
my usecase was: list.map(&filter.method(:%)).join(join)
<banister_>
crome if his use of a lambda confuse his colleagues then they need to learn ruby better and stop being such rails kiddies
willgo has joined #ruby
yxhuvud has quit [Remote host closed the connection]
kyb3r_ has quit [Read error: Connection reset by peer]
<crome>
I think code intent is more impotant. even with that not so pretty syntax, I expect my colleagues to understand what &method(:blah) does and I expect them to know where to look for "method". however, I wouldn't expect them to figure out why I used the constant+lambda way
yxhuvud has joined #ruby
drawingthesun has joined #ruby
<crome>
if I suspect my code would raise questions I would rather not write it that way
<Mon_Ouie>
&method is more obscure than lambda. People even call '&' 'symbol-to-proc' sometimes.
<banister_>
crome First of all, the &method(:blah) syntax was just an example, it's not the only case. Second, code "intent" has absolutely nothing to do with it -- and i don't know why you mentioned it. What is wrong with using a lambda? It's part of the language.
<banister_>
crome and i agree with Mon_Ouie &method(:blah) is frikkin weird, there's 2 steps involved there, 1. you're converting a method to (effectively) a lambda 2. you're converting that lambda to a block
relix has joined #ruby
<banister_>
(in the case of a lambda there's only one (likely) step -> convert the lambda to a block with &)
InhalingPixels has joined #ruby
<Hanmac>
hm in that case &method(:blah) should e optimised so it does not do two steps if possible
<mikecmpbll>
i think the method `blah` should be named better, for readability.
<mikecmpbll>
:P
sectionme has joined #ruby
nighter has quit [Ping timeout: 272 seconds]
InhalingPixels has quit [Ping timeout: 240 seconds]
<crome>
banister_: I totally agree with your point about rails kiddies. I know very well your code wouldn't have passed our code review process. I have already quit.
<banister_>
crome are you trying to be sarcastic or something?
helpD has joined #ruby
<crome>
no, not really, I'm not
<crome>
I'm not saying your code is wrong
<crome>
I'm just speaking out of my own experience about what I think people understand more easily. and it's true that my experience is based on working with rails people
<banister_>
admittedly it's dense, but i got it through my company code review by explaining how it worked in a hangout
nighter has joined #ruby
pierre1_ has joined #ruby
pierre1_ has quit [Remote host closed the connection]
<banister_>
and demonstrating the advantages in the approach (switching to call-back based rails controllers)
<Hanmac>
yeah rails ... not validating the userinput and then whining when things like Marshal.load or YAML.load could create to much objects and cause a buffer overflow ...
helpD has quit [Ping timeout: 240 seconds]
Jackneill has joined #ruby
janmuffino has joined #ruby
startupality has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mattp_ has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
sigurding has quit [Quit: sigurding]
threesixes has quit [Remote host closed the connection]
<banister_>
Hanmac are you doing rails yet? :) or still PHP as a day job?
<atmosx>
Hello
<crome>
banister_: that's one thing to squeeze code through review by explaining things and then it is another to come back to it in 3 months and figure out what it does. especially if it's not you who have to update it
<crome>
has*
<banister_>
crome it's heavily commented, i stripped those out for the gist, there's also associated documentation in the wiki
<Hanmac>
banister_: currently i do Haxe ... and use it to generate js code ;P
<banister_>
Hanmac seriously? that's cool
phoo1234567 has joined #ruby
<banister_>
Hanmac you get paid to write in haxe?
<Hanmac>
banister_: currently yeah ... but it was a fit funky after i did unterstand how haxe works ... (hm i still prefer ruby and C++)
<banister_>
Hanmac that's pretty interesting, your company chose to do haxe? or you're just doing it and actually committing the generated js?
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
<Hanmac>
about rails i read www.ruby-doc.org and i get "There was X Ruby vulnerability reports" ... and in 99% of the cases it has something todo with rails
<Hanmac>
banister_: hm its currently the companies choice
HelperW_____ has joined #ruby
bruno- has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
angusiguess has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
yacks has quit [Quit: Leaving]
yacks has joined #ruby
mr_foobar_baz has joined #ruby
andrewlio has quit [Quit: Leaving.]
angusiguess has quit [Ping timeout: 240 seconds]
yfeldblu_ has joined #ruby
dukz has quit [Ping timeout: 272 seconds]
<mattias_>
I'm adding a settings object to my user object.. but I can't really reach it in the view. It says that the function does not exist. Any ideas
gr33n7007h has joined #ruby
bruno- has quit [Ping timeout: 258 seconds]
<mattias_>
Oh.. forgot attr_reader =)
fabrice31 has joined #ruby
yfeldblu_ has quit [Ping timeout: 272 seconds]
simpleuser has joined #ruby
b00stfr3ak has joined #ruby
moritzs has joined #ruby
<simpleuser>
Hi. I’m a complete noob in ruby/gem and I’d like to use guard. I installed guard and ctags-composer with "sudo gem install guard" and "sudo gem install guard-ctags-composer".
kayloos has joined #ruby
<simpleuser>
I can do a "guard init ctags-composer" in one dir, but not in another one.
AmBienCeD has joined #ruby
sevenseacat has joined #ruby
<simpleuser>
I get "/usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find guard (>= 0) amongst [actionmailer-4.0.8,…"
<jhass>
simpleuser: make a gist with gem env and sudo gem env please
<atmosx>
Guys
<atmosx>
to store product and vat categories on a per user basis
<jhass>
simpleuser: in both dirs, the working one and the not working one
<atmosx>
What kind of models should I use?
king313 has quit [Ping timeout: 246 seconds]
<atmosx>
for vat I can use a table, make user choose or add elements to that table.
fabrice31 has quit [Ping timeout: 244 seconds]
Alina-malina has quit [Ping timeout: 260 seconds]
<atmosx>
but for categories?! use an 'String' type in MySQL and convert string to array? e.g. 'cat1, cat2, cat3'?
<Hanmac>
atmosx: with that you might be able to save memory because you do not have a Catname more than once, and you can prevent that a user add a product to a cat more than once
agent_white has joined #ruby
<jhass>
simpleuser: btw. you can add multiple files to a gist
emocakes__ has joined #ruby
<simpleuser>
jhass: yeah, I always forget ^^
cina has joined #ruby
<jhass>
atmosx: not to forget renaming a category becomes a single row update
<atmosx>
jhass: true.
bluOxigen has joined #ruby
<atmosx>
what about VAT thuogh, a user might have multiple VATs
<atmosx>
ah no no
<atmosx>
hm it's 1 vat per product, I got confused
<atmosx>
okay
<atmosx>
two more tables it is then
emocakes has quit [Ping timeout: 258 seconds]
<simpleuser>
jhass: Oh
<simpleuser>
now it works ^^
<simpleuser>
thanks
startupality has joined #ruby
b00stfr3ak has joined #ruby
kevkev has joined #ruby
datreh has joined #ruby
Phrogz_ has joined #ruby
kevkev has quit [Ping timeout: 246 seconds]
b00stfr3ak has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby
lolmaus_ has quit [Quit: Konversation terminated!]
startupality has quit [Quit: startupality]
Phrogz_ has quit [Ping timeout: 272 seconds]
toretore has joined #ruby
startupality has joined #ruby
jottr_ is now known as jottr
Phrogz_ has joined #ruby
w09x has joined #ruby
cirn0 has joined #ruby
rkalfane has joined #ruby
king313 has joined #ruby
moritzs has quit [Ping timeout: 245 seconds]
mattias_ has quit [Quit: leaving]
InhalingPixels has joined #ruby
cirn0 has quit [Ping timeout: 246 seconds]
datreh has quit [Quit: Computer has gone to sleep.]
hodja has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
carraroj has joined #ruby
<shevy>
dumdedum
InhalingPixels has quit [Ping timeout: 246 seconds]
<AlexRussia>
shevy: haha
Phrogz_ has quit [Ping timeout: 258 seconds]
startupality has quit [Quit: startupality]
spider-mario has quit [Ping timeout: 258 seconds]
emocakes__ has quit [Ping timeout: 244 seconds]
Sht0 has joined #ruby
pu22l3r has joined #ruby
emocakes has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
HelperW_____ has quit [Read error: Connection reset by peer]
HelperW_____ has joined #ruby
patrick99e99 has joined #ruby
pu22l3r has quit [Ping timeout: 260 seconds]
angusiguess has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
teddyp1c_ has quit []
lxsameer has joined #ruby
m8 has joined #ruby
Xiti` has joined #ruby
patrick99e99 has quit [Ping timeout: 260 seconds]
Xiti` has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
havenn has joined #ruby
willgo has quit [Remote host closed the connection]
willgo has joined #ruby
willgo has quit [Remote host closed the connection]
Xiti has quit [Ping timeout: 260 seconds]
<gr33n7007h>
How to get a array of of arguments from a method ?
Mia has joined #ruby
HelperW_____ has quit [Quit: Computer has gone to sleep.]
mattp_ has joined #ruby
<gr33n7007h>
[[ :a => req, :a=80 => optional]] something like that using parameters
HelperW_____ has joined #ruby
rutnop has quit [Ping timeout: 246 seconds]
<AlexRussia>
gr33n7007h: do you mean, how to make method with dynamic number of arguments?
havenwood has quit [Ping timeout: 244 seconds]
havenn has quit [Ping timeout: 264 seconds]
startupality has joined #ruby
<gr33n7007h>
no, I need the argument list in an array and what type of arguments they are: required, optional, variable ?
<AlexRussia>
...
<gr33n7007h>
can't for the life of me remember
<gr33n7007h>
oh nevermind found it
<AlexRussia>
gr33n7007h: i guess, you have noc chance in this way, but may be i am wrong...
<Hanmac>
yxhuvud: newest version without extra classes https://gist.github.com/Hanmac/cb9e13ff220e4f31e13a write_file_dev_dep got replaced by write_file_dep and some other little changes (i only need to be careful when i replace it with a class instance methods)
root3d has quit [Ping timeout: 260 seconds]
kevkev has joined #ruby
Phrogz_ has quit [Ping timeout: 245 seconds]
HelperW_____ has joined #ruby
nfk has quit [Quit: yawn]
kevkev has quit [Ping timeout: 260 seconds]
whitewalrus has joined #ruby
cuqa has left #ruby ["Leaving"]
havenwood has joined #ruby
havenn has joined #ruby
braincra- has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
HelperW_____ has quit [Ping timeout: 245 seconds]
braincrash has quit [Ping timeout: 245 seconds]
andrewlio has quit [Quit: Leaving.]
Spami has joined #ruby
abuzze has quit [Remote host closed the connection]
<decci>
It is plugin ..any idea how shall I revert or fix it
russt has joined #ruby
<unshadow>
Hi guys :) , I need help in something, I'm trying to create a multi-threaded TCP server, it looks like its working but something is weird, one connection gets served and the other also gets served but then is stuck :\ the code is here: http://pastie.org/9581173
fred-inRio has joined #ruby
<decci>
wasamasa: I ran this command to install plugin and it went fine run bundle exec rake redmine:plugins NAME=redmine_issuechecklist RAILS_ENV=production
<decci>
wasamasa: How shall I remove this plugin back
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
Phrogz_ has quit [Ping timeout: 258 seconds]
northfurr has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
* wasamasa
walks off, slowly
russt has quit [Quit: russt]
Scotteh has quit [Ping timeout: 272 seconds]
<unshadow>
wasamasa: you cant walk away ! hahah help the IRC guys ;)
carraroj has quit [Ping timeout: 246 seconds]
danijoo has joined #ruby
endash has joined #ruby
banister_ has quit [Ping timeout: 260 seconds]
Rollabunna has joined #ruby
HelperW_____ has joined #ruby
kevkev has joined #ruby
charliesome has joined #ruby
Scotteh has joined #ruby
HelperW_____ has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
dx7 has joined #ruby
gr33n7007h has quit [Ping timeout: 260 seconds]
lfox has quit [Quit: ZZZzzz…]
bruno- has quit [Read error: Connection reset by peer]
oleo is now known as Guest75356
oleo__ has joined #ruby
kevkev has quit [Ping timeout: 260 seconds]
tadejm has joined #ruby
Guest75356 has quit [Ping timeout: 260 seconds]
bmurt has quit []
rutnop has quit [Ping timeout: 246 seconds]
pu22l3r has quit [Read error: Connection reset by peer]
starkhalo has joined #ruby
HelperW_____ has joined #ruby
andrewlio has joined #ruby
pu22l3r has joined #ruby
sinkensabe has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 245 seconds]
yottanami has quit [Ping timeout: 260 seconds]
InhalingPixels has joined #ruby
northfurr has quit [Quit: northfurr]
angusiguess has joined #ruby
jpdicosola has joined #ruby
grenierm has quit [Quit: grenierm]
jpdicosola has quit [Client Quit]
foooobear has joined #ruby
InhalingPixels has quit [Ping timeout: 246 seconds]
fabrice31 has joined #ruby
tadejm has quit [Quit: leaving]
angusiguess has quit [Ping timeout: 258 seconds]
mr-foobar has quit [Ping timeout: 272 seconds]
mr-foobar has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
endash has quit [Quit: endash]
fold has quit [Ping timeout: 272 seconds]
angusiguess has joined #ruby
skammer2 has quit [Ping timeout: 272 seconds]
kaplejon has joined #ruby
havenwood has joined #ruby
havenn has joined #ruby
havenn has quit [Client Quit]
krz has quit [Quit: WeeChat 1.0]
bruno- has joined #ruby
emocakes has quit []
ndrei has quit [Quit: leaving]
ndrei_ has quit [Quit: leaving]
ndrei has joined #ruby
mr-foobar has quit [Ping timeout: 258 seconds]
benzrf|offline is now known as benzrf
ddv is now known as aech
aech has quit [Changing host]
aech has joined #ruby
mr-foobar has joined #ruby
yacks has quit [Quit: Leaving]
bruno- has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
dx7 has quit [Quit: Leaving...]
spider-mario has quit [Remote host closed the connection]
adac has joined #ruby
cpruitt has joined #ruby
sinkensabe has quit [Remote host closed the connection]
bricker`LA has joined #ruby
kobain has joined #ruby
TieSoul has joined #ruby
janmuffino has quit [Ping timeout: 246 seconds]
snath has joined #ruby
mijicd has quit [Remote host closed the connection]
sinkensabe has joined #ruby
bricker`LA has quit [Ping timeout: 260 seconds]
sectionme has quit [Ping timeout: 240 seconds]
moritzs has quit [Ping timeout: 260 seconds]
oleo__ has quit [Quit: Verlassend]
thomasxie has joined #ruby
xcv has joined #ruby
unshadow has quit [Quit: leaving]
hiyosi has quit [Quit: WeeChat 1.0]
agjacome has quit [Ping timeout: 244 seconds]
hiyosi has joined #ruby
ariera has joined #ruby
oleo has joined #ruby
<ariera>
hi guys
<havenwood>
hey
abuzze has joined #ruby
<ariera>
one question, is there a simpler (less redundant) way of writing something like this: my_hash.each{ |k,v| yield(k,v) }
<canton7>
pass the block directly to my_hash.each?
mr-foobar has quit [Ping timeout: 260 seconds]
<crome>
^
Kricir has joined #ruby
_rutnop_ has joined #ruby
_rutnop_ has quit [Remote host closed the connection]
spastorino has quit [Quit: Connection closed for inactivity]
Paul_McFreely has joined #ruby
<pontiki>
the ghost of hp still haunts me....
ndrei has quit [Quit: leaving]
ndrei has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
oleo has quit [Read error: Connection reset by peer]
cirn0 has joined #ruby
yfeldblum has joined #ruby
Mon_Ouie has quit [Ping timeout: 244 seconds]
Kricir has quit [Read error: Connection reset by peer]
emocakes has joined #ruby
InhalingPixels has joined #ruby
Kricir has joined #ruby
Dude007 has quit [Ping timeout: 260 seconds]
InhalingPixels has quit [Read error: Connection reset by peer]
InhalingPixels has joined #ruby
charliesome has quit [Quit: zzz]
ndrei has quit [Quit: leaving]
Kricir has quit [Remote host closed the connection]
ndrei has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
cirn0 has quit [Ping timeout: 260 seconds]
Dude007 has joined #ruby
oleo has joined #ruby
benzrf is now known as benzrf|offline
nonmadden has joined #ruby
bricker`LA has joined #ruby
skammer2 has joined #ruby
yacks has joined #ruby
ariera has quit [Remote host closed the connection]
skammer2 has quit [Ping timeout: 245 seconds]
wotan has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Zackio is now known as Matrixiumn
wotan has left #ruby [#ruby]
speaking1ode has joined #ruby
Kricir has joined #ruby
russt has joined #ruby
ariera has joined #ruby
sepp2k has joined #ruby
sevenseacat has quit [Quit: Leaving.]
ariera has quit []
Jarboe has joined #ruby
atmosx has joined #ruby
ariera has joined #ruby
fred-inRio has quit [Ping timeout: 258 seconds]
weems|mac has joined #ruby
weems|mac has joined #ruby
qqw has quit [Ping timeout: 260 seconds]
king313 has quit [Read error: Connection reset by peer]
claymore has quit [Quit: Leaving]
Dude007 has quit [Remote host closed the connection]
king313 has joined #ruby
king313 has joined #ruby
king313 has quit [Max SendQ exceeded]
adac has quit [Ping timeout: 244 seconds]
postmodern has quit [Quit: Leaving]
Smujo has joined #ruby
Matrixiumn is now known as Zackio
king313 has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skammer2 has joined #ruby
iamjarvo has joined #ruby
qqw has joined #ruby
sectionme has joined #ruby
Smujo_ has joined #ruby
dotrb has joined #ruby
<dotrb>
Hi everyone
<dotrb>
what is the difference between json api request and x-www-form-urlencoded request??
devdazed has joined #ruby
bthesorceror has joined #ruby
rkalfane has joined #ruby
kaspergrubbe_ has joined #ruby
sectionme has quit [Ping timeout: 272 seconds]
rkalfane has quit [Client Quit]
cpruitt has quit [Quit: cpruitt]
rkalfane has joined #ruby
king313 has quit [Quit: .]
sinkensabe has quit [Remote host closed the connection]
autochthon has joined #ruby
hmsimha has joined #ruby
iamjarvo has quit [Ping timeout: 260 seconds]
dotrb has left #ruby [#ruby]
kevkev has joined #ruby
definiv has joined #ruby
Kricir has quit [Remote host closed the connection]
definiv has quit [Client Quit]
Kricir has joined #ruby
akshayvishnoi has quit [Quit: akshayvishnoi]
IceDragon has joined #ruby
Inhaling_ has joined #ruby
sectionme has joined #ruby
tkuchiki has quit [Remote host closed the connection]
kevkev has quit [Ping timeout: 272 seconds]
shelling_ has joined #ruby
fred-inRio has joined #ruby
fabrice31 has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
InhalingPixels has quit [Ping timeout: 260 seconds]
linojon has quit [Quit: linojon]
Paul_McFreely has quit [Remote host closed the connection]
jheg_ has joined #ruby
linojon has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
emocakes has quit []
jpdicosola has joined #ruby
gregf has quit [Quit: WeeChat 1.0]
linojon has quit [Client Quit]
thomasxie has quit [Quit: Leaving.]
AtumT has joined #ruby
linojon has joined #ruby
akshayvishnoi has joined #ruby
decci has quit [Ping timeout: 246 seconds]
yacks has quit [Quit: Leaving]
kaspertidemann has quit []
atmosx has quit [Ping timeout: 240 seconds]
linojon has quit [Client Quit]
zeroNones has joined #ruby
zeroNones has quit [Max SendQ exceeded]
atmosx has joined #ruby
Pharaoh2 has joined #ruby
zeroNones has joined #ruby
Inhaling_ has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
mjuszczak has quit [Quit: leaving]
Dude007 has joined #ruby
thams has quit [Quit: thams]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carraroj has joined #ruby
thams has joined #ruby
rkalfane has joined #ruby
freerobby has joined #ruby
Pharaoh2 has quit [Read error: Connection reset by peer]
Pharaoh2 has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
thams_ has joined #ruby
sectionme has quit [Ping timeout: 246 seconds]
jpdicosola has quit [Quit: jpdicosola]
thams has quit [Ping timeout: 260 seconds]
thams_ is now known as thams
atmosx has quit [Ping timeout: 272 seconds]
atmosx has joined #ruby
abuzze has joined #ruby
timonv_ has joined #ruby
atmosx has quit [Ping timeout: 260 seconds]
atmosx has joined #ruby
mofai has joined #ruby
agjacome has joined #ruby
ctp has joined #ruby
Guest37009 has quit [Ping timeout: 245 seconds]
kaspergrubbe_ has quit [Remote host closed the connection]
abuzze has quit [Ping timeout: 245 seconds]
ctp has quit [Client Quit]
snorkra has quit [Ping timeout: 240 seconds]
ptrrr has quit [Quit: ptrrr]
jeremy04 has joined #ruby
thams has quit [Quit: thams]
p0sixpscl has joined #ruby
hmsimha has quit [Ping timeout: 244 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
Photism has quit [Quit: Leaving]
kevkev has joined #ruby
yfeldblum has joined #ruby
Lewix has joined #ruby
Photism has joined #ruby
atmosx has quit [Ping timeout: 245 seconds]
helpD has joined #ruby
kevkev has quit [Ping timeout: 260 seconds]
atmosx has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
mocfive has joined #ruby
mocfive has quit [Remote host closed the connection]
mocfive has joined #ruby
<shevy>
wow
<shevy>
Hash has a .shift method
<shevy>
did you guys know this?
<pontiki>
ya, been there for quite a while
naftilos76 has joined #ruby
sectionme has joined #ruby
<naftilos76>
Hi, is there a way to tell whether a string is binary or not? The binary strings are calculated as having double the actual chars. Is there a way to tell?
St_Marx has joined #ruby
hmsimha has joined #ruby
mocfive has quit [Ping timeout: 260 seconds]
<jhass>
naftilos76: do you search for .bytesize or what do you mean?
j_mcnally has joined #ruby
speaking1ode has quit [Ping timeout: 272 seconds]
CowboyLex has quit [Ping timeout: 264 seconds]
bthesorceror has quit [Quit: bthesorceror]
<naftilos76>
I need to know whether the string contains english or greek chars. I use netbeans 6.9.1 to debug and i can see that the debugger recons greek chars as binary data.
cirn0 has joined #ruby
OffTheRails has joined #ruby
<pontiki>
oh, i think those are double-byte characters in UTF-8
sectionme has quit [Ping timeout: 272 seconds]
<naftilos76>
yeap
<jhass>
how about .match(/\p{Greek}/)
<naftilos76>
let me have a try
<naftilos76>
i am not looking for a string pattern
j_mcnally has quit [Read error: Connection reset by peer]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
a_ has joined #ruby
<jhass>
you said you want to know whether your string contains any greek characters
<naftilos76>
warning: regexp has `}' without escape
<naftilos76>
the string was in a var called tmp
ariera has quit [Remote host closed the connection]
<naftilos76>
and i did tmp.match(/\p{Greek}/)
<pontiki>
naftilos76: !code
<helpa>
naftilos76: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
tectonic has joined #ruby
<jhass>
naftilos76: what's your ruby version?
<naftilos76>
1.8.7
yacks has joined #ruby
<jhass>
that might be the issue
<jhass>
1.8 is EOL'd
<naftilos76>
well...
andrewlio has quit [Remote host closed the connection]
<decci>
benzrf: gem install libicu-dev ERROR: Could not find a valid gem 'libicu-dev' (>= 0) in any repository
g0bl1n has quit [Client Quit]
<decci>
I am using CentOS 6.5
claw__ has joined #ruby
HelperW______ has quit [Ping timeout: 260 seconds]
<benzrf>
decci: brew and apt-get are system package managers
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claw__ has quit [Client Quit]
claw__ has joined #ruby
Soda has joined #ruby
<decci>
benzrf: yes I used gem install
Advocation has quit [Quit: Advocation]
caveat- has quit [Ping timeout: 260 seconds]
<benzrf>
decci: gem is not a system package manager
<benzrf>
it's a ruby package manager
<benzrf>
decci: would you do `gem install firefox'
cirn0 has quit [Ping timeout: 258 seconds]
<decci>
benzrf: gem installs the packages related to ruby
<decci>
benzrf: I use yum install <package>
fred-inRio has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 260 seconds]
<benzrf>
decci: yes, there you go
lkba has quit [Read error: Connection reset by peer]
sectionme has quit [Ping timeout: 260 seconds]
gsd has joined #ruby
caveat- has joined #ruby
lkba has joined #ruby
melik has quit [Quit: Computer has gone to sleep.]
xcv has quit [Remote host closed the connection]
Zesty has joined #ruby
b00stfr3ak has joined #ruby
<decci>
benzrf: It went well now but now it shows Cannot execute "/usr/local/rvm/gems/ruby-1.9.3-p547/gems/passenger-4.0.50/buildout/agents/SpawnPreparer": No such file or directory (errno=2)
<benzrf>
no idea
adac has joined #ruby
grenierm has joined #ruby
JBreit has joined #ruby
b00stfr3ak has quit [Ping timeout: 240 seconds]
JBreit has left #ruby [#ruby]
zorak__ has joined #ruby
zorak__ has quit [Remote host closed the connection]
zorak__ has joined #ruby
zorak__ has quit [Client Quit]
abuzze has joined #ruby
timonv_ has quit [Remote host closed the connection]
zorak__ has joined #ruby
ariera has joined #ruby
bmurt has quit []
carraroj has quit [Ping timeout: 272 seconds]
carraroj has joined #ruby
sigurding has quit [Quit: sigurding]
mikepack has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
ghr has joined #ruby
danijoo has joined #ruby
abuzze has quit [Ping timeout: 258 seconds]
anaeem1 has joined #ruby
Dogcow has joined #ruby
ghr has quit [Ping timeout: 258 seconds]
Wolland has joined #ruby
caveat- has quit [Disconnected by services]
HelperW______ has joined #ruby
caveat- has joined #ruby
almostworking has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
anaeem1 has quit [Remote host closed the connection]
yfeldblum has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
HelperW______ has quit [Ping timeout: 260 seconds]
a_ has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
robustus has joined #ruby
caveat- has quit [Ping timeout: 260 seconds]
bthesorceror has joined #ruby
Hobogrammer has joined #ruby
jintelletec has joined #ruby
<jintelletec>
looking to speak to Any ruby devs interested in opportunities working for bitcoin/crypto companies ( across the globe)
wallerdev has quit [Quit: wallerdev]
naftilos76 has quit [Remote host closed the connection]
Zesty has quit [Quit: Leaving...]
spectator has quit [Remote host closed the connection]
pagios has quit [Read error: Connection reset by peer]
patrick99e99 has joined #ruby
Hightower666 has quit [Client Quit]
slester has quit [Remote host closed the connection]
slester has joined #ruby
JoshGlzBrk has quit [Read error: Connection reset by peer]
HelperW______ has joined #ruby
JoshGlzBrk has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
Morkel has quit [Ping timeout: 272 seconds]
cleopatra has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
neersighted has quit [Remote host closed the connection]
caveat- has quit [Ping timeout: 272 seconds]
ramfjord has joined #ruby
HelperW______ has quit [Ping timeout: 260 seconds]
angusiguess has quit [Ping timeout: 260 seconds]
JoshGlzB_ has joined #ruby
JoshGlzB_ has quit [Max SendQ exceeded]
havenwood has quit [Ping timeout: 264 seconds]
Jackneill has quit [Ping timeout: 258 seconds]
JoshGlzB_ has joined #ruby
JoshGlzBrk has quit [Ping timeout: 260 seconds]
JoshGlzB_ has quit [Read error: Connection reset by peer]
threesixes has joined #ruby
JoshGlzBrk has joined #ruby
sectionme has joined #ruby
JoshGlzBrk has quit [Client Quit]
speaking1ode has joined #ruby
bMalum has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
xcv has joined #ruby
fabrice31 has joined #ruby
Scotteh has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
nighter has quit [Ping timeout: 260 seconds]
Scotteh has joined #ruby
armyriad has quit [Ping timeout: 246 seconds]
neersighted has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
fabrice31 has quit [Ping timeout: 272 seconds]
caveat- has joined #ruby
<shevy>
<jhass> meh, still unicode is still broken <-- did I not always say this :)
krisquigley has joined #ruby
<jhass>
out of context quote (next line is context)
<jhass>
and this wouldn't be a problem if everything would just default to unicode!
<shevy>
oh you get into my list of quotes now!
pagioss has joined #ruby
adac has quit [Ping timeout: 260 seconds]
<shevy>
oh there are good quotes here
<shevy>
<shevy> wallerdev why do you hate your dad so much
<shevy>
<wallerdev> haha if i hated my dad id ask him to learn rails just to make a one page site with a couple images on it
<shevy>
oh... wallerdev is not here :(
* riceandbeans
has done that before
ht__th has quit [Remote host closed the connection]
xcv has quit [Remote host closed the connection]
fold has joined #ruby
angusiguess has joined #ruby
Zesty has joined #ruby
Zesty has quit [Client Quit]
AndChat| has joined #ruby
lkba has quit [Read error: Connection reset by peer]
<shevy>
hmm
<shevy>
I have received a strange bug report
<shevy>
sh: -c: line 0: syntax error near unexpected token `('
<shevy>
this is supposed to be from a ruby file without a .rb end
<shevy>
how can this happen? could this happen because of a wrongful she-bang line or something?
<shevy>
he invokes it via: "name_of_the_script foo.mp3"
<shevy>
which should be the same as "name_of_the_script.rb foo.mp3" really ... hmm but somehow, his shell seems to want to think that this must be invoked via sh
<shevy>
he uses OSX, I use linux
<shevy>
what would be the default shebang line for ruby on OSX?
<Phrogz>
lukevinc: You can't modify a frozen array. If you describe what your end goal is, perhaps we can help you accomplish it.
<lukevinc>
ok, there is a way to unlock the array, jhass says clone and dup, is it?
<lukevinc>
i don't want to modify the constant, i want to modify the copy of constant
<Phrogz>
lukevinc: You can get a new array that has the same content as the original, but what won't cause Date::ABBR_DAYNAMES to use it. Do you care about that?
grenierm has quit [Quit: grenierm]
<Phrogz>
lukevinc: Then call any method on the array that will create a new array, not mutate it. .dup is one such simple method.
sinkensabe has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 240 seconds]
<lukevinc>
i don't how i do this without a create a unnecessary variable.
<Phrogz>
If you had used s + "day" instead it would have created a new String instance.
starless has quit [Ping timeout: 245 seconds]
<lukevinc>
that makes sense, but in map it doesn't work.
<lukevinc>
can i do s = s << "day"?
<Phrogz>
I don't know what you mean by what you just said. It was vague. "Doctor, help, it doesn't work!"
P-NuT has joined #ruby
<Phrogz>
lukevinc: No, you cannot do that if s refers to a frozen string, because s << "day" tries to mutate it.
havenwood has quit [Remote host closed the connection]
<lukevinc>
so in map i can't assign directly to a variable, i just put the (return) value
<cleopatra>
hello ruby channel :P
<Phrogz>
lukevinc: In map you *can* assign directly to a variable. You cannot, however, mutate a frozen object (whether you are inside map or anywhere else).
baltazore has quit [Ping timeout: 244 seconds]
<Phrogz>
Good day, cleopatra
<cleopatra>
Phrogz, thank you
<lukevinc>
i didn't understood, it was a strange behavior, but my objective was complete.
<P-NuT>
What's the best xml parser in ruby?
<Phrogz>
P-NuT: Nokogiri
carraroj has quit [Quit: Konversation terminated!]
<lukevinc>
Phrogz: thanks my friend.
<cleopatra>
wher ic an upload imagen?
ephemerian has quit [Quit: Leaving.]
<P-NuT>
cool thanks
skammer2 has quit [Ping timeout: 272 seconds]
<Phrogz>
cleopatra: You said that before. Nobody answered you because it does not make sense.