apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
alvaro_o has joined #ruby
stupidystupid has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bira has quit [Remote host closed the connection]
mway has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
mehlah has quit [Quit: Leaving...]
alvaro_o has quit [Read error: Connection reset by peer]
jarray52 has joined #ruby
greggroth has joined #ruby
Tomasso has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
f0ster has quit [Remote host closed the connection]
snath has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
nateberkopec has quit [Quit: Leaving...]
maximski has quit []
x77686d has quit [Quit: x77686d]
alvaro_o has joined #ruby
dstynchula has quit []
centrx has joined #ruby
pskosinski has quit [Remote host closed the connection]
centrx has quit [Remote host closed the connection]
greggroth has quit [Ping timeout: 252 seconds]
mary5030 has quit [Ping timeout: 264 seconds]
b00stfr3ak has quit [Ping timeout: 268 seconds]
The_NetZ has joined #ruby
<The_NetZ> what do I need to have to extconf.rb/make a gem on windows?
dik_dak has quit [Quit: Leaving]
jpstokes has joined #ruby
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
karmatr0n has quit [Remote host closed the connection]
<jpstokes> I'm working on a stand-alone ruby project...when I run rspec it pulls information from my dev db. How do have it pull from a test db...btw, I've also got FactoryGirl setup
dapz has joined #ruby
Bira has joined #ruby
sailias has joined #ruby
Soliah has joined #ruby
mehlah has joined #ruby
mway has quit [Quit: mway]
<jpstokes> I'm working on a stand-alone ruby project...when I run rspec it pulls information from my dev db. How do have it pull from a test db...btw, I've also got FactoryGirl setup
saarinen has joined #ruby
jorts has joined #ruby
m4n1f3st0 has quit []
davy has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 252 seconds]
nfk has quit [Quit: yawn]
dayepa has joined #ruby
dayepa has quit [Client Quit]
m4n1f3st0 has joined #ruby
raja has joined #ruby
necrotic_ has joined #ruby
raja has quit [Max SendQ exceeded]
necrotic_ has quit [Remote host closed the connection]
jorts has quit [Quit: jorts]
<shinobi_one> jpstokes: did you tell it to pull data from your dev db?
asteros has quit [Quit: asteros]
lolmaus_ has quit [Read error: Operation timed out]
x77686d has joined #ruby
noob101 has joined #ruby
<noob101> hello
julian-delphiki has joined #ruby
pel_daniel has left #ruby [#ruby]
<shinobi_one> hola
teddyp1cker has joined #ruby
MatthewsFace has joined #ruby
nateberkopec has joined #ruby
asteros has joined #ruby
sdouglas has quit [Remote host closed the connection]
pskosinski has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
sdouglas has joined #ruby
MatthewsFace has quit [Client Quit]
bean__ has quit [Ping timeout: 264 seconds]
slawrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
testcore has quit [Quit: BitchX: use it, it makes you bulletproof]
rafaelmagu has joined #ruby
userx has joined #ruby
armyriad has joined #ruby
bean__ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
eynj has joined #ruby
saarinen has quit [Quit: saarinen]
teddyp1cker has quit [Ping timeout: 264 seconds]
snath has joined #ruby
funktor has quit [Remote host closed the connection]
rylev has joined #ruby
benzrf has joined #ruby
funktor has joined #ruby
danshultz has joined #ruby
x77686d has quit [Quit: x77686d]
julian-delphiki has quit [Ping timeout: 268 seconds]
oo_ has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
kitak has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 268 seconds]
funktor has quit [Read error: Connection reset by peer]
funktor_ has joined #ruby
<shevy> it kinda sucks to google for prawn colours
rylev has quit [Ping timeout: 240 seconds]
<shevy> and get presented the colours of some crabs
<shinobi_one> hm..
timonv has joined #ruby
<shinobi_one> that?s not what i get lol
<shinobi_one> excellent location for a question mark
BuSerD has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
slawrence has joined #ruby
sailias has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
ruby755 has joined #ruby
m4n1f3st0 has quit []
<ruby755> Does anyone know if you can return multiple variables at once with Ruby?
duggiefresh has quit [Remote host closed the connection]
<benzrf> ruby755: you mean multiple values?
timonv has quit [Ping timeout: 240 seconds]
duggiefresh has joined #ruby
Guest56776 is now known as ponbiki
olivier_bK has quit [Ping timeout: 246 seconds]
duggiefr_ has joined #ruby
<agent_white> ruby755: def num(x); return x, x+1; end;
taf2 has quit [Quit: taf2]
yfeldblum has joined #ruby
mgomezch has joined #ruby
pskosinski_ has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
<shinobi_one> i think he?s asking if you can return multiple objects
<shinobi_one> >> puts "quotes fixed?"
<eval-in> shinobi_one => quotes fixed? ... (https://eval.in/129970)
<shinobi_one> interesting
duggiefresh has quit [Ping timeout: 268 seconds]
<shinobi_one> osx ftl i guess
subbyyy_ has quit [Ping timeout: 240 seconds]
jorts has joined #ruby
m4n1f3st0 has joined #ruby
ruby755 has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Remote host closed the connection]
whatasunnyday has quit [Quit: whatasunnyday]
<shevy> lol
yfeldblum has quit [Ping timeout: 255 seconds]
pskosinski has quit [Ping timeout: 265 seconds]
simono has joined #ruby
<shinobi_one> had some smart quotes thing turned on adjusting my quotes "smarter"
taf2 has joined #ruby
papercode has quit [Quit: WeeChat 0.4.4-dev]
Xiti` has joined #ruby
<shevy> are you finally happy shinobi_one :P
trhodes_ has quit [Ping timeout: 255 seconds]
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
evenix has joined #ruby
Robert__ has joined #ruby
Robert__ has joined #ruby
<shinobi_one> >> puts "I am."
<eval-in> shinobi_one => I am. ... (https://eval.in/129971)
oneawayman has quit [Ping timeout: 268 seconds]
aspires has quit []
evenix has quit [Remote host closed the connection]
GNUUU has quit [Quit: Saindo]
BuSerD has joined #ruby
whatasunnyday has joined #ruby
<shevy> wow
<shevy> have you guys known of http://runnable.com before?
nanoyak has quit [Quit: Computer has gone to sleep.]
<shevy> I googled it just now and there is an example of prawn
<shevy> pdf.start_new_page
agent_white has quit [Quit: brb]
<shevy> pdf.image filename, :width => 150
<shevy> \o/
Xiti has quit [Ping timeout: 268 seconds]
trhodes_ has joined #ruby
robert_ has quit [Ping timeout: 265 seconds]
<shinobi_one> shevy: no, but it looks cool
<shevy> the idea is kinda cool
<shevy> imagine if all gists would be easily (or optionally) editable by others
endash__ has joined #ruby
endash_ has quit [Read error: No route to host]
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
maximski has joined #ruby
lolmaus has joined #ruby
nahkunt has joined #ruby
fgo has joined #ruby
toastynerd has joined #ruby
waza has quit [Quit: Leaving]
kitak has joined #ruby
<nahkunt> hi i want to learn ruby. i am a linux user for about 8 years, know a little bit about bash and sed and things and have sometimes edited bits of other people's C code... basically i'm a non-programmer but not clueless either.
<shinobi_one> nahkunt: so go off and learn ruby then ;)
<nahkunt> what resources should i use?
toastynerd has quit [Remote host closed the connection]
<shevy> nahkunt the irc channel here
<shevy> nahkunt create a new file, give it an .rb end
<shevy> inside, write: class Cat; end
<nahkunt> well yes, but can you recommend any books or interactive thingies that sound like they fit my level?
<nahkunt> ok :)
<shevy> the pickaxe is ok if you want a general overview + explanation of the stdlib
<circuit> nahkunt: try www.codeacademy.com
<shevy> there is also chris pine tutorial
<shinobi_one> nahkunt: for interactive stuff, rubykoans is decent, rubymonk is decent
<shevy> and the ruby koans
<shevy> nahkunt but the best way to learn ruby is to really just dive in and start writing code, you'll pick up the things you need. You can also look at the three core classes, the most important ones
<shevy> class String calss Array class Hash
peta_ has quit [Quit: peta_]
<shinobi_one> shevy: he's not a programmer he said.
<shevy> my friends are non programmers
oo_ has joined #ruby
<shevy> and windows users
<shevy> so he uses linux for 8 years, I am sorry, he is no longer a non-programmer
<shinobi_one> wat
<shevy> nahkunt did you write that .rb file yet? the next line comes soon
<nahkunt> shevy: yep
jamto11 has quit []
<nahkunt> echo "class Cat; end" > 1.rb
<nahkunt> now what?
<shevy> nahkunt ok, well I dont think this is your editor, but alright ;)
<shinobi_one> lol
<shevy> nahkunt ok you just wrote your first class in ruby \o/
RowdyChildren is now known as RowdyChild|Away
<shevy> always remember this moment
<shinobi_one> /kill
<nahkunt> :D
duggiefr_ has quit [Remote host closed the connection]
<shevy> nahkunt next part is to instantiate it. add another line, cat = Cat.new
<shevy> but please use a better editor than echoing...
<nahkunt> ok i'm using vim
<shinobi_one> nahkunt: step 1. don't allow shevy to be your teacher ^.^
<shevy> shinobi_one see? "I am a non-programmer"
toastynerd has joined #ruby
Es0teric has quit [Remote host closed the connection]
<shinobi_one> editing with vim and echoing, doesn't make you a programmer, at least i sure hope not
afex has quit [Ping timeout: 246 seconds]
Xiti` has quit [Quit: Leaving]
Slavox is now known as Slavox|AFK
<shevy> nahkunt ok now you have a class, cat, and you instantiated a cat. Now we add one method ... between class and end, you must add a newline and the method... def meow; puts 'The cat meows.'; end
Xiti has joined #ruby
<nahkunt> ok it doesn't matter if i'm technically a programmer or not one, i was just trying to show my skill level so far
<shevy> once you understand how you use methods, you have ruby covered about 70%
<shinobi_one> nahkunt: http://rubykoans.com/ have fun :)
<shevy> I was using vim as well
<shevy> I am not a programmer either
<shevy> I abandoned vim when I realized it messes with my brain :(
Xiti` has joined #ruby
<shinobi_one> it's power is too strong for some
<shinobi_one> its*
<shevy> yeah, needless complexity ain't a good thing
<circuit> dont know if vim is optimal for programming
<circuit> editing configuration files it's the best
werdnativ has quit [Ping timeout: 240 seconds]
arubin has joined #ruby
<shevy> I had so many configuration settings in vim, one day I just lost all the fun tweaking them
<shevy> since that day I understand convention > configuration
mehlah has quit [Ping timeout: 246 seconds]
Xiti has quit [Ping timeout: 240 seconds]
vpretzel has quit [Quit: Adios!]
Pixi__ has joined #ruby
afex has joined #ruby
<shinobi_one> circuit: why would it not be optimal for programming?
<shevy> nahkunt where are you at now
<shinobi_one> shevy: maybe you'd prefer something like notepad, not much configuration, it's been around for a while too ;)
<shevy> yeah, notepad is not bad
<circuit> shinobi_one: because there are so many other editors/IDEs that are designed for programming
<shevy> it is too minimal though
danshultz has quit [Remote host closed the connection]
<shinobi_one> circuit: so because there are many other editors, vim must not be optimal
Voodoofish430 has quit [Quit: Leaving.]
Tomasso has joined #ruby
danshultz has joined #ruby
<circuit> shinobi_one: how *is* vim optimal?
<shevy> there are always tradeoffs involved
<shevy> - time to learn and master an editor vs. productivity
<circuit> vim is powerful, but i would never use it for large programming projects
Xiti` has quit [Ping timeout: 240 seconds]
<shinobi_one> circuit: if you know how to use it, its shortcuts and power are wielded and make you a wizard
dx7 has joined #ruby
<shinobi_one> lol
<shevy> yeah, I believed that too for some years
RaptorJesus has joined #ruby
<shevy> the best editor is ultimately the human brain itself
<shinobi_one> i would use it for every large programming project period.
GaryOak_ has quit [Remote host closed the connection]
Cooler_ has joined #ruby
<shinobi_one> but that's my preference, i can do things quicker in vim than any other editor (depending).
Slavox|AFK is now known as Slavox
<shevy> how do you work with vim? do you use xterm?
<shinobi_one> i use macvim on osx, or vim over ssh when i need to do something remotely, or gvim on linux
dx7 has quit [Remote host closed the connection]
Xiti` has joined #ruby
dx7 has joined #ruby
tkuchiki has joined #ruby
tjr9898 has joined #ruby
danshultz has quit [Ping timeout: 246 seconds]
<circuit> ill stick to komodo
<shinobi_one> vim has a large learning curve, it's not for everyone
<shinobi_one> circuit: open source version or payed version?
sdwrage has joined #ruby
Pixi__ has quit [Ping timeout: 240 seconds]
<circuit> open source
sdouglas has joined #ruby
<shinobi_one> not many features
armstrjare has joined #ruby
<nahkunt> i'm no vim expert but i know my basic things and used it for years ... gg G regex dw dd p macros etc.
<shevy> hehe
<shevy> it has anchored itself into your brain firmly :)
<nahkunt> people say it's too complicated but *shrug* i just don't bother with the complicated things
m4n1f3st0 has quit [Read error: Connection reset by peer]
codabrink has quit [Ping timeout: 240 seconds]
<circuit> im no vim expert either but im definitely not a rookie either
amclain has joined #ruby
jorts has quit [Quit: jorts]
m4n1f3st0 has joined #ruby
SCommette has joined #ruby
<shinobi_one> not many would claim to be an expert at vim, it's too powerful and so much to know
sambao21 has quit [Quit: Computer has gone to sleep.]
dx7 has quit [Ping timeout: 268 seconds]
rezzack has quit [Ping timeout: 255 seconds]
postmodern has quit [Quit: Leaving]
<shinobi_one> how do you jump to the 7th word on a line in komodo? click?
<shinobi_one> :P
<nahkunt> clicking is bad
<nahkunt> waste of time, sore wrists
<circuit> lol?
<shevy> you have the cursor
<shinobi_one> the almighty cursor!
<shevy> did you guys never play tetris?
<shinobi_one> i'm not sure how that's relevant
Pixi__ has joined #ruby
<circuit> how is jumping to the 7th word on a line?
<shevy> i'm not sure how it is relevant to be able to do xyz in an editor
lukec has quit [Quit: lukec]
<circuit> unless you're in a timed competition
crystal77 has joined #ruby
<shinobi_one> circuit: my point was, power ;)
<circuit> that extra second wont matter
<shinobi_one> productivity
<shevy> I thought an editor exists so you can get things done
m4n1f3st0 has quit [Client Quit]
<arubin> Helping one type faster is not power.
<nahkunt> true, it's more about the sore wrists that i'm careful about because when i was 14 i got golfer's elbow and it was very painful so i switched to colemak and tried to use the mouse less
<shinobi_one> arubin: no, but act of doing so is powerful
<arubin> Type or place the cursor.
havenwood has joined #ruby
<circuit> i dont believe you get 'sore' wrists from clicking
<benzrf> kbd rools mouse droolz woo
<shevy> A friend was faster with the mouse at warcraft3 than I was with the keyboard/shortcuts :(
hfp`away has joined #ruby
<shinobi_one> benzrf: woot!
<benzrf> B)
<benzrf> shevy: your friend was not human
<arubin> A powerful editor would allow you to write better code in less time, not save 1.5 minutes per day typing.
<benzrf> shinobi_one: wanna try my new gem
<nahkunt> circuit: believe me you do. it's not the clicking, it's constantly moving from mouse to keyboard and back
<shinobi_one> arubin: that's cool, vim does that too
<benzrf> arubin: sounds like SOMEBODY hasnt tried vim
<arubin> I was only commenting on the focus of this conversation.
<arubin> I have used vim.
<shinobi_one> circuit: nahkunt is actually right here, constantly switching between keyboard and mouse is not ergonomic
<circuit> nahkunt: must just be you because i have never experienced sore wrists and i use my computer a lot
<shevy> arubin still using vim?
<arubin> shevy: No.
<shevy> People who use vim a lot are very fond of it, like benzrf :)
Xiti` has quit [Ping timeout: 255 seconds]
<nahkunt> circuit: well at the time i had a job writing transcripts so yeah
<shinobi_one> "used" vim is differen't than using vim at a semi-experienced level
<nahkunt> circuit: i had to listen to videos and write down everything they said
<shevy> semi-experienced hmmm ;)
<nahkunt> circuit: and then go to school and write tests
<shinobi_one> circuit: you may not be experiencing that now, but get back to me in 30 years
<circuit> shinobi_one: and you don't think you'll develop an injury by just typing?
<circuit> you're injury prone to repetitive tasks
<circuit> regardless of what they are
<shevy> I did not have sore wrists, but I did have some kind of strains (strenous? when you keep a finger in awkward positions for too longer... like if you start playing piano, and the teacher tells you to hit from top to the bottom directly with just one finger) in some fingers
<shinobi_one> circuit: with my posture i probably will, but i did build a stand up desk at work, and get a new better chair for my posture at home
<shevy> stand up coding?!?!
<shevy> is this like comedy talking
<shinobi_one> actually sanding desks are all the rage..
<shinobi_one> standing*
Hanmac1 has joined #ruby
<shevy> lol
<shevy> sand my desk too!
<shinobi_one> they have ones with treadmills even
<shevy> really?
<shinobi_one> yes
<shinobi_one> it turns out that sitting 90% of your life is actually really bad for you lol
<shevy> yeah
<shinobi_one> i actually found i'm more productive when standing and coding, although it does take longer, and it's much much better on my posture/back/neck/shoulders
yfeldblum has joined #ruby
<shinobi_one> it does take longer to get used to***
<nahkunt> i work in a warehouse and have to stand all day it's really not so bad. programmers are just pasty nerds allergic to physical activity :p
<shinobi_one> this is all coming from a guy sitting in an office (not even at his standing desk cubicle) currently sitting with bad posture and a sore neck
<nahkunt> come to think of it though i always sit when i'm on the computer.. maybe i should stand more at home too
<circuit> my girlfriends dad has been working at a desk for 30 years and he has back problems
jason_ has joined #ruby
sdouglas has quit [Remote host closed the connection]
Slavox is now known as Slavox|AFK
Hanmac has quit [Ping timeout: 255 seconds]
<shinobi_one> here this will scare the shit out of you
jarray52 has left #ruby [#ruby]
eynj has quit [Ping timeout: 252 seconds]
narcan has joined #ruby
<shevy> lol
<shevy> look at the picture of "cow" and "cat"
<shinobi_one> shevy: i've done yoga before ;p
asteros has quit [Quit: asteros]
eynj has joined #ruby
<shinobi_one> those poses are even better with a cute girl doing them infront of you :O did i just say that?
dkamioka_ has quit [Remote host closed the connection]
SidWu has joined #ruby
SidWu has quit [Max SendQ exceeded]
Spami has quit [Quit: This computer has gone to sleep]
lambo has joined #ruby
wallerdev has joined #ruby
dkamioka has joined #ruby
<shinobi_one> yoga was fun in college
* shinobi_one chuckles
rylev has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
smathieu_ has quit [Remote host closed the connection]
<shinobi_one> but really, the moral of the story is: vim
smathieu has joined #ruby
Tomasso has joined #ruby
Lewix has joined #ruby
keppy has quit [Ping timeout: 252 seconds]
m4n1f3st0 has joined #ruby
jarray52 has joined #ruby
Spami has joined #ruby
dkamioka has quit [Remote host closed the connection]
dkamioka has joined #ruby
Slavox|AFK is now known as Slavox
Hanmac has joined #ruby
<benzrf> because the point is that different from the mean is not important, not that being gay is normal
<benzrf> oops
<benzrf> wrong channel
<shinobi_one> >.>
rylev has quit [Ping timeout: 245 seconds]
<benzrf> haha
Spami has quit [Client Quit]
<shinobi_one> silly
reset has quit [Read error: Operation timed out]
Spami has joined #ruby
<benzrf> who wants to try my gem
<shinobi_one> (that sounds gay)
<shinobi_one> jk
<shinobi_one> what is it?
smathieu has quit [Ping timeout: 265 seconds]
<benzrf> shinobi_one: can u not
Hanmac1 has quit [Ping timeout: 268 seconds]
<shinobi_one> :O
<benzrf> that is kinda tasteless
Spami has quit [Remote host closed the connection]
<benzrf> shinobi_one: are you on the proprietary BSD or a free software mishmash?
<shinobi_one> i can be on whatever
Spami has joined #ruby
Spami has quit [Client Quit]
<shinobi_one> should i be on linux?
<shinobi_one> i won't attempt anything on windows i guess, so that's out
toastynerd has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
<benzrf> shinobi_one: gnulinux
<benzrf> *gnu/linux is goo
<benzrf> d
<shinobi_one> alright
francisfish has joined #ruby
<benzrf> you need fuse/libfusedev
<benzrf> *libfuse-dev
<benzrf> & i dont think it works on windows
<shinobi_one> ok just installed libfuse-dev
Spami has joined #ruby
<benzrf> Cooler_:
<benzrf> *cool
<benzrf> gem install quick
<shinobi_one> checking for main() in -lfuse... no
<shinobi_one> *** extconf.rb failed ***
<shinobi_one> that was trying to install rfuse
tvw has quit [Ping timeout: 268 seconds]
nbezzala has joined #ruby
francisfish has quit [Ping timeout: 264 seconds]
gstamp has quit [Quit: Textual IRC Client: www.textualapp.com]
<shinobi_one> pfft hold up
<shinobi_one> got disconnected from my ssh and ran it on the local box
<lambo> whats the easiest way to parse `systeme` stdout as a Queue?
x77686d has joined #ruby
Lewix has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
<wallerdev> systeme?
<lambo> like myQueue = `nmap -iR 0`
<lambo> on parse it on the fly deq by deq
<lambo> *and
larissa has joined #ruby
<wallerdev> use popen to parse on the fly, `` will wait til it finishes
gtaw has joined #ruby
<shinobi_one> benzrf: alright it's installed
petey has joined #ruby
oo_ has joined #ruby
<benzrf> shinobi_one: sweet
<benzrf> shinobi_one: ok do
<benzrf> $ quick start <some_directory> --foreground
<benzrf> forking is a bit buggy right now
GodPuppet has quit [Remote host closed the connection]
mansi has joined #ruby
<shinobi_one> well
Lewix has joined #ruby
sailias has joined #ruby
<shinobi_one> failed to open /etc/fuse.conf because i'm not root, is this command supposed to touch that file?
circuit has quit [Quit: leaving]
kennym has joined #ruby
Lewix has quit [Remote host closed the connection]
sailias has quit [Client Quit]
keppy has joined #ruby
wallerdev has quit [Quit: wallerdev]
<benzrf> shinobi_one: dunt matter
<benzrf> it always does that idk why
<benzrf> works fine anyway
dioms has joined #ruby
<benzrf> shinobi_one: ok
lukec has joined #ruby
ItSANgo has quit [Read error: Connection reset by peer]
<benzrf> shinobi_one: quick is a LIVE CODING THINGY
<shinobi_one> well i pressed Ctrl+C and it says unmounting /home/whatever/folder and it seems to be stuck or something
<benzrf> oh god dammit
<benzrf> dont ctrl-c thats the wrong way to exit >.<
ItSANgo has joined #ruby
<shinobi_one> haha okay
<benzrf> just pkill it and then sudo umount -l <the_dir>
angusiguess has quit [Ping timeout: 255 seconds]
ItSANgo has quit [Read error: Connection reset by peer]
ItSANgo__ has joined #ruby
whatasunnyday has quit [Read error: Connection reset by peer]
mansi has quit [Ping timeout: 255 seconds]
<shinobi_one> benzrf: ok i'm back in
<benzrf> Cooler_:
<shinobi_one> benzrf: btw i get this when starting gems/quick-0.2.2/lib/quick/fs.rb:225:in `const_get': Use RbConfig instead of obsolete and deprecated Config.
<benzrf> *cool
<benzrf> yes it does that >.<
<benzrf> the mounted dir maps to the module hierarchy
<benzrf> if you cd in u will see that there is a dir for each child module/class of Object
<shinobi_one> i do see that
<benzrf> you can make a new .rb file in any dir
whatasunnyday has joined #ruby
<benzrf> whenever you save it, any methods defined in it will be reloaded into the module whose dir it is
Spami has quit [Ping timeout: 268 seconds]
<benzrf> also, you can use a few handy commands to do things like open pries
JordanJ2 has joined #ruby
<benzrf> try just 'quick' to get a command listing
<shinobi_one> ah
<shinobi_one> i cd'd to Object, and ran quick pry
<benzrf> quick pry will open into an instance by default
<benzrf> use -m/--module for into the actual module
<shinobi_one> yeah it failed and terminated the pry-remote-em session i guess, although it seems to have bugged out my terminal again lol
<shinobi_one> session i should say
<JordanJ2> Hello, I am trying to run Terminus-Bot on a OpenShift 1.9 cartridge and keep getting this error: http://pastebin.com/jJf8BwXp
<benzrf> whaa
<benzrf> shinobi_one: fyi use `quick stop` to terminate it properly
<benzrf> shinobi_one: does it just do nothing when you run quick pry
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gtaw has quit [Quit: Leaving]
<benzrf> what exactly happens o.O
<shinobi_one> benzrf: to end the `quick pry` session?
<benzrf> no, to tend quick entirely
<benzrf> or rather the instance you are cd'd into
<benzrf> shinobi_one: what happened when you did quick pry?
codabrink has joined #ruby
<benzrf> nothing? it opened a pry but bugged out?
<shinobi_one> well, trying to cd back into my quick directory is pretty much freezing up the session
<shinobi_one> i'll have to manually kill it again
SCommette has quit [Quit: SCommette]
<JordanJ2> Anyone?._.
centrx has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
r_rios has quit [Ping timeout: 246 seconds]
chipotle has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Tomasso has joined #ruby
MatthewsFace has joined #ruby
<shinobi_one> benzrf: from the top level directory
centrx has quit [Client Quit]
<benzrf> o.o
<benzrf> oh wait
<benzrf> did you start with --foreground?
<shinobi_one> benzrf: `quick pry` produces
<shinobi_one> [pry-remote-em] server didn't finish negotiation within 15 seconds; terminating
<shinobi_one> [pry-remote-em] session terminated
<shinobi_one> yes
<benzrf> o-O
<benzrf> whaa
<benzrf> what else did you try to do/
<benzrf> just cd?
<shinobi_one> so i made the folder called "quick", cd'd and ran `quick start . --foreground` in one session, opened another and cd'd into the quick folder, ls shows all the modules
<shinobi_one> then ran `quick pry`
<benzrf> hmmm
<benzrf> let me try to replicate
<benzrf> i always ran it from outside
<shinobi_one> o
SCommette has joined #ruby
freezey has joined #ruby
<shinobi_one> yeah it fucks up my session that i ran quick pry in as well
<shinobi_one> also every session thereafter that i try to cd into the directory
Xiti` has joined #ruby
<benzrf> aha yep
casheew has quit [Read error: Connection reset by peer]
<benzrf> i got the same error when mounting on .
casheew has joined #ruby
<benzrf> try again from outside o.o
<shinobi_one> you mean run the quick start command from outside?
<benzrf> after killing quick and unmounting
<benzrf> *umounting
<benzrf> >.>
agrinb_ has joined #ruby
<shinobi_one> yeah it loaded up pry now
<shinobi_one> and i get some line 5 from quick_binding thing
<shinobi_one> method
Pixi__ has quit [Ping timeout: 240 seconds]
tjr9898 has quit [Remote host closed the connection]
<shinobi_one> just realized what time it is, i'll play around more tomorrow benzrf, gotta head home and get some grub
hooper has quit [Ping timeout: 252 seconds]
r_rios has joined #ruby
maximski has quit []
<benzrf> kk
shinobi_one has quit [Quit: shinobi_one]
lambo has quit [Quit: leaving]
centrx has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
psyprus has quit [Changing host]
psyprus has joined #ruby
hooper has joined #ruby
keppy has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
jonmorehouse has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
GodPuppet has joined #ruby
Nyyx has quit [Ping timeout: 264 seconds]
cover_ has joined #ruby
pskosinski_ has quit [Ping timeout: 265 seconds]
r_rios has quit [Ping timeout: 240 seconds]
Royalb15 has joined #ruby
hooper has quit [Ping timeout: 252 seconds]
toastynerd has joined #ruby
<whatasunnyday> Any ideas on how I can call a different controller from a controller spec? I know this is an awful idea but I’m need to post my sessions controller for authorization purposes.
MrJoshua has joined #ruby
angusiguess has joined #ruby
Cethin has joined #ruby
MrJoshua has quit [Client Quit]
armyriad has quit [Ping timeout: 240 seconds]
MrJoshua has joined #ruby
forced_request has quit [Ping timeout: 252 seconds]
cover has quit [Ping timeout: 265 seconds]
pskosinski_ has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
Tomasso has quit [Ping timeout: 255 seconds]
aspires has quit []
maximski has joined #ruby
bronson has quit [Quit: bronson]
amskah has joined #ruby
echevemaster has joined #ruby
benzrf is now known as benzrf|offline
Celm has quit [Remote host closed the connection]
Royalb15 has quit [Quit: Leaving]
forced_request has joined #ruby
Royalb15 has joined #ruby
angusiguess has quit [Ping timeout: 255 seconds]
timonv has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jason_ has quit [Remote host closed the connection]
mheld_ is now known as mheld
nateberkopec has quit [Quit: Leaving...]
Hobogrammer_ has quit [Read error: Operation timed out]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jason_ has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
teddyp1cker has joined #ruby
larissa has quit [Quit: Leaving]
Doppp has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
jonmorehouse has joined #ruby
aspires has joined #ruby
Slavox is now known as Slavox|AFK
robbyoconnor has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
petey has quit [Remote host closed the connection]
petey has joined #ruby
jason_ has quit [Ping timeout: 264 seconds]
Shidash has joined #ruby
benzrf|offline is now known as benzrf
tylersmith has joined #ruby
teddyp1cker has quit [Ping timeout: 268 seconds]
Tomasso has joined #ruby
benzrf is now known as benzrf|offline
rylev has joined #ruby
Pixi__ has joined #ruby
Trynemjoel has joined #ruby
petey has quit [Read error: Connection reset by peer]
Pixi__ has quit [Read error: Connection reset by peer]
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
petey has joined #ruby
rafaelmagu has quit [Quit: Textual IRC Client: www.textualapp.com]
zz_jrhorn424 is now known as jrhorn424
markisonfire has quit [Quit: markisonfire]
crystal77 has quit [Quit: Computer has gone to sleep.]
Xiti` has quit [Ping timeout: 268 seconds]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
alexju has joined #ruby
rylev has quit [Ping timeout: 255 seconds]
koshian has joined #ruby
crystal77 has joined #ruby
koshian is now known as Koshian
caveat- has quit [Ping timeout: 264 seconds]
maximski has quit []
nateberkopec has quit [Quit: Leaving...]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
dx7 has joined #ruby
budrose has joined #ruby
afex has quit [Read error: Operation timed out]
trhodes_ has quit [Ping timeout: 255 seconds]
morenoh149 has quit [Ping timeout: 264 seconds]
soulcake has quit [Ping timeout: 240 seconds]
morenoh149 has joined #ruby
mgomezch has quit [Ping timeout: 255 seconds]
trhodes_ has joined #ruby
mway has joined #ruby
mclee has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
Nyyx has joined #ruby
agent_white has joined #ruby
KillerFox has quit [Ping timeout: 252 seconds]
mclee has joined #ruby
yfeldblum has quit [Remote host closed the connection]
KillerFox has joined #ruby
yfeldblum has joined #ruby
toastynerd has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
soulcake has joined #ruby
mary5030 has joined #ruby
ukd1 has quit [Remote host closed the connection]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
Nyyx has quit [Ping timeout: 255 seconds]
bronson has joined #ruby
ukd1 has joined #ruby
krz has joined #ruby
sensen has joined #ruby
kung has joined #ruby
x77686d has quit [Quit: x77686d]
dapz has joined #ruby
Slavox|AFK is now known as Slavox
chipotle has quit [Quit: cya]
maletor has joined #ruby
chinkung has quit [Ping timeout: 265 seconds]
Shidash has quit [Read error: Connection timed out]
echevemaster has quit [Remote host closed the connection]
ukd1 has quit [Ping timeout: 268 seconds]
Shidash has joined #ruby
toastynerd has joined #ruby
volk_ has joined #ruby
ukd1 has joined #ruby
teddyp1cker has joined #ruby
<volk_> hey anybody know why this is happening?: http://pastebin.com/SzyJSW8w
<volk_> i specifically want ‘\/‘ to be places instead of a ‘,'
budrose has quit [Remote host closed the connection]
<volk_> instead if just places a ‘/‘ no matter what
charlies_ has joined #ruby
maletor has quit [Client Quit]
charliesome has quit [Read error: Connection reset by peer]
Trynemjoel has quit [Ping timeout: 245 seconds]
teddyp1c_ has joined #ruby
<volk_> oh never mind the inspect method in IRB escapes backslashes
<volk_> -_-
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<volk_> apparenly
mway has quit [Quit: mway]
hooper has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
Kryptonical has joined #ruby
Avahey_ has joined #ruby
Tomasso has joined #ruby
teddyp1cker has quit [Ping timeout: 245 seconds]
echevemaster has joined #ruby
saarinen has joined #ruby
Trynemjoel has joined #ruby
northfurr2 has quit []
kennym has quit [Quit: Leaving.]
Cooler_ has quit [Ping timeout: 268 seconds]
freerobby has joined #ruby
braincrash has quit [Quit: bye bye]
petey has quit []
m4n1f3st0 has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
m4n1f3st0 has joined #ruby
bronson has quit [Quit: bronson]
frog0909_ has joined #ruby
braincrash has joined #ruby
mway has joined #ruby
spicerack has joined #ruby
momomomomo has joined #ruby
Xiti` has joined #ruby
papercode has joined #ruby
Tomasso has quit [Ping timeout: 252 seconds]
Xiti` has quit [Client Quit]
Lewix has joined #ruby
armyriad has joined #ruby
frog0909 has quit [Ping timeout: 264 seconds]
funktor_ has quit []
Xiti has quit [Ping timeout: 268 seconds]
djancak has quit []
browndawg has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
keppy has joined #ruby
angusiguess has joined #ruby
Jetchisel has joined #ruby
Lewix has quit [Remote host closed the connection]
morenoh149 has quit [Quit: WeeChat 0.4.3]
dseitz has joined #ruby
evenix has joined #ruby
thomasxie has joined #ruby
yfeldblum has joined #ruby
keppy has quit [Read error: Operation timed out]
mercwithamouth has quit [Ping timeout: 245 seconds]
dapz has joined #ruby
hooper has quit [Ping timeout: 245 seconds]
The_NetZ has quit [Ping timeout: 252 seconds]
angusiguess has quit [Ping timeout: 255 seconds]
ce_afk is now known as cescalante
jason__ has joined #ruby
x77686d has joined #ruby
yfeldblum has quit [Ping timeout: 268 seconds]
teddyp1c_ has quit [Remote host closed the connection]
Cethin has quit [Quit: Leaving]
sambao21 has joined #ruby
Cache_Money has joined #ruby
BeingUntoDeath has quit []
rylev has joined #ruby
jason__ has quit [Ping timeout: 264 seconds]
wchun has quit [Quit: Leaving]
sski has quit [Remote host closed the connection]
sski has joined #ruby
pskosinski_ has quit [Ping timeout: 265 seconds]
maximski has joined #ruby
m4n1f3st0 has quit []
thomasxie has quit [Quit: Leaving.]
<mary5030> anyone good with unit testing in ruby?
rylev has quit [Ping timeout: 264 seconds]
<mary5030> i am stuck :( would really appreciate and extra pair of eye to see what i maybe doing wrong?
<whatasunnyday> mary5030: i think good is probably not the right word but maybe i can help
markisonfire has joined #ruby
teddyp1cker has joined #ruby
sski has quit [Ping timeout: 255 seconds]
Cooler_ has joined #ruby
teddyp1c_ has joined #ruby
francisfish has joined #ruby
<mary5030> thank you so much, so i am only testing one method(run) in this code. http://pastebin.com/enntANNT my test: http://pastebin.com/vnv1Qzpx
hooper has joined #ruby
pskosinski_ has joined #ruby
teddyp1cker has quit [Ping timeout: 268 seconds]
Bira has quit []
<whatasunnyday> people usually say you shouldn’t use pastebin but no problem
francisfish has quit [Ping timeout: 265 seconds]
jrhorn424 is now known as zz_jrhorn424
Slavox is now known as Slavox|AFK
hooper has quit [Ping timeout: 240 seconds]
thomas3141592653 has quit [Quit: Connection closed for inactivity]
ukd1 has quit [Remote host closed the connection]
jonmorehouse has quit [Ping timeout: 255 seconds]
SCommette has quit [Quit: SCommette]
<mozzarella> guys
<mozzarella> how do you run strip on every string inside an array? I always forget the short version
_justin has joined #ruby
JordanJ2 has left #ruby ["Leaving"]
BuSerD has quit [Quit: Lost terminal]
toastynerd has quit [Remote host closed the connection]
markisonfire has quit [Quit: markisonfire]
glacius has joined #ruby
SCommette has joined #ruby
<glacius> hey guys
<whatasunnyday> mozzarella: arr.map(:&strip)
<whatasunnyday> mary5030 i think you are using stub incorrectly
<mary5030> hum
momomomomo has quit [Quit: momomomomo]
<mozzarella> I get
<mozzarella> command_parser.rb:31: syntax error, unexpected tIDENTIFIER, expecting ')'
<mozzarella> is that weird?
<whatasunnyday> mary5030: on line 18. attached_device_with_no_primary is going to return an array which will be evaluated as true. since you said unless attached_device..present? it will return true and the unless you wnt execute
Slavox|AFK is now known as Slavox
<whatasunnyday> won't*
mansi has joined #ruby
<mozzarella> whatasunnyday: that's the line: args = parent_part.split(',').map(:&strip)
freerobby has quit [Quit: Leaving.]
<mary5030> whatasunnyday: thank you so what do you suggest
<mary5030> sorry i am total nob
Bumptious has joined #ruby
<Nowaker> mozzarella: arr.map(&:strip)
greggroth has joined #ruby
<Nowaker> not :&
<mozzarella> Nowaker: well he said :&
<Nowaker> and i do correct it
<mozzarella> thanks man
<whatasunnyday> mary5030: umm its hard to understand exactly what you’re doing. it just depends on what your expected behavior is
<whatasunnyday> thanks Nowaker sorry for the typo mozzarella
<mary5030> where it is throwing error and saying it is nill i was expecting not be nil
<whatasunnyday> since run only runs if the statement is false
<whatasunnyday> it prints nothing
<whatasunnyday> so its the same as def run;end
<Nowaker> :&blah, if it was vald, would mean a symbol of blah. &:blah means a block of blah method.
<whatasunnyday> since every ruby has a return value and it is the last line of the method, it’ll be nil because there are no lines
<Nowaker> s/vald/valid/
<Nilium> Every ruby? O_o
<whatasunnyday> every method*
<mary5030> right but i was expecting to return the error message instead of nil
<whatasunnyday> obv i am not paying enough attention
<mozzarella> Nowaker: where can I learn more about that & thing?
<Nilium> For shame.
<Nowaker> mozzarella: google for ruby blocks
mansi has quit [Ping timeout: 255 seconds]
<Nilium> Isn't unary &expr just shorthand for expr.to_proc?
<Nowaker> this is number one concept in ruby i'd say
<Nowaker> need some sleep, bye
pfg has joined #ruby
<bricker`LA> I know this isn't the #chef channel, but it's dead and I'm desperate: Has anybody used chef hosted and setup the serverdensity cookbook? I just don't think I'm doing it right - the config file isn't being written properly. I'll explain more if anybody is interested in helping.
<mozzarella> Nilium: Symbol#to_proc is called, then?
<Nilium> mozzarella: Yes.
toastynerd has joined #ruby
<mozzarella> and what does it do?
volk_ has quit [Quit: volk_]
<Nilium> I believe it just returns a proc similar to -> (obj) { obj.send(sym) }
greggroth has quit [Ping timeout: 246 seconds]
volk_ has joined #ruby
ukd1 has joined #ruby
hobodave has joined #ruby
<Nilium> Would have to check your Ruby implementation-of-choice's source for exactly how it's implemented.
<mozzarella> ok
kitak has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kitak has joined #ruby
evenix has quit [Remote host closed the connection]
evenix has joined #ruby
markisonfire has joined #ruby
sski has joined #ruby
fgo has quit [Remote host closed the connection]
agrinb_ has quit [Remote host closed the connection]
agrinb has joined #ruby
centrx has joined #ruby
teddyp1c_ has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
evenix has quit [Ping timeout: 246 seconds]
sski has quit [Ping timeout: 240 seconds]
sdwrage has quit [Quit: Leaving]
greggroth has joined #ruby
snardbafulador has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
hooper has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
cover_ has quit [Ping timeout: 240 seconds]
armyriad has quit [Ping timeout: 255 seconds]
hooper has quit [Ping timeout: 245 seconds]
armyriad has joined #ruby
maletor has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
Hanmac1 has quit [Ping timeout: 245 seconds]
nbezzala has quit [Remote host closed the connection]
greggroth has quit [Ping timeout: 255 seconds]
volk_ has quit [Quit: volk_]
cpruitt has joined #ruby
angusiguess has joined #ruby
sdouglas has joined #ruby
coderhs has joined #ruby
Doppp has joined #ruby
oo_ has quit [Remote host closed the connection]
Hanmac has joined #ruby
whatasunnyday has quit [Quit: whatasunnyday]
prs has quit [Ping timeout: 260 seconds]
fgo has joined #ruby
whatasunnyday has joined #ruby
angusiguess has quit [Ping timeout: 255 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charlies_ is now known as charliesome
hooper has joined #ruby
sdouglas has quit [Ping timeout: 245 seconds]
ner0x has joined #ruby
yacks has joined #ruby
m104 has joined #ruby
Xiti has joined #ruby
hooper has quit [Ping timeout: 268 seconds]
freezey has quit [Remote host closed the connection]
rylev has joined #ruby
trhodes_ has quit [Ping timeout: 255 seconds]
maximski has quit []
snardbafulador is now known as snardbafu1ator
mrnugget has joined #ruby
prs has joined #ruby
vlad_starkov has joined #ruby
rylev has quit [Ping timeout: 268 seconds]
markisonfire has quit [Quit: markisonfire]
yasushi has joined #ruby
echevemaster has quit [Quit: Leaving]
zcreative has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
jason_ has joined #ruby
<zcreative> Anybody have any recommendations for video hosting and streaming services?
browndawg has quit [Ping timeout: 246 seconds]
gabrielCmendes has quit [Ping timeout: 245 seconds]
<mrgoodcat> besides youtube?
userx has quit [Ping timeout: 265 seconds]
<snardbafu1ator> what does this compile error mean?
<snardbafu1ator> it won't let me copy, so here is the screenshot
jason_ has quit [Ping timeout: 245 seconds]
gabrielCmendes has joined #ruby
<mrgoodcat> this guy was in #python too
<mrgoodcat> don't click on that
<mrgoodcat> emo porn
michaeldeol has joined #ruby
<thrillagorilla> Pretty clever guy.
SCommette has quit [Quit: SCommette]
cpruitt has quit [Quit: cpruitt]
<mrgoodcat> who links a compile error as a jpg?
Shidash1 has joined #ruby
<mrgoodcat> and ruby doesn't even compile...
sdwrage has joined #ruby
Shidash has quit [Ping timeout: 246 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
bronson has joined #ruby
oo_ has joined #ruby
thrillagorilla has quit []
sdouglas has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
oo_ has quit [Ping timeout: 246 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
mansi has quit [Ping timeout: 240 seconds]
sdouglas has quit [Ping timeout: 252 seconds]
taf2 has quit [Quit: taf2]
Slavox is now known as Slavox|AFK
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
cescalante is now known as ce_afk
ce_afk is now known as cescalante
chris_thomson has quit [Ping timeout: 240 seconds]
Jon30 has quit [Ping timeout: 255 seconds]
bronson has quit [Quit: bronson]
lyanchih has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JasmeetQA has joined #ruby
Slavox|AFK is now known as Slavox
pfg has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
dapz has joined #ruby
blueOxigen has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
bluOxigen has quit [Ping timeout: 245 seconds]
pskosinski_ has quit [Ping timeout: 265 seconds]
agrinb has joined #ruby
agent_white has quit [Quit: leaving]
whatasunnyday has quit [Quit: whatasunnyday]
pfg has quit [Client Quit]
Guest34253 has quit [Remote host closed the connection]
<zcreative> mrgoodcat yeah besides youtube. Currently, i'm looking into was
rm___ has joined #ruby
cescalante is now known as ce_afk
<zcreative> mrgoodcat yeah besides youtube. Currently, i'm looking into AWS S3, Streamio, and custom using ffmpeg
rm___ is now known as Guest68955
yasushi has quit [Remote host closed the connection]
Aquilo has joined #ruby
<mrgoodcat> oh. what are the goals? specifically what makes youtube a bad choice?
Jetchisel has quit [Ping timeout: 260 seconds]
<mrgoodcat> and are you looking for anything ruby specific?
ukd1 has quit [Quit: Leaving...]
oo_ has joined #ruby
pskosinski_ has joined #ruby
<zcreative> not necessarily ruby specific, but if it plays nice with ruby or has robust sdk's i'd like that. Youtube is too bloated and I don't really want to deal with oAuth. Plus their terms of service could be limiting.
slawrence has quit [Quit: Textual IRC Client: www.textualapp.com]
phansch has joined #ruby
slawrence00 has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
<mrgoodcat> are you comfortable with php?
<zcreative> yeah
<mrgoodcat> checkout ostube
<mrgoodcat> ostube.de
jack_rabbit has joined #ruby
<mrgoodcat> you have to register to download to run on your own server
Guest68955 has quit [Ping timeout: 264 seconds]
<mrgoodcat> woah
<mrgoodcat> i've not used it personally so...
<mrgoodcat> what about something like mediadrop?
guest123 has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
krz has quit [Ping timeout: 255 seconds]
armyriad has quit [Ping timeout: 246 seconds]
<zcreative> media drop looks interesting. I will look at their source
agjacome has joined #ruby
angusiguess has joined #ruby
centrx has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
banister has quit [Ping timeout: 246 seconds]
Xiti has quit [Quit: Leaving]
IceDragon has quit [Ping timeout: 265 seconds]
Jetchisel has joined #ruby
<snardbafu1ator> i want
<snardbafu1ator> to lick up the jism of somebody
<snardbafu1ator> mrgoodcat
<snardbafu1ator> what do you think of my logo oo_ http://i.imgur.com/eizzhMx.jpg
snardbafu1ator has quit [Quit: Saliendo]
karmatr0n has joined #ruby
Solnse has quit [Quit: Leaving.]
<mrgoodcat> FUCK OFF. i've seen you in other channels i'm not going to fall for it
crystal77 has quit [Quit: Computer has gone to sleep.]
Robert__ is now known as robert_
* Nilium isn't sure what that was about.
<Nilium> Spambot, I guess
<mrgoodcat> he's in many channels right now causing problems
angusiguess has quit [Ping timeout: 240 seconds]
<Nilium> So, spambot.
Xiti has joined #ruby
sdwrage has quit [Quit: Leaving]
<mrgoodcat> not a bot
<mrgoodcat> but still spam
Xiti has quit [Read error: Connection reset by peer]
<mrgoodcat> he was arguing that he should be allowed to do that in #freenode
<Nilium> Or an 11 year old.
<Nilium> Functionally similar when on IRC.
<mrgoodcat> haha possibly
<mrgoodcat> although it's creepy how many of the channels i frequent he hit
<mrgoodcat> i guess most of them are programming specific
michael_lee has joined #ruby
michael_lee has quit [Max SendQ exceeded]
Guest32172 has joined #ruby
Aquilo has quit [Ping timeout: 245 seconds]
keen__ is now known as keen_
oso96_2000 is now known as oso|away
descala has quit [Ping timeout: 255 seconds]
Aquilo has joined #ruby
rylev has joined #ruby
dx7 has quit [Remote host closed the connection]
dx7 has joined #ruby
descala has joined #ruby
rylev has quit [Read error: Operation timed out]
papercode has quit [Quit: WeeChat 0.4.3]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
godd2 has joined #ruby
<godd2> I'm trying to get my head around 'class << self'
<godd2> it LOOKS like its the #<< method on the class keyword, but if I ask for class.methods, Ruby throws an error
<godd2> so i'ts not the << method, correct?
Morkel has joined #ruby
<Nilium> I think it might be special syntax just for getting at the singleton class of a class.
deadlock has quit [Ping timeout: 245 seconds]
dx7 has quit [Ping timeout: 265 seconds]
Es0teric has joined #ruby
<xybre> godd2: class is a keyword and you can't use it like class.something you have to do self.class.something
maletor has quit [Quit: Computer has gone to sleep.]
<godd2> >> self.class.methods.grep /</
<eval-in> godd2 => [:<=>, :<, :<=] (https://eval.in/129993)
francisfish has joined #ruby
<godd2> I mean if this is just a 'weird thing about ruby I have to learn and just get over it" that's fine, but I'd like to know that this is one of those
pskosinski_ has quit [Quit: Til rivido Idisti!]
<xybre> godd2: The class keyword "Takes either a constant name or an expression of the form << object. In the latter case, opens a definition block for the singleton class of object."
<Nilium> I'm pretty sure it is just a weird thing in Ruby.
<Nilium> So, yeah, weird thing.
<godd2> ok thanks for that xybre
slopjong has joined #ruby
beneggett has joined #ruby
Celm has joined #ruby
mercwithamouth has joined #ruby
jarray52 has left #ruby [#ruby]
<xybre> The syntax is a little odd, but its handy.
kobain has quit []
<Nilium> There's a rather large number of ways to define singleton methods and such.
<godd2> I guess the keywords are just their own little monsters sometimes
beneggett has quit [Client Quit]
Celm has quit [Remote host closed the connection]
<xybre> The biggest thing in my opinion is that Ruby's classes are their own objects, putting them in a class << self block means its much more clear and grouped together.
francisfish has quit [Ping timeout: 268 seconds]
michael_lee has joined #ruby
<xybre> This is probably the best run down on Ruby's keywords I've seen: http://ruby-doc.org/docs/keywords/1.9/
toastynerd has quit [Remote host closed the connection]
Slavox is now known as Slavox|AFK
zcreative has quit [Quit: Computer has gone to sleep.]
<godd2> Would a good definition of a singleton class be "the class definition which, if changed, only affects this one instance of itself"?
renklaf_ has joined #ruby
<godd2> well anyway, thanks for the insight. I should get to bed
toastynerd has joined #ruby
godd2 has quit [Quit: Page closed]
heftig has quit [Quit: Quitting]
chuk has quit [Quit: Leaving]
mansi has joined #ruby
michael_lee has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
nari has joined #ruby
michael_lee has joined #ruby
vlad_starkov has joined #ruby
Slavox|AFK is now known as Slavox
ner0x has quit [Quit: Leaving]
mansi has quit [Ping timeout: 252 seconds]
eynj has quit [Quit: Leaving.]
ndrei has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
yfeldblum has joined #ruby
diegoviola has quit [Remote host closed the connection]
oo_ has joined #ruby
timonv has joined #ruby
sdouglas has joined #ruby
sdouglas has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
sdouglas has joined #ruby
Splourian has joined #ruby
apeiros has joined #ruby
nari has quit [Quit: Ex-Chat]
jack_rabbit has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
kukyakya has quit [Remote host closed the connection]
Splourian has left #ruby [#ruby]
timonv has quit [Ping timeout: 252 seconds]
kukyakya has joined #ruby
agjacome has quit [Quit: leaving]
Guest32172 has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
sdouglas_ has joined #ruby
krz has joined #ruby
apeiros has quit [Ping timeout: 246 seconds]
sdouglas has quit [Ping timeout: 268 seconds]
tylersmith has quit [Remote host closed the connection]
agrinb_ has joined #ruby
teddyp1cker has joined #ruby
tylersmith has joined #ruby
rm_ has joined #ruby
oo_ has quit [Remote host closed the connection]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crystal77 has joined #ruby
bal has joined #ruby
slopjong has quit [Ping timeout: 245 seconds]
prs has quit [Changing host]
prs has joined #ruby
agrinb_ has quit [Ping timeout: 246 seconds]
tylersmith has quit [Ping timeout: 246 seconds]
teddyp1cker has quit [Ping timeout: 246 seconds]
m104 has quit [Quit: brb]
centrx has quit [Quit: All this computer hacking is making me thirsty]
samlt has joined #ruby
braincra- has joined #ruby
toastynerd has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
MatthewsFace has joined #ruby
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 255 seconds]
rm_ has quit [Ping timeout: 252 seconds]
fly2web has joined #ruby
braincrash has quit [Ping timeout: 246 seconds]
karmatr0n has quit [Remote host closed the connection]
oo_ has joined #ruby
tectonic has joined #ruby
angusiguess has joined #ruby
<fly2web> how can i access to wireless Router?
mrnugget has quit [Quit: mrnugget]
LiohAu has quit [Quit: LiohAu]
angusiguess has quit [Ping timeout: 265 seconds]
bambuka has joined #ruby
<mrgoodcat> What do you mean
davedev2_ has quit [Remote host closed the connection]
<fly2web> mrgoodcat: you dont know about Router?
markisonfire has joined #ruby
davy has joined #ruby
<mrgoodcat> Are you talking about the wireless router in your home or some ruby thing I'm not yet aware of?
<fly2web> wireless router in the home
<fly2web> mrgoodcat:
<mrgoodcat> It depends on your specific router usually through a web interface at the IP address of the router
pragmatism has joined #ruby
<mrgoodcat> Google the manufacturer and model#
JasmeetQA has quit [Ping timeout: 255 seconds]
Davedo has quit [Ping timeout: 255 seconds]
* mrgoodcat goes to bed
<fly2web> wait
<mrgoodcat> I'm waiting
Davedo has joined #ruby
<fly2web> i want break into router.
JasmeetQA has joined #ruby
<mrgoodcat> No I will not help
<pragmatism> Could a senior engineer PM me? I need career advice.
ixti has quit [Ping timeout: 255 seconds]
jzigmund has quit [Ping timeout: 255 seconds]
WillAmes has quit [Ping timeout: 255 seconds]
LetErikTry has joined #ruby
<fly2web> mrgoodcat: you know it but you cant help me?
maroloccio has quit [Ping timeout: 255 seconds]
<fly2web> or you dont know it so you cant help me?
<mrgoodcat> Of course I won't help you break into a router. Why would I?
bambuka has quit [Ping timeout: 255 seconds]
axisys has quit [Ping timeout: 255 seconds]
maroloccio2 has joined #ruby
shaman42_ has quit [Ping timeout: 240 seconds]
<mrgoodcat> Routers are passworded for a reason
<pragmatism> fly2web: that's not in anyone's best interest.
<mrgoodcat> This is not the channel for that kind of thing
<fly2web> i want break into my router
axisys has joined #ruby
shaman42 has joined #ruby
jzigmund has joined #ruby
<pragmatism> fly2web: reset it per the manufactorers docs
<mrgoodcat> No way. I can't be sure its yours
<fly2web> it is mine
<pragmatism> fly2web: If it's yours, you have physical access
<fly2web> dont worry.
<pragmatism> fly2web: reset it.
<fly2web> hole is bloked.
rylev has joined #ruby
yfeldblum has joined #ruby
<mrgoodcat> fly2web: you'll have to forgive me if I don't believe the word of an internet stranger
<pragmatism> fly2web: Buy a new router.
<mrgoodcat> And that is really shady
samlt has quit [Read error: Operation timed out]
renklaf_ has quit [Read error: No route to host]
<fly2web> mrgoodcat: anyway you can do it?
renklaf_ has joined #ruby
bjeanes has left #ruby [#ruby]
<mrgoodcat> Irrelevant. I won't
bjeanes has joined #ruby
<pragmatism> I can't think of a router that can't be reset by physical access
<pragmatism> There should be a sticker on it
<pragmatism> *might
renklaf_ has quit [Client Quit]
<pragmatism> with the default access point name and pass
<fly2web> oh
<fly2web> i see
<fly2web> then mrgoodcat give me sites or doc.
<fly2web> docs
<mrgoodcat> fly2web: sorry your parents blocked your internet but I won't help you bypass the router
klaut has joined #ruby
ixti has joined #ruby
bambuka has joined #ruby
rylev has quit [Ping timeout: 252 seconds]
pwh has quit []
yfeldblum has quit [Ping timeout: 265 seconds]
aganov has joined #ruby
<fly2web> mrgoodcat: you cant help, i want know onething.
<fly2web> you can do it?
<fly2web> or not?
arietis has joined #ruby
<mrgoodcat> I. Am. Not. Going. To. Help. You.
<pragmatism> lol
<fly2web> my mean is that you have skill of that?
decoponio has joined #ruby
<fly2web> or not?
<mrgoodcat> pragmatism: surely someone who calls themselves pragmatism understands where I'm coming from?
<mrgoodcat> fly2web: I think you need to drop this
BraddBitt has joined #ruby
<fly2web> ok
<fly2web> i see.thanks
<fly2web> buby is easy to study?
<pragmatism> to be pragmatic is to insist to learn.
aspires has quit []
<pragmatism> aka the reason we all love this
xBradPittx has quit [Ping timeout: 240 seconds]
<mrgoodcat> Wow... I've been operating under the wrong definition
<mrgoodcat> Similar... But still wrong
<pragmatism> pragmatic adj.:
<pragmatism> dealing with things sensibly and realistically in a way that is based on practical rather than theoretical considerations
<mrgoodcat> That's what i thought
<pragmatism> word
<mrgoodcat> I thought I was being sensible
<pragmatism> You were
<pragmatism> I was laughing at fly
Lucky_Red has joined #ruby
Celm has joined #ruby
Bumptious has quit [Remote host closed the connection]
apeiros has joined #ruby
browndawg has joined #ruby
yfeldblum has joined #ruby
tagrudev has joined #ruby
dagobah has joined #ruby
Celm has quit [Ping timeout: 255 seconds]
ghr has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
<Macaveli> Morning Friends
ghr has quit [Ping timeout: 240 seconds]
sensen has quit [Ping timeout: 255 seconds]
jprovazn has joined #ruby
dareTake has joined #ruby
timonv has joined #ruby
carif has joined #ruby
markisonfire has quit [Quit: markisonfire]
cj3kim__ has joined #ruby
<dareTake> Hi, I have a problem with named pipes in Ruby. I'm opening the pipe in non blocking read mode, and then using IO.select to query the fd and use Marshall::load to load it. I do this in a loop, however the second time aroung Marshal::load complains that the object is not an IO object.
<dareTake> around*
hermanmunster has quit [Remote host closed the connection]
fabrice31 has joined #ruby
<dareTake> this is the error --> src/daemon.rb:31:in `load': instance of IO needed (TypeError)
_justin has quit [Ping timeout: 240 seconds]
cj3kim_ has quit [Ping timeout: 265 seconds]
<dareTake> here's the snippet, could someone take a look?
sdouglas_ has quit [Remote host closed the connection]
carif has quit [Ping timeout: 252 seconds]
sdouglas has joined #ruby
ahawkins has joined #ruby
ephemerian has joined #ruby
<dareTake> if I close the pipe and open it in the loop, it's fine. But should I really open it evertime the loop runs?
Bumptious has joined #ruby
claymore has joined #ruby
Shidash1 has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
beneggett has joined #ruby
timonv has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 268 seconds]
<dareTake> I tried to make a dummy fd on the named pipe for writing in the same procees, so it does not close the pipe due to EOF.
blackmesa has joined #ruby
zigomir has joined #ruby
Shidash has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
<dareTake> and I get this error --> No such device or address @ rb_sysopen - /home/dare/projects/ruby/bkp_mgr/other/to_daemon (Errno::ENXIO)
mehlah has joined #ruby
magler has quit [Ping timeout: 255 seconds]
rm_ has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
cj3kim__ has quit [Remote host closed the connection]
andikr has joined #ruby
sensen has joined #ruby
<dareTake> nvm, solved it. Changing from "r" to "r+" solved it. Guess it prevents the pipe from closing due to EOF.
browndawg has quit [Ping timeout: 240 seconds]
rm_ has quit [Ping timeout: 268 seconds]
tylersmith has joined #ruby
browndawg has joined #ruby
mway has quit [Quit: mway]
crystal77 has quit [Quit: Computer has gone to sleep.]
cj3kim_ has joined #ruby
atmosx has quit [Remote host closed the connection]
_justin has joined #ruby
angusiguess has joined #ruby
chaos___________ has joined #ruby
AlexRussia___ has quit [Read error: Operation timed out]
timonv has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
atmosx has joined #ruby
toastynerd has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
rdark has joined #ruby
wallerdev has quit [Quit: wallerdev]
tylersmith has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mozzarella> guys, how do I know if I can call something or not?
blackmesa has quit [Read error: Operation timed out]
angusiguess has quit [Ping timeout: 264 seconds]
NovapaX has joined #ruby
<mozzarella> wait
<mozzarella> nevermind
noop has joined #ruby
wallerdev has joined #ruby
tectonic has quit []
toastynerd has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
mrnugget has joined #ruby
tvw has joined #ruby
Hanmac has joined #ruby
nism has joined #ruby
AlexRussia___ has joined #ruby
rylev has joined #ruby
nfk has joined #ruby
rylev has quit [Read error: Connection reset by peer]
jpstokes has quit [Remote host closed the connection]
dareTake has quit [Quit: Leaving]
dweeb_ has joined #ruby
LekeFly has joined #ruby
AlexRussia___ has quit [Ping timeout: 255 seconds]
LadyRainicorn has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carraroj has joined #ruby
francisfish has joined #ruby
LiohAu has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
pedda has joined #ruby
francisfish has quit [Read error: No route to host]
nanothief has joined #ruby
relix has joined #ruby
francisfish has joined #ruby
Shidash1 has joined #ruby
yacks has joined #ruby
skammer has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
francisfish has quit [Ping timeout: 255 seconds]
Xeago has joined #ruby
rails426 has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nism has quit [Quit: This computer has gone to sleep]
Shidash1 has quit [Ping timeout: 240 seconds]
viscera has joined #ruby
_Andres has joined #ruby
mansi has joined #ruby
AlexRussia___ has joined #ruby
AlexRussia___ has quit [Client Quit]
AlexRussia___ has joined #ruby
olivier_bK has joined #ruby
sigurding has joined #ruby
sk87 has joined #ruby
browndawg has quit [Quit: Leaving.]
guest123 has quit [Quit: Connection closed for inactivity]
mansi has quit [Ping timeout: 265 seconds]
dangerousdave has quit []
ghr has joined #ruby
wallerdev has quit [Quit: wallerdev]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
Stalkr_ has joined #ruby
Xeago has quit [Remote host closed the connection]
phansch has quit [Quit: WeeChat 0.4.2]
pfg has joined #ruby
<mozzarella> how do I put non capturing parenthesis in a regex?
yfeldblum has quit [Remote host closed the connection]
<jmaister> Escape them
bluenemo has joined #ruby
<mozzarella> jmaister: can I still treat it as a group if I do?
sdouglas has joined #ruby
relix has joined #ruby
<mozzarella> like, add '?' to indicate that it doesn't need to be there
<jmaister> wait… what are you trying to do?
jlebrech has joined #ruby
<mozzarella> I don't want to treat the ()'s as characters, I just don't want them in my MatchData
samlt has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
Xeago has joined #ruby
<mozzarella> I don't want to capture their content
<jmaister> So you want to capture something between parenthesis?
<mozzarella> no
<jmaister> () defines a group
<mozzarella> I want to match against '!this(something)' and simply '!this'
NovapaX has joined #ruby
teddyp1cker has joined #ruby
rylev has joined #ruby
agrinb has joined #ruby
<mozzarella> yes I know
mercwithamouth has quit [Ping timeout: 246 seconds]
<mozzarella> but I don't want the group to be captured
rylev has quit [Remote host closed the connection]
<LadyRainicorn> (?=icarus)
rylev has joined #ruby
AlexRussia___ has quit [Ping timeout: 265 seconds]
davy has quit [Remote host closed the connection]
<jmaister> like /(\!\w+)\(.+\)/.match("!this(something)")
<jmaister> >> /(\!\w+)\(.+\)/.match("!this(something)")
<eval-in> jmaister => #<MatchData "!this(something)" 1:"!this"> (https://eval.in/130018)
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has quit [Ping timeout: 268 seconds]
rylev has quit [Read error: Connection reset by peer]
rylev has joined #ruby
* jmaister drinks coffee instead
jhass|off|off is now known as jhass
<mozzarella> LadyRainicorn: what's icarus?
<LadyRainicorn> Icarus escaped from a prison in Greek mythology.
agrinb has quit [Ping timeout: 252 seconds]
teddyp1cker has quit [Ping timeout: 252 seconds]
<LadyRainicorn> (then died flying close to the sun, but that's incidental to the reference.)
rm_ has joined #ruby
<jmaister> Should have used heat resistent resin instead of wax on those wings
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<jmaister> He obviously wasn't an engineer
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<mozzarella> thanks man
_justin has quit [Quit: _justin]
<LadyRainicorn> irl the temperature would have gone down as he increased in altitude, and it wouldn't actually have ever been an issue.
elaptics`away is now known as elaptics
<mozzarella> and it's not really hot around the sun because there's nothing to heat up
<mozzarella> I'd be more concerned about radiation
mesamoo has quit [Read error: Operation timed out]
<mozzarella> wait
<mozzarella> does that make sense?
<jmaister> no
mesamoo has joined #ruby
<mozzarella> I thought it did
<mozzarella> let me check
<LadyRainicorn> The sun is very hot, but you can't reach it with wings.
aob has quit [Ping timeout: 264 seconds]
<jmaister> There's no hot air around the sun, since there is no air around the sun
rm_ has quit [Ping timeout: 255 seconds]
<jmaister> If you try to fly near the sun you'll see what I mean
<jmaister> For a split second
<LadyRainicorn> There is gas around the sun, and if you were near it you would heat up.
<jmaister> Before you evaporate
<mozzarella> yes but you'd have to be near enough
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<LadyRainicorn> Icarus might potentially die due to hypoxia.
banister has joined #ruby
pskosinski has joined #ruby
banister has quit [Max SendQ exceeded]
<jmaister> You'd probably evaporate before you enter sun's atmosphere, so the hot gas isn't really a problem here
<LadyRainicorn> I'm not certain if he would become cold enough to want to head down prior to that point.
yfeldblum has joined #ruby
<jmaister> Actually. Relevant xkcd: http://what-if.xkcd.com/89
banister has joined #ruby
<LadyRainicorn> Also humans can't fly with wings.
banister has quit [Max SendQ exceeded]
nvrch has joined #ruby
angusiguess has joined #ruby
Atw has quit [Ping timeout: 245 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ephemerian has quit [Ping timeout: 265 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
xsdg has joined #ruby
banister has joined #ruby
DaniG2k has joined #ruby
banister has quit [Max SendQ exceeded]
<mozzarella> I can't understand my regex anymore
banister has joined #ruby
<mozzarella> maybe if I throw more parenthesis there and there…
fgo has quit [Remote host closed the connection]
<mozzarella> maybe it will work
banister has quit [Max SendQ exceeded]
gaussblurinc has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<jmaister> Regexes work better the more obscure they are
JasmeetQA has quit [Quit: Leaving.]
banister has joined #ruby
<jmaister> When you can't read it anymore, it has reached maximum optimisation level
banister has quit [Max SendQ exceeded]
JasmeetQA has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
roolo has joined #ruby
banister has joined #ruby
oo_ has quit [Remote host closed the connection]
NovapaX has joined #ruby
<mozzarella> uh, to indicate that a group is optional, you do ()? right?
<mozzarella> exclamation mark after the closing parenthesis
<apeiros> question mark
<apeiros> exclamation mark is !
<mozzarella> really!
<apeiros> and yes, ? after an element means 0 or 1, i.e. optional
oo_ has joined #ruby
Elico1 has joined #ruby
<mozzarella> it messes up everything when I add a ?
<mozzarella> it's weird, lol
andikr has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
TMM has joined #ruby
<jmaister> What does your regex look like?
Elico has quit [Ping timeout: 245 seconds]
anarang has joined #ruby
<LadyRainicorn> >> /(?=hypotheticalfreeman)?/ =~ ''
<eval-in> LadyRainicorn => 0 (https://eval.in/130034)
Elico has joined #ruby
monkegjinni has quit [Remote host closed the connection]
JasmeetQA has quit [Quit: Leaving.]
JasmeetQA has joined #ruby
dumdedum has joined #ruby
andrewlio has joined #ruby
Elico1 has quit [Ping timeout: 245 seconds]
jespada has joined #ruby
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140314220517]]
<mozzarella> here's a test case: http://ideone.com/jW7yDQ
einarj has joined #ruby
nfk has quit [Ping timeout: 246 seconds]
dumdedum is now known as blaxter
<apeiros> mozzarella: your first group matches everything
<apeiros> that's what happens
<apeiros> because the rest is valid if it's an empty string
claymore has quit [Quit: Leaving]
<apeiros> >> "" =~ / ?.*/
<eval-in> apeiros => 0 (https://eval.in/130038)
<apeiros> valid match
poikon has joined #ruby
Elico has quit [Ping timeout: 268 seconds]
thomasxie has joined #ruby
<mozzarella> so how do I do it?
<LadyRainicorn> .+?
<apeiros> why would you want to change it?
<mozzarella> to make the parenthesis part optional
<apeiros> you succeeded in that
<apeiros> the parenthesis part is optional. your regex matches.
<apeiros> so again, why would you want to change it?
<LadyRainicorn> He wants the first output if they exist so he can get the languages if specified presumably
maasha has joined #ruby
havenn has joined #ruby
<mozzarella> it's not optional as of now
<apeiros> yes it is. your own testcase shows as much.
<mozzarella> if you do "Google.translate this is a test" it won't work
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<jmaister> what if you put [^()] in stead of . in the first group?
<apeiros> mozzarella: yes it does work
havenwood has quit [Ping timeout: 255 seconds]
krz has quit [Quit: WeeChat 0.4.3]
<apeiros> mozzarella: note, "doesn't work" is a pointlessly vague explanation
<jmaister> >> 'google.translate(en, fr) this is a test'.match(/^([^()]+)(\((.*)\))? ?(.*)$/)
<eval-in> jmaister => #<MatchData "google.translate(en, fr) this is a test" 1:"google.translate" 2:"(en, fr)" 3:"en, fr" 4:"this is a test"> (https://eval.in/130040)
Celm has joined #ruby
<mozzarella> p 'Google.translate this is a test'.match(/^(.+)(\((.*)\)) ?(.*)$/)
<apeiros> mozzarella: I ask you because if you can't phrase your problem, you probably can't write a regex. and all we do is guess what you *might* want.
workmad3 has joined #ruby
_justin has joined #ruby
<mozzarella> >> p 'Google.translate this is a test'.match(/^(.+)(\((.*)\)) ?(.*)$/)
<eval-in> mozzarella => nil ... (https://eval.in/130041)
<apeiros> put in words, what you want.
krz has joined #ruby
AlSquire has joined #ruby
<apeiros> mozzarella: that's without the ? mark
<mozzarella> I want to separate the different parts
<apeiros> mozzarella: we don't know what a "part" is for you. be specific. explain it.
<jmaister> apeiros is right. regex is just a way of expressing what you want. if you can't explain it in plain human language first, you're going to run into problems
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mozzarella> I want "Google.translate", "this is a test" and "en, fr" ONLY if that part is there
<apeiros> mozzarella: how do you understand that "google.translate" is a part?
<apeiros> what defines it, what makes "this is a test" not a part of it?
<mozzarella> apeiros: what do you mean?
<mozzarella> it's a command parser, Google.translate is just an example of command
<mozzarella> it could be anything, really, as long as the syntax is good
<mozzarella> command(optional args) first_arg
<apeiros> mozzarella: I still don't know how *I* could identify it as a part.
<mozzarella> well it doesn't contain any space for one thing
<mozzarella> and never will…
<apeiros> see, that's a start :)
<apeiros> tell that your expression too.
<apeiros> what else? it seems to me it must not contain parens either?
Celm has quit [Ping timeout: 268 seconds]
<LadyRainicorn> >> ['g t', 'g(ef) t'].map{|s|s.match(/^(.+?)(\(.*?\))? (.+)$/)}
<eval-in> LadyRainicorn => [#<MatchData "g t" 1:"g" 2:nil 3:"t">, #<MatchData "g(ef) t" 1:"g" 2:"(ef)" 3:"t">] (https://eval.in/130042)
oo_ has quit [Remote host closed the connection]
<apeiros> also, can you express it as what it *can* contain, instead of what it *can't* contain?
eka has joined #ruby
m0s is now known as m0s^away
<mozzarella> how do I make the group non-greedy?
<apeiros> a group is a single entity, non-greedy = optional
oo_ has joined #ruby
TMM has left #ruby ["Ex-Chat"]
mansi has joined #ruby
<mozzarella> what do you mean
<apeiros> anyway, seems like you don't feel like answering my question. I think I don't feel like trying to further help then.
Elico has joined #ruby
fgo has joined #ruby
twiceaday has quit [Ping timeout: 265 seconds]
noop has quit [Ping timeout: 240 seconds]
twiceaday has joined #ruby
mansi has quit [Ping timeout: 246 seconds]
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tacos1de has quit [Ping timeout: 265 seconds]
blueOxigen has quit [Ping timeout: 255 seconds]
bluOxigen has joined #ruby
Elico1 has joined #ruby
ioNull has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
tacos1de has joined #ruby
<mozzarella> I DID IT!
<mozzarella> IT WORKS!
Elico has quit [Ping timeout: 265 seconds]
* LadyRainicorn claps and whistles.
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mozzarella> /^([^\s\(]+)(\((.*)\))? ?(.*)$/
anarang has quit [Ping timeout: 240 seconds]
CyborgCygnus has joined #ruby
cj3kim_ has quit [Read error: Connection reset by peer]
ayaz has joined #ruby
cj3kim_ has joined #ruby
CaptainJet has quit []
Speed has joined #ruby
agrinb_ has joined #ruby
bjeanes is now known as bjeanes|away
<apeiros> congrats
spicerack has joined #ruby
oo__ has joined #ruby
oo__ has quit [Client Quit]
Elico has joined #ruby
Elico1 has quit [Ping timeout: 245 seconds]
agrinb_ has quit [Ping timeout: 240 seconds]
banister has quit [Read error: Connection reset by peer]
rm_ has joined #ruby
frerich has joined #ruby
noop has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
<frerich> Hi! I'm embedding Ruby (using the Ruby 1.9.2 C API) and pre-define a couple of methods via rb_define_module_function and rb_define_method_id. Is there a way to define multiple functions and bind them all to the same generic dispatcher function which then does a 'reverse lookup'?
cj3kim_ has quit [Remote host closed the connection]
<Nilium> A for loop would be a good start.
<frerich> Let me whip up a quick code sketch to show what I'm doing...
rm_ has quit [Ping timeout: 268 seconds]
obs has joined #ruby
Elico has quit [Read error: Connection reset by peer]
poguez_ has quit [Quit: Connection closed for inactivity]
Elico has joined #ruby
anarang has joined #ruby
Elico has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
skammer has joined #ruby
<frerich> Nilium: I'm trying to do something like https://gist.github.com/frerich/04f90c4ee1b867cd7974
<frerich> Nilium: I.e. bind multiple functions (which may have the same name, but are defined on separate classes/modules) to the same generic dispatcher function within which I'd then like to check what funciton is invoked so that I can call the correct C++ code.
<Nilium> They're different modules and different function names, so a batch function wouldn't really make much sense.
Elico has joined #ruby
<Hanmac> frerich: are you looking for "method_missing" ?
mikecmpbll has joined #ruby
<Nilium> If you want to avoid writing out a ton of calls to the same function, stick the modules and function names in arrays and just use a for loop.
<frerich> Nilium: The issue is that the list of functions is not hardcoded, it's only available at runtime - I'm loading external plugins which expose the provided methods/propertiesvia some sort of Reflection API and I'm creating Ruby bindings for that.
<frerich> Hanmac: Yeah I had that originally, but I dropped the approach because the Ruby script could no longer enumerate the available methods.
<frerich> Hanmac: ...since technically I didn't actually define any Ruby methods anymore except for method_missing.
x77686d has quit [Quit: x77686d]
<apeiros> I think he's looking for the C equivalent of __method__
<Nilium> Well, if method_missing can do the lookup, it can also define the method once it's found so that future lookups don't go through method_missing.
<apeiros> though… the method names are the same, just the module changes?
<apeiros> the receiver is in self (or in your case, obj)
<Hanmac> hm add "method_missing" and "respond_to_missing?" and then overwrite the "methods" functions to add them dynamilcy
<frerich> apeiros: Yeah, it's possible that the method names are the same but the module changes. that's why rb_frame_current_func() (which emrely returns an ID matching the name of the function) is apparently inappropriate for uniquely identifying the method.
Elico1 has joined #ruby
pfg has joined #ruby
<frerich> Hanmac: hmm, that might work, let me think about it...
<Hanmac> apeiros: C equivalent of __method__ => rb_frame_this_func()
workmad3 has quit [Quit: Lost terminal]
* frerich hoped that rb_define_module_function et al would yield some sort of VALUE which I could then lateron retrieve from within my dispatcher function to get nay custom extra information I'd need to implement the dispatch, but that doesn't seem to work out. :-/
<Hanmac> frerich: if you use method_missing you get the name of the wanted method as parameter
Elico has quit [Ping timeout: 252 seconds]
<apeiros> frerich: you can store whatever information you want in a module
<apeiros> via instance variables
<frerich> Hanmac: Yeah, I used that in the past, it worked fairly well. The only downside is that the 'methods' function woudln't yield anything anymore, but if I can reimplement that myself...
jespada has quit [Quit: Leaving]
<frerich> apeiros: True, but I'd rather not expose the internal bookkeeping to the Ruby script if possible.
nones has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
obs has quit [Quit: Konversation terminated!]
<apeiros> frerich: then don't. receiver + method name uniquely identifies a method
<Hanmac> frerich: add your own methods method like that: def methods(parent); super + @plugins.map(&:name); end
vlad_starkov has joined #ruby
<apeiros> so store the information in C
<Hanmac> frerich: or: make the plugins as extra Module and then include/extend them into the main Module/Class while loading the plugin ... this way you can still find the mthods via #methods
<frerich> apeiros: True. And in the case of rb_define_method_id (i.e. defining instance methods) I could use the class of the receiver.
<apeiros> frerich: yes. correction of what I said before: owner + method-name uniquely identifies
<frerich> apeiros: It sounds too easy to be true, I'll give it a shot. :)
<frerich> Thanks everybody for the feedback! :-)
<apeiros> hf, gl :D
yfeldblum has quit [Remote host closed the connection]
Aquilo has quit [Ping timeout: 240 seconds]
dawkirst has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
nism has joined #ruby
coderhs has quit [Quit: Leaving]
hermanmunster has joined #ruby
CyborgCygnus has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
<nones> hi, is there any tools for parallel computing in ruby's stdlib?
<nones> like python's "multiprocessing"
yfeldblum has quit [Ping timeout: 246 seconds]
CyborgCygnus has joined #ruby
incade has joined #ruby
Elhu has joined #ruby
incade has left #ruby [#ruby]
Elico has joined #ruby
lolmaus_ has joined #ruby
codeurge has joined #ruby
lolmaus has quit [Ping timeout: 264 seconds]
codeurge has quit [Client Quit]
anarang has quit [Ping timeout: 264 seconds]
incade has joined #ruby
Elico1 has quit [Ping timeout: 255 seconds]
incade has left #ruby [#ruby]
obs has joined #ruby
mengu has quit [Remote host closed the connection]
Rainicorn has joined #ruby
dawkirst has joined #ruby
Celm has joined #ruby
incade has joined #ruby
incade has quit [Client Quit]
codeurge has joined #ruby
workmad3 has joined #ruby
browndawg has joined #ruby
LadyRainicorn has quit [Ping timeout: 264 seconds]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
rails426 has quit []
edolix has joined #ruby
Xeago has joined #ruby
Celm has quit [Ping timeout: 265 seconds]
himsin has joined #ruby
skaflem has joined #ruby
yasushi has joined #ruby
jonmorehouse has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
noop has quit [Ping timeout: 252 seconds]
Kar- has joined #ruby
fgo has joined #ruby
<maasha> nones: checkout the fork and parallel gems
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has quit [Ping timeout: 252 seconds]
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blueOxigen has joined #ruby
anarang has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
<shevy> long live ruby!
kennym has joined #ruby
NovapaX has joined #ruby
NovapaX has quit [Client Quit]
fgo has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
saarinen has quit [Quit: saarinen]
francisfish has joined #ruby
shredding has joined #ruby
noop has joined #ruby
jonmorehouse has quit [Ping timeout: 252 seconds]
Alina-malina has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
Alina-malina has joined #ruby
fabrice31 has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
agrinb has joined #ruby
kennym has quit [Quit: Leaving.]
rylev has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
Mortix has quit [Remote host closed the connection]
oo_ has joined #ruby
dweeb_ has quit [Quit: Textual IRC Client: www.textualapp.com]
teddyp1cker has quit [Ping timeout: 252 seconds]
agrinb has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
rm_ has joined #ruby
mengu has joined #ruby
robustus has quit [Ping timeout: 252 seconds]
robustus has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
Speed has quit [Read error: Connection reset by peer]
Speed has joined #ruby
francisfish has quit [Remote host closed the connection]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
charliesome has joined #ruby
monkegjinni has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Bumptious has quit [Remote host closed the connection]
jackneill has joined #ruby
mehlah has quit [Read error: Connection reset by peer]
mehlah has joined #ruby
makara has joined #ruby
Bumptious has joined #ruby
mengu has quit [Ping timeout: 252 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
rylev has joined #ruby
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
<shevy> long live shevy!
poikon_ has joined #ruby
fabrice31 has joined #ruby
mrnugget has quit [Quit: mrnugget]
Speed has quit [Ping timeout: 264 seconds]
<gr33n7007h> Has ruby got anything like Python's Turtle Graphics?
<frerich> apeiros: Turns out the idea of using the VALUE of the receiver (or the class of it, in case of instance method) plus the ID given by rb_frame_this_func() works beautifully for implementing the genericDispatch we chatted about earlier. Thanks again for this idea!
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jmaister> gr33n7007h: https://github.com/peterc/trtl ?
<shevy> gr33n7007h what is a turtle graphic?
<gr33n7007h> Ah, awesome thanks jmaister :)
poikon has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
<gr33n7007h> shevy, A bit like logo, it's a little turtle that you tell it where to go and and what to draw
francisfish has joined #ruby
DouweM has quit [Ping timeout: 264 seconds]
mrnugget has joined #ruby
jrhe has joined #ruby
timonv has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
<workmad3> gr33n7007h: well, you don't tell it what to draw so much... you just tell it where to go and whether to put the pen up or down, iirc :)
poikon has joined #ruby
andrewlio has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Remote host closed the connection]
<gr33n7007h> workmad3, Well sort of
<workmad3> gr33n7007h: nothing so useful as 'draw a hexagon please, mr. turtle'
<gr33n7007h> any got a bit of a problem from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' ?
chaos___________ has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
<shevy> cool
<shevy> sounds like a game
andrewlio has joined #ruby
banister has quit [Ping timeout: 268 seconds]
skammer has joined #ruby
<Hanmac> workmad3: that reminds me at the programing language "Logo" ;P
<gr33n7007h> LoadError: cannot load such file -- tk?
<shevy> it reminds me of Lego
<shevy> that means you dont have the tk bindings
poikon_ has quit [Ping timeout: 245 seconds]
<shevy> in ruby source archive they would be in ext/ subdirectory, tk/ there
narcan has joined #ruby
LekeFly has joined #ruby
Macaveli has joined #ruby
<gr33n7007h> How to install tk bindings? since ive upgraded to ruby 2.1.1-2
<gr33n7007h> and now there missing
Kar- has quit [Remote host closed the connection]
oo_ has joined #ruby
<gr33n7007h> pacman -Ss ruby-tk non-existent?
roolo has quit [Quit: Leaving...]
nvrch has quit [Quit: nvrch]
<workmad3> gr33n7007h: they're built as part of ruby, as long as a tcl/tk library is available to compile against
bluOxigen has joined #ruby
<Hanmac> its like Kevin alone at home ... Ruby-Family did move into an new place but forgot tk ;P
<workmad3> gr33n7007h: dunno about with pacman though
chinkung has joined #ruby
<gr33n7007h> Hanmac, that makes perfect sense :)
Elico1 has joined #ruby
Xeago has joined #ruby
mupkoo has joined #ruby
<gr33n7007h> I'll just install trtl in debian as it's 1.9.3
nones has quit [Quit: Moonlight and vodka, takes me away...]
blueOxigen has quit [Ping timeout: 246 seconds]
lyanchih has quit [Quit: lyanchih]
Macaveli has quit [Ping timeout: 252 seconds]
kung has quit [Ping timeout: 240 seconds]
hiall has joined #ruby
obs has quit [Ping timeout: 245 seconds]
obs_ has joined #ruby
Elico has quit [Ping timeout: 264 seconds]
<Hanmac> gr33n7007h: i think you build ruby from a source package right?, install tk-dev package with pacman and build ruby again
rylev has quit [Remote host closed the connection]
<gr33n7007h> Hanmac, I just did a pacman -Syu full system upgrade then ruby was 2.1.1-2 from 2.0
Macaveli has joined #ruby
<gr33n7007h> make that 2.1.0
<gr33n7007h> even tk-dev package isn't there
oo_ has quit [Remote host closed the connection]
LekeFly has quit [Read error: Operation timed out]
<jhass> arch doesn't do -dev packages
<jhass> headers come with the normal packages
LekeFly has joined #ruby
amskah has quit [Quit: Leaving]
oo_ has joined #ruby
_tpavel has joined #ruby
<shevy> long live arch!
<shevy> down with debian!
nfk has joined #ruby
Celm has joined #ruby
<jhass> gr33n7007h: https://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/ruby&id=46d32e1189407028d4378b77daca02110e6780d1
Elhu has quit [Quit: Computer has gone to sleep.]
<jhass> sadly no explanation on what is "broken"
oo_ has quit [Remote host closed the connection]
<gr33n7007h> jhass, lemme me have a look
<shevy> it's broken!
<shevy> tk is broken
<shevy> :)
<Hanmac> workmad3: i dont remember it correctly, but wasnt tk kicked out of ruby?
<shevy> long live kicking out tk from ruby!
<shevy> well actually
<jhass> it's not broken as a configure flag, so if you download the package and just makepkg -si it it might compile with tk
<shevy> it's still in ext/tk
<jhass> *not disabled
oo_ has joined #ruby
yasushi has quit [Remote host closed the connection]
<jhass> ah, reading the comment helps
osvico has quit [Read error: Connection reset by peer]
Stalkr_ has quit [Read error: Connection reset by peer]
* gr33n7007h is really p**sed off :/
<jhass> yeah, there's also still no backport for 1.9.3 for readline 6.3 support
osvico has joined #ruby
<gr33n7007h> ah well shit happens
monkegjinni has quit [Remote host closed the connection]
Elhu has joined #ruby
Celm has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
roolo has joined #ruby
francisfish has quit [Remote host closed the connection]
<gr33n7007h> Why the hell ins't this working now aswell Linguistics.use(:en) => ArgumentError: invalid byte sequence in US-ASCII
rails426 has joined #ruby
Morkel_ has joined #ruby
mansi has joined #ruby
rahult has joined #ruby
lyanchih has joined #ruby
<shevy> gr33n7007h hmm Linguistics has not been updated in quite a while?
Morkel has quit [Ping timeout: 245 seconds]
Morkel_ is now known as Morkel
<shevy> ruby added the encoding annoyance from 1.8 to 1.9 and beyond
nahkunt has quit [Changing host]
nahkunt has joined #ruby
<gr33n7007h> I see
<shevy> you can add an # Encoding line to the .rb files, such as # Encoding: ASCII-8BIT
<shevy> or UTF-8
<gr33n7007h> lemme check with quote instead of symbol
<shevy> :P
fgo has joined #ruby
<crome> its a heavily cringeworthy thing to do though
<crome> all kinds of kittens die I have to do it
<crome> +when
<gr33n7007h> Yeah it works with quotes but why?
francisfish has joined #ruby
<jhass> because the lib doesn't exepect symbols?
<gr33n7007h> jhass, is that in the newer versions of ruby it work on 1.9
mansi has quit [Ping timeout: 253 seconds]
<jhass> >> :en.to_s.encoding
<eval-in> jhass => #<Encoding:US-ASCII> (https://eval.in/130121)
<jhass> 19>> :en.to_s.encoding
<eval-in> jhass => #<Encoding:US-ASCII> (https://eval.in/130122)
<jhass> soo?
<jhass> don't see a difference
mostlybadfly has joined #ruby
evenix has joined #ruby
viscera has quit [Quit: viscera]
postdata has quit []
<gr33n7007h> In ruby 1.9.3 Liguistics.use(:en) works but in 2.1 it doesn't
fgo has quit [Ping timeout: 240 seconds]
keppy has joined #ruby
postdata has joined #ruby
<shevy> hmm
<shevy> odd
simono has joined #ruby
francisfish has quit [Ping timeout: 265 seconds]
pskosinski has quit [Quit: Til rivido Idisti!]
<shevy> Liguistics eh
Elico1 has quit [Read error: Connection reset by peer]
<gr33n7007h> Also in 2.1 10000000000.en.numwords isn't there also?
<gr33n7007h> god knows whats going on
Elico has joined #ruby
ioNull has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
evenix has quit [Ping timeout: 255 seconds]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lucky_Red has quit [Quit: Leaving...]
tonni has quit [Read error: Connection reset by peer]
tonni has joined #ruby
oo_ has quit [Remote host closed the connection]
einarj has quit []
shredding has quit [Quit: shredding]
DaniG2k has quit [Quit: leaving]
einarj has joined #ruby
Speed has joined #ruby
agrinb has joined #ruby
timonv has quit [Remote host closed the connection]
oo_ has joined #ruby
<apeiros> frerich: great :)
francisfish has joined #ruby
rdark has quit [Ping timeout: 240 seconds]
rm_ has joined #ruby
yacks has quit [Read error: Connection reset by peer]
sensen has quit [Ping timeout: 240 seconds]
agrinb has quit [Ping timeout: 252 seconds]
rdark has joined #ruby
poikon_ has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rm_ has quit [Ping timeout: 252 seconds]
angusiguess has joined #ruby
poikon has quit [Ping timeout: 246 seconds]
rylev has joined #ruby
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
jottr has joined #ruby
<j416> is there a way to determine the length of a string as it would appear, printed in the current terminal?
rylev_ has joined #ruby
rylev_ has quit [Remote host closed the connection]
<j416> use case is, I want to print a string and then print another line of say '-'es to create an underline, just as long as the string
<j416> this works well with String#length for ascii
<jhass> "-"*string.size
ioNull has joined #ruby
rylev_ has joined #ruby
banister has joined #ruby
<j416> but if I try to underline, say 'こんにちは' it doesn't work quite as well
obs_ has quit [Ping timeout: 268 seconds]
rylev has quit [Read error: Connection reset by peer]
banister has quit [Max SendQ exceeded]
<apeiros> j416: that's probably because your terminal/font can't manage to retain monospacing with those signs
<j416> apeiros: exactly
<apeiros> I don't think there's a way
<j416> I'd like a way to ask the terminal how long that string would actually be
<apeiros> because it theoretically shouldn't be as long as it practically is
jottr_ has quit [Ping timeout: 265 seconds]
<j416> yeah.
<jhass> start with finding a way to ask your terminal to draw a line of a specific pixel length
obs_ has joined #ruby
Rainicorn has quit [Ping timeout: 265 seconds]
<j416> as this would perhaps be terminal-dependent, I'm thinking maybe the only way is to do a lot of checking, or use something like ncurses
sigurding has quit [Quit: sigurding]
Elhu has quit [Quit: Computer has gone to sleep.]
maasha has quit [Ping timeout: 245 seconds]
nvrch has joined #ruby
<jhass> I'd consider just adding one or two spaces around your string and underline those too, so it appears centered over the underline
<apeiros> I don't think anything character based will do
<apeiros> you'd need a toolkit which is pixel or vector based
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<j416> perhaps the best choice is to redesign things so that it won't need to know the length
<j416> not underline it but rather separate it some other way
meatherly has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
claymore has joined #ruby
claymore has quit [Changing host]
claymore has joined #ruby
NuckingFuts has quit [Read error: Connection reset by peer]
agjacome has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
LexicalScope has quit [Read error: Connection reset by peer]
LexicalScope has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
obs_ has quit [Quit: Konversation terminated!]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
nuck has joined #ruby
AntelopeSalad has quit []
fgo has joined #ruby
oneawayman has joined #ruby
keppy has quit [Quit: Lost terminal]
r_rios has joined #ruby
teddyp1cker has joined #ruby
moted has quit [Read error: Connection reset by peer]
fijimunkii has quit [Ping timeout: 265 seconds]
chichou has joined #ruby
moted has joined #ruby
Alina-malina has quit [Ping timeout: 268 seconds]
RowdyChild|Away is now known as RowdyChildren
pinpin404 has quit [Ping timeout: 255 seconds]
ezrios has quit [Ping timeout: 255 seconds]
qba73 has joined #ruby
rahult has joined #ruby
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
ndrei has quit [Read error: No route to host]
rahult has quit [Client Quit]
Elhu has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
francisfish has quit [Remote host closed the connection]
Speed has quit [Read error: Connection reset by peer]
Speed has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
hard2findfreenic has joined #ruby
pinage404 has joined #ruby
rdark has quit [Ping timeout: 245 seconds]
<hard2findfreenic> is there class/lib to provides izi IP ranges handle?
frerich has left #ruby [#ruby]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mansi has joined #ruby
ezrios has joined #ruby
<jhass> what the hell are "izi IP ranges"?
<apeiros> I guess that's how 8y olds say 'easy' nowadays. you're just an old fart now too, jhass
<jhass> :(
<jhass> I already got very said when I turned 20
<jhass> er
<jhass> sad even
<jhass> I mean it's the first time you really notice that the number in front changes...
<apeiros> it might also be that hard2findfreenic is in fact a very old fart, desperately trying to look young
oneawayman has quit [Read error: Connection reset by peer]
<jhass> I guess I'd like to have "izi IP ranges"
<jhass> they sound fun
mansi has quit [Ping timeout: 255 seconds]
oneawayman has joined #ruby
doodlehaus has joined #ruby
<jhass> still, april 1st, time to write and submit an rfc
<jhass> any ideas?
<apeiros> :D
glacius has quit [Remote host closed the connection]
<jmaister> IPoAC
<jmaister> Internet Protocol over Aquatic Carriers
<jmaister> aka the fishnet
kennym has joined #ruby
popl has quit [Ping timeout: 265 seconds]
rdark has joined #ruby
<jhass> hmm, "IPoAC Zone Interconnection IP ranges"
toretore has joined #ruby
_tpavel has quit [Ping timeout: 240 seconds]
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
ndrei has joined #ruby
kobain has joined #ruby
dblessing has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
shredding has joined #ruby
sski has joined #ruby
sigurding has joined #ruby
freezey has joined #ruby
Alina-malina has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
teddyp1cker has joined #ruby
rylev_ has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 265 seconds]
RowdyChildren is now known as RowdyChild|Away
rylev has joined #ruby
agrinb has joined #ruby
napcae is now known as moonshine
doodlehaus has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Alina-malina has quit [Read error: Connection reset by peer]
gr33n7007h has quit [Ping timeout: 240 seconds]
jkamenik has joined #ruby
oneawayman has quit [Ping timeout: 246 seconds]
Alina-malina has joined #ruby
rm_ has joined #ruby
lyanchih has quit [Quit: lyanchih]
agrinb has quit [Ping timeout: 252 seconds]
_tpavel has joined #ruby
thomasxie has left #ruby [#ruby]
mark_locklear has joined #ruby
mrnugget has quit [Quit: mrnugget]
arietis has quit [Quit: Computer has gone to sleep.]
danshultz has joined #ruby
_Andres has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
freezey_ has joined #ruby
freezey has quit [Read error: Connection reset by peer]
iamdoo2 has quit []
taf2 has joined #ruby
jprovazn has quit [Quit: Leaving]
keymone has joined #ruby
<keymone> are there any significant patches for 1.9.3p545?
skammer has joined #ruby
<keymone> like is falcon still relevant, etc
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ctp has joined #ruby
anarang has quit [Quit: Leaving]
skammer has quit [Client Quit]
anarang has joined #ruby
CyborgCygnus has quit [Remote host closed the connection]
sk87 has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
larissa has joined #ruby
RaptorJesus has quit [Ping timeout: 268 seconds]
skammer has joined #ruby
LekeFly has joined #ruby
taf2 has quit [Quit: taf2]
larissa has left #ruby [#ruby]
Alina-malina has quit [Read error: Connection reset by peer]
flops has joined #ruby
Alina-malina has joined #ruby
jhass is now known as jhass|off
sdouglas has joined #ruby
timonv has joined #ruby
AntelopeSalad has joined #ruby
arietis has joined #ruby
momomomomo has joined #ruby
siwica has joined #ruby
dawkirst_ has joined #ruby
rylev has quit [Read error: Connection timed out]
nateberkopec has joined #ruby
sdouglas has quit [Ping timeout: 255 seconds]
rylev has joined #ruby
francisfish has joined #ruby
siwica has quit [Client Quit]
jhass|off is now known as jhass
toretore has quit [Quit: Leaving]
phansch has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
oneawayman has joined #ruby
spicerack has joined #ruby
banister_ has joined #ruby
banister_ has quit [Max SendQ exceeded]
banister has quit [Read error: Connection reset by peer]
gilcosson has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jmimi has joined #ruby
ValicekB has joined #ruby
ValicekB has quit [Max SendQ exceeded]
volk_ has joined #ruby
jprovazn has joined #ruby
r_rios has quit [Ping timeout: 240 seconds]
spicerack has quit [Ping timeout: 252 seconds]
nateberkopec has quit [Quit: Leaving...]
banister has joined #ruby
mupkoo has quit [Remote host closed the connection]
banister has quit [Max SendQ exceeded]
Rubeh has quit [Ping timeout: 255 seconds]
wchun has joined #ruby
Celm has joined #ruby
rmorello has joined #ruby
Rubeh has joined #ruby
ce_afk is now known as cescalante
funktor has joined #ruby
bambuka has quit [Remote host closed the connection]
kaliya has joined #ruby
maximski has joined #ruby
arount has joined #ruby
Celm has quit [Ping timeout: 265 seconds]
davedev24 has joined #ruby
momomomomo has quit [Quit: momomomomo]
momoa has joined #ruby
Xeago has quit [Remote host closed the connection]
<momoa> hello
M4dH4TT3r has quit [Ping timeout: 264 seconds]
blandflakes has joined #ruby
<momoa> can anyone help me with Enumerator, please?
r_rios has joined #ruby
rails426 has quit []
<tobiasvl> momoa: sure, just state your question and someone will probably answer
snath has quit [Ping timeout: 246 seconds]
<fly2web> the instance variable that backs these methods should be _age <———— what mean? i dont interprete it.
teddyp1cker has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
ahawkins_ has joined #ruby
<momoa> when I do [:a, :b, :c].cycle, I get an Enumerator back. And I can always call #next on it... but where does it store its "state" ?
davedev24 has joined #ruby
<tobiasvl> momoa: inside the Enumerator instance itself
<momoa> (thanks, tobiasvl)
chaos___________ has joined #ruby
<momoa> as an instance var?
_tpavel has quit [Quit: Leaving]
dawkirst_ has quit [Quit: Leaving]
banister has joined #ruby
_tpavel has joined #ruby
banister has quit [Max SendQ exceeded]
dawkirst_ has joined #ruby
einarj has quit []
sdwrage has joined #ruby
<tobiasvl> most probably
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<momoa> I tried listing the instance vars of the enumerator object, nothing
aef has joined #ruby
<momoa> trying to wrap my head around it :/
einarj has joined #ruby
ahawkins has quit [Ping timeout: 255 seconds]
banister has joined #ruby
kaspergrubbe has joined #ruby
angusiguess has quit [Ping timeout: 264 seconds]
<apeiros> momoa: Enumerator is implemented in C, it probably stores it in a part which is not accessible from ruby.
garndt has joined #ruby
<momoa> oh... ok, then. makes it seem magical :D
davedev24 has quit []
toretore has joined #ruby
volk_ has quit [Quit: volk_]
nism has quit [Quit: Leaving]
nowthatsamatt has joined #ruby
davedev24 has joined #ruby
<Veejay> Hello everyone. I have a daemon written in Ruby that's running and I need to execute a rake task when a certain condition is met. Right now I'm using system "cd SOMETHING; RAILS_ENV=BLAH #{bundle exec rake something}"
cover has joined #ruby
r_rios has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
yalue has joined #ruby
<Veejay> I have two questions: Is using system here bad for memory use? Also, is there a wahy for me to execute that rake task without having to use system?
<banister> Hanmac can you de-germanify something for me?
ioNull has quit [Quit: Textual IRC Client: www.textualapp.com]
* Hanmac is now in germany mode
kennym has quit [Quit: Leaving.]
<Hanmac> banister: what is your prob?
vadviktor has quit [Quit: No Ping reply in 180 seconds.]
nath_schwarz has joined #ruby
sambao21 has joined #ruby
<banister> Hanmac: "Funktionale Programmierung - und damit auch Haskell - war immer anders: sehr elegant, aber eher etwas für Wissenschaftler; von theorieverliebten Sprachdesignern konzipiert, aber selten in kommerziellen Produkten zu finden. Ein Blick in die Literatur spiegelte dies. Findet man in Büchern über C, Java oder Perl Programmbeispiele, mit denen man Dateien verwalten kann, Texte mit Hilfe regulärer Ausdrücke durchsuchen oder Web-Anwendungen
<banister> erstellen kann, findet der Leser in Büchern über Haskell viel über Monaden, Typsysteme und als Beispiel wird dann ein Fraktal gezeichnet."
sambao21 has quit [Client Quit]
end_guy has quit [Ping timeout: 265 seconds]
nath_schwarz_ has quit [Remote host closed the connection]
vadviktor has joined #ruby
<Veejay> Somewhat Über Monaden is even more terrifying
yfeldblum has quit [Ping timeout: 268 seconds]
<Veejay> Somehow*
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CreativeEmbassy has joined #ruby
kennym has joined #ruby
himsin has quit [Quit: himsin]
agrinb_ has joined #ruby
momoa has quit [Quit: Page closed]
moonshine is now known as napcae
<apeiros> functional programming - which includes haskell - has always been different: very elegant, but something for scientists; from theory infatuated language designers designed, but rarely found in commercial applications/products.
<Hanmac> apeiros: i think "designers designed" is a bit duplicated, i would try to find a similar word
<apeiros> Hanmac: go ahead ;-)
<banister> Veejay hah
<banister> haha*
oneawayman has quit [Ping timeout: 268 seconds]
<Hanmac> and i would write it like "by theory-loving language designers" ;P *but i am cruel if i want*
<apeiros> a look in literatur mirrors this. while you find in books about C, Java or Perl examples to manage files, search texts using regular expressions, or how to create web applications, the reader finds in books about haskell a lot about monads, typesystems, and as an example, you draw a fractal
phantummm has joined #ruby
<apeiros> hth banister
ahawkins has joined #ruby
<apeiros> it's a relatively direct translation.
_Andres has quit [Read error: Connection reset by peer]
davy_ has joined #ruby
rm_ has joined #ruby
spstarr_work has joined #ruby
<spstarr_work> hmm i got a question
<Veejay> apeiros: Ah right, I always forget you're a germanophone
<spstarr_work> how do I access the 2nd hash inside the first one?
<spstarr_work> it doesn't seem to be setting the value?
mupkoo has joined #ruby
tkuchiki_ has joined #ruby
end_guy has joined #ruby
<spstarr_work> i thought hashname[:key1][:key2] = "Value"
<spstarr_work> using symbols
oo_ has quit [Remote host closed the connection]
ahawkins_ has quit [Ping timeout: 245 seconds]
<apeiros> Veejay: that's good, I guess. means my english doesn't suck as hard as I tend to think :D
_tpavel has quit [Quit: Leaving]
<apeiros> spstarr_work: exactly like that
<banister> apeiros awesome thanks
<Veejay> I'd say it's spotless
<spstarr_work> !
<spstarr_work> apeiros: but its not working?
<apeiros> spstarr_work: then you do something else wrong. can't tell without code.
<spstarr_work> myClass.myHash[:platform][:os] = "Linux"; puts "My OS is: #{myClass.myHash[:platform][:os]}"
<toretore> somehow german and haskess strike me as a good combination
<spstarr_work> i pastebin above the code
<toretore> haskell*
<Hanmac> spstarr_work: "Class FooBar" >> "class FooBar"
<apeiros> >> x = {key1: {}}; x[:key1][:key2] = "Value"; x
<eval-in> apeiros => {:key1=>{:key2=>"Value"}} (https://eval.in/130236)
<apeiros> spstarr_work: works flawlessly here ^
lyanchih_ has joined #ruby
<apeiros> spstarr_work: that can't be your real code
<Hanmac> spstarr_work: "Class FooBar" >> "class FooBar" <<
<apeiros> `Class FooBar` # <- invalid
Speed has quit [Read error: Connection reset by peer]
<spstarr_work> it is working
<spstarr_work> class FooBar even
Speed has joined #ruby
tkuchiki has quit [Ping timeout: 265 seconds]
<toretore> you are being vague and evasive
rm_ has quit [Ping timeout: 255 seconds]
<spstarr_work> i was thinking mixing new style hash and old style was not working
<toretore> be explicit and forthcoming to get help
<apeiros> spstarr_work: works for me
ikawnoclast has joined #ruby
<apeiros> with the fix of Class -> class
<spstarr_work> yeah i fixed that
fella6s has joined #ruby
mansi has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki_ has quit [Ping timeout: 255 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<spstarr_work> though I guess how do you use new syle hashing with 2 hashes ?
Shidash has joined #ruby
RowdyChild|Away is now known as RowdyChildren
<spstarr_work> @myHash = { nexthash: { foo: nill, bar: nil } } ?
r_rios has joined #ruby
<apeiros> yes
* spstarr_work tries this
<apeiros> 15:18 apeiros: >> x = {key1: {}}; x[:key1][:key2] = "Value"; x
<apeiros> already showed you actually…
rm_ has joined #ruby
<spstarr_work> didn't notice that one
fella5s has quit [Ping timeout: 264 seconds]
<toretore> {:old => {new: 'style'}} is not surprising. the inner hash is independent of the outer hash
<apeiros> it pays to pay attention when you ask questions :-p
blackmesa has joined #ruby
mansi has quit [Remote host closed the connection]
fella7s has joined #ruby
<apeiros> you can mix old and new style in the same level too
<apeiros> >> {a: 1, :b => 2}
<eval-in> apeiros => {:a=>1, :b=>2} (https://eval.in/130238)
<toretore> yes, that is more surprising
mansi has joined #ruby
<spstarr_work> i like new style since it reminds me more of new C/C++ style 'tag' structures
jottr has quit [Ping timeout: 245 seconds]
meatherly has joined #ruby
mercwithamouth has joined #ruby
oneawayman has joined #ruby
phutchins has joined #ruby
fella6s has quit [Ping timeout: 255 seconds]
<phutchins> anyone written a wrapper around SSH in ruby?
roolo has quit [Quit: Leaving...]
vpretzel has joined #ruby
<apeiros> phutchins: you mean, like, net/ssh?
banister has joined #ruby
<phutchins> apeiros: yes that or somehow using system to launch ssh and have the ability to send commands to it before the user does
banister has quit [Max SendQ exceeded]
Jetchisel has quit [Ping timeout: 260 seconds]
banister has joined #ruby
<phutchins> The goal is to take care the server to log into for the user and ssh to the host. I have this working now. But i need to programatically sudo su - [anotheruser]
freerobby has joined #ruby
zz_jrhorn424 is now known as jrhorn424
nacho_ has joined #ruby
davy_ has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 240 seconds]
<phutchins> i've been hacking at net/ssh for a day and feel like i've gotten close but for such a simple task it seems that net/ssh is overkill. unless i'm missing an easier way to do this
shlant has joined #ruby
<phutchins> i've got it connecting and printing stdout from the ssh connection, starting a pty and shell
edolix has quit []
<phutchins> but the part where i need to take stdin from the user and send it to the shell is tricky.
<nacho_> I'm looking for the name of a famous ruby guy! I watched one of his talks back in 2006, he had a long name which ended in III (as in Richard the III). Any ideas?
<nacho_> He gave a talk making parallels with a game for building your own world, I think it was called "My little world"
chichou has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
<phutchins> I found examples that use termios to do the input buffering but i'm having troubles with that as well as it used session (i thiink) which doesn't exist in the library any more...
_tpavel has joined #ruby
<phutchins> moved on to trying to work with net/ssh/session which is where i'm at now...
chichou has joined #ruby
<phutchins> So i started thinking maybe there was an easier way to do this that i'm missing...
alexju has joined #ruby
<apeiros> nacho_: James Edward Grey II?
doodlehaus has joined #ruby
<apeiros> oh, *Gray
kaspergr_ has joined #ruby
<apeiros> @jeg2 on twitter
<nacho_> @apeiros you got it! thanks!!
<apeiros> phutchins: too involved, can't help I think.
<phutchins> apeiros: kk, no worries.
ValicekB has joined #ruby
chichou has quit [Remote host closed the connection]
mway has joined #ruby
<shlant> can anyone help me find out why my regex isn't working?
ValicekB has quit [Max SendQ exceeded]
<apeiros> shlant: a regex always works. it may not do what you expect from it, though.
<shlant> I'm getting nothing
<shlant> apeiros: haha true true
<apeiros> or differently put: "X does not work" = sucks as an explanation :-p
<shlant> yea that's why I qulaifies with I'm getting nothing ;)
taf2 has joined #ruby
kaspergrubbe has quit [Read error: Operation timed out]
<apeiros> that's still only half an explanation
<apeiros> you get nothing because your regex matches nothing.
<apeiros> that's the help you get with your current "question" :)
<shlant> yea…I know it matches nothing …. I'm asking why?
<shlant> not very helpful
jlast has joined #ruby
alexju has quit [Ping timeout: 268 seconds]
<apeiros> I actually get a match with your example.
<shlant> do I need to look for star *?
<shlant> whaaa
<shlant> hmmm
<shlant> yea I put it into a regex checker and it worked...
<apeiros> data.scan(/^Listen (?:[^: ]+:)?([0-9]+)/) # => [["80"], ["90"], ["453"], ["443"]]
<shlant> I'll edit to include all the code
<phutchins> Anyone know of a way to execute a command then send it a subsequent command? i.e. ssh to a host, then send it "sudo su - username"
RowdyChildren is now known as RowdyChild|Away
<apeiros> btw., [0-9] -->\d
arubincloud has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
<nath_schwarz> Is there a way to print arrays on one line w/ havin to use "#{}"?
<nath_schwarz> w/o*
<nath_schwarz> w/o* having*
mupkoo has quit [Ping timeout: 245 seconds]
nacho_ has quit [Quit: Page closed]
<shlant> nath_schwarz: puts array?
* spstarr_work slowly disects Proc/blocks
nateberkopec has joined #ruby
<apeiros> nath_schwarz: see Array#join
<apeiros> nath_schwarz: though, #{} uses Array#to_s - so if you just want that behavior…
fijimunkii has joined #ruby
<apeiros> shlant: that'll print each item on a new line
<shlant> apeiros: indeed
<apeiros> while puts generally calls to_s too, it special cases arrays.
phantummm has quit [Quit: phantummm]
<shlant> apeiros: i updated the gist will all the code relating to the regex :) https://gist.github.com/MrMMorris/aeeedbb5e3e8263afa55
Slavox is now known as Slavox|AFK
<shlant> maybe I'm doing somehting else wrong
siwica has joined #ruby
mary5030 has joined #ruby
duggiefresh has joined #ruby
phantummm has joined #ruby
<nath_schwarz> apeiros: thanks
<havenn> phutchins: mina seems nice, though it may be overkill for what you're doing?: https://github.com/nadarei/mina#readme
mr_snowf1ake has quit [Ping timeout: 240 seconds]
yasushi has joined #ruby
<apeiros> shlant: that code looks syntactically invalid
<apeiros> shlant: include does not create/take a block
ndrei has quit [Ping timeout: 268 seconds]
<apeiros> I'd verify that you read the file you expect to read. i.e. that port_config really contains what you pasted.
_Andres has joined #ruby
<apeiros> also even if you do that correct, it'll fail. your expectation is an array of strings. you convert it to an array of integers in apache_configured_ports.
obs has joined #ruby
hard2findfreenic has quit [Quit: leaving]
<shlant> apeiros: so to_s instead of to_i?
<apeiros> why'd you call to_s on a string? just drop the map.
mupkoo has joined #ruby
zachallett has joined #ruby
funktor has quit [Remote host closed the connection]
afreidah has joined #ruby
ephemerian has joined #ruby
momomomomo has joined #ruby
ndrei has joined #ruby
afreidah has quit [Ping timeout: 240 seconds]
<arount> apeiros: are you french ?
mupkoo has quit []
<gaussblurinc> is there any way to generate class instance setters/getters? (instance setters/getters for class object)
<toretore> just run attr_x in the right scope
siwica has quit [Ping timeout: 255 seconds]
<toretore> class << Klass; attr_accesor :foo; end
fly2web has left #ruby [#ruby]
rvraghav93 has joined #ruby
<gaussblurinc> toretore: great, thanks!
phantummm has quit [Ping timeout: 265 seconds]
siwica has joined #ruby
<tobiasvl> s/accesor/accessor ;)
Alina-malina has quit [Read error: Connection reset by peer]
MatthewsFace has joined #ruby
afreidah has joined #ruby
rvraghav93 has quit [Read error: Operation timed out]
funktor has joined #ruby
<toretore> alias atr_axesor attr_accessor
<gaussblurinc> tobiasvl: I search a way to manipulate classes as objects:)
<tobiasvl> gaussblurinc: well classes ARE objects ;) (s/objects/instances)
rm_ has quit [Remote host closed the connection]
<tobiasvl> toretore: er du den ekte Tore Torell
simono has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
rm_ has joined #ruby
rvraghav93 has joined #ruby
<toretore> selvsagt
ffranz has joined #ruby
phantummm has joined #ruby
sailias has joined #ruby
Alina-malina has joined #ruby
dik_dak has joined #ruby
mansi has joined #ruby
chrisseaton has joined #ruby
simono has joined #ruby
andrewlio has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 268 seconds]
thesheff17 has quit [Ping timeout: 255 seconds]
armstrjare has quit [Ping timeout: 268 seconds]
Lewix has joined #ruby
ndrei has joined #ruby
siwica has quit [Ping timeout: 255 seconds]
<apeiros> arount: bien sûr
<gaussblurinc> toretore: how to read line 'class << Klass;' ? not sure that I understand usage of shift left
cescalante is now known as ce_afk
<apeiros> arount: pour quoi?
yfeldblum has quit [Ping timeout: 265 seconds]
Shidash has quit [Ping timeout: 245 seconds]
thesheff17 has joined #ruby
rm_ has quit [Ping timeout: 264 seconds]
<apeiros> gaussblurinc: that's not a left shift there. it's a syntax construct to open the singleton class of Klass
<tobiasvl> gaussblurinc: it opens up Klass's singleton class
forced_request has quit [Ping timeout: 255 seconds]
oneawayman has quit [Ping timeout: 268 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andy__ has joined #ruby
<gaussblurinc> tobiasvl: uh, see. it reveal class as instance
<toretore> a class *is* an instance, of Class
sambao21 has joined #ruby
poikon has joined #ruby
forced_request has joined #ruby
_justin has quit [Quit: _justin]
jobewan has joined #ruby
spyderman4g63 has joined #ruby
_justin has joined #ruby
ak5 has joined #ruby
poikon_ has quit [Ping timeout: 264 seconds]
<ak5> hey everyone, I wanted to ask some questions about the workflow
rvraghav93 has quit [Read error: Operation timed out]
rvraghav93_ has joined #ruby
<ak5> regarding rvm usage, should I create a gemset for each project I am working on
<ak5> or for each type of project?
keymone has left #ruby [#ruby]
yacks has joined #ruby
<arount> apeiros: parce qu'apeiros ça ressemble à apéro
<arount> apeiros: et j'aime bien les apéros
<ak5> as in, rvm use rubyversion@rails or rubyversion@project-using-rails
<apeiros> arount: hah, sorry, I'm not french :-)
<apeiros> and apeiros has nothing to do with apero
hfp`away has quit [Ping timeout: 245 seconds]
<arount> apeiros: haha ok
<arount> apeiros: apero means drink
<arount> the best moment of a day
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
poikon_ has joined #ruby
<toretore> j'aime bien les apeiros
<arount> toretore: c'est signe de bonne santé
<apeiros> arount: I'm swiss, I know the word ;-)
hemanth has joined #ruby
<arount> apeiros: :)
<hemanth> when was the last time you monkey patched?
<apeiros> arount: but I didn't think it was used outside of switzerland - I thought the common french word for that was aperitif
siwica has joined #ruby
hfp`away has joined #ruby
lolmaus_ has quit [Remote host closed the connection]
<arount> apeiros: right, the "real" word is apéritif, apéro is a diminutive
kitak_ has joined #ruby
<apeiros> excuse my lack of accents. I'm lazy :)
<arount> maybe i should create a chanel #apero
poikon has quit [Ping timeout: 268 seconds]
<arount> apeiros: no worries, i speak english like a foot (it's a french expression litteraly translated ..)
fgo has quit [Remote host closed the connection]
cocotton has joined #ruby
<toretore> feet don't speak
RowdyChild|Away is now known as RowdyChildren
fgo has joined #ruby
<tobiasvl> feet don't fail me now
m0s^away is now known as m0s
chipotle has joined #ruby
<arount> toretore: after many apéros, my feet speak
kaspergrubbe has joined #ruby
<toretore> a few more shoud quiet them
banister has joined #ruby
banister has quit [Max SendQ exceeded]
maletor has joined #ruby
<arount> toretore: :)
<gaussblurinc> oh, shi-i-it, all stuff with private/protected methods affects class too?
<cocotton> I have an array containing string that begin with an integer (e.g. ["123 blabla", "59 bleble", "2918 hoho"]. Is there a way to sort that array on the integer in each string?
banister has joined #ruby
<toretore> Enumerable#sort is your friend
banister has quit [Max SendQ exceeded]
<cocotton> toretore: I'll go read about that right away :)
blackmesa has quit [Ping timeout: 246 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<havenn> cocotton: sort_by &:to_i
<toretore> actually Array overrides it, so it's Array#sort
<olivier_bK> i have a question
<olivier_bK> i need to develop an application with a server and a client to get file back in client computer.
banister has joined #ruby
<olivier_bK> this api must do some task like update, synchronize etc..
<olivier_bK> could you tel me what is the most appropriate for doing that ?
banister has quit [Max SendQ exceeded]
MatthewsFace has joined #ruby
<toretore> ary.sort{|a,b| a[/^\d+/].to_i <=> b[/^\d+/].to_i }
<apeiros> arount: don't worry, I usually speak french with my feet
banister has joined #ruby
<apeiros> (not really an expression in any language)
banister has quit [Max SendQ exceeded]
SCommette has joined #ruby
cpruitt has joined #ruby
kaspergr_ has quit [Ping timeout: 245 seconds]
fgo has quit [Ping timeout: 252 seconds]
<toretore> i speak french with my foot in my mouth after i put it in the salad
banister has joined #ruby
banister has quit [Max SendQ exceeded]
momomomomo has quit [Quit: momomomomo]
<havenn> >> ["123 blabla", "59 bleble", "2918 hoho"].sort_by &:to_i
<eval-in> havenn => ["59 bleble", "123 blabla", "2918 hoho"] (https://eval.in/130268)
<cocotton> havenn: oh! nice!
<olivier_bK> the most appropriate is socket right ?
tagrudev has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
MatthewsFace has quit [Client Quit]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
rylev has quit [Read error: Connection reset by peer]
mupkoo has joined #ruby
<cocotton> havenn: I'm guessing the &:to_i converts the first word into an integerÉ
<cocotton> ?*
rylev has joined #ruby
ValicekB has joined #ruby
banister has joined #ruby
<arount> my right foot speak french, the other speak english, coordination is hard between us
banister has quit [Max SendQ exceeded]
Elhu has quit [Remote host closed the connection]
paulfm has joined #ruby
<toretore> cocotton: it relies on the fact that String#to_i disregards everything after the initial digits
<cocotton> toretore: I have so much to learn about ruby!
banister has joined #ruby
<atmosx> olivier_bK: sinatra + JSON
<toretore> which is not something you should be relying on
<cocotton> toretore: oh
MatthewsFace has joined #ruby
<havenn> cocotton: ya, a shorter form of `array.sort_by { |item| item.to_i }` that does the same thing. just uses String#to_i: http://ruby-doc.org/core-2.1.1/String.html#method-i-to_i
phansch has quit [Quit: WeeChat 0.4.2]
rvraghav93 has joined #ruby
<atmosx> havenn: would that work if his elements were letters first and numbers after?
<havenn> atmosx: nope
<atmosx> >> ["c123 blabla", "b59 bleble", "a2918 hoho"].sort_by &:to_i
rvraghav93_ has quit [Ping timeout: 240 seconds]
<atmosx> havenn: yeap, of course not
<atmosx> hm
<atmosx> smart thought, I forgot about string.to_i
hfp`away has quit [Ping timeout: 245 seconds]
<atmosx> bbl
tonni_ has joined #ruby
mrnugget has joined #ruby
momomomomo has joined #ruby
[ROOT]XxNeoLiTHi has joined #ruby
jprovazn is now known as jprovazn_afk
MatthewsFace has quit [Client Quit]
robbyoconnor has quit [Ping timeout: 255 seconds]
lectrick__ is now known as lectrick
mengu has quit []
lectrick has quit [Changing host]
lectrick has joined #ruby
RowdyChildren is now known as RowdyChild|Away
<havenn> toretore: using String#to_i for how it works is fine to rely upon. only caveat I can think of is that if the String doesn't begin with digits you'll get a `0`, but easy enough to handle that.
crystal77 has joined #ruby
tonni has quit [Ping timeout: 246 seconds]
carraroj has quit [Ping timeout: 264 seconds]
hfp`away has joined #ruby
<[ROOT]XxNeoLiTHi> Hi all, need some advice on lambda's/method pointers.
<[ROOT]XxNeoLiTHi> Im trying to get the following to be a dynamic directory based on the root as it changes: :dir => { :output_root => File.expand_path("."), :boxes => lambda { File.join(boxes[:dir][:output_root], "boxes") } }
<havenn> unless `0` is what the string might begin with. >.>
<[ROOT]XxNeoLiTHi> but i dont want to do a lambda.call all the time
hfp`away has quit [Remote host closed the connection]
<toretore> havenn: well, that's an opinion
<[ROOT]XxNeoLiTHi> would it be possible to create a global method and assign a method reference to the variable instead?
<toretore> mine is different
noop has quit [Ping timeout: 255 seconds]
sylvanica has joined #ruby
rm_ has joined #ruby
<havenn> toretore: second example in the docs for String#to_i: "99 red balloons".to_i #=> 99
greggroth has joined #ruby
<havenn> not some obscure behavior, just a core Class standard method
ak5 has quit [Ping timeout: 264 seconds]
<toretore> that doesn't change my opinion
<havenn> okay :P
oneawayman has joined #ruby
anarang has quit [Quit: Leaving]
hfp`away has joined #ruby
<lectrick> [ROOT]XxNeoLiTHi: I would not make a lambda dependent on the state of an earlier key in the hash LOL
alexju has joined #ruby
Solnse has joined #ruby
<[ROOT]XxNeoLiTHi> thats assuming context but I get your point
<toretore> make a class
<lectrick> [ROOT]XxNeoLiTHi: also your output root isn't dynamic
yasushi has quit [Remote host closed the connection]
<toretore> with methods
rylev has quit [Read error: Connection reset by peer]
<lectrick> [ROOT]XxNeoLiTHi: yeah you're trying to do too much with a hash here. just make a simple class
rylev has joined #ruby
cocotton has quit [Quit: Page closed]
<lectrick> [ROOT]XxNeoLiTHi: you'd call it like this: DynamicDirectory.new(output_root = File.expand_path('.')).boxes
DouweM has joined #ruby
bahar has quit [Changing host]
bahar has joined #ruby
rvraghav93 has quit [Ping timeout: 255 seconds]
<lectrick> [ROOT]XxNeoLiTHi: actually the output_root = File.expand_path('.') should be in the initialize method of this class, my bad
makara has quit [Quit: Leaving]
<lectrick> so then you could just do DynamicDirectory.new.boxes
<toretore> guy whose nick is too cumbersome to write: what's the purpose and context of this code?
<lectrick> [ROOT]XxNeoLiTHi: yeah, also change your damn nick like toretore said. Not everyone has autocomplete I guess
<[ROOT]XxNeoLiTHi> lol
teddyp1cker has quit []
<[ROOT]XxNeoLiTHi> gotcha and gotcha
<toretore> i do, but i can't even read that
[ROOT]XxNeoLiTHi is now known as xxneolithicxx
cpruitt has quit [Ping timeout: 268 seconds]
<toretore> somewhat better
<xxneolithicxx> tough crowd :-P
<toretore> the worst ones are those that mix lI0O|
<xxneolithicxx> thx for ideas
bal has quit [Quit: bal]
<lectrick> [CLAN_NAME]xXObligatoryRaNDoMCapiTALiZAtioNXxDecoRatiVEuSELeSScharaCTERs[Exclamation]
<lectrick> problem? ;)
toastynerd has joined #ruby
<lectrick> toretore: dude those guys are just intentionally trolling lol
<spstarr_work> is begin /end ===== { } ?
<toretore> no
<lectrick> no but do/end are... mostly
<DefV> ppl who don't have autocomplete in their IRC client should be shot
<spstarr_work> when would you use begin/end? as ablock?
<toretore> spstarr_work: http://ruby-doc.com/docs/ProgrammingRuby/ explains everything
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<spstarr_work> oh its very different
<arount> apeiros: and, why "apeiros"
lolmaus has joined #ruby
<spstarr_work> those are special blocks
<arount> apeiros: and especially why not "apero"
greggroth has quit [Ping timeout: 240 seconds]
deadlock has joined #ruby
jamto11 has joined #ruby
chrisseaton has quit []
<toretore> why not "[xXx]~~aPeIrOs~~[xXx]"?
francisfish has quit [Remote host closed the connection]
himsin has joined #ruby
himsin has quit [Client Quit]
blackmesa has joined #ruby
IceDragon has joined #ruby
jorts has joined #ruby
nomenkun has joined #ruby
Xeago has quit [Remote host closed the connection]
lukec has quit [Quit: lukec]
RaptorJesus has joined #ruby
mway has quit [Quit: mway]
bilbo_swaggins has joined #ruby
schaary|afk is now known as schaary
maletor has quit [Quit: Computer has gone to sleep.]
dx7 has joined #ruby
robde has joined #ruby
zigomir has quit [Remote host closed the connection]
mway has joined #ruby
Celm has joined #ruby
dkamioka has joined #ruby
havenn has quit [Remote host closed the connection]
zigomir has joined #ruby
havenwood has joined #ruby
<robde> hi, I am trying to install hnews, however, I get this error: clang: error: unknown argument: '-multiply_definedsuppress'
tvw has quit []
momomomomo has quit [Quit: momomomomo]
Xeago has joined #ruby
<robde> found a stackexchange question about it, nm
r_rios has quit [Ping timeout: 252 seconds]
mupkoo has quit []
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
Celm has quit [Ping timeout: 265 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
chuk_ has joined #ruby
havenn has joined #ruby
kaspergrubbe has quit [Read error: Operation timed out]
havenn is now known as havenwood_
francisfish has joined #ruby
evenix has joined #ruby
ffranz has quit [Quit: Leaving]
fabrice31 has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 268 seconds]
kaspergrubbe has joined #ruby
yfeldblum has joined #ruby
Xeago_ has joined #ruby
chichou has joined #ruby
momomomomo has joined #ruby
pwh has joined #ruby
hfp`away has quit [Ping timeout: 245 seconds]
ffranz has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
momomomomo has quit [Client Quit]
aganov has quit [Quit: Leaving]
kevind has joined #ruby
karmatr0n has joined #ruby
freezey_ has quit [Remote host closed the connection]
bilbo_swaggins has quit [Quit: Leaving]
einarj has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
hfp`away has joined #ruby
AlexRussia has joined #ruby
karmatr0_ has joined #ruby
karmatr0n has quit [Read error: Connection reset by peer]
gaussblurinc has quit [Quit: Leaving.]
maletor has joined #ruby
dkamioka has quit [Remote host closed the connection]
hfp`away has quit [Ping timeout: 245 seconds]
<apeiros> arount: it's greek. the unbound, infinite. I derived it from anaximandros' "apeiron", the matter from which everything was created
<apeiros> coincidentally, it also means "the unteachable" :D
<arount> apeiros: hum, i should use google before asking stupid question
<arount> apeiros: anyway, i preffer apero
toastynerd has quit [Remote host closed the connection]
<arount> prefer*
<apeiros> no wonder… who wouldn't prefer edibles above all else? :D
* apeiros nouns language - the new trend after verbing
maletor has quit [Quit: Computer has gone to sleep.]
lmickh has joined #ruby
mib_mib has joined #ruby
m0s is now known as m0s^away
papercode has joined #ruby
<mib_mib> hi - why does enumerable not contain 'uniq' ?
siwica has quit [Ping timeout: 252 seconds]
Celm has joined #ruby
yasushi has joined #ruby
Sawbones has joined #ruby
<apeiros> mib_mib: no idea. wondered about that myself.
<apeiros> mib_mib: .to_a.uniq
<mib_mib> apeiros: it has a sort method....
hfp`away has joined #ruby
skaflem has quit [Quit: Leaving]
x1337807x has joined #ruby
<mib_mib> apeiros: yeah that works, except i have a CSV::Table and i want to remove the uniq rows, but i dont want arrays, i want a CSV::Row object so i can refer to fields using json... without converting and converting back
geggam has joined #ruby
Macaveli has quit [Quit: Leaving]
<apeiros> mib_mib: an Enumerable#uniq would return an array anyway
siwica has joined #ruby
<Sawbones> hey guys, what's the difference between defining `def myMethod...end` and `def self.myMethod...end`
b00stfr3ak has joined #ruby
freezey has joined #ruby
havenwood_ is now known as havenwood
<apeiros> Sawbones: one defines an instance method in the class/module, the other a class method
jhass is now known as jhass|off
<apeiros> that's the quick and lazy explanation
zcreative has joined #ruby
<mib_mib> apeiros: yeah i guess you're right - although i want to keep the row objects... i guess i will just have to put them in an array myself
Alina-malina has quit [Read error: Connection reset by peer]
<apeiros> the thorough and more correct explanation only changes for the def self.foo one: it defines an instance method in self's singleton_class. so you can do this for every object which can have a singleton_class (which is almost all)
mikepack has joined #ruby
<apeiros> mib_mib: to_a.uniq should give you an array of row objects
roolo has joined #ruby
<apeiros> if not, then .each doesn't yield row objects
Alina-malina has joined #ruby
<apeiros> oh, or to_a doesn't…
<mib_mib> apeiros: to_a gives you an array of arrays
<apeiros> right, because Table has its own to_a and doesn't use Enumerable#to_a
snath has joined #ruby
<apeiros> well, just check what gives you an array of rows, then call .uniq on that
<havenwood> Sawbones: in `class Example; def self.something; end end` the `self` is `Example`, so you're defining `def Example.something`. The `self` makes it so you can rename the Class/Module without having to rename everything.
* apeiros off for commute
apeiros has quit [Remote host closed the connection]
bilbo_swaggins has joined #ruby
apeiros has joined #ruby
Lucky_Red has joined #ruby
zcreative has quit [Client Quit]
<havenwood> Sawbones: so without `self` you'd `Example.new.something` and with it you'd `Example.something`.
* havenwood needs more coffee.
bilbo_swaggins has quit [Client Quit]
<Sawbones> ohhhh ok, it's sort of like a static method?
<Sawbones> to access a method without self, I'd have to instantiate a new Class before having access to the method
<nath_schwarz> Is it mandatory to create a class variable w/ "def classVariable; @classVariable: end" or is the statement @classVariable enough?
<havenwood> Sawbones: ya
<Sawbones> woo! thanks havenwood
chichou has quit [Remote host closed the connection]
funktor has quit [Remote host closed the connection]
freeone3000 has joined #ruby
_justin has quit [Quit: _justin]
<robde> how would you convince someone of ruby in maximal three sentences? (someone who did some java, lisp, python, c++, haskell and prolog programming but couldn’t find his favorite language yet)
<freeone3000> How do I make ['a'].zip(['a', 'b']) { |a, b| p a + ' ' + b } have a second iteration of 'nil, b'?
carlyle has joined #ruby
apeiros has quit [Ping timeout: 245 seconds]
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
enebo has joined #ruby
funktor has joined #ruby
RowdyChild|Away is now known as RowdyChildren
browndawg has left #ruby [#ruby]
sski has quit [Remote host closed the connection]
rayners has joined #ruby
funktor has quit [Remote host closed the connection]
kaspergr_ has joined #ruby
sski has joined #ruby
workmad3 has joined #ruby
karmatr0_ has quit []
r_rios has joined #ruby
jibi has quit [Read error: Operation timed out]
karmatr0n has joined #ruby
aspires has joined #ruby
m4n1f3st0 has joined #ruby
Sawbones has quit []
soulcake has quit [Read error: Connection reset by peer]
<havenwood> freeone3000: >> ['a'].zip(['a', 'b']) #=> [["a", "a"]]
zcreative has joined #ruby
<havenwood> freeone3000: what is you're expected output?
<freeone3000> havenwood: "a a", "nil b".
soulcake has joined #ruby
kaspergrubbe has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 268 seconds]
zcreative has quit [Client Quit]
hfp`away has quit [Ping timeout: 245 seconds]
zigomir has quit [Remote host closed the connection]
ndrei has joined #ruby
ce_afk is now known as cescalante
fijimunkii has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
sski has quit [Ping timeout: 252 seconds]
fijimunkii has joined #ruby
SCommette has quit [Quit: SCommette]
GaryOak_ has joined #ruby
zcreative has joined #ruby
<havenwood> >> ['a', 'b'].zip ['a']
<eval-in> havenwood => [["a", "a"], ["b", nil]] (https://eval.in/130277)
m4n1f3st0 has quit []
greggroth has joined #ruby
<freeone3000> havenwood: Yep. I'd like to not care about the order of the arrays.
maletor has joined #ruby
ctp has quit [Quit: Leaving...]
klaut has quit [Remote host closed the connection]
hfp`away has joined #ruby
sdouglas has joined #ruby
zcreative has quit [Client Quit]
kitak_ has quit [Remote host closed the connection]
kitak_ has joined #ruby
m0s^away is now known as m0s
quatron has joined #ruby
zigomir has joined #ruby
michaeldeol has joined #ruby
cescalante is now known as ce_afk
funktor has joined #ruby
andrewlio has joined #ruby
ahawkins has quit [Quit: leaving]
<freeone3000> >> a = ['a']; b = ['a', 'b']; c = [].fill(nil, nil, [a.size, b.size].max); c.zip(a, b) { |_, a_part, b_part| p a_part + ' ' + b_part }
<eval-in> freeone3000 => "a a" ... (https://eval.in/130282)
<freeone3000> havenwood: Best I've come up with. There has to be something that does't use that temp.
chrisseaton has joined #ruby
<workmad3> freeone3000: why not 'a = ['a']; b = ['a', 'b']; a.size > b.size ? a.zip(b) : b.zip(a)
mesamoo has quit [Quit: Konversation terminated!]
<workmad3> >> a = ['a']; b = ['a', 'b']; a.size > b.size ? a.zip(b) : b.zip(a)
<eval-in> workmad3 => [["a", "a"], ["b", nil]] (https://eval.in/130283)
slopjong has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
ce_afk is now known as cescalante
<freeone3000> workmad3: Because that throws off the order. I'm writing a comparator.
<workmad3> >> a = ['a']; b = ['a', 'b']; a.size > b.size ? a.zip(b) : b.zip(a).map(&:reverse)
<eval-in> workmad3 => [["a", "a"], [nil, "b"]] (https://eval.in/130284)
<workmad3> freeone3000: there ya go :P
<freeone3000> workmad3: Ah. Thanks.
<DouweM> :D
noctua has joined #ruby
pothibo has joined #ruby
<noctua> hey everyone. I try to install rails on my Mac (Mavericks). After installing it says that rails is not installed. This is what i got: https://gist.github.com/donnoc/9916660
<workmad3> noctua: please don't use sudo for installing gems
oneawayman has quit [Ping timeout: 245 seconds]
dotemacs has joined #ruby
<noctua> workmad3: but when i don't use sudo i got "permission denied"
freezey has quit [Remote host closed the connection]
<workmad3> noctua: use 'gem install rails --user-install'
cescalante is now known as ce_afk
havenwood has quit [Remote host closed the connection]
<noctua> workmad3: thx, i will give it a try
havenwood has joined #ruby
funktor has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
funktor has joined #ruby
chrisseaton has quit [Ping timeout: 265 seconds]
siwica has quit [Ping timeout: 252 seconds]
funktor has quit [Read error: Connection reset by peer]
moted has quit [Quit: moted]
funktor has joined #ruby
mib_mib has quit [Ping timeout: 245 seconds]
moted has joined #ruby
momomomomo has joined #ruby
RowdyChildren is now known as RowdyChild|Away
toastynerd has joined #ruby
mikepack_ has joined #ruby
qba73 has quit [Remote host closed the connection]
jhass|off is now known as jhass
mrnugget has quit [Ping timeout: 246 seconds]
ce_afk is now known as cescalante
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dstynchula has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
phutchin1 has joined #ruby
freezey has joined #ruby
dstynchu_ has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
bluenemo has quit [Remote host closed the connection]
yfeldblum has joined #ruby
phutchins has quit [Ping timeout: 268 seconds]
x1337807x has quit [Ping timeout: 246 seconds]
hippyphysicist has joined #ruby
dstynchula has quit [Ping timeout: 240 seconds]
Maitiu has quit [Ping timeout: 264 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
benzrf|offline is now known as benzrf
apeiros has joined #ruby
simono has joined #ruby
x1337807x has joined #ruby
hippyphysicist has quit [Read error: Connection reset by peer]
<noctua> workmad3: Still the same problem: https://gist.github.com/donnoc/9917382
afreidah has quit [Read error: Operation timed out]
<momomomomo> noctua: how have you installed ruby?
clov3r has joined #ruby
<havenwood> noctua: can you Gist what you got for?: gem env
<benzrf> apeiros: got time for quick now
<benzrf> o3o
<havenwood> benzrf: he said he was off to commute
<benzrf> oh
<apeiros> benzrf: told you, week-end, sorry. unless it's less than 15min to get it to work
<apeiros> havenwood: yeah, I've done commuting :)
<benzrf> ¬_¬
<havenwood> apeiros: nice, fast commute! ;)
<benzrf> apeiros: do you already have libfuse-dev?
<apeiros> havenwood: yeah, ~25min door to door
<noctua> yes ruby is installed over brew
clov3r has quit [Client Quit]
<apeiros> that's by bike or train. by car it'd be ~20-50min, depending on traffic
poguez_ has joined #ruby
LiohAu has quit [Quit: LiohAu]
tvw has joined #ruby
<havenwood> noctua: does it work if you run?: export PATH=$(brew --prefix ruby)/bin:$PATH
<shevy> so basically it's just around the corner!
freeone3000 has left #ruby ["Konversation terminated!"]
lkba has quit [Ping timeout: 264 seconds]
olivier_bK has quit [Read error: Operation timed out]
nomenkun has quit [Remote host closed the connection]
xxneolithicxx has left #ruby [#ruby]
dagobah has quit [Quit: Leaving...]
<noctua> havenwood: Yes ... this woked. is it an other path than export PATH=$PATH:/Users/artur/.gem/ruby/2.1.0/bin ?
shredding has quit [Quit: shredding]
papercode has quit [Remote host closed the connection]
papercode has joined #ruby
kaspergrubbe has joined #ruby
jarray52 has joined #ruby
yasushi has quit [Remote host closed the connection]
<noctua> havenwood: ok, I see it is an other xD ... thank you verry much
<benzrf> apeiros: if u already have libfuse/libfuse-dev then u can just gem install quick
<benzrf> :u
<apeiros> benzrf: let me see how well homebrew works today :)
<benzrf> +
<benzrf> oop
robde has quit [Quit: Bye.]
obs has quit [Quit: Konversation terminated!]
kaspergr_ has quit [Ping timeout: 255 seconds]
_maes_ has joined #ruby
diegoviola has joined #ruby
afreidah has joined #ruby
dapz has joined #ruby
maletor has joined #ruby
toastynerd has quit [Remote host closed the connection]
s2013 has joined #ruby
toastynerd has joined #ruby
<shevy> hah
<shevy> you poor osx dudes!
toastynerd has quit [Remote host closed the connection]
andy___ has joined #ruby
<noctua> why poor?
zachallett has quit [Remote host closed the connection]
andy___ is now known as Guest24463
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> noctua: he just means we have no money.
<noctua> havenwood: xD
andy__ has quit [Read error: Connection reset by peer]
brianpWins has quit [Quit: brianpWins]
lal00 has joined #ruby
lal00 has left #ruby [#ruby]
mikecmpbll has quit [Ping timeout: 264 seconds]
saarinen has joined #ruby
arount has quit [Quit: leaving]
<benzrf> cuz u spent it all on expensive apple bullshit
duggiefresh has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
freerobby has quit [Quit: Leaving.]
x1337807x has joined #ruby
momomomomo has quit [Quit: momomomomo]
yfeldblum has quit [Remote host closed the connection]
SCommette has joined #ruby
momomomomo has joined #ruby
yfeldblum has joined #ruby
<noctua> benzrf: Why? you think 10,000EUR for the top Mac Pro is too much?
hfp`away has quit [Ping timeout: 245 seconds]
dtcrshr has joined #ruby
m0s is now known as m0s^away
<noctua> upgraded*
benzrf is now known as benzrf|offline
yfeldblum has quit [Read error: Connection reset by peer]
lambo has joined #ruby
carraroj has joined #ruby
yfeldblum has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
nvrch has quit [Quit: nvrch]
Spami has joined #ruby
toastynerd has joined #ruby
chuk_ has quit [Ping timeout: 255 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
hfp`away has joined #ruby
red234324 has joined #ruby
danshultz has quit [Ping timeout: 265 seconds]
pwh has quit []
geggam has quit [Ping timeout: 265 seconds]
freggles has joined #ruby
Guest24463 has quit [Read error: Connection reset by peer]
poikon_ has quit []
andy__ has joined #ruby
lukec has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
chuk_ has joined #ruby
zigomir has quit [Remote host closed the connection]
duggiefresh has joined #ruby
vlad_starkov has quit []
horrorvacui has joined #ruby
Zai00 has quit [Quit: Zai00]
Guest32172 has joined #ruby
<shevy> noctua for having to depend on homebrew!
sambao21 has joined #ruby
<Hanmac> shevy: did you hear that about the new Airport in Berlin? they think it would cost less if they breakdown the city, search for an existing/working airport and build berlin around the new one again
AntelopeSalad has quit []
<shevy> Hanmac unfortunately today is the most hated day
<shevy> I am boycotting that day though
<certainty> Hanmac: it's a good one though :)
smathieu has joined #ruby
heftig has joined #ruby
samlt has quit [Ping timeout: 268 seconds]
rylev has quit [Remote host closed the connection]
<shevy> well
<shevy> the problem is that they want to build something
rylev has joined #ruby
<shevy> the proper solution would have been to do away with Berlin altogether
<shevy> then you won't need an airport either
<shevy> keep it simple!
Tron___ has joined #ruby
AntelopeSalad has joined #ruby
badhatter has joined #ruby
benzrf|offline is now known as benzrf
monkegjinni has joined #ruby
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Hanmac> certainty: the problem, if they keep doing it like that it seems to become true
<horrorvacui> Its been months since I was on here, but I still see shevy talking about things
<horrorvacui> lol
Tron___ has quit [Client Quit]
lyanchih_ has quit [Ping timeout: 246 seconds]
kaliya has quit [Quit: Lost terminal]
<Hanmac> horrorvacui: no wrong, i keep talking about things, shevy is only responding ;P
<horrorvacui> yeah seems like the same ole people on here
tskogberg has quit [Read error: Connection reset by peer]
aniM has joined #ruby
Xiti has joined #ruby
afreidah has quit [Ping timeout: 265 seconds]
<aniM> hey folks. I am trying this and index and deleted method don't seem to work for index 0 element:
<shevy> horrorvacui there are some new folks but they often talk much less
benzrf is now known as benzrf|offline
<shevy> horrorvacui usually most just have one question, it gets solved (or not), then they stop talking
freeone3000 has joined #ruby
Xeago_ has quit [Remote host closed the connection]
<freeone3000> I'm using a Rakefile with minitest. How do I execute code *after* all tests?
<aniM> http://pastebin.com/raw.php?i=0JAisQcL Please guide me as to why index and delete aren't working!
slash_nick is now known as iitywimwybmab
<shevy> that looks like specialized rails code
rylev has quit [Ping timeout: 264 seconds]
<freeone3000> aniM: Role.delete().
subbyyy_ has joined #ruby
<aniM> frreone300 : I don't want to delete all
rmorello has joined #ruby
<aniM> freeone3000*
decoponyo has joined #ruby
<freeone3000> aniM: Which is why it takes an argument.
<horrorvacui> Is that active record?
red234324 has quit [Quit: Leaving]
<horrorvacui> aniM: why not use destroy?
sdwrage has joined #ruby
<aniM> freeone3000: Isn't that what I have already done?
oo_ has joined #ruby
sputnik1_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
EminenceHC has joined #ruby
m0s^away is now known as m0s
sputnik1_ is now known as sputnik13net
benzrf|offline has quit [Ping timeout: 265 seconds]
markisonfire has joined #ruby
tylersmith has joined #ruby
yfeldblum has joined #ruby
freezey has quit [Remote host closed the connection]
<freeone3000> aniM: You're calling it on the wrong thing.
decoponio has quit [Ping timeout: 245 seconds]
testcore has joined #ruby
freezey has joined #ruby
freezey has quit [Remote host closed the connection]
Elico1 has joined #ruby
dx7 has quit [Remote host closed the connection]
freezey has joined #ruby
Thaifood has joined #ruby
<aniM> Also check this one: http://pastebin.com/raw.php?i=4FHnVyq2 freeone3000 horrovacui
<aniM> horrorvacui
funktor has quit [Remote host closed the connection]
<freeone3000> aniM: us_id.to_s == "5329f0e2ff08a31b54000001"
lambo has quit [Quit: leaving]
<aniM> ah my bad :(
funktor has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Thaifood> hi, I am on Centos 6.5. I did "yum install ruby" to install ruby and then did "gem install guard-livereload" but I get "gem command not found". Any ideas please ?
Elico has quit [Ping timeout: 252 seconds]
oo_ has quit [Ping timeout: 245 seconds]
<Thaifood> i have 1.8.7 ruby installed
<freeone3000> Thaifood: CentOS packages ruby and rubygems separately.
kaspergrubbe has quit [Read error: Operation timed out]
<Thaifood> freeone3000: thank you !
geggam has joined #ruby
coderhs has joined #ruby
<workmad3> Thaifood: also, ruby 1.8.7 is completely dead now... if that's all that is available in packages, you really want to install using something like ruby-install, ruby-build or rvm
<horrorvacui> Is version 1.8 even supported any more?
echevemaster has joined #ruby
<s2013> yea
<s2013> get 2
x1337807x has joined #ruby
<s2013> 1.9.3 if you must get something earlier
<horrorvacui> Consider rvm,chruby, rbenv or something
<Thaifood> centos 6.5 only has that in the packages
<shevy> that's sad
<workmad3> horrorvacui: chruby and rbenv don't have ruby installation... ruby-install and ruby-build are the respective builders :)
<shevy> enjoy your old ruby
<horrorvacui> true
<banister> workmad3 hey, do u know much about ack? htf can i get it to ignore log files
<Thaifood> and guard-livereload requires 1.9.2
<Thaifood> shevy: how to get a newer one ?
<shevy> compile it
<horrorvacui> but If he follows the github instructions he'll be told how to acquire ruby-install or ruby-build
<Thaifood> is there an rpm ?
<shevy> wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.bz2
kaspergrubbe has joined #ruby
<shevy> you are in the centos prison, I am sure centos provides a way for its slaves to get some rpm
<workmad3> banister: not that much about ack... but surely you could filter the list of files you pipe into it as a way to ignore?
yacks has quit [Ping timeout: 264 seconds]
<Thaifood> i am currently just loading packages, i'm afraid if i compile something i'll break the package manager
papercode has quit [Quit: WeeChat 0.4.4-dev]
<workmad3> Thaifood: you won't ;)
rainmanjam has joined #ruby
<shevy> Thaifood, that does not make sense - you can use the --prefix option to compile ruby into some directory
<workmad3> Thaifood: ruby-install and rvm will even make good use of the package manager for the dependencies that work from there (ruby-build might do to, but last I checked you needed to manually invoke the package manager there)
funktor has quit [Ping timeout: 264 seconds]
<shevy> as far as I know, RVM also uses --prefix
sigurding has quit [Quit: sigurding]
<havenwood> Thaifood: if you need only one Ruby a nice option is to ruby-install to /usr/local
dweeb_ has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
rippa has joined #ruby
noctua has quit [Ping timeout: 255 seconds]
elaptics is now known as elaptics`away
toastynerd has quit [Remote host closed the connection]
Senjai has quit [Changing host]
Senjai has joined #ruby
hemanth has quit [Quit: This computer has gone to sleep]
LekeFly has joined #ruby
momomomomo has quit [Quit: momomomomo]
freerobby has joined #ruby
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
danshultz has joined #ruby
francisfish has quit [Remote host closed the connection]
binaryhat has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
klaut has joined #ruby
lambo has joined #ruby
francisfish has joined #ruby
<spstarr_work> can you shortform if/else?
zachallett has joined #ruby
<spstarr_work> puts "Line: #{line.chomp} matches!" if line.match('WOOT') else puts "LINE: #{line}" <--- ?
ghr has quit [Ping timeout: 264 seconds]
<havenwood> workmad3: yeah, no package manager automation still in ruby-build
afreidah has joined #ruby
kpshek has joined #ruby
oo_ has joined #ruby
hobodave has joined #ruby
lolmaus_ has joined #ruby
fijimunkii has quit [Ping timeout: 252 seconds]
lolmaus has quit [Ping timeout: 265 seconds]
<spstarr_work> oh '?' like C
rdark has quit [Quit: leaving]
<havenwood> spstarr_work: ya, ternary operator
<workmad3> spstarr_work: yeah, ruby has a ternary
<workmad3> havenwood: dammit :P
<spstarr_work> ya
<havenwood> workmad3: i left the 'e' and 'h' off of 'yeah' to beat you! :P
mikecmpbll has joined #ruby
<workmad3> havenwood: :D
francisfish has quit [Ping timeout: 268 seconds]
<spstarr_work> oh it requires ( )
shabgard has joined #ruby
<spstarr_work> foo ? (A) : (B)
oo__ has joined #ruby
<spstarr_work> interesting that Ruby enforces () for that
oo_ has quit [Read error: Connection reset by peer]
<workmad3> spstarr_work: it doesn't
<spstarr_work> ??
<workmad3> >> true ? "hi" : "ho"
<spstarr_work> it seems to for me with a puts
<eval-in> workmad3 => "hi" (https://eval.in/130317)
davy has joined #ruby
gigetoo has quit [Remote host closed the connection]
<spstarr_work> line.match('WOOT') ? (puts "Line: #{line.chomp} matches!") : (puts "LINE: #{line}")
<havenwood> >> true ? puts('hi') : :never
<eval-in> havenwood => hi ... (https://eval.in/130318)
binaryhat has quit [Quit: Leaving]
<Thaifood> i'm compiling ruby, run for cover :-)
lkba has joined #ruby
<workmad3> spstarr_work: puts is a method call... it's a situation where you need the parens for the method call to disambiguate at times :)
lukec has quit [Quit: lukec]
<havenwood> spstarr_work: method args do then require parens
<spstarr_work> doh ;)
gigetoo has joined #ruby
oo__ has quit [Ping timeout: 268 seconds]
ndrei has quit [Read error: Operation timed out]
AlSquire has quit [Quit: This computer has gone to sleep]
brianpWins has joined #ruby
<Thaifood> it worked. yay compile
jdbcisco has joined #ruby
<Thaifood> thanks for the help
hfp`away has quit [Ping timeout: 245 seconds]
rylev has joined #ruby
cover has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
yfeldblum has joined #ruby
hfp`away has joined #ruby
<freeone3000> Is there any documentation available for CoverMe that doesn't assume I'm running rails? I'd like to get coverage for a gem I'm testing.
roolo has quit [Quit: Leaving...]
benzrf|offline has joined #ruby
benzrf|offline is now known as benzrf
rylev has quit [Read error: Operation timed out]
AndChat| has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kpshek has quit []
* spstarr_work looks at Thaifood and wants some now :p
<havenwood> freeone3000: maybe checkout SimpleCov as a possible alternative: https://github.com/colszowka/simplecov#readme
<spstarr_work> Pad thai please!
<freeone3000> havenwood: Needs to work with Ruby 2.0
* Thaifood gives eggrolls to everyone !
<pipework> freeone3000: What makes you think it doesn't work with ruby 2?
<havenwood> freeone3000: they have 2.0 and 2.1 in their travis.yml
<freeone3000> pipework: Because the last time I tried it I didn't.
maroloccio2 has quit [Quit: WeeChat 0.4.3]
dweeb_ has quit [Ping timeout: 240 seconds]
<pipework> freeone3000: might want to give it another go
chuk_ has quit [Quit: Leaving]
<havenwood> oops, i chose an old job, but yeah should work it appears
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
jenskarlsen has quit [Quit: jenskarlsen]
jkamenik has quit [Quit: Leaving.]
oo_ has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<freeone3000> Ah, okay. 0.7.3 is generating decent coverage.
AndChat| has quit [Ping timeout: 240 seconds]
thrillagorilla has joined #ruby
rylev has joined #ruby
freerobby has quit [Quit: Leaving.]
<Thaifood> Anyone know how to setup guard-livereload ? I got them installed but the docs make no sense to me on what next.
davy has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 255 seconds]
lukec has joined #ruby
rylev has quit [Read error: Operation timed out]
reset has joined #ruby
IceDragon has quit [Ping timeout: 268 seconds]
bjeanes|away is now known as bjeanes
jmimi1 has joined #ruby
pigzzcanfly has joined #ruby
shabgard has quit [Quit: Aji maji la taraji]
freerobby has joined #ruby
oo_ has quit [Ping timeout: 264 seconds]
subbyyy_ has quit [Ping timeout: 264 seconds]
mehlah has quit [Quit: Leaving...]
nanoyak has joined #ruby
jmimi has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 240 seconds]
shinobi_one has joined #ruby
<horrorvacui> Thaifood: have you used guard init and setup your guard file etc?
<horrorvacui> Thaifood: tell us what you are stuck on in particular
<Thaifood> i'm unable to find guard to run it atm
kpshek has joined #ruby
<workmad3> Thaifood: the docs for Rack::LiveReload tell you what to do in rails (it's just adding a single line to config/environments/development.rb iirc)
jpstokes has joined #ruby
<Thaifood> maybe here ? /opt/ruby/211/lib/ruby/gems/2.1.0/gems/guard-2.6.0/bin
<jpstokes> I'm finishing up a coding assignment and wouldn't you the last thing I need to do is giving me problems...anyway, I have the following rspec file to test my app...in the last test case I've having a problem with the test passing SOMETIMES and sometimes failing. Any insight would be more than appreciated '#triple_crown_winner when critieria met' https://gist.github.com/jpstokes/9918743
toastynerd has joined #ruby
<Thaifood> i did setup a guard file
<Thaifood> i think i'm getting there
kaspergrubbe has quit [Ping timeout: 255 seconds]
mikepack_ has quit [Remote host closed the connection]
mikepack has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
danshultz has quit [Remote host closed the connection]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has quit []
danshultz has joined #ruby
toastynerd has quit [Ping timeout: 252 seconds]
danshult_ has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
ctp has joined #ruby
mityaz has joined #ruby
<freeone3000> My rakefile is at https://gist.github.com/freeone3000/4c9fe510a211077f9b42 . Why does SimpleCov cover no files?
pirelenito has joined #ruby
<jpstokes> I'm finishing up a coding assignment and wouldn't you know the last thing I need to do is giving me problems...anyway, I have the following rspec file to test my app...in the last test case I've having a problem with the test passing SOMETIMES and sometimes failing. Any insight would be more than appreciated '#triple_crown_winner when critieria met' https://gist.github.com/jpstokes/9918743
aspires has joined #ruby
coderhs has joined #ruby
_justin has joined #ruby
michael_lee has quit [Ping timeout: 245 seconds]
fijimunkii has joined #ruby
cover has joined #ruby
<jhass> jpstokes: clean up or yet better do not even persist the objects you create
<Thaifood> yay it works
Vovko has joined #ruby
<horrorvacui> jpstokes you need to dry that up
<Thaifood> had to add ruby to path
<jpstokes> don't understnad
IceDragon has joined #ruby
Vovko has quit [Client Quit]
<atmosx> jpstokes: it's wet
hemanth has joined #ruby
<atmosx> jpstokes: hydrolysis might occur
kaspergrubbe has joined #ruby
<jpstokes> I'm am rolling back the db after each test case
mansi has quit [Read error: Connection reset by peer]
<atmosx> bonds might brake
lambo has quit [Quit: leaving]
<atmosx> why are you rolling back the db?
mansi has joined #ruby
<jhass> jpstokes: that's not apparent from the stuff you posted
shinobi_one has quit [Quit: shinobi_one]
carraroj has quit [Ping timeout: 265 seconds]
<jpstokes> if case is a transaction and it rolls back after each test case
<jpstokes> each case is a transaction and it rolls back after each test case
<jhass> code style wise you should avoid class variables (@@players)
dx7 has joined #ruby
<jhass> maybe that's your issue already
bricker has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<jhass> since they're shared among all instances
<jhass> (and subclasses)
<jpstokes> the rollback is in the spec_helper which I just added to gist: https://gist.github.com/jpstokes/9918743
chipotle has quit [Quit: cya]
ndrei has joined #ruby
subbyyy_ has joined #ruby
kaspergrubbe has joined #ruby
<jpstokes> I think that might have something to do with it jhass...I put in some print statements and when it fails @@players.count is 0
<horrorvacui> jpstokes: why are you storing objects AND then creating variables for attributes of those objects too?
toastynerd has joined #ruby
<jhass> Line 35 seems to do nothing
michael_lee has joined #ruby
<jpstokes> to ensure they are returning the correct result
<jhass> also use && over and
<miah> i'd just run rubocop and pass over that list ;)
<horrorvacui> do what miah said
<horrorvacui> lol
prs has quit [Ping timeout: 260 seconds]
hemanth has quit [Quit: This computer has gone to sleep]
mansi has quit [Remote host closed the connection]
<horrorvacui> When is this assignment due? jpstokes
mansi has joined #ruby
Elico has joined #ruby
Elico1 has quit [Read error: Connection reset by peer]
<jhass> jpstokes: btw you can probably reproduce the failing case with --seed 48978
Thaifood has left #ruby [#ruby]
<jpstokes> jhass it might have been the class variable thing...I've ran it several times now and it won't fail again
<jpstokes> horrorvacui asap
<jhass> jpstokes: do you understand why it was an issue?
diegoviola has quit [Quit: WeeChat 0.4.3]
funktor has joined #ruby
kennym has quit [Quit: Leaving.]
jprovazn_afk is now known as jprovazn
mansi has quit [Ping timeout: 265 seconds]
wallerdev has joined #ruby
saarinen has quit [Quit: saarinen]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
prs has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
kennym has joined #ruby
kennym has quit [Changing host]
kennym has joined #ruby
rezzack has joined #ruby
saarinen has joined #ruby
smathieu has quit [Remote host closed the connection]
momomomomo has joined #ruby
kaspergrubbe has quit []
AlexRussia has quit [Read error: Operation timed out]
hiall has quit [Ping timeout: 255 seconds]
smathieu has joined #ruby
Elico1 has joined #ruby
<jpstokes> jhass: no I don't understand why that caused an issue
<jhass> >> class Foo; def bar; @@ba ||= nil r; end; def bar=(v); @@bar = v; end; end; Foo.new.bar ||= :a; Foo.new.bar ||= :b; Foo.new.bar
<eval-in> jhass => /tmp/execpad-27d620053178/source-27d620053178:2: syntax error, unexpected tIDENTIFIER, expecting keyword_end ... (https://eval.in/130325)
<jhass> >> class Foo; def bar; @@ba ||= nil; end; def bar=(v); @@bar = v; end; end; Foo.new.bar ||= :a; Foo.new.bar ||= :b; Foo.new.bar
<eval-in> jhass => nil (https://eval.in/130326)
toastynerd has quit [Remote host closed the connection]
<jhass> arg
<jhass> >> class Foo; def bar; @@bar ||= nil; end; def bar=(v); @@bar = v; end; end; Foo.new.bar ||= :a; Foo.new.bar ||= :b; Foo.new.bar
<eval-in> jhass => :a (https://eval.in/130327)
ascarter has joined #ruby
<jhass> the last one
ascarter has quit [Max SendQ exceeded]
<jhass> as you can see @@bar is shared accross instances
ascarter has joined #ruby
<jhass> so if a test hit your method it stored @@players and due to the ||= later test had no chance to reassign it
mgorbach has quit [Ping timeout: 246 seconds]
michaeldeol has joined #ruby
Elico has quit [Ping timeout: 245 seconds]
pen has joined #ruby
toastynerd has joined #ruby
rm___ has joined #ruby
AlexRussia has joined #ruby
rm___ is now known as Guest36155
chichou has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
noop has joined #ruby
dblessing has quit [Quit: dblessing]
Zai00 has joined #ruby
banister has quit [Ping timeout: 246 seconds]
mansi has joined #ruby
Zai00 has quit [Client Quit]
mgorbach has joined #ruby
smathieu has quit [Remote host closed the connection]
hobodave has joined #ruby
smathieu has joined #ruby
<jpstokes> cool thanks for pointing that out
rm_ has quit [Ping timeout: 268 seconds]
<jpstokes> I did install rubocop btw and it does not like my code :-(
pel_daniel has joined #ruby
<jhass> in practice you never need class variables, so don't use them unless you can argue why every other solution wouldn't work
Elico1 has quit [Ping timeout: 268 seconds]
prs has quit [Changing host]
prs has joined #ruby
Lewix has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
spider-mario has joined #ruby
nouitfvf_ has quit [Ping timeout: 268 seconds]
napcae is now known as memcat
memcat is now known as Memcat
<horrorvacui> jpstokes: did you ever get the test case to pass?
<jpstokes> horrorvacui: yes I changed the class variable to an instance variable as jhass suggested and that fixed it
<jpstokes> working on these rubocop suggestions now
<horrorvacui> jpstokes: mind me asking what kinda of class is this assignment for?
<jpstokes> this is actually for a job
<horrorvacui> job interview?
neurom_ is now known as roflik
m0s is now known as m0s^away
dapz has joined #ruby
<jpstokes> phase 1...i think the next step is the interview
<horrorvacui> I see.
maximski has quit []
x77686d has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nath_schwarz has quit [Quit: lost_conn]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
zcreative has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
mansi has quit [Remote host closed the connection]
banister has joined #ruby
mansi has joined #ruby
blaxter has quit [Quit: foo]
CreativeEmbassy has quit [Quit: FO SHO]
<shevy> phase 2... draw the knife
mansi_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
<horrorvacui> Are ghost methods something that are frowned upon in use in the real world? I feel like they have to much potential to clash with other methods.
rylev has joined #ruby
<shevy> what is a ghost method
<shevy> and there can't be a clash in ruby, can there be? the last one defined always wins
GaryOak_ has quit [Remote host closed the connection]
cgore has joined #ruby
<horrorvacui> method_missing
sambao21 has joined #ruby
codabrink has quit [Ping timeout: 264 seconds]
codabrin_ has joined #ruby
<shevy> ack
<shevy> the most horrible method (right after eval)
<horrorvacui> so is your response a yes?
abra has quit [Quit: Textual IRC Client: www.textualapp.com]
klaut has quit [Remote host closed the connection]
CreativeEmbassy has joined #ruby
<toretore> horrorvacui: as with most things, it depends
arietis has joined #ruby
<horrorvacui> Also, since its now > 1.9 is the practice to use BasicObject for a clean slate or do people still use the undef_method?
wallerdev has joined #ruby
<toretore> you should use BasicObject
rylev has quit [Ping timeout: 255 seconds]
<horrorvacui> Okay thanks toretore
sambao21 has quit [Client Quit]
robbyoconnor has joined #ruby
zcreative has quit [Quit: Computer has gone to sleep.]
Elico has joined #ruby
pel_daniel has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
pel_daniel has joined #ruby
afex has joined #ruby
CorySimmons has joined #ruby
pirelenito has quit [Quit: pirelenito]
jxport has quit [Quit: leaving]
Memcat is now known as napcae
nouitfvf has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
pirelenito has joined #ruby
amaltson has joined #ruby
pirelenito has quit [Client Quit]
jonmorehouse has joined #ruby
flops has quit [Quit: leaving]
<amaltson> hello everyone, I'm trying to use Rake's package task to build up a tarball, but I'd like it to start the root of the tarball in a subdirectory. Is there a way to do that? Been looking here: http://rake.rubyforge.org/classes/Rake/PackageTask.html
sylvanica has quit []
zigomir has joined #ruby
andy__ has quit [Remote host closed the connection]
CorySimmons has quit [Quit: Zzz...]
<horrorvacui> I'm trying to get an idea of what type questions I might get in a Ruby job interview. Does anyone recall questions on data structures such as trees, graphs, etc?
andy__ has joined #ruby
<canton7> amaltson, Dir.chdir first ?
<amaltson> canton7: I tried that :(
carlyle has joined #ruby
<canton7> and...?
<amaltson> when I do a p.package_files.include('**/*') after the Dir.chdir it packaged the entire root folder
<iitywimwybmab> horrorvacui: I was asked questions like that when interviewing for companies out west...something like "write a 4x4 boggle board solver"
<iitywimwybmab> horrorvacui: when you try to solve the problem, you might consider data structures
<amaltson> the package_files is a Rake FileList, trying to see if there's a subdir feature on FileList
<freeone3000> I want coverage for a rake task. My rakefile is at https://gist.github.com/freeone3000/4c9fe510a211077f9b42 . Why does this not generate coverage for anything when running `rake coverage`?
pel_daniel1 has joined #ruby
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<horrorvacui> iitywimwybmab: just seems like ruby lacks as much need for focusing on datastructure implementation
<horrorvacui> but thats what I was looking for
chipotle has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
<freeone3000> horrorvacui: The startup time is too long, and performance is too low, for useful engineering to produce tangible benefits. Much like you don't optimize COBOL, Ruby speed optimization is really your last priority.
YamakasY_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
pel_daniel has quit [Ping timeout: 246 seconds]
andy__ has quit [Ping timeout: 265 seconds]
* Hanmac writes C++ bindings for ruby ... the speed is not that bad (even when the eventsloop is on the ruby side)
Yamakas__ has joined #ruby
<horrorvacui> Well I guess just to brush up some, I'll still play around with some data structures.
<banister> Hanmac wanna hang out
robbyoconnor has joined #ruby
sambao21 has joined #ruby
<amaltson> yeah don't see anything about subdirectories in FileList
YamakasY_ has quit [Ping timeout: 246 seconds]
<horrorvacui> I think the most fearful part of the job interview is the prospect of coding without all the available references I have here at my desk. I can't for the life of me remember all the matchers in rspec, all the query methods of ActiveRecord etc...
ctrancher has joined #ruby
ctrancher has left #ruby [#ruby]
devdazed has joined #ruby
<horrorvacui> I think I'm going to just make a bunch of flash cards and finally conquer all it.
end_guy has quit [Ping timeout: 265 seconds]
andy__ has joined #ruby
end_guy has joined #ruby
<j416> what is the difference between Range#cover?, Range#include?, Range#member?, and Range#=== ?
arietis has quit [Quit: Computer has gone to sleep.]
<j416> are they the same?
pirelenito has joined #ruby
pirelenito has left #ruby [#ruby]
arietis has joined #ruby
banister_ has joined #ruby
<shevy> hmm
<shevy> you are asking difficult questions, my son
<horrorvacui> hold on let me test that in irb/pry
<shevy> lol
<horrorvacui> lol
centrx has joined #ruby
<j416> haha
<shevy> horrorvacui do that in a job interview
<j416> :D
andy__ has quit [Remote host closed the connection]
<shevy> "Hold on - I shall test it, then give an answer."
<j416> you're right, this is an interesting interview question that a ruby guru would ace and a non-ruby-guru would have no clue about
<horrorvacui> I just find the last one suspect.
<horrorvacui> But it all does the same thing.
<j416> the last one is the one used by case, apparently
<horrorvacui> Ahh yeah that explains it
<Hanmac> j416: look :
<Hanmac> >> r = "a".."aa"; v = "b"; [:cover?,:include?,:member?,:===].map {|m| r.send(m,v)}
<eval-in> Hanmac => [false, true, true, true] (https://eval.in/130331)
<j416> I wonder, which one should I use
Spami has quit [Quit: This computer has gone to sleep]
CorySimmons has joined #ruby
<apeiros> shevy: don't laugh - that would have scored some candidates more points than they did in my interviews
andy__ has joined #ruby
<j416> interesting.. hm
banister has quit [Ping timeout: 268 seconds]
carraroj has joined #ruby
papercode has joined #ruby
<freeone3000> Hanmac: How is "b" an element of the range "a".."aa"?
<Hanmac> freeone3000:
<Hanmac> >> "z".succ
<eval-in> Hanmac => "aa" (https://eval.in/130332)
thrillagorilla has quit [Ping timeout: 265 seconds]
CorySimmons has quit [Client Quit]
luriv has joined #ruby
aspires has quit []
greggroth has quit [Ping timeout: 245 seconds]
<j416> more importantly, how is 'b' _not_ an element of that range? O_O
<arubincloud> freeone3000: It is "a" through "z" and "aa".
<Hanmac> :include?,:member?,:=== checks for each element with == while cover? only use begin <= x <= end
<j416> rather, why doesn't the range cover? 'b'?
<freeone3000> >> "b" < "a"
<eval-in> freeone3000 => false (https://eval.in/130333)
<freeone3000> >> "b" < "aa"
<eval-in> freeone3000 => false (https://eval.in/130334)
<freeone3000> j416: And that's why.
banister_ has quit [Ping timeout: 264 seconds]
<j416> oh..
Spami has joined #ruby
<horrorvacui> so thats a bit broken isn't it?
<j416> does that mean that cover? would be faster for integers?
<Hanmac> freeone3000: did you know
<Hanmac> >> "1.2.9".succ
<eval-in> Hanmac => "1.3.0" (https://eval.in/130335)
<freeone3000> Hanmac: Not 1.2.10? Interesting.
<Hanmac> j416: yes cover is faster if you know what you do
<Hanmac> >> "1.2.09".succ
<eval-in> Hanmac => "1.2.10" (https://eval.in/130336)
<horrorvacui> awesome, thats what I come here for
<apeiros> note that include? for numeric ranges actually uses cover?
yekta has joined #ruby
<j416> apeiros: that's nice
aspires has joined #ruby
<j416> then include? seems more.. ruby-ish
* freeone3000 dislikes the ? convention when discussing methods.
hiatobr has quit [Read error: Connection reset by peer]
<apeiros> otherwise (1.5..2.1).include?(x) would not be possible.
<yekta> Hello, how might I get the STDOUT from a `shell command` to display in the console?
<apeiros> yekta: puts `shell command`
<j416> apeiros: which one of the four methods would you use to verify that user integer input is within a set range?
<freeone3000> j416: They all do the same thing for integers.
<apeiros> alternatively use Kernel#spawn - check its docs. it's the swiss army knife under the subprocess tools.
<shevy> that got you stumped, didn't it yekta? ;)
<j416> freeone3000: that's why I'm asking :)
<freeone3000> j416: One of them.
<apeiros> j416: .cover?
<j416> apeiros: ok! thanks
<apeiros> semantically the correct choice
<j416> :)
arietis has quit [Quit: Computer has gone to sleep.]
<j416> I guess that's true
<j416> language-wise you mean?
<apeiros> yes
<j416> makes sense
<j416> readability is good
<apeiros> awesome image IMO :)
<j416> hah, cool
<horrorvacui> I can't tell is that really sim city or nyc :P
<j416> I was going to say wow, that's NY
<Hanmac> apeiros: nice, now try to build the new berlin airport with it ;P
<j416> but it's a real photo, right?
<apeiros> horrorvacui: it's real nyc
<j416> hah, cool
<yekta> shevy: hah… :) well I guess that makes sense doesn't it. I guess I'm trying to see the interactive output though, so like I'm tryin got see the progress of an rsync in a rake task, but it only outputs after the rsync is done with puts.
<j416> yekta: stop guessing, start knowing
teddyp1cker has quit []
<shevy> in pictures like that from new york city, you can see that the town grew artificially on a sketch board
<yekta> shevy: (well, its not interactive, its just dynamic)
<yekta> j416: -_- that was an expression, not a state of fact
kennym has quit [Quit: Leaving.]
crystal77 has quit [Quit: Computer has gone to sleep.]
Yamakas__ has quit [Ping timeout: 264 seconds]
<horrorvacui> yekta: try looking up pv and rsync
kirun has joined #ruby
<freeone3000> yekta: IO.popen() gets you the output as a readable.
benzrf has quit [Ping timeout: 240 seconds]
<yekta> Hmm
<horrorvacui> just thought you mike like the added progress bar
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
<horrorvacui> if you figure out the output
dotemacs has quit [Quit: Connection closed for inactivity]
ascarter has joined #ruby
ascarter has quit [Client Quit]
ndrei has quit [Ping timeout: 245 seconds]
kennym has joined #ruby
<j416> yekta: :P
pigzzcanfly has joined #ruby
<yekta> Cool, I'll check those approaches out. Thank you.
rylev has joined #ruby
<freeone3000> Say I have a set of tests which look up the presence of a file in the OS and attempt to execute it. What's the best way to write unit tests for these methods?
<freeone3000> Err. Set of methods.
crystal77 has joined #ruby
glosoli has joined #ruby
glosoli has left #ruby ["Textual IRC Client: www.textualapp.com"]
chichou has quit [Remote host closed the connection]
decoponyo has quit [Quit: Leaving...]
CaptainJet has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
YamakasY_ has joined #ruby
YamakasY_ has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
davy has joined #ruby
shinobi_one has joined #ruby
toastynerd has quit [Remote host closed the connection]
RailzAllDai1864 has joined #ruby
beneggett has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
YamakasY_ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jpstokes> rubocop is like an anal professor...picking out every little mistake...almost broke my code fixing all the suggestions...arrggg!
sambao21 has quit [Quit: Computer has gone to sleep.]
RailzAllDai1864 has quit [Client Quit]
YamakasY_ has quit [Remote host closed the connection]
Es0teric has joined #ruby
YamakasY_ has joined #ruby
s2013_ has joined #ruby
Lucky_Red has quit [Quit: Leaving...]
Hobogrammer has joined #ruby
dkamioka has joined #ruby
duggiefresh has quit [Remote host closed the connection]
maletor has joined #ruby
SCommette has quit [Quit: SCommette]
monkegjinni has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 268 seconds]
benzrf|offline has joined #ruby
benzrf|offline is now known as benzrf
s2013_ is now known as s2013
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
YamakasY_ has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
<shevy> jpstokes he is helpful
<shevy> jpstokes he politely points out that you SUCK
mehlah has joined #ruby
<jpstokes> Arggg!!!
aniM has quit [Remote host closed the connection]
chuk_ has joined #ruby
blassing has joined #ruby
blassing has left #ruby [#ruby]
aspires has quit []
jlast has quit [Remote host closed the connection]
EminenceHC has quit [Remote host closed the connection]
aspires has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
robbyoconnor has joined #ruby
greggroth has joined #ruby
smathieu has quit [Read error: Connection reset by peer]
guest123 has joined #ruby
sambao21 has quit [Client Quit]
smathieu has joined #ruby
SCommette has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
robbyoconnor has quit [Client Quit]
robbyoconnor has joined #ruby
ktosiek has joined #ruby
simono has quit [Read error: Connection reset by peer]
afex has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby
robbyoconnor has quit [Client Quit]
robbyoconnor has joined #ruby
jonmorehouse has quit [Ping timeout: 255 seconds]
Nowaker has quit [Ping timeout: 240 seconds]
<pipework> jpstokes: Being awesome is hard.
afex has joined #ruby
hooper has joined #ruby
bilbo_swaggins has joined #ruby
dx7 has quit [Remote host closed the connection]
aspires has quit []
acrussell has joined #ruby
jlast has joined #ruby
dtcrshr has quit [Remote host closed the connection]
aspires has joined #ruby
dtcrshr has joined #ruby
simono has joined #ruby
wallerdev has quit [Quit: wallerdev]
zcreative has joined #ruby
CorySimmons has joined #ruby
Nowaker has joined #ruby
papercode has quit [Quit: WeeChat 0.4.4-dev]
mrnugget has joined #ruby
badhatter has quit [Ping timeout: 255 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
shabgard has joined #ruby
ghr has joined #ruby
YamakasY_ has joined #ruby
flak has joined #ruby
wallerdev has joined #ruby
gagangowda10 has joined #ruby
rippa has quit [Ping timeout: 255 seconds]
phutchin1 has quit [Ping timeout: 255 seconds]
neclimdul has joined #ruby
gagangowda10 is now known as gg7
robbyoconnor has joined #ruby
neclimdul has left #ruby [#ruby]
gg7 is now known as Guest38300
ghr has quit [Ping timeout: 246 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
Guest38300 is now known as gagangowda10
<apeiros> benzrf: hey, which one should I use, osxfuse or fuse4x?
carlyle has quit [Read error: Connection reset by peer]
carlyle has joined #ruby
<j416> are instance variables always nil if not defined?
DEA7TH has joined #ruby
funktor has quit [Remote host closed the connection]
<j416> it seems that way
<shevy> j416 hmmmm
deadlock has quit [Read error: Connection reset by peer]
<j416> @random.class # => NilClass
<shevy> eh
<shevy> where did you define it
oso|away is now known as oso96_2000
<j416> nowhere
<j416> >> @random.class
<apeiros> yes, ivars and globals autovivify to nil
<eval-in> j416 => NilClass (https://eval.in/130339)
<apeiros> those are the only variables which do
<j416> apeiros: cool. thanks
<shevy> curious
jrhorn424 is now known as zz_jrhorn424
<DEA7TH> What is the naming convention for mixins? I'm thinking of naming one Expirable / Expiring / Expires / Expirator
<shevy> definitely Expiree
gagangowda10 is now known as gg_wasp
<shevy> if possible a french accent on the last character
<j416> lol
<shevy> Expirator sounds kinda powerful though
<shevy> kinda like Terminator
duggiefresh has joined #ruby
<DEA7TH> well yeah my naming sucks, but you get the point
<j416> what I think shevy is trying to say is, it would depend on what it does
<apeiros> DEA7TH: Expirable
<gg_wasp> Hey guys I was researching on rest api automation frameworks for ruby
<DEA7TH> it holds functions related to expiring
<gg_wasp> any suggestions
<apeiros> in line with Comparable and Enumerable (core)
Asher has quit [Quit: Leaving.]
<shevy> yeah
<j416> apeiros always saves the day
funktor has joined #ruby
<j416> s/day/night/
<j416> I'm starting to wonder if apeiros's job is to answer questions in #ruby
<apeiros> I have to save my body now - sports time
<j416> :O
bricker has quit [Read error: Connection reset by peer]
<Hanmac> i would also say Expirable with a coresponding class like Expirator ... same like Enumerable and Enumerator
bricker_ has joined #ruby
<j416> apeiros: martial arts?
YamakasY_ has quit [Quit: The best revenge is massive success...]
<apeiros> j416: cycling at home - because I forgot to use the bike to go to work :-(
<apeiros> (was a beautiful day)
* Hanmac is to lazy for (any kind of) sport ...
mib_mib has joined #ruby
pfg has joined #ruby
<j416> aw.
noop has quit [Ping timeout: 240 seconds]
<mib_mib> hi all - on amazon s3 - how do i allow a file to be downloaded publicly with the URL while disabling listing of the bucket
mib_mib has quit [Client Quit]
keen_ has left #ruby [#ruby]
* j416 imagines apeiros home training velodrome
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
duggiefresh has quit [Ping timeout: 264 seconds]
sdwrage has joined #ruby
carlyle has quit [Read error: Connection reset by peer]
gg_wasp has quit [Quit: Leaving.]
zachallett has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
RowdyChild|Away is now known as RowdyChildren
wallerdev has quit [Quit: wallerdev]
jackneill has quit [Quit: WeeChat 0.4.3]
mrnugget has quit [Quit: mrnugget]
karmatr0n has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
carlyle has joined #ruby
Hobogrammer has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
smathieu has joined #ruby
spider-mario has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
RowdyChildren is now known as RowdyChild|Away
_justin has quit [Quit: _justin]
ndrei has joined #ruby
francisfish has joined #ruby
<lectrick> i exercise because I hear heart attacks suck
<lectrick> and because programming is a sedentary activity
einarj has joined #ruby
<lectrick> and because I like to eat food
bricker_ has quit [Quit: leaving]
linhareta has quit [Quit: so long and thanks for the fish]
mercwithamouth has joined #ruby
<centrx> You are a true philosopher
funktor has quit [Remote host closed the connection]
GaryOak__ has joined #ruby
ghr has joined #ruby
Voodoofish430 has joined #ruby
RowdyChild|Away is now known as RowdyChildren
failshell has joined #ruby
okdas has quit [Ping timeout: 265 seconds]
zachallett has joined #ruby
shabgard is now known as mms
mansi_ has quit [Remote host closed the connection]
BuSerD has joined #ruby
mansi has joined #ruby
funktor has joined #ruby
okdas has joined #ruby
mansi has quit [Read error: Connection reset by peer]
<arubincloud> lectrick: Just pray for a replacement for the human body like the rest of us.
mansi has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
SHyx0rmZ has joined #ruby
funktor has quit [Remote host closed the connection]
<benzrf> apeiros: got fuse?
<benzrf> :-D
<centrx> Perhaps you should keep your body.
AlexRussia has quit [Ping timeout: 240 seconds]
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
robbyoconnor has joined #ruby
andy__ has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
andy__ has joined #ruby
sambao21 has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
garndt has quit [Quit: Connection closed for inactivity]
toastynerd has joined #ruby
sambao21 has quit [Client Quit]
rfennec has joined #ruby
freeone3000 has left #ruby ["Konversation terminated!"]
<rfennec> hey guys
papercode has joined #ruby
<bilbo_swaggins> biking is great
<rfennec> how can i explain this items=[] ; items.push {}; items ; => [] but when i do items << {} ; items; i get items = [{}]
<bilbo_swaggins> come summer, I'll do it to work again
<bilbo_swaggins> >> items=[]; items.push {}; items
<eval-in> bilbo_swaggins => [] (https://eval.in/130347)
<bilbo_swaggins> it probably sees it as a block
<bilbo_swaggins> >> items=[]; items.push {|foo|}; items
<eval-in> bilbo_swaggins => [] (https://eval.in/130348)
<bilbo_swaggins> >> items=[]; items.push({}); items
<eval-in> bilbo_swaggins => [{}] (https://eval.in/130349)
<bilbo_swaggins> yeah ruby is really weird about parentheses
CreativeEmbassy has quit [Quit: FO SHO]
<bilbo_swaggins> I wish it never'd gotten me in the habit of omitting them
ascarter has joined #ruby
<benzrf> python's grammar is much more consistent and predictable
<rfennec> oh
<rfennec> so with parenthesis it would work
<rfennec> mmmm
<benzrf> i.e. it doesnt let you use reserved words at ALL except for where theyre supposed to benzrf
<bilbo_swaggins> I never bother learning python because it's so similar
<benzrf> *be
<benzrf> so you cant define an 'import' method
<rfennec> bilbo_swaggins, it makes more sens, so it just treats it as a block right?
duggiefresh has joined #ruby
<bilbo_swaggins> rfennec: I've encountered different issues with the same underlying cause in situations as follows
<bilbo_swaggins> foo.bar baz {|quux| zom quux}
postmodern has joined #ruby
klaut has joined #ruby
sepp2k has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
<bilbo_swaggins> the rdocs don't mention anything about #push taking a block, so it's weird that it lets me do this
<bilbo_swaggins> >> Array.new.push {|why_can_I_put_this_here|}
<eval-in> bilbo_swaggins => [] (https://eval.in/130350)
<bilbo_swaggins> but yes
Briareos1 has joined #ruby
<bilbo_swaggins> it thinks it's a block
<benzrf> bilbo_swaggins: you can give any method a block
<benzrf> >> def foo; end; foo {|n|}
<eval-in> benzrf => nil (https://eval.in/130351)
saarinen has quit [Quit: saarinen]
freezey has quit [Remote host closed the connection]
CreativeEmbassy has joined #ruby
CorySimmons has quit [Quit: Zzz...]
<bilbo_swaggins> >> class Foo; end; Foo.new.bar
<eval-in> bilbo_swaggins => undefined method `bar' for #<Foo:0x4211a3f4> (NoMethodError) ... (https://eval.in/130352)
<bilbo_swaggins> I think it ought to return a message like that
chipotle_ has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
<bilbo_swaggins> I might like Python, come to think of it
jorts has quit [Quit: jorts]
mehlah has quit [Quit: Leaving...]
robbyoconnor has quit [Ping timeout: 255 seconds]
<rfennec> don't say that, stick the the ruby world (evil laugh)
<bilbo_swaggins> Working on Haskell first though :) and ruby has Sinatra, which I have a definite use for, as well as Rails, which I have a different use for (a paid gig)
blueOxigen has joined #ruby
BuSerD has left #ruby [#ruby]
teoric has joined #ruby
<rfennec> :)
bluOxigen has quit [Ping timeout: 245 seconds]
jorts has joined #ruby
<shevy> porn
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
reset has quit [Quit: Leaving...]
andrewlio has quit [Remote host closed the connection]
Guest32172 has quit [Read error: Operation timed out]
narcan has joined #ruby
CorySimmons has joined #ruby
LekeFly has joined #ruby
codabrin_ has quit [Ping timeout: 268 seconds]
arcanez has joined #ruby
<arcanez> when using DateTime.parse on a datetime string without a timezone, how can I force the tz to local?
rfennec has left #ruby ["Leaving"]
chipotle_ has quit [Quit: cya]
<lectrick> it doesn't default to local?
jsutch has joined #ruby
<lectrick> also, you may need to define "local". Server local? Client local?
GaryOak__ has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
<lectrick> The latter is not trivial, arcanez
<arcanez> server..
<arcanez> right now, it defaults to UTC
pwh has joined #ruby
matcouto has joined #ruby
yalue has quit [Read error: Connection reset by peer]
hfp`away has quit [Remote host closed the connection]
pontiki has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
freezey has joined #ruby
karmatr0n has joined #ruby
Bumptious has quit [Remote host closed the connection]
CreativeEmbassy has quit [Quit: FO SHO]
hfp`away has joined #ruby
mms has quit [Quit: Aji maji la taraji]
saarinen has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
CreativeEmbassy has joined #ruby
funktor has joined #ruby
<zorak> hi friends
<zorak> i have a question about "return"
<zorak> in codeacademy course, they said that return dont need to be used
<zorak> that the script will ork equal if i use return or not
<toretore> arcanez: you should be explicit about what timezone you want
<zorak> but in actuall practice i see that sometime i need use return and other times not
smathieu has quit [Remote host closed the connection]
<toretore> zorak: example?
hfp`away is now known as hfp
smathieu has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carraroj has quit [Quit: Konversation terminated!]
chipotle has joined #ruby
<toretore> the only time you have to use return is when you want an early return
<jhass> zorak: the value of the last statement in a method will be it's return value. If you use a return statement not being the last statement in a method, it will abort the method at this point and return the given value
gagangowda10 has joined #ruby
gagangowda10 has left #ruby [#ruby]
<zorak> jhass: so, if im maing an exit i need use return because i want to exist if the case
<jhass> "maing" ?
<benzrf> bbl
<zorak> making
<toretore> zorak: it would be easier if you could give some real code examples
benzrf is now known as benzrf|offline
<bilbo_swaggins> >> def foo bar; return if bar == 1; :baz; end; "#{foo 1} #{foo 2}"
<eval-in> bilbo_swaggins => " baz" (https://eval.in/130354)
<zorak> i cant find the examples :-/
<jhass> zorak: I think you mean the right thing, so yes
<toretore> but you can make them
wallerdev has joined #ruby
<bilbo_swaggins> in my example, note, as you say, you don't need "return" for the last line of a method
<bilbo_swaggins> but as others say you can return early
<bilbo_swaggins> if you do have a more specific example, I'd happily answer
<toretore> early return is also a bit of a code smell, and thus, using return at all can be seen as a code smell
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bilbo_swaggins> please make a recursive backtracking algorithm without return
dx7 has joined #ruby
<bilbo_swaggins> I, for one, can't figure that out off the top of my head
<zorak> in the final stantment of a method i dont need use the return because naturally will use it
<zorak> but in other parts i need them
momomomomo has quit [Quit: momomomomo]
markisonfire has quit [Quit: markisonfire]
<bilbo_swaggins> there's nothing more I can say to that
markisonfire has joined #ruby
<bilbo_swaggins> unless you have a specific example
toastynerd has quit [Remote host closed the connection]
<zorak> thank you
<zorak> i think that the code that make problem has two return stamntens
CorySimmons has quit [Quit: Zzz...]
zachallett has quit [Remote host closed the connection]
dx7 has quit [Remote host closed the connection]
dstynchu_ is now known as dstynchula
nanoyak has joined #ruby
<zorak> and without them dont work, but with it them work
CorySimmons has joined #ruby
CorySimmons has quit [Client Quit]
dx7 has joined #ruby
kennym has quit [Quit: Leaving.]
f0ster has joined #ruby
<toretore> zorak: tip: when discussing code, people usually want to see the code
momomomomo has joined #ruby
<toretore> it is very difficult to answer questions about code without seeing the code
momomomomo has quit [Client Quit]
dkamioka has joined #ruby
<zorak> yes i know, but im not asing a specific ask about a code
<zorak> is more about when i need to use return and when i dont
saarinen has quit [Quit: saarinen]
<toretore> that too is much easier to both ask and explain with code
tijmencc has joined #ruby
ascarter has joined #ruby
Jake232 has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
carlyle has quit [Read error: Connection reset by peer]
carlyle_ has joined #ruby
smathieu has quit [Remote host closed the connection]
dx7 has quit [Ping timeout: 255 seconds]
smathieu has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
crystal77 has joined #ruby
saarinen has joined #ruby
<bilbo_swaggins> zorak, I've stopped paying attention
Atw has joined #ruby
<bilbo_swaggins> for that reason
<bilbo_swaggins> don't make us work to help you
SevereOverfl0w has quit [Ping timeout: 245 seconds]
MindfulMonk has quit [Ping timeout: 265 seconds]
codabrink has joined #ruby
<bilbo_swaggins> The only way to understand a coding problem is to see code.
CorySimmons has joined #ruby
greggroth has quit [Ping timeout: 268 seconds]
<bilbo_swaggins> If you could program in natural language, we'd be doing that.
<shevy> yes
<shevy> COBOL
jorts has quit [Quit: jorts]
fgo has joined #ruby
CorySimmons has quit [Client Quit]
SevereOverfl0w has joined #ruby
<shevy> zorak you could use return all the time
r_rios has quit [Ping timeout: 240 seconds]
MindfulMonk has joined #ruby
<jhass> shevy: :(
<jhass> why you're saying such ugly things
<shevy> jhass the ruby parser allows it
jorts has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
sigurding has joined #ruby
Spami has joined #ruby
blackmesa has joined #ruby
Atw has quit []
saarinen has quit [Quit: saarinen]
toastynerd has joined #ruby
teoric has quit [Quit: WeeChat 0.4.3]
phansch has joined #ruby
sayan_ has joined #ruby
paulfm has quit []
dku has joined #ruby
carlyle has joined #ruby
pagios has quit [Ping timeout: 246 seconds]
<dku> Hi all - I think I might be misunderstanding something about instance_eval, but why isn't this snippet working? https://gist.github.com/dkulchenko/e399a4b49e3749a028f9
zorak_ has joined #ruby
b00stfr3ak has quit [Ping timeout: 246 seconds]
carlyle_ has quit [Read error: Connection reset by peer]
<dku> I assumed instance_eval would bring that class's methods into existence, but that doesn't seem to be the case.
rylev has quit [Remote host closed the connection]
zorak has quit [Ping timeout: 268 seconds]
mansi has quit [Remote host closed the connection]
<jhass> dku: you need to pass the block to instance_eval
<jhass> instance_eval(&block)
popl has quit [Ping timeout: 265 seconds]
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
mansi has joined #ruby
_tpavel has quit [Ping timeout: 265 seconds]
jdbcisco has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
einarj has quit [Remote host closed the connection]
phrozen77 has quit [Ping timeout: 246 seconds]
afreidah has quit [Ping timeout: 265 seconds]
<dku> jhass: ahh, that did the trick - thanks!
dx7 has joined #ruby
armyriad has joined #ruby
phrozen77 has joined #ruby
tijmencc has quit [Quit: tijmencc]
pragmatism has left #ruby [#ruby]
SegFaultAX has quit [Ping timeout: 246 seconds]
saarinen has joined #ruby
jpstokes has quit [Remote host closed the connection]
SegFaultAX has joined #ruby
sayan_ has quit [Quit: Leaving]
mansi has quit [Ping timeout: 240 seconds]
otyugh has joined #ruby
karmatr0n has quit [Remote host closed the connection]
mansi has joined #ruby
havenwood has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
thrillagorilla has joined #ruby
dx7 has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
havenwood has joined #ruby
karmatr0n has joined #ruby
aspires has quit []
otyugh has left #ruby [#ruby]
otyugh has joined #ruby
ikaros has joined #ruby
thrillagorilla has quit [Remote host closed the connection]
beneggett has joined #ruby
kennym has joined #ruby
freerobby has quit [Quit: Leaving.]
sailias has quit [Ping timeout: 264 seconds]
havenwood has quit [Ping timeout: 245 seconds]
aspires has joined #ruby
<horrorvacui> Do you think brain teasers are still common in job interviews for ruby/RoR jobs?
<apeiros> lectrick: yeah, I like to eat too, hence sports. otherwise I'd become one of those grossly overweight people. and I don't want that.
kpshek has quit []
<horrorvacui> I like them, but I don't want them at an interview?
<horrorvacui> .*
kimiamania is now known as kimiamania|BNC
failshell has quit [Ping timeout: 240 seconds]
<otyugh> hey. I'm trying to install "agritux" from git. It recommand using "bundle install" for installing. Doing so only get me the following message :"Fetching surce index from http://rubygem.org/" "Retrying source fetch dueto error (2/3): Bundler::HTTPError Could not fetch specs from http://rubygems.org". Any idea ?
cover has quit [Ping timeout: 264 seconds]
_tpavel has joined #ruby
george2 has quit [Remote host closed the connection]
afreidah has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
centrx has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jprovazn has quit [Quit: Odcházím]
arubincloud has quit []
tvw has quit []
bilbo_swaggins has quit [Quit: Leaving]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
CorySimmons has joined #ruby
freezey has quit [Remote host closed the connection]
shlant has quit [Ping timeout: 245 seconds]
francisfish has quit [Remote host closed the connection]
<horrorvacui> So did Tom Preston-Werner get fired from github?
mark_locklear has quit [Ping timeout: 255 seconds]
dku has quit [Quit: Page closed]
jackyalcine is now known as jacky
toastynerd has quit [Remote host closed the connection]
awarner has quit [Remote host closed the connection]
CreativeEmbassy has quit [Quit: FO SHO]
guest123 has quit [Quit: Connection closed for inactivity]
danshult_ has quit [Remote host closed the connection]
mr_snowf1ake has joined #ruby
carlyle has joined #ruby
francisfish has joined #ruby
zigomir has quit [Ping timeout: 265 seconds]
sdouglas has joined #ruby
danshultz has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
bilbo_swaggins has joined #ruby
<tcstar> I haven't heard of anything about him being fired -- just still suspended as far as i know
luckyruby has joined #ruby
duggiefresh has quit [Remote host closed the connection]
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
freezey has joined #ruby
zachallett has joined #ruby
sambao21 has joined #ruby
alvaro_o has joined #ruby
agjacome has quit [Ping timeout: 252 seconds]
hooper has quit [Ping timeout: 240 seconds]
carlyle has quit [Ping timeout: 265 seconds]
Azure has quit [Quit: My MBP went to sleep.]
Guest36155 has quit [Remote host closed the connection]
nanoyak has joined #ruby
meatherly has quit [Remote host closed the connection]
_Andres has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 255 seconds]
rm_ has joined #ruby
brianpWins has quit [Quit: brianpWins]
hooper has joined #ruby
rylev has joined #ruby
yfeldblum has joined #ruby
sigurding has quit [Quit: sigurding]
funktor has quit [Remote host closed the connection]
cover has joined #ruby
dtcrshr has quit [Quit: Saindo]
chrisseaton has joined #ruby
rm_ has quit [Ping timeout: 245 seconds]
funktor has joined #ruby
hooper has quit [Ping timeout: 245 seconds]
rylev has quit [Ping timeout: 240 seconds]
SevereOverfl0w has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
MindfulMonk has quit [Ping timeout: 265 seconds]
yokel_ has quit [Ping timeout: 264 seconds]
nfk has quit [Quit: yawn]
carlyle has joined #ruby
jameswlane has joined #ruby
<Geniack> i think they got rid of him
carlyle has quit [Read error: Connection reset by peer]
carlyle has joined #ruby
afreidah has quit [Ping timeout: 245 seconds]
Azure has joined #ruby
mway has quit [Quit: mway]
Hobogrammer has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
cescalante is now known as ce_afk
nanoyak has quit [Quit: Computer has gone to sleep.]
doodlehaus has quit [Remote host closed the connection]
_Andres has joined #ruby
Azure has quit [Client Quit]
einarj has joined #ruby
CorySimmons has quit [Quit: Zzz...]
hooper has joined #ruby
dx7 has joined #ruby
andrewlio has joined #ruby
RowdyChildren is now known as RowdyChild|Away
ndrei has joined #ruby
phantummm has quit [Quit: phantummm]
weeems has joined #ruby
carlyle has quit [Ping timeout: 265 seconds]
agrinb__ has joined #ruby
klaas_ has joined #ruby
mary5030_ has joined #ruby
bluOxigen has joined #ruby
deol has joined #ruby
patronus has joined #ruby
einarj_ has joined #ruby
bilbo_swaggins has quit [Quit: Leaving]
weems has quit [Disconnected by services]
weeems is now known as weems
weems has quit [Changing host]
weems has joined #ruby
bricker`1A has joined #ruby
slopjong has quit [Remote host closed the connection]
MrJoshua_ has joined #ruby
hobodave has quit [Ping timeout: 245 seconds]
papercod1 has joined #ruby
relix has joined #ruby
hooper has quit [Ping timeout: 246 seconds]
jgrevich2 has joined #ruby
stnly_ has joined #ruby
acrussell has quit [Quit: Leaving.]
chihhsin1wego has joined #ruby
jameswlane has quit [Excess Flood]
mikecmpb_ has joined #ruby
Solnse has quit [Ping timeout: 255 seconds]
MrJoshua has quit [Ping timeout: 255 seconds]
Guest32008 has quit [Ping timeout: 255 seconds]
papercode has quit [Ping timeout: 255 seconds]
DrCode has quit [Ping timeout: 265 seconds]
blueOxigen has quit [Ping timeout: 255 seconds]
jgrevich has quit [Ping timeout: 255 seconds]
mary5030 has quit [Ping timeout: 255 seconds]
stnly has quit [Ping timeout: 255 seconds]
banister has quit [Ping timeout: 255 seconds]
ctp has quit [Ping timeout: 255 seconds]
ValicekB has quit [Ping timeout: 255 seconds]
agrinb_ has quit [Ping timeout: 255 seconds]
gregf has quit [Ping timeout: 255 seconds]
elaptics`away has quit [Ping timeout: 255 seconds]
bricker`LA has quit [Ping timeout: 255 seconds]
chihhsin_wego has quit [Ping timeout: 255 seconds]
klaas has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Ping timeout: 255 seconds]
tacos1de has quit [Ping timeout: 265 seconds]
einarj has quit [Ping timeout: 255 seconds]
end_guy has quit [Ping timeout: 265 seconds]
mikecmpbll has quit [Ping timeout: 255 seconds]
Alina-malina has quit [Ping timeout: 255 seconds]
rayners has quit [Ping timeout: 255 seconds]
patronus_ has quit [Ping timeout: 255 seconds]
jaimef has quit [Ping timeout: 255 seconds]
segv has quit [Ping timeout: 255 seconds]
mordof has quit [Ping timeout: 255 seconds]
atmosx has quit [Ping timeout: 265 seconds]
Jelco has quit [Ping timeout: 255 seconds]
testcore has quit [Ping timeout: 265 seconds]
RealMarc has joined #ruby
MrJoshua_ is now known as MrJoshua
Shidash has joined #ruby
banister has joined #ruby
francisfish has quit [Remote host closed the connection]
mordof has joined #ruby
Jon30 has joined #ruby
Alina-malina has joined #ruby
elaptics`away has joined #ruby
gregf has joined #ruby
Jelco has joined #ruby
Jelco has joined #ruby
Jelco has quit [Changing host]
hermanmunster has quit [Remote host closed the connection]
segv has joined #ruby
Azure has joined #ruby
Solnse has joined #ruby
jason__ has joined #ruby
Olipro has quit [Ping timeout: 246 seconds]
hermanmunster has joined #ruby
einarj_ has quit [Remote host closed the connection]
toastynerd has joined #ruby
CyborgCygnus has joined #ruby
s2013 has quit [Ping timeout: 255 seconds]
alexju has quit [Remote host closed the connection]
ghr has joined #ruby
Olipro has joined #ruby
havenwood has joined #ruby
simono has joined #ruby
ValicekB has joined #ruby
hermanmunster has quit [Ping timeout: 246 seconds]
CorySimmons has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
jaimef has joined #ruby
dx7 has quit [Remote host closed the connection]
CorySimmons has quit [Client Quit]
hooper has joined #ruby
havenwood has quit [Remote host closed the connection]
dx7 has joined #ruby
nanoyak has joined #ruby
havenwood has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
CyborgCygnus has quit [Remote host closed the connection]
jokke1 has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
kennym has quit [Quit: Leaving.]
userx has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
dx7 has quit [Ping timeout: 255 seconds]
kirun has quit [Quit: Client exiting]
kennym has joined #ruby
hooper has quit [Ping timeout: 264 seconds]
claymore has quit [Quit: Leaving]
Deele has quit [Ping timeout: 240 seconds]
spyderman4g63 has quit [Ping timeout: 265 seconds]
<toretore> anyone know if conditionals in ruby regexes need the else part?
benzrf|offline has quit [Ping timeout: 264 seconds]
obs has joined #ruby
Asher has joined #ruby
Bumptious has joined #ruby
SevereOverfl0w has joined #ruby
tylersmi_ has joined #ruby
<centrx> conditionals in ruby regexes?
<Veejay> Hello, I have a program where I create two threads. Both of them display messages using puts and I've noticed that the produced output is broken (i.e. I don't have the messages on a separate line for each output). Can anyone explain the reason why I'm observing this behaviour?
MindfulMonk has joined #ruby
<Veejay> I suspect a race condition, as is often the case with threads, but I'd like to understand the underlying mechanism
<hoelzro> Veejay: you mean the messages are interleaved?
nowthatsamatt has quit [Quit: nowthatsamatt]
obs has quit [Client Quit]
<toretore> Veejay: that's simply the way threading works
<toretore> a thread can be preemted at any point in its execution
<Veejay> hoelzro: Not really interleaved no, more like I'm not seeing the newlines where I expect them to be
<toretore> it's common enough to get output like "From thread1\nFrom thread2From thread1\n\n"
jason__ has quit [Remote host closed the connection]
jameswlane has joined #ruby
<toretore> which means thread2 got interrupted between "From thread2" and "\n"
taf2 has quit [Quit: taf2]
<Veejay> As if the puts itself is broken down to two separate actions, the print and then the printing of the newline and the threads are somehow printing, printing, printing, printing the newline, printing the newline
yokel has joined #ruby
<Veejay> toretore: Yeah
ktosiek has quit [Ping timeout: 265 seconds]
<hoelzro> depending on how Ruby handles the I/O, it could be several different operations
jason__ has joined #ruby
tylersmith has quit [Ping timeout: 268 seconds]
<hoelzro> strace is your friend here
hooper has joined #ruby
<toretore> someone mentioned it earlier, and it's kinda weird since the gil should prevent that behavior
yfeldblum has joined #ruby
<horrorvacui> What if it isn't MRI ruby
<hoelzro> should, yes
<havenwood> Veejay: you'll notice if you put an explicit "\n" at the end of the string with #puts it won't happen
<Veejay> havenwood: Ah interesting
<toretore> the c implementation of puts should be synchronized while it's printing
bricker`1A is now known as bricker`LA
<havenwood> Veejay: the way the #puts method works, if it is adding an implicit one it may not be synced, but explicit is
<Veejay> So I guess replacing the puts with a print "#{string}\n"would do the trick as well?
<Veejay> I a space there sorry
Hobogrammer has joined #ruby
<havenwood> Veejay: yup, a good trick
<hoelzro> the userspace impl might do buffering as well
<Veejay> I'll try that then
<toretore> ah yes
<Veejay> toretore: What do you mean synchronized?
<toretore> one thread runs until it's done without being interrupted
<Veejay> OK
jobewan has quit [Quit: Leaving]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kennym has quit [Quit: Leaving.]
<Veejay> I could also use a mutex but oh well, seems a bit panzer-ish
<toretore> if it's just this then it's not a big deal, but if you're doing more stuff then it's a good idea
karmatr0n has quit [Remote host closed the connection]
jason__ has quit [Ping timeout: 245 seconds]
<toretore> if you have messages coming from several threads you could put them in a queue
jonmorehouse has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
saarinen has quit [Quit: saarinen]
hooper has quit [Ping timeout: 265 seconds]
Musashi1 has joined #ruby
bricker`1A has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
jerius has joined #ruby
<Veejay> Yes, that's another option indeed
<Veejay> OK, I'll give all that stuff a spin on the morrow
<Veejay> Thanks everyone
saarinen has joined #ruby
saarinen has quit [Client Quit]
bricker`1A is now known as bricker
bricker`LA has quit [Disconnected by services]
dx7 has joined #ruby
toastynerd has quit [Remote host closed the connection]
toastynerd has joined #ruby
kennym has joined #ruby
hooper has joined #ruby
brianpWins has joined #ruby
Briareos1 has quit [Remote host closed the connection]
Spami has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
SCommette has quit [Quit: SCommette]
chris_thomson has joined #ruby
dx7 has quit [Remote host closed the connection]
hooper has quit [Ping timeout: 240 seconds]
dx7 has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
binaryhat has joined #ruby
dkamioka has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jhass is now known as jhass|off
spinx^_ has quit [Ping timeout: 255 seconds]
kennym has quit [Quit: Leaving.]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
guest123 has joined #ruby
dx7 has quit [Ping timeout: 252 seconds]
hooper has joined #ruby
dstynchu_ has joined #ruby
chichou has joined #ruby
saarinen has joined #ruby
kitak_ has quit [Remote host closed the connection]
kitak_ has joined #ruby
toastynerd has joined #ruby
hermanmunster has joined #ruby
dstynchula has quit [Ping timeout: 245 seconds]
wwalker has left #ruby [#ruby]
chrisramon has joined #ruby
crystal77 has joined #ruby
tcstar has quit [Read error: Connection reset by peer]
davy_ has joined #ruby
snath has quit [Ping timeout: 264 seconds]
alvaro_o has joined #ruby
davy has quit [Ping timeout: 240 seconds]
davy_ has quit [Remote host closed the connection]
dx7 has joined #ruby
manacit has quit [Ping timeout: 240 seconds]
smathieu has quit [Remote host closed the connection]
<shevy> dumdedum
mway has joined #ruby
rahult has joined #ruby
smathieu has joined #ruby
george2 has joined #ruby
karmatr0n has joined #ruby
zachallett has quit [Remote host closed the connection]
aces1up9939 has joined #ruby
zachallett has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
<aces1up9939> hey guys, what IO class / method would I hook to calculate all incoming bytes over the wire to my machine?
nowthatsamatt has joined #ruby
siwica has joined #ruby
oso96_2000 is now known as oso|away
zachalle_ has joined #ruby
saarinen has quit [Quit: saarinen]
nowthatsamatt has quit [Client Quit]
davy has joined #ruby
enebo has quit [Quit: enebo]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davy has quit [Remote host closed the connection]
brianpWins has joined #ruby
SCommette has joined #ruby
<wallerdev> aces1up9939: might need to use something like libpcap for that
spinx^ has joined #ruby
zachallett has quit [Ping timeout: 255 seconds]
<wallerdev> probably ruby bindings for that
snath has joined #ruby
<aces1up9939> wallerdev i don't need to go that deep, but someone the other night suggested i hook the IO library, as all incoming data comes through that, just didn't know what method is the main incoming method that handles like socket incoming data etc.
juanmnl has joined #ruby
<wallerdev> oh like running a server on your machine and having people connect to that?
binaryhat has quit [Quit: Leaving]
<wallerdev> if so you probably want to look at the Socket class, maybe TCPServer, etc
spyderman4g63 has joined #ruby
<juanmnl> hello! has anyone used RubyMotion? if yes, is it worth it? or should i go with cocoa/obj-c? Tx! :)
holo has joined #ruby
hiall has joined #ruby
<wallerdev> stick with cocoa/obj-c
george2 has quit [Remote host closed the connection]
<wallerdev> obj-c is a decent language and all code samples and libraries you use are going to be in obj-c, no reason to force ruby in there
benlieb has joined #ruby
whatasunnyday has joined #ruby
yasushi has joined #ruby
agrinb__ has quit [Remote host closed the connection]
mway has quit [Quit: mway]
saarinen has joined #ruby
<whatasunnyday> hi! i have absolutely no experience with messaging/job queueing systems and i want to use one for my side project. does anyone have a suggestion on how should i go about evaluating between resque, rabbitmq or sidekiq? is there a “rails” go to?
crystal77 has quit [Quit: Computer has gone to sleep.]
<juanmnl> I'll try obj-c then, thanks for your answer wallerdev
holo has left #ruby [#ruby]
fijimunkii has quit [Ping timeout: 265 seconds]
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
northfurr has joined #ruby
ascarter has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
klaut has quit [Remote host closed the connection]
andrewlio has quit [Quit: Leaving.]
nateberkopec has quit [Quit: Leaving...]
centrx has quit [Quit: All this computer hacking is making me thirsty]
jorts has quit [Quit: jorts]
IceDragon has quit [Quit: Space~~~]
DEA7TH has quit [Ping timeout: 246 seconds]
IceDragon has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
pwh has quit []
SCommette has quit [Quit: SCommette]
brianpWins has quit [Quit: brianpWins]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
RowdyChild|Away is now known as RowdyChildren
siwica has quit [Ping timeout: 240 seconds]
<toretore> whatasunnyday: it.. depends ;)
<whatasunnyday> toretore: dead simple, used for side project with little no scale
kaspergrubbe has joined #ruby
jorts has joined #ruby
doodlehaus has joined #ruby
<whatasunnyday> toretore: just don’t want my requests to be blocking
<toretore> personally, i wouldn't use something like resque or sidekiq
<wallerdev> use node.js
<whatasunnyday> toretore: i also use pg so queue_classic is an option
<toretore> i'd use either zmq or amqp
<whatasunnyday> wallerdev: afk rewriting project from scratch… april fools! not an option.
brandon_1 has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
<whatasunnyday> also just 1 job is blocking
<whatasunnyday> and that’s it
<wallerdev> thought it was just a side project with no scale, cant take that long :p
<whatasunnyday> i’m sure you’ve written several projects to learn a technology. i am not much of a rails programmer.
<toretore> you could well write a job processor in node if you want
mansi has quit [Remote host closed the connection]
<whatasunnyday> or much of a programmer at all.
brandon_1 has left #ruby [#ruby]
siwica has joined #ruby
<wallerdev> haha yeah always good to learn new things :)
mansi has joined #ruby
<toretore> whatasunnyday: if you want something that "just works" and is easy to setup with lots of people using it, use sidekiq i guess
<whatasunnyday> toretore: i’ll investigate amqp, zmq and sidekick. do you know anything about queue_cliass or sucker_punch?
<whatasunnyday> queue_classic*
<toretore> nope
yfeldblum has joined #ruby
<toretore> but sidekiq seems to be the most used nowadays
<toretore> in a year it's something else
<whatasunnyday> yeah… that is unfortunate
Hobogrammer has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<toretore> if you really want to learn and have full control, learn more about zmq and amqp
<whatasunnyday> queue_classic looks great but i just don’t know enough about postgres to properly leverage it
<whatasunnyday> toretore: amqp i thought was a protocol
<toretore> it is
<toretore> rabbitmq is an implementation
<whatasunnyday> oh. i don’t think i need total control by any means.
<whatasunnyday> just need some job to fetch a json api periodically
george2 has joined #ruby
toastynerd has quit [Remote host closed the connection]
<toretore> you could do that with cron
<whatasunnyday> toretore: do you use the pure java implementation of rabbitmq?
mityaz has quit [Quit: See ya!]
<toretore> java?
<toretore> rabbitmq is in erlang afaik
<shinobi_one> rabbitmq is erlang yes
<whatasunnyday> ahh, i meant zeromq
mansi has quit [Ping timeout: 255 seconds]
<whatasunnyday> i just looked it up
<shinobi_one> you can communicate with rabbitmq through java, and several other languages
sailias has joined #ruby
<toretore> for zmq i use ffi-rzmq or em-zeromq
predator117 has joined #ruby
<whatasunnyday> oic
yfeldblum has quit [Ping timeout: 255 seconds]
<whatasunnyday> toretore: thanks for the advice
chrisramon has quit [Quit: chrisramon]
<whatasunnyday> toretore: why wouldn’t you use sidekiq?
yfeldblum has joined #ruby
<toretore> just personal preference
tcstar has joined #ruby
<toretore> i like to be a little more in control
predator217 has quit [Ping timeout: 252 seconds]
<toretore> usually these abstractions get in my way
s2013 has joined #ruby
aspires has quit []
<whatasunnyday> toretore: cool. good to know.
<toretore> that doesn't mean it could do what you need perfectly though
DrCode has joined #ruby
<toretore> *cuoldn't
<toretore> agh. you get the point
ukd1 has joined #ruby
end_guy has joined #ruby
<whatasunnyday> ye i do
ikaros has quit [Quit: Ex-Chat]
<whatasunnyday> does anyone have experience with sucker_punch here?
lmickh has quit [Remote host closed the connection]
testcore has joined #ruby
noctua has joined #ruby
aspires has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikepack_ has joined #ruby
rahult has quit [Quit: Back to the world of zombies]
tacos1de has joined #ruby
caustic has joined #ruby
sailias has quit [Read error: Operation timed out]
andy__ has quit [Remote host closed the connection]
Valesk has joined #ruby
momomomomo has joined #ruby
hiall has quit [Ping timeout: 252 seconds]
benlieb has quit [Quit: benlieb]
Geniack has quit [Disconnected by services]
hiall has joined #ruby
Geniack_ has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
horofox_ has joined #ruby
horofox_ is now known as thiago_fm
mikepack_ has quit [Ping timeout: 265 seconds]
pigzzcanfly has joined #ruby
benlieb has joined #ruby
thiago_fm is now known as thiagofm
s2013 has quit [Remote host closed the connection]
agrinb has joined #ruby
andy__ has joined #ruby
RowdyChildren is now known as DaleH
DaleH is now known as RowdyChildren
zcreative has joined #ruby
nobitanobi has joined #ruby
dx7 has quit [Remote host closed the connection]
atmosx has joined #ruby
dx7 has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
aces1up9939 has quit []
thiagofm has quit [Quit: thiagofm]
x77686d has quit [Quit: x77686d]
jerius has joined #ruby
kevind has quit [Quit: kevind]
mercwithamouth has joined #ruby
amaltson has quit [Quit: Connection closed for inactivity]
jameswlane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dx7 has quit [Ping timeout: 252 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
carlyle has joined #ruby
codeurge has quit [Quit: codeurge]
siwica has quit [Ping timeout: 240 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
The_NetZ has joined #ruby
<The_NetZ> howdy o/
<The_NetZ> question; how would I make a ruby script 'require' every so/dll/dynlib in the current dir/certain dir below this one?
greggroth has joined #ruby
agrinb has quit [Ping timeout: 268 seconds]
<bjeanes> The_NetZ: Dir["glob to match files"].each { |f| require f } ?
jerius has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
<The_NetZ> bjeanes: nice, very nice indeed; would I have to clip the extension off?
sambao21 has quit [Quit: Computer has gone to sleep.]
rm___ has joined #ruby
selina345 has joined #ruby
rm___ is now known as Guest97577
jzig has quit [Remote host closed the connection]
<selina345> hi i'm trying to change the environment variables in python
carlyle has quit [Ping timeout: 265 seconds]
<selina345> srry, in windows
rainmanjam has quit [Remote host closed the connection]
<selina345> in order to be able to use the subl command in cmd prompt
jzig has joined #ruby
<The_NetZ> selina345: more of a ##windows question, not truely ruby specific
toastynerd has joined #ruby
<selina345> i've change the user variable to C:\RailsInstaller\Ruby1.9.3\bin
<selina345> i mean "C:\Program Files\Sublime Text 3\ as SUBLIME_HOME
RowdyChildren is now known as RowdyChild|Away
<selina345> and %SUBLIME_HOME% as a path under the system variable
<selina345> no luck
siwica has joined #ruby
mansi has joined #ruby
mikecmpb_ has quit [Quit: ciao.]
ephemerian has quit [Quit: Leaving.]
<Senjai> selina345: I'd venture a guess that 80-90% of ruby users dont program in windows
s2013 has joined #ruby
jzig has quit [Ping timeout: 265 seconds]
freezey_ has joined #ruby
toastynerd has quit [Ping timeout: 252 seconds]
pen has quit [Remote host closed the connection]
siwica has quit [Read error: Connection reset by peer]
siwica has joined #ruby
<selina345> Senjai: Yes, I'm aware.
<selina345> Senjai: my macbook was recently water damaged
<selina345> :(
<Senjai> selina345: Use linux!
bilbo_swaggins has joined #ruby
<The_NetZ> selina345: ^
<Senjai> :)
<The_NetZ> selina345: preferably arch linux :P
nisstyre has joined #ruby
nisstyre has quit [Changing host]
nisstyre has joined #ruby
<selina345> hm
bilbo_swaggins has quit [Client Quit]