<havenn>
Cache_Money: Oh, are you saving a JSON Hash or a Ruby Hash, not sure I read that right?
c0rn_ has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
frogprince has quit [Ping timeout: 248 seconds]
<Cache_Money>
havenn: a Ruby hash. That's why JSON.parse(contents) wasn't working. I had to do eval(conents) to successfully convert to Ruby hash
lggr has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
returnvoid has left #ruby [#ruby]
bbttxu has joined #ruby
Axsuul has quit [Ping timeout: 245 seconds]
<Spooner>
Cache_Money : You might like to look at pstore to store your Ruby data in a file (more easily).
c0rn_ has quit [Ping timeout: 245 seconds]
bwlang has joined #ruby
gfontenot has quit []
<Spooner>
Cache_Money : You never need to use eval in this way, unless you are doing something fundamentatlly wrong.
maletor has quit [Quit: Computer has gone to sleep.]
c0rn_ has joined #ruby
<Spooner>
If you write a hash to a file, then it doesn't magically become JSON. JSON has nothing to do with Ruby, although it can look a bit like hash/arrays do in Ruby.
gfontenot has joined #ruby
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-rc2)]
tommyvyo has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
<xorgnak>
theyre always the cancerous growth.
cakehero has joined #ruby
c0rn_ has quit [Ping timeout: 264 seconds]
c0rn_ has joined #ruby
CaptainJet has quit []
c0rn_ has quit [Client Quit]
Axsuul has joined #ruby
lggr has joined #ruby
dakine has quit [Ping timeout: 246 seconds]
cakehero_ has joined #ruby
Criztian has quit [Remote host closed the connection]
swarley| has joined #ruby
maletor has joined #ruby
swarley- has joined #ruby
Virunga has quit [Remote host closed the connection]
Seich is now known as seich
swarley has quit [Ping timeout: 260 seconds]
<Cache_Money>
Spooner: I understand that. So you recommend using PStore to write hashes to a file?
seoaqua has joined #ruby
<Spooner>
Well, no, PStore is a hash as a file. I don't really know what you want to do, so I can't advise you!
<Spooner>
You might be better with YAML or marshal or pstore or sqlite or morse code for all I know :D
ScottNYC has joined #ruby
<Cache_Money>
I'm scraping a website, store data in a hash to use later
lggr has quit [Ping timeout: 256 seconds]
specialGuest is now known as daniell
ph^ has joined #ruby
daniell is now known as danie
swarley| has quit [Ping timeout: 260 seconds]
nate76 has joined #ruby
<Cache_Money>
*storing
danie has left #ruby ["WeeChat 0.3.8"]
mercwithamouth has joined #ruby
<Spooner>
So some data but not a massive amount? But not wanting to store 1000s of website's scraped data?
<havenn>
Cache_Money: Save it as YAML, JSON, or Marshal IMHO. PStore is quite nice (uses Marshal behind the scenes).
<havenn>
Spooner: Do you want it in JSON format eventually? Or was that just how you were dealing with the Ruby Hash?
<havenn>
Oops, miss-tell... sry
<Cache_Money>
Spooner: scraping website by state to get a list of golf course URLs. Probably a couple hundered in each state. Not ready to scrape each course yet, so saving URLs until I'm ready
lggr has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
swarley- has quit [Ping timeout: 268 seconds]
<Spooner>
Marshal is probably best for you, if you don't need the file to be human-readable. You would use 'File.write("bleh.data", Marshal.dump(hash))' and 'hash = Marshal.load(File.read("bleh.data"))'
specialGuest has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
<Cache_Money>
havenn: I'm probably just going to use Ruby hash
specialGuest has quit [Client Quit]
<Cache_Money>
Spooner: sweet! I'll look into Marshal
<Spooner>
havenn : The JSON was what was being sent by the server. I think Cache_Money thought it was Ruby, since JSON looks a bit like Ruby data structures.
<Cache_Money>
exactly
<havenn>
Spooner: Ahh, gotcha.
<havenn>
Cache_Money: There is actually a RON (Ruby Object Notation) but nobody uses it >.> =P
<Spooner>
And the same when reading the file that Cache_Money had written a hash out to, presumably just using "puts hash" or similar.
gfontenot has quit []
<Cache_Money>
yup
<Spooner>
Though there mistaking Ruby for JSON :D
maletor has quit [Quit: Computer has gone to sleep.]
<Spooner>
I can understand the confusion. I really can.
<Spooner>
Used to be easier, since old Ruby hashes didn't look like JSON.
zeromodulus has joined #ruby
maletor has joined #ruby
jenrzzz_ has joined #ruby
cakehero_ has quit [Quit: Computer has gone to sleep.]
joeycarmello has quit [Remote host closed the connection]
pitty has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Banistergalaxy has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
daniel00 has joined #ruby
banisterfiend has quit [Ping timeout: 244 seconds]
hadees has joined #ruby
havenn has quit [Remote host closed the connection]
hbpoison has quit [Read error: Connection reset by peer]
aantix has quit [Quit: aantix]
faitswulff has quit [Quit: Page closed]
banisterfiend has joined #ruby
joeycarmello has quit [Remote host closed the connection]
quest88 has quit [Quit: quest88]
hbpoison_ has quit [Ping timeout: 248 seconds]
triptec has quit [Quit: triptec]
wallerdev has joined #ruby
hbpoison has joined #ruby
vitor-br has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 248 seconds]
awestroke has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
emsilva has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
AndChat- has joined #ruby
ph^ has quit [Ping timeout: 256 seconds]
Banistergalaxy has quit [Ping timeout: 244 seconds]
seoaqua has joined #ruby
diegoviola has quit [Ping timeout: 256 seconds]
awestroke has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
AndChat| has quit [Ping timeout: 268 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
justinmcp has quit [Remote host closed the connection]
sr___ has quit [Quit: Connection closed for inactivity]
pdtpatrick has joined #ruby
Banistergalaxy has joined #ruby
AndChat| has joined #ruby
luckyruby has joined #ruby
sent-hil has joined #ruby
hbpoison has quit [Ping timeout: 244 seconds]
lolmaus has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
KaOSoFt has joined #ruby
<KaOSoFt>
Hello, good evening.
Tobarja has joined #ruby
thejoecarroll has quit [Quit: (sorry—may be away right now)]
AndChat- has quit [Ping timeout: 268 seconds]
Banistergalaxy has quit [Ping timeout: 268 seconds]
<luckyruby>
what's a good way to identify duplicate values in an array?
<Spaceghostc2c>
luckyruby: identify them how?
<Tobarja>
i downloaded hacketyhack for my son(8yo) this week and he was intrigued by drawing with the turtle. unfortunately, there's not a lot of lessons in there. does anyone know if there are more lessons available for hacketyhack? if not, does anyone have suggestions for another kid-focused programming intro that might be graphics heavy?
vderyagin has joined #ruby
<luckyruby>
just output to stdout
<Tobarja>
s/heavy/centric/
<Spaceghostc2c>
luckyruby: Show me an example input and desired output maybe?
<KaOSoFt>
Is there a way what libraries was Ruby compiled with? I ask because I was installing a modified (patched with falcon performance improvements) version of 1.9.3-p194, but since I’m using the (new) fish shell, I wasn’t able to inline CONFIGURE_OPTS or CC, so I exported them as environment variables (set -x), but I don’t know if it worked.
<KaOSoFt>
a way to know*
davidcelis has quit [Quit: K-Lined.]
wallerdev has quit [Ping timeout: 256 seconds]
<KaOSoFt>
My idea of CONFIGURE_OPTS was to pass it Homebrew OpenSSL, Readline, and Libiconv.
<Tobarja>
Spaceghostc2c: hacketyhack runs on/with/hacked shoes.rb, so that seems ok. now looking for an intro to programming for kids w/shoes (crafted for comedic affect)
lggr has quit [Ping timeout: 246 seconds]
<luckyruby>
vderyagin: works but.. sloooow heh
<bnagy>
lots of calls to count, gonna kill you for big arrays
davidcelis has joined #ruby
hoelzro|away is now known as hoelzro
wallerdev has joined #ruby
justsee has quit [Quit: Leaving...]
lggr has joined #ruby
AlbireoX has joined #ruby
CannedCorn has joined #ruby
ph^ has joined #ruby
rakunHo has quit [Remote host closed the connection]
<bnagy>
a.each_with_object(Hash.new {|h,k| h[k]=0}) {|e,h| h[e]+=1}.select {|k,v| v>1}.keys test that for speed
<bnagy>
should be one trip through
<aces1up>
i'm using the win32api to set some dword flags.. how do I set a variable with a hex value then binary or multiple hex values to get the proper flags set?
justinmcp has joined #ruby
<bnagy>
aces1up: dword flags in what?
thejoecarroll has joined #ruby
<bnagy>
easiest is probably to pack numbers, windows is little endian
<bnagy>
in most places :/
josh^ has quit [Ping timeout: 244 seconds]
ARIZ has joined #ruby
wallerdev_ has joined #ruby
<aces1up>
bnagy the win32api api call i'm trying to make uses a dword, I have no trouble packing the attributes, but I need the proper way to say binary or 0x8 and 0x2 into the proper value.
<aces1up>
hope that makes sense.
<bnagy>
it doesn't at all
<aces1up>
lol
<bnagy>
if you're calling an api, you can just call it with a number
<bnagy>
the rest is just a matter of representation
AndChat| has joined #ruby
wallerdev has quit [Ping timeout: 268 seconds]
<aces1up>
bnagy well the way the dword works is by setting different bits on the dword to correspond with certain flags i want set.
<aces1up>
so you can't just set it.
AndChat- has joined #ruby
seoaqua has quit [Ping timeout: 246 seconds]
<bnagy>
like I define dword constants as 255 or 0xff whatever I feel like at the time
<aces1up>
I need to binary "or" multiple flag values to get the proper value to set.
timrom has joined #ruby
<bnagy>
oh right, that's just flags
<bnagy>
FOO=0x0x; BAR=0x10 ApiCall( FOO | BAR )
<aces1up>
bnagy so how would I do that? like for instance the flags i want are 0x8 and 0x2
josh^ has joined #ruby
<aces1up>
bnagy ok
<aces1up>
thanks.
bsmith has joined #ruby
<luckyruby>
bnagy: wow
<bsmith>
hello, is there a nice printer like awesomeprint with support for datamapper models?
<luckyruby>
that only took 14s against 80k elements
<bnagy>
is that better or worse? :)
<aces1up>
bnagy also do you know if this is actually hex or binary values on this page for the flags?
<luckyruby>
the other ways i had to ctrl-c out at 3min +
<bnagy>
you can use either, as I said
mikepack has quit [Remote host closed the connection]
hbpoison has joined #ruby
seoaqua has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
thejoecarroll_ has joined #ruby
thejoecarroll_ has quit [Remote host closed the connection]
mikepack has joined #ruby
<bnagy>
those are hex value
mikepack_ has joined #ruby
thejoecarroll has quit [Read error: Connection reset by peer]
ARIZ has left #ruby [#ruby]
Banistergalaxy has quit [Ping timeout: 268 seconds]
thejoecarroll has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
<luckyruby>
i almost feel like monkey patching Array to add that method
<CannedCorn>
hey guys
triptec has joined #ruby
<CannedCorn>
was wondering how to dynamically instantiate a class when its passed in as a string
<CannedCorn>
like Float
<CannedCorn>
for example
lggr has joined #ruby
<bnagy>
CannedCorn: start by looking at const_get
<CannedCorn>
thought you could use const_get
<CannedCorn>
yeah
AndChat| has quit [Ping timeout: 256 seconds]
CannedCorn has quit [Quit: Computer has gone to sleep.]
<bnagy>
aces1up: btw I would strongly recommend learning FFI for windows stuff
<bnagy>
win32api has some limitations and portability issues
mikepack_ has quit [Ping timeout: 264 seconds]
<pdtpatrick>
Question - after creating an instance of a class, how can i see instance methods of that class? Here's what I have so far .. https://gist.github.com/f87e1a880190b09015ac
<bnagy>
obj.methods or ObjClass.instance_methods
Chryson has quit [Quit: Leaving]
emanu has quit [Quit: emanu]
ph^ has quit [Ping timeout: 264 seconds]
c3mdigital has joined #ruby
<bnagy>
which may not be the same
c3mdigital has left #ruby [#ruby]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<bnagy>
cause of dynamic methods and stuff, like obj.extend Magic -> now obj will have methods that are not in ObjClass
emanu has joined #ruby
wallerdev_ has quit [Ping timeout: 256 seconds]
cody-- has quit [Remote host closed the connection]
awestroke has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
c0rn_ has quit []
wallerdev has joined #ruby
<pdtpatrick>
so the best way is to ObjClass.instance_methods(false) otherwise if i create an instance, all im seeing is a way of searching for your methods which you'll have to know what you're looking for?
<bnagy>
what are you trying to do?
virtualroot has quit [Ping timeout: 252 seconds]
<bnagy>
cause instance_methods false has tripped me up a few times, cause of inherited methods missing etc
fantazo has quit [Remote host closed the connection]
<bnagy>
Array.instance_methods(false).include? :group_by => false for example
Tobarja has left #ruby ["PONG :moorcock.freenode.net"]
<aces1up>
bnagy do you have a lot of experience with using the win32api?
<bnagy>
aces1up: with windows, yes, with the win32api gem not for a couple of years
lggr has joined #ruby
<bnagy>
I moved all my stuff to ffi
<aces1up>
I want to redirect output of the createprocess call to a pipe.. the windows create process wants a handle to pipe..
matrixise has quit [Ping timeout: 268 seconds]
<aces1up>
can I interface a ruby pipe with this? or do I specifically have to use windows pipes for this sort of thing?
<bnagy>
it's all fugly
hbpoison has quit [Ping timeout: 246 seconds]
wallerdev has quit [Ping timeout: 268 seconds]
<bnagy>
but dan berger has code for all of that
<bnagy>
I had a hacked popen implementation at one point
<bnagy>
but now the ruby one works, so I wouldn't advise writing your own
<aces1up>
bnagy have a link to the code yo be talking bout?
<aces1up>
bnagy well the popen runs a console window.
KaOSoFt has left #ruby [#ruby]
<aces1up>
which I don't want.
<aces1up>
is there a way to not have this happen?
<bnagy>
eh? it shouldn't
c0rn_ has joined #ruby
<bnagy>
basically apart from the wrapping, it's the same as writing the code in C
<bnagy>
so you normally have to use C docs to work it all out
triptec has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
<bnagy>
hang on lemme see if I still have the crappy popen
<Cache_Money>
so basically just scan the contents of each script tag until I find what I'm looking for?
Hanmac1 is now known as Hanmac
mikepack has quit [Remote host closed the connection]
Nanuq has joined #ruby
xeronic has joined #ruby
Nisstyre has quit [Read error: Connection reset by peer]
beneggett has quit [Client Quit]
sent-hil has quit [Remote host closed the connection]
elsifaka has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
dross has quit [Quit: Nope!]
Nisstyre has joined #ruby
ph^ has joined #ruby
awestroke has joined #ruby
<reactormonk>
Cache_Money: open the page in a browser, access the global object?
<Cache_Money>
reactormonk: i want to scape the page and avoid using a browser if possible
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
maesbn has joined #ruby
uokesita has joined #ruby
<reactormonk>
Cache_Money: have fun with complexity
darkfox83 has joined #ruby
<Cache_Money>
haha thanks
<A124>
Cache_Money: Would you like help with that?
lggr has joined #ruby
<Cache_Money>
A124: which part?
senny has joined #ruby
<A124>
Cache_Money: I'm not separating projects into pieces.
darkfox83 has quit [Remote host closed the connection]
darkfox83 has joined #ruby
djdb has joined #ruby
<Cache_Money>
send me a message
tgraham has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
xeronic has quit [Ping timeout: 252 seconds]
mneorr has quit [Remote host closed the connection]
lggr has joined #ruby
sepp2k has joined #ruby
luckyruby has quit [Remote host closed the connection]
seoaqua has quit [Ping timeout: 260 seconds]
digitalcakestudi has quit [Ping timeout: 264 seconds]
triptec has joined #ruby
hbpoison has joined #ruby
dr_bob has joined #ruby
banisterfiend has joined #ruby
triptec has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 256 seconds]
ghanima has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
areil has joined #ruby
<jokar>
shevy : hi,are you here?
xpen_ has quit [Remote host closed the connection]
triptec has joined #ruby
banisterfiend has quit [Ping timeout: 245 seconds]
xpen has joined #ruby
banisterfiend has joined #ruby
dakine has quit [Ping timeout: 264 seconds]
cantonic_ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
moshee has quit [Ping timeout: 245 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
jarred has joined #ruby
zigomir has joined #ruby
xpen_ has joined #ruby
hoelzro is now known as hoelzro|away
cantonic has quit [Ping timeout: 244 seconds]
cantonic_ is now known as cantonic
timonv has quit [Remote host closed the connection]
xpen has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
Criztian has joined #ruby
Morkel has joined #ruby
A124 has left #ruby [#ruby]
bobbbo has joined #ruby
bobbbo has quit [Client Quit]
jprovazn has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
Criztian has quit [Remote host closed the connection]
lggr has joined #ruby
matrixise has joined #ruby
SegFaultAX has quit [Quit: Lost terminal]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
bigkevmcd has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
ssspiff has joined #ruby
zigomir has quit [Quit: Leaving]
arkiver has joined #ruby
jarred has quit [Quit: jarred]
zigomir has joined #ruby
wvdschel has joined #ruby
wvdschel has quit [Remote host closed the connection]
Elhu has joined #ruby
justsee has quit [Quit: Leaving...]
ryanf has quit [Quit: leaving]
lggr has quit [Ping timeout: 264 seconds]
dakine has joined #ruby
Elhu has quit [Client Quit]
budha has joined #ruby
uokesita has quit [Quit: This computer has gone to sleep]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
vlad_starkov has joined #ruby
lggr has joined #ruby
hsbt has quit [Quit: Tiarra 0.1+svn-39036: SIGTERM received; exit]
hsbt has joined #ruby
aganov has joined #ruby
zommi has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
justsee has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
pingfloyd has quit [Quit: pingfloyd]
iCEAGE has joined #ruby
iCEAGE has quit [Client Quit]
sepp2k has quit [Remote host closed the connection]
tgraham has quit [Quit: Leaving...]
flype has joined #ruby
LouisGB has joined #ruby
albel727 has quit [Read error: Connection reset by peer]
kollapse has joined #ruby
kollapse has quit [Changing host]
kollapse has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
Hamed-R has joined #ruby
Eldariof18-ru has joined #ruby
mucker has joined #ruby
Hamed-R has left #ruby [#ruby]
mahmoudimus has joined #ruby
Hamed-R has joined #ruby
justinmcp has quit [Ping timeout: 256 seconds]
hoelzro|away is now known as hoelzro
lggr has joined #ruby
justinmcp has joined #ruby
stepnem has joined #ruby
und3f has joined #ruby
dr_bob has quit [Quit: Tune in next week when you'll hear Dr. Bob say...]
<nykac>
any ideas how to use Rails and mongodb effectively?
skogis has joined #ruby
Hamed-R has quit [Ping timeout: 245 seconds]
bigkevmcd has quit [Quit: outta here]
emanu has quit [Quit: emanu]
Hamed-R has joined #ruby
Hamed-R has quit [Changing host]
Hamed-R has joined #ruby
bigkevmcd has joined #ruby
awestroke has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
<Hanmac>
nykace look at #rubyonrails
pdelgallego has joined #ruby
bobbbo has joined #ruby
joofsh has quit [Quit: Leaving]
matthewrobbins has joined #ruby
lggr has joined #ruby
frogprince has joined #ruby
LouisGB has quit []
<TommyBotten>
n/clear
<TommyBotten>
eh
moshee has quit [Ping timeout: 268 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
LouisGB has joined #ruby
justinmcp has quit [Remote host closed the connection]
daniel_- has joined #ruby
niklasb has joined #ruby
vlad_starkov has joined #ruby
banisterfiend has quit [Ping timeout: 245 seconds]
Iszak has quit [Quit: User has gone to sleep.]
F1skr has joined #ruby
awestroke has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
niklasb has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
Iszak has joined #ruby
jimeh has joined #ruby
awestroke has quit [Remote host closed the connection]
haxrbyte has joined #ruby
Nisstyre_ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
Nisstyre has quit [Ping timeout: 248 seconds]
jgrevich has quit [Quit: jgrevich]
thunders_ has joined #ruby
timonv has joined #ruby
awestroke has joined #ruby
jimeh2 has joined #ruby
lggr has joined #ruby
awestroke has quit [Remote host closed the connection]
jimeh has quit [Ping timeout: 256 seconds]
haxrbyte_ has joined #ruby
daniel_- has quit [Ping timeout: 246 seconds]
haxrbyt__ has joined #ruby
haxrbyte has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 246 seconds]
chussenot has joined #ruby
moshee has quit [Ping timeout: 264 seconds]
timmow has joined #ruby
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
Xeago has joined #ruby
iocor has joined #ruby
<Xeago>
>> puts 'bot up?'
haxrbyte_ has quit [Ping timeout: 256 seconds]
<Xeago>
well, can't blame vagrant was hard to get working aswell..
justsee has quit [Quit: Leaving...]
<hoelzro>
the bot should add Object#bot_up?
<hoelzro>
and it always returns true =)
arietis has joined #ruby
haxrbyt__ has quit [Remote host closed the connection]
<Xeago>
hoelzro: fork it :3
justsee has joined #ruby
justsee has quit [Changing host]
fr0gprince_ has joined #ruby
justsee has joined #ruby
frogprince has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
frogprince has joined #ruby
fr0gprince_ has quit [Ping timeout: 246 seconds]
alem0lars has joined #ruby
banisterfiend has joined #ruby
daniel_- has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
vaclavt has joined #ruby
matthewrobbins_ has joined #ruby
matthewrobbins_ has quit [Remote host closed the connection]
matthewrobbins_ has joined #ruby
elaptics`away is now known as elaptics
matthewrobbins has quit [Read error: Operation timed out]
matthewrobbins_ is now known as matthewrobbins
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<daniel_->
anybody uses whenever gem? I using it to backup to a external drive. Cant I configure my cronjob to look is a directory exists first, before backup?
<daniel_->
if a directory*
lggr has joined #ruby
hbpoison has quit [Ping timeout: 244 seconds]
<msch>
daniel_-: sure just use this line in the crontab if [ -d "/the/directory" ]; then the-command; fi
<msch>
daniel_-: you can check out the other files in /etc/cron.{d,hourly,daily,...} to get ideas for other checks
<daniel_->
ah yes cool
workmad3 has joined #ruby
berserkr has joined #ruby
<daniel_->
thx msch
<msch>
daniel_-: np
<matti>
;]
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
eddie__ has joined #ruby
<daniel_->
matti: ^^
<matti>
Hi daniel_-
<eddie__>
How to run a ruby program from another ruby script with arguments ?
<eddie__>
anyone?
<eddie__>
i dont want to do `ruby script.rb foo bar`
<banisterfiend>
eddie__ why dont you want to do that
<eddie__>
seems ugly
<banisterfiend>
eddie__ too bad
<banisterfiend>
do it
<eddie__>
is there a perfect way to do it
<eddie__>
?
<matti>
banisterfiend: ;] ;] ;]
<matti>
banisterfiend: You are such a bad influence.
<banisterfiend>
matti thats what she said
<eddie__>
banisterfiend: so no other solution?
Hamed-R has quit [Quit: Leaving]
<banisterfiend>
eddie__ probalby something using RbConfig
<eddie__>
ok
<eddie__>
thanks
<banisterfiend>
to find the current ruby executable, as it's not guaranteed the current program will be started with just 'ruby' i guess
<eddie__>
or i will end up doing ``
<bnagy>
just use `` or system or whatever
<bnagy>
all the other ways will boil down to the same thing
<eddie__>
i want to run a daemon controller from another script
<banisterfiend>
msch cool, i dont hav emuch experience with haskell
<banisterfiend>
im sure there's a lot ruby coud take from it
yshh has quit [Remote host closed the connection]
<banisterfiend>
msch does haskell have fibers/co-routines?
<msch>
banisterfiend: yes it does.
<msch>
banisterfiend: stream fusion is awesome. makes the compiler turn .map{....}.select{...}.map{...}.... into a single loop
jearvondharrie has joined #ruby
ABK_ has joined #ruby
<banisterfiend>
msch how does it work?
<msch>
banisterfiend: sufficiently smart compiler :) i mean you can manually rewrite it into output = []; [1,2,3].each { |i| if i = ... then next ; i = whatever_you_did_in_map ; if i == ... next ; i = whatever_you_did_in_the_second_map ; output << i }
<banisterfiend>
msch i mean .lazy kind of does that too, i think
<msch>
banisterfiend: yeah, the behavior is the same, but lazy has way more overhead. i mean haskell is a static language, can't really compare it to ruby.
baphled has joined #ruby
<banisterfiend>
msch true
abionic has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
<banisterfiend>
msch i think for the basic enumerators like map/select etc they might be able to special case them in ruby, not sure
<msch>
banisterfiend: i don't think they'll do that though
<banisterfiend>
perhaps not
frogprince_mac has joined #ruby
<banisterfiend>
msch anyway, i dont think the actual iteration part is usually the bottleneck
<banisterfiend>
in any app
awestroke has joined #ruby
<msch>
banisterfiend: true. except in some scientific calculation stuff i guess
h8R has quit [Ping timeout: 246 seconds]
KindTwo has joined #ruby
<banisterfiend>
msch other cool things in rjuby 2.0: refinements
<banisterfiend>
i think they finally made it in
snearch has joined #ruby
<msch>
banisterfiend: yeah i think i read about that too. refinements <3
<banisterfiend>
msch i also read somewhere that ruby will get traits
b26 has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
<banisterfiend>
but that just sounds confusing to me
<banisterfiend>
mixins are too similar and it'll be really subtle knowing when to use each one
<msch>
banisterfiend: yeah i think it's all just different words for refinements
codefyre has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
answer_42 has joined #ruby
Guest88336 has joined #ruby
<Guest88336>
hi
sailias has joined #ruby
<banisterfiend>
ah, i read that traits were kind of like modules but rather than the methods living further up the ancestor chain, they get baked directly into the receiver
<banisterfiend>
so it makes their behaviuor more predictable or something
<banisterfiend>
you're also forced to resolve method conflicts at the point you mix the trait in
ttt has quit [Remote host closed the connection]
<msch>
banisterfiend: oh interesting
<msch>
didn't know about that
banisterfiend has quit [Read error: Connection reset by peer]
<Guest88336>
i'm trying to load an external.rb file (which only returns a "string"), is there someway to pass that into a variable (which can be returned upwards)?
banisterfiend has joined #ruby
<shevy>
what
lggr has joined #ruby
<shevy>
Guest88336 require 'name.rb' does not work?
<shevy>
because 'name.rb' is a string too you know :P
<shevy>
x = 'name.rb'; require x
<Guest88336>
something like " load(File.dirname($0) + '/helpers/blah/hello.rb')"
<Guest88336>
and hello.rb returns just a string "bla"
<Guest88336>
actually load just returns True|False which is fine, but i want to return the "bla" from the hello.rb file
<Guest88336>
;p
<shevy>
uhm
<shevy>
the above will just load a file
F1skr has quit [Quit: WeeChat 0.3.8]
<Guest88336>
which is fine, i want it to be run everytime
<shevy>
yeah but you want the file hello.rb to return bla
<Guest88336>
yes
matrixise has quit [Ping timeout: 244 seconds]
<shevy>
hmmmm
<shevy>
ruby will try to load a file
<Guest88336>
or maybe i should just call the file via %x etc.
<shevy>
if you would put return false in hello.rb then ruby would complain with an "Invalid return" error message
matthewrobbins has joined #ruby
Neomex has joined #ruby
josh^ has quit [Remote host closed the connection]
awestroke has quit [Remote host closed the connection]
tommyvyo has joined #ruby
ttt has quit [Ping timeout: 260 seconds]
<mguy>
Mac OS X 10.8.2, ruby 1.8.7, rubygems 1.8.24
<mguy>
No erorrs, it just sits there
banisterfiend has joined #ruby
<lasse_>
I going to write a small script that collects info and stores it somewhere. I'm looking for a simple storage without any mirgration. not mongodb,redis,mysql etc... Any ideas?
<mguy>
It goes through the usual dev tools according to top - then it doesn't have any more activity
jastix has joined #ruby
<hoelzro>
lasse_: if you don't want to bother with a server, I would recommend SQLite or another disk-based DB
<Xeago>
lasse_: output json or marshals
<canton7>
depends on size of data / whether you need to search / etc
<canton7>
json/yaml/other serialization can work well
awestroke has joined #ruby
<lasse_>
canton7: small data, and I don't need to search. I can load everything into memory and make the search
<mguy>
Hanmac: and using '--verbose' when I install the gem doesn't appear to give me any more info
awestroke has quit [Remote host closed the connection]
<Xeago>
lasse_: json or marshals, marshals are easiest if everything is ruby objects
<lasse_>
Xeago: ok, thanks
lggr has quit [Ping timeout: 260 seconds]
peanuts___ has joined #ruby
<peanuts___>
Hi all
ABK_ has quit [Ping timeout: 248 seconds]
krawchyk has joined #ruby
<peanuts___>
Do you know if it's possible to use shoulda-matchers with test:unit ?
<peanuts___>
On their github it appears to me unclear
<Xeago>
neways, ncal -w | sed "s/.*/ & /;s/ $(date +%e) / [] / is cool
<Xeago>
tho, it fails earlyyear
lggr has joined #ruby
stopbit has joined #ruby
areil has quit [Ping timeout: 246 seconds]
areil_ has joined #ruby
haxrbyte has joined #ruby
frogprince has quit [Ping timeout: 246 seconds]
mucker has quit [Quit: leaving]
uris has joined #ruby
bbttxu has quit [Quit: bbttxu]
busybox42 has quit [Quit: Leaving.]
jearvondharrie has quit [Remote host closed the connection]
busybox42 has joined #ruby
lledet has joined #ruby
crack_head has quit [Quit: Killed by BlackJac (Requested by panasync)]
iamjarvo has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
<shevy>
long live ruby!
imsplitbit has joined #ruby
frogprince has joined #ruby
lggr has joined #ruby
chussenot has joined #ruby
Aristata has quit [Quit: Leaving.]
the_jeebster has joined #ruby
areil_ has quit []
iori has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
<the_jeebster>
if I'm appending multiple items to a ruby set with <<, do the items need to be wrapped in an array or is simple comma delimitation ok?
<shevy>
what is comma delimitation
linoj has joined #ruby
<shevy>
"foo","bla" would not be valid ruby syntax
<the_jeebster>
comma separation
ryanlecompte has joined #ruby
pricees has joined #ruby
<the_jeebster>
s = Set.new
<the_jeebster>
s << object_1, object_2
<the_jeebster>
or does it have to be s << [object_1, object2]
<shevy>
the ruby parser will error on the first
<hoelzro>
the_jeebster: s << [object1, object2] adds the array to the set
<hoelzro>
and is probably not what you want.
<shevy>
with [] it works because you append an array object
justinmcp has quit [Remote host closed the connection]
<the_jeebster>
ah I see how it works
<the_jeebster>
I didn't realize I had to require it either so I could try it in irb :)
justinmcp has joined #ruby
Spooner has joined #ruby
PragCypher has joined #ruby
ananthakumaran has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
zz_chrismcg is now known as chrismcg
uris_ has joined #ruby
uris has quit [Read error: Connection reset by peer]
ghanima has joined #ruby
joshman_ has joined #ruby
yoklov has joined #ruby
hukl has quit [Quit: Leaving...]
ph^ has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
xclite has joined #ruby
arubin has joined #ruby
areil has joined #ruby
krawchyk_ has joined #ruby
nateberkopec has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
CannedCorn has joined #ruby
Animawish has joined #ruby
<CannedCorn>
hey guys, so I'm trying to dynamically instantiate classes based on their a string passed to a function
krawchy__ has joined #ruby
<CannedCorn>
with const_get
krawchyk has quit [Ping timeout: 248 seconds]
<CannedCorn>
and it seems like float doesn't have a new function
Animawish has left #ruby [#ruby]
<Hanmac>
numeric classes are build with Float(n) or Complex(n) or Rational(n) ...
krawchy__ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
bartj3 has joined #ruby
pricees has quit [Ping timeout: 260 seconds]
daniel_- has quit [Ping timeout: 246 seconds]
hukl has joined #ruby
arubin has quit [Quit: arubin]
lggr has joined #ruby
Appineer has quit [Remote host closed the connection]
jclem has joined #ruby
pricees has joined #ruby
<Synthead>
I want to make this regex match every hostname in the test string here: http://rubular.com/r/oj7bByIc1e. The goal is to make an array of hostname strings. How can I do this?
<shevy>
what is the requirement for those matches exactly
<shevy>
what do they have in common
<shevy>
leading 10. ?
<Synthead>
shevy: (\d+\.){3}\d+\s+(.*$)\n
<shevy>
I think for several matches, one usually uses .scan()
Zate has joined #ruby
<Synthead>
shevy: yeah? I'll look it up
Zate has left #ruby [#ruby]
<shevy>
you could perhaps split on newline, then iterate over each line, and apply your regex
Peter-W has quit [Quit: Leaving]
icooba has quit [Ping timeout: 256 seconds]
<shevy>
and extract the matched content via $1 and $2
<Synthead>
shevy: I'm looking for lines after "# Hosts I care about.\n" and before "\n\n"
<shevy>
you need the full numerical part right?
mattyoho has quit [Quit: mattyoho]
headius has joined #ruby
<Synthead>
shevy: I could .match that one then .scan it, but it seems a little hacky (what do you think)?
<Synthead>
shevy: I'm looking for the hostnames
<shevy>
ah for things like that, I use dumb variants. I build me a new array, after the keyword has been found, even without a regex :D
<Synthead>
shevy: hahaha, awesome
<shevy>
if the input is really as simple and as structured as that, then I would not bother with a regex
<shevy>
I hate regexes, they force my brain to do extra work. I am lazy
<Synthead>
shevy: but I liiiike regex :'( jk
<shevy>
yeah, with a regex it could perhaps be done in one line alone
<Synthead>
well, not really jk, but I'm indifferent
<Synthead>
mostly
<Synthead>
ha
uokesita has left #ruby ["Leaving"]
<shevy>
but I have noticed it in my own code, when I dont use a complicated regex for ~a year, then look at that code, I dont quite understand what is going on from the regex alone
lggr has quit [Ping timeout: 246 seconds]
<shevy>
so I usually document what the regex is doing
<shevy>
but I still don't like it
<shevy>
/.*# Hosts I care about.\n((\d+\.){3}\d+\s+(.*$)\n)*\n/
<shevy>
quite hefty already :)
asteve has joined #ruby
<shevy>
two named captures right? for $1 and $2
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
<jokar>
shevy : hi
emanu has joined #ruby
<shevy>
hi jokar
<shevy>
are you still learning ruby
dpk has quit [Quit: Asleep at the keyboard.]
<jokar>
shevy : i saw mruby in github,do you have any contact with creator of ruby?
<jokar>
yes
<jokar>
i change lesson 2
<shevy>
I dont have any contact with matz, he lives in japan, that is like another planet man
frogprince_mac has joined #ruby
<jokar>
shevy : can i send an email for you and explain some problem?
<shevy>
but you can see that this is what he is doing lately
<shevy>
mruby - mini ruby... eMbedded ruby
<shevy>
jokar!!!
<shevy>
cant you just type here...
<shevy>
isolate the problem to the smallest thing that can be solved
<jokar>
shevy : i can't,it is personal really
<jokar>
it is a regular question
<jokar>
not a logic problem or programming problem
<jokar>
i need your opinion about a problem
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<shevy>
I have no opinion man
<shevy>
I am just someone who likes the language ruby
<jokar>
shevy : :),but it is about a domain name
<jokar>
you can help me
<shevy>
I dont know anything about domain names
<Spooner>
Never ask if you can ask. It just wastes a lot of time :D
<jokar>
sorry
icooba has joined #ruby
lggr has joined #ruby
<shevy>
I only know a bit about ruby
<shevy>
ruby ruby ruby
bbttxu has joined #ruby
<shevy>
Spooner knows more about ruby than I do though
<jokar>
shevy : OK
krawchyk has joined #ruby
locriani has quit [Read error: Operation timed out]
krawchyk has quit [Remote host closed the connection]
<Xeago>
what icon would you use for a nosql/kv-store when designing an architecture?
elico has joined #ruby
thone_ has joined #ruby
<Xeago>
jokar: ask here or be gone, don't return otherwise
<shevy>
a wooden table perhaps
philcrissman has joined #ruby
<Xeago>
why wood
<shevy>
perhaps with apple-ish glimmer
<hoelzro>
a four cornered table
<hoelzro>
with three legs
<shevy>
dunno... I always associate some kind of bar or table with a store
<Xeago>
I feel metal would be more suited
<CannedCorn>
Hanmac so how would I call that manually
<shevy>
perhaps something with a no-sql logo on it
<CannedCorn>
I'm not sure what the internal mechanism is there
<shevy>
Xeago, yeah perhaps... a plastic wood surface :))
imami|afk is now known as banseljaj
<CannedCorn>
obviously initialize is called when you use #new
frogprince_mac has quit [Quit: Leaving...]
<CannedCorn>
but what happens when you instantiate without new
<Xeago>
CannedCorn: how do you instantiate without new?
moeSeth has joined #ruby
zigomir has quit [Quit: Leaving]
<Hanmac>
CannedCorn something like this Object.send("Float","3")
quest88 has joined #ruby
joeycarmello has joined #ruby
dr_bob has joined #ruby
thone has quit [Ping timeout: 246 seconds]
LBRapid has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<shevy>
CannedCorn .new should call .allocate, then .initialize
dhruvasagar has quit [Read error: Operation timed out]
<CannedCorn>
shevy the usage i came accross was testing for errors in initialization
<CannedCorn>
you would have to allocate an instance
axl_ has joined #ruby
<CannedCorn>
then setup the test
<CannedCorn>
and then send "initialize" essentially
<CannedCorn>
it was sweet
<CannedCorn>
ok so there isn't really any way to do what I want… i might want to use eval
LBRapid has quit [Client Quit]
<Hanmac>
this is a list of Classes with can (or should be) called with classname() : Object.constants & Kernel.methods #=> [:String, :Integer, :Float, :Array, :Rational, :Complex]
<CannedCorn>
Kernel.send works
ttt has quit [Ping timeout: 240 seconds]
cakehero_ has joined #ruby
wallerdev has joined #ruby
emanu has joined #ruby
mguy has left #ruby [#ruby]
cakehero has quit [Quit: Computer has gone to sleep.]
emanu has quit [Client Quit]
ssspiff has quit [Remote host closed the connection]
LBRapid has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
pdelgallego has quit [Quit: pdelgallego]
Guest95691 has quit [Quit: Leaving]
baphled has quit [Ping timeout: 246 seconds]
cakehero has joined #ruby
LBRapid has quit [Client Quit]
cakehero_ has quit [Ping timeout: 256 seconds]
xeronic has quit [Ping timeout: 272 seconds]
Xeago_ has joined #ruby
blazes816 has joined #ruby
ph^ has joined #ruby
lggr has joined #ruby
RichieEvan has quit [Quit: RichieEvan]
<shevy>
CannedCorn hmm
matrixise has quit [Ping timeout: 260 seconds]
mucker has joined #ruby
<shevy>
oh
<shevy>
what is the & again
<hoelzro>
shevy: union
<shevy>
intersection, which members are found in both ?
<shevy>
ah ok
<hoelzro>
er, intersection
<hoelzro>
you're right
<shevy>
I like the word union too
<hoelzro>
it's pretty sweet.
<shevy>
it reminds me of happy objects working together
<shevy>
:)
<Spooner>
Union is |
<shevy>
a shame _why left... he could have made more of those why-cats figures explaining ruby
arubin has joined #ruby
matrixise has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
<fir_ed>
what does "::" mean in ruby?
iocor has joined #ruby
<Spaceghostc2c>
Namespacing separator.
<fir_ed>
is it the same as . in c#?
<fir_ed>
ah
CodeVision has quit [Quit: WeeChat 0.3.8]
<Hanmac>
its the same as in c++ too
triptec has joined #ruby
<Spaceghostc2c>
fir_ed: I don't know personally.
<fir_ed>
ty
bbttxu has quit [Ping timeout: 244 seconds]
aganov has quit [Quit: aganov]
ndrei has quit [Quit: leaving]
ndrei has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
mr_no has joined #ruby
krawchyk has joined #ruby
dpk has joined #ruby
xyzodiac has joined #ruby
vaclavt has quit [Quit: vaclavt]
locriani has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
bsmith has quit [Ping timeout: 246 seconds]
ryanlecompte has quit [Remote host closed the connection]
joeycarmello has quit [Remote host closed the connection]
CodeVision has joined #ruby
beit has joined #ruby
bartj3 has quit []
QKO_ has quit [Read error: Connection reset by peer]
haxrbyte has quit [Remote host closed the connection]
QKO has joined #ruby
mikepack has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
xeronic has joined #ruby
quest88 has quit [Quit: quest88]
whitenoise has joined #ruby
Soul_Est has joined #ruby
<shevy>
hehe
<shevy>
Hanmac is our C++ guru
<shevy>
indeed
<shevy>
matz stole a bit of C++ did he not?
<shevy>
::foo()
<shevy>
cout << "yippie"
<moshee>
be glad he copied the << part instead of the cout part
<Hanmac>
ruby has "function-pointer" too ... but no nice syntax for that :(
monkegji_ has quit [Remote host closed the connection]
justsee has quit [Quit: Leaving...]
diegoviola has joined #ruby
diegoviola has quit [Client Quit]
mmitchell has quit [Remote host closed the connection]
Aaaarg has joined #ruby
Aaaarg has quit [Excess Flood]
jwmann has joined #ruby
mmitchell has joined #ruby
lggr has joined #ruby
Aaaarg has joined #ruby
Aaaarg has quit [Excess Flood]
Aaaarg has joined #ruby
davidcelis has quit [Quit: K-Lined.]
monkegjinni has joined #ruby
adam__ has quit [Remote host closed the connection]
iocor has joined #ruby
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
AlecTaylor has joined #ruby
baroquebobcat has joined #ruby
<AlecTaylor>
$gem install rails // 3 hours later!
lggr has quit [Ping timeout: 268 seconds]
Aaaarg_ has joined #ruby
mucker has quit [Quit: leaving]
zleslie has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
justsee has quit [Client Quit]
<zleslie>
Hi. I am stuck. Why is it that when I do File.read('/etc/make.conf') =~ /WITH_ARG/, I never get a match, even though File.read('/etc/make.conf') clearly contains the string WITH_ARG?
philcrissman has quit [Remote host closed the connection]
pitty has joined #ruby
banisterfiend has quit [Ping timeout: 260 seconds]
ttt has joined #ruby
Shamgar has quit [Changing host]
Shamgar has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
hoelzro is now known as hoelzro|away
mohits has quit [Ping timeout: 246 seconds]
elsifaka has quit [Quit: Veloma e!]
lggr has joined #ruby
bradhe has joined #ruby
deadghost has joined #ruby
ttt has quit [Ping timeout: 240 seconds]
<neersighted>
so, which would you guys recomend to comment my code:
<neersighted>
TomDoc or YARD?
<neersighted>
I've been using YARD, but TomDoc looks pretty nice
<neersighted>
(but it's VERY strict about syntax and order)
dustinleer has quit [Remote host closed the connection]
mmitchell has joined #ruby
dustinleer has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
dustinleer has quit [Remote host closed the connection]
philcrissman has joined #ruby
ffranz has joined #ruby
flagg0204 has quit [Quit: leaving]
Eldariof18-ru has quit [Ping timeout: 246 seconds]
aantix has joined #ruby
dustinleer has joined #ruby
ryanlecompte has joined #ruby
uris_ has quit [Quit: Lost terminal]
lggr has quit [Ping timeout: 248 seconds]
senny has quit [Remote host closed the connection]
frogprince has quit [Remote host closed the connection]
fra000 has joined #ruby
baphled has joined #ruby
frogprince has joined #ruby
lggr has joined #ruby
jwmann has quit [Quit: Leaving.]
mercwithamouth has quit [Ping timeout: 246 seconds]
zommi has left #ruby [#ruby]
IrishGringo has quit [Quit: ChatZilla 0.9.89 [Firefox 15.0.1/20120905151427]]
MissionCritical has quit [Ping timeout: 252 seconds]
reuf has quit [Quit: Leaving]
bobbbo has quit [Quit: bobbbo]
lggr has quit [Ping timeout: 246 seconds]
bbttxu has quit [Ping timeout: 248 seconds]
<emsilva>
Morning. I'm using bundle for setting up my gems, I have added tzinfo gem on it and installed successfully. If I go to "bundle console" and try to "TZInfo:Timezone… " it works successfully. When I try the same code on my sinatra application which is using the same bundler setup, it gives me a NameError "uninitialized constant Sinatra::Application::TZInfo" any idea why or on what I could do different? Thanks.
matrixise has quit [Ping timeout: 246 seconds]
h4mz1d has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
IrishGringo has joined #ruby
carloslopes has quit [Quit: Leaving.]
jonathanwallace has joined #ruby
fra000 has quit [Quit: Leaving]
jgrevich has joined #ruby
deadghost has quit [Ping timeout: 264 seconds]
ewag_ has joined #ruby
hukl_ has joined #ruby
hukl_ has quit [Client Quit]
zeromodulus has quit [Read error: Connection reset by peer]
flagg0204 has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
zeromodulus has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
br4ndon has joined #ruby
alanp has joined #ruby
<blazes816>
emsilva: have you required the gem into your sinatra app?
hukl has quit [Ping timeout: 256 seconds]
<emsilva>
blazes816: I have not, if I do, it gives me a load error. The weird part is that if I try to "require 'tzinfo'" on bundle console, it doesn't work either (the require) but I can use the gem without a problem.
<blazes816>
what load error?
flype has joined #ruby
<blazes816>
have you tried require 'ruby gems' first?
<daniel_->
anyone uses whenever gem ? I want to put a conditional in my command in the config file -> command "if [ -d "pathtodir"]; then ..... fi". BUT obviously it doesnt work because of the many quotation marks :)
vderyagin has quit [Remote host closed the connection]
lyaunzbe has quit [Ping timeout: 246 seconds]
wereHamster has quit [Changing host]
wereHamster has joined #ruby
whitenoise has quit [Ping timeout: 246 seconds]
<daniel_->
i tried 'pathtodir' instead of "pathtodir". any suggestions?
adambeynon has quit [Quit: Computer has gone to sleep.]
mwilson` has joined #ruby
rburton- has joined #ruby
dpk has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
hukl has joined #ruby
chrismcg is now known as zz_chrismcg
arubin has quit [Quit: arubin]
shevy has quit [Ping timeout: 246 seconds]
ttt has joined #ruby
etherdev has joined #ruby
philcrissman has quit [Remote host closed the connection]
chussenot has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
emsilva has quit [Read error: Connection reset by peer]
<shevy>
is there a way to check for filenames shorter?
bricker_ has quit [Ping timeout: 260 seconds]
macmarti_ has joined #ruby
<davidcelis>
#extension ?
<davidcelis>
er, #filetype?
SCommette_ has joined #ruby
duard has quit [Remote host closed the connection]
HVboom has joined #ruby
<davidcelis>
damn, sorry, it's #extname
mikeg has quit [Quit: Leaving]
<shevy>
oh yes
<davidcelis>
File.extname("script.rb") # => ".rb"
<shevy>
why did I forget it :(
d-snp has joined #ruby
<shevy>
thanks davidcelis
BeLucid has quit [Read error: Connection reset by peer]
<davidcelis>
you're welcome shevy
<kaleido>
just dont forget it again
<kaleido>
or else!
krawchyk has quit [Remote host closed the connection]
<asteve>
matti: why not log to syslog?
<shevy>
kaleido, yeah... I did use it in the past... I dont know why I did not use it here for this code... I think sometimes my brain is much dumber on some days than it is on other days
<hashpuppy>
i have something like a logger that is global. and it has 5 methods. it can be enabled or disbaled. it's called by doing $thingie.record("abc"). it can be disabled by being nil. i can't change this source. is this my best option to making sure this isn't called: $thingie.record("abc") unless $thing.nil?
<hashpuppy>
i have many of tehse scattered throughout. ideally, it'd be nice to just do nothing if it's called
<kaleido>
shevy: i understand completely
BeLucid has joined #ruby
SCommette has quit [Ping timeout: 244 seconds]
methoddk has quit [Ping timeout: 277 seconds]
macmartine has quit [Ping timeout: 241 seconds]
fearoffish has quit [Ping timeout: 277 seconds]
|Monie| has quit [Ping timeout: 241 seconds]
mmercer has quit [Ping timeout: 241 seconds]
dmiller has quit [Ping timeout: 241 seconds]
GeekOnCoffee has quit [Ping timeout: 241 seconds]
thomasfedb has quit [Ping timeout: 241 seconds]
GoHuyGo has quit [Ping timeout: 241 seconds]
fboudreau has quit [Ping timeout: 241 seconds]
bigmeow has quit [Ping timeout: 241 seconds]
framling has quit [Ping timeout: 241 seconds]
ben_alman has quit [Ping timeout: 241 seconds]
herbnerder has quit [Ping timeout: 241 seconds]
SCommette_ is now known as SCommette
framling has joined #ruby
<kaleido>
im having one of those WEEKS
fboudreau has joined #ruby
herbnerder_ has joined #ruby
methoddk has joined #ruby
<shevy>
yeah kaleido ... sometimes I feel as if I am in a zone, being super productive, having lots of ideas
<shevy>
and then... there is phase of nothingness...
bigmeow has joined #ruby
GoHuyGo has joined #ruby
fearoffish has joined #ruby
mmercer has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
baphled has joined #ruby
HVboom has quit [Ping timeout: 245 seconds]
GeekOnCoffee has joined #ruby
Kovensky has joined #ruby
thomasfedb has joined #ruby
* Kovensky
wonders if there's an 'ri' alternative or commandline flag that displays all documentation for <<class>>
<Kovensky>
instead of only listing the methods
<Kovensky>
and having to use ri <<class>>.<<method>>
<invisime>
Kovensky: you might try ri's interactive mode?
Jellyg00se has quit [Quit: Leaving]
<Kovensky>
(like `perldoc` does (though that's an accident of perldoc having no perl awareness))
RubyPanther has quit [Quit: self.exit(:stage=>:left)]
lggr has joined #ruby
otters has joined #ruby
dmiller_ has quit [Remote host closed the connection]
otters has quit [Client Quit]
otters has joined #ruby
hashpuppy has left #ruby [#ruby]
<Kovensky>
invisime: it kinda helps, but is still clunky :S
duracrisis has joined #ruby
Johanna_Meszoros has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
jso has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
the_jeebster1 has joined #ruby
BrokenCo1 has quit [Quit: leaving]
RubyPanther has joined #ruby
lggr has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
the_jeebster has quit [Ping timeout: 245 seconds]
matthewrobbins has joined #ruby
banisterfiend has joined #ruby
JarJar has quit [Quit: Leaving]
ben_alman has joined #ruby
artOfWar_ has quit [Remote host closed the connection]
pitty has quit [Ping timeout: 256 seconds]
jrajav has quit []
matrixise has quit [Ping timeout: 268 seconds]
lggr has quit [Ping timeout: 264 seconds]
philcrissman has quit [Remote host closed the connection]
lggr has joined #ruby
matthewrobbins has quit [Quit: matthewrobbins]
ltsstar has quit [Quit: ltsstar]
macmarti_ has quit [Quit: Computer has gone to sleep.]
geekbri_ has quit [Remote host closed the connection]
<emsilva>
gentlemen, please check this gist: https://gist.github.com/3778325. Is there a way to achieve the desired output? I don't want to run the query twice and join columns if all possible.
lggr has joined #ruby
Axsuul has quit [Ping timeout: 240 seconds]
deavid has joined #ruby
kalleth has joined #ruby
AwesomeGarethMan has joined #ruby
rakm has joined #ruby
dagobah has joined #ruby
Schmidt has joined #ruby
hackeron has joined #ruby
willcodeforfoo has joined #ruby
kollapse has joined #ruby
epitron__ has quit [Ping timeout: 240 seconds]
Axsuul has joined #ruby
kollapse has quit [Read error: Connection reset by peer]
epitron has joined #ruby
epitron has quit [Changing host]
epitron has joined #ruby
QKO_ has joined #ruby
BrokenCog has quit [Quit: leaving]
yeltzooo has joined #ruby
lessthanphil has quit [Quit: lessthanphil]
gxqdmi has quit [Remote host closed the connection]
BrokenCog has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
jenrzzz has quit [Ping timeout: 245 seconds]
djbpython has joined #ruby
chrxn has quit [Remote host closed the connection]
<djbpython>
shouldn't it take an attribute as the first param?
rjmt__ has joined #ruby
CannedCorn has quit [Quit: Computer has gone to sleep.]
bobbbo_ has joined #ruby
thorncp_ has joined #ruby
QKO has quit [Ping timeout: 268 seconds]
chrxn has joined #ruby
alanp_ has joined #ruby
Emmanuel_Chanel_ has joined #ruby
c0rn__ has joined #ruby
icambridge has joined #ruby
rjmt_ has quit [Read error: Connection reset by peer]
thorncp has quit [Ping timeout: 256 seconds]
c0rn_ has quit [Ping timeout: 256 seconds]
Emmanuel_Chanel has quit [Ping timeout: 256 seconds]
arubin has quit [Quit: arubin]
icambridge has quit [Ping timeout: 256 seconds]
MissionCritical has quit [Ping timeout: 256 seconds]
timrom has quit [Ping timeout: 256 seconds]
alanp has quit [Ping timeout: 256 seconds]
bthesorceror has joined #ruby
bthesorceror has quit [Client Quit]
maddog_ has quit [Ping timeout: 256 seconds]
bobbbo has quit [Ping timeout: 256 seconds]
bobbbo_ is now known as bobbbo
maddog_ has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
mmitchell has quit [Remote host closed the connection]
diegoviola has quit [Quit: Reconnecting]
icambridge has joined #ruby
diegoviola has joined #ruby
yoklov has joined #ruby
<havenn>
emsilva: I don't know DataMapper, but if you want to parse the current output in Ruby I'd do: Hash[*output].map { |k, v| [k.first, k.last, v.last] }
<havenn>
emsilva: Tried #datamapper?
dustinleer has quit [Remote host closed the connection]
timrom has joined #ruby
lggr has joined #ruby
<shevy>
I. Hate. Massive. Warnings... when running scripts with -w
<shevy>
:(
bluOxigen has quit [Ping timeout: 240 seconds]
gfontenot has quit []
emsilva_ has joined #ruby
edward___ has joined #ruby
xkx_ has joined #ruby
edward___ has quit [Client Quit]
dpk has quit [Quit: Asleep at the keyboard.]
<blazes816>
stop using -w bro
<blazes816>
problem solved
<havenn>
^
cw has quit [Ping timeout: 264 seconds]
stillEPIK has joined #ruby
<emsilva_>
havenn: oh man, thank you a thousand times. (sorry if duplicated, I had disconnected)
niklasb has quit [Quit: WeeChat 0.3.8]
<havenn>
emsilva_: No prob, wasn't sure that is what you wanted - glad it work!
invisime has quit [Quit: Leaving.]
beit has quit [Quit: beit]
<havenn>
djbpython: Does it work with: def_delegators :@channel, :push
Koven has joined #ruby
lump has joined #ruby
{^_^}_______ has joined #ruby
strcrzy has joined #ruby
Xeago has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
s0ber_ has joined #ruby
hoelzro|away is now known as hoelzro
juarlex_ has joined #ruby
<havenn>
matti: Haha, nice. I was actually curious!
elux_ has quit [Quit: Leaving...]
jgrevich_ has joined #ruby
ph^ has quit [Remote host closed the connection]
groupcat_ has joined #ruby
lggr has joined #ruby
ianbrandt_ has joined #ruby
sneakyness__wk has joined #ruby
ffranz2 has joined #ruby
jimeh has joined #ruby
philcrissman has joined #ruby
matthewrobbins has quit [Quit: matthewrobbins]
ianbrandt has quit [Ping timeout: 240 seconds]
sneakyness_wk has quit [Ping timeout: 240 seconds]
ffranz1 has quit [Ping timeout: 240 seconds]
vaclavt has quit [Ping timeout: 240 seconds]
ddv has quit [Ping timeout: 240 seconds]
arya_ has quit [Ping timeout: 240 seconds]
s0ber has quit [Remote host closed the connection]
juarlex has quit [Ping timeout: 240 seconds]
RubyPanther has quit [Ping timeout: 240 seconds]
ianbrandt_ is now known as ianbrandt
sneakyness__wk is now known as sneakyness_wk
ddv has joined #ruby
mmitchell has quit [Ping timeout: 240 seconds]
s0ber_ is now known as s0ber
groupcat has quit [Disconnected by services]
groupcat_ is now known as groupcat
yoklov_ has joined #ruby
nanderoo has quit [Quit: Leaving.]
{^_^}_______ has quit [Ping timeout: 240 seconds]
yoklov has quit [Ping timeout: 240 seconds]
frogstarr78 has quit [Ping timeout: 240 seconds]
jprovazn_away has quit [Ping timeout: 240 seconds]
jokar has quit [Ping timeout: 240 seconds]
jhchabran_ has quit [Ping timeout: 240 seconds]
jgrevich has quit [Ping timeout: 240 seconds]
jgrevich_ is now known as jgrevich
jprovazn_away has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jokar has joined #ruby
{^_^}_______ has joined #ruby
Morkel has quit [Quit: Morkel]
jhchabran has joined #ruby
SJr has joined #ruby
frogstarr78 has joined #ruby
dakine has joined #ruby
<SJr>
A script I downloaded has require 'octokit' at the top. I installed it via gem, but ruby complains that it can't find it.
allan_hills has joined #ruby
AlbireoX`Laptop has joined #ruby
AlbireoX has quit [Ping timeout: 248 seconds]
arya_ has joined #ruby
<matti>
SJr: Add: require 'rubygems' before it.
moshef has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
Neomex has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
Neomex has quit [Client Quit]
<moshef>
I have a string which I scan for different words. Now, I'd like to add some exception - if the word 'no' appears before - ignore the next word. any idea how do search this?
lggr has joined #ruby
<moshef>
now when I think about it, i can just remove from the string all the words following the word 'no' and then scan, but I'd like a different approach.
hiroyuki has joined #ruby
<matti>
LOL
<matti>
;]
<moshef>
:D
RubyPanther has joined #ruby
<moshef>
so..any cool regex crap? :)
<elico>
moshef: if it's words then you can first split it by spaces and have a list of conditions while you are iterating over the words.
<elico>
>>
jamjam has joined #ruby
<moshef>
if index[-1] != "no" ?
tehdekan has joined #ruby
tehdekan has quit [Remote host closed the connection]
<moshef>
thats a very nice idea mate, great
* Kovensky
was sad that ruby doesn't support s///
Elico1 has joined #ruby
Speed has quit [Remote host closed the connection]
nga4 has quit [Ping timeout: 260 seconds]
frogprince_mac has quit [Remote host closed the connection]
cantonic_ has joined #ruby
<matti>
Kovensky: It does not? ;d
juarlex has joined #ruby
Jamone has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
QKO_ has joined #ruby
<Elico1>
they took it down... >> words = "hello no solt world"; words.split.each_index {|i| if words[i - 1] != no; puts words[i]}
Chryson has joined #ruby
fir_ed has joined #ruby
LouisGB has quit [Disconnected by services]
n8888 has joined #ruby
<matti>
elico1: 'no' ;d
eignerch_ has joined #ruby
<Elico1>
matti: ?
<matti>
!= 'no'
ahuman has joined #ruby
<matti>
I guess
tommyvyo has quit [Quit: Computer has gone to sleep.]
jaredrhine has joined #ruby
Sp4rKy has quit [Ping timeout: 264 seconds]
Bish_ has joined #ruby
lggr has quit [Ping timeout: 265 seconds]
cakehero has joined #ruby
fyolnish has joined #ruby
issyl0_ has joined #ruby
<Elico1>
well you could say.. but the point..
ttt has joined #ruby
mercwith1mouth has joined #ruby
<matti>
Hehe
<matti>
;d
WhereIsMySpoon has joined #ruby
JarJar has joined #ruby
jso has quit []
framling_ has joined #ruby
WanderingGlitch has joined #ruby
workmad3_ has joined #ruby
<Elico1>
why did they took the bot down?
nonotza has quit [Quit: nonotza]
Drager has joined #ruby
BrokenCo1 has joined #ruby
<matti>
No idea.
gmci_ has joined #ruby
tdubz has joined #ruby
<Elico1>
it was so good!!!
jaredrhine_ has quit [Read error: Connection reset by peer]
Wandering_Glitch has quit [Read error: Connection reset by peer]
GeekOnCoffee has quit [Read error: Connection reset by peer]
matled has quit [Read error: Connection reset by peer]
ahuman_ has quit [Write error: Connection reset by peer]
framling has quit [Write error: Connection reset by peer]
Monie has quit [Write error: Connection reset by peer]
BrokenCog has quit [Read error: Connection reset by peer]
`heliar_ has quit [Read error: Connection reset by peer]
TommyBotten has quit [Read error: Connection reset by peer]
thomas has quit [Read error: Connection reset by peer]
oddraisi1 has joined #ruby
sneakyness__wk has joined #ruby
gmci has quit [Read error: Connection reset by peer]
eml has joined #ruby
Rydefalk_ has joined #ruby
ryanRT has quit [Quit: Ex-Chat]
carloslopes has quit [Quit: Leaving.]
juarlex_ has quit [Ping timeout: 240 seconds]
fearoffish_ has quit [Ping timeout: 240 seconds]
QKO has quit [Ping timeout: 240 seconds]
cantonic has quit [Ping timeout: 240 seconds]
cantonic_ is now known as cantonic
jeekl has quit [Ping timeout: 240 seconds]
Edward__ has quit [Ping timeout: 240 seconds]
fantazo has quit [Ping timeout: 240 seconds]
thomasfedb has quit [Ping timeout: 240 seconds]
BrokenCo1 has quit [Client Quit]
Chryson has quit [Ping timeout: 264 seconds]
AlbireoX has joined #ruby
thomasfedb has joined #ruby
alexhanh has joined #ruby
fearoffish has joined #ruby
BrokenCog has joined #ruby
fantazo has joined #ruby
jeekl has joined #ruby
ffranz2 has quit [Ping timeout: 245 seconds]
davidcelis_ has joined #ruby
bradhe_ has joined #ruby
wereHams1er has joined #ruby
matled has joined #ruby
xkx has joined #ruby
ianbrandt_ has joined #ruby
kapowaz_ has joined #ruby
knirhs has joined #ruby
thone has quit [Ping timeout: 248 seconds]
lantins has quit [Ping timeout: 248 seconds]
sneakyness_wk has quit [Ping timeout: 248 seconds]
maahes has quit [Ping timeout: 248 seconds]
Bish has quit [Ping timeout: 248 seconds]
soulcake has quit [Ping timeout: 248 seconds]
beandip has quit [Ping timeout: 248 seconds]
mercwithamouth has quit [Ping timeout: 248 seconds]
Shrink has quit [Ping timeout: 248 seconds]
jamjam has quit [Ping timeout: 248 seconds]
mephux has quit [Ping timeout: 248 seconds]
WhereIsMySpoon_ has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
fyolnis__ has quit [Ping timeout: 248 seconds]
eignerchris has quit [Ping timeout: 248 seconds]
elico has quit [Ping timeout: 248 seconds]
Guest88336 has quit [Ping timeout: 248 seconds]
RichGuk has quit [Ping timeout: 248 seconds]
Guedes has quit [Ping timeout: 248 seconds]
kapowaz has quit [Ping timeout: 248 seconds]
eml_ has quit [Ping timeout: 248 seconds]
Rydefalk has quit [Ping timeout: 248 seconds]
Drager_ has quit [Ping timeout: 248 seconds]
alexhanh_ has quit [Ping timeout: 248 seconds]
issyl0 has quit [Read error: Connection reset by peer]
wereHamster has quit [Ping timeout: 248 seconds]
ianbrandt has quit [Ping timeout: 248 seconds]
davidcelis has quit [Ping timeout: 248 seconds]
oddraisin has quit [Remote host closed the connection]
Poapfel has quit [Ping timeout: 248 seconds]
xea has quit [Ping timeout: 248 seconds]
iaj has quit [Ping timeout: 248 seconds]
JarJar is now known as 31NAB4493
JarJar has joined #ruby
soulcake has joined #ruby
kapowaz_ is now known as kapowaz
yxhvuud has joined #ruby
Guedes has joined #ruby
RichGuk has joined #ruby
Guest88336 has joined #ruby
nonotza_ has joined #ruby
lggr has joined #ruby
GeekOnCoffee has joined #ruby
beandip has joined #ruby
BrokenCog has quit [Client Quit]
nonotza_ is now known as nonotza
jeekl has quit [Changing host]
jeekl has joined #ruby
jgrevich_ has joined #ruby
sneakyness__wk is now known as sneakyness_wk
Guedes has quit [Changing host]
Guedes has joined #ruby
thomasfedb has quit [Changing host]
thomasfedb has joined #ruby
soulcake has quit [Changing host]
soulcake has joined #ruby
issyl0_ is now known as Guest23766
headius has quit [Quit: headius]
ttt has quit [Ping timeout: 260 seconds]
jso has joined #ruby
maahes has joined #ruby
zeromodulus has quit [Remote host closed the connection]
lantins has joined #ruby
IrishGringo has quit [Ping timeout: 256 seconds]
dimka has quit [Ping timeout: 240 seconds]
IrishGringo_ has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
<moshef>
I'm within each loop of array, how do I get my index?
dimka has joined #ruby
mephux has joined #ruby
<moshef>
or do I do each with index?
Sp4rKy has joined #ruby
asuka has joined #ruby
jamjam has joined #ruby
iaj has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
<havenn>
moshef: 'hi', 'there'].each_with_index { |word, index| puts index }
<hoelzro>
moshef: I would use each_with_index
`heliar has joined #ruby
cakehero_ has joined #ruby
<moshef>
so yeah with index, ok
<moshef>
thanks
31NAB4493 has quit [Read error: Connection reset by peer]
AlbireoX`Laptop has quit [Read error: Connection reset by peer]
bradhe has quit [Read error: Connection reset by peer]
cakehero has quit [Ping timeout: 252 seconds]
notVert has quit [Ping timeout: 252 seconds]
asuka_ has quit [Ping timeout: 252 seconds]
xkx_ has quit [Ping timeout: 252 seconds]
jgrevich has quit [Ping timeout: 252 seconds]
jgrevich_ is now known as jgrevich
alexwh_ has joined #ruby
alexwh has quit [Read error: Connection reset by peer]
yxhuvud has quit [Ping timeout: 252 seconds]
notVert has joined #ruby
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
thorncp_ has quit [K-Lined]
perryh has quit [K-Lined]
tr4656 has quit [K-Lined]
cakehero_ has quit [Client Quit]
xea has joined #ruby
BrokenCog has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
thorncp has joined #ruby
TommyBotten has joined #ruby
perryh has joined #ruby
<emsilva_>
matti, havenn: damn it. Solution doesn't pass testing. It could be a scenario where in one day I have 0 incidents or 0 SRs, and then it won't alternate beaufully like that. :/
tr4656 has joined #ruby
lggr has quit [Ping timeout: 265 seconds]
GoGoGarrett has quit [Remote host closed the connection]
jsebring has quit [Remote host closed the connection]
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
arya__ has joined #ruby
ryanRT has joined #ruby
lggr has joined #ruby
thone has joined #ruby
<Kovensky>
matti> Kovensky: It does not? ; <-- nope
<dakine>
is there anything i should know in specific for instaling ruby on arch
alanp has joined #ruby
hadees has quit [Quit: hadees]
ph^ has joined #ruby
arya_ has quit [Ping timeout: 256 seconds]
<snuglepuss>
dakine, if you plan on using openssl, revert to openssl 1.0.0
<emsilva_>
matti, havenn: I created a new gist with the scenario where it fails, in case you think you can help. https://gist.github.com/3778720
yoklov_ has quit [Quit: bye!]
JustinCampbell has quit [Remote host closed the connection]
CaptainJet has joined #ruby
<dakine>
snuglepuss: i have 1.0.0a
<dakine>
is this fine?
A1241 has left #ruby [#ruby]
arya__ has quit [Ping timeout: 244 seconds]
<snuglepuss>
should be
Averna has joined #ruby
joshman_ has quit [Ping timeout: 246 seconds]
yshh_ has joined #ruby
bricker_ has joined #ruby
<dakine>
snuglepuss: should i use 1.9 or 1.8.7?
ndrei has quit [Ping timeout: 268 seconds]
alanp_ has quit [Ping timeout: 264 seconds]
stepnem has quit [Ping timeout: 260 seconds]
sheerun_ has joined #ruby
EPIK has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
jokar1 has joined #ruby
slicslak has quit [Ping timeout: 240 seconds]
timrom_ has joined #ruby
iaj_ has joined #ruby
chrxn has quit [Read error: Connection reset by peer]
fboudrea1 has joined #ruby
Forevernade has joined #ruby
tsuru` has joined #ruby
AlbireoX`Laptop has joined #ruby
AlbireoX has quit [Read error: Connection reset by peer]
<snuglepuss>
dakine, im using 1.9
chrxn has joined #ruby
evilsushi has quit [Quit: leaving]
TommyBot1en has joined #ruby
philcrissman_ has joined #ruby
maddog__ has joined #ruby
babinho has joined #ruby
zeromodulus has joined #ruby
d-best has joined #ruby
Guedes0 has joined #ruby
alanp_ has joined #ruby
strmpnk_ has joined #ruby
ahuman_ has joined #ruby
mksm has joined #ruby
diegovio1a has joined #ruby
SCommette has quit [Ping timeout: 246 seconds]
sheerun has quit [Ping timeout: 246 seconds]
williamcotton has quit [Ping timeout: 246 seconds]
sheerun_ is now known as sheerun
alta has quit [Ping timeout: 246 seconds]
canton7 has quit [Ping timeout: 246 seconds]
KindTwo has quit [Ping timeout: 246 seconds]
iaj has quit [Ping timeout: 246 seconds]
maddog_ has quit [Ping timeout: 246 seconds]
babinho_ has quit [Ping timeout: 246 seconds]
stillEPIK has quit [Ping timeout: 246 seconds]
d-snp has quit [Ping timeout: 246 seconds]
ij has quit [Ping timeout: 246 seconds]
fboudreau has quit [Ping timeout: 246 seconds]
Veejay has quit [Ping timeout: 246 seconds]
xzy has quit [Ping timeout: 246 seconds]
strmpnk has quit [Ping timeout: 246 seconds]
allsystemsarego has quit [Ping timeout: 246 seconds]
TommyBotten has quit [Ping timeout: 246 seconds]
diegoviola has quit [Ping timeout: 246 seconds]
PragCypher has quit [Ping timeout: 246 seconds]
ping-pong has quit [Ping timeout: 246 seconds]
havenn has quit [Ping timeout: 246 seconds]
Guest18053 has quit [Ping timeout: 246 seconds]
Drewch has quit [Ping timeout: 246 seconds]
mattp_ has quit [Ping timeout: 246 seconds]
tchebb has quit [Ping timeout: 246 seconds]
fbernier has quit [Ping timeout: 246 seconds]
Criztian has quit [Ping timeout: 246 seconds]
darkc0met has quit [Ping timeout: 246 seconds]
jhowarth has quit [Ping timeout: 246 seconds]
yshh has quit [Ping timeout: 246 seconds]
ryanRT has quit [Ping timeout: 246 seconds]
eml has quit [Ping timeout: 246 seconds]
alanp has quit [Ping timeout: 246 seconds]
jokar has quit [Ping timeout: 246 seconds]
RubyPanther has quit [Ping timeout: 246 seconds]
ahuman has quit [Ping timeout: 246 seconds]
philcrissman has quit [Ping timeout: 246 seconds]
anildigital_work has quit [Ping timeout: 246 seconds]
timrom has quit [Ping timeout: 246 seconds]
JC_SoCal has quit [Ping timeout: 246 seconds]
lump has quit [Ping timeout: 246 seconds]
notbrent has quit [Ping timeout: 246 seconds]
faulkner has quit [Ping timeout: 246 seconds]
ericwood_ has quit [Ping timeout: 246 seconds]
bricker has quit [Ping timeout: 246 seconds]
gyre007 has quit [Ping timeout: 246 seconds]
etank has quit [Ping timeout: 246 seconds]
kuzushi has quit [Ping timeout: 246 seconds]
Mch1 has quit [Ping timeout: 246 seconds]
ssspiff has quit [Ping timeout: 246 seconds]
zodiak has quit [Ping timeout: 246 seconds]
djbpython has quit [Ping timeout: 246 seconds]
faen has quit [Ping timeout: 246 seconds]
\13k has quit [Ping timeout: 246 seconds]
gogiel has quit [Ping timeout: 246 seconds]
rakunHo has quit [Ping timeout: 246 seconds]
tsuru has quit [Ping timeout: 246 seconds]
moted has quit [Ping timeout: 246 seconds]
alta has joined #ruby
faulkner has joined #ruby
faulkner has quit [*.net *.split]
Emmanuel_Chanel_ has quit [*.net *.split]
bradhe_ has quit [*.net *.split]
[diecast]_ has quit [*.net *.split]
alta has quit [*.net *.split]
kuzushi_ has joined #ruby
ericwood has joined #ruby
eml_ has joined #ruby
mr_no has joined #ruby
gogiel has joined #ruby
Criztian_ has joined #ruby
fbernier_ has joined #ruby
EPIK has quit [Client Quit]
moted has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
xeronic has quit [Ping timeout: 262 seconds]
PragCypher has joined #ruby
anildigital_work has joined #ruby
lump has joined #ruby
BrianJ has joined #ruby
allsystemsarego has joined #ruby
bradhe_ has joined #ruby
mattp_ has joined #ruby
faen has joined #ruby
faulkner has joined #ruby
sspiff has joined #ruby
alta has joined #ruby
zodiak has joined #ruby
ryanRT has joined #ruby
xzy has joined #ruby
ping-pong has joined #ruby
jjbohn has quit [Read error: Connection reset by peer]
jhowarth has joined #ruby
gyre007 has joined #ruby
dev_ryan70 has joined #ruby
notbrent has joined #ruby
rakunHo has joined #ruby
Mchl has joined #ruby
\13k has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
jjbohn has joined #ruby
Emmanuel_Chanel_ has joined #ruby
Veejay has joined #ruby
djbpython has joined #ruby
arya_ has joined #ruby
ij has joined #ruby
etank has joined #ruby
Drewch_ has joined #ruby
lggr has joined #ruby
[diecast]_ has joined #ruby
swarley_ has quit [Ping timeout: 264 seconds]
<moshef>
doing a collect on array with a condition but it also collect 'nil' when condition is false. what am I doing wrong?
tchebb has joined #ruby
<moshef>
dong want to .compact the array
<moshef>
don't*
<hoelzro>
moshef: you probably want select, not collect
baphled has quit [Ping timeout: 245 seconds]
<hoelzro>
or a combination of both
havenn_ has joined #ruby
darkc0met has joined #ruby
alienvenom has quit [Ping timeout: 244 seconds]
bnagy has quit [Ping timeout: 244 seconds]
\13k has quit [Changing host]
\13k has joined #ruby
etank has quit [Changing host]
ij has quit [Changing host]
ij has joined #ruby
etank has joined #ruby
bnagy has joined #ruby
mksm is now known as Guest44778
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
faen is now known as Guest51531
sirecote has quit [Ping timeout: 244 seconds]
IrishGringo_ has quit [Ping timeout: 264 seconds]
Roa_ has quit [Quit: leaving]
alienvenom has joined #ruby
<moshef>
hoelzro: right. thanks,
baphled has joined #ruby
philcrissman has joined #ruby
philcrissman has quit [Remote host closed the connection]
Guest51531 is now known as faen
<havenn_>
emsilva_: DC'ed so sorry if repost, but are you reassigning data or using another variable: data = Hash[*data] or
rakunHo has quit [Remote host closed the connection]
reset has joined #ruby
<havenn_>
emsilva_: Aha, so if there isn't a pair... 0.
fowl has joined #ruby
<emsilva_>
havenn_: exactly. There's another gotcha. If there's 0 entries on a day (for example, nothing for the 26th, there should still be a entry for the 26th with 0 on both fields.) but I think that I can get this one done, after I resolve this other one. You guys are already helping a lot.
<fowl>
>> 16*3
<fowl>
bah!
fowl has left #ruby ["Leaving"]
lggr has quit [Ping timeout: 256 seconds]
mercwith1mouth has quit [Ping timeout: 256 seconds]
epitron__ has joined #ruby
epitron__ has quit [Changing host]
epitron__ has joined #ruby
RubyPanther has joined #ruby
hadees has joined #ruby
s0ber_ has joined #ruby
theRoUS_ has quit [Ping timeout: 256 seconds]
DrShoggoth has joined #ruby
DrShoggoth has quit [Client Quit]
slicslak has joined #ruby
Forevernade has quit [Remote host closed the connection]
yalue has quit [Ping timeout: 245 seconds]
frogstarr78 has quit [Ping timeout: 245 seconds]
Criztian_ has quit [Ping timeout: 245 seconds]
epitron has quit [Read error: Connection reset by peer]
pcboy__ has quit [Ping timeout: 245 seconds]
Voxxit has quit [Ping timeout: 245 seconds]
s0ber has quit [Read error: Connection reset by peer]
moted has quit [Ping timeout: 245 seconds]
jhchabran has quit [Ping timeout: 245 seconds]
Jamone has quit [Ping timeout: 245 seconds]
<fir_ed>
.
pcboy_ has joined #ruby
s0ber_ is now known as s0ber
sideshowcoder has quit [Ping timeout: 245 seconds]
davidcelis_ is now known as davidcelis
sideshowcoder has joined #ruby
yalue has joined #ruby
matled has quit [Remote host closed the connection]
matled has joined #ruby
JC_SoCal has joined #ruby
Criztian has joined #ruby
frogstarr78 has joined #ruby
<havenn_>
#=> 48
Guedes has quit [Ping timeout: 245 seconds]
jhchabran has joined #ruby
lggr has joined #ruby
davidcelis is now known as Guest39175
judesamp has joined #ruby
<havenn_>
fowl: the bot is muuuuch slower now... =P
Criztian has quit [Remote host closed the connection]
<liuyuan>
sent-hil: nevermind, it was silly that although the functionality was disabled (my intent) the button remained
<liuyuan>
thanks for your help
liuyuan has quit [Quit: Page closed]
<sent-hil>
liuyuan: are you using passenger locally or did you just run `rails s` in a terminal?
nari has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
ttt has joined #ruby
alanp has joined #ruby
<emsilva_>
havenn_: I think this is not solvable. I think I'll need to talk to whoever generated the data, so I can change the data source to return the empty entries when needed. Not sure anymore.
mmitchell has joined #ruby
berserkr has quit [Quit: Leaving.]
thone has joined #ruby
xea_ has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
lggr has joined #ruby
BrokenCo1 has joined #ruby
pcboy__ has joined #ruby
oddraisin has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
nonotza has quit [Ping timeout: 399 seconds]
sneakyness_wk has quit [Ping timeout: 408 seconds]
GeekOnCoffee has quit [Read error: Connection reset by peer]
methoddk has quit [Ping timeout: 408 seconds]
nonotza_ is now known as nonotza
alanp_ has quit [Write error: Connection reset by peer]
|Monie| has quit [Write error: Connection reset by peer]
sneakyness__wk is now known as sneakyness_wk
AlbireoX`Laptop has quit [Read error: Connection reset by peer]
xea has quit [Read error: Connection reset by peer]
methoddk has joined #ruby
methoddk has quit [Changing host]
methoddk has joined #ruby
pcboy_ has quit [Read error: Connection reset by peer]
BrokenCog has quit [Read error: Connection reset by peer]
jonathan_ has joined #ruby
oddraisi1 has quit [Read error: Connection reset by peer]
Spooner has joined #ruby
allan_hills has quit [Quit: allan_hills]
bier has quit [Read error: Operation timed out]
sheerun has quit [Quit: sheerun]
adeponte has quit [Ping timeout: 241 seconds]
havenn_ has quit [Ping timeout: 241 seconds]
Guest58219 is now known as ged
mmitchell has quit [Remote host closed the connection]
mmitchell has joined #ruby
ttt has quit [Ping timeout: 241 seconds]
GeekOnCoffee has joined #ruby
KindOne has joined #ruby
rabidpraxis has quit [Remote host closed the connection]
juarlex has quit [Remote host closed the connection]
allsystemsarego has quit [Quit: Leaving]
jonathan_ has quit [Ping timeout: 244 seconds]
awarner has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
mmitchell has quit [Remote host closed the connection]
GoGoGarrett has joined #ruby
moshef has quit [Quit: moshef]
lggr has quit [Ping timeout: 256 seconds]
budha has quit []
s0ber_ has joined #ruby
lggr has joined #ruby
PragCypher has quit [Read error: Connection reset by peer]
PragCypher has joined #ruby
panpainter has quit [Quit: panpainter]
iaj has joined #ruby
gyre008 has joined #ruby
karakedi has quit [Ping timeout: 246 seconds]
justinmcp has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
Tearan has joined #ruby
pcboy_ has joined #ruby
s0ber has quit [Remote host closed the connection]
alexwh_ has quit [Ping timeout: 252 seconds]
notVert has quit [Remote host closed the connection]
pcboy__ has quit [Ping timeout: 252 seconds]
pricees has joined #ruby
alexwh has joined #ruby
iaj_ has quit [Remote host closed the connection]
s0ber_ is now known as s0ber
skogis has quit [Ping timeout: 264 seconds]
notVert has joined #ruby
JarJar has quit [Quit: Leaving]
slicslak has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
apok has quit [Quit: apok]
jonathanwallace has quit [Ping timeout: 264 seconds]
GoGoGarrett has quit [Read error: Connection reset by peer]
pettsson has quit [Remote host closed the connection]
lggr has joined #ruby
djbpython has quit [Ping timeout: 246 seconds]
bier has joined #ruby
nga4 has joined #ruby
justinmcp has joined #ruby
iaj_ has joined #ruby
the_jeebster1 has quit [Quit: Leaving.]
slicslak_ has joined #ruby
ph^ has joined #ruby
[yalue] has joined #ruby
slicslak has quit [Ping timeout: 267 seconds]
iaj has quit [Ping timeout: 267 seconds]
GeekOnCoffee has quit [Ping timeout: 267 seconds]
methoddk has quit [Ping timeout: 267 seconds]
yalue has quit [Ping timeout: 267 seconds]
bigmeow has quit [Ping timeout: 267 seconds]
chrisbolton has quit [Quit: chrisbolton]
methoddk has joined #ruby
mirror1 has joined #ruby
TandemAdam has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
jgrevich_ has joined #ruby
emsilva_ has quit [Read error: Connection reset by peer]
jgrevich has quit [Ping timeout: 265 seconds]
jgrevich_ is now known as jgrevich
jamjam has quit [Ping timeout: 256 seconds]
GeekOnCoffee has joined #ruby
banseljaj is now known as imami|afk
lggr has joined #ruby
banisterfiend has quit [Ping timeout: 268 seconds]
aces1up has quit [Remote host closed the connection]
aces1up has joined #ruby
XedMada has joined #ruby
ph^ has quit [Ping timeout: 240 seconds]
maddog_ has joined #ruby
[yalue] has quit [Quit: Leaving]
nw_ has joined #ruby
Sp4rKy has joined #ruby
froy has joined #ruby
koivula has joined #ruby
talsamon has joined #ruby
baphled_ has joined #ruby
strmpnk has joined #ruby
zeromodulus has quit [Ping timeout: 248 seconds]
maddog__ has quit [Ping timeout: 248 seconds]
nari has quit [Ping timeout: 248 seconds]
nga4 has quit [Ping timeout: 248 seconds]
strmpnk_ has quit [Ping timeout: 248 seconds]
epitron__ has quit [Ping timeout: 248 seconds]
jhchabran has quit [Ping timeout: 248 seconds]
Guest88336 has quit [Ping timeout: 248 seconds]
soulcake has quit [Ping timeout: 248 seconds]
lantins has quit [Ping timeout: 248 seconds]
moted has quit [Ping timeout: 248 seconds]
baphled has quit [Ping timeout: 248 seconds]
TommyBot1en has quit [Ping timeout: 248 seconds]
lump has quit [Ping timeout: 248 seconds]
koivula_ has quit [Ping timeout: 248 seconds]
TommyBotten has joined #ruby
aantix has quit [Ping timeout: 248 seconds]
katherinem13 has quit [Ping timeout: 248 seconds]
nw has quit [Ping timeout: 248 seconds]
soulcake has joined #ruby
lantins has joined #ruby
aantix_ is now known as aantix
soulcake has quit [Changing host]
soulcake has joined #ruby
artOfWar has quit [Remote host closed the connection]
nga4 has joined #ruby
nari has joined #ruby
Guest88336 has joined #ruby
moted has joined #ruby
Gonzih has joined #ruby
artOfWar has joined #ruby
Beoran__ has joined #ruby
Synthead has quit [Quit: p33 ba115]
lggr has quit [Ping timeout: 265 seconds]
AlbireoX has quit [Remote host closed the connection]
AlbireoX has joined #ruby
Beoran_ has quit [Ping timeout: 268 seconds]
emsilva has joined #ruby
emsilva has quit [Changing host]
emsilva has joined #ruby
lggr has joined #ruby
preller_ has joined #ruby
AlbireoX has quit [Ping timeout: 264 seconds]
AlbireoX has joined #ruby
ccooke_ has joined #ruby
preller has quit [Ping timeout: 272 seconds]
vjt has quit [Ping timeout: 272 seconds]
ElderFain has quit [Ping timeout: 272 seconds]
nricciar__ has quit [Ping timeout: 272 seconds]
ccooke has quit [Ping timeout: 272 seconds]
punkrawkR has quit [Read error: Connection reset by peer]
nricciar__ has joined #ruby
ElderFain has joined #ruby
fcoury has quit [Ping timeout: 272 seconds]
Hardcore has quit [Ping timeout: 272 seconds]
Hardcore has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
<havenn>
emsilva: I'm using numbers, not dates, and not selecting actually values from the array when present - but it IS *possible* >.>: https://gist.github.com/3779103
Hardcore is now known as Guest91820
<havenn>
emsilva: Probably better to have the DB guy adjust your output, but 'fun' nonetheless.
bricker_ has quit [Read error: Operation timed out]
aef_ has quit [Remote host closed the connection]
<havenn>
emsilva: PS - my solution is insane and incomplete, but otherwise fine >.>
jonathanwallace has joined #ruby
<emsilva>
havenn: Thanks mate, let me see if I can make it work out.
aef has joined #ruby
fcoury has joined #ruby
<emsilva>
havenn: Insane > doesn't work
<havenn>
emsilva: You speak my mind! =O
dagnachewa has joined #ruby
vjt has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
mikepack has quit [Remote host closed the connection]
libryder_ has joined #ruby
jhchabran_ has quit [Ping timeout: 264 seconds]
cakehero has joined #ruby
libryder has quit [Write error: Broken pipe]
JStoker has quit [Excess Flood]
lggr has joined #ruby
nonotza has quit [Quit: nonotza]
gfontenot has quit []
mxweas has joined #ruby
TommyBot1en has joined #ruby
nari has quit [Ping timeout: 248 seconds]
TommyBotten has quit [Ping timeout: 248 seconds]
TheShadowFog has joined #ruby
jhchabran has joined #ruby
xargoon has quit [Ping timeout: 260 seconds]
n_blownapart has joined #ruby
lggr has quit [Ping timeout: 265 seconds]
xzy has quit [Quit: Leaving]
passbe has quit [Quit: WeeChat 0.3.8]
`gregorg` has joined #ruby
ph^ has joined #ruby
mbk has quit [Ping timeout: 256 seconds]
havenn has quit [Remote host closed the connection]
riley526 has joined #ruby
passbe has joined #ruby
ttt has joined #ruby
IrishGringo has joined #ruby
Poapfel has joined #ruby
xyzodiac has joined #ruby
t0rc has joined #ruby
xargoon has joined #ruby
t0rc has quit [Client Quit]
HoLo has joined #ruby
HoLo has left #ruby [#ruby]
jarred has joined #ruby
lggr has joined #ruby
gregorg_taf has quit [Write error: Connection reset by peer]
verto is now known as verto|off
verto|off is now known as verto
gyre008 has quit [Quit: This computer has gone to sleep]
ttt has quit [Ping timeout: 260 seconds]
WanderingGlitch has quit [Changing host]
WanderingGlitch has joined #ruby
<Elico1>
I have a problem with active records, I am trying to use class Agency < ActiveRecord::Base it works well for table zone as Zone but seems to try 'tdb1.agencies' instead of 'tdb1.agency'
sneakyness_wk has quit [Quit: teamsab]
XedMada has quit [Ping timeout: 244 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
JStoker has joined #ruby
mmitchell has joined #ruby
<Elico1>
well solved by using set_table_name 'agency', thanks anyway
<Kovensky>
well yes, it's how activerecord works
<Kovensky>
=p
AlbireoX`Laptop has joined #ruby
<Elico1>
Kovensky: it's funny I saw examples but non have shown a thing about I need to look at the DOcs
ph^ has quit [Ping timeout: 240 seconds]
AlbireoX has quit [Read error: Connection reset by peer]
<Kovensky>
well
<Kovensky>
the first rails tutorial I saw about activerecord said that's how it works :S
linguini has joined #ruby
<Kovensky>
table name = class name -> lowercase -> pluralize
lggr has quit [Ping timeout: 256 seconds]
AlbireoX`Laptop has quit [Read error: Connection reset by peer]
<Elico1>
I am using plain ruby and not rails..
AlbireoX has joined #ruby
<Spaceghostc2c>
I don't use activerecord. :D
<Spaceghostc2c>
I also build my projects more or less 'outside' of rails and I call into rails from them. Or at least, that's where I'm headed.
tommylommykins has quit [Read error: Connection reset by peer]
<Elico1>
I have 1.5 GB text files i need to insert into DB and it's nicer to do with active records instead of writing a method for that
tommylommykins has joined #ruby
<Spaceghostc2c>
elico1: I don't use relational databases much.
lggr has joined #ruby
xargoon has quit [Ping timeout: 272 seconds]
<n_blownapart>
hi I have two questions in comments on this pastie regarding enumerators. thanks: http://pastie.org/4794256