<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
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
<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?
<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…]
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>
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]
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
<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]
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.
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
<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]
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]
<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>
"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
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
<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
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…]
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>
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?
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]
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?
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]
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]
<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: 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]
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
<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
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]
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)
<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]
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
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.
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 :(
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]
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...
<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?
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