apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<workmad3> bradland: some_method(arg1, *p(arg2, arg3)) is also fun :)
veduardo has joined #ruby
<waxjar> there's a small debugging library that took inspiration from p i think
<waxjar> it's called letters. i always forget to use it :p
Asher has joined #ruby
pusewicz has joined #ruby
veduardo has quit [Client Quit]
skj3gg has quit [Quit: ZZZzzz…]
<bradland> looks cool
bricker_ has joined #ruby
kiyote23_ has joined #ruby
veduardo has joined #ruby
mib_mib has quit [Ping timeout: 246 seconds]
kedare1 has joined #ruby
whowantstolivef2 has joined #ruby
uxp_ has joined #ruby
vcoinminer has joined #ruby
<workmad3> waxjar: I added in a couple of helpers, like 'e' (which simply raises its argument) to a project at one point, before pry :)
renier_ has joined #ruby
<workmad3> made it easier to inspect an object in the context of a rails request while debugging
alol has joined #ruby
it0a has joined #ruby
pietr0_ has joined #ruby
nateberkopec has joined #ruby
n80 has quit [Quit: n80]
davasaurous has joined #ruby
dukedave has joined #ruby
ltd has joined #ruby
<waxjar> hehe, nice.
tiagonobre_ has joined #ruby
OliverTynes has joined #ruby
<waxjar> i should use pry more often too, i'm always using puts statements everywhere :P
speaking1ode-wor has joined #ruby
mroth has joined #ruby
Soda has quit [Remote host closed the connection]
bjeanes_ has joined #ruby
featheryahn_ has joined #ruby
ckrailo__ has joined #ruby
robbyoconnor has joined #ruby
hopsoft_ has joined #ruby
diegovio1 is now known as diegoviola
robbyoconnor has quit [Client Quit]
<workmad3> waxjar: I'll tend to start with a single 'puts' to see something... if I don't get useful stuff on my first go, I'll drop in a 'binding.pry' instead though :)
<jordanm> do ruby gems have an equiv of python wheels?
StableEvan has joined #ruby
hellschreiber has joined #ruby
kiyote23 has quit [Ping timeout: 264 seconds]
TheNumb has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
pietr0_ is now known as pietr0
C1V0 has quit []
<Cat_1> I'd prefer a logger - that way I write it once and just change the log level in a config file if i need that back
mroth has quit [Changing host]
mroth has joined #ruby
mroth has quit [Changing host]
mroth has joined #ruby
robustus|Off has joined #ruby
TheNumb has quit [Changing host]
TheNumb has joined #ruby
skj3gg has joined #ruby
Eiam_ has joined #ruby
<Cat_1> instead of a bunch of puts
jheg has joined #ruby
FaresKAlaboud has joined #ruby
adambeynon has joined #ruby
robustus|Off is now known as robustus
julieeharshaw has joined #ruby
fearoffish has joined #ruby
ghr has joined #ruby
<Cat_1> jordanm I think you want bundler?
oleo has joined #ruby
PierreRambaud has joined #ruby
clauswitt has joined #ruby
haasn has joined #ruby
Junaos has joined #ruby
shelling__ has joined #ruby
randiman has quit [Quit: (null)]
<Cat_1> jordanm: http://bundler.io/
qpls has joined #ruby
davidbug has joined #ruby
vt102 has joined #ruby
<arrubin> What are wheels?
davidbug has quit [Client Quit]
deepy has joined #ruby
KillerFox has joined #ruby
mame1 has joined #ruby
<Cat_1> I think it's kinda like bundler?
tzero has joined #ruby
<Cat_1> manages gems and dependencies
gregf has joined #ruby
jerematic has joined #ruby
robbyoconnor has joined #ruby
uptownhr has quit [Quit: uptownhr]
<waxjar> sounds like it's a package manager. ruby comes with one called rubygems :)
veduardo has quit [Quit: WeeChat 0.4.2]
polyzen has joined #ruby
jeregrine has joined #ruby
<polyzen> could anyone poke through this and tell me if they find it useful? http://www.rubydoc.info/github/shawn42/gamebox
veduardo has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Leaving...]
bronson has quit [Remote host closed the connection]
n1ftyn8 has joined #ruby
<Cat_1> @polyzen - I don't write games, but you can probably see how many people have forked it on github, and thus, find it useful and contribute to it.
davasaurous has quit [Ping timeout: 244 seconds]
KnownSyntax has joined #ruby
doodlehaus has joined #ruby
omnipotent1 has quit [Quit: ZzzZzz]
snath has joined #ruby
gsd has joined #ruby
gsd has quit [Client Quit]
<bradland> polyzen: i’d imagine that given the volume of people who come through here asking “how can i build a game in ruby”, it should be a staple of the community
<bradland> have you talked to the gosu folks about getting a link?
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davasaurous has joined #ruby
borkdude has quit [Ping timeout: 244 seconds]
PhilK has joined #ruby
tokik has joined #ruby
<bradland> jordanm: ruby has two things that serve similar purposes to wheels
<bradland> rubygems is the package distribution mechanism used by ruby
<bradland> the packages are called gems, which can specify dependencies
maZtah has joined #ruby
Caius has joined #ruby
<bradland> ruby applications frequently rely on many gems, and often specific gem versions, but may not be actual gems themselves.
<bradland> bundler is a tool for specifying the required gems and their associated versions.
borkdude has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<workmad3> bradland: it looks like wheels is just a package installation and distribution system... so analogous to rubygems
<jordanm> wheels can provide pre-compiled binaries for native modules. that was more what I was looking for
<bradland> python separates package distribution and packaging
<bradland> ok, in that case, not really
athan has quit [Read error: Connection reset by peer]
<jordanm> ok, thanks for all the info
doodlehaus has joined #ruby
<workmad3> jordanm: rubygems can handle precompiled binaries, but it's generally not advised apart from for platforms that are difficult to set up a toolchain on (e.g. windows)
charliesome has quit [Quit: zzz]
doodlehaus has quit [Remote host closed the connection]
happyface has joined #ruby
baweaver has joined #ruby
baroquebobcat has joined #ruby
shime has joined #ruby
ZucchiniZe has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Remote host closed the connection]
nanoyak has joined #ruby
culturelabs has joined #ruby
<polyzen> Cat_1, bradland, i meant the API documentation itself
unstable has left #ruby [#ruby]
tmoore_ has joined #ruby
ecstaticpessimst has joined #ruby
<polyzen> bradland, it's linked to in the frontpage of https://libgosu.com
<Cat_1> no idea.
<Cat_1> I think APIs are for pussies.
<polyzen> wat
<Cat_1> Back in my day, we wrote everything by hand and fed it into the computer one page at a time.
<Cat_1> and we liked it.
nateberkopec has joined #ruby
<Cat_1> we had to do our memory allocation the hard way
<Cat_1> kids nowadays with their newfangled APIs
<Cat_1> :)
amdbcg has quit [Ping timeout: 264 seconds]
omosoj has joined #ruby
<diegoviola> and their garbage collectors and JIT
ckrailo__ has quit [Ping timeout: 244 seconds]
mroth has quit [Ping timeout: 244 seconds]
tiagonobre_ has quit [Ping timeout: 244 seconds]
alol has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
charles81 has joined #ruby
iamninja has joined #ruby
avahey91 has quit [Ping timeout: 244 seconds]
<bradland> in my day, a garbage collector is what we called the trash bin we put our worn out punch cards in
<polyzen> Cat_1, so what are you suggesting? just going straight to the code?
GreenRanger has joined #ruby
<omosoj> can i access instance variables inside objects in irb? i know about #instance_variables, but is there more? like can it out and put it somewhere else?
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
<polyzen> i was trying to use this to build tic-tac-toe in 5 days (not a programmer, yet)
nanoyak has quit [Client Quit]
rfv has joined #ruby
<GreenRanger> I have this line of code: @repositories = Finding.distinct.pluck(:repository, :repository_id) is there any way to name the keys of @repositories during this assignment?
<omosoj> & is pry available in place of the rails console?
Deele has quit [Ping timeout: 244 seconds]
avahey91 has joined #ruby
Darryl__ has joined #ruby
ckrailo__ has joined #ruby
unstable has joined #ruby
mroth has joined #ruby
<unstable> https://gist.github.com/anonymous/e4237a3833e7f0aab257 .. in this ruby erb template.. how can I make it so it smartd.conf is always in the same order. sometimes the order changes, and it causes a run to happen for writing this file in a cronjob.
amitchellbullard has joined #ruby
<unstable> instead of random
callenb___ has joined #ruby
ballPointPenguin has joined #ruby
alol has joined #ruby
jheg has quit [Quit: jheg]
<unstable> I basically want to make it so the order is always alphabetized in this file.
<unstable> The output looks like that.
<unstable> So it should be in some order
ggherdov has quit [Excess Flood]
davasaurous has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
casual_ has joined #ruby
omnipotent1 has joined #ruby
tiagonobre_ has joined #ruby
bcavileer_ has joined #ruby
<workmad3> unstable: @hardware_health['disks'].sort_by{|disk, attrs| <whatever you want to sort by here>}.each do |disk, attrs|
happyface has quit [Ping timeout: 244 seconds]
adambeynon has quit [Ping timeout: 244 seconds]
rkornmeyer has joined #ruby
zrl has joined #ruby
nanoyak has joined #ruby
<workmad3> unstable: using .sort_by before the .each is the important bit there, as that sorts the array using the values returned by calling that block for each item
oo_ has joined #ruby
<unstable> I want to sort by attrs['Device Id']
sambao21 has joined #ruby
blizzy has joined #ruby
sdwrage has joined #ruby
<workmad3> unstable: so stick that in the sort_by block ;)
adambeynon has joined #ruby
jrunning_ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sevenseacat has joined #ruby
<unstable> workmad3: @hardware_health['disks'].sort_by{|disk, attrs| attrs['Device Id'] }.each do |disk, attrs| ... ?
ggherdov has joined #ruby
skmp_ has joined #ruby
djbender has joined #ruby
Mekkis has quit [Quit: ZNC - http://znc.in]
etdev has quit [Ping timeout: 244 seconds]
happyface has joined #ruby
MiracleBlue_ has joined #ruby
Mekkis has joined #ruby
charliesome has joined #ruby
spastorino has joined #ruby
insaneinside has joined #ruby
fandi has joined #ruby
cstrahan_ has joined #ruby
ecstaticpessimst has quit [Ping timeout: 240 seconds]
ggherdov has quit [Excess Flood]
crdpink has joined #ruby
AlexRussia has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
havenwood has joined #ruby
callenb___ has quit [Ping timeout: 244 seconds]
jimeh has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
blizzy has quit [Ping timeout: 244 seconds]
bricker_ has quit [Quit: leaving]
blizzy has joined #ruby
bricker has joined #ruby
troter__ has joined #ruby
borkdude has quit [Ping timeout: 244 seconds]
x1337807x has joined #ruby
etdev has joined #ruby
whoojemaflip has quit [Ping timeout: 243 seconds]
Megtastique has joined #ruby
Musashi007 has quit [Quit: Musashi007]
whoojemaflip has joined #ruby
borkdude has joined #ruby
tmoore_ has quit [Read error: Connection reset by peer]
cicloid has quit [Ping timeout: 244 seconds]
Guest10 has joined #ruby
chrisseaton has joined #ruby
Guest10 has left #ruby [#ruby]
ggherdov has joined #ruby
jimeh has joined #ruby
ramblinpeck_ has joined #ruby
crdpink2 has joined #ruby
crdpink has joined #ruby
rotor` has joined #ruby
callenb___ has joined #ruby
crdpink has quit [Ping timeout: 240 seconds]
rotor` has quit [Ping timeout: 244 seconds]
Dwarf has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Remote host closed the connection]
crdpink2 has quit [Client Quit]
michaeldeol has joined #ruby
blizzy has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
crdpink has joined #ruby
DadoCe has joined #ruby
freerobby has joined #ruby
dseitz has joined #ruby
elektronaut has quit [Ping timeout: 244 seconds]
akitada has quit [Ping timeout: 244 seconds]
freerobby has quit [Read error: Connection reset by peer]
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
blizzy has joined #ruby
akitada has joined #ruby
AdamMeghji has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
DadoCe has quit [Ping timeout: 252 seconds]
etdev has quit [Ping timeout: 244 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
tiagonobre_ has quit [Ping timeout: 244 seconds]
cicloid_ has joined #ruby
jimeh has quit [Ping timeout: 244 seconds]
nateberkopec has quit [Quit: Leaving...]
tmoore_ has joined #ruby
nickjj has joined #ruby
yfeldblum has quit [Remote host closed the connection]
jimeh has joined #ruby
tiagonobre_ has joined #ruby
ghr has joined #ruby
elektronaut has joined #ruby
Trieste has quit [Ping timeout: 244 seconds]
etdev has joined #ruby
insaneinside has quit [Ping timeout: 240 seconds]
pdoherty has joined #ruby
chrishough has joined #ruby
jblancett has joined #ruby
postmodern has quit [Ping timeout: 244 seconds]
GreenRanger has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
Trieste has joined #ruby
reinaldob has joined #ruby
kenneth has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
pdoherty has quit [Ping timeout: 264 seconds]
iRockZ has joined #ruby
oo_ has quit [Remote host closed the connection]
bronson has joined #ruby
hornairs has quit [Quit: hornairs]
oo_ has joined #ruby
reinaldob has quit [Ping timeout: 264 seconds]
Dwarf has joined #ruby
_whitelogger_ has joined #ruby
alol has joined #ruby
mloveless has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
klmlfl has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
jordanm has quit [Ping timeout: 252 seconds]
studiotate has quit [Quit: Computer has gone to sleep.]
shime has quit [Ping timeout: 264 seconds]
etdev has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
robustus has quit [Ping timeout: 255 seconds]
emmesswhy has joined #ruby
gsd has joined #ruby
marr has quit [Ping timeout: 240 seconds]
gsd has quit [Client Quit]
agrinb has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
robustus has joined #ruby
lsmola has quit [Ping timeout: 264 seconds]
<polyzen> q/close
polyzen has left #ruby [#ruby]
lsmola has joined #ruby
pandaant has joined #ruby
Techguy305 has joined #ruby
jerematic has quit [Remote host closed the connection]
omosoj has quit [Quit: leaving]
jpinnix____ has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
elektronaut has quit [Ping timeout: 244 seconds]
jpinnix____ has joined #ruby
elektronaut has joined #ruby
alol has quit [Ping timeout: 244 seconds]
windowlicker has joined #ruby
baweaver has quit [Remote host closed the connection]
rotor` has quit [Ping timeout: 244 seconds]
rotor` has joined #ruby
russt has quit [Quit: russt]
fivetwentysix has joined #ruby
n008f4g_ has quit [Ping timeout: 244 seconds]
<g-nom3> ok here's another stupid noob question for you: using https://github.com/roo-rb/roo , how best to write a ruby script so that from a command line i can send source.xlsx and dest.csv as arguments to script such as: ruby rubyscript.rb source.xlsx dest.csv?
alol has joined #ruby
mloveless has joined #ruby
baweaver has joined #ruby
<waxjar> g-nom3: have a look at ARGV and ARGF
<g-nom3> ok in docs yea?
windowlicker has quit [Client Quit]
jherbst has joined #ruby
sambao21 has joined #ruby
<g-nom3> exactly what i'm after cheers waxjar
<shevy> I have the strangest of all errors
<shevy> "Must be regular user (not root) to copy a file to the clipboard."
<shevy> and I have no idea from where that one comes. I get it when I invoke a .rb file
Akuma has quit [Quit: So long sukkas!]
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
<shevy> it is somehow related to xclip
<waxjar> you're not secretly running as root are you? :p
sleepee has quit [Quit: Leaving]
whoisjake has joined #ruby
<shevy> no, that is not the problem
<shevy> the problem is that this thing is invoked in the first place
<shevy> I am invoking a .rb script but this strange error appears
tkuchiki has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Techguy305|2 has joined #ruby
<shevy> oh man, I have so many gems
tkuchiki has quit [Client Quit]
Ankhers has joined #ruby
klmlfl has quit [Remote host closed the connection]
CpuID has joined #ruby
CpuID has joined #ruby
i8igmac has quit [Ping timeout: 264 seconds]
<shevy> ok in xclip.c the error message above is not there
djbkd has quit [Quit: My people need me...]
<shevy> so something else must be responsible
Techguy305 has quit [Ping timeout: 240 seconds]
i8igmac has joined #ruby
klmlfl has joined #ruby
<dorei> i guess it's from some security module
ckrailo__ is now known as ckrailo
^wald0 has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
bricker has quit [Quit: leaving]
x1337807x has joined #ruby
jschoolcraft has joined #ruby
towski_ has quit [Remote host closed the connection]
josephndenton has joined #ruby
<shevy> something weird
<shevy> dorei hmm
DadoCe has joined #ruby
baweaver has quit [Remote host closed the connection]
<shevy> if I invoke it via an alias, I get that above error
<shevy> but if I do "ruby foo.rb" directly, I don't get that error at all
veduardo has quit [Quit: WeeChat 0.4.2]
baroquebobcat has quit [Quit: baroquebobcat]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> oh interesting
claptor has joined #ruby
enebo has joined #ruby
<shevy> elif [[ "$USER" == "root" ]]; then
<shevy> echo -e "$_wrn_col""Must be regular user (not root) to copy a file to the clipboard.\e[0m"
<shevy> that seems to be precisely that error
roolo has joined #ruby
<shevy> aha
<shevy> that name is aliased to cb() {
<shevy> I mean, the function name
<shevy> and I also have an alias called cb
DadoCe has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
gsd has joined #ruby
agrinb has joined #ruby
sambao21 has quit [Ping timeout: 255 seconds]
roolo has quit [Ping timeout: 264 seconds]
enebo has quit [Quit: enebo]
<shevy> this is so weird
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
devoldmx has joined #ruby
ghr has joined #ruby
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
danman has joined #ruby
danman has quit [Client Quit]
DadoCe has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skj3gg has quit [Quit: ZZZzzz…]
ghr has quit [Ping timeout: 252 seconds]
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
amclain has joined #ruby
<shevy> cool
<shevy> when I remove the alias cb
<shevy> it works
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
unstable has left #ruby [#ruby]
yvemath has quit [Ping timeout: 244 seconds]
goshdarnyou has joined #ruby
BLuEGoD has quit [Ping timeout: 244 seconds]
robbyoconnor has quit [Ping timeout: 244 seconds]
hamakn has joined #ruby
flywithme has joined #ruby
cantonic has joined #ruby
jefus_ has joined #ruby
bradland has joined #ruby
jefus has quit [Ping timeout: 255 seconds]
josephndenton has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
flywithme has quit [Quit: QUIT LIKE A BOSS]
i8igmac has quit [Read error: Connection reset by peer]
Fretta has joined #ruby
Hobogrammer has joined #ruby
i8igmac has joined #ruby
robbyoconnor has joined #ruby
Techguy305 has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
jordanm has joined #ruby
Techguy305|2 has quit [Ping timeout: 255 seconds]
lw has joined #ruby
omnipotent1 has quit [Quit: I'm out!]
yfeldblum has joined #ruby
Musashi007 has quit [Quit: Musashi007]
BillSussman has joined #ruby
ta has joined #ruby
TheNet has quit [Quit: Leaving...]
lw has quit [Ping timeout: 244 seconds]
<g-nom3> waxjar: could you look over this: http://pastebin.com/CSqw5M5Y and see if i'm on the right track please?
havenwood has quit [Remote host closed the connection]
<shevy> g-nom3
<shevy> you should use a better pastie
<shevy> this one you use has not even syntax colouring?
<g-nom3> ok any suggestions?
<shevy> both https://gist.github.com/ or http://pastie.org/ have syntax colouring
<g-nom3> i also just realised i have do actions in there too which is incorrect
<ericwood> I'd use a case statement
<ericwood> and I'd also get rid of all of the "do" things...
<g-nom3> ericwood: that makes sense
i8igmac has quit [Read error: Connection reset by peer]
<shevy> the "do/end" are not used with if conditionals g-nom3
<ericwood> also, store the result in an ivar of some sort
<ericwood> since this is THE canonical document you're working with from here on out
<g-nom3> ok let me see if i can work out how thats done
<ericwood> also this is a weird approach because the APIs for each of these gems is different
<shevy> g-nom3 with do/end you must keep this in mind:
i8igmac has joined #ruby
<shevy> method_foo {}
<shevy> method_foo do/end
thumpba has quit [Ping timeout: 244 seconds]
<shevy> this is almost the same. {} has slightly higher precedence
ta has quit [Ping timeout: 244 seconds]
<g-nom3> thanks for the tip shevy i'll keep that in mind
nrcpts has joined #ruby
<shevy> g-nom3 ARGV is an array so you can iterate over it btw
i8igmac has quit [Read error: Connection reset by peer]
charliesome has quit [Read error: Connection reset by peer]
<g-nom3> ok just reading up on using case and i'll have another crack at trying to write it again
frogsy has quit []
ivanskie has joined #ruby
bradland has quit [Quit: bradland]
<shevy> g-nom3 here is a slightly improved version http://pastie.org/9830651
mostlybadfly has quit [Ping timeout: 265 seconds]
leslie has quit [Ping timeout: 265 seconds]
mattjbarlow has quit [Ping timeout: 265 seconds]
<shevy> g-nom3 a big advantage when you use methods is that you can combine methods
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n80 has joined #ruby
Seich has quit [Ping timeout: 265 seconds]
<shevy> like in a factory - one worker gives you some unfinished object, you process it further, then give it to the next guy in line. at the end, you have some finished product
<g-nom3> that is fantastic shevy thank you. elegant too.
Su7_ has joined #ruby
<shevy> and a class then is essentially a collection of methods
charliesome has joined #ruby
krz has joined #ruby
marcoamorales has quit [Ping timeout: 265 seconds]
<shevy> and your object is the tool that combines the methods, processes the given input and puts out some desired output
21WAAY82Q has quit [Ping timeout: 265 seconds]
blindsight has quit [Ping timeout: 265 seconds]
LBRapid has quit [Ping timeout: 265 seconds]
<shevy> when you then have a finished class, you just call it like
<shevy> ProcessDocument.new(ARGV)
Hijiri has quit [Ping timeout: 265 seconds]
Su7 has quit [Ping timeout: 265 seconds]
drPoggs has quit [Ping timeout: 265 seconds]
ElderFain has quit [Ping timeout: 265 seconds]
wookiehangover has quit [Ping timeout: 265 seconds]
jaxxstorm has quit [Ping timeout: 265 seconds]
Ridley5 has quit [Ping timeout: 265 seconds]
<shevy> dunno what your class really does, it seems to be just a wrapper over other APIs?
<g-nom3> ah ok.. starting to make a bit more sense now. forgive me. I'm what happens when a developer says you to a designer "you know you really should learn how to code"
<ericwood> why not just call it Document and have a process method on it?
<ericwood> ProcessDocument doesn't really semantically make sense
<ericwood> the idea is you're wrapping multiple document formats and working on them via this class
Spami has quit [Read error: Connection reset by peer]
bradland has joined #ruby
bradland has quit [Changing host]
bradland has joined #ruby
callenb___ has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
<shevy> g-nom3 well I am sure you as a designer also have those iterative steps
<shevy> you don't start with the finished design-product after all!
elektronaut has quit [Ping timeout: 244 seconds]
bjeanes_ has quit [Ping timeout: 244 seconds]
mostlybadfly has joined #ruby
jordanm has quit [Ping timeout: 256 seconds]
cstrahan_ has quit [Ping timeout: 244 seconds]
rfv has quit [Ping timeout: 244 seconds]
andrewstewart has quit [Ping timeout: 244 seconds]
bjeanes_ has joined #ruby
callenb___ has joined #ruby
andrewstewart has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
cstrahan_ has joined #ruby
elektronaut has joined #ruby
LBRapid has joined #ruby
suy|BNC has joined #ruby
leslie has joined #ruby
zzz_Ridley has joined #ruby
blindsight has joined #ruby
g-nom3 has quit [Ping timeout: 244 seconds]
drPoggs has joined #ruby
blindsight is now known as Guest18709
rfv has joined #ruby
zzz_Ridley is now known as Ridley5
borkdude has quit [Ping timeout: 244 seconds]
maZtah has quit [Ping timeout: 244 seconds]
KnownSyntax has quit [Ping timeout: 244 seconds]
tylersmith has quit [Ping timeout: 244 seconds]
nanoyak has joined #ruby
Ridley5 has quit [Changing host]
Ridley5 has joined #ruby
io_syl has quit []
robbyoconnor has joined #ruby
KnownSyntax has joined #ruby
jaxxstorm has joined #ruby
jpinnix____ has quit [Ping timeout: 244 seconds]
jimeh has quit [Ping timeout: 244 seconds]
mroth has quit [Ping timeout: 244 seconds]
maZtah has joined #ruby
tylersmith has joined #ruby
eka has joined #ruby
elektronaut has quit [Ping timeout: 244 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
rotor` has quit [Ping timeout: 244 seconds]
Guest37905 has quit [Ping timeout: 244 seconds]
<postmodern> i guess what I'm asking is how to support both fail-fast and fail-later
<ericwood> :\
rotor` has joined #ruby
roger_rabbit has joined #ruby
borkdude has joined #ruby
<postmodern> design question, when is it acceptable to raise a parse error vs. to convert the parse error into an InvalidRecord like object for later inspection?
mroth has joined #ruby
ta has joined #ruby
pu22l3r_ has quit [Ping timeout: 244 seconds]
whoisjake has quit []
Musashi007 has joined #ruby
<ericwood> the conversion would still be fast, no?
klmlfl has quit [Remote host closed the connection]
<postmodern> ericwood, the "failure" would just happen at a later point in the program
<ericwood> ah I see
<bradland> it depends on the context
<bradland> is my life made harder by the op completing with the exception of the invalid record
<postmodern> ericwood, say you have an array of records to parse, instead of raising a parse error on the first one, you parse and rescue the error, converting it to some InvalidRecord dummy object
<bradland> or is it made more difficult
evanjs has joined #ruby
troter__ has quit [Ping timeout: 244 seconds]
Junaos has quit [Ping timeout: 244 seconds]
featheryahn_ has quit [Ping timeout: 244 seconds]
epochwolf has quit [Ping timeout: 244 seconds]
Shidash has quit [Ping timeout: 244 seconds]
evanjs has quit [Remote host closed the connection]
<ericwood> oof that can be rough...you have to focus on the 90% case, though
elektronaut has joined #ruby
<bradland> when i’m dealing with, for example, file inputs, i prefer to die and give the user the opportunity to correct in the file and simply re-import
etdev has quit [Ping timeout: 244 seconds]
<ericwood> will parsing the rest of the list take long enough that you'd hate yourself?
Hijiri has joined #ruby
wookiehangover has joined #ruby
<bradland> if i’m dealing with a GUI, I collect up bad records and let the user know they failed
<postmodern> ericwood, no
<bradland> the GUI gives me an opportunity to re-present them
ubbersith has joined #ruby
<ericwood> postmodern: I'd rather it give me more detailed failure, then
ubbersith has left #ruby [#ruby]
jpinnix____ has joined #ruby
<postmodern> bradland, yeah I'm more in that boat, have a suite that runs against the parsed data
<postmodern> bradland, so one bad record shouldn't prevent the whole suite from running
featheryahn_ has joined #ruby
ta has quit [Ping timeout: 244 seconds]
<bradland> yeah, i’d fail-later in that case
marcoamorales has joined #ruby
cicloid_ has quit [Ping timeout: 245 seconds]
MiracleBlue_ has quit [Ping timeout: 245 seconds]
Crazy_Atheist has quit [Ping timeout: 255 seconds]
<postmodern> bradland, but the parsers underneath are just micro-libs
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cicloid has joined #ruby
coinr00k has joined #ruby
troter__ has joined #ruby
<bradland> extra points if the op is idempotent, so they don’t have to worry about double-execution
Junaos has joined #ruby
epochwolf has joined #ruby
Joufflu has joined #ruby
andrewstewart has quit [Ping timeout: 243 seconds]
iamninja has quit [Quit: ZZZzzz…]
iRockZ has quit [Ping timeout: 243 seconds]
zorak8 has quit [Ping timeout: 264 seconds]
blizzy has quit [Ping timeout: 264 seconds]
MiracleBlue_ has joined #ruby
bronson has joined #ruby
andrewstewart has joined #ruby
hellschreiber has quit [Ping timeout: 244 seconds]
Spami has joined #ruby
iRockZ has joined #ruby
g-nom3 has joined #ruby
hmsimha has joined #ruby
windowlicker has joined #ruby
baroquebobcat has joined #ruby
greenbagels has joined #ruby
Shidash has joined #ruby
blizzy has joined #ruby
jimeh has joined #ruby
shevy has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
hellschreiber has joined #ruby
Crazy_Atheist has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Sawbones has joined #ruby
michaeldeol has joined #ruby
pdoherty has joined #ruby
gtrak has quit [Ping timeout: 256 seconds]
tiagonobre_ has quit [Ping timeout: 244 seconds]
tiagonobre_ has joined #ruby
fandi has quit [Quit: Leaving]
elektronaut has quit [Ping timeout: 244 seconds]
elektronaut has joined #ruby
Seich has joined #ruby
CrazyM4n has quit [Ping timeout: 255 seconds]
Sawbones has quit [Remote host closed the connection]
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 255 seconds]
pdoherty has quit [Ping timeout: 245 seconds]
iml has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
adambeynon has quit [Ping timeout: 244 seconds]
mattjbarlow has joined #ruby
arescorpio has joined #ruby
TheNet has joined #ruby
deric_skibotn has quit [Ping timeout: 244 seconds]
TDJACR has joined #ruby
adambeynon has joined #ruby
coinr00k has quit [Quit: Leaving]
ckrailo has quit [Ping timeout: 244 seconds]
skmp__ has joined #ruby
ckrailo__ has joined #ruby
skmp_ has quit [Ping timeout: 244 seconds]
CMAXW_ has quit [Ping timeout: 244 seconds]
Hien has quit [Ping timeout: 244 seconds]
skmp__ is now known as skmp_
ta has joined #ruby
agent_white has joined #ruby
etdev has joined #ruby
charles81 has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 244 seconds]
CMAXW_ has joined #ruby
shevy has joined #ruby
livingstn has quit [Ping timeout: 240 seconds]
iml has joined #ruby
DeanH has joined #ruby
_whitelogger_ has joined #ruby
ballPointPenguin has joined #ruby
benlakey_ has joined #ruby
tvl is now known as tobiasvl
CrazyM4n has joined #ruby
oo_ has quit [Remote host closed the connection]
Guest54271 is now known as bl4ckdu5t
bl4ckdu5t has quit [Changing host]
bl4ckdu5t has joined #ruby
mloveless has quit [Remote host closed the connection]
happyface has quit [Client Quit]
lemur has joined #ruby
LBRapid has joined #ruby
etdev has quit [Read error: Network is unreachable]
etdev has joined #ruby
oo_ has joined #ruby
x77686d has quit [Read error: Connection reset by peer]
x77686d has joined #ruby
arup_r has joined #ruby
maximski has joined #ruby
_whitelogger_ has quit [Excess Flood]
_whitelogger_ has joined #ruby
Shidash has quit [Ping timeout: 244 seconds]
<shevy> dumdedum
maximski has joined #ruby
jeregrine has quit [Ping timeout: 244 seconds]
krz has quit [Quit: WeeChat 1.0.1]
dukedave has quit [Ping timeout: 244 seconds]
mleung has joined #ruby
lampd1 has joined #ruby
mleung has quit [Client Quit]
jenrzzz has quit [Ping timeout: 240 seconds]
dukedave has joined #ruby
Cornudomexicano has joined #ruby
Cornudomexicano has quit [Client Quit]
ajaiswal has joined #ruby
x77686d has quit [Quit: x77686d]
jeregrine has joined #ruby
ta has joined #ruby
Shidash has joined #ruby
ckrailo__ is now known as ckrailo
evanjs has joined #ruby
windowlicker has quit [Ping timeout: 255 seconds]
n80 has quit [Quit: n80]
borkdude has quit [Ping timeout: 244 seconds]
borkdude has joined #ruby
amdbcg has quit [Ping timeout: 245 seconds]
ta has quit [Ping timeout: 252 seconds]
blahwoop has joined #ruby
gtc has quit [Remote host closed the connection]
Fretta has quit [Quit: Textual IRC Client: www.textualapp.com]
jimeh has quit [Ping timeout: 244 seconds]
arrubin has quit [Ping timeout: 244 seconds]
n1ftyn8 has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
n1ftyn8 has joined #ruby
io_syl has joined #ruby
arrubin has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
arup_r has quit [Quit: Leaving.]
giuseppesolinas has joined #ruby
metadave has joined #ruby
patrick99e99 has quit [Ping timeout: 265 seconds]
Photism has quit [Quit: Leaving]
patrick99e99 has joined #ruby
metadave has quit [Client Quit]
Shidash has quit [Ping timeout: 244 seconds]
tus has quit []
radic has quit [Ping timeout: 245 seconds]
krz has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
omosoj has joined #ruby
x1337807x has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
Joufflu has quit [Read error: Connection reset by peer]
radic has joined #ruby
JBreit has left #ruby ["Leaving"]
pwnz0r has joined #ruby
<blahwoop> how should i go about upgrading an existing gem to work on ruby 2.2? is there some type of tutorial or blog i can look at for that?
govg has quit [Ping timeout: 255 seconds]
jimeh has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
<bradland> blahwoop: run tests under 2.2, fix failures, repeat
bradland has left #ruby [#ruby]
jaequery has joined #ruby
bradland has joined #ruby
Shidash has joined #ruby
kl__ has quit [Ping timeout: 240 seconds]
<blahwoop> damn i feel like a noob for asking that questions lol
<blahwoop> thanks
braincrash has quit [Quit: bye bye]
<bradland> not an unreasonable question
<bradland> ruby is kind of loose in that regard
<zenspider> blahwoop: what problems are you having?
<zenspider> 2.2 should be fairly backwards compatible
djbkd has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
oo_ has joined #ruby
Lexun has joined #ruby
<blahwoop> i haven't tried it yet but was trying to contribute to open source. one of the request was to make gem work on 2.2
yeticry has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dorei has quit []
fivetwentysix has quit [Quit: fivetwentysix]
ta has joined #ruby
etdev has quit [Ping timeout: 244 seconds]
braincrash has joined #ruby
jaequery has quit [Client Quit]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Hien has joined #ruby
Hien has quit [Changing host]
Hien has joined #ruby
pusewicz has quit [Ping timeout: 244 seconds]
ghr has joined #ruby
etdev has joined #ruby
pietr0 has quit [Quit: pietr0]
ta has quit [Ping timeout: 255 seconds]
Seich has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
pusewicz has joined #ruby
evanjs has joined #ruby
bradland has quit [Quit: bradland]
evanjs has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sawbones has joined #ruby
<bl4ckdu5t> Any better way to loop from January to December like (1..10).each but now (January..December).each
<bl4ckdu5t> ?
<zenspider> blahwoop: so you don't even know if it has a problem?
bronson has joined #ruby
bjeanes_ has quit [Ping timeout: 244 seconds]
<zenspider> bl4ckdu5t: Date::MONTHNAMES.each ?
bluOxigen has joined #ruby
<blahwoop> the gem maintainer said it. can't confirm it yet though
sdwrage has quit [Quit: Leaving]
<bl4ckdu5t> Thanks zenspider
giuseppesolinas has quit [Quit: This computer has gone to sleep]
bjeanes_ has joined #ruby
ta has joined #ruby
<bl4ckdu5t> zenspider: why is the first value nil?
Seich has joined #ruby
skmp_ has quit [Read error: Connection reset by peer]
pwnz0r has quit []
diegovio1 has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
diegoviola has quit [Ping timeout: 240 seconds]
skmp__ has joined #ruby
blizzy has quit [Ping timeout: 244 seconds]
ta has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
yokel has quit [Ping timeout: 244 seconds]
CrazyM4n has quit [Quit: going to eat food]
culturelabs has quit [Ping timeout: 244 seconds]
fivetwentysix has joined #ruby
yokel has joined #ruby
fivetwentysix has quit [Client Quit]
diegovio1 has quit [Ping timeout: 245 seconds]
kyb3r_ has joined #ruby
<bl4ckdu5t> How can I have delete_at to return the rest of the items in the array rather than the deleted item?
culturelabs has joined #ruby
<bl4ckdu5t> or any alternative?
Guest13076 has joined #ruby
cpt_yossarian has quit [Quit: And then he took off.]
elektronaut has quit [Ping timeout: 244 seconds]
skj3gg has joined #ruby
cpt_yossarian has joined #ruby
diegovio1 has joined #ruby
adambeynon has quit [Ping timeout: 244 seconds]
<zenspider> bl4ckdu5t: what is the name of month 0?
<bl4ckdu5t> nil
diegovio1 is now known as diegoviola
mikepack has joined #ruby
LBRapid has quit [Ping timeout: 244 seconds]
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
<bl4ckdu5t> 13 items in the month 0, january, februarty, .. , december
kstuart has quit [Ping timeout: 264 seconds]
<bl4ckdu5t> *13 items in the month: nil, january, februarty, .. , december
adambeynon has joined #ruby
usinganalias has joined #ruby
Musashi007 has quit [Quit: Musashi007]
ixx has joined #ruby
ixx has quit [Client Quit]
ixx has joined #ruby
<usinganalias> Hello all! I want to make an IRB-style achievement-based website as a pet project - does anyone here know of the best way to get an IRB-like prompt in the browser?
LBRapid has joined #ruby
<bl4ckdu5t> usinganalias: Use butterfly and call irb from it
giuseppesolinas has joined #ruby
<shevy> butterfly?
elektronaut has joined #ruby
krz has joined #ruby
michaeldeol has joined #ruby
<shevy> pip install butterfly
<usinganalias> Awesome - thank you!
<shevy> man
wallerdev has joined #ruby
ta has joined #ruby
<shevy> to use python
<usinganalias> hahaha
<bl4ckdu5t> No. It was only built in Python
kstuart has joined #ruby
ARCADIVS has joined #ruby
mostlybadfly has quit [Ping timeout: 244 seconds]
<usinganalias> bl4ckdu5t - looks awesome! Do you know of any way that would just have interpreting done on the clientside, or infrastructure-wise is that a bad idea
<usinganalias> ?
io_syl has quit []
commmmodo has quit [Quit: commmmodo]
Musashi007 has joined #ruby
DadoCe has quit [Remote host closed the connection]
mostlybadfly has joined #ruby
Alina-malina has quit [Quit: byebye]
Alina-malina has joined #ruby
usinganalias has quit [Quit: usinganalias]
MartynKeigher has quit [Quit: Leaving]
bronak has joined #ruby
i8igmac has joined #ruby
mjc_ has quit [Ping timeout: 244 seconds]
ta has quit [Ping timeout: 256 seconds]
oo_ has quit [Ping timeout: 264 seconds]
mattjbarlow has quit [Ping timeout: 243 seconds]
davedev24_ has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
davedev24_ has joined #ruby
mjc_ has joined #ruby
ta has joined #ruby
bronak has quit [Quit: Be back later ...]
<bl4ckdu5t> I don't think that'll be a good idea and it'll be much stress too
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronak has joined #ruby
maximski has quit []
<blahwoop> so i forked the gem and cloned it to my local
<blahwoop> do i need to do bundle to install all the dependencies
<blahwoop> im getting SystemStackError: stack level too deep error
ItSANg___ has quit [Quit: Leaving...]
<blahwoop> While executing gem ... (Gem::Package::FormatError)
<blahwoop> package metadata is missing in doorkeeper-2.1.0.gem
^wald0 has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
<blahwoop> i tried gem install --dev and the same error came up
Megtastique has quit []
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mattjbarlow has joined #ruby
ivanskie has joined #ruby
Oberon4278 has quit []
sdwrage has joined #ruby
Techguy305 has quit [Ping timeout: 256 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Joufflu has joined #ruby
dseitz has joined #ruby
gsd has joined #ruby
Shidash has quit [Ping timeout: 244 seconds]
tiagonobre_ has quit [Ping timeout: 244 seconds]
Megtastique has joined #ruby
Crazy_Atheist has quit [Ping timeout: 244 seconds]
tiagonobre_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tylersmith has quit [Ping timeout: 244 seconds]
Shidash has joined #ruby
Lingo_ has joined #ruby
jpinnix_____ has joined #ruby
jpinnix____ has quit [Ping timeout: 244 seconds]
jpinnix_____ is now known as jpinnix____
gsd has quit [Ping timeout: 252 seconds]
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
Megtastique has quit [Client Quit]
epochwolf has quit [Ping timeout: 244 seconds]
ElderFain has joined #ruby
ElderFain has quit [Changing host]
ElderFain has joined #ruby
pu22l3r has joined #ruby
kl has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
Crazy_Atheist has joined #ruby
etdev has quit [Ping timeout: 244 seconds]
tylersmith has joined #ruby
gsd has joined #ruby
ta has quit [Ping timeout: 256 seconds]
kenneth has joined #ruby
etdev has joined #ruby
Guest13076 has quit [Quit: Leaving]
CatMartyn has joined #ruby
Deele has joined #ruby
astrobun_ has joined #ruby
Techguy305 has joined #ruby
duncannz has joined #ruby
mjmac has quit [Ping timeout: 244 seconds]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jimeh has quit [Ping timeout: 244 seconds]
psy has joined #ruby
Techguy305 has quit [Read error: Connection reset by peer]
Techguy305 has joined #ruby
mjmac has joined #ruby
Shidash has quit [Ping timeout: 244 seconds]
ta has joined #ruby
pdoherty has joined #ruby
mary5030 has quit [Remote host closed the connection]
Shidash has joined #ruby
mary5030 has joined #ruby
Crazy_Atheist has quit [Ping timeout: 264 seconds]
Rylee has quit [Quit: WeeChat 1.1-dev]
Rylee has joined #ruby
epochwolf has joined #ruby
_whitelogger_ has joined #ruby
Guest23235 has quit [Ping timeout: 252 seconds]
jimeh has joined #ruby
lw has joined #ruby
Crazy_Atheist has joined #ruby
josephndenton has joined #ruby
Axy has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
Morkel has joined #ruby
lw_ has joined #ruby
user_name_boxx has joined #ruby
lw has quit [Ping timeout: 240 seconds]
ryzn has joined #ruby
Lingo_ has quit [Quit: (null)]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
josephndenton has quit [Ping timeout: 240 seconds]
Cache_Money has joined #ruby
Musashi007 has quit [Quit: Musashi007]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leafybasil has quit [Remote host closed the connection]
michaeldeol has joined #ruby
x1337807x has quit [Ping timeout: 255 seconds]
<pontiki> evening, all
omosoj has quit [Quit: leaving]
tenseiten has quit [Ping timeout: 255 seconds]
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
<agent_white> Evenin pontiki!
drPoggs has quit [Ping timeout: 244 seconds]
Zesty has joined #ruby
krz has quit [Ping timeout: 240 seconds]
drPoggs has joined #ruby
<pontiki> agent_white: do you have anything to report?
vozcelik has joined #ruby
x1337807x has joined #ruby
<agent_white> pontiki: Today I am fixing my reporting abilities... but it is a good day to be on planet earth!
<pontiki> indeed
x1337807x has quit [Client Quit]
arup_r_ has quit []
arup_r has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
jpinnix____ has quit [Read error: Connection reset by peer]
krz has joined #ruby
ElderFain has quit [Ping timeout: 244 seconds]
vcoinminer has quit [Ping timeout: 244 seconds]
jpinnix_____ has joined #ruby
nrcpts has quit [Quit: (null)]
Crazy_Atheist has quit [Ping timeout: 240 seconds]
russt has joined #ruby
vcoinminer has joined #ruby
krz has quit [Ping timeout: 240 seconds]
krzkrz has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
Heero has quit [Read error: Connection reset by peer]
ElderFain has joined #ruby
ElderFain has joined #ruby
Heero has joined #ruby
emergion has joined #ruby
iRockZ has quit [Ping timeout: 244 seconds]
agent_white has quit [Read error: Connection reset by peer]
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
Dopagod has joined #ruby
mleung has joined #ruby
Pharaoh2 has joined #ruby
Dopagod has joined #ruby
iRockZ has joined #ruby
bronak has quit [Ping timeout: 264 seconds]
mjmac has quit [Ping timeout: 244 seconds]
mjmac has joined #ruby
etdev has quit [Ping timeout: 244 seconds]
d10n-work has joined #ruby
mleung has quit [Client Quit]
Crazy_Atheist has joined #ruby
astrobun_ has quit [Remote host closed the connection]
jusmyth has joined #ruby
chrishough has joined #ruby
epochwolf has quit [Ping timeout: 244 seconds]
Sawbones has quit [Remote host closed the connection]
<g-nom3> i'm guessing doing something like this would be considered bad practice right? http://pastie.org/9830796 should i break them in to separate arrays and make the Record class an array of arrays?
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobun_ has joined #ruby
ckrailo has quit [Read error: Connection reset by peer]
ckrailo__ has joined #ruby
jimeh has quit [Ping timeout: 244 seconds]
MasterPiece has joined #ruby
epochwolf has joined #ruby
CatMartyn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
Abhijit has joined #ruby
jschoolcraft has quit [Ping timeout: 264 seconds]
etdev has joined #ruby
bigkevmc_ has joined #ruby
konsolebox has joined #ruby
jimeh has joined #ruby
nrcpts has joined #ruby
bigkevmcd has quit [Ping timeout: 256 seconds]
jaequery has joined #ruby
ryzn has quit [Ping timeout: 244 seconds]
x77686d has joined #ruby
elaptics`away is now known as elaptics
agrinb has quit [Ping timeout: 255 seconds]
ryzn has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
roolo has joined #ruby
x77686d has quit [Client Quit]
Sawbones has joined #ruby
jordsmi has joined #ruby
agent_white has joined #ruby
bronson has joined #ruby
<shevy> g-nom3 this is perfectly ok if you are sure you need these fields
<shevy> the problem is that you gave them names
<shevy> and that is not necessary because you have Array and Hash available, so you can store all of the latter in just either one of them, and access them
nanoyak has quit [Quit: Computer has gone to sleep.]
roolo has quit [Ping timeout: 256 seconds]
<g-nom3> hmm ok. let me spend a few minutes writing up what i'm trying to achieve here so you can see where i'm heading with this and maybe advise the best route forward.
bronson has quit [Ping timeout: 240 seconds]
rbrs has joined #ruby
Alina-malina has quit [Quit: byebye]
baroquebobcat has quit [Quit: baroquebobcat]
<shevy> >> hash = { :cat => 'tom', :mouse => 'jerry', :dog => 'Spike' }
<eval-in> shevy => {:cat=>"tom", :mouse=>"jerry", :dog=>"Spike"} (https://eval.in/242111)
<shevy> all the numbers you used there, you can simply keep as a key in the hash
nrcpts has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
ducklobster has joined #ruby
nrcpts has joined #ruby
mjmac has quit [Ping timeout: 244 seconds]
Cache_Money has quit [Quit: Cache_Money]
ducklobster has quit [Read error: Connection reset by peer]
ducklobster has joined #ruby
mjmac has joined #ruby
mikepack has quit [Remote host closed the connection]
duncannz has quit [Ping timeout: 255 seconds]
Techguy305 has quit [Ping timeout: 256 seconds]
elaptics is now known as elaptics`away
agent_white has quit [Quit: Lost terminal]
Xeago has joined #ruby
mattjbarlow has quit [Ping timeout: 244 seconds]
St1gma has joined #ruby
kenneth has joined #ruby
mattjbarlow has joined #ruby
astrobun_ has quit [Remote host closed the connection]
Eiam has joined #ruby
Lexun has quit [Ping timeout: 245 seconds]
apeiros has quit [Remote host closed the connection]
CustosLimen has quit [Read error: Connection timed out]
x1337807x has joined #ruby
blahwoop has quit [Remote host closed the connection]
apeiros has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
Heero has joined #ruby
agent_white has joined #ruby
CustosLimen has joined #ruby
russt has quit [Quit: russt]
deric_skibotn has joined #ruby
russt has joined #ruby
deepy has quit [Quit: ZNC - http://znc.in]
mary5030 has joined #ruby
oleo__ has quit [Quit: Verlassend]
skj3gg has quit [Quit: ZZZzzz…]
^wald0 has joined #ruby
tectonic has joined #ruby
callenb___ has quit [Read error: Connection reset by peer]
callenb___ has joined #ruby
tobago has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Remote host closed the connection]
etdev has quit [Ping timeout: 244 seconds]
fenzil has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
SOLDIERz has joined #ruby
fenzil has left #ruby [#ruby]
deepy has joined #ruby
krzkrz has quit [Read error: Connection reset by peer]
evanjs has joined #ruby
elektronaut has quit [Ping timeout: 244 seconds]
_ixti_ has quit [Ping timeout: 264 seconds]
mattjbarlow has quit [Ping timeout: 244 seconds]
elektronaut has joined #ruby
arescorpio has quit [Excess Flood]
devoldmx has quit []
mattjbarlow has joined #ruby
astrobun_ has joined #ruby
etdev has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n80 has joined #ruby
nuck has joined #ruby
epochwolf has quit [Ping timeout: 244 seconds]
Sawbones has quit [Remote host closed the connection]
josephcs has joined #ruby
leafybasil has joined #ruby
noop has joined #ruby
kies has quit [Ping timeout: 255 seconds]
epochwolf has joined #ruby
reinaldob has joined #ruby
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
kies has joined #ruby
kamilc__ has joined #ruby
tylersmith has quit [Ping timeout: 244 seconds]
tylersmith has joined #ruby
<g-nom3> ok... sorry Shevy, had to put the kids down for the night. ok from that xlsx source file i read into the script I need to map the existing columns to new columns such as in this pastebin: http://pastebin.com/szhvf8LV the first row is the existing, the second row is the desired, the third row is how it maps to each other
Abhijit has quit [Quit: Leaving]
hvxgr has quit [Ping timeout: 256 seconds]
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
<g-nom3> i'm still a little vague on this idea of keys and hashes
MasterPiece has quit [Quit: Leaving]
bronak has joined #ruby
leafybasil has quit [Ping timeout: 256 seconds]
hvxgr has joined #ruby
reinaldob has quit [Ping timeout: 264 seconds]
_ixti_ has joined #ruby
djbkd has quit [Quit: My people need me...]
<shevy> I see you are also back on pastebin ;)
<g-nom3> sorry force of habit
n80 has quit [Quit: n80]
dionysus69 has joined #ruby
<shevy> looks like a lot of linenoise to me
mengu has joined #ruby
mengu has joined #ruby
<g-nom3> i've been up for days trying to get this working with bash scripts and finally decided last night it was far too complex a task for bash so started looking for a programming language to simplify it. and this is my intro into ruby. just so much to know, so much to learn and now i have very little time to do it so it may be that i have to do it manually for 1200+ rows. and this is just the first steps before i perform the data merge into in
tectonic has quit []
<g-nom3> :-(
<g-nom3> :'( is probably more like it
<shevy> so
Alina-malina has joined #ruby
<shevy> do you have a minimal dataset
<shevy> and the desired output
<g-nom3> yup. i did pastebins for them earlier i think.. let me find em
agent_white has quit [Quit: leaving]
davedev24_ has quit [Ping timeout: 244 seconds]
yeticry has quit [Ping timeout: 245 seconds]
davedev24_ has joined #ruby
<shevy> I hate pastebin
bronak has quit [Ping timeout: 255 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
yeticry has joined #ruby
agent_white has joined #ruby
davedev24_ has joined #ruby
duncannz has joined #ruby
<g-nom3> its just csv so i'm not sure there is any benefit to syntax highlighting... besides, pastie doesn't seem to expire and i'd rather not have my clients data indexed by google
<g-nom3> is there another option you know of?
psy has quit [Ping timeout: 255 seconds]
SOLDIERz has quit [Quit: Be back later ...]
nrsk has joined #ruby
ItSANgo has joined #ruby
<shevy> your clients data
<shevy> why don't you just add any other data
jordanm has joined #ruby
<shevy> the idea of a minimal dataset is that one can translate from it to your real dataset
<shevy> so if the solution works on your minimal dataset, it will surely work on a larger dataset
bjeanes_ has quit [Ping timeout: 244 seconds]
<g-nom3> haha.. sorry not thinking to clearly on account of lack of sleep
lolmaus has quit [Ping timeout: 240 seconds]
booly-yam has quit [Ping timeout: 252 seconds]
deric_skibotn has quit [Ping timeout: 245 seconds]
<shevy> have you tried in irb yet by the way?
<shevy> once it works in irb, you can just copy past that code into your real .rb file
<pontiki> use pry instead, and you can edit and build the code inside it
bjeanes_ has joined #ruby
pen has joined #ruby
Lexun has joined #ruby
evanjs has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jusmyth has quit [Quit: Leaving.]
etdev has quit [Ping timeout: 244 seconds]
elektronaut has quit [Ping timeout: 244 seconds]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
evanjs has quit [Remote host closed the connection]
<agent_white> And it rhymes with pie.
<agent_white> Who doesn't like pie?!
psy has joined #ruby
etdev has joined #ruby
neersighted has quit [Ping timeout: 245 seconds]
<shevy> g-nom3 this is how you can use irb - you write a small test dataset into a .csv file. Then in irb, you load it up. Once you have the dataset, you can continue to manipulate it how you see fit. You just have to think in babysteps
apeiros has joined #ruby
dimaursu16 has quit [Ping timeout: 245 seconds]
tectonic has joined #ruby
tectonic has quit [Client Quit]
<g-nom3> ok i'll try that thanks
emmesswhy has quit [Ping timeout: 240 seconds]
Pharaoh2 has joined #ruby
ta has quit [Ping timeout: 256 seconds]
lkba has quit [Read error: Connection reset by peer]
alol has quit [Read error: Connection reset by peer]
djbender has quit [Read error: Connection reset by peer]
chrisseaton has quit [Read error: Connection reset by peer]
charles81 has quit [Read error: Connection reset by peer]
hellschreiber has quit [Read error: Connection reset by peer]
apurcell has quit [Quit: Be back later ...]
kenneth has joined #ruby
apurcell has joined #ruby
chrisseaton has joined #ruby
alol has joined #ruby
elektronaut has joined #ruby
jordanm has quit [Ping timeout: 256 seconds]
agent_white has quit [Quit: leaving]
mloveless has joined #ruby
charles81 has joined #ruby
emmesswhy has joined #ruby
hellschreiber has joined #ruby
djbender has joined #ruby
apurcell has quit [Ping timeout: 252 seconds]
pdoherty has joined #ruby
_Andres has joined #ruby
Macaveli has joined #ruby
bal has joined #ruby
bal has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
ghostlines has joined #ruby
bal has joined #ruby
Musashi007 has joined #ruby
pdoherty has quit [Ping timeout: 244 seconds]
borkdude has quit [Ping timeout: 244 seconds]
cicloid has quit [Ping timeout: 244 seconds]
jaxxstorm has quit [Ping timeout: 244 seconds]
lemur has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
jaxxstorm has joined #ruby
lemur has joined #ruby
agent_white has joined #ruby
borkdude has joined #ruby
chinmay_dd has quit [Client Quit]
kp666 has joined #ruby
astrobun_ has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 264 seconds]
anarang has joined #ruby
zwer_r has joined #ruby
anaeem1 has joined #ruby
echevemaster has quit [Remote host closed the connection]
bronson has joined #ruby
cicloid has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
zwer has quit [Ping timeout: 250 seconds]
LouisRoR has joined #ruby
mroach has joined #ruby
bigkevmc_ is now known as bigkevmcd
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andikr has joined #ruby
astrobun_ has joined #ruby
aganov has joined #ruby
ItSANgo has quit [Quit: Leaving...]
bronson has quit [Ping timeout: 255 seconds]
revw has quit [Ping timeout: 264 seconds]
Lexun has quit [Quit: Manjaro-KDE user leaving!]
_maes_ has joined #ruby
amclain has quit [Quit: Leaving]
<pontiki> RDD: REPL driven development.
ItSANgo has joined #ruby
lw_ has quit [Quit: s]
sargas has joined #ruby
konsolebox has quit [Ping timeout: 252 seconds]
apurcell has joined #ruby
kwd has joined #ruby
timonv has joined #ruby
Alina-malina has quit [Quit: Leaving]
konsolebox has joined #ruby
helpa has quit [Remote host closed the connection]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
helpa has joined #ruby
CustosLimen has quit [Ping timeout: 245 seconds]
Aswebb_ has joined #ruby
jimeh has quit [Ping timeout: 244 seconds]
CustosLimen has joined #ruby
elektronaut has quit [Ping timeout: 244 seconds]
apurcell has quit [Ping timeout: 264 seconds]
Aswebb_ has quit [Remote host closed the connection]
chrisseaton has quit [Ping timeout: 244 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
etdev has quit [Ping timeout: 244 seconds]
elfuego has quit [Quit: elfuego]
mloveless has quit []
nanoyak has joined #ruby
chrisseaton has joined #ruby
charles81 has quit [Ping timeout: 244 seconds]
ItSANgo has quit [Quit: Leaving...]
etdev has joined #ruby
hamakn has joined #ruby
BloodyMutt has joined #ruby
alol_ has joined #ruby
alol has quit [Ping timeout: 244 seconds]
alol_ is now known as alol
codecop has joined #ruby
charles81 has joined #ruby
Darryl__ has quit [Ping timeout: 244 seconds]
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anarang has quit [Ping timeout: 240 seconds]
vozcelik has quit [Quit: Textual IRC Client: www.textualapp.com]
jusmyth has joined #ruby
krz has joined #ruby
Alina-malina has joined #ruby
jimeh has joined #ruby
lzco has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
fandi has joined #ruby
krz has quit [Client Quit]
Darryl__ has joined #ruby
krz has joined #ruby
Shidash has quit [Ping timeout: 244 seconds]
<shevy> what is better
Hobogrammer has quit [Ping timeout: 240 seconds]
shime has joined #ruby
rkjaer_ is now known as rkjaer
<shevy> module Test; class Foo; end; end
elektronaut has joined #ruby
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
<shevy> hmmmm
agent_white has joined #ruby
<shevy> basically I am trying to find out whether: SomeOtherClass < Foo; or SomeOtherClass << Namespace::Foo is better, if one is inside that Namespace
<shevy> eww, the << should have been a <
last_staff has joined #ruby
Shidash has joined #ruby
banister has joined #ruby
echooo has joined #ruby
anarang has joined #ruby
giuseppesolinas has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bal has quit [Quit: bal]
konsolebox has quit [Quit: Leaving]
CustosL1men has joined #ruby
Pharaoh2 has joined #ruby
agent_wh1te has joined #ruby
ptrrr has joined #ruby
agent_white has quit [Disconnected by services]
agent_wh1te is now known as agent_white
speakingcode has quit [Ping timeout: 245 seconds]
aswen has joined #ruby
booly-yam has joined #ruby
Pharaoh2 has quit [Client Quit]
rigel has quit [Ping timeout: 245 seconds]
flaccid_ has joined #ruby
lampd1 has quit [Ping timeout: 264 seconds]
bal has joined #ruby
<flaccid_> hi guys. is there some way to shorten this down to pass rubocop method length? https://dpaste.de/EfBz something like a ternary operator or something
kstuart has quit [Remote host closed the connection]
kstuart has joined #ruby
<apeiros> flaccid_: {'y' => true, 'n' => false}.fetch(str.downcase) { fail … }
rdark has joined #ruby
borkdude has quit [Quit: ZNC - http://znc.sourceforge.net]
<apeiros> but not sure I'd actually prefer that. and doing things just to appease some gods… meh.
<apeiros> you could factor out the shadow data entry
robpike has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
jarjar_prime has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
maletor has quit [Read error: Connection reset by peer]
<flaccid_> apeiros: hmm is 1.9 syntax ok? {'y': true, 'n': false}.fetch(str.downcase) {fail 'Invalid response. Please enter y/n.'}
pen has quit [Read error: Connection reset by peer]
borkdude has joined #ruby
<apeiros> flaccid_: a) that's not valid 1.9 syntax, b) no, as `y:` is a symbol, not a string
jenrzzz has quit [Read error: Connection reset by peer]
<apeiros> well, with ruby 2.2+, it actually is valid syntax.
antgel has joined #ruby
<apeiros> (but then again, I wouldn't call it 1.9 syntax)
<sevenseacat> TIL
nanoyak has quit [Ping timeout: 245 seconds]
einarj has joined #ruby
govg has joined #ruby
jaxxstorm has quit [Ping timeout: 244 seconds]
LBRapid has quit [Ping timeout: 244 seconds]
NightMonkey has quit [Ping timeout: 245 seconds]
testcore has quit [Ping timeout: 250 seconds]
Tricon has joined #ruby
<flaccid_> apeiros: i see. this passes rubocop, what do you think? https://dpaste.de/xTod
M-Technic has quit [Ping timeout: 255 seconds]
queequeg1 has quit [Ping timeout: 244 seconds]
malcolmva has quit [Ping timeout: 240 seconds]
<apeiros> I'm not convinced that this is more readable than the previous version
__main__ has quit [Ping timeout: 264 seconds]
<apeiros> (and that's exactly my beef with such metrics)
dumdedum has joined #ruby
<apeiros> I'd probably rather go the route of moving getc_without_echo into its own method
<apeiros> btw., if you use ruby 1.9+, use io/console. better than shelling out to stty.
ItSANgo has joined #ruby
Pharaoh2 has joined #ruby
<apeiros> see IO.noecho
vt102 has quit [Ping timeout: 245 seconds]
<flaccid_> apeiros: so require 'io/console’; str = STDIN.noecho(&:gets).strip
LBRapid has joined #ruby
<apeiros> looks fine
<apeiros> will trip on EOF
pen has joined #ruby
jaxxstorm has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
avril14th has quit [Remote host closed the connection]
Tricon has quit [Ping timeout: 264 seconds]
booly-yam has quit [Remote host closed the connection]
elfuego has joined #ruby
<flaccid_> just take out the strip in this case yeah?
<apeiros> depends on how you want to handle EOF
<flaccid_> hmm
LouisRoR has quit [Ping timeout: 244 seconds]
tesuji has joined #ruby
<flaccid_> ‘so they don’t have to press enter after entering y or n'
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
<flaccid_> same behaviour as before. sorry kind of don’t understand how the no echo works
livathinos has joined #ruby
russt has quit [Quit: russt]
elektronaut has quit [Ping timeout: 244 seconds]
<apeiros> not sure whether noecho & raw can be called in one call, but I guess IO.raw { IO.noecho(&:getc) } could work
<apeiros> flaccid_: noecho doesn't take anything. it disables the echo. gets takes a line. getc takes a character.
Heero has joined #ruby
Heero has quit [Ping timeout: 244 seconds]
<flaccid_> apeiros: as noecho takes a line i assume its not possible ?
<apeiros> and due to line buffering, you also need raw.
<flaccid_> ok, i understand that now, sec!
<apeiros> oh, your original used getc, not gets. no wonder you had stty raw.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NightMonkey has joined #ruby
testcore has joined #ruby
M-Technic has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
__main__ has joined #ruby
dseitz has joined #ruby
malcolmva has joined #ruby
queequeg1 has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
kyb3r_ has quit [Ping timeout: 252 seconds]
bronak has joined #ruby
elektronaut has joined #ruby
x1337807x has joined #ruby
pyx has joined #ruby
deepy has quit [Changing host]
deepy has joined #ruby
lolmaus has joined #ruby
<flaccid_> appreciate the help apeiros. not much lack on using io.raw but thats ok
ndrei has joined #ruby
pencilcheck has joined #ruby
AlexRussia has quit [Ping timeout: 255 seconds]
kyb3r_ has joined #ruby
pen has quit [Ping timeout: 252 seconds]
bronak has quit [Ping timeout: 264 seconds]
jaxxstorm has quit [Ping timeout: 244 seconds]
evanjs has joined #ruby
jaxxstorm has joined #ruby
LouisRoR has joined #ruby
pyx has quit [Quit: WeeChat 1.0.1]
echooo has quit [Quit: echooo]
Shidash has quit [Ping timeout: 244 seconds]
<g-nom3> you still there Shevy? man i'm struggling so hard with this. going back to your code here: http://pastie.org/9830651#31 how do i call the data thats been read in? say for instance i wanted to export it to a new csv file. i'm just going round in circles... reading everything i can but struggling to make sense of it
pyx has joined #ruby
Aswebb_ has joined #ruby
pyx has quit [Client Quit]
<shevy> g-nom3 the method check_against_menu() will return the dataset
arup_r has quit [Remote host closed the connection]
jenrzzz has joined #ruby
<shevy> g-nom3 you can assign a variable to this dataset
<shevy> g-nom3 and then manipulate that variable
alex88 has joined #ruby
MasterPiece has joined #ruby
Shidash has joined #ruby
pyx has joined #ruby
<g-nom3> so something like: source = check_against_menu()
<shevy> g-nom3 here is a slightly improved variant https://gist.github.com/shevegen/f7ecf9f682ab5328d970
timonv has joined #ruby
<shevy> g-nom3 the check: if __FILE__ == $PROGRAM_NAME means that you can run it from the commandline
<shevy> g-nom3 yes but you must provide an argument to that method
<g-nom3> ah ten million thank you's!
<shevy> g-nom3 that file also needs a require, I think. Roo is normally a constant not known to default ruby, you surely are using some addon
<shevy> g-nom3 what also helps is to get a good editor
<shevy> surely you must know CSS :)
<g-nom3> i've got a great editor... emacs.. i know it well and yup i know css well too
rigel has joined #ruby
oo_ has quit [Remote host closed the connection]
n80 has joined #ruby
alex88 has quit [Read error: Connection reset by peer]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
alex88 has joined #ruby
mroach has quit [Quit: mroach]
borkdude has quit [Ping timeout: 244 seconds]
lampd1 has joined #ruby
ponga has joined #ruby
francisfish has joined #ruby
borkdude has joined #ruby
kl has quit [Ping timeout: 244 seconds]
astrobun_ has quit [Remote host closed the connection]
Darryl__ has quit [Ping timeout: 264 seconds]
nrcpts has quit [Ping timeout: 244 seconds]
pyx has quit [Quit: WeeChat 1.0.1]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<agent_white> g-nom3: Oh no, I see your confusion! It's actually spelled "vim".
<agent_white> ;))
Darryl__ has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
<g-nom3> haha moved away from vim and never looked back agent_white
<tobiasvl> :O!!!
<agent_white> WHOA! Hey now! vim ain't no 'hack'
olivier_bK has joined #ruby
chthon has joined #ruby
<agent_white> g-nom3: tobiasvl shares my concern of your health!
<g-nom3> i just got to spend the time learning to program properly is all and stop being such a hack
lzco has quit [Remote host closed the connection]
<g-nom3> haha
ta has joined #ruby
jordsmi has quit [Quit: Connection closed for inactivity]
<agent_white> SON.
<agent_white> ;P
mroach has joined #ruby
<g-nom3> haha you misinterpret ... i like buffers and hate esc key
<tobiasvl> this is the worst
etdev has quit [Ping timeout: 244 seconds]
<tobiasvl> map caps lock to esc!
lkba has joined #ruby
<tobiasvl> just use emacs if you want, but remember that vim vs emacs is a hornet's nest ;)
<shevy> when I meant a good editor
<shevy> I really did not mean vim or emacs
nuck has quit [Quit: Computer has gone to sleep.]
<tobiasvl> shevy: oh so you're going to offend BOTH me/agent_white AND g-nom3???
<tobiasvl> watch it now dude
<g-nom3> i've spent 7 years learning to use emacs and get it working for me... i really can't throw that away...
<shevy> you are trapped in the old days
<shevy> 7 years
<shevy> yep
<tobiasvl> g-nom3: the fallacy of sunk costs
Tricon has joined #ruby
<shevy> need anything to say more :-)
lzco has joined #ruby
<agent_white> tobiasvl: inoremap jk <ESC>; inoremap kj <ESC>
<agent_white> ftw
<agent_white> Changed my life
<shevy> "this editor was great, I learned it in just 7 years"
nuck has joined #ruby
<g-nom3> well i learnt to use it in a day but every day i learn something new. i kinda like that about it
<agent_white> I'm not a good programmer by any means... and learning vim was easy for me. I don't understand why programmers seem to think it's hard, in any way.
<agent_white> Their IDE's are prolly much more insane.
elfuego has quit [Quit: elfuego]
<epitron> agent_white: I bet the vim guides are a lot better now
<tobiasvl> I can understand that modality is a different mindset
<g-nom3> i don't not like vim. i'm ok with that too. i just much much prefer emacs to anything else i've tried, including sublime, textmate, eclipse and/aptana
<tobiasvl> ANYWAY'
<epitron> How'd you learn it?
wallerdev has quit [Quit: wallerdev]
banister has joined #ruby
<tobiasvl> anyway guys
<agent_white> epitron: Couldn't tell you, didn't read any of them :)
duncannz has quit [Ping timeout: 264 seconds]
<g-nom3> haha
<epitron> Not to mention the vim plugins
josephcs has quit [Read error: Connection reset by peer]
ta has quit [Ping timeout: 264 seconds]
n80 has quit [Quit: n80]
alol has quit [Read error: Connection reset by peer]
alol_ has joined #ruby
<g-nom3> funnily enough though i have emacs looking like sublime... on steroids
sevenseacat has quit [Remote host closed the connection]
<agent_white> epitron: Just by using it :) Repetition. My thoughts are... I ssh very often, and don't forward X11 by religion, so I needed to learn vim or emacs. And vim came up sooner I spose :)
<epitron> g-nom3: you got some screencasts?
<epitron> agent_white: surely you needed some key reference
<agent_white> If you don't know vim or emacs enough to use it comfortably, then you have learnin' to do.
Spami has quit [Quit: Leaving]
<g-nom3> screencasts or screenshots?
<epitron> G
<epitron> g-nom3: whichever
ItSANgo has quit [Quit: Leaving...]
<epitron> Casts would probably show off the steroids better, wouldn't they? :)
<agent_white> epitron: Nope! Well, TBH, what got me really into the groove was vim-adventures since it taught me "hjkl". That's about it. Before then I still used vim, but used the arrow keys instead.
<g-nom3> i'll take one. btw org-mode sealed the deal with emacs. i can't imagine life with out it
<epitron> agent_white: so you guessed all the keys?
<g-nom3> i don't really have the time to faff about with a screen cast as i must get this shiz done by the morning but i'll take a screenshot for sure
<agent_white> epitron: Nope! Like I said. I just figure out as I go.
<agent_white> epitron: Noone at all, knows ALL the keys for their editor.
<agent_white> Period.
ghr has joined #ruby
<agent_white> epitron: You just need to know enough :)
<epitron> agent_white: what's the difference between guessing and figuring it out
etdev has joined #ruby
<agent_white> epitron: Who said I guessed?
<agent_white> epitron: Though "vim grammar" could be an answer to that.... how it uses nouns/verbs/adjectives for commands.
<epitron> I am not understanding how you learned vim without a reference
<epitron> You looked up the key bindings?
mroach has quit [Quit: mroach]
<epitron> Or did you randomly press keys until something happened?
<agent_white> epitron: Yes. That is what I said (I _thought_) before!
<agent_white> epitron: I lookup what I need to do :)
<epitron> You thought it instead of saying it?
<agent_white> epitron: But, the learning curve for vim is heavily exaggerated.
<epitron> Yes, I agree
<agent_white> epitron: I guess so... I'm sorry. I thought i said it :)
pdoherty has joined #ruby
<epitron> Where did you look the things up?
msgodf has joined #ruby
lzco has quit [Remote host closed the connection]
wallerdev has joined #ruby
bronson has joined #ruby
DivineEntity has quit [Ping timeout: 264 seconds]
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
lzco has joined #ruby
AFKGeek has joined #ruby
mikepack has joined #ruby
<epitron> agent_white: most things invented by humans for popular use aren't that hard to learn
DivineEntity has joined #ruby
<g-nom3> epitron: http://imgur.com/yrCOUjD sorry i had to sign up to share
<epitron> Including mental tools, like math
Joufflu has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
theRoUS` has quit [Quit: Coyote finally caught me]
joonty has joined #ruby
<epitron> g-nom3: looks interesting
<epitron> Is that org mode in the bottom right?
<g-nom3> i've got a few different buffers up so its all split
<g-nom3> yes mate.. its absolute gold
<g-nom3> i have now completely eradicated the need for office suite
<agent_white> epitron: 'Popular use' is very relative I believe when said about vim ;P
pdoherty has quit [Ping timeout: 244 seconds]
ptrrr has quit [Quit: ptrrr]
<agent_white> epitron: But just on google. I'm not a fan of man pages as a whole... I like examples too much for it.
<agent_white> Give me the entire instructions, the theory of it, the parents of the people who made it's history and their brothers... but it won't help me unless I have an example.
<epitron> agent_white: i'm making a more general statement - if a lot of people know anything, it's not that hard to know
<agent_white> epitron: Oh I know!
bronson has quit [Ping timeout: 244 seconds]
<epitron> And the resources for vim are very good now
<epitron> As is Google
iamninja has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
virtualize has quit []
<epitron> When I first played with vim in 2002, there weren't many resources
lzco has quit [Ping timeout: 264 seconds]
<epitron> Man page, O'Reilly book, a reference or two
rkalfane has joined #ruby
kaspertidemann has joined #ruby
<g-nom3> time will tell if in fact Google is good don't ya think ;-P
<epitron> Now there's no excuse :j
wallerdev has quit [Quit: wallerdev]
<epitron> g-nom3: the jury is still out...
krz has quit [Ping timeout: 264 seconds]
<epitron> Could've been a fluke
AlSquire has joined #ruby
alex88 has quit [Read error: Connection reset by peer]
<agent_white> epitron: Exactly! There's TONS of places to learn it... again, vim-adventures turned me from asdw to hjkl!
dimaursu16 has joined #ruby
alex88 has joined #ruby
StableEvan has quit [Quit: Stuff to do]
emmesswhy has quit [Quit: This computer has gone to sleep]
<wasamasa> vim-adventures is a scam
<wasamasa> do a few levels, then pay
tokik has quit [Ping timeout: 252 seconds]
<agent_white> How so? I didn't ever pay for it and it taught me the most important lessons.
marr has joined #ruby
roolo has joined #ruby
pu22l3r has joined #ruby
<epitron> wasamasa: scam, or business model?
terlar has joined #ruby
<epitron> TRY B4 U BUY
<epitron> true
<wasamasa> epitron: I dunno honestly, just leaves a bad aftertaste
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
<epitron> that's why kickstarters are doing so well -- you can take people's money, and they FEEL GOOD giving it to you :)
<wasamasa> "Hey, here's a cool game for you" - *playing few levels* - "Sorry pal, pay to advance any further or get lost."
sargas has quit [Quit: Leaving]
<epitron> yeah
<epitron> not telling people that they'll eventually have to pay sets their expectations out of whack
<epitron> bad surprises are bad
pu22l3r has quit [Ping timeout: 264 seconds]
<g-nom3> kinda how i'm feeling with ruby at the moment... try ruby.. easy to learn.. wanna do something useful... sorry you need a degree
<wasamasa> what
elaptics`away is now known as elaptics
<g-nom3> just saying i'm having a hard time grasping it
<wasamasa> not a single person at my workplace has a degree
<g-nom3> you should see the amount of documentation i have up at the moment... i've been doing beginners tutorials and all sorts... wasted hours and feel no better off
timonv has quit [Ping timeout: 264 seconds]
ta has joined #ruby
arup_r_ has joined #ruby
Tricon has quit [Ping timeout: 252 seconds]
arup_r has quit [Ping timeout: 264 seconds]
eka has joined #ruby
<wasamasa> write moar code
garethrees has joined #ruby
ELLIOTTCABLE has quit [Ping timeout: 244 seconds]
ta has quit [Ping timeout: 252 seconds]
LouisRoR1 has joined #ruby
ELLIOTTCABLE has joined #ruby
<wasamasa> g-nom3: obligatory reminder: http://norvig.com/21-days.html
bronak has joined #ruby
LouisRoR has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 245 seconds]
lkba has quit [Ping timeout: 255 seconds]
krz has joined #ruby
<g-nom3> i get that wasamasa and will continue my learning and attempted mastery of ruby but tomorrow i'm to dynamically create 1200 + signs to print for a customer and so far i have a script that takes a source file, checks its extension and invokes the correct method and i'm stuffed if i can get it to do anything else
tlarevo has joined #ruby
tlarevo has quit [Client Quit]
<g-nom3> add to that 5 hours of sleep total this week and you can begin to imagine how shit i feel right now
arup_r_ has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
sdwrage has quit [Quit: Leaving]
shime has quit [Ping timeout: 244 seconds]
<wasamasa> oh right, should get to work, too
<ddv> g-nom3: mastering all the api's takes years
<ddv> and you will never master them all obviously
<wasamasa> you'll only master the art of looking stuff up
<wasamasa> and that's what counts
etdev has quit [Ping timeout: 244 seconds]
elektronaut has quit [Ping timeout: 244 seconds]
charles81 has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
<g-nom3> i dont dispute any of that at all. i just thought this would be a relatively trivial task. almost had it working with my bash scripts but it just became infinitely more complex the deeper i got
etdev has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bal has quit [Ping timeout: 245 seconds]
charles81 has joined #ruby
bronak has quit [Ping timeout: 244 seconds]
<ddv> g-nom3: then you are doing something wrong
<wasamasa> not necessarily
<wasamasa> seemingly simple problems can get complicated easily
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
claw__ has quit [Read error: Connection reset by peer]
<g-nom3> ddv: yup apparently believing i have it in me to be a programmer
Pharaoh2 has joined #ruby
claw__ has joined #ruby
astrobun_ has joined #ruby
ixolit has left #ruby [#ruby]
ixolit has joined #ruby
scottymeuk has quit [Ping timeout: 240 seconds]
scottymeuk has joined #ruby
lkba has joined #ruby
Pharaoh2 has quit [Client Quit]
<g-nom3> apologies.. its all nighter #4 and i'm feeling this overwhelming sense of futility.
leathershibe has joined #ruby
Pharaoh2 has joined #ruby
oo_ has joined #ruby
<kaspergrubbe> g-nom3: de you want to burn out?
<leathershibe> Hi friends. I'm using Dash to browse all docsets at once. I'm wondering if there's a CLI alternative...could ri work in the same way as effectively?
rkalfane has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
elektronaut has joined #ruby
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
<g-nom3> kaspergrubbe: was never my intention. just trying to make it work. this is a big deal for my boss. new customer, big contract, and i foolishly thought i could manage it
goshdarnyou has quit [Quit: Connection closed for inactivity]
<wasamasa> leathershibe: nope
astrobun_ has quit [Ping timeout: 252 seconds]
<wasamasa> leathershibe: the user interface is just different
kl__ has joined #ruby
<wasamasa> leathershibe: you might have something closer to it by wrapping it with a tool like your text editor
<leathershibe> wasamasa: dammit, I want me some cli dash
<leathershibe> wasamasa: how so? like calling dash from vim or something?
<wasamasa> leathershibe: yeah, but with some extra code to make it more convenient
oo__ has joined #ruby
ndrst has quit [Ping timeout: 244 seconds]
bal has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
etdev has quit [Ping timeout: 244 seconds]
<wasamasa> leathershibe: I'm using emacs, so I can't go in the details, but there's surely stuff with fuzzy matching and all that for you, too
reinaldob has joined #ruby
<leathershibe> wasamasa: problem with dash is versions, ri solves that pretty well but ri is a bit...bland, takes a while to find what I want and the search is annoying
kostitas has joined #ruby
topolinux has joined #ruby
ndrst has joined #ruby
etdev has joined #ruby
mengu has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 244 seconds]
sevenseacat has joined #ruby
rfish2 has quit []
zmyrgel has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zmyrgel has quit [Client Quit]
ryzn has quit [Ping timeout: 240 seconds]
mattjbarlow has quit [Ping timeout: 244 seconds]
n008f4g_ has joined #ruby
zmyrgel has joined #ruby
Zai00 has joined #ruby
lzco has joined #ruby
tylersmith has joined #ruby
shvelo has joined #ruby
mattjbarlow has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
leathershibe has quit [Quit: leaving]
davidhq has joined #ruby
etdev has quit [Ping timeout: 244 seconds]
lzco has quit [Ping timeout: 244 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
shellfu_drives has quit [Read error: Connection reset by peer]
Shidash has quit [Ping timeout: 244 seconds]
jaxxstorm has quit [Ping timeout: 244 seconds]
LBRapid has quit [Ping timeout: 244 seconds]
Shidash has joined #ruby
jaxxstorm has joined #ruby
_Andres has quit [Ping timeout: 240 seconds]
subraminion has joined #ruby
postmodern has quit [Ping timeout: 244 seconds]
etdev has joined #ruby
unclouded has quit [Ping timeout: 244 seconds]
postmodern has joined #ruby
ldnunes has joined #ruby
postmodern has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
unclouded has joined #ruby
SparkMasterTape has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
_Andres has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has joined #ruby
Shidash has quit [Ping timeout: 244 seconds]
LBRapid has joined #ruby
ptrrr has joined #ruby
Grumelo has joined #ruby
Shidash has joined #ruby
etdev has quit [Ping timeout: 244 seconds]
etdev has joined #ruby
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
jheg has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CpuID has quit [Ping timeout: 245 seconds]
bronak has joined #ruby
anaeem1__ has joined #ruby
banister has joined #ruby
BillSussman has quit [Quit: Leaving]
thejoecarroll_ has quit [Quit: ZNC - http://znc.in]
anaeem1__ has quit [Remote host closed the connection]
thejoecarroll has joined #ruby
anaeem1__ has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
postmodern has quit [Ping timeout: 264 seconds]
decoponio has joined #ruby
astrobun_ has joined #ruby
bronak has quit [Ping timeout: 244 seconds]
ptrrr has quit [Quit: ptrrr]
rodfersou has joined #ruby
ta has joined #ruby
evanjs has joined #ruby
chrishough has joined #ruby
shredding has joined #ruby
nfk has joined #ruby
elektronaut has quit [Ping timeout: 244 seconds]
_Andres has quit [Ping timeout: 245 seconds]
tylersmith has quit [Ping timeout: 244 seconds]
tylersmith has joined #ruby
bronson has joined #ruby
jschoolcraft has joined #ruby
shredding has quit [Client Quit]
ta has quit [Ping timeout: 245 seconds]
elektronaut has joined #ruby
pico-pete has quit [Ping timeout: 240 seconds]
pandaant has quit [Ping timeout: 244 seconds]
agent_white has quit [Quit: night]
n008f4g_ has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 252 seconds]
ishikawa has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
ishikawa has joined #ruby
pdoherty has joined #ruby
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
flaccid_ has quit [Quit: flaccid_]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
alex88 has quit [Remote host closed the connection]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pdoherty has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
mengu__ has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
tkuchiki has quit [Remote host closed the connection]
blackmesa has joined #ruby
tkuchiki has joined #ruby
iMe has joined #ruby
subraminion has quit [Quit: (null)]
Jackneill has joined #ruby
ta has joined #ruby
krz has joined #ruby
postmodern has joined #ruby
shime has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
gfawcettpq1 has joined #ruby
anaeem1__ has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
que has joined #ruby
que has left #ruby [#ruby]
Morkel_ has joined #ruby
pandaant has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
Morkel has quit [Ping timeout: 245 seconds]
Morkel_ is now known as Morkel
iamninja has quit [Ping timeout: 250 seconds]
Aswebb_ has joined #ruby
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has quit [Max SendQ exceeded]
Fire-Dragon-DoL has joined #ruby
hamakn has quit [Remote host closed the connection]
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
lzco has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
chipotle has joined #ruby
oo__ has quit [Remote host closed the connection]
oo_ has joined #ruby
davidhq has joined #ruby
tvw has joined #ruby
ajaiswal has quit [Quit: Leaving]
alol_ has quit [Ping timeout: 244 seconds]
jusmyth has quit [Quit: Leaving.]
lzco has quit [Ping timeout: 252 seconds]
alol_ has joined #ruby
bronak has joined #ruby
oo_ has quit [Ping timeout: 265 seconds]
St1gma has quit [Remote host closed the connection]
St1gma has joined #ruby
BloodyMutt has quit [Ping timeout: 256 seconds]
bronak has quit [Ping timeout: 245 seconds]
jack_rabbit has quit [Ping timeout: 256 seconds]
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
govg has quit [Ping timeout: 245 seconds]
Aswebb_ has joined #ruby
emergion has quit [Quit: Connection closed for inactivity]
ndrei has quit [Ping timeout: 240 seconds]
decoponio has joined #ruby
rocco88 has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pharaoh2 has joined #ruby
n1lo has joined #ruby
Xeago has quit [Remote host closed the connection]
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
Timgauthier has joined #ruby
nuck has quit [Quit: Computer has gone to sleep.]
_5kg has quit [Ping timeout: 244 seconds]
_5kg has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
blackoperat has joined #ruby
alex88 has joined #ruby
ferr has joined #ruby
nfk has quit [Quit: yawn]
alex88 has quit [Ping timeout: 245 seconds]
exadeci has joined #ruby
avahey91 has quit [Quit: Connection closed for inactivity]
leafybasil has joined #ruby
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
Aswebb_ has quit [Ping timeout: 245 seconds]
blackmesa has quit [Ping timeout: 255 seconds]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
kamilc__ has quit [Ping timeout: 240 seconds]
leafybasil has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Aswebb_ has joined #ruby
uber2 has joined #ruby
uber2 has quit [Remote host closed the connection]
Timgauthier is now known as timgauthier_away
timgauthier_away is now known as Timgauthier
lolmaus has quit [Quit: Konversation terminated!]
SparkMasterTape has quit [Read error: Connection reset by peer]
leafybasil has joined #ruby
ta has quit [Ping timeout: 245 seconds]
ta_ has quit [Remote host closed the connection]
blackmesa has joined #ruby
gregf_ has quit [Quit: leaving]
metadave has joined #ruby
ta has joined #ruby
lolmaus has joined #ruby
lzco has joined #ruby
jaredrhine has quit [Quit: No Ping reply in 180 seconds.]
jaredrhine has joined #ruby
it0a has quit [Ping timeout: 244 seconds]
meschi has quit [Ping timeout: 244 seconds]
Pharaoh2 has joined #ruby
emmesswhy has joined #ruby
alex88 has joined #ruby
emmesswhy has quit [Client Quit]
bronson has joined #ruby
lzco has quit [Ping timeout: 245 seconds]
Pharaoh2 has quit [Client Quit]
codecop has quit [Remote host closed the connection]
bluehavana has quit [Quit: Connection closed for inactivity]
kp666 has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
joonty has quit [Quit: joonty]
anaeem1 has quit [Remote host closed the connection]
Logico has joined #ruby
Pharaoh2 has joined #ruby
Logico has left #ruby [#ruby]
Pharaoh2 has quit [Client Quit]
emmesswhy has joined #ruby
<shevy> g-nom3 ok so you have that script where you delegate towards one of those APIs
bronson has quit [Ping timeout: 244 seconds]
<shevy> g-nom3 now you need to determine what is missing
emmesswhy has quit [Client Quit]
spyderman4g63 has joined #ruby
doodlehaus has joined #ruby
topolinux has quit [Quit: Sto andando via]
grn has joined #ruby
emmesswhy has joined #ruby
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
spyderma_ has joined #ruby
larissa has joined #ruby
Xeago has joined #ruby
<g-nom3> i've just gone through the data set and manually cleaned it, changing to the structure i need as i just couldn't work it out on my own. now i've done this i have a better idea of what needs to be done so i will attempt to write psuedo code in order to help with writing the application.
astrobun_ has quit [Remote host closed the connection]
banister has joined #ruby
startupality has joined #ruby
<shevy> good!
<shevy> write the pseudo code and show it too!
<shevy> whenever it is about strings and text, ruby is ideal
spyderman4g63 has quit [Ping timeout: 264 seconds]
jerematic has joined #ruby
ndrei has joined #ruby
grn has quit []
<g-nom3> so i keep hearing. there really is no short cut to learning to program so i just have to keep at it. i'm going to attempt to find a course here in my home town that will give me the proper foundation
<g-nom3> thank you for all your help anyways shevy. i really appreciate it
aclearman037 has joined #ruby
kl__ has quit [Ping timeout: 244 seconds]
revw has joined #ruby
ernetas has joined #ruby
<ernetas> Hey guys.
<shevy> g-nom3 well, for learning ruby, you actually chose a task of medium difficulty
<shevy> so it's harder to progress through that
<shevy> what may be much simpler is if you use ruby to manipulate/remove/copy files and directories
<g-nom3> indeed.
gr33n7007h has quit [Ping timeout: 256 seconds]
<shevy> then you'll already have a bunch of things that you can use. for instance, block form of File.new('foo.txt') {|file| file.print 'hello world' }
<ernetas> Any ideas why would delayed jobs would be running on 1 CPU cores' only? I'm running 24 processes (also, each one of them spawns 2 threads as by default) all running separate ruby interpereters,
<ernetas> NUMA is enabled on the host.
<shevy> g-nom3 and for instance, then you also will understand stuff like if __FILE__ == $PROGRAM_NAME, because you need that if you want to use a script from a commandline but also as a standalone library
emirozer has joined #ruby
<shevy> g-nom3 I came from php so I wrote a lot of web-related code. ruby can do the same as php can though, much cleaner and shorter
<ddv> eww shevy
doodlehaus has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
revw has quit [Ping timeout: 265 seconds]
<g-nom3> yea the problem is i lack the foundation knowledge in programming principles too. i used to do a lot with drupal and could fake my way through all the php stuff but yea, without the foundation knowledge it just makes things relatively impossible
metadave_ has joined #ruby
FooMunki_ has joined #ruby
<shevy> well the foundations are really very similar across these languages
<shevy> unlike like haskell
<shevy> I couldn't get past why I need a monad
jherbst has joined #ruby
<g-nom3> i mainly do design and front end stuff, although i have come from a hardware and network service background... at least they're the main areas i'm qualified in. programming now really interests me though. especially now i feel beaten by this.
<g-nom3> so i wont give up ... just need to get that foundation learning
^wald0 has quit [Ping timeout: 252 seconds]
<g-nom3> ooh i know absolutely nothing about haskell
claptor has quit [Quit: this channel is bakas]
pdoherty has joined #ruby
Pharaoh2 has quit [Client Quit]
metadave has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
<ddv> you need a phd to understand haskell
nateberkopec has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
pandaant has quit [Ping timeout: 240 seconds]
pdoherty has quit [Ping timeout: 256 seconds]
maximski has joined #ruby
iamninja has joined #ruby
<wasamasa> nope
pandaant has joined #ruby
DadoCe has joined #ruby
<shevy> wasamasa why do we need a monad
<shevy> g-nom3 ruby can be quite complex
postmodern has quit [Quit: Leaving]
<wasamasa> shevy: it's just a higher level of abstraction
<shevy> g-nom3 start with php if you already design
russt has joined #ruby
<wasamasa> shevy: which allows you to use common utilities on every monad
<wasamasa> shevy: there's been a ruby talk explaining it in more detail
joonty has joined #ruby
<ddv> did you just recommend, php, shevy?
brb3 has joined #ruby
<shevy> ddv for learning sure
<workmad3> ewww, no
<workmad3> you'll pick up so many bad habits you need to unlearn from PHP
Pharaoh2 has joined #ruby
<ddv> shevy: get the *uck out, now!
<shevy> he'll learn how to use functions
<ddv> :)
<shevy> php still has better online docu than ruby too
<shevy> although its user comments part are excessive
<shevy> man
<shevy> that's like 50% user comments
<shevy> that's stupid
<shevy> better than ruby though
<shevy> 0% user comments
<shevy> hahahaha
<shevy> I can't look at the code
<shevy> $string .= 'and something extra.';
blackmesa has quit [Ping timeout: 252 seconds]
<shevy> g-nom3 yeah, after you learned php you'll also have to be prepared to forget it
blackoperat has quit [Ping timeout: 240 seconds]
<workmad3> shevy: yeah, basically you're suggesting he takes 3 months to learn PHP, and then spend about as much time stripping it from his memory while learning a language that doesn't indoctrinate you in mentally-screwed up code constructs ;)
<shevy> ruby is not a simple language
commmmodo has joined #ruby
<shevy> g-nom3 did you look at "Learn to Program" yet?
<shevy> g-nom3 you can read it online https://pine.fm/LearnToProgram/
ItSANgo has joined #ruby
<g-nom3> not yet but i will book mark that now
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
C0deMaver1ck has joined #ruby
Pharaoh2 has joined #ruby
<shevy> awww
<shevy> bookmarks are recipes for forgetting things
<shevy> I have a few hundred right now
Pharaoh2 has quit [Max SendQ exceeded]
<workmad3> shevy: I don't bother with bookmarks... I just leave tabs open :)
Pharaoh2 has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
<g-nom3> haha.. i'm usually meticulous in my organisation and regularly revisit anything in my book marks. plus i have an org-mode doc that i call my "ultimate guide" which i collect all my useful links, snippets, tutorials etc so i promise i wont forget it
lolmaus has quit [Quit: Konversation terminated!]
kl has joined #ruby
ndrei has joined #ruby
Pharaoh2 has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
<g-nom3> reading is very difficult for me at this point in time given this is my 4th day awake .. .i've just been pushing through in order to try and get this done... was hoping to please the boss. right now i must take a short break and go and get more red bull
commmmodo has quit [Ping timeout: 255 seconds]
Pharaoh2 has joined #ruby
<g-nom3> work in t minus 5 hours
<shevy> don't kill yourself man
<ddv> you sound very depressing g-nom3
<g-nom3> shevy: i gave my word i would have it done. that means everything to me so i will come through... or die trying.
<g-nom3> ddv: sorry i don't mean to be depressing
gregf_ has joined #ruby
<g-nom3> bbs
<ddv> g-nom3: there is more than work in life you know
elfuego has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
zwer_r is now known as zwer
_Andres has joined #ruby
<g-nom3> i know but i have a family to support and a failed business to pay off so the best i can do is work hard to recover. life is expensive. i'm hoping all my efforts will not go unnoticed
govg has joined #ruby
bronak has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
rebcabin has joined #ruby
joonty has quit [Quit: joonty]
danjordan has left #ruby [#ruby]
nuck has joined #ruby
ferr has quit [Ping timeout: 245 seconds]
nrsk has joined #ruby
charliesome has quit [Quit: zzz]
apurcell has joined #ruby
zenspider has quit [Ping timeout: 265 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
delianides has joined #ruby
kostitas has quit [Quit: Leaving]
psy has quit [Quit: Leaving]
JohnBat26 has joined #ruby
dblessing has joined #ruby
arup_r has quit []
apurcell has quit [Ping timeout: 245 seconds]
poetazus has quit [Quit: Leaving...]
bronak has quit [Ping timeout: 256 seconds]
josephcs has joined #ruby
delianides has quit [Ping timeout: 244 seconds]
sevenseacat has left #ruby [#ruby]
delianides has joined #ruby
beef-wellington has joined #ruby
zenspider has joined #ruby
bradland has joined #ruby
josephcs has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
root has joined #ruby
lukaszk1 has joined #ruby
root is now known as Guest50547
ptrrr has joined #ruby
DadoCe has quit [Remote host closed the connection]
lukaszk1 has quit [Client Quit]
lukaszk1 has joined #ruby
joonty has joined #ruby
DadoCe has joined #ruby
Guest50547 has quit [Client Quit]
lukaszk1 has quit [Client Quit]
toretore has joined #ruby
jmcharnes has joined #ruby
blackoperat has joined #ruby
cphrmky has joined #ruby
DadoCe has quit [Ping timeout: 245 seconds]
wlanboy has quit [Ping timeout: 245 seconds]
Musashi007 has quit [Quit: Musashi007]
Musashi007 has joined #ruby
wlanboy has joined #ruby
wlanboy has quit [Changing host]
wlanboy has joined #ruby
emirozer_ has joined #ruby
fandi has quit [Ping timeout: 245 seconds]
neerajt has joined #ruby
blackoperat has quit [Client Quit]
bronson has joined #ruby
blackoperat has joined #ruby
lxsameer has quit [Quit: Leaving]
metadave has joined #ruby
giuseppesolinas has joined #ruby
Musashi007 has quit [Client Quit]
ItSANgo has quit [Quit: Leaving...]
metadave has quit [Client Quit]
rocco88 has quit []
fandi has joined #ruby
jbzt has joined #ruby
tkuchiki has quit [Remote host closed the connection]
JDiPierro has joined #ruby
emirozer has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
metadave_ has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
sambao21 has joined #ruby
amdbcg has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
giuseppesolinas has quit [Client Quit]
Musashi007 has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
fryguy9 has joined #ruby
allcentury has joined #ruby
shime has quit [Ping timeout: 264 seconds]
anaeem1_ has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
tkuchiki has quit [Ping timeout: 252 seconds]
red_horned_rihno has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 244 seconds]
Treyt22 has joined #ruby
bradleyprice has joined #ruby
banister has joined #ruby
giuseppesolinas has joined #ruby
it0a has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
maximski has quit []
adriancb has joined #ruby
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
MasterPiece has quit [Quit: Leaving]
kaspertidemann has quit []
tus has joined #ruby
atmosx has joined #ruby
<atmosx> hello
allcentury has quit [Ping timeout: 264 seconds]
<mostlybadfly> Hello good morning
anaeem1_ has joined #ruby
allcentury has joined #ruby
Musashi007 has quit [Quit: Musashi007]
jefus__ has joined #ruby
<atmosx> hm it's 16:25 here :-P
metadave has joined #ruby
<atmosx> but good morning anyway ;-)
<mostlybadfly> It is 08:25 here
<atmosx> yeah I figured.
oleo has joined #ruby
jefus_ has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
JohnBat26 has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
Negron has joined #ruby
jaequery has joined #ruby
<shevy> 15:33 here
avahey91 has joined #ruby
<elfuego> does anyone know a good ruby profiling tool?
Negron has left #ruby [#ruby]
jaequery has quit [Client Quit]
fryguy9 has quit [Quit: Leaving.]
<elfuego> performance profiling***
doodlehaus has joined #ruby
jefus__ is now known as jefus
ta_ has joined #ruby
joonty has quit [Quit: joonty]
bronak has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jerius has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<Moter8> So I'm setting up ruby with rbenv following some howto guide. But now when trying to install a gem I'm getting "mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h"
<Moter8> I guess I have to install some dev tools, but which?
chipotle has quit [Quit: cheerio]
Pharaoh2 has joined #ruby
<Moter8> (I had followed https://gorails.com/setup/ubuntu/14.10 )
{xenomorph} is now known as xenomorph
ta_ has quit [Ping timeout: 245 seconds]
seitensei has joined #ruby
lzco has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
x3cion has joined #ruby
Pharaoh2 has joined #ruby
tkuchiki has joined #ruby
josephndenton has joined #ruby
pdoherty has joined #ruby
monq has joined #ruby
tkuchiki has quit [Remote host closed the connection]
vt102 has joined #ruby
n1lo has quit [Quit: Leaving]
hopsoft_ has quit [Remote host closed the connection]
pdoherty has quit [Remote host closed the connection]
_maes_ has joined #ruby
evanjs has joined #ruby
shellfu_drives has joined #ruby
devdazed has joined #ruby
lzco has quit [Ping timeout: 272 seconds]
shellfu_drives is now known as shellfu
athan has joined #ruby
<workmad3> Moter8: that looks like you attempted to install ruby via apt-get packages
pdoherty has joined #ruby
mrmargolis has joined #ruby
<Moter8> workmad3, I think I didnt do that
JDiPierro has joined #ruby
shellfu has quit [Remote host closed the connection]
<elfuego> Does anyone know a performance profiling tool for ruby?
<apeiros> elfuego: ruby-toolbox.com knows
<workmad3> Moter8: well, something like that has happened... all the mechanisms listed on that page download ruby source and compile, so they don't end up without sources
<apeiros> elfuego: -rprof will load the stdlib profiler
lukaszk has joined #ruby
<apeiros> or was it -rprofile?
drkyro has joined #ruby
<workmad3> Moter8: it could be that ruby was installed by apt-get by something without you realising, and you haven't activated the ruby version you want through the console
<Moter8> ruby -v outputs 2.1.2.p95
baroquebobcat has joined #ruby
<Moter8> the one in the repos should be older though
<workmad3> Moter8: well, the instructions on that page install 2.1.5... so something is odd there :P
whoisjake has joined #ruby
<Moter8> :((
<workmad3> Moter8: which method did you use? rbenv? rvm? chruby?
camilasan has quit [Remote host closed the connection]
<Moter8> rbenv
<workmad3> Moter8: and you typed 'rbenv install 2.1.5'?
TheNet has quit [Remote host closed the connection]
drkyro has quit [Client Quit]
TheNet has joined #ruby
camilasan has joined #ruby
agrinb has joined #ruby
joonty has joined #ruby
sambao21_ has joined #ruby
<Moter8> and sometime later I did the install commands
livingstn has joined #ruby
sambao21 has quit [Ping timeout: 264 seconds]
sambao21_ is now known as sambao21
xenomorph is now known as {xenomorph}
allcentury has quit [Ping timeout: 252 seconds]
<workmad3> Moter8: so straight after running 'rbenv install 2.1.5' and 'rbenv global 2.1.5' you got back '2.1.2' for 'ruby -v'?
<elfuego> is anyone familiar with profiling a jruby application that runs on a puma server?
tesuji has quit [Ping timeout: 264 seconds]
strype has joined #ruby
<Moter8> workmad3, I... am not sure, that was executed yesterday
last_staff has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
rebcabin has quit [Quit: Leaving.]
<workmad3> Moter8: most likely rbenv isn't in your PATH properly atm then... what is your PATH?
<workmad3> Moter8: and also, what's the result of 'which ruby' and 'which gem'?
anaeem1_ has quit [Remote host closed the connection]
Rollabunna has joined #ruby
Guest65453 has quit [Changing host]
Guest65453 has joined #ruby
Guest65453 is now known as daynaskully
revw has joined #ruby
trampi90 has joined #ruby
rbennacer has quit [Remote host closed the connection]
trampi has quit [Remote host closed the connection]
trampi90 has left #ruby [#ruby]
trampi has joined #ruby
iamninja has quit [Quit: Textual IRC Client: www.textualapp.com]
shredding has joined #ruby
<workmad3> Moter8: how peculiar... that all looks fine
iamninja has joined #ruby
antgel has quit [Ping timeout: 256 seconds]
<Moter8> uhm.
<Moter8> ruby -v now return 2.1.5p273 ?
x77686d has joined #ruby
<Moter8> returns
<Moter8> In ~ it returns 2.1.5 and in some other folder it returns 2.1.2
monq has quit [Quit: monq]
monq has joined #ruby
antgel has joined #ruby
max96at|off is now known as max96at
<workmad3> ah, you may be in a project that has a .ruby-version or .rbenv-version file
shellfu has joined #ruby
<Moter8> or...
<workmad3> which is used to provide auto-switching behaviour to ensure the 'right' ruby is activated
<Moter8> rather in fish it returns 2.1.2 and in bash 2.1.5
rbennacer has joined #ruby
<workmad3> ah... could be a problem with rbenv and fish at that point then
blackoperat has quit [Ping timeout: 245 seconds]
Mon_Ouie has quit [Quit: WeeChat 1.0.1]
mary5030 has joined #ruby
rbennacer has quit [Remote host closed the connection]
<Moter8> this feels super strange
maximski has joined #ruby
mary5030 has quit [Remote host closed the connection]
shellfu has quit [Client Quit]
<workmad3> Moter8: what does 'which ruby' give you in fish?
shellfu has joined #ruby
ItSANgo has joined #ruby
shazaum has joined #ruby
Mon_Ouie has joined #ruby
<workmad3> Moter8: when it reports 2.1.2
mary5030 has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
gfawcettpq has joined #ruby
shazaum has quit [Changing host]
shazaum has joined #ruby
gfawcettpq1 has quit [Quit: Leaving.]
<Moter8> workmad3, /usr/bin/ruby
<eka> hate haml ... could become an unreadable mess... this legacy code... :P
<workmad3> Moter8: aha, and now we find the cause... that's a system-installed ruby
* eka just ranting
ta_ has joined #ruby
<Moter8> :( oh
<workmad3> Moter8: so somehow fish isn't getting the rbenv shims path at the front of PATH in some circumstances
ta_ has quit [Remote host closed the connection]
<Moter8> so... it's possibly a fish bug?
<workmad3> Moter8: I've never used either fish or rbenv though, so no idea what conflict you could be hitting :/ but at least now you know roughly what's happening :)
phutchins has joined #ruby
<Moter8> okay, thanks for the help :)
<workmad3> Moter8: it could be as simple as rbenv added itself to the PATH in a customisation of .bashrc, and you need to make a similar change in fish's equivalent ;)
lampd1_ has joined #ruby
<workmad3> Moter8: and then when you invoked fish from bash, fish picked up the modified PATH from bash running .bashrc or .bash_profile
ta_ has joined #ruby
<Moter8> Oh, it's probably that
<Moter8> there are some export lines in the .bashrc for rbenv
lampd1 has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
<workmad3> Moter8: aha :)
rbennacer has joined #ruby
allcentury has joined #ruby
amdbcg has quit [Quit: amdbcg]
pdoherty has quit [Remote host closed the connection]
fryguy9 has joined #ruby
n008f4g_ has joined #ruby
BloodyMutt has joined #ruby
antgel has quit [Ping timeout: 246 seconds]
pdoherty has joined #ruby
jusmyth has joined #ruby
cocotton has joined #ruby
omosoj has joined #ruby
larissa has quit [Ping timeout: 252 seconds]
ursooperduper has joined #ruby
blackmesa has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
blackoperat has joined #ruby
cocotton_ has joined #ruby
blackmesa has quit [Client Quit]
n80 has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<omosoj> # symbols are used to signify a method, right?
klmlfl has joined #ruby
lampd1 has joined #ruby
Ankhers has joined #ruby
antgel has joined #ruby
TheNet has quit [Remote host closed the connection]
cocotton has quit [Ping timeout: 255 seconds]
noop has quit [Ping timeout: 245 seconds]
<waxjar> omosoj: they can be used in that way, yeah. but that's not their only use case
lampd1_ has quit [Ping timeout: 244 seconds]
revw has quit [Ping timeout: 240 seconds]
Morkel has quit [Quit: Morkel]
havenwood has joined #ruby
strype has quit [Quit: afk]
<omosoj> waxjar, k, ty
<omosoj> er, what else can they be used for, besides commenting out code?
govg has quit [Quit: leaving]
govg has joined #ruby
andikr has quit [Remote host closed the connection]
<waxjar> omosoj: oh, sorry, i thought you meant Symbols (as in the class). haha
Negron has joined #ruby
<Negron> A4 Who like this game , Dexterity Ball 3D ? https://www.youtube.com/watch?v=7ELS9t3jd8k
<workmad3> omosoj: # is for a comment
<waxjar> they're just comments. people document their classes/methods with comments usually
<omosoj> oops, my bad, i mean the hash symbol, #
BloodyMutt has quit [Remote host closed the connection]
<omosoj> aren't they used to refer to methods too?
<omosoj> is there a shorthand to signify that you're talking about a method?
<workmad3> omosoj: sometimes people use 'Class#method' yes
<workmad3> I tend not to, because I can never remember if # is meant for a class method or an instance method :)
lukaszk has left #ruby ["WeeChat 0.4.2"]
lzco has joined #ruby
dman777_alter has joined #ruby
<workmad3> omosoj: I think you confused waxjar and me because that isn't part of ruby syntax, just a documentation convention in some tools :)
<waxjar> Class#method means the instance method "method" on Class, Class.method / Class::method means the class method "method" on class
larissa has joined #ruby
<omosoj> ah, ty
<workmad3> waxjar: maybe this time I'll remember :)
<dman777_alter> does ruby have a way to tell if a item is a variable or object? like in python there is type()
mikepack has joined #ruby
n80 has quit [Quit: n80]
<waxjar> if you're documenting / talking about an Array, sometimes people write #size to refer to Array#size
ferr has joined #ruby
klmlfl has quit [Remote host closed the connection]
<waxjar> dman777_alter: variables in ruby are references to objects
<workmad3> dman777_alter: there's 'defined?' which will tell you things like if the 'thing' is a local expression, instance variable, undefined, method, etc
<dman777_alter> waxjar: cool...what if I want to see if the reference is to a object or array?
Sawbones has joined #ruby
<workmad3> dman777_alter: otherwise you just use 'foo.class' to find out the class
<workmad3> dman777_alter: arrays are objects
<workmad3> dman777_alter: of class Array
<workmad3> >> [].class
<eval-in> workmad3 => Array (https://eval.in/242288)
<dman777_alter> I thought so...how can I check the difference?
<dman777_alter> oh...olk
<dman777_alter> ok
<dman777_alter> thanks
<workmad3> in the first instance, if you expect an array, treat it like one
<workmad3> (duck-typing)
<waxjar> in general you'd just check to see if an object responds to the methods you need to use
<workmad3> if you absolutely must check for some reason, check .class
<waxjar> or just use them without checking
apurcell has joined #ruby
<dman777_alter> what if bob.class gives me => Elasticsearch::Model::Response::Response? that is a module...
<dman777_alter> but I guess a object
<dman777_alter> ok
<workmad3> >> Module.class
<waxjar> objects! objects everywhere!
<eval-in> workmad3 => Class (https://eval.in/242289)
n80 has joined #ruby
<workmad3> >> Class.is_a?(Object)
<eval-in> workmad3 => true (https://eval.in/242290)
meschi has joined #ruby
blackmesa has joined #ruby
<workmad3> dman777_alter: don't make the common mistake of type-checking everything everywhere in ruby... it leads to painful code :)
Pumukel has joined #ruby
<dman777_alter> With '@devices_with_config = ConfigTextSearch.search params[:device_id]'; puts(@devices_with_config).... I get #<Elasticsearch::Model::Response::Result:0x007fc69798b628>. How would I find out what type it is for iterating through it?
blackmesa has quit [Client Quit]
blackmesa has joined #ruby
lampd1 has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
Negron has quit []
lampd1 has joined #ruby
<waxjar> i'm guessing it has an each method, but check the documentation for that class to be sure :)
apurcell has quit [Ping timeout: 264 seconds]
<dman777_alter> thanks
Sawbones has quit [Remote host closed the connection]
jordanm has joined #ruby
snath has quit [Ping timeout: 252 seconds]
Sawbones has joined #ruby
lampd1_ has joined #ruby
lampd1 has quit [Ping timeout: 245 seconds]
gsd has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
blackmesa has quit [Quit: WeeChat 1.1]
codecop has joined #ruby
red_horned_rihno has quit [Ping timeout: 245 seconds]
rippa has joined #ruby
chrisja has joined #ruby
red_horned_rihno has joined #ruby
n80 has quit [Quit: n80]
sambao21 has joined #ruby
rbennacer has quit [Remote host closed the connection]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
pu22l3r has joined #ruby
arup_r has joined #ruby
blackmesa has joined #ruby
pu22l3r_ has joined #ruby
kaspertidemann has joined #ruby
cocotton_ has quit [Remote host closed the connection]
cocotton has joined #ruby
totic has joined #ruby
revw has joined #ruby
blackoperat has quit [Ping timeout: 272 seconds]
n80 has joined #ruby
Dopagod has quit [Ping timeout: 244 seconds]
dfinninger has joined #ruby
rbennacer has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
Sawbones has quit [Remote host closed the connection]
windowlicker has joined #ruby
bronson has joined #ruby
tanema has joined #ruby
drunken_thor has joined #ruby
lampd1 has joined #ruby
jusmyth has quit [Quit: Leaving.]
lampd1_ has quit [Ping timeout: 256 seconds]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
Sawbones has joined #ruby
tanema has quit [Client Quit]
jaequery has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
P1RATEZ has joined #ruby
apeiros has quit [Remote host closed the connection]
lzco has quit [Remote host closed the connection]
doodlehaus has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
kwd has quit [Quit: kwd]
bal has quit [Quit: bal]
emirozer_ has quit [Quit: Be back later ...]
emirozer_ has joined #ruby
jbzt_ has joined #ruby
jbzt_ has quit [Client Quit]
anaeem1 has joined #ruby
emirozer_ has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
jbzt has quit [Ping timeout: 245 seconds]
emirozer_ has joined #ruby
blackoperat has joined #ruby
n80 has quit [Quit: n80]
jobewan has joined #ruby
mikepack has joined #ruby
lampd1_ has joined #ruby
kl has quit [Ping timeout: 264 seconds]
apeiros has quit [Ping timeout: 272 seconds]
lampd1_ has quit [Remote host closed the connection]
ponga has quit [Quit: Leaving...]
ta_ has quit [Remote host closed the connection]
lampd1 has quit [Ping timeout: 256 seconds]
emirozer_ has quit [Ping timeout: 246 seconds]
vdmo has joined #ruby
sambao21 has joined #ruby
drag00n has left #ruby [#ruby]
kl has joined #ruby
livathinos has quit []
constantlurking has joined #ruby
PanzerModern has joined #ruby
n80 has joined #ruby
<constantlurking> guys i need some help
Sid05 has joined #ruby
<constantlurking> i have a question
<cphrmky> constantlurking ask the question
mengu__ has quit [Remote host closed the connection]
<constantlurking> I'm trying to convert strings into symbols and then push those symbols to an empty array called symbols --> https://eval.in/242370
<constantlurking> i don't get why its not working
lzco has joined #ruby
greenarrow has joined #ruby
antgel has quit [Ping timeout: 264 seconds]
<cphrmky> You have yet to actually ask a question.
<waxjar> constantlurking: to_sym returns a new object, s is still the same string :)
<JDiPierro> constantlurking: You're convering s to a symbol but not storing the result anywhere.
kl has quit [Ping timeout: 265 seconds]
drunken_thor has quit [Quit: leaving]
drunken_thor has joined #ruby
emirozer_ has joined #ruby
lzco has quit [Remote host closed the connection]
<waxjar> constantlurking: a more idiomatic way to do this is to use symbols = strings.map { |s| s.to_sym }
failshell has joined #ruby
<constantlurking> oooooh ok i see
<constantlurking> its for a codecademy course
<constantlurking> how could i do it without using the map method
nrsk has quit [Read error: Connection reset by peer]
drunken_thor has quit [Client Quit]
<j2p2> you're doing it
<j2p2> there's just no output
<waxjar> constantlurking: push the result of to_sym onto the array instead of s
janmuffino has joined #ruby
<atmosx> constantlurking: looks about right to me
<waxjar> (but really, you should be using map)
<havenwood> *should not be interning strings
<j2p2> ah i didn't catch that, yeah
nfk has joined #ruby
<j2p2> should be symbols.push(s.to_sym)
<waxjar> that too havenwood :P
drunken_thor has joined #ruby
tvon has joined #ruby
<gregf_> constantlurking: you can just do symbols = strings.map { |s| s.to_sym }
anarang has quit [Quit: Leaving]
mrj has joined #ruby
Dopagod has joined #ruby
<j2p2> he said without using map
<atmosx> j2p2: yeah, well use each, leave map.
<atmosx> j2p2: your approach works fine
n80 has quit [Quit: n80]
<constantlurking> j2p2: thanks, that worked
dblessing has joined #ruby
<havenwood> strings.each_with_object([]) { |string, array| array << string.intern }
gtrak has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
doodlehaus has joined #ruby
jheg has quit [Quit: jheg]
treehug88 has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vozcelik has joined #ruby
aganov has quit [Quit: Leaving]
AlexRussia has joined #ruby
lmickh has joined #ruby
shruggar has joined #ruby
kl has joined #ruby
<shruggar> Would this be the right channel in which to ask for advice on which modules may be helpful in solving a problem (a problem which may potentially be resolved by the solution "don't write it yourself, just use <prepackaged existing application>"?
<j2p2> yup
antgel has joined #ruby
joonty has quit [Quit: joonty]
<Cat_1> We actually hate questions here
<Cat_1> and hate solving problems, that's why we became programmers
Megtastique has joined #ruby
<drunken_thor> we should write something to answer those questions
<j2p2> being awful... 'cat'ty, over there
reinaldob has quit [Remote host closed the connection]
drkush has quit [Read error: Connection reset by peer]
AFKGeek has quit [Quit: Fades into the shadows]
chrishough has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drkush has joined #ruby
n1lo has joined #ruby
tvon has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
kl has quit [Ping timeout: 245 seconds]
d10n-work has joined #ruby
<shruggar> I would like to create an interactive (command-line) screen for selecting specific lines out of a file. For example, I am okay with having a menu-driven option for selecting files themselves, and when a file is selected, I want to show the file, as one might see in "less", with the added functionality of being able to "pick" lines from the file, in order to pass those lines on to the next stage of the program. I really
<shruggar> don't want to re-implement all of "less", though, so I'm looking for anything which already provides similar functionality, and either does exactly what I want, or which can be easily extended. I ask this in #ruby only because I'm writing the program in ruby so-far
<shruggar> also I'm really bad at formulating concise questions
Sawbones has quit [Remote host closed the connection]
<j2p2> so you want to be able to look at the cat'ed file and pick a line?
<atmosx> shruggar: there's this program called 'vim'. If you add nerdtree (a plugin) I'm sure you get the same functionality.
<j2p2> not programmatically, just looking at it and choosing?
nux443 has joined #ruby
<shruggar> j2p2: in short, yes. I'm trying to provide an interface for manual selection of particular lines
yokel has quit [Remote host closed the connection]
<mostlybadfly> You could display line numbers next to each line and prompt for a number
<mostlybadfly> That would seem fairly easy to implement
yokel has joined #ruby
<j2p2> ^ this is a good idea
<atmosx> hm, seriously I don't think can be done beautifully without ncurses.
_maes_ has joined #ruby
apeiros has joined #ruby
BloodyMutt has joined #ruby
<mostlybadfly> Just file open each line with a number in front and you could even puts "which line do you want "
snath has joined #ruby
<mostlybadfly> It won't ve cute but it is the same functionality
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
C0deMaver1ck has quit [Remote host closed the connection]
enebo has joined #ruby
<mostlybadfly> Be*
dsf has joined #ruby
<shruggar> I assume ncurses would be involved, I'm more thinking "is there anything which already uses ncurses and provides a bit of less-like functionality, and is extensible" basically, a starting point slightly higher than ncurses
<mostlybadfly> The ideal would be to be able to scroll and highlight each line and hit enter on the one you want
omosoj has quit [Ping timeout: 245 seconds]
maximski has quit []
<shruggar> mostlybadfly, that's exactly what I'm trying to get to. I found a program called "iselect" which seems to be closest to what I want, but I haven't been able to find the source code (all links are broken) and has a couple of things on input lines which it interprets, while I would like to take the input "raw"
<atmosx> a nice ncruses blue-black screen alla tmux session with the ability to keep tract of the selected lines, working with arrows and as mostlybadfly said hit 'space' or another predefined key to 'select' lines is what most people will think out of your desc shruggar
<mostlybadfly> Hmmm I'm going to look at ncurses . don't really know about it tbh
<mostlybadfly> This all is making me curious
<atmosx> shruggar: I think once you figure out how to use ncurses, the rest will be fairly easy.
shredding has quit [Quit: shredding]
<shruggar> sounds like ncurses is as prepackaged as I'm going to get
<mostlybadfly> There is a gem or whatever
<atmosx> shruggar: so just start playing around with them.
dorei has joined #ruby
<mostlybadfly> I'm sure it'll come start coming together at least you have the tool and the idea of how it would work
gattie has joined #ruby
gnarf has joined #ruby
guardian has joined #ruby
<dsf> #ruby-lang
<shruggar> really, if I would need to start by implementing less-like functionality, in order to get less-like functionality, I'm just going to go back to my original plan of adding a vim command to talk to my ruby script
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<atmosx> shruggar: note that, Curses was part of stdlib until 2.0, was removed in 2.1
<guardian> hello, what does it do when one write "@x = 1" in irb? I mean using instance variables in a plain script without classes or in irb?
dstarh has joined #ruby
francisfish has quit []
<atmosx> shruggar: IMHO that's easy to implement with vim (or emacs) but you'll have to write a plugin and vimscript is a nightmare.
mrj has quit [Ping timeout: 246 seconds]
sleepee has joined #ruby
<dorei> (n)curces is hell :p
mrj has joined #ruby
davidhq has joined #ruby
<mostlybadfly> It would still be in under the Object class I would assume guardian but not any special functionality tied to a specific class
<mostlybadfly> One that was made I mean
<shruggar> vimscript is a nightmare, but implementing the basics prior to implementing "what I actually want" tends to be worse ;)
stunder has joined #ruby
<guardian> mostlybadfly: and is it poor practice to do so?
<mostlybadfly> If you're just looking at something in irb I don't think it matters , seems excessive unless you're using it elsewhere
joonty has joined #ruby
<guardian> well actually, I'm writing a ruby script to poke with a REST API
<guardian> it doesn't need to be OOP at all, it would be overkill in fact
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pharaoh2 has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
<guardian> also, I'm using raw 'net/https', do you think it's worth using a gem like 'rest-client' ?
sigurding has joined #ruby
<mostlybadfly> I haven't tried that tbh so I'm not sure
CustosL1men has quit [Ping timeout: 264 seconds]
<atmosx> guardian: depends on what you want to do.
CamonZ has joined #ruby
<CamonZ> hi
<atmosx> well hi
<atmosx> dorei: how's life? :-)
lady3bean has joined #ruby
<CamonZ> can I do a symbol to proc inside a class method ?
shime has joined #ruby
Hobogrammer has joined #ruby
<CamonZ> the method I'm calling with symbol_to_proc is another class method
arup_r has quit [Quit: Leaving.]
<guardian> atmosx: a few POSTs
BloodyMutt has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
yfeldblum has joined #ruby
einarj has quit [Remote host closed the connection]
lzco has joined #ruby
lzco has quit [Remote host closed the connection]
lzco has joined #ruby
dsf has quit [Quit: Page closed]
<atmosx> guardian: you can do that using 'net/http' easily I guess.
lemur has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
Spami has joined #ruby
ferr has quit [Ping timeout: 276 seconds]
Sawbones has joined #ruby
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
softaco_s has joined #ruby
yfeldblu_ has joined #ruby
tubuliferous has joined #ruby
softaco_s has left #ruby [#ruby]
spyderma_ has quit [Remote host closed the connection]
wallerdev has joined #ruby
<guardian> is there a way I do a basic auth on the connection instead of each request?
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
n80 has joined #ruby
lzco has quit [Remote host closed the connection]
Trynemjoel has quit [Quit: Quitting]
blackmesa has joined #ruby
joonty has quit [Quit: joonty]
yfeldblum has quit [Ping timeout: 245 seconds]
<atmosx> guardian: hm. Actually I used faraday to consume an API recently, but I guess it's the same logic everywhere: You create an object which contains the login credentials as hash prams and then you create new instances of the object..
jenrzzz has joined #ruby
tobago has quit [Remote host closed the connection]
Sawbones has quit [Ping timeout: 245 seconds]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
brb3 has quit [Quit: ZZZzzz…]
lemur has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
omosoj has joined #ruby
gsd has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
lemur has joined #ruby
cocotton_ has joined #ruby
crazydiamond has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
brb3 has joined #ruby
ta_ has joined #ruby
spider-mario has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
drunken_thor has quit [Quit: leaving]
Trynemjoel has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
greenarrow has quit [Quit: 500]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
spider-mario has quit [Read error: Connection reset by peer]
spider-mario has joined #ruby
spyderman4g63 has joined #ruby
sambao21 has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
cocotton has quit [Ping timeout: 244 seconds]
failshell has quit [Ping timeout: 245 seconds]
jordanm has quit [Ping timeout: 256 seconds]
psy_ has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lemur has quit [Ping timeout: 245 seconds]
spyderman4g63 has joined #ruby
jusmyth has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
allcentury has quit [Ping timeout: 244 seconds]
emirozer_ has quit [Quit: Lingo: www.lingoirc.com]
kaspertidemann has quit []
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
icebourg has joined #ruby
rocco88 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
GaryOak_ has joined #ruby
ptrrr has quit [Quit: ptrrr]
spyderman4g63 has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 272 seconds]
Timgauthier is now known as timgauthier_away
failshell has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
treehug88 has quit [Ping timeout: 276 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
withnale_ has joined #ruby
<withnale_> Silly question.
denym_ has joined #ruby
drunken_thor has joined #ruby
spyderman4g63 has joined #ruby
<withnale_> (1..5).map {|x| something(x) }
spyderman4g63 has quit [Read error: Connection reset by peer]
psyprus has joined #ruby
<withnale_> what is the something that will give me %w(a b c d e) ?
<denym_> Hey there ruby folks. Is there something prettier for string.chars.sort.join?
spyderman4g63 has joined #ruby
kl has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
<guardian> what's the pry debugger en vogue today? still pry-byebug?
<gregf_> CamonZ: class Foo; def foo; puts "Foo!";end;end;class Bar; def self.foo; :foo.to_proc.call(Foo.new);end;end;Bar.foo() ?
spyderman4g63 has quit [Read error: Connection reset by peer]
<gregf_> scrolls to the bottom
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
<JDiPierro> withnale_: [*('a'..'z')][x - 1]
eka has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
<withnale_> Ah. I ended up using (96+x).chr
spyderman4g63 has joined #ruby
<JDiPierro> withnale_: Always more than 1 way to solve a problem :)
spyderman4g63 has quit [Remote host closed the connection]
<atmosx> JDiPierro: wow that was majestic :-)
spyderman4g63 has joined #ruby
timonv has quit [Ping timeout: 244 seconds]
spyderman4g63 has quit [Read error: Connection reset by peer]
<JDiPierro> atmosx: (awthanks) :P
spyderman4g63 has joined #ruby
sigurding has quit [Quit: sigurding]
spyderman4g63 has quit [Remote host closed the connection]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
spyderman4g63 has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
spyderman4g63 has quit [Read error: Connection reset by peer]
kl has quit [Ping timeout: 255 seconds]
spyderman4g63 has joined #ruby
maximski has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
omnipotent1 has joined #ruby
spyderman4g63 has joined #ruby
clumps has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
spyderman4g63 has joined #ruby
diegoviola has joined #ruby
shruggar has quit [Quit: Leaving]
monq has quit [Quit: monq]
spyderman4g63 has quit [Remote host closed the connection]
lolmaus has joined #ruby
spyderman4g63 has joined #ruby
lolmaus has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
spyderman4g63 has quit [Read error: Connection reset by peer]
einarj has joined #ruby
Spami has joined #ruby
clumps has quit [Client Quit]
Sid05 has quit [Ping timeout: 256 seconds]
spyderman4g63 has joined #ruby
Timgauthier has joined #ruby
Spami has quit [Client Quit]
spyderman4g63 has quit [Read error: Connection reset by peer]
metadave has joined #ruby
Sid05 has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
sleepee has quit [Ping timeout: 264 seconds]
soulcake has quit [Quit: Quack.]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
noop has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
garethrees has quit [Ping timeout: 244 seconds]
einarj has quit [Remote host closed the connection]
soulcake has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
djbkd has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 252 seconds]
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
bricker has joined #ruby
spyderman4g63 has joined #ruby
ptrrr has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 276 seconds]
apurcell has joined #ruby
spyderman4g63 has joined #ruby
sambao21 has quit [Ping timeout: 240 seconds]
drunken_thor has quit [Quit: leaving]
ratel has joined #ruby
drunken_thor has joined #ruby
ta_ has joined #ruby
<guardian> so well I see a lot of example ruby scripts where people use instance variables, I don't understand why
michaeldeol has joined #ruby
olivier_bK has quit [Ping timeout: 240 seconds]
<guardian> why '@payload' and not 'payload'
baroquebobcat has quit [Quit: baroquebobcat]
<guardian> is this common?
jaequery has joined #ruby
<canton7> there's no need for that 'post' method either :P
<cHarNe2> i love ruby :)
apurcell has quit [Ping timeout: 255 seconds]
cphrmky has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
crack_user has joined #ruby
shvelo has quit [Read error: Connection reset by peer]
<ratel> what is the best way to install multiple ruby on linux? rvm?
<guardian> canton7: what do you mean?
rbennacer has quit [Remote host closed the connection]
shvelo has joined #ruby
<workmad3> ratel: rvm, rbenv (with ruby-build) or chruby (with ruby-install)
<canton7> guardian, that 'post' method adds nothing - just like the ivars
conniemj has joined #ruby
<workmad3> ratel: each one is different and appeals to different people... personally I prefer chruby & ruby-install
sigurding has joined #ruby
ta_ has quit [Ping timeout: 245 seconds]
n1lo has quit [Quit: Leaving]
<guardian> also, I don't understand the difference between request_post and post from what I can read in the documentation
ndrei has quit [Ping timeout: 240 seconds]
BillSussman has joined #ruby
lzco has joined #ruby
lzco has quit [Remote host closed the connection]
PanzerModern has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
lw_ has joined #ruby
n1lo has joined #ruby
kenneth has joined #ruby
pdoherty has quit [Remote host closed the connection]
treehug88 has joined #ruby
baroquebobcat has joined #ruby
pdoherty has joined #ruby
lolmaus has joined #ruby
oleo is now known as Guest32097
oleo__ has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pharaoh2 has joined #ruby
roolo has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 264 seconds]
roolo has joined #ruby
reinaldob has joined #ruby
Zai00 has quit [Quit: Zai00]
jordanm has joined #ruby
yalue has joined #ruby
Guest32097 has quit [Ping timeout: 245 seconds]
Pharaoh2 has quit [Client Quit]
iamninja has quit [Quit: ZZZzzz…]
Pharaoh2 has joined #ruby
nanoyak has joined #ruby
alex88 has quit [Remote host closed the connection]
thumpba has joined #ruby
allcentury has joined #ruby
arup_r has joined #ruby
jespada has joined #ruby
bronson has joined #ruby
wallerdev has quit [Quit: wallerdev]
mleung has joined #ruby
roolo has quit [Ping timeout: 245 seconds]
jusmyth has quit [Quit: Leaving.]
P1RATEZ has quit []
<apeiros> guardian: they're instance variables because they access them in the method
rbennacer has joined #ruby
<apeiros> but the code is rather bad. should have just not written a method at all and use local variables
<apeiros> or go all the way and write a proper class.
az7ar_away has quit [Remote host closed the connection]
kaspertidemann has joined #ruby
msgodf has quit [Remote host closed the connection]
micah has quit [Ping timeout: 264 seconds]
tubuliferous has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 256 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
ghr has joined #ruby
|\|370 has joined #ruby
ta_ has joined #ruby
Sid05 has quit [Ping timeout: 245 seconds]
JDiPierro has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
micah has joined #ruby
micah has quit [Changing host]
micah has joined #ruby
chthon has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 276 seconds]
Pharaoh2_ has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
Pharaoh2 has quit [Ping timeout: 245 seconds]
<ratel> workmad3: thanks
whoisjake has quit []
<ratel> workmad3: its hard to figure out which is best to use
crack_user has quit [Quit: Leaving.]
lw_ has quit [Quit: s]
FooMunki_ has quit [Read error: No route to host]
nanoyak has joined #ruby
stunder has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 272 seconds]
FooMunki has joined #ruby
chinmay_dd has joined #ruby
<Paradox> stupid gem i made
lw_ has joined #ruby
startupality has quit [Quit: startupality]
jefus_ has joined #ruby
constantlurking has quit [Ping timeout: 246 seconds]
startupality has joined #ruby
Trynemjoel has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
lw_ has quit [Read error: Connection reset by peer]
centrx has joined #ruby
lw_ has joined #ruby
yfeldblum has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
Tricon has joined #ruby
startupality has quit [Client Quit]
yjmsf20 has joined #ruby
<gregf_> Paradox: stupid is a nice name for a gem too ;)
startupality has joined #ruby
<apeiros> aaahahaha, title "What every programmer should know about memory" PDF. "sure, bring it on!" you think. but blam, it clocks in at 114 pages :D
Deele has quit [Ping timeout: 244 seconds]
pietr0 has joined #ruby
chinmay_dd has quit [Client Quit]
startupality has quit [Client Quit]
Treyt22 has quit [Ping timeout: 256 seconds]
<Paradox> lol
yfeldblu_ has quit [Ping timeout: 264 seconds]
jefus has quit [Ping timeout: 264 seconds]
<Moter8> gah, so far ruby is a pain
<apeiros> o0
lzco has joined #ruby
weaksauce has quit [Ping timeout: 264 seconds]
maximski has quit []
<Paradox> Moter8 it gets easier
<Paradox> where are you stuck
lzco has joined #ruby
<GaryOak_> Here we go o_o
<Paradox> before ruby i hated programming, now i live by it (literally)
deric_skibotn has joined #ruby
<Moter8> your meme wont install http://i.imgur.com/OjJP3uw.png
blackmesa has joined #ruby
wallerdev has joined #ruby
dumdedum has quit [Quit: foo]
<apeiros> Moter8: you don't have imagemagick installed
<apeiros> or not in a location where rubygems finds it
workmad3 has quit [Ping timeout: 244 seconds]
<apeiros> and WHY do you paste a pic?
<apeiros> I don't want your lousy 17.3 DPI font :-p
crack_user has joined #ruby
<GaryOak_> hahaha
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Moter8> apeiros, VM
<Paradox> Moter8 what os are you on
* apeiros read *some excuses*
<Moter8> It really has no pretty well to tell me that a gem thing is missing?
<Moter8> way*
LouisRoR1 has quit [Ping timeout: 244 seconds]
<Paradox> it tells you right ther
<apeiros> Moter8: it's a dependency to something outside of rubygem's control
<Paradox> Checking for ImageMagick version >= 6.4.9… ***extconf failed***
<apeiros> so what precisely you have to install varies greatly from platform to platform
ratel has quit [Quit: WeeChat 1.0.1]
<Paradox> that means you need imagemagick
<Paradox> at least
drunken_thor has quit [Quit: leaving]
<apeiros> which in turn makes it rather annoyingly difficult to provide a useful error message
<apeiros> blame package managers and their inability to create some standards for such things.
Sid05 has joined #ruby
lolmaus has joined #ruby
Rollabunna has quit [Remote host closed the connection]
fryguy9 has quit [Quit: Leaving.]
msgodf has joined #ruby
jenrzzz has joined #ruby
lolmaus has quit [Client Quit]
<Moter8> extconf is external config i guess?
Rollabunna has joined #ruby
cphrmky has joined #ruby
<Paradox> yup
rdark has quit [Quit: leaving]
<apeiros> extension config
<Paradox> apeiros why cant everyone just use homebrew
<apeiros> you're installing a native extension
<apeiros> Paradox: homebrew is a hack
<Paradox> a hack that works
<apeiros> starts with monopolizing a global directory to a single user…
<Paradox> so change its config
<Paradox> :p
Sawbones_ has joined #ruby
<apeiros> yes. it's the best out of a turdfest :-{
trampi has quit [Remote host closed the connection]
<apeiros> Paradox: to get all kinds of things break in weird ways because they make idiotic assumptions?
<Paradox> ¯\_(ツ)_/¯
<Paradox> still better than apt-get
<apeiros> I've learned that lesson long ago :-|
<Paradox> pacman aint bad
antgel has quit [Ping timeout: 265 seconds]
<Paradox> its probably my second favorite as an end-user
<apeiros> what's your favorite then?
aclearman037 has quit [Ping timeout: 245 seconds]
<apeiros> I don't deny that homebrew is the way to go with what we have. but I say the current overall situation is just plain and utter suck.
Pharaoh2_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
micah has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby
djbkd has quit [Remote host closed the connection]
micah has joined #ruby
micah has quit [Changing host]
micah has joined #ruby
lolmaus has joined #ruby
allcentury has quit [Ping timeout: 245 seconds]
davedev24_ has quit [Ping timeout: 244 seconds]
drunken_thor has joined #ruby
Tricon has quit [Ping timeout: 245 seconds]
St1gma has quit [Ping timeout: 250 seconds]
alexblom has joined #ruby
davedev24_ has joined #ruby
<yjmsf20> what's the ruby equivalent of scala "val stuff = for (i <- 1 to x) yield new Foo(i)" ?
<yjmsf20> stuff = 1..x do blah end ?
JaMz has joined #ruby
apurcell has joined #ruby
larissa has quit [Ping timeout: 255 seconds]
<centrx> what does that scala do?
<waxjar> i don't know any scala, but i think Array.new(x) { Foo.new(i) } comes close
<centrx> is that like an Anumerator?
<yjmsf20> basically, stuff will now be a Seq/List of Foo
phantasm66 has joined #ruby
lw_ has quit [Quit: s]
lzco has quit [Remote host closed the connection]
<waxjar> eh, let the block take |i|
<yjmsf20> new Foo() can be any block of code, the result of which will fill teh stuff list
Sawbones_ has quit [Remote host closed the connection]
fryguy9 has joined #ruby
<centrx> 1.upto(x).map { |i| Foo.new(i) } will get you an array, but fully evaluated, not lazy
<centrx> similar to the one above
rbennacer has quit [Remote host closed the connection]
<Moter8> "The file '/usr/local/bin/bundle' specified the interpreter '/usr/bin/ruby2.1', which is not an executable command."
<Moter8> ruby really doesnt want me to use it.
BillSussman has quit [Quit: Leaving]
unreal has quit [Ping timeout: 244 seconds]
ascarter has joined #ruby
x77686d has quit [Quit: x77686d]
Sawbones_ has joined #ruby
<yjmsf20> centrx: nice
unreal has joined #ruby
djbkd has joined #ruby
alexblom has quit [Quit: Leaving]
drunken_thor has quit [Quit: leaving]
alexblom has joined #ruby
drunken_thor has joined #ruby
failshell has quit []
red_horned_rihno has quit [Quit: Leaving]
St1gma has joined #ruby
fantazo has joined #ruby
pglombardo has joined #ruby
sigurding has quit [Quit: sigurding]
mrj has quit [Ping timeout: 245 seconds]
alexblom has quit [Quit: This computer has gone to sleep]
mrj has joined #ruby
cocotton_ has quit [Remote host closed the connection]
maximski has joined #ruby
ndrei has joined #ruby
crack_user has quit [Quit: Leaving.]
kirun has joined #ruby
ddd has joined #ruby
Pharaoh2 has joined #ruby
iamninja has joined #ruby
JaMz has quit [Remote host closed the connection]
vozcelik has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
whoisjake has joined #ruby
arup_r has quit [Quit: Leaving.]
bklane has joined #ruby
bluOxigen has joined #ruby
Akuma has joined #ruby
lw_ has joined #ruby
ptrrr has quit [Quit: ptrrr]
jgt has quit [Quit: WeeChat 1.0.1]
<d10n-work> Is there a nice way to get the time taken for an expression to run in one line? I'm stepping through code in a debugger and I can evaluate one-line expressions but I can't add functions
<centrx> d10n-work, check out "Benchmark" ?
GaryOak_ has quit [Remote host closed the connection]
alex88 has joined #ruby
towski_ has joined #ruby
<bradland> Moter8: still fighting your env?
<bradland> You working in a VM now?
larissa has joined #ruby
alex88 has quit [Read error: Connection reset by peer]
lw_ has quit [Quit: s]
alex88 has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
x77686d has joined #ruby
nateberkopec has quit [Quit: Leaving...]
ghr has joined #ruby
rbennacer has joined #ruby
stunder has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rbennacer has quit [Remote host closed the connection]
crack_user has joined #ruby
<bradland> Moter8: if you’re using fish shell, you’ll need this in your fish config: https://gist.github.com/bradland/38a0127361f58748a709
c_nick has joined #ruby
hmsimha has joined #ruby
Akuma has quit [Quit: So long sukkas!]
marr has quit [Ping timeout: 252 seconds]
<c_nick> Any good tutorial on Ruby Reflection
allcentury has joined #ruby
rpag has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
pushpak has joined #ruby
jenrzzz_ has joined #ruby
Kharma has joined #ruby
ta_ has joined #ruby
bradleyprice has quit [Remote host closed the connection]
avahey91 has quit [Quit: Connection closed for inactivity]
<bradland> c_nick: Metaprogramming in Ruby has quite a bit on the topic: http://ruby-metaprogramming.rubylearning.com/html/ruby_metaprogramming_2.html
<bradland> you should also install pry: http://pryrepl.org
jaequery has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaequery has quit [Max SendQ exceeded]
<bradland> pry lets you use shell-like commands to explore your namespace
<bradland> for example, you can `cd String`
gr33n7007h has joined #ruby
<bradland> then `ls`
jaequery has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
cphrmky has quit [Ping timeout: 244 seconds]
<bradland> and pry will list the methods of String
Sawbones_ has quit [Remote host closed the connection]
ghostmoth has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
<c_nick> bradland, hmm is it better than using RubyMine?
jaequery has quit [Client Quit]
<Kharma> Hey all, I am pretty new to Ruby but I am trying to write a script to check if a url is responding via SSLv3. I was looking at the OpenSSL library but it doesn't appear to contain anyway to gather that information. Is there a better library for this?
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
louism2wash has joined #ruby
anaeem1 has quit [Remote host closed the connection]
cocotton has joined #ruby
<bradland> c_nick: pry is like irb. RedMine is an IDE, so they’re not really equivalents
anaeem1 has joined #ruby
<louism2wash> Hey guys, I'm trying to figure out how I would go about testing a script that takes input from $stdin and outputs a value to $stdout. Can anyone point me in the right direction?
anaeem1 has quit [Remote host closed the connection]
ta_ has joined #ruby
withnale_ has quit [Ping timeout: 272 seconds]
rbrs has quit [Remote host closed the connection]
shime_ has joined #ruby
Hijiri has joined #ruby
<bradland> louism2wash: have a look at the Open3 library, which will allow you to provide STDIN and capture STDOUT (as well as STDERR) to external programs.
<Moter8> bradland, hey that seems to work nicely
<Moter8> the fish config thing
<bradland> cool cool
sambao21 has quit [Quit: Computer has gone to sleep.]
<bradland> fish isn’t POSIX compliant, so a lot of the ruby switching utility maintainers don’t give it a lot of love
vozcelik has joined #ruby
<Moter8> but now (well since half an hour ago) I have some bundler issue
<bradland> if you’re going to use it, you have to look carefully at what the utility you’re using is trying to do, then implement the fish equivalent
<Moter8> "The file '/usr/local/bin/bundle' specified the interpreter '/usr/bin/ruby2.1', which is not an executable command."
Deele has joined #ruby
<c_nick> thanks bradland off to world of reading
<Moter8> hmm
bklane has quit [Remote host closed the connection]
banister has joined #ruby
c_nick has quit [Quit: Ex-Chat]
<bradland> the first thing i’d do is attempt whatever you’re doing under bash
<bradland> to see if it works
<bradland> if it does, then the “problem” is fish
maximski has quit []
<Moter8> Same error but in german
<Moter8> Defunkt interpreter: file could not be found
shime has quit [Ping timeout: 245 seconds]
vozcelik has quit [Max SendQ exceeded]
<bradland> can you do `ls -la /usr/local/bin/bundle` ?
<Moter8> I probably have to ln -s the ruby binary from rbenv?
<bradland> you shouldn’t have to
<Moter8> rwxr-xr-x 1 root root etc
<bradland> the key to getting this working is to make sure your environment isn’t mixed between system installed binaries and rbenv managed binaries
<bradland> i use RVM
<bradland> RVM has a command, `rvm info` that outputs everything i need to debug my environment
SHyx0rmZ has quit [Remote host closed the connection]
<bradland> if something is wrong, it shows up there, and i go and fix it
SHyx0rmZ has joined #ruby
<bradland> i don’t know of an equivalent in rbenv, but if someone in the channel does, hopefully they’ll speak up
terlar has quit [Ping timeout: 245 seconds]
pandaant has quit [Quit: Lost terminal]
sambao21 has joined #ruby
pandaant has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
chrishough has joined #ruby
<Moter8> Is there like some #ruby-newbs channel?
diegoviola has joined #ruby
Crazy_Atheist has quit [Ping timeout: 256 seconds]
shime_ has quit [Ping timeout: 240 seconds]
<rpag> Moter8, this is it
pdoherty has quit [Remote host closed the connection]
yjmsf20 has quit [Ping timeout: 256 seconds]
maximski has joined #ruby
pglombardo has quit []
dfinninger has joined #ruby
<Moter8> well, I'm just confused now
<Moter8> why does the software fight me
pdoherty has joined #ruby
<bradland> Moter8: the issues you are having are environment related
jefus_ is now known as jefus
dc has joined #ruby
<bradland> which is to say, the install process for these tools are designed to work in an environment that is relatively striaght forward (not customized heavily)
phantasm66 has quit [Quit: *poof*]
<bradland> once you go outside that mainstream, you have to understand your environment well enough to make the necessary alterations
<bradland> or go back to a more mainstream environment
lolmaus has joined #ruby
Crazy_Atheist has joined #ruby
poetazus has joined #ruby
shazaum has quit [Quit: Leaving]
GaryOak_ has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Grumelo has quit []
<Moter8> bash "fights" me too :(
cvtsx has quit [Read error: Connection reset by peer]
<bradland> it is almost certainly a path issue
baweaver has quit [Remote host closed the connection]
<bradland> if it were RVM, i could help, but i don’t know rbenv.
iMe has quit [Ping timeout: 252 seconds]
zacstewart has joined #ruby
kenneth has joined #ruby
dangerousdave has joined #ruby
rocco88 has quit []
bklane has joined #ruby
last_staff has joined #ruby
iMe has joined #ruby
<havenwood> Moter8: there's also a ##new2ruby channel, but this is a good place as well
cvtsx has joined #ruby
jheg has joined #ruby
antgel has joined #ruby
FooMunki has quit [Quit: FooMunki]
<Moter8> bradland, So I followed again but now I installed rvm. Previously removed the rbenv things I saw before. Installed the recommended wrapper thing for fish. Still getting the bundler issue: https://bpaste.net/show/d05aaede7e2f
<Moter8> havenwood, thanks, I will join there.
bronson has joined #ruby
rbennacer has joined #ruby
<Moter8> err, nevermind. wrong dir.
<apeiros> Moter8: `which bundle`
<apeiros> you seem to have path issues
<apeiros> rvm rubies are usually not suffixed
<Moter8> ~/.rvm/gems/....
<apeiros> and they are not installed in /usr/bin/ either
<havenwood> Moter8: Do you have bundler installed on the Ruby you're wanting to use?: gem install bundler
JaMz has joined #ruby
<apeiros> bundler != bundle
<Moter8> really?
shredding has joined #ruby
<apeiros> the gem name is 'bundler'. the executable is 'bundle'.
<Moter8> D:
<apeiros> really.
<bradland> Moter8: run `gem list`
<bradland> see if bundler is even installed
<Moter8> bundler and bundler give out the same error though?
<bradland> no they don't
<bradland> not based on your paste
rbennacer has quit [Remote host closed the connection]
<Moter8> ... wasnt installed
<bradland> `bundler` says coult not find bundler amongst gems
alexblom has joined #ruby
lw has joined #ruby
<bradland> so, part of the confusion is because you appear to have a system ruby install
<bradland> with the bundler gem installed
<bradland> so, when you run `bundle`, it’s finding it in /usr/local/bin
bronson has quit [Ping timeout: 244 seconds]
<bradland> but that bundler install is not part of RVM, so it breaks
<Moter8> :(
<havenwood> Moter8: printenv PATH
<bradland> it’s ok that it’s there, but you’ll need to remember that you have a system install
<bradland> that’s his rvm info output
<bradland> PATH is included
<bradland> rvm comes first, but he didn’t have bundler installed in his RVM gems
<bradland> so it was falling through to the one installed to /usr/local
<Moter8> /bin:/usr/bin:/usr/local/bin
<havenwood> aye
<Moter8> well how the hell can I remove the system-bundle now=?
kostitas has joined #ruby
<bradland> Moter8: if that’s the output of `printenv PATH`, you haven’t got RVM installed correctly
bronson has joined #ruby
<bradland> did you open a new shell?
<bradland> because your `rvm info` output looks good
<bradland> RVM requires that you add a line to your shell profile
zorak8 has joined #ruby
JaMz has quit [Ping timeout: 256 seconds]
<Moter8> yes
<bradland> so that all new shells will load RVM
drunken_thor has quit [Quit: leaving]
<bradland> yes what
<bradland> yes you opened a new shell?
<bradland> try `rvm info` in the new shell
<Moter8> yes I just reopened it and got the same PATH back
spyderman4g63 has quit [Ping timeout: 245 seconds]
thatslifeson has joined #ruby
<bradland> fish… i have no idea man
drunken_thor has joined #ruby
elaptics is now known as elaptics`away
<bradland> well, the PATH in `rvm info` looks good, but if `printenv PATH` is showing something different, i have no idea what to tell you
<bradland> my `printenv PATH` output matches my `rvm info` output
spyderman4g63 has joined #ruby
spyderma_ has joined #ruby
lw has quit [Ping timeout: 252 seconds]
pushpak has quit [Ping timeout: 264 seconds]
<bradland> try `which bundle`
<bradland> it should be a path under ~/.rvm/
alex88 has quit [Remote host closed the connection]
rpag has quit [Quit: zZz]
tjohnson has joined #ruby
<Moter8> /usr/bin/local/bundle
<Moter8> in bash it's correct
<Moter8> aargg
<bradland> if you’re going to use fish, you’re kind of on your own for making stuff work
leafybasil has quit [Remote host closed the connection]
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
spyderman4g63 has quit [Ping timeout: 245 seconds]
<bradland> this sounds like a recipe for disaster: “Since RVM is a large collection of bash scripts and fish is not bash-compatible, users of fish need a wrapper around RVM to make it work properly with that shell.”
iceden has joined #ruby
anaeem1 has joined #ruby
<bradland> if you really, *really* want to stick with Fish, you could try door number 3.
startupality has joined #ruby
russt has quit [Quit: russt]
larissa has quit [Ping timeout: 240 seconds]
<bradland> ditch RVM and try chruby, for which a third party has provided this: https://github.com/JeanMertz/chruby-fish
chipotle has quit [Quit: cheerio]
<bradland> you could also try inquiring about your fish config over in #rvm
<bradland> they have an actual channel, and are generally pretty helpful
nanoyak has quit [Quit: Computer has gone to sleep.]
bronson has quit [Remote host closed the connection]
thatslifeson has quit [Read error: Connection reset by peer]
<bradland> the RVM guys place a lot of importance on making sure their software works, or at least provides you the info you need to get it working
jobewan has quit [Ping timeout: 245 seconds]
v0n has quit [Ping timeout: 245 seconds]
<ddd> you're using system ruby
larissa has joined #ruby
<ddd> rvm does *no* control over system, in fact it completely removes itself for system
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
<bradland> ddd: he’s having path issues under fish
<bradland> under bash, it works
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Moter8> bradland, yeah I joined that channel and posted already
jaequery has joined #ruby
sheepman has quit [Quit: ZNC - http://znc.in]
ghr has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
Pharaoh2 has joined #ruby
tvw has quit []
bklane has quit [Ping timeout: 246 seconds]
jenrzzz_ has quit [Ping timeout: 244 seconds]
nanoyak has joined #ruby
noop has quit [Ping timeout: 276 seconds]
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
bklane has joined #ruby
jenrzzz has joined #ruby
john3voltas has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
siwica1 has joined #ruby
terlar has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
checkit has joined #ruby
rodfersou has quit [Quit: leaving]
<john3voltas> greetings friendly ruby users. i am trying to use a gem called sanguinews on my arch linux box. the gem installs but then it fails to run with a few error messages. i am not a linux newbie but my linux knowledge is a bit limited so i was wondering if someone could give me a hand in figuring out why this is not working. thanks :) https://github.com/tdobrovolskij/sanguinews/issues/31#issue-54160144
sambao21 has quit [Quit: Computer has gone to sleep.]
adriancb has quit [Remote host closed the connection]
CustosLimen has quit [Ping timeout: 264 seconds]
adriancb has joined #ruby
thatslifeson has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<john3voltas> oops, i forgot to mention that my pc is running ruby 2.2.0 from archlinux repos, such as stated on the github link,
emirozer has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Tricon has joined #ruby
mleung has quit [Quit: mleung]
bluOxigen has quit [Ping timeout: 252 seconds]
<centrx> john3voltas, Do you have the 'bundler' gem installed?
zacstewart has quit [Ping timeout: 245 seconds]
siwica1 has quit [Ping timeout: 276 seconds]
sheepman has joined #ruby
marr has joined #ruby
kl has joined #ruby
sheepman has quit [Client Quit]
<john3voltas> centrx: i don't think so. gotta go check. brb
workmad3 has joined #ruby
CustosLimen has joined #ruby
nuck has quit [Quit: Computer has gone to sleep.]
revw has quit [Ping timeout: 276 seconds]
<john3voltas> centrx: no, not really. bundler is not on the list :(
<bradland> interesting that bundler isn’t a dep for that gem
<john3voltas> worse is my linux box doesn't have internet right now so i can't install it :(
<centrx> that might be the real bug
adriancb has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
<bradland> but it’s not a dep… derp
Mon_Ouie has quit [Read error: Connection reset by peer]
<john3voltas> gotta try connecting through the proxy
lmickh has quit [Ping timeout: 245 seconds]
adriancb has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
<bradland> john3voltas: worst case ontario, you can download the .gem files to whatever box you’re on now and scp them over to the arch box
<john3voltas> bradland: so, they require it but it isn't a dep?
<bradland> yeah, which is probably a mistake
<bradland> i’m commenting in your issue
lmickh has joined #ruby
<john3voltas> oh....never thought of doing that. and where would i upload bundler to?
|\|370 has quit [Ping timeout: 264 seconds]
<ericwood> anyone looking for cool Rails devs like myself in NYC?
sambao21 has joined #ruby
lw has joined #ruby
Crazy_Atheist is now known as Hitchens
nuck has joined #ruby
<bradland> john3voltas: you can put the .gem file anywhere, then exec `gem install --local mygemfile.gem`
<bradland> boy, i wish we were hiring right now, eric
lw has quit [Read error: Connection reset by peer]
<bradland> i’d snag you
<ericwood> woohoo
<ericwood> I have mean bowstaff skills
lw has joined #ruby
<bradland> hrm, well, we were kind of looking for someone with sweet bowstaff skills
<bradland> do you think you can live up to that?
<bradland> ol
<ericwood> well I mean just know that I'll use them to negotiate a higher salary
<john3voltas> bradland: thanks for the tip :)
<ericwood> lots of rails devs out there, but not many with sweet bowstaff skills
thatslifeson has quit [Read error: Connection reset by peer]
danjordan has joined #ruby
x1337807x has joined #ruby
alex88 has joined #ruby
kl has quit [Ping timeout: 246 seconds]
* drunken_thor hangs head because he only has nunchaku skillz
omnipotent1 has left #ruby ["I'm out!"]
ldnunes has quit [Quit: Leaving]
Guest__ has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
zorak8 has quit [Read error: Connection reset by peer]
<bradland> john3voltas: commmented in that GH issue.
kl has joined #ruby
<john3voltas> Thanks :)
<bradland> regarding the headers, most rubygems packages don’t ship binaries
<bradland> so you’ll need the headers to install lots of gems
<bradland> as to why they’re not part of the arch deps for ruby… who knows
v0n has joined #ruby
<bradland> package mantainers perogative, but you’ll definitely want them
<scpike> ericwood: my company (http://www.sevenfifty.com/) is hiring full-time in NYC
thatslifeson has joined #ruby
dotix has joined #ruby
dotix has quit [Changing host]
dotix has joined #ruby
alexblom has quit [Quit: This computer has gone to sleep]
<ericwood> scpike: ooh cool I'll take a look
randiman has joined #ruby
<ddd> probably because the headers are needed for natively compiled gems (Cext) but not for pure ruby gems and the arch maintainers look at that as being an optional requirement. :shrug:
<john3voltas> bradland: then i think i'll head over to #archlinux and ask there too. too bad they're not too keen on ignorants like me :|
<bradland> john3voltas: i’ve solved your problem :)
FooMunki has joined #ruby
<bradland> posting on the issue
<ericwood> scpike: do you have a formal job posting? can't find a link to any on the site
<john3voltas> great :D
AlSquire has quit [Quit: This computer has gone to sleep]
crazydiamond has quit [Remote host closed the connection]
<scpike> ericwood: messaged you, not sure what the etiquette is on advertising jobs in #ruby
giuseppesolinas has joined #ruby
stunder has quit [Quit: Leaving]
ghostmoth has quit [Quit: ghostmoth]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zorak8 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zorak8 has quit [Read error: Connection reset by peer]
terlar has quit [Ping timeout: 272 seconds]
leafybasil has joined #ruby
zacstewart has joined #ruby
alex88 has quit []
blackmesa has joined #ruby
startupality has quit [Quit: startupality]
GaryOak_ has quit [Remote host closed the connection]
einarj has joined #ruby
revw has joined #ruby
thatslifeson has quit [Read error: Connection reset by peer]
startupality has joined #ruby
Hitchens is now known as Crazy_Atheist
startupality has quit [Client Quit]
blaxkhat has joined #ruby
blizzy has joined #ruby
rbennacer has joined #ruby
eam_ is now known as eam
russt has joined #ruby
pwnz0r has joined #ruby
sdornan has joined #ruby
Pharaoh2 has joined #ruby
einarj has quit [Ping timeout: 276 seconds]
ta_ has quit [Ping timeout: 265 seconds]
rbennacer has quit [Remote host closed the connection]
<bradland> so, in summary: 1) all that duplicate key jazz is just a warning (which they should fix anyway), and 2) that bundler dep is dumb and probably doesn’t even need to be there.
<bradland> but installing bundler will solve your problem
jerius_ has joined #ruby
apurcell has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
zorak8 has joined #ruby
lw has quit [Quit: s]
<john3voltas> thanks bradland . i've looked around for a place where to download bundler gem. found this but i don't see a link where i could click to download the gem... :( https://rubygems.org/gems/bundler/versions/1.7.12
benlieb has joined #ruby
jerius has quit [Ping timeout: 264 seconds]
<bradland> john3voltas: on your machine, use `gem fetch bundler`
msgodf has quit [Remote host closed the connection]
<bradland> that will download the .gem file, but will not install it
commmmodo has joined #ruby
<john3voltas> oh...i don't have ruby on this windows machine :(
ascarter has joined #ruby
<bradland> doh!
<bradland> just a sec
shredding has quit [Quit: shredding]
<john3voltas> yeah, i've sounded like homer a lot in the last half hour...
<bradland> john3voltas: let me know after you’ve downloaded: https://dl.dropboxusercontent.com/u/6353242/bundler-1.7.12.gem
Timgauthier is now known as timgauthier_away
wallerdev has joined #ruby
<john3voltas> got it. you may remove it. thanks:)
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jordanm has quit [Ping timeout: 264 seconds]
<bradland> you bet
sambao21 has quit [Quit: Computer has gone to sleep.]
djbkd has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
mleung has joined #ruby
nanoyak has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JaMz- has joined #ruby
kl has quit [Ping timeout: 256 seconds]
postmodern has joined #ruby
zorak8 has quit [Ping timeout: 264 seconds]
JBreit has joined #ruby
kl has joined #ruby
n1lo has quit [Quit: Leaving]
bronson has joined #ruby
crack_user has quit [Quit: Leaving.]
bklane has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
ddd has quit [Quit: reloading screenrc config]
JaMz- has quit [Ping timeout: 265 seconds]
ddd has joined #ruby
DrShoggoth has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Zai00 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nuck has quit [Remote host closed the connection]
reinaldob has joined #ruby
<john3voltas> bradland: thanks a bunch mate :D all is working fine after installing bundler.
terlar has joined #ruby
<bradland> rockin
siwica has joined #ruby
<john3voltas> gotta go now. late for dinner. thanks once again, you saved my day :)
rushed has joined #ruby
jerius_ has quit []
nateberkopec has joined #ruby
<john3voltas> cheers
john3voltas has left #ruby [#ruby]
micah has left #ruby [#ruby]
kenneth has joined #ruby
blizzy has quit [Ping timeout: 245 seconds]
weaksauce has joined #ruby
kostitas has quit [Ping timeout: 264 seconds]
jack_rabbit has joined #ruby
lampd1 has joined #ruby
jasonwebster has joined #ruby
jordanm has joined #ruby
jordanm has quit [Changing host]
jordanm has joined #ruby
reinaldob has quit [Ping timeout: 256 seconds]
x77686d has quit [Quit: x77686d]
timonv has joined #ruby
maximski has quit [Ping timeout: 256 seconds]
GaryOak_ has joined #ruby
xtsee has quit [Quit: Reconnecting]
nanoyak has joined #ruby
xtsee_ has joined #ruby
xtsee_ has quit [Client Quit]
maximski has joined #ruby
drunken_thor has quit [Ping timeout: 255 seconds]
alexblom has joined #ruby
cphrmky has joined #ruby
xtsee has joined #ruby
alexblom has quit [Client Quit]
alexblom has joined #ruby
ta_ has joined #ruby
totic1 has joined #ruby
totic1 has quit [Client Quit]
n80 has quit [Quit: n80]
totic has quit [Ping timeout: 265 seconds]
decoponio has quit [Quit: Leaving...]
pdoherty has quit [Remote host closed the connection]
oleo__ is now known as oleo
louism2wash has quit [Quit: This computer has gone to sleep]
yfeldblum has quit [Remote host closed the connection]
Sid05 has quit [Ping timeout: 240 seconds]
Tricon has quit [Ping timeout: 252 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
ndrei has quit [Ping timeout: 272 seconds]
jerius has joined #ruby
alexblom has quit [Quit: Leaving]
aclearman037 has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
maximski has quit []
Trynemjoel has joined #ruby
baweaver has joined #ruby
JBreit has left #ruby ["Leaving"]
yalue has quit [Read error: Connection reset by peer]
Jackneill has quit [Ping timeout: 244 seconds]
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoviola is now known as resentido
LouisRoR has joined #ruby
<bradland> man, deciphering what the hell Bundler.setup actually does is a real exercise.
wallerdev has quit [Quit: wallerdev]
nanoyak has quit [Quit: Computer has gone to sleep.]
iMe has quit [Ping timeout: 255 seconds]
chrishough has joined #ruby
chrishough has quit [Client Quit]
<bradland> so i kind of want to help the sanguinews guys out by fixing their bundler/gemspec dependency conflict situation.
<bradland> it looks like their gemspec deps are properly separated: https://github.com/tdobrovolskij/sanguinews/blob/master/sanguinews.gemspec
crack_user has joined #ruby
<bradland> however, they have a Gemfile, which doesn’t use the gemspec directive: https://github.com/tdobrovolskij/sanguinews/blob/master/Gemfile
<roqo> Is there a rails channel here?
<bradland> roqo: #rubyonrails
LouisRoR1 has joined #ruby
nanoyak has joined #ruby
allyraza has joined #ruby
<allyraza> hi everyone
<bradland> it looks like the gemfile just needs to go to one line ‘gemspec’, and everything should be golden
roqo has quit [Changing host]
roqo has joined #ruby
jaequery has quit [Ping timeout: 272 seconds]
<roqo> thanks bradland
LouisRoR has quit [Ping timeout: 265 seconds]
iMe has joined #ruby
<allyraza> i have time series data saved in hashes i would like to merge all values in one hash
alexblom has joined #ruby
pdoherty has joined #ruby
djbkd has joined #ruby
<ericwood> give a quick example of the input and desired output
<allyraza> i have done it using loops but i am pretty sure there is 1 liner
<ericwood> I bet we can find a good way to do it using enumerable :)
jaequery has joined #ruby
resentido is now known as diegoviola
<ericwood> but we'll need a quick example of the data first!
JaMz- has joined #ruby
Tricon has joined #ruby
<allyraza> [{date: '11-11-2014', a: 'click'}, {date: '11-11-2014', a: 'hover'}]
fantazo has quit [Quit: Verlassend]
<allyraza> output = [{date: '11-11-2014', a: 'click', b: 'hover'}]
<ericwood> so you want to dedupe the data?
ptrrr has joined #ruby
Trynemjoel has quit [Ping timeout: 272 seconds]
<apeiros> the b: 'hover' is added by what logic?
<ericwood> that output format is kinda funky
Trynemjoel has joined #ruby
<allyraza> I have system that generates hashes in that format
<apeiros> looks like either a broken example or magical transformation
* apeiros assumes the former
<allyraza> exactly
jheg has quit [Quit: jheg]
<allyraza> I need to group all events by date
maletor has joined #ruby
<allyraza> into one hash
<ericwood> ahhhhhh
<allyraza> as you can see the date is same but 2 diff events
baweaver has quit [Remote host closed the connection]
diegoviola is now known as resentido
<allyraza> I have done it using normal each with some local variables
<ericwood> maybe it'd be better to have [{date: 'foo', options: ['click', 'hover']}]
rkalfane has joined #ruby
bronson has quit [Remote host closed the connection]
cantonic has quit [Read error: Connection reset by peer]
<allyraza> I also need to preserve the keys
cantonic has joined #ruby
<allyraza> [{date: '11-11-2014', a: 'click', b: 'hover'}]
<ericwood> but all of them have 'a'
larissa has quit [Quit: Leaving]
<allyraza> [{date: '11-11-2014', menutop: 'click', menubottom: 'hover'}]
<ericwood> so the attrs are going to be unique?
<allyraza> eric yes
<allyraza> ericwood: yes
<ericwood> okay that makes more sense
nanoyak has quit [Quit: Computer has gone to sleep.]
<allyraza> is there one liner for that?
crack_user has quit [Quit: Leaving.]
<ericwood> hmmm not a simple one
baroquebobcat has quit [Quit: baroquebobcat]
<Moter8> I'm pretty sure http://i.imgur.com/EjvgJak.png makes no sense, right?
<Moter8> (from a .rubocop.yml)
shredding has joined #ruby
kostitas has joined #ruby
kostitas has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
kaareltinn has joined #ruby
ta_ has quit [Read error: Connection timed out]
avahey91 has joined #ruby
kaareltinn has left #ruby [#ruby]
jmcharnes has quit [Quit: Textual IRC Client: www.textualapp.com]
<ericwood> allyraza: I think I'm close
<allyraza> cool
<allyraza> I also have an idea
<allyraza> but not sure if it will work
JimmyNeutron has quit [Read error: Connection reset by peer]
bronson has joined #ruby
ghostmoth has joined #ruby
<bradland> Moter8: you mean tot tell us 79 != 180 :)
elaptics`away is now known as elaptics
LouisRoR1 has quit [Ping timeout: 264 seconds]
nanoyak has joined #ruby
lamasnik has quit [Ping timeout: 256 seconds]
LouisRoR1 has joined #ruby
<ericwood> allyraza: you might find chunk useful
<ericwood> foo.chunk { |i| i[:date] }.to_a
<allyraza> this actually useful
<allyraza> thanks
<ericwood> yeah I can't spend too much time on this but that at least splits it up by date
<workmad3> bradland: can you find 2 bases where 79 does equal 180? ;)
<allyraza> ericwood: no worries thank you
<bradland> workmad3: 42?
<bradland> i feel like this was a thing on HN the other day
blaxkhat has quit [Ping timeout: 276 seconds]
<workmad3> bradland: well, 79 in base 42 seems to be something like 303 in decimal...
vdmo has quit [Ping timeout: 245 seconds]
Techguy305 has joined #ruby
Lingo______ has joined #ruby
terlar has quit [Ping timeout: 245 seconds]
<allyraza> ericwood: events.chunk { |i| i[:date] }.map { |h| h[1].reduce(&:merge) }
<allyraza> thanks by I finally got it
<bradland> workmad3: damn, you, I was making such good progress on my PR for sanguinews… now I’m digging through Fixnum… :P
<ericwood> booyah!
bklane has joined #ruby
thatslifeson has joined #ruby
elaptics is now known as elaptics`away
commmmodo has quit [Ping timeout: 264 seconds]
shime has joined #ruby
alexblom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacstewart has quit [Ping timeout: 264 seconds]
commmmodo has joined #ruby
roolo has joined #ruby
cocotton has quit [Remote host closed the connection]
michaeldeol has joined #ruby
<workmad3> bradland: you could always work it out on paper... you just need to solve for the equation - '7 * x + 9 = y^2 + 8 * y'
kl has quit [Ping timeout: 255 seconds]
<bradland> what is this “paper” you speak of?
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3> :)
<bradland> workmad3: (2..36).map { |i| [i,79.to_s(i)] }
<bradland> >> (2..36).map { |i| [i,79.to_s(i)] }
<eval-in> bradland => [[2, "1001111"], [3, "2221"], [4, "1033"], [5, "304"], [6, "211"], [7, "142"], [8, "117"], [9, "87"], [10, "79"], [11, "72"], [12, "67"], [13, "61"], [14, "59"], [15, "54"], [16, "4f"], [17, "4b"], [18 ... (https://eval.in/242465)
toertore has joined #ruby
bklane has quit [Ping timeout: 252 seconds]
shellfu is now known as shellfu_food
baweaver has quit [Remote host closed the connection]
JimmyNeutron has joined #ruby
roolo has quit [Ping timeout: 252 seconds]
toretore has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
chrishough has joined #ruby
benlieb has quit [Quit: benlieb]
cocotton has joined #ruby
jenrzzz has joined #ruby
allyraza has quit []
C1V0 has joined #ruby
kl has joined #ruby
<workmad3> bradland: doesn't look like there is one in bases 2-36 ;)
<bradland> newp
<workmad3> bradland: so I'll just leave you to figure out how to solve that 2-value equation :)
<workmad3> (I'd suggest graphing it...)
workmad3 is now known as wm3|away
sdornan has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby
drunken_thor has joined #ruby
<Moter8> bradland, well, the stackexchange devs did that, not me :P
<Moter8> (discourse/onebox)
pu22l3r_ has quit [Ping timeout: 246 seconds]
larissa has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
echevemaster has joined #ruby
Hijiri has quit [Ping timeout: 264 seconds]
iMe has quit [Ping timeout: 265 seconds]
BLuEGoD has joined #ruby
iMe has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
DadoCe has joined #ruby
evanjs has quit [Remote host closed the connection]
siwica has quit [Ping timeout: 245 seconds]
bklane has joined #ruby
x77686d has joined #ruby
blackoperat has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
zorak8 has joined #ruby
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
thatslifeson_ has joined #ruby
ta_ has joined #ruby
lamasnik has joined #ruby
deric_skibotn has quit [Ping timeout: 244 seconds]
_maes_ has quit [Ping timeout: 276 seconds]
DadoCe has quit [Ping timeout: 255 seconds]
whoisjake has quit []
delianides has quit [Remote host closed the connection]
nobitanobi has joined #ruby
Megtastique has quit [Remote host closed the connection]
dman777_alter has quit [Quit: Lost terminal]
Megtastique has joined #ruby
thatslifeson has quit [Ping timeout: 256 seconds]
elfuego has quit [Quit: elfuego]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aclearman037 has quit [Quit: I'm out!]
crack_user has joined #ruby
Dopagod has quit [Ping timeout: 276 seconds]
<Rylee> is there any reason that the Ruby JSON.parse throws a ParserError if you feed it a top-level string?
yvemath has joined #ruby
larissa has quit [Ping timeout: 252 seconds]
<arrubin> What is a "top-level string"?
benlieb has joined #ruby
<eam> Rylee: do you mean a string not enclosed in a hash or array? {} or [] ?
ptrrr has quit [Quit: ptrrr]
<eam> it's because the json spec requires an enclosing array or hash
Crazy_Atheist has quit [Ping timeout: 265 seconds]
zorak8 has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
LBRapid has quit [Ping timeout: 244 seconds]
g-nom3 has left #ruby [#ruby]
Photism has joined #ruby
peterhu has quit [Ping timeout: 245 seconds]
shellfu_food is now known as shellfu
wmoxam has quit [Ping timeout: 240 seconds]
<Rylee> not according to rfc7158
<Rylee> but sure, if we're still on 4627 i guess
XxionxX has joined #ruby
wang has quit [Ping timeout: 256 seconds]
peterhu has joined #ruby
siwica has joined #ruby
LBRapid has joined #ruby
it0a has quit [Quit: WeeChat 1.1]
athan has quit [Read error: Connection reset by peer]
wmoxam has joined #ruby
wang has joined #ruby
conniemj has quit [Quit: (null)]
baroquebobcat has joined #ruby
claw__ has quit [Ping timeout: 244 seconds]
claw__ has joined #ruby
drunken_thor has quit [Quit: leaving]
Ankhers has quit [Ping timeout: 250 seconds]
timanema has joined #ruby
fella6s has quit [Ping timeout: 264 seconds]
Crazy_Atheist has joined #ruby
pglombardo has joined #ruby
codecop has quit [Remote host closed the connection]
conniemj has joined #ruby
conniemj has quit [Client Quit]
conniemj has joined #ruby
last_staff has quit [Quit: last_staff]
spyderma_ has quit [Ping timeout: 255 seconds]
Sid05 has joined #ruby
bklane has quit [Remote host closed the connection]
wang has quit [Ping timeout: 264 seconds]
anaeem1 has quit [Remote host closed the connection]
larissa has joined #ruby
JaMz_ has joined #ruby
wang has joined #ruby
pdoherty_ has joined #ruby
anaeem1_ has joined #ruby
timanema has quit [Quit: leaving]
nfk has quit [Quit: yawn]
anaeem1_ has quit [Remote host closed the connection]
bklane has joined #ruby
timanema has joined #ruby
JaMz- has quit [Read error: Connection reset by peer]
Hijiri has joined #ruby
pdoherty has quit [Read error: Connection reset by peer]
omosoj has quit [Ping timeout: 264 seconds]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
crack_user1 has joined #ruby
duncannz has joined #ruby
denym_ is now known as denym_OFF
wmoxam has quit [Ping timeout: 256 seconds]
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
ta_ has quit [Ping timeout: 276 seconds]
conniemj has quit [Quit: (null)]
wmoxam has joined #ruby
crack_user has quit [Ping timeout: 265 seconds]
Deele has quit [Ping timeout: 244 seconds]
conniemj has joined #ruby
Crazy_Atheist has joined #ruby
crack_user1 has quit [Client Quit]
deric_skibotn has joined #ruby
conniemj has quit [Client Quit]
beef-wellington has quit [Ping timeout: 255 seconds]
pandaant has quit [Ping timeout: 245 seconds]
brb3 has quit [Quit: <.<]
conniemj has joined #ruby
JDiPierro has quit [Remote host closed the connection]
jerius has quit []
shredding has quit [Quit: shredding]
TheNumb has quit [Ping timeout: 264 seconds]
cphrmky has quit [Read error: Connection reset by peer]
allcentury has quit [Ping timeout: 245 seconds]
swistak35 has quit [Ping timeout: 240 seconds]
bklane has quit []
bklane has joined #ruby
emirozer has quit [Quit: Lingo: www.lingoirc.com]
terlar has joined #ruby
nateberkopec has quit [Quit: Leaving...]
crack_user has joined #ruby
ta_ has joined #ruby
conniemj has quit [Ping timeout: 245 seconds]
benlieb has quit [Read error: Connection reset by peer]
jmurray has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
jmurray has quit [Client Quit]
nanoyak has quit [Quit: Computer has gone to sleep.]
jaequery has quit [Read error: Connection reset by peer]
pandaant has joined #ruby
jobewan has joined #ruby
Lingo______ has quit [Quit: (null)]
blackoperat has joined #ruby
XxionxX has quit [Quit: Leaving.]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
pwnz0r has quit [Remote host closed the connection]
jaequery has joined #ruby
giuseppesolinas has left #ruby ["Leaving"]
cphrmky has joined #ruby
nanoyak has joined #ruby
Guest__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adriancb has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 276 seconds]
doodlehaus has quit [Remote host closed the connection]
randiman has quit [Quit: (null)]
siwica has quit [Ping timeout: 264 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
wm3|away has quit [Ping timeout: 265 seconds]
cocotton has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby
shvelo has quit [Ping timeout: 252 seconds]
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
Sid05 has quit [Ping timeout: 256 seconds]
rushed has quit [Quit: rushed]
DrShoggoth has quit [Quit: Leaving]
baweaver has joined #ruby
DrShoggoth has joined #ruby
Pupeno has quit [Remote host closed the connection]
Deele has joined #ruby
max96at is now known as max96at|off
DrShoggoth has quit [Remote host closed the connection]
Hijiri has quit [Ping timeout: 264 seconds]
kenneth has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
rbennacer has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
rbennacer has joined #ruby
Lingo___ has joined #ruby
leafybasil has quit [Ping timeout: 245 seconds]
crack_user has quit [Quit: Leaving.]
djbkd has joined #ruby
juanca99 has joined #ruby
mrmargolis has quit [Remote host closed the connection]
fryguy9 has quit [Quit: Leaving.]
<juanca99> Hi, was wondering if someone knew what this line means... i've been searching and i'm not sure
<juanca99> stdout.slice!(0..-(1 + $/.size))
<juanca99> i'm not sure about the sure about the "$/"
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> juanca99: $/ is the input record separator
<eam> usually it's \n
treehug88 has quit []
<jhass> is that a convoluted .chomp?
<eam> appears that way
DrCode has quit [Remote host closed the connection]
elfuego has joined #ruby
JimmyNeutron has quit [Quit: Leaving]
rakm has joined #ruby
<apeiros> more like chop than chomp
<apeiros> with ! even
AlexRussia has quit [Ping timeout: 244 seconds]
<rakm> how do I execute a script and have stdout stream while the script is running?
<jhass> in effect yes, I'm more wondering about intention though
<rakm> backticks wait for the proces to finish before I get the output
<apeiros> rakm: you'll need popen, spawn or similar
<eam> rakm: system() will allow the subprocess to print directly to your stdout/err
<apeiros> right, or ^
<rakm> ah cool, trying
<rakm> success
<rakm> thanks eam
iMe has quit [Ping timeout: 244 seconds]
aoeu has joined #ruby
<juanca99> thanks guys
jenrzzz has quit [Ping timeout: 265 seconds]
XxionxX has joined #ruby
AlexRussia has joined #ruby
ta_ has joined #ruby
Pupeno has quit [Remote host closed the connection]
jasonwebster has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
iMe has joined #ruby
DrCode has joined #ruby
mikepack has quit [Remote host closed the connection]
shvelo has joined #ruby
wallerdev has quit [Quit: wallerdev]
lmickh has quit [Remote host closed the connection]
pluto854 has joined #ruby
jenrzzz has joined #ruby
cphrmky has quit [Quit: Textual IRC Client: www.textualapp.com]
nobitanobi has quit []
ta_ has quit [Ping timeout: 276 seconds]
<apeiros> so, tiny orm can now properly roundtrip over json
<apeiros> next step: js model generation and data synchronization
JimmyNeutron has joined #ruby
pu22l3r has joined #ruby
conniemj has joined #ruby
ta_ has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
apeiros has quit [Remote host closed the connection]
terlar has quit [Ping timeout: 256 seconds]
<conniemj> Hello all, I am a beginner at Ruby and I am trying to make a dashboard as a first project to learning the language. Can anyone give me any good references on how to edit and create your own widgets, please?
apeiros has joined #ruby
Eiam_ is now known as Eiam
kirun has quit [Quit: Client exiting]
ta_ has quit [Ping timeout: 245 seconds]
St_Marx has quit [Remote host closed the connection]
rbennace_ has joined #ruby
ishikawa has quit [Remote host closed the connection]
St_Marx has joined #ruby
ishikawa has joined #ruby
Hijiri has joined #ruby
<bradland> conniemj: “dashboard” and “widgets” are two broad terms that don’t really have canonical definitions in Ruby that I’m aware of.
<bradland> when you say dashboard, what kind of dashboard? an OS X dashboard widget?
diego_ar has joined #ruby
<bradland> those are actually HTML and javascript
Guest__ has joined #ruby
LouisRoR1 has quit [Ping timeout: 265 seconds]
enebo has quit [Quit: enebo]
Ridley5 has quit []
scripore has joined #ruby
rbennacer has quit [Ping timeout: 245 seconds]
reinaldob has joined #ruby
^wald0 has joined #ruby
rbennace_ has quit [Ping timeout: 246 seconds]
<conniemj> bradland: yes, an OS X dashboard widget
DadoCe has joined #ruby
<bradland> conniemj: ok, those are built using HTML and Javascript.
kenneth has joined #ruby
pu22l3r has quit [Remote host closed the connection]
maximski has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
<conniemj> bradland: Yes, I realize that, but it uses the Ruby framework does it not?
<conniemj> bradland: Thanks for the link!
<bradland> not that i’m aware of
JaMz_ has quit []
ta_ has joined #ruby
pu22l3r has joined #ruby
UberGM has joined #ruby
antgel has quit [Ping timeout: 272 seconds]
Aswebb_ has quit [Remote host closed the connection]
<bradland> conniemj: It’s possible that you might have seen a Dashboard Widget tutorial where the Widget made requests to a web service running Ruby. That’s about all I can think of.
Aswebb__ has joined #ruby
Aswebb__ has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
pdoherty_ has quit [Remote host closed the connection]
veduardo has joined #ruby
ta_ has quit [Ping timeout: 245 seconds]
dotix has quit [Quit: Leaving]
snath has quit [Ping timeout: 245 seconds]
dseitz has joined #ruby
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
windowlicker has quit [Quit: Lost terminal]
Trynemjoel has quit [Ping timeout: 256 seconds]
startupality has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
Guest__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
npgm has joined #ruby
agrinb has joined #ruby
govg has quit [Ping timeout: 255 seconds]
ghostmoth has quit [Quit: ghostmoth]
Trynemjoel has joined #ruby
djbkd has joined #ruby
jobewan has quit [Quit: Leaving]
SparkMasterTape has joined #ruby
CrazyM4n has joined #ruby
<CrazyM4n> Okay, I know this is a terrible idea and I should never do this in real code
ta_ has joined #ruby
<CrazyM4n> But is it possible to redefine "="?
<CrazyM4n> Er, not the string, the actual = operator
<terrellt> CrazyM4n: = isn't an operator, it's the suffix of a method.
<CrazyM4n> Oh?
<terrellt> CrazyM4n: Unless you mean like, def yo; b = c; end;
_ixti_ has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Remote host closed the connection]
<CrazyM4n> Yeah, I actually mean variable assignment
wallerdev has joined #ruby
pluto854 has left #ruby ["Leaving"]
Guest__ has joined #ruby
kl has quit [Ping timeout: 264 seconds]
mary5030_ has joined #ruby
Guest__ has quit [Client Quit]
revw has quit [Ping timeout: 245 seconds]
<CrazyM4n> (The reason why I wanted to know if you could redefine = was because I read http://aurelien-herve.com/blog/2014/02/27/some-cool-functional-programming-with-ruby/ and was thinking that there was a way to make = automatically put the right side into a lambda)
<CrazyM4n> Sure, it's pointless, but that'd be kinda cool
Limix has joined #ruby
chrishough has joined #ruby
veduardo has quit [Quit: WeeChat 0.4.2]
baweaver has quit [Remote host closed the connection]
bklane has quit [Ping timeout: 256 seconds]
ta_ has quit [Ping timeout: 245 seconds]
mary5030 has quit [Ping timeout: 245 seconds]
kaspertidemann has quit []
Zai00 has quit [Quit: Zai00]
veduardo has joined #ruby
bklane has joined #ruby
UberGM has quit [Ping timeout: 255 seconds]
athan has joined #ruby
Hijiri has quit [Ping timeout: 276 seconds]
<bricker> CrazyM4n: no, you can't redefine that, as it's not a method.
jasonwebster has joined #ruby
<bradland> CrazyM4n: do you mean so that `square = -> x { x*x }` could be written `square = x { x*x }`?
davedev2_ has joined #ruby
alexblom has joined #ruby
<CrazyM4n> bradland: Yes, that was what I was thinking
davedev24_ has quit [Ping timeout: 255 seconds]
<bradland> and what would you use for assignment if you did that?
<CrazyM4n> Nothing
<bradland> eponymous, you are :)
blackmesa has quit [Quit: WeeChat 1.1]
_ixti_ has joined #ruby
<CrazyM4n> Well, I thought it'd be fun :P
<CrazyM4n> I wouldn't need variable assignment if I was doing that anyway
reinaldob has quit [Remote host closed the connection]
spyderman4g63 has quit [Read error: Connection reset by peer]
gattie has quit [Quit: Leaving...]
djbkd has quit [Remote host closed the connection]
<rakm> anyone familiar with the mysql2 gem?
<rakm> i'm tring to do inserts, but failing to insert a NULL value
<bradland> rakm: are you using an ORM, or mysql2 directly?
<rakm> mysql2 directly