chimkan has quit [Read error: Connection reset by peer]
yuike has joined #ruby
atmosx has joined #ruby
xsbeats__ has joined #ruby
chimkan has joined #ruby
tommyvyo has joined #ruby
manizzle has joined #ruby
pac1 has joined #ruby
Chryson has joined #ruby
emergion has quit [Ping timeout: 264 seconds]
dagnachew has quit [Quit: Leaving]
clj_newb has quit [Ping timeout: 246 seconds]
chimkan has quit [Client Quit]
_cheney2 has joined #ruby
_cheney has quit [Ping timeout: 252 seconds]
skaragianis has quit [Read error: Connection reset by peer]
skaragianis_ has joined #ruby
nat2610 has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
Bosma has joined #ruby
yuike has quit [Quit: Computer has gone to sleep.]
slainer68 has quit [Remote host closed the connection]
chrisbislr has joined #ruby
<chrisbislr>
does anyone know why I'd be having trouble with directory_watcher under the latest revision of ruby 1.9.3?
freakazoid0223 has joined #ruby
kil0byte has joined #ruby
<chrisbislr>
don't worry I think I fixed it
_alejandro has joined #ruby
marknyc has joined #ruby
alejandro_ has quit [Ping timeout: 246 seconds]
osvico has quit [Ping timeout: 248 seconds]
Chryson has quit [Quit: Leaving]
mercwithamouth has joined #ruby
osvico has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
alejandro_ has joined #ruby
mikemac has quit [Read error: Connection reset by peer]
J-_-L has joined #ruby
Ivo has quit [Quit: WeeChat 0.3.9.1]
<jrajav>
Phew
<jrajav>
You had my worried there
<chrisbislr>
ha ha
daniel_- has quit [Ping timeout: 246 seconds]
_alejandro has quit [Ping timeout: 246 seconds]
stephenjudkins has quit [Quit: stephenjudkins]
ttt has joined #ruby
joeycarmello has joined #ruby
arya_ has joined #ruby
tjbiddle has joined #ruby
zomgbie has joined #ruby
skaragianis_ has quit [Quit: skaragianis_]
joeycarmello has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
bradhe has joined #ruby
tjbiddle has quit [Client Quit]
thinkdev_ has quit [Remote host closed the connection]
My_Hearing has quit [Ping timeout: 246 seconds]
My_Hearing has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
zomgbie has quit [Ping timeout: 276 seconds]
tjbiddle has joined #ruby
slainer68 has joined #ruby
bbloom has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
wpaulson has joined #ruby
nari has joined #ruby
wpaulson has quit [Client Quit]
Hanmac1 has joined #ruby
elkclone has quit [Ping timeout: 246 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
JodaZ has quit [Quit: No Ping reply in 180 seconds.]
mengu has quit [Read error: Operation timed out]
JodaZ has joined #ruby
sheerun has left #ruby [#ruby]
slainer68 has quit [Ping timeout: 255 seconds]
tjbiddle has quit [Quit: tjbiddle]
JodaZ has quit [Quit: No Ping reply in 180 seconds.]
JodaZ has joined #ruby
u89 has quit [Remote host closed the connection]
pyreal has quit [Quit: pyreal]
<Elico>
Is there any way class\gem that can help parse this output into parts? http://pastie.org/5399150
JodaZ has quit [Client Quit]
JodaZ has joined #ruby
<Elico>
it's like a tree with leafs
<Elico>
category and from there into sub and options. it has specific rules of structure.
nari has quit [Ping timeout: 260 seconds]
notVert has joined #ruby
cyong has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
adeponte has joined #ruby
slash_nick has quit [Read error: Operation timed out]
_alejandro has joined #ruby
<blazes816>
Elico: check out treetop
atmosx has quit [Quit: And so the story goes…]
chrisbislr has quit [Remote host closed the connection]
<Elico>
blazes816: thanks
Synthead has quit [Ping timeout: 244 seconds]
alejandro_ has quit [Ping timeout: 260 seconds]
joeycarmello has joined #ruby
kil0byte has quit [Remote host closed the connection]
joeycarmello has quit [Remote host closed the connection]
tommyvyo has joined #ruby
joeycarmello has joined #ruby
Ivo has joined #ruby
diegoviola has joined #ruby
adeponte has quit [Remote host closed the connection]
jeffreybaird has joined #ruby
nari has joined #ruby
kil0byte has joined #ruby
bier_ has joined #ruby
SDr has left #ruby [#ruby]
BSaboia has quit [Read error: Connection reset by peer]
tbrock has joined #ruby
<Elico>
blazes816: I am a bit confused on how to use it but I think that regex match can do me the trick if I will think more. it's kind of recursive but since it's only 2-3 levels deep... it's not that bad.
JodaZ has quit [Quit: No Ping reply in 180 seconds.]
JodaZ has joined #ruby
celthunder has quit [Remote host closed the connection]
pac1 has quit [Quit: I got it one line of code at a time]
celthunder has joined #ruby
tbrock has quit [Ping timeout: 260 seconds]
tbrock has joined #ruby
celthunder has quit [Remote host closed the connection]
celthunder has joined #ruby
celthunder has quit [Remote host closed the connection]
tbrock has quit [Quit: Computer has gone to sleep.]
pipopopo has quit [Read error: Connection reset by peer]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
theRoUS has quit [Ping timeout: 264 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
medik has quit [Quit: medik has no reason]
zomgbie has joined #ruby
CaptainJet has joined #ruby
bluOxigen has joined #ruby
pipopopo has joined #ruby
emergion has joined #ruby
bradhe has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
_alejandro has quit [Remote host closed the connection]
zomgbie has quit [Ping timeout: 252 seconds]
synthetix has joined #ruby
c0rn has joined #ruby
emergion has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 276 seconds]
cyong has quit [Quit: Leaving.]
swarley has quit [Remote host closed the connection]
emergion has joined #ruby
bradhe has joined #ruby
tbrock has joined #ruby
c0rn has quit []
BoomCow has quit [Quit: This computer has gone to sleep]
swarley has joined #ruby
LBRapid has quit [Quit: Leaving]
Slivka has quit [Read error: Connection reset by peer]
etcetera has quit [Ping timeout: 264 seconds]
BoomCow has joined #ruby
chessguy has quit [Remote host closed the connection]
LouisGB has quit [Ping timeout: 240 seconds]
xenoterracide has joined #ruby
tbrock has quit [Ping timeout: 248 seconds]
xenoterracide has left #ruby ["Konversation terminated!"]
tbrock has joined #ruby
J-_-L has quit [Ping timeout: 252 seconds]
tbrock has quit [Ping timeout: 246 seconds]
brianpWins has joined #ruby
dorei has quit []
tjbiddle has joined #ruby
chrishunt has joined #ruby
zzyybb has joined #ruby
etcetera has joined #ruby
NuclearLucifer has quit [Ping timeout: 265 seconds]
tjbiddle has quit [Client Quit]
emergion has quit [Read error: Connection reset by peer]
marius has quit []
gbchaosmaster has joined #ruby
areil has joined #ruby
arya_ has quit [Ping timeout: 244 seconds]
jamesaxl has quit [Ping timeout: 246 seconds]
niklasb has quit [Ping timeout: 260 seconds]
ananthakumaran has joined #ruby
arya has joined #ruby
ghanima has joined #ruby
<ghanima>
hello all
cyong has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
hemanth has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
<ghanima>
I was wondering if I can ask your opinion... I am working with an HTML table I have pulled from nokogiri. The table is nested and classified in 3 ways. What I am trying to do is organize the results were each classification is in its own array(i think)... example [class1[entry0][element1, element2, element3]]
<ghanima>
is this the right approach
d2dchat has joined #ruby
ewag has joined #ruby
hemanth has joined #ruby
nat2610 has quit [Quit: Leaving.]
_alejandro has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
nat2610 has joined #ruby
blazes816 has quit [Quit: blazes816]
pu22l3r has joined #ruby
dedis has joined #ruby
dedis has quit [Excess Flood]
rohit has joined #ruby
zomgbie has joined #ruby
sawu has joined #ruby
stephenjudkins has joined #ruby
dedis has joined #ruby
dedis has quit [Excess Flood]
AlbireoX`Laptop has joined #ruby
zomgbie has quit [Ping timeout: 255 seconds]
AlbireoX has quit [Ping timeout: 268 seconds]
ner0x has quit [Quit: Leaving]
AlbireoX`Laptop has quit [Remote host closed the connection]
dedis has joined #ruby
dedis has quit [Remote host closed the connection]
cyong has quit [Quit: Leaving.]
jxf has quit [Ping timeout: 246 seconds]
andrewhl has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
ryanlecompte has joined #ruby
cyong has joined #ruby
marknyc has quit []
haxrbyte has joined #ruby
rachelE has joined #ruby
<rachelE>
hi
Elico has quit [Quit: elico]
sawu is now known as _sah
adeponte has joined #ruby
CaptainJet has quit []
<rachelE>
I have a question about join models and Rails. I have two tables and I want to return each customer that has ever been contacted, the last time they have been contacted, who contacted them at that time and how they where contacted
haxrbyte_ has joined #ruby
dedis has joined #ruby
bigmac has quit [Ping timeout: 260 seconds]
haxrbyte has quit [Ping timeout: 244 seconds]
arya has quit [Ping timeout: 244 seconds]
<rohit>
rachelE, I think you'll get a response in #RubyOnRails rather then here
ewag has quit [Ping timeout: 245 seconds]
Zolrath has quit []
jgrevich_ has joined #ruby
arya has joined #ruby
RantriX has joined #ruby
d2dchat has quit [Remote host closed the connection]
x82_nicole has quit [Quit: Computer has gone to sleep.]
<gbchaosmaster>
ghanima: And the output that you want from that?
BoomCow has quit [Quit: Leaving]
<ghanima>
gbchaosmaster: I need to parse all of those entries and put them into a hash
<ghanima>
each entry should represent a key, value pair
<ghanima>
but the hash should be nested
<ghanima>
does that make sense?
Jasko has quit [Read error: Connection reset by peer]
adeponte has quit [Remote host closed the connection]
Jasko has joined #ruby
<gbchaosmaster>
ghanima: Sort of. Could I get that input as a paste on http://gist.github.com and not as a raw string, i.e. actual newlines instead of \n so I can see what the table looks when printed?
<ghanima>
gbchaosmaster: Sure one moment
<swarley>
[0] pry(main)> %S{hello symbol world!}
<swarley>
=> [:hello, :symbol, :world]
<swarley>
because i'm just that awesome
<swarley>
owait
radic has quit [Ping timeout: 246 seconds]
* swarley
changes a regex paren
<swarley>
=> [:hello, :symbol, :world!]
<swarley>
That's better
<gbchaosmaster>
swarley: Is this really possible in 1.9.3?! I know that 2.0 is going to have a %i literal, but I didn't know that you could monkey patch that.
<gbchaosmaster>
Thought it was hardcoded in the parser.
alexshenoy has quit [Quit: alexshenoy]
<reactormonk>
swarley, nice, didn't know that
<swarley>
gbchaosmaster; Its only with my gem haha, and only in pry. I could probably extend it to work with eval and require
fbernier has quit [Read error: Connection reset by peer]
<gbchaosmaster>
Hmm, nasty text to parse, but definitely doable. If you don't mind, just type out a bit of what the resulting hash would look like? You don't have to type out the whole thing, just one or two entries so I know if I'm doing it right.
Zolrath has quit []
<ghanima>
gbchaosmaster: Tell me about it
<ghanima>
gbchaosmaster: The has should look like this
vlad_starkov has quit [Remote host closed the connection]
My_Hearing has quit [Ping timeout: 246 seconds]
<ghanima>
gbchaosmaster: I hope that makes sense
<a215>
the C.H.U.D.S.
ewag has joined #ruby
My_Hearing has joined #ruby
My_Hearing has quit [Changing host]
My_Hearing has joined #ruby
triskt has joined #ruby
d2dchat has joined #ruby
verbad has joined #ruby
Hanmac1 is now known as Hanmac
jrajav has quit [Quit: I tend to be neutral about apples]
<gbchaosmaster>
Can you edit that Gist and put that in there as a separate file so I can see them right next to each other? I don't have my computer with me and I'm workin' off of a tablet, sorry for any slowness/neediness. =P
<rking>
dcope: That's just the confusing way RSpec rolls.
<rking>
They didn't want the stubbing to be less confusing than the rest of RSpec, so they made it convoluted.
<rking>
You say the assertion before the code runs, then some handwavy thing at the end of the 'it' block checks them all
sdk has joined #ruby
<dcope>
rking: ah, that's rather interesting
<gbchaosmaster>
ghanima: Ahh, forgot to highlight you above
<gbchaosmaster>
ghanima: See ^
<ghanima>
np
ananthakumaran has quit [Quit: Leaving.]
yakko has quit [Read error: Connection reset by peer]
love_color_text has joined #ruby
synthetix has quit [Ping timeout: 246 seconds]
havenn has quit [Remote host closed the connection]
bigmcq77 has quit [Quit: Computer has gone to sleep.]
J-_-L has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
cyong has quit [Quit: Leaving.]
Jasko has joined #ruby
havenn has quit [Ping timeout: 240 seconds]
<dcope>
rking: Why does it get called in every it block?
<rking>
dcope: Because of some crazy bit of RSpec. Do you want me to find the crazy bit?
<dcope>
Sure
bigmcq77 has joined #ruby
<rking>
K
<rking>
I'm going into RSpec code. If I don't come out alive tell my repos I loved them.
<dcope>
heh
<dcope>
:D
hsbt_away is now known as hsbt
<dcope>
I'm looking at this test file and just can't seem to grasp it :/
chrishunt has quit [Quit: Leaving...]
J-_-L has quit [Ping timeout: 245 seconds]
AnarchoTroll has joined #ruby
Shamgar has joined #ruby
<rking>
Ha, there's a classic confusing thing from rspec: klass.any_instance.should_not_receive(:existing_method)
<rking>
Trying so hard to sound like English and yet ending up pretty kooky (unless every instance in all of ObjectSpace recieves :existing_method, that should assert true)
<gbchaosmaster>
ghanima: text.split.map(&:strip).reject(&:empty?) gets you a little closer to where you wanna be, but man, I'm not sure if this data is consistently spread out enough to be parsed reliably.
My_Hearing is now known as Mon_Ouie
verbad has quit []
cyong has joined #ruby
cyong has quit [Client Quit]
iamjarvo has quit [Quit: Computer has gone to sleep.]
<BryanWB_>
how do i remove a gem that i have publish to rubygems.org?
_sah has quit [Quit: Zzzzzzzz...]
aleiphoenix has joined #ruby
aleiphoenix has left #ruby [#ruby]
hotovson has joined #ruby
shtirlic has joined #ruby
<BryanWB_>
ok, gem yank
BryanWB_ has left #ruby [#ruby]
pavilionXP has joined #ruby
hotovson has quit [Ping timeout: 248 seconds]
shtirlic has quit [Ping timeout: 252 seconds]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
greenarrow has quit [Ping timeout: 268 seconds]
greenarrow has joined #ruby
topek has joined #ruby
nomenkun has joined #ruby
pavilionXP__ has joined #ruby
pavilionXP__ has quit [Client Quit]
FredLe has joined #ruby
answer_42 has joined #ruby
vlad_starkov has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9.1]
pcarrier has quit []
nomenkun has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
hotovson_ has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
Mon_Ouie has quit [Ping timeout: 260 seconds]
AndChat| has quit [Ping timeout: 246 seconds]
Banistergalaxy has joined #ruby
hotovson_ has quit [Ping timeout: 246 seconds]
kil0byte_ has joined #ruby
vlad_starkov has joined #ruby
kil0byte has quit [Ping timeout: 240 seconds]
twinturbo has joined #ruby
mahmoudimus has joined #ruby
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
_sah has joined #ruby
slainer68 has joined #ruby
ecart has joined #ruby
dhruvasagar has joined #ruby
<ecart>
I got some emails and would like to see if they are valid
<ecart>
someone has a script ready for this?
tuannat has joined #ruby
joeycarmello has quit [Remote host closed the connection]
<cirwin>
ecart: the mail gem
<cirwin>
though it depends what you mean by valid?
Juul has joined #ruby
BoomCow has quit [Quit: Leaving]
BoomCow has joined #ruby
nilg has joined #ruby
<ecart>
jnr_ssa@hotmail.com - Result: Ok
<ecart>
MX record about hotmail.com exists.
<ecart>
Connection succeeded to mx4.hotmail.com SMTP.
<ecart>
220 SNT0-MC4-F6.Snt0.hotmail.com Sending unsolicited commercial or bulk e-mail to Microsoft's computer network is prohibited. Other restrictions are found at http://privacy.microsoft.com/en-us/anti-spam.mspx. Sun, 18 Nov 2012 23:17:13 -0800
bradhe has quit [Remote host closed the connection]
diegovio1a is now known as diegoviola
ninegrid has quit [Read error: Connection reset by peer]
zommi has joined #ruby
hsbt is now known as hsbt_away
dmiller has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
ninegrid has joined #ruby
hoelzro|away is now known as hoelzro
workmad3 has quit [Ping timeout: 245 seconds]
ninegrid has quit [Read error: Operation timed out]
margle has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
<RantriX>
does anyone know ios here?
FredLe has quit [Quit: Leaving.]
Jasko has joined #ruby
ninegrid has joined #ruby
zzyybb has joined #ruby
cantonic has joined #ruby
Erfankam has joined #ruby
jgrevich_ has joined #ruby
<eddie_>
can anyone help me with factory girl?
chimkan has quit [Read error: Connection reset by peer]
jgrevich has quit [Ping timeout: 246 seconds]
jgrevich_ is now known as jgrevich
arturaz has joined #ruby
chimkan has joined #ruby
timonv has quit [Remote host closed the connection]
whowantstolivefo has joined #ruby
shtirlic has quit [Remote host closed the connection]
RantriX has quit [Remote host closed the connection]
Juul has quit [Ping timeout: 265 seconds]
chimkan has quit [Client Quit]
BoomCow has joined #ruby
dr_bob has joined #ruby
<Noobsauce>
would someone kindly explain what the || does in this line? racer.speed(racer.finish_time||SENSOR.time)
k610 has joined #ruby
ananthakumaran1 has joined #ruby
<hoelzro>
noobsauce: racer.finish_time || SENSOR.time yields racer.finish_time, or SENSOR.time if racer.finish_time is nil
artur_x651231 has joined #ruby
<Noobsauce>
ooh, thank you for the explanation, I've only ever seen || in the context of booleans
sonne has joined #ruby
<sonne>
hey there
<sonne>
what would you folks recommend for compiling/bundling ruby apps?
ananthakumaran has quit [Ping timeout: 252 seconds]
nomenkun has joined #ruby
qwerxy has quit [Quit: offski]
knirhs has joined #ruby
jds_ has quit [Remote host closed the connection]
Elhu has joined #ruby
Shrink has quit [Ping timeout: 276 seconds]
<oivoodoo>
@eddie_ what's the problem with factory girl?
<eddie_>
I wold like to know how factory girl works
<eddie_>
Once the factory files are loaded
dmiller has joined #ruby
<eddie_>
how are the definitions accessed
<eddie_>
in the factory girl code i mean
kil0byte has joined #ruby
<eddie_>
oivoodoo: find_definitions.rb loads the factoy files we mentions
<oivoodoo>
you should require factories into your app. but to be honest the easiest way to learn how it's working to open sources. I think when you specify class or not specify(put only name of the factory) for the factory it will classify string
elentras has joined #ruby
<eddie_>
I am not a ruby pro
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<eddie_>
wat does FactoryGirl.define do
<eddie_>
end
<eddie_>
do
<eddie_>
?
jgrevich has quit [Quit: jgrevich]
<reactormonk>
eddie_, "I am not a pro" is no excuse to be too lazy to read the documentation
<oivoodoo>
FactoryGirl.define take a block with factories definitions. I think it will define schemes for the factories and then in your code using cresate or build instantiate the factories.
sspiff has quit [Read error: Connection reset by peer]
<eddie_>
it creates FactoryGirl instancese ? right?
jimeh has joined #ruby
qwerxy has joined #ruby
qwerxy has quit [Client Quit]
<reactormonk>
eddie_, btw #rubyonrails
nemesit has joined #ruby
<eddie_>
thanks reactormonk
<oivoodoo>
yeah. it would be great to ask on the rails channel. but I think it will use factory definitions for applying attributes for existing classes.
dmiller has quit [Ping timeout: 246 seconds]
chendo_ has joined #ruby
kil0byte_ has joined #ruby
JohnBat26 has quit [Read error: Operation timed out]
Jasko has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
kil0byte has quit [Ping timeout: 265 seconds]
kil0byte has joined #ruby
Jasko has joined #ruby
arturaz has quit [Remote host closed the connection]
nilg has quit [Remote host closed the connection]
kil0byte_ has quit [Ping timeout: 260 seconds]
[Neurotic] has quit [Ping timeout: 244 seconds]
chendo_ has quit [Ping timeout: 246 seconds]
JohnBat26 has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
xpen has joined #ruby
Noobsauce has quit [Quit: irc2go]
chendo_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
[Neurotic] has joined #ruby
sspiff has joined #ruby
[Neurotic] has quit [Excess Flood]
[Neurotic] has joined #ruby
blacktulip has joined #ruby
afd___ has joined #ruby
swex_ has quit [Read error: Operation timed out]
clj_newb has joined #ruby
love_color_text has joined #ruby
rohit has joined #ruby
richardjapenga has joined #ruby
cantonic has quit [Quit: cantonic]
swex has joined #ruby
adrianmn1 has joined #ruby
cantonic has joined #ruby
hsbt_away is now known as hsbt
adrianmn has quit [Read error: Operation timed out]
beilabs has joined #ruby
rdark has joined #ruby
adeponte has quit [Remote host closed the connection]
bradhe has joined #ruby
zomgbie_ has joined #ruby
JohnBat26 has joined #ruby
gregorg has joined #ruby
mikecmpbll has joined #ruby
zomgbie has quit [Ping timeout: 260 seconds]
emergion has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
LouisGB has joined #ruby
broon has quit [Quit: Bye!]
Amirh1 has joined #ruby
Vainoharhainen has joined #ruby
slainer68 has joined #ruby
djdb has joined #ruby
afd____ has joined #ruby
Amirh has quit [Ping timeout: 276 seconds]
clj_newb has quit [Ping timeout: 264 seconds]
ewag has quit [Ping timeout: 246 seconds]
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
hsbt is now known as hsbt_away
Iszak has joined #ruby
nari has quit [Ping timeout: 268 seconds]
zzyybb has quit [Read error: Connection reset by peer]
tulak has joined #ruby
robotmay has joined #ruby
fyolnish has quit [Remote host closed the connection]
<tulak>
hello, I'm having an issue with memmory usage on one of my scripts, it runs as daemon (using the daemons gem), can you recomend me some tool I can profile that script with to see what's going on ? thanks
love_color_text has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<sonne>
tulak, what do you mean?
ephemerian has joined #ruby
<Xeago>
tulak: god allows more specific manipulation, but not really debugging of that
<tulak>
I mean, i want to see what Objects are being stuck in memory, that are not processed by GC
<tulak>
It's a daemon that runs rufus-scheduler in it. and after few tasks executed, the top command shows me that it's usig a lot of memory, i want to somehow determine what part of my code is doing that
sepp2k has joined #ruby
haxrbyte_ has joined #ruby
ephemerian has quit [Client Quit]
haxrbyte has quit [Read error: Connection reset by peer]
zomgbie_ has quit [Ping timeout: 245 seconds]
<oivoodoo>
@tulak Is it possible that you are running your daemon using rake command with :environment setting for the rails project?
timmow has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
kil0byte_ has joined #ruby
stetho has joined #ruby
jsegura has joined #ruby
<tulak>
oivoodoo no i am running it as separate script in scripts/scheduler which contains Daemons.run(…) command, and i also require config/environment.rb to that script
dmiller has joined #ruby
F1skr has joined #ruby
kil0byte has quit [Ping timeout: 256 seconds]
casheew has quit [Read error: Connection reset by peer]
<oivoodoo>
tulak In one project I had a problem with several times loading environments daemon. someone put rake command with environment setting to the Daemon run it cause loading for environment every time.
dmiller has quit [Ping timeout: 246 seconds]
gcds has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
gcds has joined #ruby
jds_ has quit [Ping timeout: 252 seconds]
niall_obrien1 has joined #ruby
pavilionXP has quit [Ping timeout: 252 seconds]
jamesaxl has joined #ruby
gcds has quit [Read error: Connection reset by peer]
xpen has quit [Ping timeout: 260 seconds]
gcds has joined #ruby
niall_obrien1 has left #ruby [#ruby]
gcds has quit [Read error: Connection reset by peer]
cirwin has quit [Quit: sleep...ping!]
gcds has joined #ruby
dakine has quit [Quit: Leaving]
lkba has quit [Ping timeout: 256 seconds]
himsin has joined #ruby
oposomme is now known as oposomme|away
ewag has joined #ruby
gcds has quit [Read error: Connection reset by peer]
gcds has joined #ruby
kil0byte_ has quit [Ping timeout: 255 seconds]
qwerxy has quit [Quit: offski]
qwerxy has joined #ruby
gcds has quit [Read error: Connection reset by peer]
kil0byte has joined #ruby
timonv has joined #ruby
gcds has joined #ruby
bradhe has joined #ruby
codecaster has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
codecaster has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
gcds has quit [Read error: Connection reset by peer]
alup has joined #ruby
gcds has joined #ruby
cdt has joined #ruby
daniel_- has joined #ruby
gcds has quit [Read error: Connection reset by peer]
gcds has joined #ruby
zomgbie has joined #ruby
zz_chrismcg is now known as chrismcg
raunicolae has joined #ruby
love_color_text has joined #ruby
gcds has quit [Read error: Connection reset by peer]
Slivka has joined #ruby
gcds has joined #ruby
berserkr has joined #ruby
databyte_ has quit [Remote host closed the connection]
<Xeago>
Hanmac: nice figuring that one out there..
<Hanmac>
Xeago when you master ruby you get a feeling how the code wants to look like :D
ffranz has joined #ruby
<Xeago>
I wouldn't say coupon would have a time property, rather expiration_date or something
grzywacz has joined #ruby
jgarvey has joined #ruby
<Spami>
Xeago, me too, that's why I should not work when i'm half sleeping
<Spami>
fixed now :)
Elhu has quit [Quit: Computer has gone to sleep.]
elentras has quit [Remote host closed the connection]
iamjarvo has joined #ruby
elentras has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
claymore has quit [Quit: Leaving]
dmiller has joined #ruby
elsifaka has joined #ruby
beiter_ has joined #ruby
statarb3 has joined #ruby
jackiechan0 has quit [Quit: Sto andando via]
jackiechan0 has joined #ruby
nanderoo has joined #ruby
niklasb has joined #ruby
samphippen has joined #ruby
beiter has quit [Ping timeout: 246 seconds]
beiter_ is now known as beiter
samphippen has quit [Client Quit]
Jasko has joined #ruby
geekbri has joined #ruby
flip_digits has joined #ruby
dmiller has quit [Ping timeout: 246 seconds]
kirun has joined #ruby
<Spami>
damn
kil0byte_ has joined #ruby
grzywacz has quit [Ping timeout: 246 seconds]
<Spami>
something weird guys. So I have a coupon with expiration_date set to: "2015-11-19" and when I do a @user.coupons.take_while{|coupon| coupon.expiration_date > DateTime.now }
<Spami>
I get nothing but I should get the coupon expiring in 2015
<Xeago>
"2015-11-19" the string, or equivalent Date object?
<Hanmac>
self.data is not set, that means it cant work
k610 has joined #ruby
dmiller has quit [Ping timeout: 246 seconds]
jgarvey has quit [Quit: Leaving]
linoj has joined #ruby
<dp>
what's the appropriate way to check to see if it's set?
<Xeago>
.present?
<Xeago>
not sure if .present comes with core ruby
<Hanmac>
it does not :D
<Xeago>
than use .nil?
<Hanmac>
its an rails trap
<Xeago>
or .empty?
<Xeago>
but nil does not have #empty?
<Hanmac>
.nil? is the best
cantonic has quit [Read error: Connection reset by peer]
<Xeago>
I kinda like #present? gives an easy way to know if there is a value in the lefthand object
krawchyk_ has joined #ruby
cantonic has joined #ruby
banisterfiend has quit [Remote host closed the connection]
haxrbyte has joined #ruby
macabre has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
nari has joined #ruby
yalue has joined #ruby
<Hanmac>
Xeago: i dont like it because its false on "" ... this may not wanted ... and present? is only there to evaluate [], "", {} to false ... this is php style and trying to copy that into ruby is a very wrong way
eddie_ has quit [Quit: Ex-Chat]
ttt_ has quit [Remote host closed the connection]
derpops has joined #ruby
krawchyk has quit [Ping timeout: 244 seconds]
<Xeago>
I do see your concerns, but I am ridden in a system here that supplies "" [] and {} all over..
<Xeago>
instead of nils..
sailias has joined #ruby
<Xeago>
hence I have to use it a lot and therefore my bias
<Xeago>
this app here is horrid
samphippen has joined #ruby
<Xeago>
less than 3% of code is commented (there are really nasty business constraints going on and many many external dependencies) , and 80% of those are mine
xsbeats__ has left #ruby [#ruby]
hamed_r has quit [Quit: Leaving]
d2dchat has joined #ruby
<Xeago>
source is about 1MB big
<Xeago>
(of 1 part of the whole system here)
<dp>
so then what's the suggested method here?
yaymukund has joined #ruby
tk__ has quit [Quit: ばいばい]
<Xeago>
probably !value.nil?
chimkan has joined #ruby
elsifaka has joined #ruby
agu10^_ has quit [Read error: Connection reset by peer]
AndChat| has quit [Ping timeout: 268 seconds]
agu10^_ has joined #ruby
agu10^_ has joined #ruby
agu10^_ has quit [Changing host]
<dp>
ok, I can see in the code where it's doing self.data ||= {}
<dp>
would that be .empty?
mmitchell has joined #ruby
<Xeago>
if data is {}
<Xeago>
you should be able to check for has_key?
toto_ is now known as ToTo
<lotus2015>
I just recalled that I failed to install ruby 1.8.6 with rbenv, I also googled for a long time. https://github.com/sstephenson/ruby-build/issues/88, Is there anyone can give me a hand. What should I do. I tried apply the patches. But it didn't work.
JonnieCache has quit [Quit: Reconnecting]
JonnieCache has joined #ruby
jamesaxl has quit [Remote host closed the connection]
<Hanmac>
Xeago: my source of one of my projects is ~400kb and the result is ~40MB ... its an nice growing :D
<Xeago>
I have rarely seen the source of an app in production be bigger than a MB..
<dp>
heh. bad data in my case. whoops
<Hanmac>
lotus2015 what is your OS/OSVersion?
<Xeago>
we produce about 4TB of data daily tho :3
<Hanmac>
Xeago: its an binding, so its allowed to grow while building
dp has left #ruby [#ruby]
derpops has quit []
manizzle has quit [Ping timeout: 246 seconds]
<lotus2015>
Ubuntu 12.04 64bit
<lotus2015>
Any idea with that? Hanmac?
<Hanmac>
yeah, not use 1.8.6 :D
<Hanmac>
use 1.8.7 is the oldest you are allowed to use (not from me)
<shevy>
hehe
GoGoGarrett has joined #ruby
<shevy>
the problem with ubuntu is that it cripples packages by default
seanyo has quit [Read error: Connection reset by peer]
<shevy>
so when you compile ruby from source, you need all the .h files
ZubKonst has quit [Remote host closed the connection]
chimkan has quit [Quit: chimkan]
samphippen has quit [Quit: Computer has gone to sleep.]
<Xeago>
what's the closest linux os, when coming from mac os x
k610 has quit [Ping timeout: 246 seconds]
<Xeago>
flavor/distro*
<shevy>
gobolinux
<shevy>
:)
<lotus2015>
Thank you very much.
<Xeago>
that's the first that's listed at gnu right?
ZubKonst has joined #ruby
<shevy>
lotus2015, the source to latest 1.8.x branch is: ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p358.tar.bz2
<shevy>
Xeago, I am kind of kidding, gobolinux sadly died years ago :(
<shevy>
I dont think any linux distribution has a .bundle like mechanism
<Xeago>
yea, 4 years ago :\
k610 has joined #ruby
<shevy>
PC-BSD perhaps comes close with their .pbi files, or whatever was the name
<shevy>
but BSD is strange for me ...
<lotus2015>
Thank you ,shevy
<ddd>
there is no linux distrib thats close to osx. freebsd is closer. for UI you could use Ubuntu, which is about the closest
<Xeago>
for ui I will go with i3 prolly
<shevy>
lotus2015, I can compile that ruby from source even on a default ubuntu. but some extensions will not be built, they reside in the ext/ subdirectory
eldariof has quit [Ping timeout: 252 seconds]
<shevy>
like you would have to use apt-get to install readline headers, openssl... libyaml you will also need...
asaaki has joined #ruby
schaary has joined #ruby
asaaki has quit [Max SendQ exceeded]
<shevy>
ewwww Unity interface in Ubuntu
<shevy>
that thing is awful ddd!
<ddd>
yeah :/
<shevy>
I am using it right now... it is colourful and shiny and UNUSABLE
<ddd>
hehe
<Xeago>
I will go solely with i3 or another tiling wm
<Xeago>
don't need anything else
asaaki has joined #ruby
asaaki has quit [Max SendQ exceeded]
<shevy>
:)
<shevy>
at least those small wm get less in the way
<ddd>
I just stick with what I'm trying to mimic. I stick with OS X :)
<lotus2015>
:-)
<shevy>
I like fluxbox more, it's a bit easier to use than the small wm
<Xeago>
don't have the funds to buy a new good macbook
<shevy>
and then I use gnome and kde apps in fluxbox
<Xeago>
don't have the interest in hackintosh
<ddd>
icewm is nice, and small.
Coolhand has quit [Read error: Connection reset by peer]
<Xeago>
nor compatibility stuff
jeffreybaird has joined #ruby
asaaki has joined #ruby
asaaki has quit [Excess Flood]
<ddd>
you're going to have to worry about compatibility either way, even with linux
<JonnieCache>
xmonad ftw
perlsyntax has quit [Quit: Leaving]
<Xeago>
not having any issue's on osx, guess that's what I am paying for then..
<shevy>
icewm is ok too
lotus2015 has left #ruby [#ruby]
<ddd>
not all devices are supported, and there are tons of windows devices that uses stub libs that will need ndis or that other wrapper (i forget the name) to work right if at all
<shevy>
what I do not understand is why KDE and GNOME are trying so hard to become less and less useful
<ddd>
there's always compatability to worry about
<ddd>
Xeago: yeah I have zero issues on OSX which is why I paid for it, the hardware, and the ACP
<Xeago>
acp?
<ddd>
well worth the money to me
<shevy>
most hardware tends to work for me on linux fairly well
<ddd>
AppleCare Program
<Xeago>
ah yea, 3year warranty, I buy it around the end of the first year
larissa has quit [Read error: Operation timed out]
<Xeago>
never needed the phonesupport past the first 90 days
<shevy>
sex
<ddd>
shevy: in i'd say 80-85% of cases (arbitrary guesstimate numbers) they will. maybe even a bit higher. Still, one does have to keep an eye out
larissa has joined #ruby
<shevy>
ddd, yeah
qwerxy has joined #ruby
<Xeago>
only used it once, when I got delivered a faulty mainboard and couldn't diagnose it myself
<shevy>
ddd: for me it is ok, I can invest my time searching for solutions, trying out things etc... but I think for most people, this is all too much work and time spent
elsifaka has quit [Quit: Veloma e!]
Coolhand has joined #ruby
theRoUS has joined #ruby
<ddd>
Xeago: i've used it 2 or 3 times, but my problem got fixed fast, no issues, and even a couple wear and tear items were fixed for free. I had nothing but bellyaching and trying to get out of warranty work using every little trick they could think of from HP/Compaq, Dell, IBM, and Acer
<Xeago>
the phonesupport?
<ddd>
I admit its pricier with Apple on the initial buy, however, if I could still do 3rd party addons like the 16GB RAM, SSD drives etc, I'd do it again
aquaranto has joined #ruby
<ddd>
no, the AppleCare. Haven't ever used the phone support (thats setup and stuff)
<Xeago>
yea, beeing able to just drop it off and picking it up again is perfect
<JonnieCache>
when i found out that they could actually fix inside a couple of hours my jaw hit the floor
<ddd>
yep
<ddd>
I only had one case where my keyboard shorted out for some reason where it took a couple days but thats because they had to ship it to get it fixed.
<JonnieCache>
"when can i get that back?" "about 4" "which day" "today." "wtf?"
<ddd>
battery issue, and a screen issue they fixed in store
skaczor has joined #ruby
<ddd>
iirc its because they didn't have any replacement keyboards in the back, only reason it shipped
kil0byte_ has joined #ruby
<Xeago>
slip pads, 5 minute fix, had one get the laptop out of balance
<ddd>
the one at the Walden Galleria Mall in Cheektowaga, NY is super busy
zooz has joined #ruby
<zooz>
hi people
piotr__ has joined #ruby
<shevy>
hi zooz
<zooz>
could you suggest an interactive ruby shell?
<Xeago>
pry
<zooz>
similar to ipython for instance
<ddd>
Apple even gave me Lion coupon for free. To upgrade from Snow Leopard when I bought the machine. It wasn't released yet
piotr_ has quit [Ping timeout: 240 seconds]
<ddd>
that was cool
<ddd>
zooz: Pry is probably closer to that, and IRB is like idle
<zooz>
thanks!
macabre has quit [Remote host closed the connection]
<shevy>
zooz, on what OS are you?
<zooz>
all those years I was trying hard not to learn ruby, but I cannot work without knowing ruby nowadays...
kil0byte has quit [Ping timeout: 276 seconds]
<zooz>
shevy, Fedora Linux
richardjapenga has quit [Quit: Leaving]
<shevy>
debian usually has irb at /usr/bin/irb1.9 and a symlink there "irb" pointing to that (or vice versa, I forgot)
<ddd>
its a good solid additional language to know
iPhoneMRZ has joined #ruby
iPhoneMRZ has quit [Client Quit]
<shevy>
zooz, hehe, scripting languages are useful. have you been using other scripting languages so far?
emergion has quit [Quit: Computer has gone to sleep.]
<zooz>
ddd, yep, especially when using puppet and friends
<ddd>
Xeago: just as good as every other linux
<shevy>
ddd, yeah, I can never remember that... this versioning of binaries in /usr/bin confuses me
<Xeago>
ddd: isn't it usually a hardlink instead of a symlink?
<ddd>
yea i hate it too
chrishunt has quit [Read error: Connection reset by peer]
iPhoneMRZ has joined #ruby
<ddd>
Xeago: no. its managed by update-alternatives which is symlink
<Xeago>
hmm, ok
<ddd>
rarely do hardlinks get used these days. people usually split their drives or un multiple drives. hardlinks don't cross disks
<ddd>
s/ un / run /
Uranio has joined #ruby
samphippen has joined #ruby
<shevy>
and there is /etc/alternatives too, lookie: stat ruby File: `ruby' -> `/usr/bin/ruby1.9.1 it points at the versioned name directly, not at /usr/bin/ruby :)
<zooz>
one more question, could you suggest me a beginner's guide to ruby? I can write code with Python, bash, etc, what I really need is to learn ruby syntax and be able to write simple functions, string manipulation, nothing too complicated
mikepack has quit [Remote host closed the connection]
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
akemrir has quit [Ping timeout: 246 seconds]
grzywacz has joined #ruby
axl_ has joined #ruby
<zooz>
I prefer "do end" syntax instead of ugly { }
_nitti has joined #ruby
hakunin has quit [Ping timeout: 240 seconds]
<apeiros_>
zooz: so you chain on `end` :)
<apeiros_>
ary.select do |x| … end.map do |x| … end
<Xeago>
array.select { |e| e.value }.etc
slainer68 has quit [Remote host closed the connection]
n0x00 has joined #ruby
<Hanmac>
array.select(&:value).etc
n0x00 has left #ruby [#ruby]
<rking>
I've started shrink-wrapping all the space on one-line blocks. Might as well go all the way with it: array.select{|e|value * 2}
<Xeago>
ary.map(&:value).each instead of ary.map do |a| a.value end.each
v0n has joined #ruby
instinkt has quit [Ping timeout: 256 seconds]
<apeiros_>
Xeago: yes, that's what I do too. but see what zooz wrote.
<apeiros_>
rking: meh, dislike. code needs air to breathe. therefore: array.select { |value| value*2 }
<rking>
apeiros_: Might as well go with array.select do |value| value * 2 end
nateberkopec has joined #ruby
<apeiros_>
rking: might, but it's ugly. see chaining.
<workmad3>
apeiros_: I quite like to do 'array.select{ |value| value * 2 }' if I'm chaining
adeponte has joined #ruby
<rking>
apeiros_: BTW I have a good reason for not cuddling math ops
<apeiros_>
cuddling?
carlyle has joined #ruby
<apeiros_>
yeah, that's what people say about their use of goto too… :-p
<apeiros_>
(I have good reason to…)
<workmad3>
value*2 vs value * 2 I guess
<apeiros_>
ah
<rking>
Because I hope, deep in my heart, that someday programming language designers will wake up and realize that dashes in symbol names would be a bigger win than the ability to say: a = 1; b = 2; a-b
<apeiros_>
my point was more about `{|x|code` vs. `{ |value| code`
<Xeago>
hmm
<Xeago>
if your code is utf8
<apeiros_>
value * 2 vs. value*2 - don't care
bradhe has joined #ruby
<Xeago>
you can use hyphen minus-sign dash, en dash and em-dash
<Xeago>
:)
<rking>
apeiros_: OK, that's just a knee-jerk reaction on your part
Eplemosen has joined #ruby
etcetera has joined #ruby
<apeiros_>
rking: which one? (and no, it isn't a knee-jerk reaction)
<workmad3>
Xeago: sure... and how do you input those on a standard 102 key keyboard? :P
<rking>
All of these things that are 'ugly' or 'should be', with no deeper explanation, are things you'd get used to in about 2 hours of changing
<Xeago>
workmad3: using escape sequences
mohanmcgeek has joined #ruby
zommi has quit [Quit: Leaving.]
<workmad3>
Xeago: sounds crappy :P
<Xeago>
yea
<Xeago>
have you seen swedish people program?
jlast has joined #ruby
<apeiros_>
rking: correct. I agree that when it's about code style without functional implication, it's far far more important to have a common team style than to insist on your personal style being better
<Xeago>
()-?{}[] are all escape characters
<apeiros_>
rking: and I agree that you get used to about any style in no time
jrist is now known as jrist-afk
<Xeago>
oh and /\><
<apeiros_>
Xeago: coding with unicode is instafail IMO :-p
<rking>
workmad3: Xcompose is great. Have you used it?
<rking>
apeiros_: Yay! Agreement. \o/
<Xeago>
yea.. swedish people need to use escape sequences by standard, it's horrible!
<Xeago>
whenever I touch a coworkers laptop I shiver
<apeiros_>
rking: that said, MY STYLE IS BETTER!!!!! :-p
gyre008 has joined #ruby
<gyre008>
is anyone here using backup gem ?
ttt_ has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
<Xeago>
I use tarsnap for backups besides time machine
<gyre008>
Xeago: well..you cant really use time machine on the Linux production servers :)
yuike has joined #ruby
yuike has quit [Max SendQ exceeded]
kil0byte has joined #ruby
<Xeago>
tarsnap
<shevy>
ok time to restart... hopefully I manage to come back...
shevy has quit [Quit: ""]
yuike has joined #ruby
zaki has quit [Read error: Operation timed out]
bwlang has joined #ruby
yuike has quit [Max SendQ exceeded]
katherinem13 has quit [Remote host closed the connection]
yuike has joined #ruby
samphippen has joined #ruby
nomenkun_ has joined #ruby
dmiller has joined #ruby
kil0byte_ has quit [Ping timeout: 246 seconds]
ttt_ has quit [Ping timeout: 276 seconds]
nomenkun_ has quit [Remote host closed the connection]
nomenkun_ has joined #ruby
tijmencc has joined #ruby
dmiller has quit [Remote host closed the connection]
katherinem13 has joined #ruby
dmiller has joined #ruby
tijmencc has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
witchdoc has joined #ruby
<witchdoc>
hi all
ThaDick has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
chimkan has joined #ruby
mercwithamouth has joined #ruby
mohanmcgeek has left #ruby [#ruby]
dmiller has quit [Remote host closed the connection]
tagrudev has quit [Quit: I am going home, I am going home, tell the world I am going home (for a beer)]
_alejandro has joined #ruby
adeponte has quit [Remote host closed the connection]
jackiechan0 has joined #ruby
Zolrath has quit []
nomenkun_ has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Quit: Leaving...]
carlyle has quit [Remote host closed the connection]
d2dchat has quit [Remote host closed the connection]
daniel_- has quit [Ping timeout: 252 seconds]
rmcafee has joined #ruby
Elico has joined #ruby
OldOats has joined #ruby
dnstbr has joined #ruby
synthetix has joined #ruby
im0b has joined #ruby
instinkt has joined #ruby
Goles_ has joined #ruby
Goles has quit [Ping timeout: 260 seconds]
zaki has joined #ruby
awarner has joined #ruby
<sonne>
how would you do logging in a ruby daemon, in order to be able to log to either stdout or syslog?
tonini has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
fmcgeough has joined #ruby
fmcgeough has quit [Client Quit]
Goles has joined #ruby
fmcgeough has joined #ruby
Goles_ has quit [Read error: Connection reset by peer]
<JonnieCache>
one day that one will be turned into a movie and hopefully it will be awesome
haxrbyte_ has joined #ruby
philips_ has quit [Excess Flood]
axl_ has joined #ruby
<Hanmac>
JonnieCache: i heard there was an movie planed for "The Wee Free Men", but i think the plan was droped :'(
Nosrat has joined #ruby
<JonnieCache>
Hanmac: the recent(ish) tv adaptations were good
tjbiddle has joined #ruby
philips_ has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
<Hanmac>
JonnieCache: Angua 's Werewolf Form was cool :D
maletor has joined #ruby
<workmad3>
no as big as medium jock but bigger than wee jock jock...
haxrbyte has quit [Ping timeout: 246 seconds]
tjbiddle has quit [Client Quit]
mr-rich has joined #ruby
<Hanmac>
workmad3: what is the best weapon for monsterhunt? and iron-pan :D
katherinem13 has joined #ruby
<workmad3>
Hanmac: assuming you can get it into fairy, yeah
davidcelis has quit [Quit: K-Lined.]
<Hanmac>
hm it seems some bot wants to anoy me
ryanlecompte has quit [Remote host closed the connection]
SCommette has joined #ruby
Goles has quit [Remote host closed the connection]
zomgbie_ has quit [Ping timeout: 265 seconds]
maletor has quit [Ping timeout: 240 seconds]
<workmad3>
Hanmac: not surprising :)
oivoodoo has quit [Read error: Connection timed out]
<Hanmac>
an woll rug could be useful too
axl__ has joined #ruby
Guest____ has joined #ruby
volta has quit [Read error: Operation timed out]
axl_ has quit [Read error: Connection reset by peer]
axl__ is now known as axl_
Goles has joined #ruby
frem has joined #ruby
fantazo has joined #ruby
brtdv has joined #ruby
otters has quit [Ping timeout: 255 seconds]
_nitti has joined #ruby
staafl_alt has joined #ruby
cantonic has joined #ruby
oivoodoo_ has joined #ruby
Goles has quit [Remote host closed the connection]
staafl has quit [Read error: Connection reset by peer]
jamesaxl has quit [Ping timeout: 255 seconds]
yxhuvud2 has joined #ruby
thomasfedb has quit [Ping timeout: 246 seconds]
diegoviola has quit [Ping timeout: 252 seconds]
thomasfedb has joined #ruby
otters has joined #ruby
yxhuvud has quit [Ping timeout: 246 seconds]
skattyadz has joined #ruby
J-_-L has quit [Ping timeout: 260 seconds]
mityaz has joined #ruby
agu10^_ has quit [Read error: Connection reset by peer]
<mityaz>
hmm
<mityaz>
;)
stderr- has joined #ruby
<JonnieCache>
a woll rog for woll smoth
<mityaz>
not very pollite bot...
cardoni has joined #ruby
<mityaz>
hmm I'm getting messages from Nosrat, that are kind of: "Notice from Nosrat: Hey mityaz. Get the fuck out of #ruby" and others. I expect it to be some bot, bad bot
Guest____ is now known as asteve
<JonnieCache>
wtf
<Xeago>
never heard of him before,,
<mityaz>
Xeago: I checked it's whois. Some guy from mIrc
bbttxu has joined #ruby
<mityaz>
and after each message I get notice from Nosrat: hey mityaz, don't say bullshit on #ruby
<JonnieCache>
probably a 13 year old boy with a l33t war script
<mityaz>
yep
axl_ has quit [Remote host closed the connection]
<mityaz>
but it's annoying...
<Xeago>
I think you can report it in #help tho
<JonnieCache>
theres always /ignore
axl_ has joined #ruby
<Xeago>
I wonder why id on't get it tho
BadProphet has joined #ruby
<mityaz>
JonnieCache: thanks, I forgot about /ignore. Now it's ok
rh1n0 has joined #ruby
jamesaxl has joined #ruby
daniel_- has joined #ruby
<Xeago>
how is minix3?
chrishunt has quit [Quit: Leaving...]
<wmoxam>
Xeago: last I heard its fine aside from a lack of drivers :p
ThaDick has quit [Quit: zzzZZZ ...]
CaptainJet has joined #ruby
kidoz has joined #ruby
asobrasil has joined #ruby
thisirs has joined #ruby
moshee has quit [Ping timeout: 268 seconds]
<Xeago>
thx
moshee has joined #ruby
yuike has joined #ruby
bradhe has joined #ruby
Eplemosen has quit [Ping timeout: 246 seconds]
<Xeago>
mityaz: got the notice aswell
mucker has quit [Read error: Connection reset by peer]
<JonnieCache>
aperios isnt here. who else has ops?
yan_ has joined #ruby
<rking>
I want a special spam message, too.
<JonnieCache>
banister aint here either...
AnarchoTroll has quit [Ping timeout: 245 seconds]
<yan_>
is there a simple way to bundle all gems (including bundler) in a single metagem such that i can just drop a targz file on an internet-disconnected machine and have the environment up and running?
samphippen has quit [Quit: Computer has gone to sleep.]
Rydefalk has quit [Remote host closed the connection]
<JonnieCache>
rking: join #bitcoin-otc you get all sorts of fun spam
<mityaz>
Xeago: yep, even /ignore does not help ;( I would report it, but don't know how
TBloemink has joined #ruby
<TBloemink>
hi there
dr_bob has quit [Quit: Leaving.]
<JonnieCache>
mityaz: the people who run freenode are in #help
<workmad3>
gcds: because you're not accessing it through the getter
<gcds>
oh
Vert has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Quit: Leaving.]
<gcds>
thats the best way to initialize variables without calling any method?
<gcds>
like I would set initialize but it ist called
<workmad3>
gcds: the best way is to always use your getter, even internally in your class
<workmad3>
gcds: so your attributes method would use 'required_attributes' rather than '@required_attributes'
friskd has quit [Quit: friskd]
<Poapfel>
How do I extract every element of an array even if the array itself contains arrays or to be less confusing: how do I fix this example code? http://sprunge.us/ZaQB?lang=ruby
<workmad3>
gcds: so just trust me on this... the simplest, easiest, least time consuming, least annoying, best way to do what you want is to *just use the getter method you've created for this purpose*
ninegrid has quit [Ping timeout: 255 seconds]
Mkman has joined #ruby
<gcds>
workmad3: ohhhh gosh i am so dump :DDDDDDD
qwerxy has joined #ruby
<gcds>
workmad3: if replace @variable with getter it will be called :D
<workmad3>
gcds: yes
<gcds>
gosh I am dump..
<workmad3>
gcds: s/dump/dumb/ :P
jslowe has joined #ruby
<workmad3>
right, home time
chrishunt has quit [Quit: Leaving...]
qwerxy has quit [Client Quit]
ninegrid has joined #ruby
chrishunt has joined #ruby
<gcds>
workmad3: now instance method doenst get anything :(
<gcds>
just nil
c0rn has joined #ruby
timonv has joined #ruby
<gcds>
oh self.class
arya_ has left #ruby [#ruby]
slainer68 has quit [Remote host closed the connection]
Luceo has quit [Ping timeout: 276 seconds]
bluOxigen has quit [Ping timeout: 264 seconds]
gcds has quit [Read error: Connection reset by peer]
Amirh has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
seanyo has quit [Read error: Connection reset by peer]
gcds has joined #ruby
JohnBat26 has quit [Ping timeout: 252 seconds]
Jasko2 has joined #ruby
pcarrier has quit []
spike|spiegel has joined #ruby
twinturbo has quit [Quit: twinturbo]
dakine has quit [Quit: Leaving]
jackiechan0 has quit [Quit: Sto andando via]
greasegum has quit [Ping timeout: 264 seconds]
Jasko has quit [Ping timeout: 260 seconds]
LEMTZAS is now known as Lemtzas
ninegrid has quit [Ping timeout: 276 seconds]
m_3 has quit [Remote host closed the connection]
mascool has joined #ruby
tjasko__ has joined #ruby
gcds has quit [Read error: Connection reset by peer]
gcds has joined #ruby
sn0wb1rd_ has joined #ruby
spike|spiegel has quit [Ping timeout: 260 seconds]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
sn0wb1rd has quit [Read error: Operation timed out]
sn0wb1rd_ is now known as sn0wb1rd
m_3 has joined #ruby
adeponte has quit [Remote host closed the connection]
Jasko2 has quit [Ping timeout: 255 seconds]
artur_x651231 has quit [Quit: Leaving]
timonv has quit [Remote host closed the connection]
adeponte has joined #ruby
JohnBat26 has joined #ruby
axl__ has joined #ruby
kpshek has quit []
Floydzy has quit [Quit: Floydzy]
kil0byte has joined #ruby
ninegrid has joined #ruby
robbyoconnor has joined #ruby
arya has joined #ruby
JohnBat26 has quit [Client Quit]
wallerdev has joined #ruby
arya has left #ruby [#ruby]
gridaphobe has joined #ruby
axl_ has quit [Ping timeout: 255 seconds]
axl__ is now known as axl_
bricker has joined #ruby
Cicloid has joined #ruby
spike|spiegel has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
kpshek has joined #ruby
arya has joined #ruby
gcds has quit [Read error: Connection reset by peer]
gcds has joined #ruby
cdt has quit [Ping timeout: 268 seconds]
shtirlic has quit [Remote host closed the connection]
tomsthumb has joined #ruby
Trioke has joined #ruby
haxrbyte_ has quit [Ping timeout: 260 seconds]
kidoz has quit [Remote host closed the connection]
arya has quit [Ping timeout: 244 seconds]
Slivka has joined #ruby
<gcds>
hmm maybe someone knows how to compare value against array of regex?
clj_newb has joined #ruby
arya has joined #ruby
gcds has quit [Read error: Connection reset by peer]
gcds has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
jrist is now known as jrist-afk
headius has quit [Quit: headius]
stephenjudkins has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
Dreamer3 has joined #ruby
nkts_ has joined #ruby
icole has joined #ruby
voodoofish430 has joined #ruby
h4mz1d has joined #ruby
gcds has quit [Read error: Connection reset by peer]
shiin has joined #ruby
gcds has joined #ruby
<jivD>
array.detect{|a| a =~ value} gcds ?
jaygen has quit [Remote host closed the connection]
berserkr has quit [Ping timeout: 246 seconds]
dmiller has joined #ruby
<gcds>
jivD: Now I searching the way how to check value against array of mix of string or regex
krawchyk_ has quit [Remote host closed the connection]
krawchyk has joined #ruby
oivoodoo_ has quit [Read error: Connection timed out]
d2dchat has joined #ruby
sailias has joined #ruby
cdt has joined #ruby
oivoodoo has joined #ruby
answer_42 has quit [Read error: Connection reset by peer]
daniel_- has joined #ruby
answer_42 has joined #ruby
<jivD>
array.detect{|a| Regexp.new(a) =~ value}
<jivD>
if a is a string it'll convert it to regex
jxf has joined #ruby
<gcds>
but the problem is that Regex would create regex which doesnt have ^ and $
ltsstar has joined #ruby
asteve has joined #ruby
<jivD>
so do that as part of the loop?
qwerxy has joined #ruby
heftig has joined #ruby
<jivD>
if its a str, wrap it in ^ $ and create a new regex
answer_42 has quit [Write error: Connection reset by peer]
<gcds>
so Regexp.new('Name') =~ "Name" will return false
answer_42 has joined #ruby
<gcds>
yeah
<gcds>
thank yo
pkrnj has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
d2dchat has quit [Read error: Connection reset by peer]
answer_42 has left #ruby [#ruby]
Mon_Ouie has joined #ruby
maasha has quit [Ping timeout: 245 seconds]
gcds has quit [Read error: Connection reset by peer]
Neomex has joined #ruby
swarley| has joined #ruby
zomgbie has joined #ruby
gcds has joined #ruby
swarley- has joined #ruby
Neomex has quit [Client Quit]
nasso has quit [Quit: No Ping reply in 180 seconds.]
nasso has joined #ruby
berserkr has joined #ruby
gcds has quit [Read error: Connection reset by peer]
swarley| has quit [Ping timeout: 244 seconds]
gcds has joined #ruby
yuike has quit [Quit: Computer has gone to sleep.]
answer_42 has joined #ruby
pyr0commie has joined #ruby
nasso has quit [Client Quit]
nasso has joined #ruby
swarley has joined #ruby
<swarley>
Really open up a lot of possibilities for commands
IrishGringo has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]]
jaygen has joined #ruby
swarley- has quit [Ping timeout: 246 seconds]
Leitz has joined #ruby
zomgbie has quit [Ping timeout: 240 seconds]
qwerxy has quit [Quit: offski]
dangerousdave has joined #ruby
BadProphet has quit [Remote host closed the connection]
swarley| has joined #ruby
atno|AFK is now known as atno
yuike has joined #ruby
<mkillebrew>
Are hash keys always ordered by insert, or is it somewhat arbitrary?
synthetix has quit [Remote host closed the connection]
yuike has quit [Remote host closed the connection]
<swarley|>
Yes they are ordered
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
osvico has quit [Ping timeout: 260 seconds]
swarley has quit [Ping timeout: 246 seconds]
swarley has joined #ruby
<Leitz>
If I'm trying to learn Ruby basics, and learn best from a book and a keyboard, is the 2001 Thomas and Hunt "Programming Ruby" still good for Ruby 1.9?
swex has quit [Read error: Connection reset by peer]
chrishunt has joined #ruby
bbttxu has quit [Quit: bbttxu]
pkrnj has joined #ruby
clj_newb has joined #ruby
arturaz has joined #ruby
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
chrishunt has quit [Client Quit]
kirun has quit [Read error: Operation timed out]
alee___ has joined #ruby
ryanf has quit [Quit: leaving]
knirhs has quit [Read error: Connection reset by peer]
twinturbo has joined #ruby
axl_ has quit [Quit: axl_]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
clj_newb has quit [Ping timeout: 245 seconds]
joeycarmello has joined #ruby
atno|AFK is now known as atno
clj_newb has joined #ruby
chrishunt has joined #ruby
moshee has quit [Remote host closed the connection]
hydrozen has joined #ruby
zomgbie has quit [Read error: Connection reset by peer]
zomgbie has joined #ruby
joeycarmello has quit [Client Quit]
<bwlang>
mseidl: "idomatic" is language neutral...
<bwlang>
err.. idiomatic
Tuxist has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
osvico has quit [Ping timeout: 252 seconds]
lolmaus has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
emmanuelux has joined #ruby
awaage has joined #ruby
rampantmonkey has joined #ruby
lolmaus has quit [Client Quit]
seich is now known as Seich
jackiechan0 has quit [Quit: Sto andando via]
swex has joined #ruby
xsbeats_ has joined #ruby
xsbeats_ has quit [Client Quit]
rampantmonkey has quit [Client Quit]
xsbeats has joined #ruby
pcarrier has joined #ruby
Amirh has quit [Quit: Leaving.]
schaerli has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
Hanmac has quit [Ping timeout: 240 seconds]
shtirlic has joined #ruby
mercwithamouth has joined #ruby
Elhu has joined #ruby
jekotia has quit [Ping timeout: 246 seconds]
Guest62005 has quit [Read error: Operation timed out]
johnny_ has joined #ruby
nat2610 has quit [Quit: Leaving.]
<johnny_>
hi
atno is now known as atno|AFK
<johnny_>
I'm having some problems with my gem installation. Any chance I can convince someone here to help?
zooz_ has joined #ruby
nat2610 has joined #ruby
oposomme has joined #ruby
<bwlang>
johnny_: just ask… try gem install foo
<johnny_>
so here's the problem
<johnny_>
several of my installed gems are not working anymore
<johnny_>
for eample rack-test
pkrnj has quit [Quit: Computer has gone to sleep.]
<johnny_>
gem which rack/test gives me the path to the gem
dnstbr has quit [Quit: Computer has gone to sleep.]
<johnny_>
but ruby -rrack/test -e 1
<johnny_>
gives me /home/jacky/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- rack/test (LoadError)
<johnny_>
from /home/jacky/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
<johnny_>
i can't figure out what the problem might be
<johnny_>
i tried reinstalling
<johnny_>
and i looked at the file permissions
<johnny_>
they all seem ok
jrist-afk is now known as jrist
<johnny_>
any ideas?
kjellski has joined #ruby
minijupe has quit [Quit: minijupe]
banisterfiend has joined #ruby
<bwlang>
maybe you're not running the ruby you think you're running… which ruby?
havenn_ has joined #ruby
Hanmac has joined #ruby
<johnny_>
it's 1.9.3
<johnny_>
it's the only one i have installed afaik
dmiller has joined #ruby
<bwlang>
which 1.9.3 though… the system one or the rvm one.
sailias has quit [Quit: Leaving.]
Seich is now known as Seichleon
Seichleon is now known as Seich
<johnny_>
i removed the old installation of ruby (1.8.6) a while ago and switched to rvm, but two days ago was the first time i noticed gems not working
<bwlang>
what about gem - which gem is that ?
Raboo has quit [Ping timeout: 246 seconds]
<johnny_>
1.8.24
<bwlang>
johnny_: if that's not it, I don't know.
Myk267 has joined #ruby
printesoi has joined #ruby
<johnny_>
i can't figure out why some gems are working and others are not
gcds has joined #ruby
<johnny_>
they're all installed in the same parent directory
havenn has quit [Ping timeout: 252 seconds]
<bwlang>
johnny_: i mean which one on your filesystem - could be /usr/bin/gem or ~/bin/gem or some such.
bradhe has quit [Remote host closed the connection]
<johnny_>
oh, /usr/bin/gem is a soft link to /home/jacky/.rvm/rubies/ruby-1.9.3-p194/bin/gem
chrishunt has quit [Quit: Leaving...]
<ner0x>
When processing .erb files is it possible to stop processing? With some sort of __END__ command, etc?
gmci has joined #ruby
joeycarmello has joined #ruby
gmci is now known as Guest59035
tenmilestereo has quit [Ping timeout: 246 seconds]
sekyourbox has joined #ruby
chrishunt has joined #ruby
<sekyourbox>
so, I'm working on a project for Diabold, and they want an easier way to rigg the voting machines. Can somone help me with this code?
d34th4ck3r has joined #ruby
h4mz1d has joined #ruby
printesoi has quit [Ping timeout: 264 seconds]
dangerousdave has quit [Quit: Leaving...]
<sekyourbox>
diebold
Guest59035 has quit [Ping timeout: 260 seconds]
Raboo has joined #ruby
manizzle has quit [Ping timeout: 252 seconds]
etcetera has quit [Quit: Computer has gone to sleep.]
printesoi has joined #ruby
gmci_ has joined #ruby
swex has quit [Read error: Connection reset by peer]
<printesoi>
if someone answered to my question, can you please repeat, because I was disconnected from the internet
atno|AFK is now known as atno
dedis has quit [Read error: Operation timed out]
grzywacz has quit [Quit: :wq]
chrishunt has quit [Quit: Leaving...]
clj_newb has quit [Ping timeout: 248 seconds]
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
swex has joined #ruby
adeponte has joined #ruby
etcetera has joined #ruby
gmci_ has quit [Read error: Operation timed out]
berserkr has quit [Ping timeout: 260 seconds]
casheew has quit [Read error: Connection reset by peer]
<d34th4ck3r>
can you repeat the question printesoi ?
Slivka has joined #ruby
eldariof has quit []
shtirlic has quit [Remote host closed the connection]
diegovio1a has joined #ruby
grzywacz has quit [Quit: :wq]
samuel02 has joined #ruby
chrishunt has joined #ruby
<printesoi>
why the following code works: a = [1,2,3]
<printesoi>
a & b = [2,3,4]
<printesoi>
and it returns [2,3]
<printesoi>
& doesn't have greater priority than = ?
beiter has quit [Quit: beiter]
<d34th4ck3r>
what is b ?
clj_newb has joined #ruby
<apeiros_>
printesoi: precedence
<havenn_>
Was surprised to see Proc used in "Naive Implementation" of Futures article, so I implemented it with &block. Any thoughts on preferred method?: https://gist.github.com/4113840
<apeiros_>
seems that & indeed has a lower precedence than =
vlad_starkov has quit [Ping timeout: 240 seconds]
<apeiros_>
havenn_: yield is faster than block.call
<apeiros_>
havenn_: you could use Thread.new(&future), that again would be more efficient than yield
<apeiros_>
(you can use Thread#value to get the return value)
workmad3 has joined #ruby
<havenn_>
apeiros_: Hmmm, didn't think of that... Interesting!
ascarpino has left #ruby ["Konversation terminated!"]
<apeiros_>
havenn_: Thread#value will also block if the thread isn't done yet
<apeiros_>
so you can save yourself the .join
<printesoi>
I am now reading the Ruby Programming Language, and it's written that & has a greater precedence than =
bradhe has joined #ruby
<apeiros_>
don't know how to do the .ready?, though :-/
diegovio1a has quit [Ping timeout: 268 seconds]
<printesoi>
this means that that code must only give an error
diegovio1a has joined #ruby
<Mon_Ouie>
Are you sure it was "&" and not "&&"?
pkrnj has joined #ruby
<swarley>
Yeah, its not often you see a bitwise and use in ruby
<havenn_>
apeiros_: Much nicer with the direct #value call to @thread. Thanks!
<printesoi>
both & and && have greater precedence than =
<swarley>
That's because they're methods
diegoviola has quit [Ping timeout: 245 seconds]
<swarley>
And ruby wants to get the result of your method chain before it does any assignments
caleb_io has joined #ruby
<Mon_Ouie>
&& isn't a method, just an operator; if it were a method, it would have to evaluate the right hand side
<apeiros_>
printesoi: left/right probably matters too
<ninjanoise>
quit
ninjanoise has quit [Quit: leaving]
alee___ is now known as alee-
<apeiros_>
i.e., a = b & c # --> a = (b & c)
timonv has joined #ruby
<apeiros_>
but a & b = c # --> a & (b = c)
kkh has quit [Quit: Good bye!]
timonv has quit [Read error: Connection reset by peer]
<Mon_Ouie>
Isn't that just equal precedence with left associativity?
kkh has joined #ruby
_alejandro has quit [Remote host closed the connection]
DanBoy has quit [Read error: Connection reset by peer]
<swarley>
I always just use parens if i can't tell what the code does immediately at a glance
<printesoi>
apeiros_: thanks, I understand now
sekyourbox has left #ruby [#ruby]
etcetera has quit [Quit: Computer has gone to sleep.]
Guest92676 has quit [Quit: Guest92676]
diegovio1a has quit [Ping timeout: 246 seconds]
<apeiros_>
Mon_Ouie: no idea. I was never good about precedence rules
timonv has joined #ruby
axl_ has joined #ruby
berserkr has joined #ruby
timonv has quit [Read error: Connection reset by peer]
<swarley>
I understand precedence, I just can't explain it
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
vlad_starkov has joined #ruby
yoklov has joined #ruby
timonv has joined #ruby
macabre has quit [Remote host closed the connection]
<workmad3>
swarley: () > *, what more do you need? :)
nomenkun has joined #ruby
Dreamer3 has quit [Ping timeout: 265 seconds]
yshh has quit [Remote host closed the connection]
nanderoo has quit [Quit: Leaving.]
geekbri has quit [Remote host closed the connection]
jgrevich_ has joined #ruby
dmiller has quit [Remote host closed the connection]
etcetera has joined #ruby
alee- has quit [Ping timeout: 276 seconds]
Dreamer3 has joined #ruby
jgrevich has quit [Ping timeout: 246 seconds]
jgrevich_ is now known as jgrevich
macabre has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
alee- has joined #ruby
phortx has joined #ruby
ffranz has quit [Quit: Leaving]
w400z has joined #ruby
phortx has left #ruby ["Leaving"]
chrishunt has quit [Quit: Leaving...]
raunicolae has quit [Ping timeout: 240 seconds]
jaygen has quit [Remote host closed the connection]
oivoodoo has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 252 seconds]
qwerxy has quit [Quit: offski]
cascalheira has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
casheew has quit [Read error: Connection reset by peer]
bricker_ has joined #ruby
w400z has quit [Quit: Computer has gone to sleep.]
jordan_ has joined #ruby
jordan_ has quit [Remote host closed the connection]
casheew has joined #ruby
joeycarmello has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 260 seconds]
zomgbie has quit [Ping timeout: 248 seconds]
love_color_text_ has quit [Remote host closed the connection]
onibox has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
dakine has joined #ruby
vlad_sta_ has quit [Ping timeout: 260 seconds]
babinho has quit [Ping timeout: 268 seconds]
vlad_starkov has joined #ruby
joeycarmello has joined #ruby
<gcds>
Maybe someone could look why line 42 doesnt set value and somehow it gets replaced by default one? https://gist.github.com/4114221
sepp2k1 has quit [Read error: Connection reset by peer]
_alejandro has joined #ruby
<heftig>
gcds: use @base.instance_variable_...
<heftig>
or wait, nevermind
mark_locklear has quit [Remote host closed the connection]
<heftig>
your code is weird
IrishGringo has joined #ruby
c_melder is now known as melder
dakine has quit [Quit: Leaving]
yshh has joined #ruby
<heftig>
gcds: i think you're confusing the class object and the instance objects
invisime has quit [Quit: Leaving.]
miss0r has joined #ruby
<heftig>
saving the attributes in a hash would probably be better and save you all this instance variable ugliness
<Cadwallion>
I can't get over XML, XAML, and XMAL in the same source
<miss0r>
I am looking for a respectable ruby programmer. I am offering a part time job. /msg me if you are interrested.
Cicloid has quit [Remote host closed the connection]
<heftig>
Cadwallion: that too
<shevy>
I find that I often need way too many lines of code to solve something
Goles has quit [Remote host closed the connection]
kjellski_ has joined #ruby
mikepack has quit [Remote host closed the connection]
johnny_ has quit [Quit: Ex-Chat]
medik has joined #ruby
medik has quit [Excess Flood]
medik has joined #ruby
mikepack has joined #ruby
kjellski has quit [Ping timeout: 268 seconds]
_nitti has quit [Remote host closed the connection]
headius has joined #ruby
jackiechan0 has joined #ruby
ij has quit [Ping timeout: 255 seconds]
chrismcg is now known as zz_chrismcg
codeFiend has joined #ruby
<gcds>
Cadwallion: thanks for pointing out :D that all should be xmal
mikepack has quit [Remote host closed the connection]
alexwh has left #ruby [#ruby]
jaygen has joined #ruby
jlast_ has quit [Remote host closed the connection]
jlast has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
zooz_ has quit [Quit: Leaving IRC]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
staafl_alt has quit [Ping timeout: 240 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
w400z has joined #ruby
dmiller has quit [Remote host closed the connection]
etcetera has quit [Quit: Computer has gone to sleep.]
caleb_io has quit [Quit: caleb_io]
arya_ has joined #ruby
qwerxy has joined #ruby
Nisstyre has quit [Read error: Operation timed out]
spike|spiegel has quit [Ping timeout: 260 seconds]
arya has quit [Ping timeout: 244 seconds]
spike|spiegel has joined #ruby
dakine has joined #ruby
dangerousdave has joined #ruby
dakine has quit [Client Quit]
guillaum has joined #ruby
ner0x has quit [Quit: Leaving]
gcds has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
gabrielrotbart has joined #ruby
babinho has joined #ruby
gcds has joined #ruby
Jasko has joined #ruby
kpshek has quit []
oposomme has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Ping timeout: 246 seconds]
CamonZ_ has joined #ruby
linoj has quit [Read error: Operation timed out]
micsha has joined #ruby
atno is now known as atno|AFK
<micsha>
ok, so quick question, I just want to know what this is called so I can look it up. I've come across a method that is defined like this
<micsha>
def method(*arg)
<micsha>
arg1, arg2 = arg
<micsha>
end
swarley| has quit [Ping timeout: 244 seconds]
arya_ has quit [Ping timeout: 244 seconds]
<micsha>
what is the "*arg" called?
thisirs has quit [Remote host closed the connection]
<micsha>
or more specifically, what is the * in front of the arg called?
guillaum has quit [Ping timeout: 244 seconds]
<micsha>
I just need a name that I can look up.
<dermot>
splat
<dermot>
micsha:
[Neurotic] has joined #ruby
Tuxist has quit [Remote host closed the connection]
<micsha>
is it a method or something else?
<Hanmac>
"splat operator" it turns an Array into an argumentlist and versa
gabrielrotbart has quit [Remote host closed the connection]
snearch has joined #ruby
<Hanmac>
micsha its an interpreter feature
<micsha>
so I wont find it in the ruby core language documentation?
hoelzro|away is now known as hoelzro
dmiller has joined #ruby
kpshek has joined #ruby
jphpsf has quit [Quit: Leaving]
mengu has quit [Quit: Konversation terminated!]
jphpsf has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
staafl_alt has joined #ruby
arya has joined #ruby
jaygen has quit [Read error: Connection reset by peer]
Nisstyre has joined #ruby
arturaz has quit [Remote host closed the connection]
asteve has joined #ruby
<micsha>
Me: "no body would name that a 'splat'... wow, they named it the splat operator"
swarley has quit [Quit: Leaving]
maletor has quit [Quit: Computer has gone to sleep.]
printesoi has quit [Quit: WeeChat 0.3.9.1]
<micsha>
Thanks everyone.
pavilionXP has joined #ruby
raunicolae has quit [Ping timeout: 260 seconds]
jackiechan0 has quit [Quit: Sto andando via]
swarley has joined #ruby
flip_digits has quit [Read error: Connection reset by peer]
jaygen has joined #ruby
BBonifield has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
asteve has quit [Client Quit]
blacktulip has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
gabrielrotbart has joined #ruby
<BBonifield>
So I'm getting a weird control level, ruby level, and c level backtrace in my app when i try to exec shell commands (tar in this case) using ``. The error reads: activesupport-3.1.0/lib/active_support/core_ext/kernel/agnostics.rb:7: [BUG] native_cond_broadcast: Resource temporarily unavailable (EAGAIN). Some quick googling makes it seem close to http://bugs.ruby-lang.org/issues/5155. Also, the machine in question is runing osx lion, whi
<BBonifield>
is what the bug was about.
<BBonifield>
thoughts?
stephenjudkins has joined #ruby
<CamonZ_>
hi, is there a way to alias an array to different params in a method call
bricker has joined #ruby
<CamonZ_>
and have as a last param another value not in the array
Cicloid has joined #ruby
nomenkun has quit [Remote host closed the connection]
qwerxy has joined #ruby
alexshenoy has joined #ruby
dakine has joined #ruby
axl__ has joined #ruby
bricker_ has quit [Ping timeout: 260 seconds]
miss0r has quit []
Elhu has quit [Quit: Computer has gone to sleep.]
<Sou|cutter>
camonz_: maybe take a dup of your source array, add an element to it, then pass it to your method with a splat?
monkegjinni has quit [Remote host closed the connection]
<CamonZ_>
Sou|cutter: thanks, going to do that
joeycarmello has quit [Quit: Leaving...]
axl_ has quit [Ping timeout: 260 seconds]
axl__ is now known as axl_
dorei has joined #ruby
etcetera has joined #ruby
maletor has joined #ruby
timonv has quit [Remote host closed the connection]
<micsha>
BBonifield: do a ruby -v on your installation
jslowe has quit [Quit: Leaving]
phantasm66 has quit [Quit: *sleeeeep*]
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
bwlang has left #ruby [#ruby]
Mkman has quit [Quit: Lost terminal]
<micsha>
it appears to have been fixed in rev 32846, if your ruby install is older than that, it might be the problem.
hoelzro is now known as hoelzro|away
theRoUS has quit [Ping timeout: 255 seconds]
gabrielrotbart has quit [Remote host closed the connection]
GoGoGarrett has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
emptyflask has joined #ruby
workmad3 has joined #ruby
macabre has quit [Remote host closed the connection]
ChampS666 has quit [Ping timeout: 246 seconds]
ij has joined #ruby
<micsha>
if you have a function like
<micsha>
def foo(*arg)
<micsha>
arg1, arg2 = arg
<micsha>
end
<micsha>
is that commonly refered to as 'unpacking' arguments?
etcetera has quit [Ping timeout: 245 seconds]
ossareh has joined #ruby
nkts_ has quit []
<apeiros_>
s/function/method/
zomgbie has joined #ruby
<apeiros_>
unsplat
jeffreybaird has quit [Quit: jeffreybaird]
rmcafee has quit [Quit: rmcafee]
ChampS666 has joined #ruby
<BBonifield>
micsha: yeah, i'm at 32553
dangerousdave has quit [Quit: Leaving...]
etcetera has joined #ruby
skattyadz has joined #ruby
<micsha>
oh, I mean the arg1, arg2 = arg, commonly known as unpacking or is that just what this tutorial is telling me?
<BBonifield>
i'm wondering if switching to 1.9.3 will simply fix it
mmitchell has quit [Remote host closed the connection]
<micsha>
if it doesn't break anything you might just try it.
ChampS666 has quit [Client Quit]
zomgbie has quit [Ping timeout: 260 seconds]
mmitchell has joined #ruby
havenn_ has quit [Remote host closed the connection]
h4mz1d has quit [Ping timeout: 276 seconds]
havenn has joined #ruby
snearch has quit [Quit: Verlassend]
jxf has quit [Ping timeout: 246 seconds]
LouisGB has quit [Ping timeout: 246 seconds]
Pip has joined #ruby
emergion has joined #ruby
<Pip>
Anyway to make irb colorful?
etcetera has quit []
_nitti has joined #ruby
havenn_ has joined #ruby
emergion has quit [Client Quit]
atmosx has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
alanp has joined #ruby
havenn has quit [Ping timeout: 252 seconds]
<d34th4ck3r>
does anyone know how to use open-uri if I am behind proxy ? :-/
micsha has quit [Ping timeout: 255 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
_nitti has quit [Ping timeout: 240 seconds]
[1]micsha has joined #ruby
micsha has joined #ruby
<atmosx>
d34th4ck3r: you need to proxy the request.
<atmosx>
Pip: plz change your nickname… you use bash right?
<havenn_>
Pip: As long as you are using ruby-1.9.2+ you are good. If it a *real* install not some mediocre fail package.
<atmosx>
tab-completion wont' work and it's annoying
osvico has quit [Ping timeout: 256 seconds]
<havenn_>
^
thone_ has quit [Ping timeout: 260 seconds]
<postmodern>
Pip, ok I'm guessing they did the same thing that Fedora did, and forced gems to be installed into ~/.gem/...
<havenn_>
pipopopo != Pip
<Pip>
atmosx, yes, bash, so?
<postmodern>
Pip, but forgot to add ~/.gem/.../bin to $PATH
<atmosx>
did you try to add the path to bash?
<postmodern>
Pip, Fedora did something like this, but had executables go into ~/bin/ instead
<Pip>
--user-install is the default gem option
<atmosx>
like export GEM_PATH= ...
<Pip>
that's why
<postmodern>
Pip, bingo
ninegrid has quit [Read error: Connection reset by peer]
<mda_>
anyone?
nari has quit [Ping timeout: 245 seconds]
x82_nicole has quit [Quit: Computer has gone to sleep.]
<postmodern>
Pip, yeah just add that bin/ path to PATH in your .bashrc
<reactormonk>
mda_, nope
<mda_>
reactormonk: what if I write a C plugin?
<atmosx>
mda_: lookign at the code won't help?
diffgeorge has quit [Quit: diffgeorge]
piotr__ has quit [Ping timeout: 264 seconds]
<Pip>
postmodern, there is no .gem/ruby/1.9.1/bin here
<Pip>
the bin folder doesn't exist
redbull has joined #ruby
kirun has quit [Quit: Client exiting]
<postmodern>
Pip, add it anyways
<atmosx>
seriously, won't do yourself a favor and install rvm or … whateveR?
<mda_>
The reason I'm curious is because Python doesn't implement floating point rounding or summation correctly....math.fsum([0.1,0.1,0.1]) stores an errant bit in the significand (mantissa), but str() discards it. Ruby's inspect just shows the correct answer.
<postmodern>
Pip, as soon as you install a gem with a bin/ script, the dir will be created
<Pip>
postmodern, wirble doesn't work for me here
<Pip>
even I created .irbrc
<atmosx>
mda_: I wish I could follow you, but I don't understand what do you mean by errant bit