<Zaeyx>
So what are some of the main applications for Ruby?
lggr has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
<bperry>
Zaeyx: web applications seem to be predominant
<Paradox>
Zaeyx, shell scripting, web apps, testing
<Paradox>
markup languages
alek_b_ is now known as alek_b
<bnagy>
Zaeyx: it's a general purpose language, you can do more or less anything with it
SirFunk has quit [Ping timeout: 246 seconds]
<bnagy>
apart from writing drivers, I guess
lggr has quit [Ping timeout: 246 seconds]
c0rn has quit [Ping timeout: 272 seconds]
Kovensky has quit [Read error: Operation timed out]
jgwong has quit [Ping timeout: 246 seconds]
jgwong has joined #ruby
keltor has quit [Ping timeout: 256 seconds]
Gate has quit [Ping timeout: 272 seconds]
Gate has joined #ruby
Gate has quit [Changing host]
Gate has joined #ruby
ryanlecompte has joined #ruby
c0rn has joined #ruby
pradeepto has quit [Ping timeout: 246 seconds]
quest88_ is now known as quest88
keltor has joined #ruby
keltor is now known as Guest24198
SirFunk has joined #ruby
pradeepto has joined #ruby
lggr has joined #ruby
jakk has quit [Read error: Operation timed out]
ananthakumaran has joined #ruby
jakk has joined #ruby
Kovensky has joined #ruby
LouisGB has quit [Ping timeout: 260 seconds]
ayawaska has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 252 seconds]
daniel_hinojosa has quit [Quit: Leaving.]
lggr has joined #ruby
kenneth has joined #ruby
fir_ed has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has quit [Remote host closed the connection]
kjellski has joined #ruby
Nisstyre-laptop has joined #ruby
diverdude has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 246 seconds]
AlbireoX has quit [Remote host closed the connection]
uris has quit [Quit: Lost terminal]
hakunin has quit [Remote host closed the connection]
lggr has joined #ruby
answer_42 has joined #ruby
duracrisis has quit [Ping timeout: 246 seconds]
elico has quit [Quit: elico]
rippa has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Ping timeout: 252 seconds]
dario12 has joined #ruby
darule has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
havenn has joined #ruby
T_shang has joined #ruby
T_shang has quit [Max SendQ exceeded]
wargasm has quit [Ping timeout: 240 seconds]
LouisGB has joined #ruby
T_shang has joined #ruby
T_shang has left #ruby [#ruby]
dario12 has quit [Quit: Leaving]
xbayrockx has quit []
havenn has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 244 seconds]
quest88_ has joined #ruby
quest88 has quit [Read error: Connection reset by peer]
quest88_ is now known as quest88
lggr has joined #ruby
Hanmac has joined #ruby
kenneth has quit [Quit: kswizz.com]
SirG has quit [Quit: Leaving]
quest88 has quit [Client Quit]
josefig has quit [Ping timeout: 264 seconds]
lggr has quit [Ping timeout: 246 seconds]
sarmiena_ has quit [Quit: sarmiena_]
codefyre has joined #ruby
lggr has joined #ruby
wisconsin has quit [Remote host closed the connection]
ledao has quit [Quit: Leaving.]
yoklov has quit [Quit: bye!]
lggr has quit [Ping timeout: 256 seconds]
GoHuyGo has joined #ruby
moshee has quit [Ping timeout: 246 seconds]
futilegames has joined #ruby
lggr has joined #ruby
ledao has joined #ruby
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
futilegames has quit [Read error: Connection reset by peer]
futilegames has joined #ruby
JonnieCache has joined #ruby
FlowState has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
FlowState has quit [Quit: Ex-Chat]
rakunHo has quit [Remote host closed the connection]
JonnieCache has quit [Ping timeout: 255 seconds]
lggr has quit [Ping timeout: 246 seconds]
quazimodo has quit [Ping timeout: 260 seconds]
ryanf has quit [Quit: leaving]
Pochacco has quit [Quit: Pochacco]
elico has joined #ruby
lggr has joined #ruby
Solnse has joined #ruby
vitor-br has quit [Ping timeout: 246 seconds]
<Solnse>
I'm trying to understand the difference between .each and .map. I think that .map is basically a destructive version of .each, applying the code block to the receiver, and .each just gives me a copy of the array?
LouisGB has quit [Ping timeout: 248 seconds]
<Solnse>
is that wrong?
<heftig>
yes
<Hanmac>
Solnse .each only interate the block and return an unchanged orginal, map returns changed copy, and map! changes the orginal
<heftig>
.map uses the return value of the block to construct a new array
lggr has quit [Ping timeout: 240 seconds]
<Solnse>
why would I ever use .each then for a code block if it's only going to return the original anyway?
<heftig>
.map! substitutes the original elements with the return values
rubious has joined #ruby
<heftig>
Solnse: because it doesn't bother with constructing a new array
<heftig>
saves time and memory, since the return value of the block is ignored
<Solnse>
but why would a block do anything then?
<Hanmac>
Solnse like [1,2,3].each {|i| puts i}
<heftig>
Solnse: it can have side effects, see above
<Solnse>
I see... so you use it to call another method on the elements.
<codefyre>
.each is like a for each loop
<roadt>
Solnse, for me, yes and no, i think the difference is that map collects the result from map. which each is not.
hakunin has joined #ruby
lggr has joined #ruby
gokul has joined #ruby
<Solnse>
ok, so .each is for using those elements for some other purpose... and .map is more for accessing those elements directly.
<Solnse>
I guess that means there is no .each! method
<Hanmac>
like [1,2,3,4].map(&:to_s) turns returns an new array where all numbers are converted to strings
<Solnse>
but map! and collect! will alter the original array
<roadt>
Solnse, map is to map the element to another element, you specify the mapping logic.
<roadt>
Solnse, map connect two array.
<roadt>
Solnse, .each is all about the array itself.
<Solnse>
I see.
<Hanmac>
"roadt: Solnse, map connect two array." i think this is wrong ... ?¿
spaceships has quit [Ping timeout: 256 seconds]
<Solnse>
ok. that's a little more clear. thank you.
<Hanmac>
do you mean zip?
<Solnse>
i think he meant connects the original array to a new copy of the array which is the result of the code block.
* roadt
do mean that.
<roadt>
Hanmac, sorry for poor english though.
<Solnse>
I am right thinking that?
<Solnse>
and I can see how .each would save on resources then, not actually creating a resulting copy.
<roadt>
Solnse, yes. .each just returns the original object. .map return another array which you are mapped.
<Solnse>
ok, thank you both.
havenn has joined #ruby
<Hanmac>
there is also something like this ... [1,2,3].zip(["a","b","c"]) #=> [[1,"a"],[2,"b"],[3,"c"]]
freeayu has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
<Solnse>
oh that's very cool
<Solnse>
for example blending an array of first names with an array of last names.
<Solnse>
and the name makes sense... like a zipper
nari has quit [Ping timeout: 244 seconds]
<roadt>
really.
und3f has joined #ruby
<Hanmac>
you could also "multiply" arrays: [1,2,3].product(["a","b","c"]) #=> [[1, "a"], [1, "b"], [1, "c"], [2, "a"], [2, "b"], [2, "c"], [3, "a"], [3, "b"], [3, "c"]]
lggr has joined #ruby
<Solnse>
don't try to make my mind mush more than it already is :)
<Solnse>
but I get that one too, cool.
samphippen has joined #ruby
<Solnse>
so the result would be a hash then?
havenn has quit [Ping timeout: 246 seconds]
<Hanmac>
hm no its an 2-dimenional Array (or an Array of Arrays)
<Solnse>
with pairs isntead of actually concatenating the objects?
<aces1up>
what would happen if multiple threads used the same hash simultaneously but did not access the same key at the same time, would that be thread lock issue? or do thread locks only happen when you use mutex?
<Hanmac>
roadt when you use .bind like i show above the orginal object is not changed
lggr has joined #ruby
<roadt>
but the latter is changed
<roadt>
for that object. then it's tricky.
<roadt>
that .send stuff
arturaz_ has quit [Ping timeout: 240 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
<Hanmac>
no i mean this:
<Hanmac>
o= [1,2,3]
<Hanmac>
o.to_s #=> [1,2,3] # still the normal to_s
<Hanmac>
Object.instance_method(:to_s).bind(o).call #=> "#<Array:0x0000000150a2c0>" the to_s from Object
mengu has joined #ruby
<roadt>
hmm. i should try that.
Takehiro has joined #ruby
justinmcp has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 245 seconds]
havenn has joined #ruby
justinmcp has joined #ruby
cakehero has joined #ruby
lggr has joined #ruby
<roadt>
then bind is only way to explicit change the receiver if do not count the instance_eval (exec) stuff, treat them as implicit way.
Guest10374 has joined #ruby
<Guest10374>
ciao
arturaz_ has joined #ruby
Guest10374 has left #ruby [#ruby]
lggr has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
Zaeyx has joined #ruby
stnly has quit [Quit: leaving]
Sargun has quit [Ping timeout: 260 seconds]
Sargun has joined #ruby
<Zaeyx>
Any great resources out there for a young programmer new to Ruby who is working on website scrapers?
havenn has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 260 seconds]
stephenjudkins has joined #ruby
stephenjudkins has quit [Client Quit]
codefyre has quit [Quit: Leaving]
lggr has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
prtksxna has joined #ruby
timonv has joined #ruby
freeayu has quit [Ping timeout: 256 seconds]
khakimov has quit [Quit: Computer has gone to sleep.]
Zai_ has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
hakunin has quit [Ping timeout: 260 seconds]
und3f has quit [Ping timeout: 246 seconds]
freeayu has joined #ruby
lggr has joined #ruby
jamjam has joined #ruby
<A124>
Zaeyx: I don't know about any larger guide, but I can give you hand. Also it's a rather specific thing. Can you go more into detail?
<Zaeyx>
We'll I have one specific issue if you help me with that
<Zaeyx>
Using mechanize I've figured out filling out forms and returning their result
Iszak has joined #ruby
<Zaeyx>
But
lggr has quit [Ping timeout: 248 seconds]
<Zaeyx>
When I use mechanize to perform an operation like this
<Zaeyx>
R = page_form.submit.parse.path('//table/td/tr/a').text
<Zaeyx>
Puts R
<Zaeyx>
I get everything back at once
skogis has joined #ruby
<Zaeyx>
I'd love to understand how to get each field back one at a time
workmad3 has quit [Ping timeout: 246 seconds]
<A124>
Use r not ARE. And.. r.each { |w| puts w}
lggr has joined #ruby
<A124>
*R
<Zaeyx>
Sure yeah I just hit uppercase cause I'm on a tablet right now :p
<Zaeyx>
When I use r.each I still get a whole page returned
bluOxigen has joined #ruby
<Zaeyx>
Aka all the <a> from form.submit
<Zaeyx>
Is that wrong? I could check my code for poor workmanship
<Zaeyx>
I really have been on ruby for about two days :p
darule has joined #ruby
darule has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
lggr has quit [Ping timeout: 260 seconds]
und3f has joined #ruby
roadt has quit [Ping timeout: 264 seconds]
lggr has joined #ruby
samphippen has joined #ruby
justinmcp has quit [Ping timeout: 255 seconds]
justinmcp has joined #ruby
codefyre has joined #ruby
snuglepuss has joined #ruby
fantazo has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
ryanf has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
und3f has quit [Quit: Leaving.]
timonv has quit [Remote host closed the connection]
lggr has joined #ruby
tntc has quit [Remote host closed the connection]
Ch4rAss has joined #ruby
Ch4rAss has left #ruby [#ruby]
colinbm has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
Zenger has joined #ruby
Takehiro_ has joined #ruby
<A124>
Zaeyx: Paste the code. pastie
Takehiro has quit [Read error: Connection reset by peer]
JonnieCache has joined #ruby
<Zenger>
Hi guys, I tried to make a ruby project (newbie here), installed all the gems, ruby, rails etc. and when I try rails s throws an error : "/usr/local/share/gems/gems/mysql2-0.3.11/lib/mysql2.rb:9:in `require': cannot load such file -- mysql2/mysql2 (LoadError)"
lordnaz has joined #ruby
<Zenger>
any way to fix that ? google gives nothing I can use and note I'm on a 64 bit OS
<A124>
Zenger: Do you have installed myslw?
<A124>
*q
<Zenger>
A124: only mysql2 , gem contents mysql2 lead to this path /usr/local/share/gems/gems/mysql2-0.3.11/
<shevy>
that is an odd path
<Zenger>
should I install mysql as well as mysql2 :| ?
<shevy>
does either of them work at all so far? ;)
<Zenger>
I tried irb
<Zenger>
in irb I type
<shevy>
that path is really odd
lggr has quit [Ping timeout: 260 seconds]
<shevy>
it would imply that you installed rubygems on your own
<shevy>
very odd path but as long as "gem list" shows the gems installed, you should be fine
<shevy>
you could try to install a tiny gem... "gem install wirble", then start irb, then do require 'wirble' then do 5+5 and press enter. the output should be in colours
Takehiro_ has quit [Remote host closed the connection]
<shevy>
and "gem list" should list it
<shevy>
then try to get one mysql to work :P
jgrevich has quit [Quit: jgrevich]
<Zenger>
that's odd, gem list shows both mysql and wirble, I open IRB type in require 'wirble' => True, but 5+5 does nothing :)
lggr has quit [Ping timeout: 255 seconds]
<Zenger>
I mean no colors
<shevy>
hmm
<shevy>
strange
<shevy>
I have white text normally, but the evaled text is in teal
<Zenger>
could it be from the X ?
<Zenger>
one moment gonna attempt this without the KDE open
lggr has joined #ruby
<Zenger>
I tried without the X , still no colors
<Zenger>
plain ls does colors nicely, I mean separates binaries from folders thru colors
<Zenger>
gem unpack mysql2, then rake throws error cannot load such file -- rake/extensiontask
snuglepuss has quit [Remote host closed the connection]
lggr has joined #ruby
<Zenger>
no ./configure or extconfig in there so I assume rake was the correct command
lordnaz has quit [Ping timeout: 246 seconds]
<Zenger>
OH YEAH :D
<Zenger>
my bad, I noticed a ext folder when I unpacked the gem, then I went to ext and saw the extconfig, did ruby extconfig.rb, make , make install , now rails s is not throwing error about the mysql
timonv has joined #ruby
<Zenger>
but extjs :D
<Zenger>
execjs*
<Zenger>
usr/local/share/gems/gems/execjs-1.4.0/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
<codefyre>
Zenger: add 'gem execjs' to you Gemfile and run bundle install
ejnahc has quit [Remote host closed the connection]
ejnahc has joined #ruby
timonv has quit [Remote host closed the connection]
<Zenger>
codefyre: added , when doing bundle install it lists execjs, but the error persists
<codefyre>
hmm , also add gem 'therubyracer', sudo bundle install
<codefyre>
rubyracer is the v8 javascript engine
lggr has quit [Ping timeout: 260 seconds]
<Zenger>
That did it
<Zenger>
it downloaded the libv8 and therubyracer, now the server is on :)
<Zenger>
thank you guys
<codefyre>
:-)
<Zenger>
gonna go study, thanks
<Zenger>
bye
Zenger has quit [Quit: =]]
lggr has joined #ruby
Beoran_ has quit [Ping timeout: 255 seconds]
lggr has quit [Ping timeout: 256 seconds]
Iszak has joined #ruby
alta has quit [Ping timeout: 246 seconds]
vectorshelve has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
lggr has joined #ruby
alta has joined #ruby
<vectorshelve>
any reference on how to do markup on README.md files in github
lordnaz has joined #ruby
ananthakumaran1 has joined #ruby
<ryanf>
vectorshelve: google "github-flavored markdown"
lggr has quit [Ping timeout: 245 seconds]
<vectorshelve>
ryanf: thanks
ryanf has quit [Quit: leaving]
hiroshige has quit [Remote host closed the connection]
ananthakumaran has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
Pochacco has quit [Quit: Pochacco]
mercwithamouth has quit [Ping timeout: 248 seconds]
niklasb has joined #ruby
jenrzzz has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
rubious has quit [Ping timeout: 264 seconds]
Solnse has quit [Ping timeout: 245 seconds]
parzorep has quit [Quit: parzorep]
morozovm has joined #ruby
mercwithamouth has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
moshee has quit [Ping timeout: 244 seconds]
yshh has joined #ruby
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
lggr has joined #ruby
diegoviola has quit [Ping timeout: 252 seconds]
frogprince_mac has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
arietis has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 260 seconds]
Iszak has quit [Read error: Connection reset by peer]
<Mon_Ouie>
Not using "break". You can use exceptions (raise StopIteration in particular) and throw, though in many cases I'd suggest simply not exiting from the method
<Mon_Ouie>
Just have the method return a value that tells you you need to leave the loop
<CodeVision>
ok, thanks :)
roadt has joined #ruby
ledao has quit [Read error: Connection timed out]
ledao has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
oposomme is now known as oposomme|away
vlad_starkov has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 260 seconds]
Russell^^ has joined #ruby
vlad_starkov has joined #ruby
prtksxna_ has joined #ruby
prtksxna has quit [Read error: Connection reset by peer]
lggr has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
notVert has joined #ruby
Shrink has joined #ruby
Xeago has joined #ruby
Guedes0 has joined #ruby
oposomme|away has quit [Quit: Leaving...]
Shrink has quit [Write error: Broken pipe]
Shrink has joined #ruby
atmosx has joined #ruby
codefyre has quit [Quit: Leaving]
lggr has quit [Ping timeout: 240 seconds]
jimeh2 has joined #ruby
lggr has joined #ruby
Guedes has quit [Disconnected by services]
Guedes0 is now known as Guedes
ionte_ has quit [Read error: Operation timed out]
Guedes has quit [Changing host]
Guedes has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
Shrink has joined #ruby
Morkel has quit [Quit: Morkel]
ledao1 has joined #ruby
ledao has quit [Ping timeout: 260 seconds]
atmosx has quit [Quit: WeeChat 0.3.8]
`brendan has joined #ruby
baphled has joined #ruby
drowningchild has quit [Quit: Leaving]
lggr has quit [Ping timeout: 248 seconds]
kirun has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
oposomme has joined #ruby
lggr has joined #ruby
ionte has joined #ruby
vlad_starkov has joined #ruby
oposomme is now known as oposomme|away
ledao1 has quit [Ping timeout: 246 seconds]
Jork1 has quit [Quit: Jork1]
ananthakumaran has joined #ruby
kiyoura has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
ledao has joined #ruby
Hien has joined #ruby
daniel_- has joined #ruby
whackatre has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
codefyre has joined #ruby
Shrink has joined #ruby
prtksxna_ has quit [Remote host closed the connection]
dpk has joined #ruby
lggr has joined #ruby
oposomme|away has quit [Quit: Leaving...]
elico has quit [Ping timeout: 260 seconds]
Shrink has quit [Read error: Connection reset by peer]
Shrink has joined #ruby
elico has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
saschagehlich has joined #ruby
lggr has joined #ruby
awestroke has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
<Hanmac>
i didnt get _bart's orginal message so i dont know the problem
codefyre has joined #ruby
<_bart>
original message: how do I check a string for matches of an array of regexp's
lggr has joined #ruby
<zykes->
into a Hash
sgupta has quit [Read error: Connection reset by peer]
<_bart>
I was thinking more about .reduce and .grep
knirhs has joined #ruby
<Mon_Ouie>
zykes-: scan /(.)=(\d+)/ — though this doesn't handle malformed input and may be too naive depending on how complex that "language" actually is
xscc has quit [Ping timeout: 246 seconds]
<Hanmac>
_bart do you only want to know if it matchs or do you want an match result?
<Mon_Ouie>
regexps.flat_map { |r| string.scan(r) } gives you all matches (as strings, you can change them to be MatchData relatively easily)
Shrink has quit [Read error: Connection reset by peer]
Shrink has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
no_worries has joined #ruby
knirhs has joined #ruby
Hanmac has joined #ruby
greenarrow has joined #ruby
greenarrow has quit [Client Quit]
LLama has joined #ruby
LLama has quit [Client Quit]
greenarrow has joined #ruby
Shrink has quit [Ping timeout: 255 seconds]
daniel_- has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
Virunga has quit [Remote host closed the connection]
Banistertab has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
Banistertab has joined #ruby
oposomme has joined #ruby
steakknife has joined #ruby
Iszak has joined #ruby
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has left #ruby [#ruby]
daniel_- has quit [Ping timeout: 246 seconds]
no_worries has quit [Remote host closed the connection]
bluenemo_ has joined #ruby
bluenemo_ has joined #ruby
bluenemo_ has quit [Changing host]
undersc0re97 has quit [Read error: Operation timed out]
Xeago has quit [Remote host closed the connection]
r1ddl3r has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Asher has quit [Quit: Leaving.]
saschagehlich_ has joined #ruby
sbinetd has joined #ruby
ananthakumaran has quit [Ping timeout: 256 seconds]
saschagehlich has quit [Read error: Operation timed out]
saschagehlich_ is now known as saschagehlich
rabidpraxis has joined #ruby
mucker has joined #ruby
elico has joined #ruby
ananthakumaran has joined #ruby
bluenemo has quit [Remote host closed the connection]
lggr has joined #ruby
Asher has joined #ruby
JonnieCache has joined #ruby
r1ddl3r has quit [Ping timeout: 245 seconds]
sbinetd has left #ruby [#ruby]
no_worries has joined #ruby
no_worries has quit [Remote host closed the connection]
frogprince_mac has quit [Quit: Leaving...]
Xeago has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
oposomme is now known as oposomme|away
LouisGB has quit [Ping timeout: 240 seconds]
undersc0re97 has joined #ruby
frogprince_mac has joined #ruby
lggr has joined #ruby
freeayu has quit [Remote host closed the connection]
rbuck has joined #ruby
hgf has joined #ruby
irleif has joined #ruby
<rbuck>
hi, would someone happen to know how to change the []= and [] methods of hash using this sort of syntax at runtime? instance.class.send(:define_method, "[]=" …
sgupta has joined #ruby
hgf has quit [Client Quit]
<Mon_Ouie>
zykes-: Maybe you can just go with splitting twice? (Once on ",", then on "=")?
knirhs has quit [Ping timeout: 240 seconds]
oposomme|away has quit [Quit: Leaving...]
codefyre has quit [Quit: Leaving]
vectorshelve has quit [Quit: Page closed]
lggr has quit [Ping timeout: 260 seconds]
knirhs has joined #ruby
vectorshelve has joined #ruby
lggr has joined #ruby
sakh has joined #ruby
nwertman has joined #ruby
sgupta has quit [Ping timeout: 246 seconds]
hgf has joined #ruby
Neomex has quit [Quit: Neomex]
BMF has joined #ruby
Tombar has joined #ruby
ledao has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
Tombar_ has joined #ruby
ledao has joined #ruby
notVert has quit [Read error: Connection reset by peer]
nwertman has quit [Quit: nwertman]
Tombar has quit [Ping timeout: 264 seconds]
BMF has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
IPGlider has quit []
slainer68 has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
cburyta has quit [Remote host closed the connection]
sepp2k has quit [Remote host closed the connection]
ledao has quit [Quit: Leaving.]
cburyta has joined #ruby
cburyta has quit [Remote host closed the connection]
Virunga has joined #ruby
lggr has joined #ruby
conor_ireland has joined #ruby
maddog_ has quit [Ping timeout: 252 seconds]
nwertman has joined #ruby
<Virunga>
Hi, i installed a gem named vagrant and when i start it from the command line i get an error raise_if_conflicts: Unable to activate virtualbox-0.9.2, because ffi-1.1.5-x86-mingw32 conflicts with ffi <~> 1.0.9. Could you help me to resolve this conflict, please?
maddog_ has joined #ruby
BrianJ has joined #ruby
JonnieCache has quit [Ping timeout: 264 seconds]
Jellyg00se has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
<Spaceghostc2c>
Virunga: Windows, hm. Painful.
lggr has joined #ruby
<Virunga>
Spaceghostc2c: yes, Windows. :)
Takehiro has quit [Remote host closed the connection]
sgupta has joined #ruby
Tombar_ has quit [Remote host closed the connection]
LouisGB has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
knirhs has quit [Read error: Connection reset by peer]
brotspinne has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Takehiro has joined #ruby
<brotspinne>
hello. I have a question about to_s + to_str vs. to_a + to_ary with a rails class. in the rails safebuffer class, to_s returns self and to_str returns a real string. in the ruby array class this is reversed. to_a returns a real array (even with a subclass) and to_ary returns self. code: http://pastie.org/4922274 so my question is now which one is acting wrong? because I think this is inconsistent
sgupta has quit [Ping timeout: 240 seconds]
frogprince_mac has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
mengu has quit [Quit: Konversation terminated!]
<Spaceghostc2c>
Ugh, cross-posters
<brotspinne>
I'm sorry :o
MikeyV27 has quit [Read error: Connection reset by peer]
MikeyV27 has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
nwertman has quit [Quit: nwertman]
chrishunt has joined #ruby
<shevy>
LET'S BURN HIM DOWN!!!
<brotspinne>
n0oOo
<shevy>
rbuck not sure that is easily possible, can't you define a method that does that, then call it?
lggr has quit [Ping timeout: 246 seconds]
irleif has joined #ruby
r1ddl3r has joined #ruby
abstrusenick has joined #ruby
lggr has joined #ruby
havenn has joined #ruby
X-Jester_ has quit [Ping timeout: 246 seconds]
abstrusenick has quit [Client Quit]
X-Jester has joined #ruby
abstrusenick has joined #ruby
<rbuck>
shevy: i can do it by simply redeclaring those methods off the Hash class, but that would expose the overrides globally; i really want to change the definition of hash on an instance by instance basis
<_bart>
do I need "# encoding: UTF-8" at the top of every file of my gem, or just the main .rb file that includes all the other files.
<Spaceghostc2c>
Just the ones containing utf-8 characters.
<rbuck>
shevy: right now i am trying out something like this, which does not quite work: http://pastie.org/4922355
<Mon_Ouie>
You need it in every file where you want the encoding of string and regexp literals to be set to UTF-8
abstrusenick has quit [Client Quit]
br4ndon has joined #ruby
ABK has joined #ruby
Zai_ has joined #ruby
<_bart>
that means every single file :/
<_bart>
weird that it's not default
<otters>
probably creates some overhead
timonv has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
<brotspinne>
_bart: the thing is that unicode characters in code are rare but sometimes you have them in regex for example
ABK has quit [Read error: Connection reset by peer]
<Mon_Ouie>
I think even UTF-8 strings have a flag that says if the nth character (or code point, really) is just the nth byte, so it shouldn't be that big
ABK has joined #ruby
vjt has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 255 seconds]
<_bart>
I'd rather be certain that everything gets properly interpreted as UTF-8 than have some less overhead.
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
ABK has quit [Read error: Connection reset by peer]
lggr has joined #ruby
lkba has joined #ruby
ABK has joined #ruby
<vectorshelve>
Hi all...
<brotspinne>
hi
<vectorshelve>
I am looking for an Ruby API for dictionary...
<vectorshelve>
for writing a gem
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
g-ram has joined #ruby
codefyre has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 256 seconds]
Nisstyre-laptop has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
lggr has joined #ruby
reuf has joined #ruby
r1ddl3r has quit [Ping timeout: 246 seconds]
cakehero has joined #ruby
ABK has quit [Read error: Connection reset by peer]
elico has quit [Read error: Connection reset by peer]
elico has joined #ruby
elico has quit [Read error: Connection reset by peer]
elico has joined #ruby
vectorshelve has quit [Quit: Page closed]
nwertman has joined #ruby
workmad3 has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
g-ram has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
lggr has joined #ruby
icole has joined #ruby
irleif has joined #ruby
oldB has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
Tom2 has quit [Ping timeout: 245 seconds]
<shevy>
3 seconds questions..
lggr has quit [Ping timeout: 264 seconds]
r1ddl3r has joined #ruby
quest88 has joined #ruby
icole has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
<_bart>
what's the difference between .scan and .match?
seme has joined #ruby
ABK has joined #ruby
<seme>
hi guys... can anyone explain to me why doing raw_instances[x].content.to_s.strip would not strip the whitespace away from the end of the string?
<seme>
I know I must be missing something here but I'm not sure what
steakknife has left #ruby [#ruby]
<shevy>
_bart I think what it returns
cburyta has joined #ruby
<codefyre>
_bart: scan return all the matches , match return the first one
<shevy>
so it seems the first returns an Array, the second a MatchData object
<shevy>
seme what is the context
cakehero has quit [Quit: Computer has gone to sleep.]
<shevy>
seme see: " abc ".strip # => "abc"
<shevy>
so .strip definitely works
<havenn>
seme: can you post what you're trying to strip for us?
ABK has quit [Read error: Connection reset by peer]
<seme>
shevy: well I queried an html page using nokogiri and then I wanted to store the content of one of the elements in a variable... so i did the following instance = raw_instances[x].content.to_s.strip
ABK has joined #ruby
<seme>
is it doing something like stripping the data but then returning the original data?
<seme>
would something like strip! work
cburyta has quit [Ping timeout: 260 seconds]
<havenn>
seme: Maybe, we'd have to see the code. Try #strip! and if it doesn't work paste a gist for us of the Nokogiri > strip.
<shevy>
with .strip! you would not need to do x = y.something
<shevy>
you could do y.something!
lggr has quit [Ping timeout: 244 seconds]
<prox|a>
stripper.strip!
<seme>
ok cool thanks.. let me try that
<_bart>
why does .match also return inactive regexp groups (?:*****)
ABK has quit [Read error: Connection reset by peer]
saschagehlich_ has joined #ruby
ABK has joined #ruby
<shevy>
inactive?
<shevy>
dunno
<shevy>
I usually use .scan
<shevy>
or .grep
lggr has joined #ruby
frogprince_mac has joined #ruby
seme_ has joined #ruby
saschagehlich has quit [Ping timeout: 240 seconds]
saschagehlich_ is now known as saschagehlich
ABK has quit [Read error: Connection reset by peer]
RudyValencia has quit [Quit: My IRC client doesn't advertise in /quit messages.]
ABK has joined #ruby
dakine has joined #ruby
wallerdev has joined #ruby
jgrevich has joined #ruby
ABK has quit [Read error: Connection reset by peer]
<krion>
ratings[rate] += 1 works in the embedded interpreter but not with irb
<krion>
so i suppose irb is right and the site is wrong ;)
jgrevich_ has joined #ruby
<krion>
hum weird...
<krion>
i make it work one time, clear the hash, retry, and now it doesn't work
ltsstar has quit [Quit: ltsstar]
chussenot_ has joined #ruby
chussenot has quit [Read error: Connection reset by peer]
jgrevich has quit [Ping timeout: 256 seconds]
jgrevich_ is now known as jgrevich
<Igneous>
can someone explain to me why I need to do 'return(not arr.empty?)', whereas I can get away with 'return ! arr.empty?'. I thought the only thing that differed between not and ! was precedence. Is ! pre-ceeding the execution or return or something?
bigkevmcd has joined #ruby
icole has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
chussenot_ is now known as chussenot
ABK has quit [Ping timeout: 245 seconds]
Tom2 has joined #ruby
F1skr has joined #ruby
lggr has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
<havenn>
krion: For various reasons, TryRuby.org is not at all a full Ruby REPL, like Pry or IRB. TryRuby is really meant for following the lesson.
<krion>
incrementing works sometimes, other time not
havenn has quit [Remote host closed the connection]
vitor-br has quit [Remote host closed the connection]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
noyb has joined #ruby
irleif has joined #ruby
<Igneous>
krion: glancing at that.. ratings looks like it's a hash.. whereas you're manipulating it like it's an array. Try ratings[:rate]
<Igneous>
nevermind, I'm being an idiot today
lggr has quit [Ping timeout: 240 seconds]
fram has joined #ruby
BMF has joined #ruby
lggr has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
shevy has quit [Ping timeout: 246 seconds]
oldB has quit [Quit: oldB]
TomJ has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
r1ddl3r has quit [Ping timeout: 246 seconds]
timonv has quit [Remote host closed the connection]
awestroke has joined #ruby
rbuck has quit [Quit: Leaving.]
r1ddl3r has joined #ruby
g-ram has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
seme_ has quit [Quit: Changing server]
jrizzo has joined #ruby
jrizzo is now known as seme
<_bart>
krion: what is the value of 'rate'
<_bart>
krion: it's not a symbol or an integer index so I guess it's nil
<Igneous>
krion: I think it's because your ratings hash is totally empty. += is trying to add 1 to nil (because both the value and key are previously undefined)
<_bart>
oh wait
<_bart>
this is from the ruby course right?
mucker has quit [Quit: leaving]
Takehiro has quit [Remote host closed the connection]
Jay_Levitt has joined #ruby
<_bart>
=+1 is just setting the value
<_bart>
like Igneous said, it's trying to add to nil in the first line
Jay_Levitt has quit [Client Quit]
shevy has joined #ruby
Jay_Levitt has joined #ruby
Jay_Levitt has quit [Client Quit]
JonnieCache has joined #ruby
<_bart>
so book.values and ratings don't work together well the first time, the second time you set initial values, and that's why it's working the third time
<_bart>
so it's normal behaviour
chussenot has quit [Quit: chussenot]
rabidpraxis has joined #ruby
senny has quit [Remote host closed the connection]
khakimov has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
<Igneous>
so, test to see if the values are defined the first time around that loop, if they aren't, just assign them with = instead of doing an AND assignment.. and you should be fine
davidcelis has joined #ruby
mengu has joined #ruby
lggr has joined #ruby
bigkevmcd has quit [Remote host closed the connection]
<seme>
hrm.. still having issues with this stripping thing... I pasted the code here... can someone take a look and point me in the right direction, http://pastebin.com/KmuhFq2d
g-ram has quit [Quit: Computer has gone to sleep.]
geekyogi has joined #ruby
havenn has joined #ruby
JonnieCache has quit [Read error: Operation timed out]
timonv has joined #ruby
lushious has quit [Remote host closed the connection]
incagneato has joined #ruby
lushious has joined #ruby
timonv has quit [Remote host closed the connection]
heftig has quit [Quit: leaving]
lggr has quit [Ping timeout: 248 seconds]
incagneato has quit [Client Quit]
mag00 has joined #ruby
fram has quit [Remote host closed the connection]
lggr has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
cburyta has joined #ruby
havenn has quit [Ping timeout: 246 seconds]
kirun_ has quit [Ping timeout: 246 seconds]
<seme>
I mean this is odd... look at this.. if I print i I get "blah " as the output if I print i.strip I get "blah " as the output
<seme>
i being my variable holding the string "blah "
<seme>
man I must either be crazy or really tired
<codefyre>
i.strip return the stripped version, it doesn't modify 'i'
<codefyre>
maybe you want i.strip!
<seme>
right but if I'm doing puts i.strip it should print the stripped version right
zigomir has quit [Remote host closed the connection]
<seme>
I tried that too and it is the same
<seme>
actually if I print j.strip! it prints nil
khakimov has quit [Quit: Computer has gone to sleep.]
Nisstyre-laptop has quit [Remote host closed the connection]
<shevy>
blazes816, do you think zykes- will use ruby in the future?
<blazes816>
i have no idea
havenn has quit [Ping timeout: 244 seconds]
<workmad3>
mag00: you're finding all the factors
<workmad3>
mag00: but not all factors are prime
<mag00>
yessir
<shevy>
mag00 always try to simplify your code
<mag00>
basically, i can't turn 4 (in this example) into 2, 2
jrist-afk has quit [Ping timeout: 268 seconds]
<mag00>
shevy: thanks. i do love me some simple code
daniel_- has joined #ruby
daniel_- has quit [Client Quit]
lggr has quit [Ping timeout: 255 seconds]
<mag00>
shevy: i've tried to make it simpler, can prob try again
<mag00>
shevy: just not seeing it
<workmad3>
mag00: ok, so it looks like you need to do a small bit of recursion
<workmad3>
mag00: so for each item in the factorisation in your array, you need to see if it's a prime or not, and if it isn't then you need to repeat the process on *that* number
timonv has joined #ruby
<shevy>
mag00 yeah your method looks not easy to simplify right now
<workmad3>
mag00: and repeat until all the numbers are prime
<mag00>
workmad3: should i open up a new each operation on the array you think?
<mag00>
shevy: yeah, it's prob the sqrt action. it's a brow-raiser.
<shevy>
I am on 1.8.x again right now for testing :\
Solnse has joined #ruby
<mag00>
1.9.2 i think
<mag00>
i think require 'mathn' might work
Takehiro has joined #ruby
rabidpraxis has joined #ruby
lggr has joined #ruby
<shevy>
cool
<shevy>
indeed
<shevy>
dont think I had to require mathn before haha
<shevy>
I keep on saying, I use only 25% of what ruby offers :P
eikko has joined #ruby
<mag00>
yeah it's nuts i feel the same
<mag00>
perhaps more like 6%
<mag00>
for me
chrishunt has joined #ruby
<lagzilla>
cool thank you :)
factum has left #ruby [#ruby]
tbrock has joined #ruby
<tbrock>
hey guys when using spawn if you have arguments that start with "--" to make "--arg" how do you specify them correctly?
lggr has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
xkx_ has joined #ruby
havenn has joined #ruby
Takehiro has quit [Remote host closed the connection]
huismon has joined #ruby
matled- has joined #ruby
ltsstar has joined #ruby
<tbrock>
anyone?
epitron__ has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
JonnieCache has joined #ruby
rmc3_ has joined #ruby
bnagy_ has joined #ruby
fred_ has joined #ruby
Jb___ has joined #ruby
Boohbah_ has joined #ruby
mksm has joined #ruby
fred_ is now known as Guest44051
rubious has quit [Quit: Leaving...]
elspeth_ has joined #ruby
mksm is now known as Guest58426
hardcore_ has joined #ruby
awarner has quit [Remote host closed the connection]
lggr has joined #ruby
havenn has quit [Ping timeout: 246 seconds]
igneous1 has joined #ruby
Viper has joined #ruby
iosctr_ has joined #ruby
Whooop has joined #ruby
JoeTheGuest_ has joined #ruby
Viper is now known as Guest29403
joschi- has joined #ruby
sarmiena_ has joined #ruby
chrishunt has quit [Quit: WeeChat 0.3.8]
ShiintoRyuu has quit [*.net *.split]
KillerFox has quit [*.net *.split]
neersighted has quit [*.net *.split]
mattp_ has quit [*.net *.split]
Igneous has quit [*.net *.split]
xkx has quit [*.net *.split]
hardcore has quit [*.net *.split]
Guest52560 has quit [*.net *.split]
epitron has quit [*.net *.split]
bnagy has quit [*.net *.split]
markss has quit [*.net *.split]
matled has quit [*.net *.split]
Veejay has quit [*.net *.split]
felipe has quit [*.net *.split]
jim_cooley has quit [*.net *.split]
jeekl has quit [*.net *.split]
Whoop has quit [*.net *.split]
joschi has quit [*.net *.split]
fred has quit [*.net *.split]
JoeTheGuest has quit [*.net *.split]
elspeth has quit [*.net *.split]
rmc3 has quit [*.net *.split]
Boohbah has quit [*.net *.split]
Jb_ has quit [*.net *.split]
nate_h has quit [*.net *.split]
joelio has quit [*.net *.split]
iosctr has quit [*.net *.split]
vjt has quit [*.net *.split]
hoelzro|away has quit [*.net *.split]
tomaw has quit [*.net *.split]
ElderFain has quit [*.net *.split]
gianlucadv has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
rotor has quit [*.net *.split]
ixx has quit [*.net *.split]
maxmanders has quit [*.net *.split]
Drakevr has quit [*.net *.split]
Derander has quit [*.net *.split]
yellow5 has quit [*.net *.split]
zaiste has quit [*.net *.split]
Araxia has quit [*.net *.split]
lushious has quit [*.net *.split]
lkba has quit [*.net *.split]
preller has quit [*.net *.split]
WanderingGlitch has quit [*.net *.split]
zeromodulus has quit [*.net *.split]
dv_ has quit [*.net *.split]
hackeron has quit [*.net *.split]
dekz has quit [*.net *.split]
issyl0 has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
whowantstolivefo has quit [*.net *.split]
Companion has quit [*.net *.split]
TheNumb has quit [*.net *.split]
Guest96590 has quit [*.net *.split]
madhatter has quit [*.net *.split]
etank has quit [*.net *.split]
matled- is now known as matled
iosctr_ is now known as iosctr
vjt has joined #ruby
hoelzro|away has joined #ruby
tomaw has joined #ruby
cjk101010 has joined #ruby
ElderFain has joined #ruby
rotor has joined #ruby
yellow5 has joined #ruby
Derander has joined #ruby
zaiste has joined #ruby
gianlucadv has joined #ruby
maxmanders has joined #ruby
Drakevr has joined #ruby
ixx has joined #ruby
joelio_ has joined #ruby
Araxia has joined #ruby
lkba has joined #ruby
hackeron has joined #ruby
WanderingGlitch has joined #ruby
preller has joined #ruby
dekz has joined #ruby
dv_ has joined #ruby
lushious has joined #ruby
issyl0 has joined #ruby
zeromodulus has joined #ruby
Companion has joined #ruby
whowantstolivefo has joined #ruby
TheNumb has joined #ruby
etank has joined #ruby
madhatter has joined #ruby
Guest96590 has joined #ruby
eikko has quit [Read error: No buffer space available]
kitofr has quit [Read error: Connection reset by peer]
ltsstar has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
eikko has joined #ruby
ltsstar has joined #ruby
epitron__ is now known as epitron
daniel_- has joined #ruby
Banistertab has quit [Ping timeout: 257 seconds]
JonnieCache has quit [Read error: Operation timed out]
mattp_ has joined #ruby
kitofr has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
monkegjinni has joined #ruby
jgwong has quit [Ping timeout: 255 seconds]
Nisstyre-laptop has quit [Remote host closed the connection]
vjt has quit [*.net *.split]
tomaw has quit [*.net *.split]
hoelzro|away has quit [*.net *.split]
ElderFain has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
gianlucadv has quit [*.net *.split]
rotor has quit [*.net *.split]
ixx has quit [*.net *.split]
maxmanders has quit [*.net *.split]
yellow5 has quit [*.net *.split]
Drakevr has quit [*.net *.split]
Derander has quit [*.net *.split]
zaiste has quit [*.net *.split]
vjt has joined #ruby
tomaw has joined #ruby
cjk101010 has joined #ruby
ElderFain has joined #ruby
rotor has joined #ruby
gianlucadv has joined #ruby
Drakevr has joined #ruby
ixx has joined #ruby
hoelzro|away has joined #ruby
Derander has joined #ruby
maxmanders has joined #ruby
yellow5 has joined #ruby
zaiste has joined #ruby
jgwong has joined #ruby
mag00 has quit [Quit: Page closed]
reset has quit [Quit: Leaving...]
jeekl has joined #ruby
lggr has joined #ruby
zeromodulus has quit [Ping timeout: 252 seconds]
Veejay has joined #ruby
Nisstyre-laptop has joined #ruby
jim_cooley has joined #ruby
<aef>
there is a core library named Etc which is butt ugly. i need to access the usernames of the members of a specific group in my linux system. is there a library with a prettier interface than Etc around which can handle this for me?
swarley has quit [Ping timeout: 240 seconds]
Tombar has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
timonv has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
chriskk has quit [Quit: chriskk]
<Solnse>
I'm trying to create a rock paper scissors tournament for homework, I've created this method that will accept the hash: http://pastebin.com/D1VWK6t7 but I'm confused how I pass the hash to it and create the next round... Am I going in a wrong direction?
Virunga has quit [Remote host closed the connection]
conor_ireland has joined #ruby
saschagehlich has joined #ruby
bradyl0ve has joined #ruby
eldariof has quit []
lggr has quit [Ping timeout: 245 seconds]
icole has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
GHOSTnew has joined #ruby
<GHOSTnew>
hi
glyytchy has quit [Quit: Leaving...]
lggr has joined #ruby
Banistergalaxy has joined #ruby
icole has quit [Ping timeout: 245 seconds]
Experium has joined #ruby
<Experium>
Could someone explain to me what this algorithm is doing its hard to grasp the meaning and reasons for doing all these tasks -> http://pastebin.com/S89Z5rPk
vlad_starkov has quit [Remote host closed the connection]
havenn has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
<iamjarvo>
burgestrand: i sort of get it sort of don't. think i need to look up into forking some more
_md has joined #ruby
lggr has joined #ruby
Takehiro has quit [Ping timeout: 260 seconds]
saschagehlich has quit [Quit: saschagehlich]
irleif has quit [Quit: Computer has gone to sleep.]
Virunga has joined #ruby
saschagehlich has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
noyb has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby
binw has joined #ruby
werdnativ has joined #ruby
lggr has joined #ruby
kyb3r has joined #ruby
Araxia has quit [Quit: Araxia]
havenn has quit [Remote host closed the connection]
werdnativ has quit [Quit: werdnativ]
lggr has quit [Ping timeout: 246 seconds]
cyong has joined #ruby
eikko has quit [Read error: Connection reset by peer]
lggr has joined #ruby
cyong has quit [Client Quit]
cyong has joined #ruby
Guest29080 has quit [Ping timeout: 240 seconds]
colinbm has joined #ruby
cyong has quit [Client Quit]
c0rn_ has quit []
vlad_starkov has quit [Remote host closed the connection]
gogiel has quit [Ping timeout: 246 seconds]
cyong has joined #ruby
incogneato has quit [Quit: Page closed]
thisirs has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
_md has quit [Quit: Leaving...]
kyb3r has quit []
colinbm has quit [Quit: colinbm]
Jork1 has joined #ruby
lggr has joined #ruby
eikko has joined #ruby
awarner has joined #ruby
headius has joined #ruby
thone has joined #ruby
BSaboia has joined #ruby
Dawne has joined #ruby
thone_ has quit [Ping timeout: 240 seconds]
Virunga has quit [Remote host closed the connection]
grizlo42 has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
brianpWins has joined #ruby
dangerousdave has quit [Quit: Leaving...]
eikko has quit [Read error: Connection reset by peer]
rabidpraxis has quit [Remote host closed the connection]
alanp has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 255 seconds]
bradyl0ve has quit [Quit: Leaving...]
GHOSTnew has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
cyong has quit [Quit: Leaving.]
lggr has joined #ruby
joeycarmello has quit [Remote host closed the connection]
joeycarmello has joined #ruby
eikko has joined #ruby
nimred has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 240 seconds]
eikko has quit [Read error: Connection reset by peer]
A124 has quit [Quit: Leaving.]
awestroke has quit [Remote host closed the connection]
lggr has joined #ruby
Takehiro has joined #ruby
Dawne has quit [Quit: Leaving.]
JonnieCache has joined #ruby
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
cakehero has joined #ruby
Takehiro has quit [Ping timeout: 260 seconds]
fixl has joined #ruby
timonv has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
Xeago_ has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
fridim_ has joined #ruby
igneous1 has quit [Quit: WeeChat 0.3.8]
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
eikko has joined #ruby
lggr has joined #ruby
jrajav has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
sarmiena_ has quit [Quit: sarmiena_]
timonv has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
JonnieCache has quit [Ping timeout: 255 seconds]
<_bart>
I know I can do /z[^x]+xb/ to select this: zaaaaaaxb, but what I only want the regexp to 'stop' at 'xb' and not just 'x', doing [^xb] would be EITHER x or b, but how to do an exact ^ match?
samphippen has joined #ruby
notVert has joined #ruby
<waxjar>
/z[^x]$/ ?
<waxjar>
* /z[^x]+$/
rubious has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Solnse has quit [Ping timeout: 246 seconds]
Coolhand has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 244 seconds]
icole has joined #ruby
lggr has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
nimred has quit [Ping timeout: 260 seconds]
sarmiena_ has joined #ruby
noyb has quit [Ping timeout: 260 seconds]
nimred has joined #ruby
eikko has quit [Read error: Connection reset by peer]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<_bart>
waxjar: no I'm looking for [^'xb'] if you know what I mean, I want the 'xb' to be treated as a whole and not single characters
Z0idberg has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
havenn has joined #ruby
nilg has joined #ruby
skogis has quit [Ping timeout: 256 seconds]
eikko has joined #ruby
lggr has joined #ruby
jenrzzz has joined #ruby
<waxjar>
i don't get it. do you have an example of what kind of string you're trying to match?
<canton7>
_bart, search for negative lookahead/lookbehind in the ruby regex page
<canton7>
unfortunately that doesn't cover your exact case...
<blazes816>
_bart: ^(xb)
<blazes816>
or ^(?:xb) for a non-cap group
frogprince_mac has quit [Quit: Leaving...]
senny has quit [Remote host closed the connection]
<_bart>
ah soooo easy
<_bart>
blazes816, thanks
<blazes816>
(im_treated_as_one_token) vs. [im_a_list_of_individual_tokens]