David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
bkxd has quit [Ping timeout: 260 seconds]
teotwaki has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
ksmutthu has quit [Ping timeout: 272 seconds]
CustosLimen has quit [Ping timeout: 260 seconds]
llua has quit [Ping timeout: 264 seconds]
devster31 has quit [Ping timeout: 258 seconds]
alexandernst has quit [Ping timeout: 260 seconds]
Bilge- has quit [Ping timeout: 260 seconds]
SilverKey has joined #ruby
gnufied has quit [Quit: Leaving]
davedev24 has joined #ruby
cyphase has joined #ruby
lightt has quit [Ping timeout: 244 seconds]
devster31 has joined #ruby
AcidCrash0x00 has joined #ruby
alexandernst has joined #ruby
CustosLimen has joined #ruby
Bilge has joined #ruby
llua has joined #ruby
ornerymoose has joined #ruby
teotwaki has joined #ruby
AcidCrash has quit [Ping timeout: 260 seconds]
SCHAAP137 has quit [Quit: Leaving]
cyphase has quit [Ping timeout: 264 seconds]
macsteps has quit [Remote host closed the connection]
valagalen has joined #ruby
SilverKey has quit [Quit: Halted.]
SilverKey has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cyphase has joined #ruby
neo__ has joined #ruby
xall has quit [Ping timeout: 244 seconds]
n_blownapart has quit []
eljimmy has joined #ruby
Spami has quit [Ping timeout: 258 seconds]
eljimador has joined #ruby
xall has joined #ruby
Spami has joined #ruby
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
Emmanuel_Chanel has joined #ruby
valagalen has quit [Quit: Leaving]
neo__ has quit [Ping timeout: 250 seconds]
Silthias1 has joined #ruby
Silthias has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
Emmanuel_Chanel has quit [Client Quit]
ta_ has quit [Ping timeout: 260 seconds]
sneakers has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
xall has quit [Ping timeout: 240 seconds]
SilverKey has quit [Quit: Halted.]
neo__ has joined #ruby
sarbs has joined #ruby
CloCkWeRX has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
Emmanuel_Chanel has joined #ruby
jmignault has joined #ruby
Ropeney has joined #ruby
karmatr0n has joined #ruby
jmignault has quit [Ping timeout: 276 seconds]
rodfersou has joined #ruby
timanema has joined #ruby
roamingdog has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
amincd has joined #ruby
aryaching has joined #ruby
jaguarmagenta has joined #ruby
<amincd>
Hi, any idea why io.read(100) returns an output that `wc -c` says is 121 bytes long?
timanema has quit [Ping timeout: 244 seconds]
nankyokusei has joined #ruby
devbug has joined #ruby
safetypin has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
ta_ has quit [Ping timeout: 246 seconds]
malconis has joined #ruby
ta_ has joined #ruby
mistermocha has joined #ruby
centrx has joined #ruby
mistermocha has quit [Read error: No route to host]
devbug has quit [Quit: Lances at dawn!]
malconis has quit [Ping timeout: 250 seconds]
rkazak has quit [Quit: Sleep.....ing....]
ur5us has joined #ruby
snath has joined #ruby
pawnbox has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
DTZUBDUB has quit [Ping timeout: 252 seconds]
rkazak has joined #ruby
globalall0c_ has joined #ruby
gheegh has quit [Ping timeout: 272 seconds]
pilne has quit [Quit: Quitting!]
pawnbox has quit [Ping timeout: 246 seconds]
<smathy>
Does `wc -m` also give you 121?
aryaching has quit [Ping timeout: 258 seconds]
<amincd>
ok I figured it out. I was using 'puts io.read(100)', which was adding newlines that weren't being picked up by `wc`
globalall0c has quit [Ping timeout: 264 seconds]
<amincd>
yes `wc -m` was giving me the same inflated count
<amincd>
thanks for your help everyone
<amincd>
*were being picked up
amincd has quit [Quit: Page closed]
timanema has joined #ruby
bkxd has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
elifoster has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Remote host closed the connection]
timanema has quit [Ping timeout: 250 seconds]
rodfersou has quit [Quit: leaving]
bkxd has quit [Ping timeout: 272 seconds]
whathappens has joined #ruby
bkxd has joined #ruby
yfeldblum has joined #ruby
macsteps has joined #ruby
macsteps has quit [Remote host closed the connection]
jackjackdripper1 has quit [Quit: Leaving.]
bkxd has quit [Ping timeout: 260 seconds]
ta_ has quit [Ping timeout: 244 seconds]
bklane has joined #ruby
ta_ has joined #ruby
User458764 has joined #ruby
spiette has quit [Ping timeout: 240 seconds]
lightt has joined #ruby
dnewkerk has quit [Read error: Connection reset by peer]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
hutch34_ has joined #ruby
xall has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
dnewkerk has joined #ruby
<shevy>
naughty newlines
xall has quit [Client Quit]
bklane has quit [Remote host closed the connection]
<adam12>
Doin' it dirty on the \r\n
quazimodo has quit [Ping timeout: 276 seconds]
hutch34_ has quit [Ping timeout: 258 seconds]
hGlobalAll0c has joined #ruby
jmignault has joined #ruby
<shevy>
lol
<shevy>
even a sneaky \r
enterprisey has joined #ruby
northfurr has joined #ruby
globalall0c_ has quit [Ping timeout: 246 seconds]
SilverKey has joined #ruby
karmatr0n has joined #ruby
jmignault has quit [Ping timeout: 264 seconds]
rueben has joined #ruby
aeterne has quit [Read error: Connection reset by peer]
karmatr0n has quit [Ping timeout: 250 seconds]
ruby090 has joined #ruby
<ruby090>
how do i execute multiple property changes against the same object, without repeating the object name over and over?
<ruby090>
how do i execute multiple property changes against the same object, without repeating the object name over and over?
<ruby090>
in .net i would use "with"
SilverKey has quit [Quit: Halted.]
<Radar>
ruby090: example please
<shevy>
ruby090 I am not sure what you mean - do you mean method chaining? if so you can do so in ruby object.property_changing_methoda(args1).property_changing_methodb(args2) provided that these method exist and do what they should do on the target object
<Radar>
in ruby code.
memorasus has quit [Ping timeout: 250 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 260 seconds]
<ruby090>
like, obj.prop1=1, obj.prop2=2, obj.prop3=3....i dont wanna repeat obj over and over
ta_ has joined #ruby
tmtwd has joined #ruby
valeri_ufo has quit [Quit: ...]
arooni has joined #ruby
roamingdog has quit [Remote host closed the connection]
<shevy>
yes use non = method calls
pawnbox has joined #ruby
DTZUBDUB has joined #ruby
<ruby090>
does what im describing make sense?
<ruby090>
in .net i could use a with block
<ruby090>
with obj <new line> .prop1=1, .prop2=2, etc
<enterprisey>
elomatreb: that'll work for requiring, too?
<elomatreb>
I never had any problems with user-installed gems, so I don't really know. I was just googling
speakingcode has joined #ruby
Omni_ has joined #ruby
<elomatreb>
If you're having problems with gem availability I'd recommend looking into bundler (http://bundler.io/)
<shevy>
enterprisey it should work as in any other require-statements just fine
Axy has quit [Read error: Connection reset by peer]
<enterprisey>
hmm
neo__ has quit [Remote host closed the connection]
<enterprisey>
I keep getting LoadErrors everywhere
<shevy>
I mean that is the whole point of --user-install in the first place, it is the single thing it should do well
neo__ has joined #ruby
<enterprisey>
my situation is that I've installed two gems with --user-install - one depends on the other
<enterprisey>
now the other refuses to require properly
<enterprisey>
there must have been some configuration I missed
rbennacer has quit [Remote host closed the connection]
<elomatreb>
Now I have a question: I have a Rakefile in my project. Should I add rake to my Gemfile? (and if so, as a regular or development dependency?)
sandelius has joined #ruby
neo__ has quit [Ping timeout: 250 seconds]
valkyr1e has quit [Quit: Bye.]
swills has quit [Remote host closed the connection]
swills_ has joined #ruby
ElFerna has quit [Ping timeout: 260 seconds]
roamingdog has quit [Remote host closed the connection]
ornerymoose has quit [Quit: ornerymoose]
roamingdog has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
valkyr1e has joined #ruby
Silthias has joined #ruby
aibot has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
hahuang61 has joined #ruby
mistermocha has quit [Ping timeout: 276 seconds]
zacstewart has quit [Ping timeout: 240 seconds]
MrBusiness3 has joined #ruby
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ausum_possum has joined #ruby
<ausum_possum>
hello fellow rubyists
<ausum_possum>
does anybody know if there's a way to get the signed bit of a number?
<ausum_possum>
1.to_s(2) => "1", so i can't grab the most significant bit which should be 0
karmatr0n has joined #ruby
solocshaw has joined #ruby
SilverKey has quit [Quit: Cheerio!]
arescorpio has quit [Quit: Leaving.]
kareeoleez has joined #ruby
aibot has joined #ruby
kareeoleez has quit [Remote host closed the connection]
roamingd_ has joined #ruby
karmatr0n has quit [Ping timeout: 250 seconds]
roamingdog has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
craigp has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
safetypin has quit [Quit: ZZZzzz…]
lightt has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
kareeoleez has quit [Remote host closed the connection]
roamingd_ has quit [Ping timeout: 244 seconds]
aryaching has joined #ruby
howdoi has joined #ruby
MrBusiness2 has joined #ruby
kareeoleez has joined #ruby
Vile` has quit [Ping timeout: 264 seconds]
globalall0c_ has quit [Ping timeout: 258 seconds]
jmignault has joined #ruby
urbanmonk has joined #ruby
pawnbox has joined #ruby
MrBusiness3 has quit [Ping timeout: 272 seconds]
whathappens has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
whathappens has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 240 seconds]
jmignault has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
terminalrecluse has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
RegulationD has joined #ruby
MrBusiness2 has quit [Ping timeout: 260 seconds]
rkazak has quit [Quit: Sleep.....ing....]
vpassapera has quit [Quit: Leaving]
cyphase has quit [Ping timeout: 250 seconds]
quazimodo has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
rkazak has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
<Arcaire>
anyone done work with FFI?
RegulationD has quit [Ping timeout: 276 seconds]
roamingdog has joined #ruby
elifoster has joined #ruby
MrBusiness2 has joined #ruby
roamingd_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
cyphase has joined #ruby
roamingdog has quit [Ping timeout: 264 seconds]
eljimador has quit [Read error: Connection reset by peer]
eljimmy has quit [Quit: This computer has gone to sleep]
der-landgraf has quit [Quit: WeeChat 1.5]
harfangk has joined #ruby
lightt has quit [Quit: exit()]
mistermocha has joined #ruby
bkxd has joined #ruby
roamingd_ has quit [Remote host closed the connection]
diablerouge has joined #ruby
speakingcode has quit [Ping timeout: 276 seconds]
rkazak has quit [Quit: Sleep.....ing....]
MrBusiness2 has quit [Ping timeout: 258 seconds]
bkxd has quit [Ping timeout: 252 seconds]
coffeecupp has joined #ruby
sneakerhax has quit [Quit: Back later]
timanema has joined #ruby
sneakerhax has joined #ruby
<sandelius>
Arcaire yeah but I noticed it has a ton of overhead
<Arcaire>
that's fine
<Arcaire>
not using it for performance
<Arcaire>
i just want to know how i should approach a C library that has nested custom structs
pickandmix has joined #ruby
<sandelius>
Arcaire so you dont know the types?
der-landgraf has joined #ruby
<Arcaire>
no
pawnbox has quit [Ping timeout: 260 seconds]
timanema has quit [Ping timeout: 244 seconds]
<pickandmix>
Hi guys, does anyone use Gentoo Linux here, and also uses Ruby 2.2.2?
hutch34_ has joined #ruby
ta__ has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
pawnbox has joined #ruby
mistermocha has joined #ruby
hutch34_ has quit [Ping timeout: 260 seconds]
tmtwd has quit [Ping timeout: 264 seconds]
roamingdog has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
vuoto has joined #ruby
mistermocha has joined #ruby
roamingdog has quit [Ping timeout: 246 seconds]
misterm__ has joined #ruby
karmatr0n has joined #ruby
MrBusiness2 has joined #ruby
mistermo_ has quit [Ping timeout: 276 seconds]
misterm__ has quit [Read error: Connection reset by peer]
enterprisey has quit [Remote host closed the connection]
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
timanema has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
roamingdog has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
Hyuk has joined #ruby
karmatr0n has quit [Ping timeout: 276 seconds]
mistermocha has joined #ruby
nankyokusei has joined #ruby
jsaak has joined #ruby
Phanes has quit [Quit: ...shout as you did in rome...]
mistermo_ has joined #ruby
timanema has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
n1x-nz has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
misterm__ has joined #ruby
emilkarl has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
ngw has joined #ruby
d0lph1n98 has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
Phanes has joined #ruby
Phanes has quit [Changing host]
Phanes has joined #ruby
mistermocha has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
diablerouge has quit [Ping timeout: 250 seconds]
Sucks has joined #ruby
mistermo_ has joined #ruby
last_staff has joined #ruby
jmignault has joined #ruby
misterm__ has quit [Ping timeout: 244 seconds]
mistermo_ has quit [K-Lined]
mistermocha has quit [K-Lined]
colegatron has quit [Remote host closed the connection]
ksmutthu has joined #ruby
djbkd has quit [Remote host closed the connection]
Niham has joined #ruby
jmignault has quit [Ping timeout: 276 seconds]
LoneHerm_ has joined #ruby
craigp has joined #ruby
mistermocha has joined #ruby
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Remote host closed the connection]
Hobogrammer has quit [Quit: WeeChat 0.4.2]
saneax_AFK is now known as saneax
RegulationD has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
timanema has joined #ruby
amclain has quit [Quit: Leaving]
fenre has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
vuoto has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
timanema has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
whathappens has joined #ruby
MrBusiness3 has joined #ruby
MrBusiness2 has quit [Ping timeout: 260 seconds]
agit0 has quit [Quit: zzzZZZ….]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 260 seconds]
ngw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sauvin has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
emilkarl has quit [Remote host closed the connection]
MrBusiness2 has joined #ruby
MrBusiness3 has quit [Ping timeout: 258 seconds]
whathappens has quit [Quit: Leaving...]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
jeyraof has quit [Quit: Leaving]
User458764 has joined #ruby
eGGshke has joined #ruby
User458764 has quit [Client Quit]
timanema has joined #ruby
mistermocha has joined #ruby
roamingdog has quit [Remote host closed the connection]
coffeecupp has quit [Ping timeout: 250 seconds]
colegatron has joined #ruby
mistermo_ has joined #ruby
Hyuk has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
timanema has quit [Ping timeout: 244 seconds]
mistermo_ has quit [Ping timeout: 250 seconds]
agit0 has joined #ruby
cyphase has quit [Ping timeout: 260 seconds]
MrBusiness3 has joined #ruby
Niham has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 260 seconds]
SilverKey has joined #ruby
User458764 has joined #ruby
MrBusiness2 has quit [Ping timeout: 258 seconds]
cyphase has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
jeyraof has joined #ruby
n1x-nz has quit [Read error: Connection reset by peer]
<norc>
nofxx: That also is not an activesupport method.
<norc>
nofxx: Contrary to popular belief, Ruby is not based on Rails.
yeticry has joined #ruby
mistermo_ has joined #ruby
edwinvdg_ has joined #ruby
LoneHermit has joined #ruby
dnewkerk has quit [Read error: Connection reset by peer]
misterm__ has joined #ruby
jmignault has joined #ruby
tulak has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
nocco has quit [Remote host closed the connection]
User458764 has joined #ruby
edwinvdgraaf has quit [Ping timeout: 246 seconds]
misterm__ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
etehtsea has joined #ruby
LoneHermit has quit [Ping timeout: 260 seconds]
weckl has joined #ruby
Moosashi has quit [Quit: Moosashi]
mistermo_ has joined #ruby
jmignault has quit [Ping timeout: 272 seconds]
leitz has joined #ruby
misterm__ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
Xeago_ has quit [Remote host closed the connection]
n1xnz has quit [Remote host closed the connection]
RegulationD has joined #ruby
agit0 has joined #ruby
bnjf has quit [Ping timeout: 272 seconds]
mistermocha has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
<andromedian>
do you know how I can display the value of the additional_sizes? https://gist.github.com/anonymous/8c1cf2dfc9fe72be23cbe03ad9793bc8 I'm getting right now #<Property::AdditionalSize:0x007f88148fc2c8> if I true to use an each loop on object.additional_sizes ?
<andromedian>
Thanks
bnjf has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
<norc>
andromedian: Look at your libraries manual.
misterm__ has quit [Ping timeout: 252 seconds]
<andromedian>
libraries manual?
<norc>
andromedian: Ruby has no notion of Property and AdditionalSize
<andromedian>
those are values that are coming from rails model
<norc>
?rails andromedian
<ruby[bot]>
andromedian: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<andromedian>
Thanks for pointing me in the right direction norc
<norc>
You are welcome.
mistermocha has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
Xeago_ has joined #ruby
edwinvdg_ has quit [Ping timeout: 276 seconds]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
codecodecode123 has joined #ruby
codecodecode123 has quit [Client Quit]
Xeago_ has quit [Remote host closed the connection]
johnmilton has quit [Remote host closed the connection]
mistermo_ has quit [Ping timeout: 250 seconds]
bigkevmcd has joined #ruby
codecodecode123 has joined #ruby
<codecodecode123>
hi
<codecodecode123>
anyone online?
<jhass>
hi
<jhass>
you seem to be!
<codecodecode123>
oh
mistermo_ has joined #ruby
bigkevmcd has quit [Client Quit]
<codecodecode123>
so, here is my problem. I am trying to make a tcp rock paper scissors server that you connect with telnet
mistermocha has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
<codecodecode123>
but, after I get the input, it doesn't evaluate a simple if statement
* norc
hands codecodecode123 a class and some methods to play with
<jhass>
codecodecode123: what makes you say that?
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<jhass>
detail your assumptions and how you verified them
<codecodecode123>
well, it SEEMS to not evaluate it
<norc>
codecodecode123: what does it SEEM to do instead?
mistermo_ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
<codecodecode123>
it SEEMS to get stuck after getting the input
<jhass>
where exactly do you assume it gets stuck on?
<jhass>
which line?
<codecodecode123>
the loop in 10-13
<jhass>
not a range
<jhass>
which line?
Mon_Ouie has joined #ruby
<codecodecode123>
wait
<codecodecode123>
let me check
edwinvdgraaf has joined #ruby
bkxd has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
sdothum has joined #ruby
ciampix has joined #ruby
<codecodecode123>
ok i got it
<codecodecode123>
15
<codecodecode123>
it doesnt pass there
<codecodecode123>
i wrote 'puts "yay evaluated if"' on every branch of the if, and after
<codecodecode123>
none of them wrote that
mistermocha has joined #ruby
<jhass>
where does it go instead?
<codecodecode123>
it just stops
<jhass>
where?
<codecodecode123>
start of line 15
<jhass>
on which line does it "just stop"?
<codecodecode123>
no errors
<codecodecode123>
line 15
<jhass>
so if you add a puts "I'M HERE" between line 14 and 15, you see it printed?
<codecodecode123>
yep
<jhass>
but you don't see the "yay" from line 24?
mistermocha has quit [Read error: Connection reset by peer]
<codecodecode123>
nope
xKillerFo has joined #ruby
mistermocha has joined #ruby
mistermo_ has quit [Ping timeout: 244 seconds]
bkxd has quit [Ping timeout: 264 seconds]
nocco has joined #ruby
roKin14 has joined #ruby
<jhass>
and if you put a puts "a" between your original lines 15 and 16, a puts "b" between 17 and 18 and a puts "c" between 20 and 21 you see neither?
roKin14 has quit [Client Quit]
zacstewart has joined #ruby
<codecodecode123>
neither
KillerFox has quit [Ping timeout: 244 seconds]
<jhass>
I don't believe you
<codecodecode123>
okay
mistermo_ has joined #ruby
<jhass>
mh, actually one more thing we can do first
<codecodecode123>
i'll get more pastes
<jhass>
add Thread.abort_on_exception = true as the first line of your program
jaiks has joined #ruby
ag4ve has quit [Ping timeout: 240 seconds]
edwinvdgraaf has quit [Ping timeout: 260 seconds]
<codecodecode123>
okay
Hyuk has joined #ruby
misterm__ has joined #ruby
pawnbox has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 250 seconds]
duncannz has quit [Remote host closed the connection]
<codecodecode123>
this has all of the information you might need
<jhass>
can you guess what it is? It has to do with "scoping" rules in case you heard that term before
<codecodecode123>
oh right
<codecodecode123>
i thought that was only in methods
<Abhijit>
Compiling CoffeeScript with 'coffee' binary home/ubuntu/canvas-lms/gems/canvas_i18nliner/node_modules/jsdom/node_modules/contextify/node_modules/bindings/bindings.js:83 throw e Error: Module did not self-register. I am getting this error while trying to complie assets for Canvas LMS (rails app)
<codecodecode123>
thanks for your help
<jhass>
you're welcome
<Abhijit>
it has something to do with coffeescript. any idea how can I fix it?
<jhass>
?rails Abhijit
<ruby[bot]>
Abhijit: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
rkoller has joined #ruby
mistermo_ has joined #ruby
edwinvdgraaf has joined #ruby
<Abhijit>
i am identified.
<Abhijit>
this is not a rail questions. the app is rails. but error is in gem. gem in ruby.
<jhass>
well the error message is javascript actually
Es0teric has quit [Quit: Computer has gone to sleep.]
jmignault has joined #ruby
GodFather has joined #ruby
pawnbox has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
jaiks has quit [Quit: Leaving]
ciampix has quit [Read error: Connection reset by peer]
mistermo_ has quit [Ping timeout: 250 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
misterm__ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
SilverKey has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mistermo_ has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
misterm__ has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
mistermo_ has joined #ruby
flopsec has joined #ruby
Satyajit has joined #ruby
misterm__ has quit [Ping timeout: 252 seconds]
mistermo_ has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
User458764 has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
LoneHermit has joined #ruby
chip_ has joined #ruby
joonty has joined #ruby
moeabdol has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
Abhijit has quit [Quit: Bye.]
DTZUBDUB has quit [Ping timeout: 258 seconds]
johnmilton has joined #ruby
mistermocha has joined #ruby
pawnbox has quit [Remote host closed the connection]
<shevy>
a leaver!
pawnbox has joined #ruby
<marahin>
http://hastebin.com/nutusimaci.vbs - how should this be indented, in order to stop Rubocop throwing that err: Use 2 spaces for indentation in an array, relative to the start of the line where the left square bracket is.
mistermo_ has joined #ruby
LoneHermit has quit [Ping timeout: 258 seconds]
roamingdog has joined #ruby
misterm__ has joined #ruby
NightMonkey has quit [Ping timeout: 264 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
misterm__ has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
mistermocha has joined #ruby
DTZUBDUB has joined #ruby
<jhass>
korben: with one more space on each item?
<jhass>
eh, marahin ^ sorry
mistermo_ has quit [Ping timeout: 244 seconds]
ferr1 has quit [Quit: WeeChat 1.5]
freerobby has joined #ruby
nocco has quit [Remote host closed the connection]
<norc>
marahin: Configure rubocop to adhere whatever coding guidelines YOU want.
rodfersou has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
<shevy>
worship rubocop!
<norc>
(About the only useful default setting rubocop has is to complain about double quoted strings without interpolation)
<jhass>
norc: that's one of the ones I disagree most strongly with
RegulationD has quit [Ping timeout: 240 seconds]
<norc>
Heh.
misterm__ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
<norc>
jhass: I think that is a brilliant example of why rubocop needs to be configured. ;-)
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
' vs " performance is only at parse time and even there the benchmarks that show it are debatable
NightMonkey has joined #ruby
Xeago_ has joined #ruby
<jhass>
so preferring ' just makes you more work in case you later do want to add an interpolation
mistermocha has joined #ruby
Gasher has joined #ruby
dstarh has joined #ruby
<norc>
jhass: In my case it's just style.
mistermo_ has quit [Ping timeout: 250 seconds]
<norc>
If performance is relevant enough to justify subtle coding rules, then Ruby is by far a bad language pick.
firstdayonthejob has quit [Ping timeout: 244 seconds]
<jhass>
I had it too. I thought it's style. turns out it's habit
<norc>
(Outside of writing stdlib/core functionality)
<norc>
Mmm.
mistermo_ has joined #ruby
<jhass>
crystal forced me to use " for strings (' is char), since then I do so in Ruby and it feels better (for the mentioned reason largely, but also more uniform look)
misterm__ has quit [Ping timeout: 250 seconds]
drptbl has joined #ruby
allcentury has joined #ruby
<norc>
Well that feels like a C influence.
<norc>
Which is sensible.
mistermo_ has quit [Read error: Connection reset by peer]
<jhass>
it's simply because we have a Char type and wanted a literal for it
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
<jhass>
(unlike C char is a unsigned 32 bit integer)
Xeago_ has quit [Ping timeout: 260 seconds]
<norc>
Is that to allow for up to utf32 code points?
<jhass>
yes
<norc>
Neat
mistermocha has joined #ruby
<jhass>
String is also always UTF-8 (well unless unsafely constructed from external calls)
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nocco has joined #ruby
misterm__ has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
misterm__ has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
sepp2k has joined #ruby
camilasan has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
camilasan has joined #ruby
mistermo_ has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
araujo_ has joined #ruby
mistermocha has joined #ruby
SilverKey has quit [Quit: Halted.]
gnufied has joined #ruby
araujo_ has quit [Max SendQ exceeded]
mistermocha has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 250 seconds]
araujo_ has joined #ruby
mtkd has quit [Ping timeout: 276 seconds]
araujo has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
mtkd has joined #ruby
zacstewart has quit [Ping timeout: 276 seconds]
hutch34_ has joined #ruby
mistermo_ has joined #ruby
timanema has joined #ruby
<norc>
jhass: Perhaps Crystal will be my first language to be supported in a year from now when I have userspace support. :o)
<jhass>
haha
<jhass>
note it doesn't aim to be a systems language
psmmr has joined #ruby
<jhass>
being garbage collected and all that
mistermocha has quit [Ping timeout: 250 seconds]
<norc>
Great idea jhass! The biggest cost in kernel memory management is freeing pages.
<norc>
I should simply use a garbage collector.
<jhass>
:P
<norc>
See, my operating system will be running on valgrind.
nachoman has joined #ruby
<norc>
Whenever valgrind determines a program probably doesn't use some memory anymore, it gets taken from it.
Coldblackice has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
<norc>
Gone are the days of buggy software stealing your memory.
<jhass>
haha
mistermo_ has quit [Ping timeout: 250 seconds]
<jhass>
libvalmalloc
timanema has quit [Ping timeout: 258 seconds]
<norc>
Heh.
<ljarvis>
libmaloik
mistermocha has quit [Read error: Connection reset by peer]
<norc>
I would call it libnfaalloc though.
<norc>
As in never free again alloc.
mistermocha has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
nofxx has quit [Ping timeout: 276 seconds]
nachoman has quit [Ping timeout: 246 seconds]
psmmr has quit [Remote host closed the connection]
<Arcaire>
i think i made a really big mistake delving into ffi
<jhass>
libmemoryischeap
<Arcaire>
huh?
<Arcaire>
o
<jhass>
not related to you :P
FernandoBasso has joined #ruby
nando293921 has joined #ruby
hanmac has quit [Ping timeout: 272 seconds]
mistermocha has joined #ruby
madgen has quit [Ping timeout: 244 seconds]
zel has joined #ruby
aupadhye has joined #ruby
zel is now known as Guest85774
giz|work has joined #ruby
mistermo_ has joined #ruby
ngw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
misterm__ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
<shevy>
libmonkeynuts
ledestin_ is now known as ledestin
ngw has joined #ruby
<shevy>
malloc sounds kinda negative... like mal-align ... mal-thingy
<ljarvis>
libmalware
<ljarvis>
also known as Skype
karmatr0n has joined #ruby
Xeago_ has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
nando293921 has quit [Read error: Connection reset by peer]
pwnd_nsfw` has joined #ruby
nando294021 has joined #ruby
nando294021 has quit [Client Quit]
mistermocha has joined #ruby
nando293921 has joined #ruby
misterm__ has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
urbanmonk has quit [Ping timeout: 240 seconds]
karmatr0n has quit [Ping timeout: 260 seconds]
pwnd_nsfw has quit [Ping timeout: 250 seconds]
araujo__ has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
blackgoat has joined #ruby
blackgoat has quit [Client Quit]
rodferso1 has joined #ruby
zacstewart has joined #ruby
nando293921 has quit [Client Quit]
drptbl has quit [Quit: See you later!]
nando293921 has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
hanmac has joined #ruby
eGGshke has quit [Ping timeout: 244 seconds]
araujo_ has quit [Ping timeout: 276 seconds]
mistermo_ has quit [Ping timeout: 246 seconds]
pwnd_nsfw has joined #ruby
rodfersou has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
rodferso1 is now known as rodfersou
eGGshke has joined #ruby
d0lph1n98 has joined #ruby
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 258 seconds]
leitz has quit [Quit: Nappy time]
Hyuk has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
LoneHerm_ has joined #ruby
drptbl has joined #ruby
drptbl has quit [Remote host closed the connection]
LoneHerm_ has quit [Ping timeout: 240 seconds]
araujo__ has quit [Quit: Leaving]
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mon_Ouie has quit [Ping timeout: 258 seconds]
nocco has quit []
<binaryplease>
I found https://github.com/guilhermesad/rspotify Is it possible to write a client that plays back music with that? I cant find that in the documentation
RegulationD has joined #ruby
ElFerna has joined #ruby
<norc>
binaryplease: Did you bother to even look at the first line of the README?
Hyuk has joined #ruby
<binaryplease>
norc: "Our Web API lets your applications fetch data from the Spotify music catalog and manage user’s playlists and saved music."
<binaryplease>
fetch data meaning only metadata or audio data
sebstrax has quit [Quit: Connection closed for inactivity]
davedev24 has joined #ruby
<norc>
binaryplease: Fair enough. Well Im fairly certain that it won't provide you with access to music.
<norc>
binaryplease: there you can see the full extend of what the api offers.
<shevy>
that looks more like retrieval only rather than playing music
gnufied has quit [Quit: Leaving]
gnufied__ has joined #ruby
synthroid has joined #ruby
chip_ has quit [Ping timeout: 252 seconds]
<norc>
binaryplease: note if you click on for example "Get a track" you will get a full description of what that endpoint offers.
sergio_101 has joined #ruby
<binaryplease>
norc: shevy Thanks, i think its not possible that way then. I tought "retrieving data from cathalog" meant also getrting actual audio data. Seems like you only get metadata
mikecmpbll has quit []
<norc>
binaryplease: Apologies for my harsh remark.
ornerymoose has joined #ruby
<binaryplease>
norc: no problem :-)
edwinvdgraaf has quit [Ping timeout: 264 seconds]
conta has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
conta has joined #ruby
ornerymoose has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
ornerymoose has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
madgen has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
Mon_Ouie has joined #ruby
rodferso1 has joined #ruby
dstarh has joined #ruby
<shevy>
binaryplease you want to do some webbrowser ruby play thingy?
mdw has joined #ruby
centrx has joined #ruby
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
arlek_ has joined #ruby
Bish has joined #ruby
<Bish>
hi folkies, how would u generate the last 12 month in format %Y-%m
rbennacer has joined #ruby
swills_ has quit [Ping timeout: 258 seconds]
GodFather has quit [Ping timeout: 276 seconds]
vali has joined #ruby
<vali>
hi guys
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weaksauce has quit [Ping timeout: 260 seconds]
<vali>
anyone have an idea on how to turn this timestamp (2016-06-21 13:07:35.344432+02) into ISO8601 ?
Madplatypus has quit [Quit: Connection closed for inactivity]
howdoi has quit [Quit: Connection closed for inactivity]
_d2k2 is now known as demend
demend is now known as demend00
demend00 is now known as demend001
demend001 is now known as demend
Vile` has quit [Ping timeout: 244 seconds]
<Bish>
lol
<Bish>
was this the most googlable question of #ruby ever?
piotrj has joined #ruby
<ljarvis>
Bish: loop 12 times and just to a Date.new(year, month).strftime("%Y-%m") after you've amended the year/month with the offset?
madgen has quit [Ping timeout: 260 seconds]
piotrj has quit [Remote host closed the connection]
<ljarvis>
shouldn't be difficult with 12.times.map { |n| } n and Date.today.month
pawnbox has quit [Remote host closed the connection]
<Bish>
well, yeah sure, but there will be january, where i need to get into negative :(
karmatr0n has joined #ruby
pawnbox has joined #ruby
<ljarvis>
right, so you add 12 + 1 for the offset and you have the right month?
madgen has joined #ruby
piotrj has joined #ruby
<ljarvis>
e.g. -2 + 12 + 1 == 11 / november
mbologna2 has joined #ruby
<Bish>
why aren't there functions do do that *whines*
mbologna2 has quit [Client Quit]
mbologna2 has joined #ruby
arajakul has joined #ruby
<ljarvis>
I very much doubt it's a common thing. You could also load active support and just do a date.change(...) which may even handle the offsets for you
mbologna2 has quit [Client Quit]
fmcgeough has joined #ruby
<Bish>
how is making a statistic over month not a thing :/
<Bish>
and yeah, rails :/
karmatr0n has quit [Ping timeout: 250 seconds]
rbennacer has quit [Remote host closed the connection]
the_drow has quit [Quit: This computer has gone to sleep]
mistermocha has joined #ruby
chip_ has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
mistermocha has quit [Read error: Connection reset by peer]
Charles_CV has joined #ruby
the_drow has joined #ruby
mistermocha has joined #ruby
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
mbolo__ has joined #ruby
<shevy>
well if something is useful, it is useful!
codecop has joined #ruby
mistermo_ has joined #ruby
aryaching has quit [Remote host closed the connection]
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
mistermocha has joined #ruby
pawnbox has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
LoneHermit has joined #ruby
malconis has joined #ruby
andromedian has quit [Quit: This computer has gone to sleep]
Hyuk has joined #ruby
mistermo_ has joined #ruby
cdg has joined #ruby
misterm__ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
k3rn31 has joined #ruby
LoneHermit has quit [Ping timeout: 276 seconds]
misterm__ has quit [Read error: Connection reset by peer]
Xeago_ has quit [Remote host closed the connection]
mistermocha has joined #ruby
hutch34_ has quit [Ping timeout: 260 seconds]
mistermo_ has quit [Ping timeout: 250 seconds]
Beverage has joined #ruby
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby
vondruch has quit [Ping timeout: 272 seconds]
edwinvdgraaf has joined #ruby
conta has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
Wsewolod has quit [Ping timeout: 272 seconds]
conta has joined #ruby
roamingdog has quit [Ping timeout: 260 seconds]
mistermo_ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
RegulationD has quit [Ping timeout: 258 seconds]
Hyuk has joined #ruby
<ljarvis>
it's not rails
<ljarvis>
and statistic over a month doesn't really describe what you're doing
<ljarvis>
im a bit confused to be honest, but i haven't really been on the ball at all today so it's probably just me
rueben has joined #ruby
<ljarvis>
doesn't the count relate to the total count per month?
<Bish>
yes it does
mistermo_ has quit [Read error: Connection reset by peer]
<ljarvis>
so you're going backwards and counting for a specific month, right?
mistermocha has joined #ruby
<ljarvis>
so can't you just group by month desc and limit 12?
<Bish>
SELECT date_format(`sent_at`, '%Y-%m') AS `month`, count(`job_mails`.`id`) AS `count` FROM `job_mails` WHERE (`sent_at` IS NOT NULL) GROUP BY `month`)
<Bish>
ljarvis: yeah i could do that if count was not zero for one month
<Bish>
because if i haven't send stuff in november, it will skip the month
rbennacer has quit [Ping timeout: 276 seconds]
<ljarvis>
what about a nested select?
mistermo_ has joined #ruby
<Bish>
SELECT * FROM (select date_format(now() - INTERVAL 12 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 11 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 10 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 9 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 8 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 7 MONTH,'%Y-%m') as
mistermocha has quit [Read error: Connection reset by peer]
<Bish>
month UNION select date_format(now() - INTERVAL 6 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 5 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 4 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 3 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 2 MONTH,'%Y-%m') as month UNION select date_format(now() - INTERVAL 1 MONTH,'%Y-%m') as month)
<Bish>
AS `t1` NATURAL LEFT JOIN (SELECT * FROM (SELECT date_format(`sent_at`, '%Y-%m') AS `month`, count(`job_mails`.`id`) AS `count` FROM `job_mails` WHERE (`sent_at` IS NOT NULL) GROUP BY `month`) AS `t1`) AS `t2`
<Bish>
whopsie
<Bish>
didn't want to paste it, sorry
<Bish>
but doesn't that look nested :D?
<ljarvis>
nested like ass
<Bish>
well, actually, if i replaced now() with a constant, the query would be fine
<Bish>
cacheable and such
mistermocha has joined #ruby
mdw has joined #ruby
aupadhye has quit [Ping timeout: 244 seconds]
aryaching has joined #ruby
<ljarvis>
I'm failing to see why a left join wouldn't work, but tbh with this kind of thing i'd usually faff around in psql until it worked
futilegames has quit [Quit: futilegames]
<Bish>
left join is fine, but the now() prevents it from getting cached
<Bish>
as i said
<ljarvis>
there should be a service that allows you to do pg queries online with a dataset provided by someone who needs help
<ljarvis>
right, but left join without the now()
misterm__ has joined #ruby
piotrj has quit []
<Bish>
well, implies i have a table with the last 12 month
<ljarvis>
well, with all of your INTERVAL X months that implies the same
<ljarvis>
as does the Ruby code
mistermo_ has quit [Ping timeout: 250 seconds]
<Bish>
yep.
<Bish>
i will just replace the now()
<Bish>
and be happy with sql giving me stuff
nando293921 has quit [Ping timeout: 260 seconds]
misterm__ has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
piotrj has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
ishe_ua has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 244 seconds]
<ljarvis>
knowing that sql exists, you will never be happy
<ljarvis>
and now neither will i
mistermo_ has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
arlek_ is now known as arlek
aupadhye has joined #ruby
GodFather has joined #ruby
swills_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
nando293921 has joined #ruby
<shevy>
lol
aupadhye_ has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
<jbkc85>
I'm in the world of trying to remember Ruby little things like that kill me :(
<toretore>
just write your own Dockerfile that does what you want
<imajes>
hey- anyone got any good sources for ruby projects?
skweek has joined #ruby
<jbkc85>
toretore: yea, I'm just trying to completely understand this first i guess
roamingdog has joined #ruby
GodFather has quit [Ping timeout: 276 seconds]
matp has quit [Remote host closed the connection]
mistermocha has joined #ruby
RegulationD has joined #ruby
matp has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
diegoaguilar has quit [Ping timeout: 258 seconds]
LoneHermit has joined #ruby
aryaching has quit [Ping timeout: 250 seconds]
mistermo_ has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
<toretore>
jbkc85: it's as simple as i said, your Gemfile depends on a .gemspec which doesn't exist at the time it's run
ItSANgo has joined #ruby
jher has joined #ruby
<toretore>
the onbuild version won't work with `gemspec`
xaxisx has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
diegoaguilar has joined #ruby
<jbkc85>
toretore: yea, I understand that....im trying to figure out the rest now with the whole 2.2 container (moved away from the onbuild)
<jbkc85>
just in general, i want to figure out why this container development isn't working as their docs intended :-)
<toretore>
it is working as intended, you're just not using it as intended
<toretore>
just make your own Dockerfile, copy the necessary files into place and `RUN bundle`
<toretore>
you don't need a magic onbuild to do this for you
mistermo_ has quit [Ping timeout: 250 seconds]
<jbkc85>
i understand. I am literally using the ruby:2.2 container, and while inside I am running a 'bundle install'. Gems are installing just fine. The problem is, once I run the ruby script, it still complains that its missing dependencies
<jbkc85>
whether through `bundle exec ./ruby_script.rb`, which complains that bundler can't find the script, and if i run a straight `ruby ruby_script.rb`, it can't find my local gem which I reference using the PATH: ../your_gem command in the Gemfile
<jbkc85>
I'm guessing it has to do with the PATH and not REMOTE Gemfile, but I'm trying to understand it
roamingdog has joined #ruby
CloCkWeRX has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
<toretore>
jbkc85: gist relevant files?
kareeoleez has joined #ruby
<jbkc85>
certainly, one sec
<jbkc85>
I'm basically picking up dev for another worker, and I don't use Ruby...so my first thought was container, but based on the approach I'm guessing it has a slightly different issue
<toretore>
using a container should work fine
demend is now known as drale2k
aryaching has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
kareeoleez has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
aufi has quit [Ping timeout: 260 seconds]
<jbkc85>
in this case, the 'program' isn't a gem...its using a gem that we are developing on though
pawnbox has joined #ruby
kareeoleez has joined #ruby
SilverKey has quit [Quit: Halted.]
rueben has joined #ruby
<toretore>
what is the goal with this? do you want to build an image and then run it, or do you want to mount the lib into the container?
<toretore>
there's a lot of weird stuff that makes assumptions about the environment it's run in
<toretore>
`require '.anything' ` won't work unless . is in $PATH, which it's not by default
<toretore>
it's bad practice anyway
dionysus69 has quit [Ping timeout: 244 seconds]
moeabdol has quit [Ping timeout: 250 seconds]
<jbkc85>
i see...
ldnunes has quit [Ping timeout: 244 seconds]
<jbkc85>
the goal is to create a container that could mount the users code and use as a dev environment for executing....nothing more
<jbkc85>
i don't want to use Vagrant or Virtualbox, and frankly i don't want to install Ruby gems and manage it on my own computer
kareeoleez has quit [Ping timeout: 260 seconds]
snath has joined #ruby
<jbkc85>
id rather have an easily shippable 'this is the version...'
smathy has joined #ruby
aegis3121 has quit [Ping timeout: 276 seconds]
<jbkc85>
so what would i change the require to if its looking for a file local to the script being ran?
<jbkc85>
require 'config/your_gemtools', or something different?
<toretore>
yes, and make sure it's in $PATH
urbanmonk has joined #ruby
ocbtec has joined #ruby
SilverKey has joined #ruby
<jbkc85>
so its never going to look in the local directory of the program?
<toretore>
it's going to look in $PATH
<toretore>
nothing more, nothing less
<jbkc85>
interesting....
<toretore>
you control what gets added to $PATH
skweek has quit [Ping timeout: 250 seconds]
<jbkc85>
yea, absolutely
<Bish>
tish: hi 4 letter bro
<Bish>
nice password
<jbkc85>
coming from a PHP development background, when you use things like 'include 'config/here.php', whatever...is there a similar way to do that then?
<jbkc85>
I'm not sure why it was done this way...so I'm trying to understand is all
<jbkc85>
the concept of 'require' that is
<Bish>
jbkc85: yes.
<toretore>
jbkc85: require will just look in $PATH for the file and load it if it exists
mbolo__ has quit [Quit: mbolo__]
rodfersou is now known as rodfersou|lunch
<Bish>
and return true :3
<Bish>
(or false if file is loaded already)
<toretore>
if you want to load "config/something.rb" then "config" must be in $PATH
Telecom has joined #ruby
rodferso1 has quit [Remote host closed the connection]
<ruby[bot]>
Mon_Ouie: # => wrong number of arguments (given 3, expected 0) (ArgumentError) ...check link for more (https://eval.in/594552)
gregf has quit [Quit: WeeChat 1.5]
[Butch] has joined #ruby
gregf has joined #ruby
hutch34_ has joined #ruby
[Butch] has quit [Client Quit]
Xeago__ has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
[Butch] has joined #ruby
wigust has joined #ruby
Xeago_ has joined #ruby
rueben has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Quit: WeeChat 1.5]
kareeoleez has joined #ruby
senayar has quit []
pawnbox has joined #ruby
jackjackdripper has joined #ruby
timanema has quit [Ping timeout: 260 seconds]
baweaver is now known as baweaver_away
mistermocha has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
afdafdafd has quit [Quit: This computer has gone to sleep]
SCHAAP137 has joined #ruby
centrx has quit [Ping timeout: 276 seconds]
kareeoleez has quit [Ping timeout: 264 seconds]
rbennacer has quit [Remote host closed the connection]
wigust has quit [Remote host closed the connection]
Couch has quit [Ping timeout: 250 seconds]
baweaver_away is now known as baweaver
mistermocha has quit [Ping timeout: 240 seconds]
centrx has joined #ruby
centrx has quit [Client Quit]
funrep has joined #ruby
centrx has joined #ruby
<funrep>
hi
<centrx>
Ahoy
kareeoleez has joined #ruby
Silthias has quit [Ping timeout: 244 seconds]
jgt has quit [Ping timeout: 244 seconds]
centrx has quit [Client Quit]
Snowy has quit [Remote host closed the connection]
SCHAAP137 has quit [Ping timeout: 276 seconds]
centrx has joined #ruby
kareeoleez has quit [Ping timeout: 246 seconds]
SilverKey has quit [Quit: Halted.]
<funrep>
is it possible to enable --simple-prompt by default in .irbrc?
SilverKey has joined #ruby
flashpoint9 has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
<funrep>
IRB.conf[:PROMPT_MODE][:PROMPT_S] maybe does it..
<funrep>
IRB.conf[:PROMPT_MODE] = :SIMPLE did it :)
RegulationD has quit []
RegulationD has joined #ruby
saneax is now known as saneax_AFK
flashpoint9 has quit [Ping timeout: 244 seconds]
kareeoleez has joined #ruby
Xeago_ has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
diego1 has joined #ruby
diego1 is now known as diegoviola
<diegoviola>
hi
mistermocha has joined #ruby
codecodecode123 has quit [Quit: Page closed]
agit0 has quit [Quit: zzzZZZ….]
matp has quit [Ping timeout: 244 seconds]
SCHAAP137 has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
araujo has joined #ruby
madgen has quit [Ping timeout: 272 seconds]
speakingcode has quit [Ping timeout: 240 seconds]
arlek_ has joined #ruby
arlek has quit [Read error: Connection reset by peer]
speakingcode has joined #ruby
flashpoint9 has joined #ruby
replay has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
centrx has quit [Remote host closed the connection]
arlek has joined #ruby
platzhirsch has quit [Quit: WeeChat 1.4]
<shevy>
"Detecting cats in images with OpenCV"
<shevy>
I feel that we are solving the real problems of this world!
tish has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
<ule>
oh boy
ornerymoose has quit [Quit: ornerymoose]
joonty has quit [Client Quit]
arlek_ has quit [Ping timeout: 250 seconds]
hahuang61 has joined #ruby
macsteps has quit [Remote host closed the connection]
centrx has joined #ruby
arlek_ has joined #ruby
Silthias has joined #ruby
kareeoleez has joined #ruby
arlek has quit [Ping timeout: 252 seconds]
symm- has quit [Ping timeout: 276 seconds]
jbkc85 has quit [Quit: This computer has gone to sleep]
last_staff has quit [Quit: last_staff]
SilverKey has quit [Quit: Halted.]
edub4rt has joined #ruby
Tonkers has joined #ruby
<Tonkers>
Hello #ruby
<Tonkers>
I'm getting this error whenever I try to run anything with ruby in Cygwin. It's being insufferable, i've tried reinstalling multiple times. Any ideas?
ChiefAlexander has quit [Remote host closed the connection]
sauvin has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
ksmutthu has quit [Ping timeout: 246 seconds]
<imperator>
Tonkers, is running ruby without cygwin an option?
jmignault has quit [Ping timeout: 250 seconds]
<Tonkers>
imperator: that's probably the best solution at the moment
* imperator
recommends just grabbing the one-click installer and pressing on
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
kareeoleez has joined #ruby
timanema has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
arlek_ is now known as arlek]
vuoto has quit [Remote host closed the connection]
arlek] is now known as arlek
vuoto has joined #ruby
speakingcode has quit [Ping timeout: 244 seconds]
vuoto has quit [Remote host closed the connection]
<Tonkers>
imperator: yeah that seems to be the way to go :o working so far
vuoto has joined #ruby
skweek has joined #ruby
weaksauce has joined #ruby
kareeoleez has quit [Ping timeout: 258 seconds]
mwlang has joined #ruby
rcvalle has joined #ruby
troulouliou_div2 has quit [Ping timeout: 276 seconds]
d0lph1n98 has quit [Ping timeout: 252 seconds]
bella_ has quit [Quit: Leaving]
agit0 has joined #ruby
blaxter has quit [Quit: foo]
memorasus has joined #ruby
speakingcode has joined #ruby
matp has joined #ruby
Gadgetoid has joined #ruby
kareeoleez has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
jmignault has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
joonty has joined #ruby
kareeoleez has quit [Ping timeout: 240 seconds]
tomchapin has joined #ruby
tomphp has joined #ruby
jmignault has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
ornerymoose has joined #ruby
djbkd has joined #ruby
jmignault has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
rodfersou|lunch is now known as rodfersou
kareeoleez has joined #ruby
SilverKey has joined #ruby
neo__ has joined #ruby
xall has quit [Ping timeout: 260 seconds]
jhack has quit [Quit: jhack]
drahosj has joined #ruby
drahosj has left #ruby [#ruby]
SilverKey has quit [Client Quit]
kareeoleez has quit [Ping timeout: 264 seconds]
jhack has joined #ruby
jaruga___ has quit [Quit: jaruga___]
ChiefAlexander has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
SilverKey has joined #ruby
whathappens has joined #ruby
mkinkles has joined #ruby
<mkinkles>
Hello!
kareeoleez has joined #ruby
freerobby has quit [Quit: Leaving.]
<adam12>
mkinkles: o\
sepp2k has quit [Quit: Leaving.]
Moosashi has joined #ruby
Es0teric has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
kareeoleez has joined #ruby
pilne has joined #ruby
<mkinkles>
Hi adam12, how're you?
<adam12>
mkinkles: fine thanks. and you?
weckl has quit [Quit: Leaving]
polishdub has joined #ruby
<mkinkles>
adam12: Great!
solocshaw has joined #ruby
nankyokusei has joined #ruby
macsteps has joined #ruby
Wsewolod has joined #ruby
Wsewolod has quit [Client Quit]
giz|work|2 has joined #ruby
ishe_ua has joined #ruby
Wsewolod has joined #ruby
joaumg has quit [Quit: WeeChat 1.0.1]
matp has quit [Remote host closed the connection]
ElFerna has joined #ruby
giz|work has quit [Ping timeout: 276 seconds]
jgt has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
<mkinkles>
adam12: I cannot decide what I want to develop... ha. Horrible, I know. I am brand new to development but I want to make this a career. I am currently doing windows sys admin work (don't like it) so I am in the works of getting a different job as a network engineer (better), so I am trying to figure out what to do. How did you find your thing?
nankyokusei has quit [Ping timeout: 252 seconds]
dfockler has joined #ruby
<mkinkles>
Web & Mobile sounds the best - not interested in desktop, games, or embdedded. I do love machine learning and have been reading tons about it. Whatever I build, I want to incorporate supervised model learning into it.
solocshaw has quit [Remote host closed the connection]
Moosashi has quit [Quit: Moosashi]
solocshaw has joined #ruby
hahuang61 has joined #ruby
ponga has quit []
matp has joined #ruby
<ule>
do you guys know a magic one line command to sort an array but fix one specific key to the first position?
<shevy>
ule sounds like two operations
<shevy>
most array methods do one thing only
<shevy>
.sort .pop .push .unshift .neuterize
<ule>
humm
<ule>
so I need to loop in all and create another array basically
<jhass>
ule: .sort.tap {|a| a.unshift(a.delete(item)) } is probably indeed your best bet
<jhass>
ule: the alternative is to pass a block to .sort
<ule>
jhass: humm I'll do some research about this .tab, .unshift and .delete
<ule>
thanks jhass
<jhass>
.sort {|a, b| a == item ? -1 : b == item ? 1 : a <=> b } or so?
<ule>
wtf.. I need to stop for a few minutes to understand what you just did
<jhass>
.sort_by {|e| [e == item ? 0 : 1, e] } but that creates quite a few unnecessary arrays
neo__ has quit [Ping timeout: 250 seconds]
<smathy>
TIL, you can return the tuple array yourself.
<jhass>
"tuple array"?
sepp2k has joined #ruby
<smathy>
jhass, the sort_by examples I've seen have the block return just the "to be sorted on" value and it creates the [ to-be-sorted-on-value, original-value ] array itself. Oh, actually, maybe this is just because an array that starts with 0 will sort before one that starts with 1
kfpratt has quit []
<jhass>
smathy: it is, sort_by internally builds a hash, not two element arrays
craigp has joined #ruby
<jhass>
iirc
the_drow has joined #ruby
<smathy>
I see what you're doing now, never mind :)
<smathy>
I thought you were building the tuple array for the Schwartzian transform itself.
kirun has joined #ruby
pontiki has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
dhruvasagar has joined #ruby
Madplatypus has joined #ruby
jhack has quit [Quit: jhack]
jher has quit [Ping timeout: 250 seconds]
Moosashi has joined #ruby
roamingd_ has joined #ruby
conta has joined #ruby
pandaant has quit [Remote host closed the connection]
ruby-knss has joined #ruby
ruby-knss has quit [Client Quit]
enterprisey has joined #ruby
roamingdog has quit [Ping timeout: 260 seconds]
zacstewart has quit [Read error: Connection reset by peer]
joonty has quit [Quit: This computer has gone to sleep]
SilverKey has quit [Quit: Halted.]
zacstewart has joined #ruby
<imperator>
now there's a term i haven't heard in a while
sauvin has quit [Remote host closed the connection]
k3rn31 has joined #ruby
Ruby0nRheyls has joined #ruby
LoneHerm_ has joined #ruby
grekko has joined #ruby
<ule>
didn't work
<ule>
maybe because it's not an array
mostlybadfly has joined #ruby
<jhass>
I gave you three alternatives, what exactly did you try?
ElFerna has quit [Read error: Connection reset by peer]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
<havenwood>
Ruby0nRheyls: ^ +1 Heroku docs. The #RubyOnRails channel or Heroku support are good places to ask if you run into any trouble with the docs.
smathy_ has joined #ruby
spiette has quit [Ping timeout: 260 seconds]
pLaToOn has joined #ruby
Ruby0nRheyls has quit [Ping timeout: 250 seconds]
<pLaToOn>
moin
jenrzzz has quit [Ping timeout: 260 seconds]
smathy has quit [Ping timeout: 240 seconds]
davedev24 has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 260 seconds]
replay has joined #ruby
shinnya has joined #ruby
miqlas-H has joined #ruby
xall has joined #ruby
craigp has joined #ruby
TomyWork has quit [Ping timeout: 244 seconds]
goodroot has joined #ruby
synthroid has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
Es0teric has quit [Quit: Computer has gone to sleep.]
pawnbox has quit [Remote host closed the connection]
Xeago_ has joined #ruby
pawnbox has joined #ruby
pLaToOn has quit [Ping timeout: 250 seconds]
Moosashi has quit [Quit: Moosashi]
spiette has joined #ruby
vuoto has quit [Remote host closed the connection]
johnmilton has quit [Remote host closed the connection]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
<ule>
can I use array.delete('foo') ?
aryaching has quit [Ping timeout: 260 seconds]
vuoto has joined #ruby
<ule>
test.rb:4:in `[]': no implicit conversion of String into Integer (TypeError)
aryaching has joined #ruby
<shevy>
%w( a b c ) - ['a'] # => ["b", "c"]
freerobby has joined #ruby
vuoto has quit [Remote host closed the connection]
SilverKey has joined #ruby
nankyokusei has joined #ruby
vuoto has joined #ruby
madgen has quit [Ping timeout: 272 seconds]
rindolf has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
<rindolf>
Hi all.
davedev24 has joined #ruby
nankyokusei has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
omz__ has quit [Ping timeout: 250 seconds]
harfangk has quit [Quit: harfangk]
<shevy>
yo gandalf
aryaching has quit [Ping timeout: 252 seconds]
araujo_ has joined #ruby
aryaching has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
tape88 has joined #ruby
pLaToOn has joined #ruby
araujo has quit [Ping timeout: 258 seconds]
djbkd has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 244 seconds]
TomyLobo has joined #ruby
djbkd has joined #ruby
aryaching has quit [Ping timeout: 244 seconds]
roamingd_ has quit [Remote host closed the connection]
neo___ has quit [Remote host closed the connection]
<shevy>
keep your data structures simple!
<ule>
I don't know how, pls help me
neo__ has joined #ruby
<shevy>
why do you use an array rather than a hash for instance
<ule>
this structure I can't change.. it's comming from my db
jackjackdripper has joined #ruby
karmatr0n has joined #ruby
spaceone has joined #ruby
<ule>
I just need to put "airplane" in the first position
<spaceone>
is there a ruby on rails challenge?
Moosashi has joined #ruby
macsteps has quit [Remote host closed the connection]
<ule>
maybe I need to loop using .each and assign to another variable?
macsteps has joined #ruby
<spaceone>
anyone knows how ruby on rails serializes cookies and sign them with a secret? or where i can read about it? i need code which unserializes it for me, i have the secret key and the value
aryaching has quit [Ping timeout: 240 seconds]
neo__ has quit [Ping timeout: 244 seconds]
aryaching has joined #ruby
<shevy>
ule well one solution may be to delete the entry that has airplane but keep it assigned to a variable, then simply use .unshift to prepend to your Array again
<havenwood>
ule: When you see an "airplane" what do you want to do? Replace that tuple with a new one or add a new "airplane" one?
karmatr0n has quit [Ping timeout: 260 seconds]
replay has quit [Ping timeout: 258 seconds]
<ule>
havenwood: when I see airplane, I want to move to the first position in the array
macsteps has quit [Ping timeout: 276 seconds]
neo__ has joined #ruby
<ule>
but sometimes 'airplane' is not gonna be in the array, thats why I'm checking with that if
<ule>
shevy: ok.. how can I assign to another array? b[] = content?
<ule>
this is really simple in PHP
<ule>
maybe I don't know ruby enough
<hanmac>
ule are you maybe looking for "sort_by" ?
<ule>
havenwood: now I'm getting undefined method unshift
<havenwood>
ule: With what data and what code?
<ule>
havenwood: same code you sent me
edwinvdgraaf has quit [Ping timeout: 244 seconds]
nando293921 has quit [Ping timeout: 244 seconds]
jher has quit [Ping timeout: 260 seconds]
<ule>
division = search.assoc 'airplane'
<Jenzo>
Uptime: 8h51m8s
<ule>
airplane = search.assoc 'airplane'
spaceone has left #ruby ["WeeChat 1.3"]
replay has joined #ruby
Xeago_ has quit [Remote host closed the connection]
<ule>
search.unshift(search.delete(airplane)) if airplane
<pilne>
holy poop! i just think i found my new bible for the next few weeks!
roamingdog has joined #ruby
Xeago_ has joined #ruby
<rindolf>
parshap: looks mostly fine - some duplicate code and missing underscores in identifiers.
<jhass>
?xy ule
<ruby[bot]>
ule: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<rindolf>
pilne: which one?
<parshap>
rindolf: thanks! care to elaborate or fork the gist?
aryaching has quit [Ping timeout: 260 seconds]
<jhass>
ule: in this case your specific solution is "put something in front of the collection" while you're not even sure what your collection looks like. You should ask about how to solve the task that you think you need to put something in "front" for
d0nn1e has quit [Ping timeout: 252 seconds]
<rindolf>
parshap: well, numvcpus should be num_virtual_cpus or so.
<pilne>
"thoughtful machine learning"
<rindolf>
parshap: and you also have Integer(`...`) in two places.
<pilne>
rindolf ^
<rindolf>
pilne: ah.
d0nn1e has joined #ruby
<parshap>
rindolf: got it. should I put the Integer(...) around the whole case expression? i.e,. Integer(case...)
swills_ has quit [Ping timeout: 260 seconds]
<ule>
havenwood: converging to to_a works.. I know just need to convert back to hash
<rindolf>
parshap: or extract a function.
<parshap>
right. ok, thanks
hahuang61 has joined #ruby
<havenwood>
ule: to_h
rodfersou has quit [Quit: leaving]
<havenwood>
ule: But it's a different question if you have a Hash to start with.
<ule>
worked!
rodfersou has joined #ruby
macsteps_ has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
<ule>
so.. the question is.. what's the equivalent to unshift() if I want to use on a hash?
[Butch] has quit [Quit: I'm out . . .]
<jhass>
ule: please don't ignore what I said
<ule>
jhass: I won't
<jhass>
you currently are
Xeago_ has quit [Ping timeout: 272 seconds]
UserInNeed has joined #ruby
<ule>
jhass: sorry
macsteps has joined #ruby
jher has joined #ruby
LoneHermit has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 264 seconds]
roamingdog has joined #ruby
karmatr0n has joined #ruby
pawnbox has quit [Remote host closed the connection]
jgt has joined #ruby
macsteps has quit [Ping timeout: 260 seconds]
jenrzzz_ has joined #ruby
douglascorrea has joined #ruby
hackerdude has joined #ruby
nrk has joined #ruby
JoL1hAHN has quit [Quit: WeeChat 1.3]
jenrzzz has quit [Ping timeout: 246 seconds]
ocbtec has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 244 seconds]
Silthias1 has joined #ruby
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
gnufied has joined #ruby
centrx has quit [Remote host closed the connection]
tokynet has joined #ruby
Silthias has quit [Ping timeout: 258 seconds]
Moosashi has joined #ruby
S01780 has quit []
Moosashi has quit [Client Quit]
jher has quit [Ping timeout: 244 seconds]
codecop has quit [Remote host closed the connection]
jenrzzz_ has quit [Ping timeout: 276 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
nofxx has quit [Changing host]
ldnunes has quit [Quit: Leaving]
tomphp has joined #ruby
mattwashere has quit [Remote host closed the connection]
hackerdude has quit [Remote host closed the connection]
andrelima has joined #ruby
hackerdude has joined #ruby
mattwashere has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
<andrelima>
hello, I want to know why I'm keeping have the error "undefined local variable or method `calcularprejuizo' for GerenciadorDeRisco:Class (NameError)" in my code
<andrelima>
here is the code
<andrelima>
class GerenciadorDeRisco
<andrelima>
<andrelima>
puts "Entre com um preço de abertura:"
<andrelima>
preco_abertura = gets.to_f
<andrelima>
puts "Entre com um preço de fechamento:"
<andrelima>
preco_saida = gets.to_f
helpa has quit [Read error: Connection reset by peer]
Xeago_ has quit [Remote host closed the connection]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
riskish has joined #ruby
dcunit3d has quit [Ping timeout: 250 seconds]
macsteps has quit [Remote host closed the connection]
<drbrain>
I don't think it's an infinite loop
<drbrain>
but I think for very large numbers you may loop for a long time
<drbrain>
do you have examples for fraction[0] and fraction[1]?
<karapetyan>
nope
<diegoviola>
let's say I have puts "hello world" in a script, but no class/methods, how do I assert that? is there a way to just assert the output of the program or I need to call it from a class/method? (minitest)
<drbrain>
diegoviola: without eval, it's hard to assert top-level method calls
<diegoviola>
so best to wrap it into a class/method?
<diegoviola>
and call that
<karapetyan>
drbrain: i have examples, but on this examples all tests passes
<drbrain>
diegoviola: there is assert_output for testing stdout and stderr
prestorium has quit [Quit: Leaving]
<drbrain>
yes, wrap it
<diegoviola>
oh
<drbrain>
karapetyan: can I see a test?
sumobob has quit [Read error: Connection reset by peer]
dcunit3d has joined #ruby
biberu has quit [Read error: Connection reset by peer]