apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 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
f_vosberg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has joined #ruby
icarus has quit [Remote host closed the connection]
MatthewsFace has quit [Ping timeout: 244 seconds]
mosoj has joined #ruby
heftig_ is now known as heftig
nateberkopec has joined #ruby
kireevco has quit [Quit: Leaving.]
poulet_a has joined #ruby
startupality has joined #ruby
tokik has joined #ruby
poulet_a has quit [Client Quit]
ffranz has quit [Quit: Leaving]
vsoftoiletpaper has quit []
aspires has quit []
nateberkopec has quit [Client Quit]
aspires has joined #ruby
omosoj has quit [Ping timeout: 272 seconds]
icebourg has joined #ruby
fgo has joined #ruby
ghostmoth has joined #ruby
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
fgo has quit [Ping timeout: 246 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klaut has quit [Remote host closed the connection]
zartoosh__ has quit [Remote host closed the connection]
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
newUser1234 has joined #ruby
jgrevich_ has joined #ruby
tkuchiki has joined #ruby
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
jgrevich has quit [Ping timeout: 264 seconds]
starkhalo has quit [Quit: WeeChat 1.0-rc2]
lukeholder has joined #ruby
ddv has quit [Ping timeout: 260 seconds]
jeramyRR has joined #ruby
vsoftoiletpaper has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
hooper has quit [Quit: Leaving.]
nanoyak has joined #ruby
ddv has joined #ruby
gigetoo has joined #ruby
jgrevich_ has quit [Ping timeout: 246 seconds]
b00stfr3ak has quit [Ping timeout: 245 seconds]
nanoyak has quit [Client Quit]
testcore has quit [Quit: Bad BitchX, bad BitchX, whatcha gonna do? Whatcha gonna do when they come for you?]
Grantlyk has quit [Remote host closed the connection]
nanoyak has joined #ruby
jerikl has quit [Quit: jerikl]
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kuzushi has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
mary5030_ has joined #ruby
nanoyak has quit [Client Quit]
lukeholder has joined #ruby
nanoyak has joined #ruby
sylvanica is now known as sylvanica|afk
mary5030 has quit [Ping timeout: 264 seconds]
<pontiki> that's pretty efficient as it is
lukeholder has quit [Ping timeout: 240 seconds]
agent_wh1te has joined #ruby
krz has joined #ruby
mercwith1mouth has joined #ruby
aspires_ has joined #ruby
froggy__ has joined #ruby
icole_ has joined #ruby
tkuchiki_ has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
tkuchiki has quit [Read error: Connection reset by peer]
agent_white has quit [Read error: Connection reset by peer]
linojon has joined #ruby
mordocai` has joined #ruby
armyriad has joined #ruby
jerikl has joined #ruby
aspires_ has quit [Client Quit]
mercwithamouth has quit [Ping timeout: 246 seconds]
aspires has quit [Ping timeout: 246 seconds]
charliesome has quit [Ping timeout: 246 seconds]
icole has quit [Ping timeout: 246 seconds]
froggy_ has quit [Ping timeout: 246 seconds]
mordocai has quit [Ping timeout: 246 seconds]
alexju has quit [Remote host closed the connection]
kuzushi has quit [Ping timeout: 255 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
alexju has joined #ruby
mkaesz has joined #ruby
startupality has quit [Quit: startupality]
alexju has quit [Ping timeout: 240 seconds]
nfk has quit [Quit: yawn]
mkaesz has quit [Ping timeout: 246 seconds]
CuriousMind has joined #ruby
<CuriousMind> WOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO! I got good news everyone!!!!!!!!!!!!!!!!!!
<CuriousMind> First of all, happy friday to all of you, I hope you're having a fantastic time.
<CuriousMind> centrx, where are you?
<CuriousMind> RubyPanther?
<CuriousMind> Ok the good news is.......
<CuriousMind> I switched from Windows to Linux!!!!! WOOOOOOOOOOOOOO!
juz88 has joined #ruby
<drizz> what took you so long
startupality has joined #ruby
<CuriousMind> Ummmmmmmmmm, when you use an OS for a long time then ummm you know it's harder
<CuriousMind> 17 years
nat2610 has joined #ruby
pietr0 has quit [Quit: pietr0]
cy has joined #ruby
newUser1234 has quit [Remote host closed the connection]
razrunelord has quit []
Bira has joined #ruby
tokik has quit [Ping timeout: 255 seconds]
Kerber0s has quit [Remote host closed the connection]
Kerber0s has joined #ruby
Ulrike_Rayne has joined #ruby
ghr has joined #ruby
Zesty has joined #ruby
Bira has quit [Ping timeout: 260 seconds]
Darkchaos2 has quit [Ping timeout: 255 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
startupality has quit [Quit: startupality]
ephemerian has quit [Quit: Leaving.]
rostam has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
d2dchat has joined #ruby
ARCADIVS has joined #ruby
d2dchat has quit [Remote host closed the connection]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
Shidash has quit [Ping timeout: 245 seconds]
Kerber0s has quit [Quit: Leaving]
Kerber0s has joined #ruby
Petru has quit [Quit: Leaving]
bricker`work has quit [Ping timeout: 240 seconds]
<benzrf> CuriousMind: hella
<benzrf> CuriousMind: congratulations on moving up 8D
<CuriousMind> benzrf: Hiiiii
whyy has joined #ruby
<CuriousMind> Thank you!
<benzrf> what distro
fgo has joined #ruby
<CuriousMind> Ubuntu?
<benzrf> gool
<CuriousMind> Thank you I feel great
<benzrf> how familiar are you w/ usin unix tools
<CuriousMind> Linux is way better than shit windows
<CuriousMind> Pfff
jerikl has quit [Quit: jerikl]
<benzrf> if at all
sylvanica|afk is now known as sylvanica
icole_ has quit [Ping timeout: 245 seconds]
<pipework> CuriousMind: Shit linux is way better than best windows.
whyy has quit [Ping timeout: 244 seconds]
<CuriousMind> pipework: ha ha ha ha ha ha
<benzrf> CuriousMind: 09:10 < benzrf> how familiar are you w/ usin unix tools
fgo has quit [Ping timeout: 246 seconds]
<CuriousMind> pipework: Which distro is shit linux
<CuriousMind> benzrf: ehhhhhhh not that familiar but I am trying ya kno?
coldkey21 has quit [Quit: Leaving]
<CuriousMind> benzrf: I know some terminal commands
<benzrf> oki
<CuriousMind> la
<pipework> CuriousMind: yes.
<CuriousMind> ls
<benzrf> la is just ls -a
<benzrf> CuriousMind: do u kno about general flag conventions
<pipework> aliases, lul.
<CuriousMind> what does -a mean?
<CuriousMind> benzrf: No
<pipework> man ls
<benzrf> CuriousMind: ok
<CuriousMind> benzrf: I switch to linux to learn C better >:). Sorry, I am learning C now
philcrissman has joined #ruby
<benzrf> no dont
<CuriousMind> benzrf: Ok.
<pipework> do whatever makes you happy.
<CuriousMind> benzrf: BTW I am Noob101, I switch to a better name
<pipework> I drink and develop.
<benzrf> most cmds have a convention of recognizing 'flags'
<benzrf> which look like `-a'
<benzrf> ls -a
<benzrf> ls -f
<benzrf> most programs that accept 1-letter flags will allow you to 'cluster' them
<CuriousMind> benzrf: so it would be a minus sign then a letter? That's a "flag"?
<benzrf> so ls -R -a becomes ls -Ra
<benzrf> CuriousMind: yes
<benzrf> there are also "long flags" that many programs use, which look like '--all'
patrick99e99 has joined #ruby
<benzrf> vs '-a'
melik has quit [Quit: Computer has gone to sleep.]
brothmars has joined #ruby
<CuriousMind> benzrf: Ah, daisy chaining daisy chaining!!!
<benzrf> some programs just use a single dash for long flags, like '-trim'
<benzrf> but in that case you cannot cluster 1-letter flags
<benzrf> because how can it tell between '-trim' and '-t -r -i -m'
<CuriousMind> benzrf: What do those flags mean
<benzrf> CuriousMind: which ones
<pipework> CuriousMind: `man man`
<CuriousMind> -a
<benzrf> CuriousMind: depends on the program
<benzrf> ls interprets the -a flag as meaning "list all files, even the ones that start with ."
icebourg has quit [Ping timeout: 260 seconds]
threesixes has joined #ruby
<benzrf> gnu/linux has no notion of "hidden files", but most programs will not show you files whose names start with a . by default
<CuriousMind> benzrf: Hm
<benzrf> keep in mind that your shell has *no idea about flags*
<benzrf> flags are entirely up to the program that parses the arguments
<benzrf> if i write "ls -Ra .foo"
<CuriousMind> benzrf: Why and how are files hidden
<CuriousMind> ?
<pipework> dat argv
Shidash has joined #ruby
<benzrf> then ls gets called with the strings "-Ra" and ".foo"
<benzrf> and it's up to ls to read that as a flag cluster and an argument
astav has joined #ruby
cap has quit [Remote host closed the connection]
<pipework> Ruby is the best place to learn the linuxes.
<benzrf> CuriousMind: because you shouldnt care about some of them most of the time
<benzrf> CuriousMind: if you look at your home dir, you normally only want to see the files that you put there
<benzrf> not the config for all your programs
cap has joined #ruby
philcrissman has quit [Ping timeout: 246 seconds]
<benzrf> i have 17 normally-named files & dirs in my home dir
<benzrf> but 229 in total, including all dotfiles
<threesixes> my $HOME is a nightmare
<waxjar> you should move :)
ixti has quit [Ping timeout: 240 seconds]
<Nilium> I have 334.
<Nightmare> same
<pipework> You should burn the place down.
<Nilium> 218 are normally-named
<benzrf> Nilium: jeezus
<Nilium> I dump a lot of test code in my home directory.
<benzrf> CuriousMind: you need to learn about your SHELL vs what the SYSTEM does
<threesixes> lol $HOME is a TB drive / is wipeable 60gb over the years $HOME's collected a lot of hidden .garbage
<benzrf> do you know what a shell is
<pipework> threesixes: spinning rust, awesome.
patrick99e99 has quit [Ping timeout: 260 seconds]
<waxjar> a shell is the $HOME of a snail
<benzrf> & what a terminal is
<CuriousMind> benzrf: no I don't know what a shell is
sylvanica has quit [Ping timeout: 255 seconds]
<CuriousMind> is terminal and shell the same
<benzrf> no!
<CuriousMind> dont kill me, I am new to this linux thuing. Sorry sorry sorry!
<benzrf> its fine man
<benzrf> CuriousMind: u see back in the olden days of yore, there were mainframes
fgo has joined #ruby
<benzrf> which were a single giant computer
<CuriousMind> mainframes?
<benzrf> then anybody who wanted to compute would use a TERMINAL, which was basically a monitor and a keyboard
<benzrf> the terminal would send the keys you pressed to the mainframe, which would send back text to display on the monitor
<pipework> Can you both move to a lunix channel for the lesson, or did you get comfy already?
<benzrf> there were also teletypes, which preceded terminals, and were like typewriters that typed what the mainframe sent back instead of showing it on a screen
cap has quit [Ping timeout: 255 seconds]
<Nilium> $HOME is not a Linux thing
OffTheRails has joined #ruby
pipework has left #ruby ["waiting for the offtopic to be interesting"]
<CuriousMind> what does mainframe look like, what is it? benzrf
<Nilium> It looks like a snake and it can be found strangling interns
<brothmars> benzrf have you tried xiki? what are your thoughts on it?
<benzrf> dunno what that is
<benzrf> CuriousMind: before computers were small & affordable, big businesses and universities would buy a single giant computer
<benzrf> a mainframe
<benzrf> 09:23 < benzrf> then anybody who wanted to compute would use a TERMINAL, which was basically a monitor and a keyboard
<benzrf> 09:23 < benzrf> the terminal would send the keys you pressed to the mainframe, which would send back text to display on the monitor
<Nilium> The fun part is that computer used to be something you called a person
<benzrf> so the mainframe would run multiple user sessions at once
diegoviola has joined #ruby
skysploit has joined #ruby
<benzrf> CuriousMind: anyway, this notion continues to exist today
<brothmars> benzrf xiki is a new terminal, looks good but haven't tried yet
<benzrf> but instead of hardware terminals we have software terminals
<CuriousMind> benzrf: so a mainframe is a terminal?
<benzrf> CuriousMind: have you ever tried reading what somebody is saying instead of looking at the first 3 words and guessing the rest
<CuriousMind> benzrf: is it the computer?
<CuriousMind> benzrf: ok sorry
<CuriousMind> a mainframe is a single giant computer benzrf ?
kuzushi has joined #ruby
wallerdev has quit [Quit: wallerdev]
maestrojed has quit [Quit: Computer has gone to sleep.]
<benzrf> ye
<CuriousMind> benzrf: what about the difference between shell and terminal?
<benzrf> a terminal is what i just explained
OrangePeel has joined #ruby
<benzrf> a shell is a text-based program that you may know as a "command line"
<CuriousMind> benzrf: I don't even know what they are really. I think the terminal directly talks to the computer or something?
<benzrf> however "command line" conflates terminal and shell
<CuriousMind> like I think a terminal is a program(code) and it allows you to access files and stuff
<benzrf> CuriousMind: in a modern OS, a terminal is a program that reads your keystrokes and sends them through a terminal interface to whatever program is listening
<benzrf> and then takes text back and displays it
robustus has quit [Ping timeout: 255 seconds]
mojo619 has quit [Quit: mojo619]
<benzrf> a terminal is to a text-based program as a mouse/monitor is to a GUI
<benzrf> except that nowadays terminals run as programs instead of being hardware
<benzrf> so the actual window is a terminal, and programs can attach to it and use it for keyboard input and text output
<benzrf> the SHELL is usually the program that opens by default when you make a new terminal
<CuriousMind> thank you benzrf
nanoyak has quit [Quit: Computer has gone to sleep.]
<benzrf> it prints a prompt that, by default, will look something like 'benzrf@benzrf-laptop:~$'
<benzrf> it reads commands and runs TheMoonMaster
<CuriousMind> this isgood information! benzrf
<benzrf> *them
robustus has joined #ruby
<CuriousMind> is good*
<benzrf> so when u type 'cat /var/www/index.html', your shell reads that, looks up the cat program, then passes it the argument "/var/www/index.html"
sylvanica has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
gccostabr has joined #ruby
pigram86 has joined #ruby
pigram86 has left #ruby [#ruby]
<cy> benzrf: for some reason i've always found it a bit silly that cat needs to be a program. heh
chipotle has quit [Quit: cya]
<benzrf> its for concatenating files
<benzrf> but people use it for echoing them too
jerikl has joined #ruby
fgo has quit [Remote host closed the connection]
<sylvanica> cat is just perfect :)
<benzrf> cat foo bar baz => prints contents of foo followed by bar followed by baz
nat2610 has quit [Quit: Leaving.]
mosoj is now known as omosoj
<cy> benzrf: i'm aware, it just seems like such a simple concept, though
fgo has joined #ruby
nat2610 has joined #ruby
mkaesz has joined #ruby
tylerkern has joined #ruby
<CuriousMind> benzrf: Wow, thank you sir. I appreciate it
<cy> benzrf: basically it seems more like something that would be a shell builtin than a binary
<cy> to me
tylerkern has quit [Client Quit]
jmbrown412 has quit [Remote host closed the connection]
duncannz has quit [Remote host closed the connection]
jmbrown412 has joined #ruby
OrangePeel has left #ruby [#ruby]
fgo has quit [Ping timeout: 260 seconds]
pietr0 has joined #ruby
mkaesz has quit [Ping timeout: 245 seconds]
krz has quit [Ping timeout: 244 seconds]
wallerdev has joined #ruby
toordog_ has joined #ruby
jmbrown412 has quit [Ping timeout: 272 seconds]
toordog has quit [Ping timeout: 260 seconds]
_2_tiny_dancer has joined #ruby
_2_tiny_dancer has left #ruby [#ruby]
sylvanica has quit [Ping timeout: 250 seconds]
cap has joined #ruby
kuzushi has quit [Ping timeout: 272 seconds]
kuzushi has joined #ruby
emmesswhy has joined #ruby
gilest has joined #ruby
chipotle has joined #ruby
skysploit has quit [Remote host closed the connection]
nat2610 has quit [Quit: Leaving.]
icebourg has joined #ruby
thomasxie has joined #ruby
bricker`LA has joined #ruby
yfeldblum has quit [Remote host closed the connection]
gccostabr has quit [Quit: ZZZzzz…]
yfeldblum has joined #ruby
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brothmars has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
yfeldblum has quit [Ping timeout: 272 seconds]
sylvanica has joined #ruby
lamasnik has quit [Ping timeout: 240 seconds]
jeramyRR has quit [Quit: jeramyRR]
jeramyRR has joined #ruby
fgo has joined #ruby
freerobby has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
d2dchat has joined #ruby
dorei has quit []
fgo has quit [Ping timeout: 240 seconds]
deric_skibotn has quit [Ping timeout: 260 seconds]
starless has quit [Quit: Leaving]
sylvanica has quit [Quit: Leaving]
sylvanica has joined #ruby
K4IS3I2 has joined #ruby
austin has joined #ruby
austin has quit [Client Quit]
K4IS3I2 has quit [Client Quit]
aewffwea has joined #ruby
juz88 has quit [Ping timeout: 240 seconds]
d2dchat has quit [Remote host closed the connection]
jhass is now known as jhass|off
nateberkopec has joined #ruby
ptrrr has quit [Quit: ptrrr]
djbkd has quit [Remote host closed the connection]
gilest has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
sdwrage has joined #ruby
kuzushi has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
tectonic has joined #ruby
lamasnik has joined #ruby
gilest has joined #ruby
melik has joined #ruby
tjr9898 has joined #ruby
mary5030_ has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 264 seconds]
<hakunin> i wonder if it would pass as a bag that h={}; h.fetch(nil) { 'foo' }; h # => {}
<hakunin> *bug
xcv_ has quit [Remote host closed the connection]
<hakunin> h[nil] = 'foo' however works
diegovio1 has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
tjr9898 has quit [Ping timeout: 244 seconds]
<hakunin> i think i'm using fetch wrong, disregard
AlexRussia has quit [Quit: WeeChat 1.0-dev]
Shidash has quit [Ping timeout: 260 seconds]
AlexRussia has joined #ruby
kuzushi has joined #ruby
sevvie has joined #ruby
vsoftoiletpaper has quit [*.net *.split]
elaptics`away has quit [*.net *.split]
bclune_ has quit [*.net *.split]
M-Technic has quit [*.net *.split]
Cache_Money has quit [*.net *.split]
micah`_ has quit [*.net *.split]
donofrio has quit [*.net *.split]
jpiche has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
segv has quit [*.net *.split]
dyreshark has quit [*.net *.split]
marcel has quit [*.net *.split]
niharvey has quit [*.net *.split]
zastern has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
lazyguru has quit [*.net *.split]
malcolmva has quit [*.net *.split]
seph429 has quit [*.net *.split]
franks2 has quit [*.net *.split]
pietr0 has quit [*.net *.split]
threesixes has quit [*.net *.split]
omosoj has quit [*.net *.split]
snath has quit [*.net *.split]
quarcu has quit [*.net *.split]
jamespw has quit [*.net *.split]
cHarNe2 has quit [*.net *.split]
fold has quit [*.net *.split]
Photism has quit [*.net *.split]
Matadoer has quit [*.net *.split]
lkba has quit [*.net *.split]
kaspergrubbe_ has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
Mattias has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
cnj has quit [*.net *.split]
cgj has quit [*.net *.split]
hephaestus_rg has quit [*.net *.split]
maloik has quit [*.net *.split]
kotk_ has quit [*.net *.split]
axisys has quit [*.net *.split]
chridal has quit [*.net *.split]
wackobobby has quit [*.net *.split]
LACP has quit [*.net *.split]
GeekOnCoffee has quit [*.net *.split]
yliu has quit [*.net *.split]
pontiki has quit [*.net *.split]
Gnubie_ has quit [*.net *.split]
matrixise has quit [*.net *.split]
zenspider has quit [*.net *.split]
moshee has quit [*.net *.split]
Muz has quit [*.net *.split]
xiphias has quit [*.net *.split]
sdwrage has quit [*.net *.split]
aewffwea has quit [*.net *.split]
icebourg has quit [*.net *.split]
wallerdev has quit [*.net *.split]
diegoviola has quit [*.net *.split]
gigetoo has quit [*.net *.split]
mbwe has quit [*.net *.split]
cid404 has quit [*.net *.split]
niklasb has quit [*.net *.split]
wakingideas has quit [*.net *.split]
amclain has quit [*.net *.split]
smuckk has quit [*.net *.split]
cajone has quit [*.net *.split]
agjacome_ has quit [*.net *.split]
wchun has quit [*.net *.split]
cherry_l1n has quit [*.net *.split]
phreax has quit [*.net *.split]
gtc has quit [*.net *.split]
mattp_ has quit [*.net *.split]
gizmore has quit [*.net *.split]
neersighted has quit [*.net *.split]
Eiam has quit [*.net *.split]
mgv has quit [*.net *.split]
aledovsky has quit [*.net *.split]
v0n has quit [*.net *.split]
s_e_ has quit [*.net *.split]
minecoins has quit [*.net *.split]
cuqa has quit [*.net *.split]
daed has quit [*.net *.split]
BeanDip_ has quit [*.net *.split]
kallen has quit [*.net *.split]
Platini has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
peeja has quit [*.net *.split]
AlyssaDaemon has quit [*.net *.split]
edwardly has quit [*.net *.split]
isomorphismes has quit [*.net *.split]
hydrajump has quit [*.net *.split]
pdtpatr1ck has quit [*.net *.split]
Kruppe has quit [*.net *.split]
_KaszpiR_ has quit [*.net *.split]
oz has quit [*.net *.split]
saltsa has quit [*.net *.split]
dserodio has quit [*.net *.split]
ClarusCogitatio has quit [*.net *.split]
davidcelis has quit [*.net *.split]
sfiggins has quit [*.net *.split]
jumblemuddle has quit [*.net *.split]
Davey has quit [*.net *.split]
dphase has quit [*.net *.split]
helpa has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
patteh has quit [*.net *.split]
jeaye has quit [*.net *.split]
cout has quit [*.net *.split]
dazeddev_ has quit [*.net *.split]
Nowaker has quit [*.net *.split]
Cork has quit [*.net *.split]
chihhsin_cloud has quit [*.net *.split]
Zespre has quit [*.net *.split]
kenndel has quit [Read error: Connection reset by peer]
diegovio1 is now known as diegoviola
timonv_ has joined #ruby
astav has quit [Quit: astav]
kuzushi has quit [Ping timeout: 245 seconds]
cnj has joined #ruby
fold has joined #ruby
kaspergrubbe_ has joined #ruby
chrishough has quit [Quit: chrishough]
Shidash has joined #ruby
timonv_ has quit [Ping timeout: 272 seconds]
Cork has joined #ruby
Kerber0s has quit [Quit: Leaving]
Kerber0s has joined #ruby
cap has quit [Remote host closed the connection]
cap has joined #ruby
chipotle_ has joined #ruby
brianherman has quit [Read error: Connection reset by peer]
chipotle has quit [Ping timeout: 260 seconds]
Bira has joined #ruby
Somekindabitcoin has joined #ruby
Somekindabitcoin has left #ruby [#ruby]
Kerber0s has quit [Client Quit]
Kerber0s has joined #ruby
Kerber0s has quit [Remote host closed the connection]
Kerber0s has joined #ruby
whyy has joined #ruby
Kerber0s has quit [Client Quit]
sent-hil has quit [Quit: Connection closed for inactivity]
frankle has quit [Quit: Connection closed for inactivity]
Bira has quit [Ping timeout: 245 seconds]
kaspergrubbe_ has quit [Remote host closed the connection]
jerikl has quit [Quit: jerikl]
Kerber0s has joined #ruby
whyy has quit [Ping timeout: 250 seconds]
<kies> metaprogramming is sexy :o
jerikl has joined #ruby
Vile` has quit [Quit: .]
jmbrown412 has joined #ruby
braincrash has quit [Quit: bye bye]
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
lukeholder has joined #ruby
Shidash has quit [Read error: Connection reset by peer]
Shidash has joined #ruby
sdwrage has joined #ruby
fgo has joined #ruby
<TheMoonMaster> benzrf: Wow, I never knew I was such a vital part of your workflow.
<TheMoonMaster> You're welcome
<benzrf> its true
jmbrown412 has quit [Ping timeout: 250 seconds]
braincrash has joined #ruby
thomasxie has quit [Remote host closed the connection]
barhum2013 has quit [Quit: barhum2013]
<CuriousMind> What does it mean if the stack level is too deep?
<CuriousMind> Did I hurt ruby's feelings or something
yfeldblum has joined #ruby
jmbrown412 has joined #ruby
snath has joined #ruby
vsoftoiletpaper has joined #ruby
elaptics`away has joined #ruby
lkba has joined #ruby
Photism has joined #ruby
segv has joined #ruby
quarcu has joined #ruby
axisys has joined #ruby
dyreshark has joined #ruby
malcolmva has joined #ruby
Emmanuel_Chanel has joined #ruby
chihhsin_cloud has joined #ruby
threesixes has joined #ruby
cgj has joined #ruby
cHarNe2 has joined #ruby
Mon_Ouie has joined #ruby
franks2 has joined #ruby
Mattias has joined #ruby
hephaestus_rg has joined #ruby
marcel has joined #ruby
niharvey has joined #ruby
bclune_ has joined #ruby
kotk_ has joined #ruby
lazyguru has joined #ruby
Muz has joined #ruby
pontiki has joined #ruby
jamespw has joined #ruby
Zespre has joined #ruby
M-Technic has joined #ruby
Cache_Money has joined #ruby
donofrio has joined #ruby
Gnubie_ has joined #ruby
GeekOnCoffee has joined #ruby
micah`_ has joined #ruby
zenspider has joined #ruby
Lewix has joined #ruby
seph429 has joined #ruby
Matadoer has joined #ruby
Sou|cutter has joined #ruby
yliu has joined #ruby
maloik has joined #ruby
jpiche has joined #ruby
xiphias has joined #ruby
matrixise has joined #ruby
LACP has joined #ruby
wackobobby has joined #ruby
moshee has joined #ruby
chridal has joined #ruby
zastern has joined #ruby
sn0wb1rd has joined #ruby
jmbrown412 has quit [Remote host closed the connection]
asteve has joined #ruby
mbwe has joined #ruby
aewffwea has joined #ruby
gigetoo has joined #ruby
icebourg has joined #ruby
wallerdev has joined #ruby
cid404 has joined #ruby
niklasb has joined #ruby
cajone has joined #ruby
agjacome_ has joined #ruby
cuqa has joined #ruby
gtc has joined #ruby
cherry_l1n has joined #ruby
amclain has joined #ruby
dserodio has joined #ruby
wakingideas has joined #ruby
mgv has joined #ruby
Eiam has joined #ruby
phreax has joined #ruby
neersighted has joined #ruby
minecoins has joined #ruby
aledovsky has joined #ruby
BeanDip_ has joined #ruby
v0n has joined #ruby
wchun has joined #ruby
gizmore has joined #ruby
peeja has joined #ruby
AlyssaDaemon has joined #ruby
Platini has joined #ruby
kallen has joined #ruby
daed has joined #ruby
hydrajump has joined #ruby
edwardly has joined #ruby
samuelkadolph has joined #ruby
mattp_ has joined #ruby
s_e_ has joined #ruby
smuckk has joined #ruby
saltsa has joined #ruby
jumblemuddle has joined #ruby
Nowaker has joined #ruby
pdtpatr1ck has joined #ruby
avelldiroll has joined #ruby
oz has joined #ruby
cout has joined #ruby
patteh has joined #ruby
isomorphismes has joined #ruby
jeaye has joined #ruby
dazeddev_ has joined #ruby
sfiggins has joined #ruby
Davey has joined #ruby
helpa has joined #ruby
_KaszpiR_ has joined #ruby
davidcelis has joined #ruby
ClarusCogitatio has joined #ruby
dphase has joined #ruby
Kruppe has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
mojo619 has joined #ruby
cap has quit [Ping timeout: 260 seconds]
sylvanica has quit [Ping timeout: 272 seconds]
nateberkopec has quit [Quit: Leaving...]
chrishough has joined #ruby
Cache_Money has quit [Ping timeout: 246 seconds]
Vile` has joined #ruby
Kerber0s has quit [Ping timeout: 260 seconds]
jonr22 has joined #ruby
cap has joined #ruby
sylvanica has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
sdwrage has quit [Quit: Leaving]
MatthewsFace has joined #ruby
jonr22 has quit [Quit: WeeChat 0.4.2]
jonr22 has joined #ruby
_mikedugan has joined #ruby
<benzrf> CuriousMind: the stack is the call stack
<benzrf> it's a stack of calls
<benzrf> CuriousMind: imagine that you were a ruby interpreter
<benzrf> i give u ruby code & you manually figure out the result
<_mikedugan> do you guys have a preferred paste service here?
<benzrf> what if i give you this code:
<benzrf> def foo
<benzrf> bar + 1
<benzrf> end
<benzrf> def bar
_mikedugan is now known as mikedugan
<benzrf> baz + 2
<benzrf> end
<benzrf> def baz
<benzrf> 3
<benzrf> end
<benzrf> then i ask u to figure out `foo'
<benzrf> what would you do
<CuriousMind> ummmmmmmmmmmmmmmmmmmm
<CuriousMind> that looks complicated as hell soooooooooooooooo
<jeaye> Definitely not the channel.
_0xf_ has quit [Ping timeout: 240 seconds]
<CuriousMind> foo == foo?
_0xf_ has joined #ruby
<CuriousMind> I don't get what a stack call is still
crdpink has joined #ruby
<benzrf> CuriousMind: dw
<benzrf> CuriousMind: ok nvm 1 SecretAgent
<benzrf> *sec
<CuriousMind> or what it means when it says stack deep
* benzrf writes up some stuff
<CuriousMind> benzrf: ok
* CuriousMind waits patiently for benzrf to write his stuff
crdprink2 has quit [Ping timeout: 245 seconds]
cesurasean has joined #ruby
<benzrf> CuriousMind: look @ that code
kuzushi has joined #ruby
<cesurasean> any idea how to solve this issue? - http://pastebin.com/BXAcpxuJ
<mikedugan> I'm trying to do some seemingly simple matching of CSS rgb codes...my MatchData only contains one group when there should be 2...advice? http://pastebin.com/pk4HHMLB
<benzrf> ok u know what?
<benzrf> somebody needs to invent a ubiquitous, easy-to-use, performant parser combinator lib for ruby
<benzrf> im sick of complex regexes
<mikedugan> ha, mines not for any *real* purpose, just learning value
chipotle_ has quit [Ping timeout: 260 seconds]
_0xf_ has quit [Ping timeout: 264 seconds]
<mikedugan> I've always figured if you can figure out how a language's regex works, you can do anything else you need to
<CuriousMind> mikedugan: can you teach me how to learn from mines?
<benzrf> CuriousMind: did u read that code
<mikedugan> indeed, step on one and your mind wil be blown :)
<benzrf> parser combinators are hella
<benzrf> if only ruby had innate support for them instead of regex
<mikedugan> mmmm scala
Spami has joined #ruby
<benzrf> then again
<benzrf> w/e
<CuriousMind> benzrf: yes foo is bar + 1
<benzrf> CuriousMind: no, the gist i linked
<CuriousMind> ohhhhh
<CuriousMind> sorry benzrf
<benzrf> man
<benzrf> every language shd have do-ntation
mkaesz has joined #ruby
cesurasean1 has joined #ruby
jonr22 has quit [Ping timeout: 255 seconds]
<cesurasean1> any idea how to solve this issue? - http://pastebin.com/BXAcpxuJ
cesurasean has quit [Ping timeout: 250 seconds]
<CuriousMind> benzrf: this is confusing
sevvie has quit [Ping timeout: 250 seconds]
<CuriousMind> benzrf: I'm going to sleep, I still don't know what stack too deep means
<CuriousMind> benzrf: thank you for your efforts though
InhalingPixels has quit [Remote host closed the connection]
<CuriousMind> Linux > windows any day
melik has quit [Quit: Computer has gone to sleep.]
<diegoviola> agreed
<benzrf> CuriousMind: thats because
mkaesz has quit [Ping timeout: 260 seconds]
<benzrf> YOU ARENT LETTING ME TALK
<benzrf> x_x
<benzrf> i am going to explain
<benzrf> but i ask you to bear with me, and you say "i still dont understand"
alvaro_o_ has quit [Quit: Ex-Chat]
<CuriousMind> benzrf: ok sorry sorry sorry <:(
<CuriousMind> benzrf: don't make me cry before i go to my hackathon tomorrow
<CuriousMind> plus I'm already going to not get enough sleep
mary5030 has joined #ruby
chipotle has joined #ruby
<benzrf> soz >.<
cap has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
ph8 has quit [Ping timeout: 250 seconds]
cap has joined #ruby
alexju has joined #ruby
JoshGlzBrk has joined #ruby
MatthewsFace has quit [Ping timeout: 246 seconds]
nateberkopec has joined #ruby
thomasxie has joined #ruby
<ari-_-e> cesurasean1: maybe read the message at the top?
mary5030 has quit [Ping timeout: 272 seconds]
cap has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
alexju has quit [Ping timeout: 272 seconds]
amacou has joined #ruby
abc has joined #ruby
amacou has quit [Remote host closed the connection]
Zenigor has joined #ruby
amacou has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Bira has joined #ruby
sevvie has joined #ruby
abc has quit [Client Quit]
cap has joined #ruby
Zenigor has quit [Remote host closed the connection]
ph8 has joined #ruby
Bira has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
astav has joined #ruby
andrewhampton has joined #ruby
andrewhampton has left #ruby [#ruby]
mgomezch has left #ruby [#ruby]
icebourg has quit []
fgo has joined #ruby
wakingideas has quit [Remote host closed the connection]
Wolland has joined #ruby
kireevco has joined #ruby
kireevco has left #ruby [#ruby]
arup_r has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
<cesurasean1> any idea how to solve this issue? - http://pastebin.com/BXAcpxuJ
<pontiki> follow the directions given?
sevvie has quit [Ping timeout: 272 seconds]
zz_anildigital is now known as anildigital
kuzushi has quit [Quit: Leaving]
astav has quit [Quit: astav]
cap has quit [Remote host closed the connection]
mikedugan has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
cap has joined #ruby
<ari-_-e> cesurasean1: did you see my message?
<cesurasean1> yes, i did follow the directions, and it doesn't fix it!
<cesurasean1> im not that stupid.
<ari-_-e> well, then you haven't given enough information for us to help you
<cesurasean1> why haven't i?
amclain has quit [Quit: Leaving]
absolutezeroff has quit [Remote host closed the connection]
<ari-_-e> because we had to ask that question
crdprink2 has joined #ruby
crdpink has quit [Ping timeout: 255 seconds]
<ari-_-e> which runtime did you install? how did you install it? etc etc
<ari-_-e> basically what have you done to try to solve the problem
cap has quit [Ping timeout: 240 seconds]
thomasxie has left #ruby [#ruby]
_0xf_ has joined #ruby
InhalingPixels has joined #ruby
crdpink has joined #ruby
<cesurasean1> ive installed what the url told me to.
<cesurasean1> gem install execjs
crdprink2 has quit [Ping timeout: 260 seconds]
<ari-_-e> cesurasean1: umm... execjs was already installed, or it wouldn't have been there to give you that message
tylerkern has joined #ruby
<ari-_-e> your paste actually includes references to execjs
<cesurasean1> what runtime does it need?
gogohome has joined #ruby
xcv has joined #ruby
<ari-_-e> /usr/local/rvm/gems/ruby-1.9.3-p547/gems/execjs-2.2.1/ etc
<gogohome> how can i send message who live in other channel?
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cesurasean1> apt-get install nodejs does not work. package can't be found.
<ari-_-e> cesurasean1: where did you see to run that command?
tylerkern has quit [Client Quit]
yacks has joined #ruby
<gogohome> ari-_-e: ?
<ari-_-e> gogohome: what?
<gogohome> how can i send message who live in other channel?
<ari-_-e> gogohome: troll somewhere else
InhalingPixels has quit [Ping timeout: 250 seconds]
_0xf_ has quit [Ping timeout: 264 seconds]
<gogohome> i have to say to someone.
<gogohome> please help me
<ari-_-e> nobody wants to hear you talk
<ari-_-e> go away
<gogohome> :(
Cache_Money has joined #ruby
<gogohome> you can find the id for me in the python channel. his id is started with Yh******?
<gogohome> perhaps Yhg*****
<gogohome> ari-_-e:
xcv has quit [Ping timeout: 250 seconds]
<pontiki> gogohome: /part #python
mojo619 has quit [Quit: mojo619]
jerikl has quit [Quit: jerikl]
<gogohome> pontiki: i can’t go there now.
<ari-_-e> gogohome: ahh, I see your were banned
<ari-_-e> good riddance
<gogohome> help me ari-_-e
<gogohome> i think you are very goo ruby programmer.
geggam_ has joined #ruby
cap has joined #ruby
<pontiki> there. clears up that.
<pontiki> ari-_-e: i think you're pretty goo, too
<gogohome> pontiki: you can help me? then i will never forget your help.
<ari-_-e> haha
<ari-_-e> I am so goo
arup_r has quit [Ping timeout: 255 seconds]
_0xf_ has joined #ruby
geggam has quit [Ping timeout: 260 seconds]
<gogohome> who can help me?
<gogohome> i will never forget your help?
diegovio1 has joined #ruby
diegoviola is now known as Guest26864
diegovio1 is now known as diegoviola
chipotle has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
Guest26864 has quit [Ping timeout: 250 seconds]
_0xf_ has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
mkaesz has joined #ruby
chipotle has joined #ruby
melik has joined #ruby
andrewhampton has joined #ruby
koderok has joined #ruby
dseitz has joined #ruby
brothmars has joined #ruby
crdprink2 has joined #ruby
mkaesz has quit [Ping timeout: 272 seconds]
crdpink has quit [Ping timeout: 240 seconds]
whyy has joined #ruby
timonv_ has joined #ruby
ssbr_at_work has joined #ruby
x1337807x has joined #ruby
cap has quit [Remote host closed the connection]
cap has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
whyy has quit [Ping timeout: 264 seconds]
philcrissman has joined #ruby
timonv_ has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
jerikl has joined #ruby
cap has quit [Ping timeout: 240 seconds]
andrewhampton has left #ruby [#ruby]
<gogohome> pontiki: what are you doing?
sevvie has joined #ruby
philcrissman has quit [Ping timeout: 255 seconds]
nateberkopec has joined #ruby
Bira has joined #ruby
Cache_Money has quit [Read error: Connection reset by peer]
Cache_Money has joined #ruby
cap has joined #ruby
EvanR_ has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
EvanR_ has joined #ruby
CorpusCallosum has joined #ruby
razum2um has joined #ruby
Bira has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
axl_ has quit [Client Quit]
razum2um has quit [Client Quit]
arq_ has quit [Ping timeout: 260 seconds]
<gogohome> No one is here?
mary5030 has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 272 seconds]
JoshGlzB_ has joined #ruby
CorpusCallosum has quit [Ping timeout: 240 seconds]
<gogohome> ari-_-e: what are you doing?
<ari-_-e> drinking
<ari-_-e> you?
<gogohome> i want your help.
jerikl has quit [Quit: jerikl]
<ari-_-e> I gathered
<gogohome> we are in ruby channel. so we must help each other.
<ari-_-e> that is false
<gogohome> why?
<gogohome> i m real
<cy> gogohome: being helpful is not a requirement of #ruby afaik
<gogohome> cy what mean?
Bira has joined #ruby
JoshGlzBrk has quit [Ping timeout: 255 seconds]
fgo has joined #ruby
<cy> gogohome: i mean that nobody has to help you. if someone feels like volunteering to, they'll do so.
jerikl has joined #ruby
<gogohome> then you can help me? cy
<cy> if i knew what you wanted i might
cap has quit [Remote host closed the connection]
<cy> ari-_-e: what'cha drinkin'?
<gogohome> ok
<ari-_-e> cy: btw, gogohome/fly2web/a few other nicks has been trolling and being generally disruptive on several programming channels across freenode
<gogohome> you can find the id for me in the python channel. his id is started with Yh******?
<gogohome> cy
cap has joined #ruby
<cy> gogohome: check your client's logs
<ari-_-e> I'm not this dismissive of most people :)
<gogohome> i don’t have client.
<gogohome> cy:
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<cy> gogohome: your irc client
<gogohome> how?
fgo has quit [Ping timeout: 240 seconds]
Bira has quit [Ping timeout: 244 seconds]
CorpusCallosum has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
Photism has quit [Quit: Leaving]
cap has quit [Ping timeout: 240 seconds]
barhum2013 has joined #ruby
<gogohome> cy: i must stop programming? is it better for me?
<ssbr_at_work> Can somebody paste me logs about what gogohome has been on about?
<cy> gogohome: if you feel that way go ahead
<ari-_-e> ssbr_at_work: hi :)
<ari-_-e> ssbr_at_work: there's a channel log, see topic
<ssbr_at_work> Ah, of course. Thanks.
<asteve> I want to create a set that contains all integer values between 5 and 10, how would I do that?
barhum2013 has quit [Client Quit]
<gogohome> i want stop my programming now.
IceDragon has quit [Quit: Space~~~]
<gogohome> on one help me
<gogohome> :(
<cy> gogohome: then stop doing so. it's not that hard.
<ssbr_at_work> gogohome: if you want to appeal your ban, go to #python-ops -- #ruby is not the appropriate place to ask questions about #python
<gogohome> ssbr_at_work: oh
<gogohome> thanks
vsoftoiletpaper has left #ruby [#ruby]
<cy> gogohome: i tried to help you, i'm sorry you feel that i didn't.
razum2um has joined #ruby
barhum2013 has joined #ruby
sylvanica has quit [Quit: Leaving]
sylvanica has joined #ruby
<gogohome> yw
<gogohome> :(
<cy> ari-_-e: i can't tell if it seems odder to me that there are sites like that or that i'm surprised there are sites like that
alexju has joined #ruby
<ari-_-e> cy: what, beeradvocate?
<cy> yeah
<ari-_-e> there are sites for reviewing everything
<ari-_-e> I need to know what other people think about every aspect of my life
<cy> that's why i find it odd i'm surprised but that
<ari-_-e> including my beer choices :)
<ari-_-e> actually it was just a convenient link to use
mahtennek has joined #ruby
<cy> ari-_-e: i like being drunk but i hate drinking because alcohol has such a strong bitter taste (imo)
<gogohome> his id is Yhg1s.
<ari-_-e> I have the same problem - that's why I drink beer
<cy> not just beer but anything alcoholic. including nyquil.
<gogohome> every one help me writing message to Yhg1s not ban me.
<cy> gogohome: or we could no help you spam him and tell freenode's staff you're trying to get us to
<ssbr_at_work> gogohome: yeah, no. You're permabanned.
sylvanica has quit [Ping timeout: 245 seconds]
Ankhers has quit [Ping timeout: 264 seconds]
<gogohome> who is freenode’s staff?
<ari-_-e> baha
<cy> gogohome: the people who run the network.
<ari-_-e> gogohome: you can ask in #freenode, but prepare to be completely ignored
toordog_ has quit [Remote host closed the connection]
razum2um has quit [Quit: Leaving.]
<gogohome> ok thanks ari-_-e
<ssbr_at_work> As a matter of fact, every part of this conversation would have been more appropriate there.
toordog has joined #ruby
<aewffwea> Do you know where can I get a crash curse in ruby?
Wolland_ has joined #ruby
lukeholder has joined #ruby
Morkel has joined #ruby
mahtennek has quit []
jerikl has quit [Quit: jerikl]
Wolland has quit [Ping timeout: 260 seconds]
_0xf_ has joined #ruby
mary5030 has joined #ruby
sevvie has quit [Ping timeout: 255 seconds]
Morkel has quit [Ping timeout: 244 seconds]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_0xf_ has quit [Ping timeout: 255 seconds]
sdwrage has joined #ruby
jerikl has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
mkaesz has joined #ruby
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
melik has quit [Quit: Computer has gone to sleep.]
chipotle has quit [Ping timeout: 260 seconds]
goshdarnyou has quit [Quit: Connection closed for inactivity]
<cy> aewffwea: not finding anything by googling that exact phrase?
<cy> i don't really understand why ruby is compared so much to lisp
cap has joined #ruby
mkaesz has quit [Ping timeout: 260 seconds]
chipotle has joined #ruby
Sauvin has joined #ruby
JoshGlzB_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
geggam_ is now known as geggam
jerikl has quit [Quit: jerikl]
<aewffwea> cy: because of the parenthesis
cap has quit [Remote host closed the connection]
Ankhers has joined #ruby
cap has joined #ruby
ssbr_at_work has left #ruby ["glad that mess was taken care of"]
reluctantlove has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
yacks has quit [Ping timeout: 240 seconds]
gilest has quit [Remote host closed the connection]
cap has quit [Ping timeout: 246 seconds]
amacou has quit [Read error: Connection reset by peer]
pipework has joined #ruby
amacou has joined #ruby
sdwrage has quit [Quit: Leaving]
charliesome has joined #ruby
nateberkopec has joined #ruby
jdj_dk has joined #ruby
<gogohome> oh
<gogohome> my god
<gogohome> #python operator say to me that i will never do that.
<gogohome> how can i do?
nateberkope has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
<gogohome> i decide that i will stop programming from now.
Ankhers has quit [Ping timeout: 264 seconds]
<cy> gogohome: you decided that earlier
<gogohome> goodbye everyone and freenode.
<cy> bye
<gogohome> thanks cy
<gogohome> ruby is powerful than python?
<pipework> gogohome: It has no power when you're quitting programming.
alexju has quit [Remote host closed the connection]
<gogohome> pipework: oh yes.
ghr has joined #ruby
alexju has joined #ruby
<cy> gogohome: if you want power you want to get into electrical engineering, not programming
cap has joined #ruby
<pipework> cy: 1.21 jiggawatts?!
nateberkope has quit [Ping timeout: 240 seconds]
<gogohome> electronic engineering don’t related with programming?
<gogohome> cy:
bearish has joined #ruby
<cy> pipework: what's a jiggawatt?
<ari-_-e> pipework: we're gonna see some serious shit
starless has joined #ruby
cap has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<cy> ari-_-e: first you have to 88mph
<gogohome> ok
ghr has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Max SendQ exceeded]
alexju has quit [Ping timeout: 245 seconds]
<gogohome> then i will do c and c++ only.
cap has joined #ruby
<ari-_-e> cy: true, true
<cy> gogohome: i wouldn't recommend that these days
<gogohome> cy: why?
<cy> gogohome: i suggest looking into COBOL
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
<gogohome> COBOL?
<gogohome> what is it?
<cy> the Common Business-Oriented Language.
oo_ has joined #ruby
iamjarvo has joined #ruby
<ari-_-e> gogohome: have you figured out what arduino is yet?
iamjarvo has quit [Max SendQ exceeded]
<gogohome> i think that COBOL is past language.
fgo has joined #ruby
<cy> nah businesses use it all the time
<Boohbah> all the old COBOL programmers are dying
iamjarvo has joined #ruby
<gogohome> i don’t receive arduino stuff from ebay.
<cy> Boohbah: and as such, the new COBOL programmers are in high demand
<gogohome> maybe it will be received soon later.
bearish has quit [Ping timeout: 245 seconds]
<Boohbah> cy: i have heard that
<gogohome> then i will stop all just like c and c++ and arduino
cap has quit [Ping timeout: 240 seconds]
gilest has joined #ruby
<Boohbah> “The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offense.” - Dijkstra
rippa has joined #ruby
cesurasean1 has quit [Ping timeout: 250 seconds]
<cy> Boohbah: i've heard stories of companies that still use vt100s for COBOL development
fgo has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
Wolland_ is now known as Wolland
xcv has joined #ruby
<gogohome> bye
<gogohome> everyone
cesurasean has joined #ruby
<gogohome> i will never return to freenode.
<benlieb> Can someone help me understand ||= ?
<benlieb> I just read a blog that says: A common misconception is that a ||= b is equivalent to a = a || b, but it behaves like a || a = b
<pipework> benlieb: Was google not good enough?
<benlieb> but I don't think either is right
<ari-_-e> gogohome: are you fishing for someone to tell you not to leave?
<pipework> ari-_-e: Please stop feeding
<Mon_Ouie> benlieb: The latter is closer, the main difference is that x ||= y automatically defines x
<benlieb> pipework: yes that's the blog entry. and it's incorrect.
<Mon_Ouie> >> x ||= x; x
<eval-in> Mon_Ouie => nil (https://eval.in/179811)
<Mon_Ouie> >> x || x = x; x
<eval-in> Mon_Ouie => undefined local variable or method `x' for main:Object (NameError) ... (https://eval.in/179812)
<gogohome> :(
<benlieb> a || a = b fails when a is not defined but a ||= 1 doesn't
<gogohome> all is end
<gogohome> i will stop programming anymore.
<Mon_Ouie> It's not usually a problem to handle things that aren't defined yet
<Mon_Ouie> It should only happen in templating languages
gogohome has left #ruby [#ruby]
<Mon_Ouie> (note that @x ||= 1 works anyway because ivars are autovivified)
<ari-_-e> pipework: you're right, will do
<pipework> benlieb: Is there anything confusing about it?
<benlieb> Mon_Ouie: that may be, but it doesn't error when a is undefined, making it quite different from either of those bits
xcv has quit [Ping timeout: 240 seconds]
<Mon_Ouie> Yes, as I said, x || x = y is closer, but neither match the exact behavior
lukeholder has joined #ruby
<pipework> (a = a if defined?(a)) || (a = b)
<benlieb> pipework: yes, that's the behavior I've observed
pietr0 has joined #ruby
<benlieb> or perhaps a = b unless dfined(a)
yacks has joined #ruby
<pipework> benlieb: No.
<Mon_Ouie> >> a = nil; a ||= 3; a
<eval-in> Mon_Ouie => 3 (https://eval.in/179816)
<Mon_Ouie> a was defined at that point.
<pipework> >> (a = a if defined?(a)) || (a = b)
<eval-in> pipework => undefined local variable or method `b' for main:Object (NameError) ... (https://eval.in/179817)
<pipework> >> (a = a if defined?(a)) || (a = 4)
<eval-in> pipework => 4 (https://eval.in/179818)
<Mon_Ouie> And even the 'defined?' thing isn't quite right
<pipework> Mon_Ouie: why isn't it?
<Mon_Ouie> It will always try to call the getter method, even if it isn't 'defined?'
<pipework> what getter method?
<AlexRussia> hi folks
<pipework> Mon_Ouie: Yeah that's how it works.
<pipework> >> a ||= a
<eval-in> pipework => nil (https://eval.in/179819)
<Mon_Ouie> class Foo; attr_writer :bar; end; Foo.new.bar ||= 4
<pipework> notice that a got defined and set to nil
<Mon_Ouie> >> class Foo; attr_writer :bar; end; Foo.new.bar ||= 4
<eval-in> Mon_Ouie => undefined method `bar' for #<Foo:0x41251bec> (NoMethodError) ... (https://eval.in/179820)
<pipework> attr_accessor
<AlexRussia> if i want to encrypt data and after save it as file, what good methods you know?
<Mon_Ouie> But your expansion doesn't fail on the above program
<pipework> >> attr_accessor :bar; bar ||= bar
<eval-in> pipework => undefined method `attr_accessor' for main:Object (NoMethodError) ... (https://eval.in/179823)
<pipework> >> class << self; attr_accessor :bar; puts bar ||= bar; end
<eval-in> pipework => ... (https://eval.in/179824)
<benlieb> something like this then? a = b unless defined?(a) && !a.nil? && ! a == false
<pipework> no.
<Mon_Ouie> There just isn't a real expansion
_0xf_ has joined #ruby
<pipework> >> klass = Class.new { attr_accessor :bar }; klass.bar ||= klass.bar
<benlieb> It's behavior is a bit opaque, but it seems do set a to b unless it's defined, not nil, and not false
<eval-in> pipework => undefined method `bar' for #<Class:0x407f9c08> (NoMethodError) ... (https://eval.in/179826)
<pipework> >> klass = Class.new { attr_accessor :bar }; klass.new.bar ||= klass.new.bar
<eval-in> pipework => nil (https://eval.in/179827)
<pipework> Sorry, I should really be irbing more.
jerikl has joined #ruby
<pipework> Mon_Ouie: (a = a if defined?(a)) || (a = b) # This is the correct expansion.
<Mon_Ouie> The way it works: if the lhs is an undefined local variable, it is implicitly defined as being nil. The lhs is then evaluated. If it evaluates to either nil or false, the rhs is evaluated and the lhs is set (possibly using a method call) to the resulting object.
InhalingPixels has joined #ruby
<Mon_Ouie> pipework: I just showed you a program that doesn't behave in the same way
<pipework> Showed how?
<Mon_Ouie> with your expansion and the real one
<Mon_Ouie> >> class Foo; attr_writer :bar; end; Foo.new.bar ||= 4
<eval-in> Mon_Ouie => undefined method `bar' for #<Foo:0x421e5b94> (NoMethodError) ... (https://eval.in/179829)
<pipework> Mon_Ouie: That's your being wrong.
<pipework> You need a reader.
cy has quit [Ping timeout: 250 seconds]
<pipework> >> klass = Class.new { attr_writer :bar }; klass.new.bar ||= klass.new.bar
<eval-in> pipework => undefined method `bar' for #<#<Class:0x408e5ba8>:0x408e5b1c> (NoMethodError) ... (https://eval.in/179830)
<Mon_Ouie> >> class Foo; attr_writer :bar; end; x = Foo.new; (x.bar = x.bar if defined?(x.bar)) || (x.bar = 4)
<eval-in> Mon_Ouie => 4 (https://eval.in/179831)
<pipework> >> klass = Class.new { attr_reader :bar }; klass.new.bar ||= klass.new.bar
<eval-in> pipework => undefined method `bar=' for #<#<Class:0x417b5b74>:0x417b5ae8> (NoMethodError) ... (https://eval.in/179832)
<Mon_Ouie> >> class Foo; attr_writer :bar; end; x = Foo.new; (x.bar = x.bar unless defined?(x.bar)) || (x.bar = 4)
<eval-in> Mon_Ouie => undefined method `bar' for #<Foo:0x421319f0> (NoMethodError) ... (https://eval.in/179833)
<Mon_Ouie> Oh, wait
Firebox has joined #ruby
cap has joined #ruby
<Firebox> then you ban me permantly?
<benlieb> so pipework to answer your original question, no google was not good enough, lol
<pipework> >> klass = Class.new { attr_reader :bar }; (klass.new.bar = klass.new.bar if defined?(klass.new.bar)) || (klass.new.bar = 4)
<eval-in> pipework => undefined method `bar=' for #<#<Class:0x416f5a40>:0x416f59a0> (NoMethodError) ... (https://eval.in/179836)
_0xf_ has quit [Ping timeout: 250 seconds]
cap has quit [Remote host closed the connection]
<pipework> >> klass = Class.new { attr_accessor :bar }; (klass.new.bar = klass.new.bar if defined?(klass.new.bar)) || (klass.new.bar = 4)
<eval-in> pipework => 4 (https://eval.in/179838)
<Mon_Ouie> Yeah, it does not behave the same
cap has joined #ruby
<pipework> It totally does
Firebox has left #ruby [#ruby]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
InhalingPixels has quit [Ping timeout: 245 seconds]
cajone has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<pipework> >> klass = Class.new { attr_accessor :bar }; (klass.new.bar ||= klass.new.bar) == ((klass.new.bar = klass.new.bar if defined?(klass.new.bar)) || (klass.new.bar = 4)) # Mon_Ouie What other situations are possible?
<eval-in> pipework => false (https://eval.in/179843)
<pipework> oh didn't put 4 in the rhs of the first.
benlieb has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
<pipework> Mon_Ouie: Yeah, I can see how ||= will send messages depending on whether it's a local or a method on the LHS.
cap has quit [Ping timeout: 246 seconds]
whyy has joined #ruby
<Mon_Ouie> Also other problem while writing the paste: Foo.new.bar ||= 3 # only ever creates one instance of Foo
<Mon_Ouie> All the expansions shown will create multiple ones
<pipework> Yeah, there's definitely a little more needed.
<pipework> but it's just checking the output of defined? and calling on the LHS after it's defined.
tjr9898 has joined #ruby
melik has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
philcrissman has joined #ruby
cap has joined #ruby
whyy has quit [Ping timeout: 260 seconds]
mr-foobar has quit [Read error: Connection reset by peer]
mr-foobar has joined #ruby
wjimenez5271 has joined #ruby
toastynerd has joined #ruby
tjr9898 has quit [Ping timeout: 272 seconds]
mkaesz has joined #ruby
relix has joined #ruby
philcrissman has quit [Ping timeout: 260 seconds]
chipotle has quit [Ping timeout: 255 seconds]
jdj_dk has quit [Read error: Connection reset by peer]
mkaesz has quit [Ping timeout: 264 seconds]
timonv_ has joined #ruby
jmbrown412 has joined #ruby
wald0 has quit [Ping timeout: 260 seconds]
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bearish has joined #ruby
oo_ has joined #ruby
SilkFox has quit [Read error: Connection reset by peer]
SilkFox has joined #ruby
mkaesz has joined #ruby
mkaesz has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 260 seconds]
bearish has quit [Ping timeout: 246 seconds]
jerikl has quit [Quit: jerikl]
<benlieb> pipework: Mon_Ouie: just checking back in. did you guys reach a conclusion? One of you should write up a blog post.
<benlieb> :)(
<benlieb> oops :)
memph1s has joined #ruby
mary5030 has quit [Remote host closed the connection]
<pipework> benlieb: I don't know, I've never felt that surprised or perplexed by its behaviour. If Mon_Ouie likes to blag, I formally withdraw any claim I have to the finding.
Ankhers has joined #ruby
chipotle has joined #ruby
bearish has joined #ruby
diegoviola has quit [Ping timeout: 244 seconds]
diegoviola has joined #ruby
nateberkopec has joined #ruby
lukeholder has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
coca_rails has joined #ruby
smuck has joined #ruby
timonv_ has joined #ruby
amacou has quit []
<Mon_Ouie> I'd explain the behavior in English without expanding it to Ruby code. Indeed, the way it is implemented is by adding entries to the vtable and generating bytecode (||= has its own rule), not in terms of an equivalent ruby construct
cap has quit [Remote host closed the connection]
aspires has joined #ruby
cap has joined #ruby
<kies> any suggestions on improving this? this is some code i wrote to convert rrd data to json https://gist.github.com/anonymous/0cbcca0b39fd85be499e, ive only been programming ruby a year so wondering if some pros could give me some thoughts on patterns/structure i may be missing on
nateberkopec has quit [Ping timeout: 240 seconds]
smuckk has quit [Ping timeout: 255 seconds]
diegoviola has quit [Ping timeout: 260 seconds]
alvaro_o has quit [Ping timeout: 250 seconds]
diegovio1 has joined #ruby
smuck has quit [Ping timeout: 250 seconds]
diegovio1 is now known as diegoviola
smuck has joined #ruby
fgo has joined #ruby
cap has quit [Ping timeout: 240 seconds]
Bira has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
aspires has quit []
hellangel7 has joined #ruby
Matadoer has quit [Remote host closed the connection]
coca_rails has quit [Read error: Connection reset by peer]
coca_rails has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
koderok has quit [Quit: koderok]
hellangel7 has quit [Max SendQ exceeded]
hellangel7 has joined #ruby
Bira has quit [Ping timeout: 250 seconds]
darkxploit has quit [Ping timeout: 240 seconds]
patric100e99 has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
_0xf_ has joined #ruby
Emmanuel_Chanel has joined #ruby
cap has joined #ruby
axl_ has joined #ruby
axl_ has quit [Client Quit]
patric100e99 has quit [Ping timeout: 255 seconds]
_0xf_ has quit [Ping timeout: 264 seconds]
OffTheRails has quit [Ping timeout: 272 seconds]
r_s has joined #ruby
mityaz has quit [Quit: See ya!]
merqlove has joined #ruby
_0xf_ has joined #ruby
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
georgelappies has joined #ruby
Photism has joined #ruby
melik has quit [Quit: Lingo - http://www.lingoirc.com]
lukeholder has joined #ruby
darkxploit has joined #ruby
_0xf_ has quit [Ping timeout: 255 seconds]
lukeholder has quit [Client Quit]
Spami has joined #ruby
sandelius has joined #ruby
chipotle has joined #ruby
chrishough has quit [Quit: chrishough]
eeezkil has joined #ruby
axilla has quit [Ping timeout: 250 seconds]
philevans_ has quit [Ping timeout: 240 seconds]
gogohome has joined #ruby
lxsameer has joined #ruby
<gogohome> i can do programming without help of #python?
<gogohome> is it possible?
apeiros has joined #ruby
gogohome is now known as fly2web_
lukeholder has joined #ruby
<fly2web_> ari-_-e:
radic has quit [Ping timeout: 255 seconds]
<fly2web_> hey, where are you from?
agent_wh1te is now known as agent_white
wjimenez5271 has quit [Remote host closed the connection]
lxsameer has quit [Client Quit]
andrewlio has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
wjimenez5271 has joined #ruby
radic has joined #ruby
oo_ has quit [Remote host closed the connection]
<CuriousMind> I just woke up from my sleep guys
<CuriousMind> Who gives a shit, let me sleep again
<CuriousMind> Ruby all day wooooooooo!
* CuriousMind goes back to sleep again
oo_ has joined #ruby
Spami_ has joined #ruby
nat2610 has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
Spami has quit [Ping timeout: 250 seconds]
wjimenez5271 has quit [Ping timeout: 272 seconds]
cap has quit [Remote host closed the connection]
cap has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
j416_ is now known as j416
Ankhers has joined #ruby
Takle has joined #ruby
AlexRussia has joined #ruby
coca_rails has quit [Quit: coca_rails]
bearish has quit [Remote host closed the connection]
threesixes has quit [Quit: SATAN!!!!!!!!]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
malcolmva has quit [Ping timeout: 246 seconds]
Ankhers has quit [Ping timeout: 264 seconds]
Darkchaos has joined #ruby
xcv has joined #ruby
ghr has joined #ruby
lkba has joined #ruby
fly2web_ has left #ruby [#ruby]
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danijoo_ has quit [Read error: Connection reset by peer]
nateberkopec has quit [Ping timeout: 240 seconds]
danijoo has joined #ruby
xcv has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 250 seconds]
fgo has joined #ruby
Photism has quit [Quit: Leaving]
oo_ has quit [Remote host closed the connection]
lxsameer has joined #ruby
robbyoconnor has joined #ruby
Bira has joined #ruby
atheneith has quit [Read error: Connection reset by peer]
kith has quit [Quit: kith]
fgo has quit [Ping timeout: 272 seconds]
AlexRussia has quit [Ping timeout: 264 seconds]
kaspertidemann has joined #ruby
xenomorph has joined #ruby
Bira has quit [Ping timeout: 250 seconds]
timonv_ has quit [Remote host closed the connection]
xenomorph is now known as {xenomorph}
hasan has joined #ruby
lxsameer has quit [Quit: Leaving]
benzrf is now known as benzrf|offline
klaut has joined #ruby
yfeldblum has quit [Remote host closed the connection]
kith has joined #ruby
wallerdev has quit [Quit: wallerdev]
decoponio has joined #ruby
whyy has joined #ruby
krisquigley has joined #ruby
AlexRussia has joined #ruby
axl_ has joined #ruby
axl_ has quit [Client Quit]
Lewix has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
<shevy> CuriousMind WAKE UP MAN
<shevy> CuriousMind CODE MORE RUBY
philcrissman has joined #ruby
InhalingPixels has joined #ruby
whyy has quit [Ping timeout: 240 seconds]
benlieb has quit [Quit: benlieb]
bearish has joined #ruby
yfeldblum has joined #ruby
Lewix has joined #ruby
philcrissman has quit [Ping timeout: 272 seconds]
bearish_ has joined #ruby
poulet_a has joined #ruby
bearish has quit [Ping timeout: 255 seconds]
Shidash has quit [Ping timeout: 260 seconds]
lukeholder has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
lukeholder has quit [Max SendQ exceeded]
lukeholder has joined #ruby
bearish_ has quit [Ping timeout: 264 seconds]
Shidash has joined #ruby
Takle has quit [Remote host closed the connection]
bhuey has left #ruby [#ruby]
benlieb has joined #ruby
coca_rails has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlieb has quit [Client Quit]
obs has joined #ruby
Beoran_ has quit [Ping timeout: 244 seconds]
gilest has quit [Remote host closed the connection]
timonv_ has joined #ruby
craigbowen3 has joined #ruby
pietr0 has quit [Quit: pietr0]
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
mijicd has joined #ruby
reluctantlove has quit [Quit: Lingo - http://www.lingoirc.com]
jhass|off is now known as jhass
InhalingPixels has quit [Ping timeout: 272 seconds]
Ankhers has joined #ruby
Beoran_ has joined #ruby
tectonic has quit []
nateberkopec has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
bearish has joined #ruby
davispuh has joined #ruby
ghr has joined #ruby
Takle has quit [Remote host closed the connection]
jmbrown412 has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
toastynerd has quit [Ping timeout: 240 seconds]
jmbrown412 has joined #ruby
fgo has joined #ruby
nat2610 has quit [Quit: Leaving.]
timonv_ has quit [Ping timeout: 250 seconds]
ghr has quit [Ping timeout: 272 seconds]
elaptics`away is now known as elaptics
emmesswhy has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
jmbrown412 has quit [Ping timeout: 245 seconds]
Bira has joined #ruby
krisquigley has quit [Remote host closed the connection]
r_s has quit [Ping timeout: 245 seconds]
elaptics is now known as elaptics`away
fgo has quit [Ping timeout: 250 seconds]
txdv has quit [Read error: Connection reset by peer]
lukeholder has joined #ruby
txdv has joined #ruby
txdv has quit [Read error: Connection reset by peer]
niklasb has quit [Ping timeout: 255 seconds]
Grantlyk has joined #ruby
Bira has quit [Ping timeout: 255 seconds]
txdv has joined #ruby
patrick99e99 has joined #ruby
dseitz has joined #ruby
mikecmpbll has joined #ruby
e4xit has quit [Ping timeout: 272 seconds]
patrick99e99 has quit [Ping timeout: 255 seconds]
crdpink has joined #ruby
crdprink2 has quit [Ping timeout: 272 seconds]
Lewix has quit [Remote host closed the connection]
jsodini has quit [Read error: Connection reset by peer]
jsodini has joined #ruby
Lewix has joined #ruby
<shevy> hmm
Davedo has quit [Ping timeout: 250 seconds]
Spami_ has quit [Quit: This computer has gone to sleep]
lkba has joined #ruby
Lewix has quit [Ping timeout: 240 seconds]
Davedo has joined #ruby
RandyT has quit [Ping timeout: 260 seconds]
bearish has quit [Remote host closed the connection]
<shevy> is there a simple way to run "make" from within ruby
<shevy> but to also check for error and output this all at the same time?
<shevy> I have a program here that fails, ok
<shevy> Makefile:1306: recipe for target 'libgnashdevice_la-DeviceGlue.lo' failed
<shevy> make[2]: *** [libgnashdevice_la-DeviceGlue.lo] Error 1
<shevy> I am unsure how to find out that it has failed, from within ruby, though
<jhass> how do you call it ?
startupality has joined #ruby
<apeiros> shevy: I'd expect make to have a proper exit status
<shevy> jhass mostly via ``
merqlove has quit [Quit: Connection closed for inactivity]
arup_r has quit [Ping timeout: 245 seconds]
<jhass> try $?.success?
<shevy> hmm
<shevy> $?.success? # => false
<shevy> $? gets automatically set?
<jhass> yes
binw_ has quit [Read error: Connection reset by peer]
_2_Lily97 has joined #ruby
<shevy> cool, I think that may work then, thanks
<shevy> I tried it with htop just now, make works fine there, and $? seems to get set correctly: $?.success? # => true
linojon has quit [Quit: linojon]
j416 has quit [Ping timeout: 245 seconds]
_2_Lily97 has quit [Read error: Connection reset by peer]
binw has joined #ruby
j416 has joined #ruby
_2_Lily97 has joined #ruby
ptrrr has joined #ruby
fold has quit [Ping timeout: 240 seconds]
LexicalScope has joined #ruby
blackgoat has quit [Ping timeout: 272 seconds]
niklasb has joined #ruby
blackgoat has joined #ruby
coca_rails has quit [Quit: coca_rails]
Fractional has joined #ruby
<Fractional> Is there a way to 'sync' a array with another? Like, add a object to the array only if it is not in the array?
pd has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
InhalingPixels has joined #ruby
<jhass> If I ignore the first sentence what you want is a Set
<shevy> hehe
<shevy> "if i ignore your whole sentence, I'm gonna give a great answer"
<jhass> so maybe try to describe that again
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Fractional> Are you referring to me jhass, shevy?
<jhass> yes
<Fractional> Ok, I want something in the lines of this. (@player.projectiles.each {|projectile| @objects += projectile if @objects.include? projectile})
<Fractional> Should be a ! infront of @objects.include?
<jhass> so no second array
<jhass> first of all use << over +=
<Fractional> Roger
<jhass> a += b is a = a+b, so creating new object and assigning it to the same variable
<jhass> and then as said, you want a set
fgo has joined #ruby
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> >> require 'set'; set = Set.new; set << :a; set << :b; set << :a; set
<eval-in> jhass => #<Set: {:a, :b}> (https://eval.in/179861)
<Fractional> jhass: I got my dummy code to work, thank you a lot for taking the time though! :)
InhalingPixels has quit [Ping timeout: 260 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
startupality has quit [Quit: startupality]
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
toastynerd has joined #ruby
LexicalScope has quit [Read error: Connection reset by peer]
toastynerd has quit [Read error: No route to host]
j416 has quit [Ping timeout: 244 seconds]
nateberkopec has joined #ruby
toastynerd has joined #ruby
ayaz has joined #ruby
timonv_ has joined #ruby
ghr has joined #ruby
<apeiros> Fractional: @objects |= @player.projectiles # alternative to set, but set is IMO better
<apeiros> btw., the |= also works with @objects being a Set and @player.projectiles being either a Set or an Array
jottr_ has joined #ruby
arup_r has joined #ruby
hasan has quit [Read error: Connection reset by peer]
klaut has quit []
nateberkopec has quit [Ping timeout: 240 seconds]
<jhass> hm, wait, he's just building the uniq set of projectiles? @player.projectiles.uniq then
toastynerd has quit [Ping timeout: 250 seconds]
<shevy> does anyone know how I could google for the docu of $? ?
m8 has joined #ruby
<jhass> symbolhound.com
klaut has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
timfoo has quit [Ping timeout: 244 seconds]
timonv_ has quit [Ping timeout: 245 seconds]
spider-mario has joined #ruby
<Fractional> apeiros: What is '|=' operation called?
<Mon_Ouie> It's just syntax sugar for @objects = @objects | @player.projectiles
<klaut> conditional assignment
<jhass> klaut: that's ||=
<Mon_Ouie> And Array#| is a method that does set union
<klaut> jhass: ahh, true! :)
startupality has joined #ruby
timfoo has joined #ruby
whyy has joined #ruby
Bira has joined #ruby
kirun has joined #ruby
_2_Lily97 has quit [Read error: Connection reset by peer]
<apeiros> and Set#| is also a method that does set union
niklasb has quit [Ping timeout: 260 seconds]
philcrissman has joined #ruby
chipotle has quit [Ping timeout: 246 seconds]
Bira has quit [Ping timeout: 245 seconds]
pd has quit [Remote host closed the connection]
whyy has quit [Ping timeout: 244 seconds]
<CuriousMind> shevy: I am awake now
<CuriousMind> shevy: I am going to a hackathon with my friend today
<CuriousMind> shevy: I only got like 6 hours of sleep, the hackathan is from 10AM to 7PM,
<CuriousMind> hahahah
fgo has quit [Remote host closed the connection]
<Fractional> Question regarding ruby style guide. When you call a method with a argument, what is more commonly used in Ruby of those two? foo(bar) or foo bar?
klaut has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
<jhass> feels like 50/50
<apeiros> depends on the context IMO
<apeiros> DSL things like attr_* are almost exclusively without ()
philcrissman has quit [Ping timeout: 264 seconds]
<Fractional> apeiros: What if you pass multiple arguments along?
<apeiros> other calls, I'm not consistent I think. I don't use it for stuff like puts. but I think I do use it for lots of other things.
<apeiros> funny… I think I have to go read my own code to answer that :D
<jhass> I pretty much always leave them out for the outer method
chipotle has joined #ruby
<jhass> foo bar(baz)
<Fractional> jhass: foo(1, 2, 3, 4) or foo 1 2 3 4? :P
<apeiros> damn, I'm so bad at dark souls 2, enemies begin to vanish from the game to make it easier for me :(
<jhass> neither, foo(*1..4) (because ruby -w complains about foo *1..4 :P)
<apeiros> also `foo 1 2 3 4` is a syntax error :-p
fgo has quit [Ping timeout: 264 seconds]
cap has quit [Remote host closed the connection]
Neomex has joined #ruby
cap has joined #ruby
<Fractional> apeiros: Oh right haha
Deele has joined #ruby
f_vosberg has joined #ruby
froggy_ has joined #ruby
oo_ has joined #ruby
cap has quit [Read error: Connection reset by peer]
cap has joined #ruby
<Fractional> apeiros: Is dark souls 2 any good? I heard that the game was challenging and as I like challenges I am considering giving it a go.
georgelappies has quit [Remote host closed the connection]
froggy__ has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
jeramyRR has quit [Quit: jeramyRR]
poulet_a has quit [Quit: Quitte]
lukeholder has joined #ruby
anildigital is now known as zz_anildigital
timfoo has quit [Ping timeout: 244 seconds]
<shevy> if it does not use mruby it sucks
timfoo has joined #ruby
tjr9898 has joined #ruby
<jhass> shevy: what did you use mruby for so far?
<shevy> I ran mirb!
<shevy> but I don't know how to require other files
<jhass> so nothing
<shevy> I ran ruby code
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
vjt has quit [Ping timeout: 272 seconds]
<shevy> class Foo; end; Foo.new
<jhass> that's not doing anything
oso|away has quit [Ping timeout: 250 seconds]
meinside has quit [Quit: Connection closed for inactivity]
chiel has joined #ruby
oso|away has joined #ruby
jonr22 has joined #ruby
carraroj has joined #ruby
oso|away is now known as oso96_2000
vjt has joined #ruby
jonr22 has quit [Client Quit]
tjr9898 has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
ged has quit [Ping timeout: 250 seconds]
jonr22 has quit [Client Quit]
jonr22 has joined #ruby
vjt has quit [Ping timeout: 240 seconds]
CuriousMind has quit [Ping timeout: 246 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Perceptes has joined #ruby
ged has joined #ruby
mr-foobar has quit [Read error: Connection reset by peer]
mr-foobar has joined #ruby
Fractional has quit [Remote host closed the connection]
blackgoat has quit [Ping timeout: 245 seconds]
craigbowen3 has quit [Ping timeout: 240 seconds]
coderhs has joined #ruby
blackgoat has joined #ruby
vjt has joined #ruby
banister has joined #ruby
obs has quit [Quit: Saliendo]
j416 has joined #ruby
agent_white has quit [Quit: gnight]
axl_ has joined #ruby
krz has joined #ruby
axl_ has quit [Client Quit]
mt has left #ruby ["WeeChat 1.0-rc1"]
toastynerd has joined #ruby
nateberkopec has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
craigbowen3 has joined #ruby
_2_Lily97 has joined #ruby
cesurasean has quit [Quit: Leaving.]
toastynerd has quit [Ping timeout: 246 seconds]
jmbrown412 has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
ixti has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lukeholder has quit [Quit: Textual IRC Client: www.textualapp.com]
Perceptes has left #ruby [#ruby]
jmbrown412 has quit [Ping timeout: 245 seconds]
Bira has joined #ruby
jonr22 has quit [Quit: WeeChat 0.4.3]
Bira has quit [Ping timeout: 245 seconds]
georgelappies has joined #ruby
_2_Lily97 has quit [Remote host closed the connection]
bearish has joined #ruby
dorei has joined #ruby
fgo has joined #ruby
patric100e99 has joined #ruby
starless has quit [Quit: Leaving]
nateberkopec has joined #ruby
postmodern has quit [Quit: Leaving]
omenks has joined #ruby
omenks has quit [Client Quit]
fgo has quit [Ping timeout: 260 seconds]
cap has quit [Remote host closed the connection]
sigurding has joined #ruby
patric100e99 has quit [Ping timeout: 272 seconds]
cap has joined #ruby
j416 has quit [Ping timeout: 272 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
fgo has joined #ruby
_2_Lily97 has joined #ruby
davedev24_ has quit [Remote host closed the connection]
davedev24_ has joined #ruby
allenicksweg has quit [Quit: Legalize it!]
j416 has joined #ruby
cap has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
davedev24_ has quit [Ping timeout: 272 seconds]
jeramyRR has joined #ruby
diegoviola has quit [Ping timeout: 255 seconds]
shtirlic has quit [Quit: ZNC - http://znc.in]
shtirlic has joined #ruby
Hobogrammer has quit [Ping timeout: 260 seconds]
danijoo has quit [Read error: Connection reset by peer]
diegovio1 has joined #ruby
danijoo has joined #ruby
nfk has joined #ruby
xcv has joined #ruby
banister has joined #ruby
malcolmva has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
thomasxie has joined #ruby
sepp2k has joined #ruby
_2_Lily97 has quit [Ping timeout: 272 seconds]
diegovio1 has quit [Quit: WeeChat 0.4.3]
xcv has quit [Ping timeout: 260 seconds]
pandaant has joined #ruby
phoo1234567 has joined #ruby
bearish_ has joined #ruby
klaut has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
bearish has quit [Ping timeout: 255 seconds]
phoo1234567 has joined #ruby
j416 has quit [Read error: Connection reset by peer]
j416 has joined #ruby
Grantlyk has quit [Remote host closed the connection]
Grantlyk has joined #ruby
InhalingPixels has joined #ruby
mijicd has quit [Quit: leaving]
jonr22 has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
jonr22 has quit [Client Quit]
shtirlic has quit [Quit: ZNC - http://znc.in]
timonv_ has quit [Remote host closed the connection]
jonr22 has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
InhalingPixels has quit [Ping timeout: 240 seconds]
Ankhers has joined #ruby
MartinCleaver has joined #ruby
zz_anildigital is now known as anildigital
cap has joined #ruby
whyy has joined #ruby
shtirlic has joined #ruby
doodlehaus has joined #ruby
shtirlic has quit [Client Quit]
Grantlyk has quit [Remote host closed the connection]
Grantlyk has joined #ruby
toastynerd has joined #ruby
iamjarvo has joined #ruby
philcrissman has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
shtirlic has joined #ruby
toastynerd has quit [Read error: No route to host]
iamjarvo has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
whyy has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
pandaant has quit [Quit: Lost terminal]
philcrissman has quit [Ping timeout: 244 seconds]
pandaant has joined #ruby
jeramyRR has quit [Quit: jeramyRR]
toastynerd has quit [Ping timeout: 240 seconds]
Grantlyk has quit [Read error: Connection reset by peer]
e4xit has joined #ruby
nateberkopec has joined #ruby
Grantlyk has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
sptq has quit [Ping timeout: 240 seconds]
paul_k has quit [Ping timeout: 240 seconds]
cap has quit [Ping timeout: 240 seconds]
bearish_ has quit [Remote host closed the connection]
thalweg has quit [Quit: No Ping reply in 180 seconds.]
gf3 has quit [Ping timeout: 272 seconds]
orionstein has quit [Ping timeout: 272 seconds]
sindork has quit [Ping timeout: 244 seconds]
ianco has quit [Ping timeout: 264 seconds]
thalweg has joined #ruby
shaquile has quit [Ping timeout: 255 seconds]
sweeper has quit [Ping timeout: 255 seconds]
Kovensky has quit [Ping timeout: 255 seconds]
philtr_ has quit [Ping timeout: 260 seconds]
SirFunk has quit [Ping timeout: 260 seconds]
Gnubie_ has quit [Ping timeout: 272 seconds]
xcv has joined #ruby
rmill has quit [Ping timeout: 272 seconds]
bearish has joined #ruby
malcolmva has quit [Ping timeout: 272 seconds]
centrx has joined #ruby
jottr_ has quit [Ping timeout: 255 seconds]
centrx has quit [Client Quit]
kyb3r_ has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
DanKnox has quit [Ping timeout: 244 seconds]
marr has joined #ruby
mechanicalduck has joined #ruby
tallyon has joined #ruby
DanKnox has joined #ruby
<mechanicalduck> hii
<mechanicalduck> So there is each with which I iterate over a ruby hash (| key, value |)
<mechanicalduck> Now I want an index, I thought about using each_with_index (nice), but it does seem only to work with arrays, not with hashes (no key)
<mechanicalduck> So is there also an each or each_with_index with index / for hashes?
<tallyon> what new books about ruby you guys consider competent? any favourites?
<Mon_Ouie> mechanicalduck: That's already what each does
malcolmva has joined #ruby
<Mon_Ouie> >> {:key => "value"}.each { |k, v| p [k, v] }
<eval-in> Mon_Ouie => [:key, "value"] ... (https://eval.in/179874)
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
DanKnox has quit [Ping timeout: 260 seconds]
DanKnox has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
<mechanicalduck> tallyon / Mon_Ouie: so p would be the index?
<mechanicalduck> so p is a method which is called on each iteration, returning the index of the key,value?
<Mon_Ouie> No, p is a method used to print an object
<Mon_Ouie> each just gives you the key and the value
<Mon_Ouie> (the #each method, I mean)
ddv has joined #ruby
ddv has quit [Changing host]
threesixes has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
cap has joined #ruby
banister has quit [Read error: Connection reset by peer]
ptrrr has quit [Quit: ptrrr]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
sylvanica has joined #ruby
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
memph1s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hakunin has quit [Ping timeout: 240 seconds]
tallyon has quit [Quit: Page closed]
mikedugan has joined #ruby
RandyT has joined #ruby
InhalingPixels has joined #ruby
d4ryus___ has joined #ruby
arup_r has quit [Ping timeout: 272 seconds]
d4ryus has quit [Ping timeout: 240 seconds]
jottr_ is now known as jottr
yacks has quit [Ping timeout: 240 seconds]
InhalingPixels has quit [Ping timeout: 260 seconds]
yacks has joined #ruby
Dreamer3 has joined #ruby
toastynerd has joined #ruby
anildigital is now known as zz_anildigital
Neomex has quit [Read error: Connection reset by peer]
darkxploit has quit [Ping timeout: 255 seconds]
centrx has joined #ruby
Takle has quit [Remote host closed the connection]
cap has quit [Ping timeout: 250 seconds]
sigurding has quit [Quit: sigurding]
jmbrown412 has joined #ruby
toastynerd has quit [Ping timeout: 260 seconds]
bMalum has joined #ruby
timonv_ has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
hellangel7 has joined #ruby
jmbrown412 has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
mechanicalduck has quit [Ping timeout: 272 seconds]
amarraja has joined #ruby
amarraja has quit [Max SendQ exceeded]
amarraja has joined #ruby
amarraja has quit [Max SendQ exceeded]
amarraja has joined #ruby
amarraja has quit [Max SendQ exceeded]
amarraja has joined #ruby
ngn999` has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkxploit has joined #ruby
Takle has joined #ruby
mechanicalduck has joined #ruby
wald0_ has quit [Quit: Lost terminal]
wald0 has joined #ruby
SirFunk has joined #ruby
sindork has joined #ruby
patric100e99 has joined #ruby
freerobby has joined #ruby
axl_ has joined #ruby
bearish has quit [Remote host closed the connection]
Gnubie_ has joined #ruby
seanmarcia has quit [Ping timeout: 272 seconds]
axl_ has quit [Client Quit]
bearish has joined #ruby
philtr has joined #ruby
sweeper has joined #ruby
patric100e99 has quit [Ping timeout: 272 seconds]
mr_snowf1ake has joined #ruby
zeroNones has joined #ruby
Rydekull has quit [Changing host]
Rydekull has joined #ruby
Bira has joined #ruby
Grantlyk has quit [Remote host closed the connection]
sigurding has joined #ruby
<shevy> mechanicalduck p is defined in Kernel
Grantlyk has joined #ruby
yfeldblum has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
zz_anildigital is now known as anildigital
doodlehaus has quit []
yfeldblum has quit [Ping timeout: 240 seconds]
Grantlyk has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Client Quit]
cap has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
bMalum has quit [Quit: Computer has gone to sleep.]
darkness has joined #ruby
bMalum has joined #ruby
frankle has joined #ruby
darkness is now known as Guest97152
Guest97152 has quit [Max SendQ exceeded]
hellangel7 has quit [Ping timeout: 272 seconds]
lkba has joined #ruby
dangerousdave has joined #ruby
bMalum has quit [Ping timeout: 272 seconds]
arup_r has joined #ruby
dangerousdave has quit [Client Quit]
_2_Lily97 has joined #ruby
Fire-Dragon-DoL has joined #ruby
_2_Lily97 has quit [Read error: Connection reset by peer]
axilla has joined #ruby
f_vosberg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> hmm
<shevy> matz needs to give a presentation
whyy has joined #ruby
<txdv> shevy needs to give a presentation
philcrissman has joined #ruby
<shevy> about what man
<shevy> I did not create a programming language
<txdv> about how matz created a programming language
<txdv> how he saved us from the awful python
<txdv> how he enlightened us
<shevy> no
whyy has quit [Ping timeout: 272 seconds]
<shevy> that is no content
MartinCleaver has quit [Quit: MartinCleaver]
relix has joined #ruby
philcrissman has quit [Ping timeout: 246 seconds]
Grantlyk has joined #ruby
axilla has quit [Ping timeout: 260 seconds]
lkba has quit [Ping timeout: 244 seconds]
dangerousdave has joined #ruby
InhalingPixels has joined #ruby
axilla has joined #ruby
cap has quit [Ping timeout: 240 seconds]
zeroNones has quit [Ping timeout: 250 seconds]
bricker`LA has quit [Ping timeout: 260 seconds]
relix has quit [Client Quit]
nateberkopec has quit [Quit: Leaving...]
Ankhers has joined #ruby
sigurding has quit [Quit: sigurding]
iamjarvo has joined #ruby
timonv_ has quit [Remote host closed the connection]
InhalingPixels has quit [Ping timeout: 272 seconds]
toastynerd has joined #ruby
bMalum has joined #ruby
<mechanicalduck> Pardon my ignorance, so I use the following construct, right?: a_hash.each do | key, value | p[key, value] [...]
<mechanicalduck> and I can use p as index?
tkuchiki has quit [Remote host closed the connection]
mechanicalduck has quit [Quit: ChatZilla 0.9.90.1-rdmsoft [XULRunner 22.0/20130619132145]]
tkuchiki has joined #ruby
<shevy> well
Bira has quit [Remote host closed the connection]
<shevy> first, what is p[
Ankhers has quit [Ping timeout: 264 seconds]
<eam> it's clearly a variable, shevy
MartinCleaver has joined #ruby
claymore has joined #ruby
<shevy> oh ok
<shevy> he is gone
<eam> doh
Bira has joined #ruby
toastynerd has quit [Ping timeout: 272 seconds]
startupality has quit [Quit: startupality]
seanmarcia has joined #ruby
startupality has joined #ruby
mechanicalduck has joined #ruby
bricker`LA has joined #ruby
tkuchiki_ has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
tkuchiki_ has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
cpruitt has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
Bira has quit [Remote host closed the connection]
tkuchiki has joined #ruby
ngn999` has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
davedev24_ has joined #ruby
tkuchiki_ has joined #ruby
tkuchiki_ has quit [Read error: Connection reset by peer]
bluenemo has joined #ruby
cap has joined #ruby
tkuchiki has quit [Ping timeout: 260 seconds]
amarraja has quit [Quit: Computer has gone to sleep.]
linojon has joined #ruby
memph1s has joined #ruby
amarraja has joined #ruby
amarraja has quit [Max SendQ exceeded]
bluOxigen has joined #ruby
amarraja has joined #ruby
amarraja has quit [Max SendQ exceeded]
treehug88 has joined #ruby
sigurding has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
sevvie has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
GinoMan has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yeticry has joined #ruby
seanmarcia has quit [Excess Flood]
seanmarcia has joined #ruby
<shevy> hey guys
<shevy> I just realized something
<shevy> 'def'
Cache_Money has joined #ruby
<shevy> that is alphabetical
hakunin has joined #ruby
<banister> shevy heh
sevvie has quit [Quit: leaving]
<shevy> is there a shorter way for http://pastie.org/9478478 ?
freerobby has quit [Quit: Leaving.]
bmurt has joined #ruby
<shevy> every subclass has another default constant assigned
cap has quit [Ping timeout: 240 seconds]
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
<jhass> shevy: you can make FOO a (protected) method and call that Foo#test, see Template (Method) pattern
<jhass> *that in
hakunin has quit [Ping timeout: 240 seconds]
<jhass> shevy: or maybe FOO actually isn't constant but a instance variable
iamjarvo has joined #ruby
iamjarvo has quit [Client Quit]
InhalingPixels has joined #ruby
iamjarvo has joined #ruby
ohwhoa has joined #ruby
<jhass> shevy: or maybe just resolve the constant with self.class::FOO
fdelacruz has joined #ruby
fold has joined #ruby
<mechanicalduck> hi again!!
<mechanicalduck> Pardon my ignorance, so I use the following construct, right?: a_hash.each do | key, value | p[key, value] [...]
<mechanicalduck> and I can use p as index?
<jhass> no
treehug88 has quit []
<jhass> sorry, put you completely misunderstood Mon_Ouie
<jhass> his argument was that in .each do |key, value| key already is the index of the hash
InhalingPixels has quit [Ping timeout: 240 seconds]
Ankhers has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mkaesz has joined #ruby
toastynerd has joined #ruby
marr has quit [Ping timeout: 264 seconds]
sigurding has quit [Quit: sigurding]
jonr22 has quit [Ping timeout: 240 seconds]
Ankhers has quit [Ping timeout: 264 seconds]
<mechanicalduck> oh!
<mechanicalduck> Now I see, I misformulated my question, at least I missed something to describe.
<mechanicalduck> I want a running number, starting from 0.
toastynerd has quit [Ping timeout: 255 seconds]
<mechanicalduck> I need it because I don't want to print the last comma (not valid in output language).
<mechanicalduck> I could use some join thing, but I would like to have it directly inline.
<apeiros> mechanicalduck: most likely you should use .map + .join
<jhass> ^
<jhass> mechanicalduck: as always make a gist with input and desired output
<apeiros> you can get an index for anything which can return an Enumerator using .with_index, and anything which includes Enumerable can use .each_with_index
<jhass> posh, not before we presented him the nice solution that doesn't need that apeiros :P
shredding has joined #ruby
<apeiros> >> {a: "hi"}.each_with_index { |(key, value), index| p [index, key, value] }
<eval-in> apeiros => [0, :a, "hi"] ... (https://eval.in/179972)
<apeiros> mechanicalduck: also note that p[a, b] is NOT the same as p [a, b]
<mechanicalduck> jhass: What is an 'apeiros'? Can I eat it?
<mechanicalduck> apeiros: oh, it is a nickname
<mechanicalduck> sorry
<apeiros> p[a, b] --> p.[](a,b)
<dorei> apeiros is the greek word for infinity :p
<apeiros> p [a, b] --> p([a,b])
<mechanicalduck> ah
<Mon_Ouie> [apeiros, engl.: “ah.pay.ross”] from the greek ἄπειρος, the boundless, infinite :p
havenwood has joined #ruby
<dorei> yeap, infinite is the correct, not infinity
<mechanicalduck> tried to look it up in google, but couldn't found a description of the word.
<apeiros> apeiron would be infinity iirc
<dorei> apeiro in modern greek, i guess apeiron in ancient greek
<apeiros> possible
<apeiros> I got told that in modern greek it's pronounced differently too :-/
saarinen has joined #ruby
<txdv> cool story
<mechanicalduck> First it sounded like something to me
* mechanicalduck is ignorant
<mechanicalduck> *to drink
<dorei> a-pi-ros, pi like in the letter pi, 'ei' is pronounced 'i' (the i in 'did') in modern greek
nobitanobi has joined #ruby
<apeiros> I actually took anaximandros' "apeiron" (which is the source of everything) and took the male form of it :)
<PixelCrumbs> I need to go through a file and get all characters up until a certain sequence. Eg. abcdefghiJKLmnop (we would stop at JKL). Any ideas on how I could do this?
cap has joined #ruby
<jhass> PixelCrumbs: do you need to stop reading or just extract the part prior it?
<shevy> jhass hmm let me think a moment
<apeiros> PixelCrumbs: inefficient, but maybe all you need: File.read(path)[/.*?SEQUENCE/]
<shevy> jhass the self.class::FOO, how do you mean?
<apeiros> (?=SEQ) if you want it excluded
<PixelCrumbs> jhass: I need to extract the part prior to it
yfeldblum has joined #ruby
<jhass> shevy: like I wrote
<apeiros> dorei: you're greek or you just happen to speak it? :)
<PixelCrumbs> apeiros: the char sequence is different each time though
<shevy> cool
<shevy> that works
<jhass> PixelCrumbs: then apeiros solution or .split('sequence', 2).first
<shevy> now if only I'd understand it
<apeiros> PixelCrumbs: so?
metadave has quit [Ping timeout: 272 seconds]
robbyoconnor has quit [Excess Flood]
<apeiros> PixelCrumbs: you hopefully know how to use variables?
<apeiros> they work in regex too
robbyoconnor has joined #ruby
<apeiros> >> x = "blabb"; /#{x}/
<eval-in> apeiros => /blabb/ (https://eval.in/179973)
<apeiros> Regexp.escape if it may contain special chars
<jhass> shevy: You understand Foo::FOO right? Do you follow bar = Foo; bar::FOO ?
<shevy> hmm
<shevy> yeah
metadave has joined #ruby
<jhass> nothing different here, we get the current Class object and resolve the constant under it
hakunin has joined #ruby
mojo619 has joined #ruby
<shevy> it looks very strange
<shevy> def foo(i = self.class::SOME_CONSTANT)
Grantlyk has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
<shevy> I don't think I have seen that before
patrick99e99 has joined #ruby
<PixelCrumbs> jhass: apeiros: I forgot to mention that I only want the stuff between two certain points
<PixelCrumbs> so if I had asdjfkasdjfkasdjaksdjf_A_jasdfkjasdkfjasdjkfaskdjfaksjdf_B_asdfkjasdkjfaskjdfa -- I would only want the stuff between _A_ and _B_
<PixelCrumbs> could you still use split for that?
_0xf_ has joined #ruby
<apeiros> PixelCrumbs: what have you tried so far?
toastynerd has joined #ruby
sigurding has joined #ruby
cpruitt has quit [Quit: cpruitt]
<PixelCrumbs> apeiros: Nothing :3 I have no idea where to start
jottr has joined #ruby
<jhass> PixelCrumbs: you could with a .split('_A_', 2).last.split('_B_', 2).first but string[/_A_(.+)_B_/, 1] might be more elegant (both given the tokens are unique)
j416 is now known as noshi
fgo has quit [Remote host closed the connection]
<apeiros> PixelCrumbs: did you think about how to adjust the regex solution to your initial question for your new one?
fgo has joined #ruby
<apeiros> PixelCrumbs: other approaches: String#index + String#[]
<apeiros> String#gsub
<apeiros> I'm sure there are even more possible approaches
<PixelCrumbs> Yeah
<nobitanobi> morning guys
<Hanmac> apeiros: String#scan ?
<PixelCrumbs> I've never really done anything with regex patterns tbh
patrick99e99 has quit [Ping timeout: 255 seconds]
<apeiros> Hanmac: true. but IMO wrong tool for single occurrence.
<PixelCrumbs> I'll research it a bit more and then come back to you if i'm still stuck
<apeiros> Hanmac: that said, maybe that's his next thing he forgot…
<PixelCrumbs> cheers
<jhass> PixelCrumbs: especially if you stop making up examples and reveal what you're really trying to parse
mojo619 has quit [Quit: mojo619]
<nobitanobi> anybody needs some help on any of their open source projects?
mojo619 has joined #ruby
L3top has joined #ruby
<havenwood> yes
<PixelCrumbs> jhass: so basically, I have all of this data. https://gist.github.com/anonymous/53b9cd7ee691d1f117e4 -- I need to find "Minecraft Server", and replace it with all of the text after "Minecraft Serverip" up until "hideAddress
cap has quit [Ping timeout: 240 seconds]
<nobitanobi> havenwood: please link me to the repo! I am willing to try to help and get feedback
L3mce has quit [Ping timeout: 260 seconds]
<jhass> PixelCrumbs: where did you get that from?
mijicd has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
<PixelCrumbs> jhass: the data? It's basically just how Minecraft stores the servers that you add to your favourites list
fdelacruz has quit [Ping timeout: 244 seconds]
<jhass> So some kind of serialization format
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
<havenwood> nobitanobi: i'm sure i know some ruby stuff, but the first thing that came to mind was shell, since it's what i'm working on :O
<havenwood> nobitanobi: shell okay? :P
<PixelCrumbs> Yeah, all of the wierd shit is serialized data
<nobitanobi> oh ugh, ideally I wanted to do some Ruby stuff. Pair up with somebody who I can help and at the same time learn from
<havenwood> nobitanobi: oh, nice
<PixelCrumbs> or at least some form of serialization
<havenwood> nobitanobi: good idea
<nobitanobi> havenwood: So, if you have any Ruby projects, I would be really happy to try to help
axilla has quit [Ping timeout: 272 seconds]
jottr_ has joined #ruby
iamjarvo has joined #ruby
asteve has joined #ruby
asteve has quit [Changing host]
asteve has joined #ruby
zeroNones has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
<smuck> You guys are awewsome. i have spent 2week time to learn ruby and still i have learn nearly nothing. :)
fdelacruz has joined #ruby
axilla has joined #ruby
<banister> smuck you must be slightly mentally deficient then ;)
nobitanobi has quit [Read error: Connection reset by peer]
koderok has joined #ruby
koderok has quit [Client Quit]
mijicd has quit [Remote host closed the connection]
nobitanobi has joined #ruby
<smuck> banister: maybe you are right :)
<nobitanobi> agh. Sorry havenwood I got disconnected.
toastynerd has quit [Remote host closed the connection]
OffTheRails has joined #ruby
<havenwood> nobi, oh vanished
philcrissman has joined #ruby
<shevy> hmm
<nobitanobi> havenwood: anyway, if you think of any of your projects that have some issues I could take a look, ping me!
<havenwood> nobitanobi: ah, was gunna say i was looking at the `naturally` gem yesterday and it could use a /bin
<havenwood> nobitanobi: also (a real easy PR) it needs `gem.license = 'MIT'` in the gemspec
<fdelacruz> excuse me, but why are the names 'el' and 'arr' traditionally used in arrays iterations?
cajone has joined #ruby
<nobitanobi> havenwood: this one? https://github.com/dogweather/naturally
<dorei> fdelacruz: guess it's shorthand for element and array
<havenwood> nobitanobi: yup
mechanicalduck has quit [Ping timeout: 264 seconds]
<nobitanobi> havenwood: thanks, I will take a look at it
<havenwood> nobitanobi: it has a LICENSE file, just needs the #license set in gemspec
<nobitanobi> I will do that PR then
<nobitanobi> something to start with
<nobitanobi> :)
<havenwood> :)
mechanicalduck_ has joined #ruby
<havenwood> fdelacruz: i didn't know that was tradition
saarinen has quit [Quit: saarinen]
<havenwood> fdelacruz: i'm used to seeing `a`, `arr` and `array`
philcrissman has quit [Ping timeout: 246 seconds]
<havenwood> don't see `el` much these days
<havenwood> nice to use descriptive variable names
<smuck> banister: There is no shame to be slow. I think it's a shame to stop trying :)
<fdelacruz> havenwood seen it in some examples on stackoverflow
<havenwood> fdelacruz: chickens.each do |chicken|
alexju has joined #ruby
<nobitanobi> havenwood: that is a nice gem!
<havenwood> nobitanobi: naturally
<havenwood> :P
<nobitanobi> hehehe
<nobitanobi> What do you mean by having a /bin?
OffTheRails has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
<smuck> ./dev/null
alexju has quit [Remote host closed the connection]
nobitanobi has joined #ruby
orionstein has joined #ruby
<nobitanobi> oh boy, Comcast is great these days.
alexju has joined #ruby
sylvanica has quit [Ping timeout: 244 seconds]
<havenwood> nobitanobi: so from the command line you could: naturally 5c 10c 10a #=> 5c 10a 10c
<smuck> maybe its not comcast you need to blame? :)
<nobitanobi> oh havenwood that's neat
Hanmac has quit [Ping timeout: 272 seconds]
<havenwood> nobitanobi: this would be an example implementation, though using an option parser would perhaps be more robust and self-documenting, etc: https://github.com/havenwood/naturally/blob/master/bin/naturally
alexju has quit [Read error: No route to host]
<havenwood> nobitanobi: the gemspec is actually already wired to detect the bin, so that file is all that's needed - and doc changes
<shevy> hmm
<nobitanobi> havenwood: let me see
alexju has joined #ruby
<shevy> when I run system './configure' I get output. if I do: result = `./configure` I don't get output, but I need to capture the string into a variable. is there a way to get the same output via `` as with system() ?
<nobitanobi> havenwood: so pardon my ignorance on this aspect, how do you tell your shell to use that gem without being in IRB or PRY?
_0xf_ has quit [Ping timeout: 255 seconds]
<havenwood> nobitanobi: gem install naturally; naturally
krz has quit [Quit: WeeChat 0.4.3]
<havenwood> nobitanobi: (presuming you adding the `bin/naturally` ^ file)
Aranshada|W has quit [Ping timeout: 255 seconds]
<havenwood> nobitanobi: installing it makes the binary available in your PATH
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> assuming things are correctly configured
<nobitanobi> Oh I see. Installing the gem makes the bin available in the PATH. That's neat, I didn't know you could do that.
Aranshada|W has joined #ruby
<havenwood> nobitanobi: like bundler or rails do
fgo has joined #ruby
cap has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nobitanobi> aha, yeah, that's right!
jmbrown412 has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
<havenwood> that's how they do it
kaspertidemann has quit []
relix has joined #ruby
<havenwood> just a convention
<havenwood> yay RubyGems
wjimenez5271 has joined #ruby
nobitanobi has joined #ruby
<nobitanobi> havenwood: thanks for this. I really appreciate
ohwhoa has quit [Quit: woah!]
tjr9898 has joined #ruby
Aranshada|W_ has joined #ruby
<havenwood> nobitanobi: no prob
axl_ has joined #ruby
tkuchiki has joined #ruby
<havenwood> shevy: so you want to print to stdout and also return the value?
saarinen has quit [Quit: saarinen]
<shevy> havenwood yes!
<shevy> I want like a super_system()
Aranshada|W has quit [Ping timeout: 272 seconds]
<shevy> result = super_system('bla')
axl_ has quit [Client Quit]
fgo has quit [Ping timeout: 240 seconds]
<shevy> system() alone only gives me true or false, that is not very useful :(
thomasxie has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
_2_Lily97 has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
wjimenez5271 has joined #ruby
cap has quit [Ping timeout: 240 seconds]
IceDragon has joined #ruby
Hanmac has joined #ruby
coca_rails has joined #ruby
jottr_ has quit [Quit: WeeChat 0.4.3]
klaut has quit [Remote host closed the connection]
<shevy> hmm
coca_rails has left #ruby [#ruby]
axilla has quit [Ping timeout: 250 seconds]
coca_rails has joined #ruby
<havenwood> shevy: popen3
jottr has joined #ruby
_2_Lily97 has quit [Read error: Connection reset by peer]
wjimenez5271 has quit [Ping timeout: 240 seconds]
<havenwood> shevy: require 'open3'; stdin, stdout, stderr = Open3.popen3('echo "hi"; sleep 5; echo "bye"'); puts stdout.read
fgo has joined #ruby
<shevy> hah
<shevy> ohhhh
xcesariox has joined #ruby
xcesariox has quit [Max SendQ exceeded]
<shevy> I thought it was Popen lol
<shevy> but a method is meant
kireevco has joined #ruby
<havenwood> shevy: it'll read as it goes, where saving backtick results you prolly noticed will block then print all at once
kireevco has left #ruby [#ruby]
coca_rails has quit [Client Quit]
charliesome has joined #ruby
klmlfl has joined #ruby
<havenwood> e.g.: stdout = `echo "hi"; sleep 5; echo "bye"`; puts stdout
<klmlfl> Hello, this is a test message - please respond with 1 if youre getting this
<klmlfl> I’d really appreciate it. thx
<miah> klmlfl: you are on irc. welcome.
<klmlfl> thank you!
<miah> klmlfl: also, #ruby uses TrueClass and FalseClass as booleans, not 0, or 1.
<klmlfl> for the rubyonrails channel i’m having issues.
yfeldblum has joined #ruby
axilla has joined #ruby
<klmlfl> :)
<havenwood> klmlfl: nick reg req
ghr has joined #ruby
<klmlfl> havenwood: thanks
fgo has quit [Ping timeout: 264 seconds]
klmlfl is now known as register
register is now known as Guest31418
Guest31418 is now known as klmlfl
atmosx has joined #ruby
xcesariox has joined #ruby
pandaant has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 260 seconds]
gaussblurinc1 has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
CorySimmons has joined #ruby
cesurasean has joined #ruby
_0xf_ has joined #ruby
klaut has joined #ruby
Pharaoh2 has joined #ruby
tkuchiki has joined #ruby
_0xf_ has quit [Ping timeout: 255 seconds]
sepp2k has quit [Read error: Connection reset by peer]
WRick has quit [Quit: Lost terminal]
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
arya_ has joined #ruby
klaut has quit [Ping timeout: 245 seconds]
<vinky> urgh, PAX size overflow detected in function set_flexbg_block_bitmap fs/ext4/resize.c:387 cicus.527_77 max, count: 9
charliesome has quit [Ping timeout: 240 seconds]
fdelacruz has quit [Quit: EPIC5-1.1.6[1699] - amnesiac : If it ain't broken, break it.]
MartinCleaver has quit [Quit: MartinCleaver]
atmosx has quit [Ping timeout: 250 seconds]
atmosx has joined #ruby
ohwhoa has joined #ruby
<asteve> so, when given a problem that causes a permutation computation, what's the right solution? recursion?
InhalingPixels has joined #ruby
<jhass> Array#permutation ? :P
tkuchiki has quit [Ping timeout: 255 seconds]
InhalingPixels has quit [Remote host closed the connection]
<jhass> but ^'s implementation uses recursion, yeah (In Rubinius at least)
aewffwea has quit [Ping timeout: 255 seconds]
shredding has quit [Quit: shredding]
OffTheRails has joined #ruby
Inhaling_ has joined #ruby
smuckk has joined #ruby
cesurasean has quit [Ping timeout: 240 seconds]
cesurasean1 has joined #ruby
atmosx has quit [Ping timeout: 260 seconds]
doev has joined #ruby
<vinky> ops, wrong channel
atmosx has joined #ruby
chrishough has joined #ruby
smuck has quit [Ping timeout: 272 seconds]
klaut has joined #ruby
charliesome has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
coderhs has quit [Ping timeout: 240 seconds]
smuckk is now known as smuck
emmesswhy has joined #ruby
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
whatever has joined #ruby
whatever is now known as Guest98384
<Guest98384> anyone ever use Resque?
<jhass> pretty sure a few people do
jottr has quit [Ping timeout: 245 seconds]
<Guest98384> lol,
<Guest98384> in my Gemfile i have "#gem "resque", "~> 2.0.0.pre.1", github: "resque/resque""
<Guest98384> (uncommented)
goshdarnyou has joined #ruby
<Guest98384> but when i require 'resque' it is not loaded
hakunin has quit [Ping timeout: 245 seconds]
<jhass> how do you verify?
OffTheRails has quit [Ping timeout: 255 seconds]
<Guest98384> im sorry, what do yo umean?
<Guest98384> I get a load error
jerikl has joined #ruby
arya_ has quit [Ping timeout: 246 seconds]
<jhass> how do you start whatever you start?
<Guest98384> im using shotgun and sinatra
<Guest98384> however, if i: gem 'resque' , then i can get it to load
<jhass> I think you're missing either a bundle exec or a require 'bundler/setup' somewhere (they do the same thing)
kaspergrubbe_ has joined #ruby
tylerkern has joined #ruby
amargherio has joined #ruby
<Guest98384> ah i see. is this because the gem is only installed local to the project?
jottr has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
<jhass> it's because it's not installed in a way rubygems by itself can find it
<jhass> bundler needs to setup the load path
<Guest98384> what is the benefit of specifying it that way?
<Guest98384> does that tell it to get the latest from github?
<jhass> github: ... ? You can run unreleased versions
<shevy> havenwood yeah, that blocking-part was annoying, like having hiccups
axl_ has joined #ruby
e4xit has quit [Quit: Right I'm out!]
chipotle has quit [Quit: cya]
arup_r has joined #ruby
axl_ has quit [Client Quit]
coderhs has joined #ruby
Darryl has quit [Quit: Connection closed for inactivity]
jottr has quit [Ping timeout: 240 seconds]
shredding has joined #ruby
kaspertidemann has joined #ruby
brothmars has quit [Ping timeout: 250 seconds]
qmfnp has joined #ruby
peret has joined #ruby
axilla has quit [Ping timeout: 260 seconds]
Inhaling_ has quit []
InhalingPixels has joined #ruby
_0xf_ has joined #ruby
shredding has quit [Quit: shredding]
cap has joined #ruby
Wolland has joined #ruby
<shevy> hmm
<shevy> while line = stdout.gets; puts line; end
<shevy> what would be a corresponding loop {} for that?
nateberkopec has joined #ruby
<hoelzro> shevy: isn't there a method on stdout that would do that?
RustyShackleford has joined #ruby
<hoelzro> something like stdout.each_line { |line| puts line }?
<shevy> ah
<shevy> that looks even better
<RustyShackleford> I made a rails app in the past, but never properly learned ruby
<shevy> I was reading through http://blog.bigbinary.com/2012/10/18/backtick-system-exec-in-ruby.html and the code seemed unusual
<waxjar> think you want stdin tho ;)
_0xf_ has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
<RustyShackleford> i'm looking for some source or guide for learning ruby
CorySimmons has quit [Quit: Bye!]
<RustyShackleford> ideally geared towards someone who already knows how to program
<hoelzro> heh, I didn't even think about that =)
shredding has joined #ruby
<hoelzro> RustyShackleford: I loved "The Ruby Programming Language"
<hoelzro> great book
enali has joined #ruby
yfeldblum has joined #ruby
<waxjar> RustyShackleford: i've always liked this one for a quick start (http://www.apeth.com/rubyIntro/justenoughruby.html)
<RustyShackleford> hoelzro, O'Reilly?
<hoelzro> RustyShackleford: mhmm
Wolland_ has joined #ruby
<RustyShackleford> is ruby used much outside of RoR?
Wolland has quit [Ping timeout: 244 seconds]
<RustyShackleford> as of now, I prefer Python
axilla has joined #ruby
<shevy> RustyShackleford I use ruby without RoR
<havenwood> RustyShackleford: yes, Ruby is used for much beyond Rails
<enali> the start is base what version?
sigurding has quit [Quit: sigurding]
SilkFox has quit [Ping timeout: 240 seconds]
<havenwood> RustyShackleford: I've tried several times to like Python, but I just viscerally prefer Ruby.
freerobby has joined #ruby
fgo has joined #ruby
IceDragon has quit [Ping timeout: 272 seconds]
<havenwood> shevy: do you care about stderr?
<enali> Ruby is more simple
<enali> than Python, Java
<pipework> havenwood: Those lambdas, rite
<havenwood> pipework: ;)
<enali> the usage of ".each" is so beautiful
TheNet has joined #ruby
IceDragon has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
BaconOverflow has quit [Quit: Connection closed for inactivity]
jerikl has quit [Quit: jerikl]
<havenwood> shevy: want to merge stdout/stderr, have them separate, or just drop stderr?
jerikl has joined #ruby
axilla has quit [Quit: Lost terminal]
ghr has joined #ruby
obs has joined #ruby
<shevy> I need both the normal output but also error output
<shevy> because some error might break an installation
<shevy> optionally I also need to suppress both
<shevy> :)
fgo has quit [Ping timeout: 246 seconds]
<shevy> configuration variables will govern what to show and what not
<havenwood> shevy: i said that ^ poorly, so you want to have both stdout and stderr streams merged to a single pipe
<shevy> hmmm
<shevy> not sure
<shevy> but yeah, as one option I guess
shredding has quit [Quit: shredding]
TheNet has quit [Client Quit]
mojo619 has quit [Quit: mojo619]
<havenwood> shevy: stdin, stdout_and_stderr, wait_threads = Open3.popen2e('')
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> hem, although could you just use Open3#capture2e?
andrewlio has quit [Quit: Leaving.]
ghr has quit [Ping timeout: 272 seconds]
ctp has joined #ruby
jottr has joined #ruby
<havenwood> i guess not
nobitanobi has quit [Remote host closed the connection]
Darkchaos has quit [Ping timeout: 240 seconds]
<havenwood> blocky block
chipotle has quit [Quit: cya]
<shevy> hehehe
<shevy> blocky block
<shevy> stabby stab
<havenwood> stabby stab stab!
<havenwood> ->(){}
adamski2600 has joined #ruby
Snowstormer is now known as ^42
Fractional has joined #ruby
Kilobyte|StupidC is now known as Kilo`byte
sepp2k has joined #ruby
<Fractional> Hello, I have come a far way on my 2D ruby game. As such, I would like to ask if there is anyone around here who could help me go through the code and help me improve it. I would prefer to discuss around it. Please, if you think you can help me hit me up. Would appreciate it a lot! :-)
tjr9898 has quit [Remote host closed the connection]
siukit2014 has joined #ruby
timonv_ has joined #ruby
patrick99e99 has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
<enali> ruby game?
<Fractional> enali: Yes, a retro 2D spaceshooter :)
cap has quit [Ping timeout: 240 seconds]
<enali> PC or Android?
<Fractional> enali: PC
<enali> win, linux?
<Fractional> enali: So far only tested on win 8 and OS X 10.8.5 :P
echevemaster has joined #ruby
patrick99e99 has quit [Ping timeout: 250 seconds]
<havenwood> shevy: IO.popen('echo "hi"; sleep 5; echo "bye"') { |pipe| pipe.each { |line| puts line } }
<enali> so cool, I have never think about that, the ruby can code game
whyy has joined #ruby
bMalum has quit [Quit: Computer has gone to sleep.]
marr has joined #ruby
zeroNones has quit [Ping timeout: 260 seconds]
<enali> you code it with pure ruby?
bMalum has joined #ruby
<Fractional> enali: Correct
RustyShackleford has quit [Ping timeout: 272 seconds]
adamski2600 has left #ruby [#ruby]
philcrissman has joined #ruby
<dorei> there're a couple of gem for ruby game dev if I remember correct
<havenwood> shevy: oh, i guess the point was return value >.>
RustyShackleford has joined #ruby
<enali> can you email it to me? I want to play it.
<enali> I just use RoR
<Fractional> Yes, I am using the Gosu gem as of now. But I am a little bit worried about my codestyle :/
barhum2013 has quit [Quit: barhum2013]
jerikl has quit [Quit: jerikl]
<Fractional> enali: Its up on my Github page. However, its not really a game yet. You can not take damage nor deal damage to the enemies. Let me grab the link for you.
<enali> make thing happen, the style is not import , I think
<jhass> you know you need to post the code if you want a review, right?
sigurding has joined #ruby
<enali> get it? Have you test it in linux?
<Fractional> Only on win 8 and OS X.
whyy has quit [Ping timeout: 245 seconds]
<jhass> Fractional: most people use underscore_case for the filenames
<havenwood> shevy: stderr is the only tricky part
<enali> the linux can run what the OS X can
bMalum has quit [Ping timeout: 264 seconds]
<enali> I think
<enali> OK, I have clone it
philcrissman has quit [Ping timeout: 272 seconds]
<Fractional> enali: Ok you will need the Gosu gem though.
<jhass> Fractional: and SCREAMING_UNDERSCORE_CASE for constants
<Fractional> jhass: Ok, thank you jhass! :D
anaeem1 has joined #ruby
<enali> u should write it down in README
shredding has joined #ruby
<enali> for how to use it.
<havenwood> shevy: my mind isn't right right now, but: Open3.popen2e('echo "hi"; sleep 5; burphglerror; echo "bye"') { |_, pipe, _| pipe.map { |line| puts line; line } }.join
<Fractional> enali: A great idea mate! :)
<jhass> Fractional: in Entity#initialize I'd do image = image.first if image.is_a? Array
chipotle has joined #ruby
<havenwood> shevy: ^ for stdin/stderr merged stream, i should called pipe stdin_and_stderr
<enali> It's time to sleep.
<enali> see you.
anaeem1 has quit [Remote host closed the connection]
<Fractional> enali: See you!
enali has quit [Quit: Page closed]
Bumptious has joined #ruby
gilest has joined #ruby
<Fractional> jhass: Which line?
cpruitt has joined #ruby
<jhass> Fractional: before the width / height assignment to deduplicate the code in the if else
freerobby has quit [Quit: Leaving.]
shredding has quit [Client Quit]
anaeem1 has joined #ruby
<havenwood> shevy: IO#popen would print stdin and stderr but only capture stdin
axilla has joined #ruby
<jhass> Fractional: many people prefer using && and || over and and or since their precedence rules are more what you're used to from other languages
Spami has joined #ruby
<Fractional> jhass: Oh, I thought it was the other way around with ruby. That people preferred using 'and' and 'or' instead of && and || :P
<jhass> Fractional: no need to overwrite FloatingEntity#update if all you do is calling the parent
<pipework> I use and as well as or for control flow.
nateberkopec has quit [Quit: Leaving...]
<jhass> Fractional: don't call methods with ::, use . (FloatingEntity.rb:28)
shredding has joined #ruby
<Fractional> jhass: On what line was the overwriting?
anaeem1 has quit [Remote host closed the connection]
<jhass> your files aren't that long, I give you the class names already
<Fractional> jhass: Ok got it! Thanks for the excellent help by the way
<jhass> Fractional: you can reduce FloatingEntity#out_of_screen? to just the condition in the if: def out_of_screen?; @x > .... @y < 0; end
<havenwood> gamestate.on_load unless @gamestates.size < 0: https://github.com/Freddan962/Spaceshooter/blob/master/src/GameStateManager.rb#L32
atmosx has quit [Ping timeout: 272 seconds]
<havenwood> Fractional: ^ or: gemstate.on_load if @gamestates.size >= 0
<havenwood> Fractional: but don't explicitly check truthyness, just use it
<Fractional> jhass: So the method by default returns false unless we are telling it to return true?
<jhass> Fractional: no, the expression returns true or false and the last expression of a method is its return value
cap has joined #ruby
<jhass> >> def foo?; 1 > 2; end; foo?
<eval-in> jhass => false (https://eval.in/180011)
bluish has joined #ruby
<jhass> FraGame State.rb:32: filepath = "./src/gamestates/#{self.class}_resources.txt"
atmosx has joined #ruby
kaspergrubbe_ has quit [Remote host closed the connection]
<jhass> Fractional: GameState.rb ^
<jhass> next line: if ! -> unless
<Fractional> jhass: Cheers! Must have overlooked that one :P Thanks!
axilla has quit [Ping timeout: 272 seconds]
axilla has joined #ruby
Ankhers has joined #ruby
cy has joined #ruby
<Fractional> jhass: Is unless more commonly used rather than if ! in Ruby?
_JamieD_ has quit [Quit: _JamieD_]
<jhass> yes
ptrrr has joined #ruby
<jhass> note there's a small semantic difference, unless x is if x == false || x == nil, ! is actually a method call
<jhass> well, #== is too
shredding has quit [Quit: shredding]
<cy> does ruby do the same thing as lisp when it comes to bools, nil (and false) are false, but everything else is true?
<jhass> cy: yes
<havenwood> cyphactor: yes
<havenwood> cyphactor: oops, MT
<cy> havenwood: i trip people up with my nick realtively often, i wonder if i should change it :c
<havenwood> cy: my tab completion just failed me
<havenwood> should prefer exact match to expansion!
<jhass> Fractional: mh, where/how is Loot instantiated?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Fractional> jhass: Play.rb #83
timonv_ has quit [Remote host closed the connection]
<Fractional> jhass, havenwood: Thank you for the excellent help and taking time looking into my code! I truly do appreciate it! :)
nateberkopec has joined #ruby
<jhass> uh, did you maybe forget to commit that?
threesixes has quit [Quit: SATAN!!!!!!!!]
nateberkopec has quit [Client Quit]
digifiv5e has joined #ruby
FarlaTux has joined #ruby
kaspergrubbe_ has joined #ruby
digifiv5e is now known as Guest29884
digifiv5e_ has quit [Ping timeout: 240 seconds]
<jhass> oh, that looked like a resources folder
<Fractional> jhass: Got a question for you. If I want to access a constant through a namespace whats the proper way of doing so? Foo::bar or Foo.bar?
_0xf_ has joined #ruby
<Fractional> Foo::BAR or Foo.BAR*
<jhass> Foo::BAR, Foo.BAR calls the method BAR
Guest98384 has quit [Quit: Leaving]
<Fractional> jhass: Ok, got it! Thanks! :)
<jhass> you can use :: to call methods (you shouldn't) but you can't use . to access constants
* Fractional Will be right back within an hour!
<shevy> great!
Matadoer has joined #ruby
Pharaoh2 has quit [Read error: Connection reset by peer]
FarlaTux has quit [Max SendQ exceeded]
Pharaoh2 has joined #ruby
charliesome has joined #ruby
<jhass> Fractional: okay, ping if you're back. Lots to come :P
kaspergrubbe_ has quit [Ping timeout: 246 seconds]
FarlaTux has joined #ruby
<Fractional> jhass: Haha, I will make sure to! Really appreciate it pal :D
* Fractional afk
anaeem1_ has joined #ruby
_0xf_ has quit [Ping timeout: 240 seconds]
Sauvin has quit [Read error: Connection reset by peer]
RustyShackleford has quit [Ping timeout: 272 seconds]
Matadoer has quit [Remote host closed the connection]
txdv has quit [Read error: Connection reset by peer]
Matadoer has joined #ruby
alexju has quit [Remote host closed the connection]
txdv has joined #ruby
shredding has joined #ruby
alexju has joined #ruby
dorei has quit [Read error: Connection reset by peer]
FarlaTux has quit [Quit: Leaving]
alexju has quit [Ping timeout: 245 seconds]
chrishough has quit [Quit: chrishough]
Exlee is now known as xlii
fgo has joined #ruby
<shevy> hmm is there a way to get the name of the arguments to a method in ruby
iamjarvo has joined #ruby
<shevy> from within a ruby file / ruby code
<shevy> for instance, ruby ftp has this method:
<shevy> Net::FTP.open(host, user = nil, passwd = nil, acct = nil)
machete has quit [Ping timeout: 245 seconds]
<shevy> I'd like to find out that I have 1 up to 4 arguments, the default values (should they have one), and the name of the respective variable there (though that latter part is not so important)
tectonic has joined #ruby
<Hanmac> shevy:
<Hanmac> >> require "net/ftp"; Net::FTP.method(:open).parameters
<eval-in> Hanmac => [[:req, :host], [:opt, :user], [:opt, :passwd], [:opt, :acct]] (https://eval.in/180014)
<Hanmac> shevy: you cant get the default value because it might be even more complicated than that
Guest29884 has quit [Max SendQ exceeded]
machete has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
anaeem1_ has quit [Remote host closed the connection]
<shevy> hmm
<shevy> interesting
ghr has joined #ruby
Fractional has quit [Remote host closed the connection]
digifiv5e_ has joined #ruby
anaeem1 has joined #ruby
<Hanmac> shevy: reason why you cant get the default value:
<Hanmac> >> def meth( m = raise("ups")); m ; end; meth 4
<eval-in> Hanmac => 4 (https://eval.in/180017)
<shevy> doesn't raise quit instantly?
dorei has joined #ruby
<Hanmac> >> def meth( m = raise("ups")); m ; end; meth
<eval-in> Hanmac => ups (RuntimeError) ... (https://eval.in/180018)
JoshGlzBrk has joined #ruby
agent_white has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
<Hanmac> shevy i wanted to show with that sample that you cant have a function that returns the default values of some parameters for a method
Butcho has joined #ruby
fold has quit [Ping timeout: 250 seconds]
kaspertidemann has quit []
robustus has quit [Ping timeout: 250 seconds]
anaeem1 has quit [Remote host closed the connection]
klmlfl has quit [Quit: klmlfl]
yfeldblum has joined #ruby
shredding has quit [Quit: shredding]
tjr9898 has joined #ruby
SilkFox has joined #ruby
<shevy> I've not seen a method with raise inside there in the argument list yet
maximski has joined #ruby
toastynerd has joined #ruby
<jhass> I hope you never will again
tkuchiki has joined #ruby
tjr9898 has quit [Ping timeout: 250 seconds]
shredding has joined #ruby
nemesit|znc has quit [Ping timeout: 244 seconds]
sylvanica has joined #ruby
<shevy> hehe
<shevy> Hanmac code has hidden easter eggs
hakunin has joined #ruby
maximski has quit [Client Quit]
<Hanmac> jhass: doctorWho fan? ;P
<jhass> no
nemesit|znc has joined #ruby
<Hanmac> oh bad, your sentence did remind me of a scene from the 50th years special ... like "i have seen that" and next generationDoctor did say "and i never want to see it again" ;P
tkuchiki has quit [Ping timeout: 260 seconds]
ringarin has joined #ruby
kireevco has joined #ruby
eivindml has joined #ruby
eivindml has quit [Max SendQ exceeded]
michaeldeol has joined #ruby
eivindml has joined #ruby
benzrf|offline is now known as benzrf
Photism has joined #ruby
machete has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> if I have a class like
<shevy> class Foo; def test1; end; def test2; end; end
iamjarvo has joined #ruby
sylvanica has quit [Ping timeout: 246 seconds]
<shevy> how to get only methods defined in that very class - excluding all other sources?
Fractional has joined #ruby
doev has quit [Ping timeout: 260 seconds]
f_vosberg has joined #ruby
<Fractional> jhass: I have returned! You said you had lots to come? Enlighten me :D
<shevy> hmm
<shevy> .class.instance_methods(false)
cpruitt has quit [Read error: Connection reset by peer]
machete has joined #ruby
<jhass> Fractional: okay, in Loot you have "Health" and "Ammo" and use them as identifiers. Use symbols (:health and :ammo) instead
cpruitt has joined #ruby
<Fractional> jhass: Instead of the variables? Is there a reason for this? :P
Butcho has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> instead of the strings
<jhass> the reason is that the whole purpose of symbols is to be used as identifiers
<jhass> so it's much cheaper and safer to do so
<havenwood> shevy: Foo.new.public_methods false
<Fractional> jhass: Ok I need to give that a read. Added to my to-do list :P
<jhass> Fractional: Loot#get_health/ammo have side effects which I wouldn't expect from a getter. Besides we skip the get_ and set_ in accessor methods
<jhass> so I'd rename them to reset_health or something
<shevy> oh
<shevy> why public_methods and not instance_methods?
arup_r has quit [Ping timeout: 272 seconds]
<jhass> Fractional: you can also make them slightly shorter with @health.tap { @health = 0 }
kireevco has quit [Quit: Leaving.]
<Fractional> jhass: I am so bad at naming methods. What would you say they should be called, if you were to name them? :P
atmosx has quit [Ping timeout: 260 seconds]
<jhass> reset_health / reset_ammo I guess
<jhass> Fractional: Loot#update feels like having a logic error, you check if it moved out of the window and then move it again anyways
<shevy> "Returns the list of public methods accessible to obj. If the all parameter is set to false, only those methods in the receiver will be listed."
atmosx has joined #ruby
<havenwood> shevy: omitting protected methods
<shevy> cool. now I only have to remember... aaaaah
<jhass> Fractional: probably no harm in doing so, but seems odd
<Fractional> jhass: Hold on here! :D Need to fix one thing at a time haha, you are too fast :P
<jhass> Don't have history and a scroll wheel? :P
robustus has joined #ruby
<shevy> he only looks at the last thing in chat
<shevy> P3NIS!
Symbiosisz has joined #ruby
SilkFox has quit [Ping timeout: 250 seconds]
f_vosberg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> or a 1 line buffer
<shevy> like the guy in the movie memento
_0xf_ has joined #ruby
SilkFox has joined #ruby
<jhass> Fractional: same logic oddness in Projectile#update
<havenwood> shevy: or don't use protected and use instance_methods(false) ;)
<shevy> hmm
<wasamasa> zenspider: yay, I think I'm on the bug
Matadoer has quit [Remote host closed the connection]
Matadoer has joined #ruby
<Fractional> jhass: The get_health/ammo methods were unused, ugh, will remove them.
<shevy> you are sitting on a bug?
<wasamasa> not yet
<wasamasa> but I've come closer
<wasamasa> I can sense it
<Fractional> jhass: I see what you mean in Loot#Update, it has been adressed.
nateberkopec has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> Fractional: I'd try to split up the condition in RectangularCollision#rectangular_collision? by giving the individual parts names by extracting them into (private) methods
cpruitt has quit [Quit: cpruitt]
_0xf_ has quit [Ping timeout: 245 seconds]
<jhass> Fractional: small indentation error in ResourceManager.rb:3 :P
<jhass> lots of if ! -> unless in that file
<jhass> also the :: -> . method call point
<Fractional> In ResManag...rb?
<jhass> yes
siukit2014 has quit [Ping timeout: 250 seconds]
<jhass> in the #[] method there you don't need the return keyword in the last line
centrx has quit [Quit: Mead error: Connection reset by beer]
toastynerd has quit [Remote host closed the connection]
<jhass> also you're doing a .map there: keys.map {|key| @resources[key] }
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Fractional> jhass: Question regarding namespace.
<jhass> or even just @resources.values_at(*keys)
<Fractional> jhass: #19, I have written Gosu::Image::Load_tiles. Should it be replaced with Gosu.Image::Load_tiles?
<jhass> no
<jhass> Gosu is a module
<jhass> Image is a module or a class
heftig has quit [Quit: Quitting]
<jhass> load_tiles is a method
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> resolve constants (includes modules and classes) with ::
<jhass> call methods with .
<jhass> so Gosu::Image.load_tiles
<Fractional> jhass: Ok great, that explains it :D
amclain has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
gilest has quit [Remote host closed the connection]
<jhass> SpaceshipFighter#initialize has another use symbols instead of strings case
machete has quit [Ping timeout: 260 seconds]
carraroj has quit [Quit: Konversation terminated!]
<jhass> in SpaceshipFighter#update write @projectiles.select!(&:alive?)
j_mcnall_ has joined #ruby
machete has joined #ruby
<Fractional> jhass: That is a way better way of doing it! Cheers
<jhass> In AIFighter#dodge_projectile if closest_projectile != nil -> unless closest_projectile
iamjarvo has joined #ruby
banister is now known as banistergalaxy
<jhass> AIFighter#threatening is a select: objects.select {|object| condition_you_have_in_the_if }
bMalum has joined #ruby
<Fractional> jhass: Got a error replacing if closest_projectile != nil to unless closest_projectile.
shredding has quit [Quit: shredding]
<jhass> er, yeah just if closest_projectile, remove the != nil
<jhass> or can it be false ?
<shevy> is .parameters actually useful Hanmac?
kaspergrubbe_ has joined #ruby
<Fractional> jhass: It can be nil.
CorySimmons has joined #ruby
<Hanmac> shevy better than arity
<shevy> hehe
<shevy> I can decude arity from .parameters?
<shevy> *deduce
<jhass> Fractional: then just remove the != nil
<shevy> .parameters.size ?
<Fractional> jhass: Yep, not sure why I even had that there in the first place, ugh :P
<jhass> Fractional: do you ever call AIFighter#clean_from_class with opposite = false ?
<jhass> also it's more like a filter_by_class ?
toastynerd has joined #ruby
fgo has joined #ruby
fold has joined #ruby
<jhass> since I can only find that one call: def filter_by_class(objects, klass); objects.select {|object| object.is_a? klass }
<jhass> ; end
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilkFox has quit [Ping timeout: 264 seconds]
<jhass> You might want to implement <=> in all your objects so you can just compare them and don't need that code on the caller side like in AIFighter#closest_entity
sigurding has quit [Quit: sigurding]
<Fractional> jhass: Once again you are right! Nope, I have adressed this now. Probably thought I would use it later.
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bMalum has quit [Ping timeout: 246 seconds]
poulet_a has joined #ruby
<jhass> In AIFighter you set @objects but then explicitly pass it to all methods, decide on one, don't do both
maximski has joined #ruby
<jhass> on a general node exceeding 80-100 characters per line should be an exception
<jhass> you can insert newlines in many places
sylvanica has joined #ruby
obs has quit [Quit: Saliendo]
fgo has quit [Ping timeout: 272 seconds]
toastynerd has quit [Remote host closed the connection]
linojon has quit [Quit: linojon]
<jhass> In Play#update you can do @objects |= @player.projectiles, that won't include duplicates
MartinCleaver has joined #ruby
ringaring has joined #ruby
whyy has joined #ruby
<Fractional> jhass: No longer passing @objects explicitly to all methods.
philcrissman has joined #ruby
armyriad has quit [Ping timeout: 244 seconds]
bMalum has joined #ruby
<jhass> Play#update has that same .select!(&:alive?) we had earlier
<jhass> maybe you're doing that check one time too much?
armyriad has joined #ruby
ringarin has quit [Ping timeout: 240 seconds]
Matadoer has quit [Remote host closed the connection]
Matadoer has joined #ruby
klmlfl has joined #ruby
<bMalum> is there a way to get S.M.A.R.T Attributes with Ruby out from a HDD?
<Fractional> jhass: Replaced the each with a select! like we had earlier, and yes I am most likely checking if they are dead twice.
<jhass> Fractional: I'd make Play#generate_loot: def generate_loot; type, resource = [[:health, @rm["health"], [:ammo, @rm["ammo"]].sample; Loot.new(type, resource, ...); end
<Fractional> alive*
davedev24_ has quit [Read error: Connection reset by peer]
whyy has quit [Ping timeout: 255 seconds]
davedev2_ has joined #ruby
shredding has joined #ruby
<Fractional> Ok I will after we have gone through everything do one thorough check and replace the string identifiers with symbols.
philcrissman has quit [Ping timeout: 264 seconds]
ringaring has quit [Ping timeout: 245 seconds]
brothmars has joined #ruby
<jhass> Fractional: there's a convention to mark unused variables with a leading _ or even name them just _, like you have couple of cases in GUI for example
<jhass> GUI#add_text: if @font == nil -> unless @font
<Fractional> jhass: Could you name one of those variables?
Neomex has joined #ruby
<jhass> key (twice)
r_s has joined #ruby
<jhass> also avoid things like key and value if possible, even object or item is better
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Fractional> jhass: Avoid naming the variables that?
<jhass> yeah
ohwhoa has quit [Quit: woah!]
Takle has quit [Remote host closed the connection]
gilest has joined #ruby
j_mcnall_ has quit [Read error: Connection reset by peer]
<Fractional> jhass: Ok, got it! My notes are becoming quite long (Y)
<jhass> Fractional: last note I have is about project structure: Usually when we have a class with a namespace like MyGame::Bots::Intelligent, module MyGame; end; would end up in lib/my_game.rb module MyGame::Bots; end; would end up in lib/my_game/bots.rb and the class itself in lib/my_game/bots/intelligent.rb
Matadoer has quit [Remote host closed the connection]
Photism has quit [Quit: Leaving]
Takle has joined #ruby
Matadoer has joined #ruby
bMalum has quit [Ping timeout: 246 seconds]
t0rc has joined #ruby
<Fractional> jhass: Thank you, I have written that down as well. Will have to change my project structure a bit :D
Photism has joined #ruby
havenwood has quit [Remote host closed the connection]
<Fractional> jhass: Thank you a lot for taking your time going through all my code. I really appreciate it mate! Thanks! :D
<jhass> you're welcome
<Fractional> jhass: How often do you stumble across meta programming in Ruby? Would you say its useful in programs like mine?
gilest has quit [Ping timeout: 255 seconds]
<jhass> metaprogramming isn't too well defined but the common denominator probably is that it is code that generates code. As such calling attr_accessor etc. is metaprogramming
michaeldeol has joined #ruby
<Fractional> jhass: Yes, I followed along a couple of examples but I am yet find out when it can be useful. Its my first time stumbling across 'code that generates code' :P
jsodini has quit [Read error: Connection reset by peer]
jsodini has joined #ruby
atmosx has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<jhass> it's occasionally useful, for example if you have a bunch of similar methods or want to override them in the same way you can do %i(a b c).each do |method| define_method(method) { ... }; end
cap has quit [Ping timeout: 240 seconds]
TheNet has joined #ruby
cap has joined #ruby
_0xf_ has joined #ruby
shredding has quit [Quit: shredding]
heftig has joined #ruby
AntelopeSalad has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claymore has quit [Remote host closed the connection]
_0xf_ has quit [Ping timeout: 260 seconds]
maximski has quit []
claymore has joined #ruby
amclain has quit [*.net *.split]
Pharaoh2 has quit [*.net *.split]
axilla has quit [*.net *.split]
Bumptious has quit [*.net *.split]
marr has quit [*.net *.split]
IceDragon has quit [*.net *.split]
xcesariox has quit [*.net *.split]
yeticry has quit [*.net *.split]
bricker`LA has quit [*.net *.split]
Fire-Dragon-DoL has quit [*.net *.split]
Gnubie_ has quit [*.net *.split]
craigbowen3 has quit [*.net *.split]
oso96_2000 has quit [*.net *.split]
toordog has quit [*.net *.split]
EvanR_ has quit [*.net *.split]
gigetoo has quit [*.net *.split]
mbwe has quit [*.net *.split]
cid404 has quit [*.net *.split]
agjacome_ has quit [*.net *.split]
wchun has quit [*.net *.split]
cherry_l1n has quit [*.net *.split]
phreax has quit [*.net *.split]
gtc has quit [*.net *.split]
mattp_ has quit [*.net *.split]
gizmore has quit [*.net *.split]
neersighted has quit [*.net *.split]
Eiam has quit [*.net *.split]
mgv has quit [*.net *.split]
aledovsky has quit [*.net *.split]
v0n has quit [*.net *.split]
s_e_ has quit [*.net *.split]
minecoins has quit [*.net *.split]
cuqa has quit [*.net *.split]
daed has quit [*.net *.split]
BeanDip_ has quit [*.net *.split]
kallen has quit [*.net *.split]
Platini has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
peeja has quit [*.net *.split]
AlyssaDaemon has quit [*.net *.split]
edwardly has quit [*.net *.split]
isomorphismes has quit [*.net *.split]
hydrajump has quit [*.net *.split]
pdtpatr1ck has quit [*.net *.split]
Kruppe has quit [*.net *.split]
_KaszpiR_ has quit [*.net *.split]
oz has quit [*.net *.split]
saltsa has quit [*.net *.split]
dserodio has quit [*.net *.split]
sfiggins has quit [*.net *.split]
davidcelis has quit [*.net *.split]
ClarusCogitatio has quit [*.net *.split]
jumblemuddle has quit [*.net *.split]
Davey has quit [*.net *.split]
dphase has quit [*.net *.split]
helpa has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
patteh has quit [*.net *.split]
jeaye has quit [*.net *.split]
cout has quit [*.net *.split]
dazeddev_ has quit [*.net *.split]
Nowaker has quit [*.net *.split]
michaeldeol has quit [*.net *.split]
Takle has quit [*.net *.split]
davedev2_ has quit [*.net *.split]
Symbiosisz has quit [*.net *.split]
agent_white has quit [*.net *.split]
cesurasean1 has quit [*.net *.split]
L3top has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
elaptics`away has quit [*.net *.split]
bclune_ has quit [*.net *.split]
M-Technic has quit [*.net *.split]
micah`_ has quit [*.net *.split]
donofrio has quit [*.net *.split]
jpiche has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
segv has quit [*.net *.split]
dyreshark has quit [*.net *.split]
marcel has quit [*.net *.split]
niharvey has quit [*.net *.split]
zastern has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
lazyguru has quit [*.net *.split]
seph429 has quit [*.net *.split]
franks2 has quit [*.net *.split]
Matadoer has quit [*.net *.split]
kaspergrubbe_ has quit [*.net *.split]
cy has quit [*.net *.split]
klaut has quit [*.net *.split]
jmbrown412 has quit [*.net *.split]
mechanicalduck_ has quit [*.net *.split]
RandyT has quit [*.net *.split]
mr-foobar has quit [*.net *.split]
snath has quit [*.net *.split]
quarcu has quit [*.net *.split]
jamespw has quit [*.net *.split]
cHarNe2 has quit [*.net *.split]
Mattias has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
cgj has quit [*.net *.split]
hephaestus_rg has quit [*.net *.split]
maloik has quit [*.net *.split]
kotk_ has quit [*.net *.split]
axisys has quit [*.net *.split]
chridal has quit [*.net *.split]
wackobobby has quit [*.net *.split]
LACP has quit [*.net *.split]
GeekOnCoffee has quit [*.net *.split]
yliu has quit [*.net *.split]
pontiki has quit [*.net *.split]
pipework has quit [*.net *.split]
matrixise has quit [*.net *.split]
zenspider has quit [*.net *.split]
moshee has quit [*.net *.split]
Muz has quit [*.net *.split]
xiphias has quit [*.net *.split]
chihhsin_cloud has quit [*.net *.split]
Zespre has quit [*.net *.split]
ClarusCogitatio_ has joined #ruby
tomaw is now known as 5EXAAABVN
amclain has joined #ruby
xcesariox has joined #ruby
axilla has joined #ruby
Pharaoh2 has joined #ruby
Bumptious has joined #ruby
IceDragon has joined #ruby
marr has joined #ruby
yeticry has joined #ruby
oso96_2000 has joined #ruby
toordog has joined #ruby
craigbowen3 has joined #ruby
Fire-Dragon-DoL has joined #ruby
Gnubie_ has joined #ruby
cuqa has joined #ruby
EvanR_ has joined #ruby
agjacome_ has joined #ruby
wchun has joined #ruby
gigetoo has joined #ruby
mbwe has joined #ruby
cherry_l1n has joined #ruby
phreax has joined #ruby
gtc has joined #ruby
mattp_ has joined #ruby
dserodio has joined #ruby
gizmore has joined #ruby
kallen has joined #ruby
Eiam has joined #ruby
aledovsky has joined #ruby
neersighted has joined #ruby
mgv has joined #ruby
v0n has joined #ruby
peeja has joined #ruby
daed has joined #ruby
samuelkadolph has joined #ruby
Platini has joined #ruby
BeanDip_ has joined #ruby
minecoins has joined #ruby
s_e_ has joined #ruby
edwardly has joined #ruby
hydrajump has joined #ruby
AlyssaDaemon has joined #ruby
pdtpatr1ck has joined #ruby
isomorphismes has joined #ruby
_KaszpiR_ has joined #ruby
Kruppe has joined #ruby
davidcelis has joined #ruby
oz has joined #ruby
jumblemuddle has joined #ruby
sfiggins has joined #ruby
Davey has joined #ruby
saltsa has joined #ruby
dazeddev_ has joined #ruby
avelldiroll has joined #ruby
patteh has joined #ruby
cout has joined #ruby
dphase has joined #ruby
jeaye has joined #ruby
helpa has joined #ruby
Nowaker has joined #ruby
_0xf_ has joined #ruby
gigetoo has quit [Max SendQ exceeded]
Rylee has quit [Excess Flood]
mkaesz has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby
Rylee has joined #ruby
AntelopeSalad_ has joined #ruby
Takle has joined #ruby
davedev2_ has joined #ruby
Symbiosisz has joined #ruby
cesurasean1 has joined #ruby
agent_white has joined #ruby
L3top has joined #ruby
M-Technic has joined #ruby
micah`_ has joined #ruby
elaptics`away has joined #ruby
bclune_ has joined #ruby
Emmanuel_Chanel has joined #ruby
donofrio has joined #ruby
Mon_Ouie has joined #ruby
segv has joined #ruby
jpiche has joined #ruby
marcel has joined #ruby
niharvey has joined #ruby
dyreshark has joined #ruby
seph429 has joined #ruby
franks2 has joined #ruby
lazyguru has joined #ruby
sn0wb1rd has joined #ruby
zastern has joined #ruby
Fractional has quit [Remote host closed the connection]
nateberkopec has joined #ruby
gigetoo has joined #ruby
Matadoer has joined #ruby
RandyT has joined #ruby
kaspergrubbe_ has joined #ruby
jmbrown412 has joined #ruby
mechanicalduck_ has joined #ruby
cy has joined #ruby
klaut has joined #ruby
jamespw has joined #ruby
snath has joined #ruby
mr-foobar has joined #ruby
pipework has joined #ruby
cHarNe2 has joined #ruby
quarcu has joined #ruby
Mattias has joined #ruby
maloik has joined #ruby
cgj has joined #ruby
hephaestus_rg has joined #ruby
kotk_ has joined #ruby
Sou|cutter has joined #ruby
wackobobby has joined #ruby
axisys has joined #ruby
chridal has joined #ruby
LACP has joined #ruby
yliu has joined #ruby
pontiki has joined #ruby
GeekOnCoffee has joined #ruby
matrixise has joined #ruby
zenspider has joined #ruby
xiphias has joined #ruby
moshee has joined #ruby
Muz has joined #ruby
barhum2013 has joined #ruby
chihhsin_cloud has joined #ruby
Zespre has joined #ruby
5EXAAABVN is now known as tomaw
CorySimmons has quit [Quit: Zzz...]
brothmars has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Read error: Connection reset by peer]
_0xf_ has quit [Ping timeout: 260 seconds]
nateberkopec has joined #ruby
george2 has quit [Quit: ZNC - http://znc.in]
timonv_ has joined #ruby
george2 has joined #ruby
george2 is now known as Guest15826
d4ryus___ is now known as d4ryus
mechanicalduck_ has quit [Ping timeout: 272 seconds]
ClarusCogitatio_ has quit [Ping timeout: 272 seconds]
axsuul has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
xxneolithicxx has joined #ruby
<xxneolithicxx> hi all
ClarusCogitatio has joined #ruby
<xxneolithicxx> is there any way in a gemspec to set the version of a dependency to 2.2.0 to <= 3.0?
Matadoer has quit [Ping timeout: 272 seconds]
Neomex has quit [Quit: Leaving]
<xxneolithicxx> asarange
<xxneolithicxx> as a range
shredding has joined #ruby
<jhass> xxneolithicxx: you could give two arguments with ">= 2.2.0" and "<= 3.0" but there's a shortcut if you meant "< 3.0": "~> 2.2.0"
<xxneolithicxx> right i did mean that, ok cool
axilla has quit [Ping timeout: 255 seconds]
<xxneolithicxx> ty
t0rc has quit [Quit: Wrong layout]
Matadoer has joined #ruby
ctp has joined #ruby
Guest15826 has left #ruby [#ruby]
_cpt_yossarian_ has joined #ruby
CorySimmons has joined #ruby
bearish has quit [Remote host closed the connection]
bearish has joined #ruby
shredding has quit [Client Quit]
cpt_yossarian has quit [Ping timeout: 260 seconds]
^42 is now known as Legajuana
xxneolithicxx has left #ruby [#ruby]
Legajuana is now known as Snowstormer
fgo has joined #ruby
toastynerd has joined #ruby
bMalum has joined #ruby
ptrrr has quit [Quit: ptrrr]
TheNet has quit [Quit: Leaving...]
bMalum has quit [Client Quit]
bMalum has joined #ruby
Matadoer has quit [Remote host closed the connection]
startupality_ has joined #ruby
Guest15826 has joined #ruby
iamjarvo has joined #ruby
startupality has quit [Ping timeout: 264 seconds]
startupality_ is now known as startupality
anildigital is now known as zz_anildigital
fgo has quit [Ping timeout: 250 seconds]
gaussblurinc1 has joined #ruby
mikepack has joined #ruby
blueOxigen has joined #ruby
cibs has quit [Ping timeout: 252 seconds]
bluOxigen has quit [Ping timeout: 260 seconds]
axilla has joined #ruby
cherry_l1n has left #ruby [#ruby]
bMalum has quit [Ping timeout: 244 seconds]
cibs has joined #ruby
Guest15826 has quit [Quit: ZNC - http://znc.in]
george2 has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
heftig has quit [Quit: Quitting]
soulcake has quit [Quit: Quack.]
jmbrown412 has quit [Remote host closed the connection]
tectonic has quit []
Sonny|3oy has joined #ruby
blueOxigen has quit [Read error: Connection reset by peer]
mattalexx has joined #ruby
timonv_ has quit [Remote host closed the connection]
jmbrown412 has joined #ruby
soulcake has joined #ruby
<mattalexx> Why is the foo var being overwritten here? It becomes nil: foo = 'asdf/zxcv'; puts foo; foo.sub('/', '-'); puts foo
rkjaer has joined #ruby
mostlybadfly has joined #ruby
bluOxigen has joined #ruby
<drizz> no it doesn't
<drizz> puts returns nil, though
ptrrr has joined #ruby
ptrrr has quit [Remote host closed the connection]
<mattalexx> Oh I see
nobitanobi has joined #ruby
<nobitanobi> hey
axl_ has joined #ruby
tkuchiki has joined #ruby
ptrrr has joined #ruby
virtualize has quit [Read error: Connection reset by peer]
virtualize has joined #ruby
haroldwu has quit [Ping timeout: 244 seconds]
jmbrown412 has quit [Ping timeout: 260 seconds]
chipotle has quit [Quit: cya]
axl_ has quit [Client Quit]
barhum2013 has quit [Quit: barhum2013]
Ankhers has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Ping timeout: 264 seconds]
gaussblurinc1 has quit [Quit: Leaving.]
<Nilium> These days, I'm kind of convinced Ruby is my favorite language with no implementations I actually care for.
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Nilium> Rubinius actually seems like it has potential but I can never tell if it's actually alive or not.
pietr0 has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
rkjaer has quit []
rkjaer has joined #ruby
d_cas has joined #ruby
nateberkopec has quit [Quit: Leaving...]
dcas_ has joined #ruby
jheg has joined #ruby
haroldwu has joined #ruby
Takle has quit [Remote host closed the connection]
CorySimmons has quit [Quit: Bye!]
<MarcWebe3> join #ruby
dcas_ has quit [Client Quit]
d_cas has quit [Quit: Leaving]
chipotle has joined #ruby
starless has joined #ruby
<MarcWebe3> Ex:- is this a ruby command?
dcas has joined #ruby
chipotle has quit [Client Quit]
<jhass> MarcWebe3: more context
<MarcWebe3> I asked for some ruby code, and the reply contained that Ex:- It didn't make sense to me.
<MarcWebe3> So I hoped that its kind of "magic comment" making some sense.
mojo619 has joined #ruby
<jhass> no, makes no sense
<MarcWebe3> Thanks
<ari-_-e> MarcWebe3: post the code somewhere
axl_ has joined #ruby
<ari-_-e> or whatever it is
<MarcWebe3> I also would have preferred Float(), but got to_f
<ari-_-e> MarcWebe3: why?
axl_ has quit [Client Quit]
<MarcWebe3> because it throws error on "x".to_fcase
dcas has quit [Client Quit]
Bumptious has quit [Remote host closed the connection]
<ari-_-e> fair enough
Bumptious has joined #ruby
<shevy> Nilium I decided that when the original author left, the project died
MartinCleaver has quit [Quit: MartinCleaver]
eka has joined #ruby
<Nilium> Did he?
andrewlio has joined #ruby
bluenemo has quit [Quit: Verlassend]
<shevy> yeah kinda
iamjarvo has joined #ruby
dcas_ has joined #ruby
dcas_ has left #ruby [#ruby]
<shevy> "I know some of you will read this and say ?Evan left EY? Rubinius is dead.? I ask that you reserve judgement."
<shevy> projects under new management often change their identity
<shevy> like when _why left and the shoes as of today
Bumptious has quit [Ping timeout: 255 seconds]
<txdv> is rubinius dead?
kyb3r_ has joined #ruby
dcas has joined #ruby
<shevy> nah
<waxjar> last time i heard they had a new sponsor
<shevy> just under new management
Ankhers has joined #ruby
Olipro has quit [Ping timeout: 256 seconds]
<asteve> I have found a solution to a problem being triple recursion, I have to do have done something wrong
<asteve> heh
<txdv> I never needed high performance ruby runtime
<txdv> day changed
klmlfl has quit [Quit: klmlfl]
<txdv> not again
dcas has quit [Client Quit]
Ankhers has quit [Remote host closed the connection]
<shevy> well
<shevy> I would not mind if ruby would be much faster
<shevy> perhaps it has to become much simpler for that too
Olipro has joined #ruby
Ankhers has joined #ruby
<txdv> compile it to javascript and use v8
<txdv> :D
bearish has quit [Remote host closed the connection]
threesixes has joined #ruby
nateberkopec has joined #ruby
realDAB has joined #ruby
<shevy> :(
bearish has joined #ruby
Celm_ has joined #ruby
<shevy> everything is about javascript these days
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
pietr0 has quit [Quit: pietr0]
<Nilium> Fuck JS ಠ_ಠ
eka has joined #ruby
realDAB has quit [Client Quit]
<shevy> hehe
philcrissman has joined #ruby
whyy has joined #ruby
<Nilium> I've been using PHP at work recently. PHP still sucks.
art-solopov has joined #ruby
<kephra> there are no (sane) alternatives for JS in the browser - but on server side, JS sucks
<Nilium> And it was my choice D:
jerikl has joined #ruby
<Nilium> I could've picked ruby but I just didn't have time to figure out how to get a test server up and running with Ruby working
<kephra> those who can not curse a language for hours, have not used it
nateberkopec has quit [Client Quit]
<Nilium> Javascript is one of those languages that at a very basic, fundamental level, it's kind of nice
<Nilium> But when you start trying to do anything more than manipulate a DOM element in it, shit falls apart real fast
<art-solopov> Excuse me, do we have a separate Rails channel or is it okay to ask Rails questions here?
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Nilium> Yes, there's a separate rails channel, please use it.
bearish has quit [Ping timeout: 272 seconds]
<Nilium> No, I don't know what it's called.
<jhass> art-solopov: join #rubyonrails
Takle has joined #ruby
<art-solopov> jhass: Thanks.
<Nilium> What I can confirm is that rails is taboo.
<Nilium> Tabooooo.
Lewix has joined #ruby
<shevy> Nilium can't you sneakily replace the php at work with ruby?
fgo has joined #ruby
<Nilium> I have a week to finish the project and I've never done web dev before
<shevy> damn
<jhass> Nilium: have you been to the rails channel? Just too many people who just can't explain themselves
<jhass> :P
<Nilium> So I picked the thing I'd at least used for web stuff before, meaning PHP
<shevy> one week to learn web dev with ruby
decoponio has quit [Quit: Leaving...]
<Nilium> Meaning I'm not comfortable with swapping languages part-way through
<Nilium> Literally half-way through, actually.
whyy has quit [Ping timeout: 255 seconds]
philcrissman has quit [Ping timeout: 272 seconds]
<Nilium> I'm just waiting on the designer guy to get his stuff done 'cause otherwise I don't actually know what I'm going to be doing on Monday
<Nilium> There is one upside: PHP 5.3 onward is at least not the worst thing I've ever used.
JoshGlzBrk has joined #ruby
<kephra> I normally avoid monoliths - e.g. my stock trading application is using: R, FORTRAN, Java, Lua, C and PHP - each at the place where it suits best
<Nilium> Also the documentation is still probably the best I've ever seen despite it being PHP, which is just weird.
<Nilium> That'd make sense if the app were larger than it is, but it's just not
Ankhers has quit [Ping timeout: 264 seconds]
mijicd has joined #ruby
jdj_dk has joined #ruby
<kephra> the main problem with PHP are its tutorials - i would be rich, if I get a $ for every tutorial that teaches how to implement SQL injection and cross site scripting
jdj_dk has quit [Remote host closed the connection]
<shevy> yeah
<Nilium> I just ended up using mysqli and forcing everything to go through prepared statements.
<shevy> I keep on trying to convince pipework that php has a good docu and ruby's docu ought to be improved but he does not listen to me
krisquigley has joined #ruby
<kephra> but its common that languages are dangerous at same point where they are powerful - e.g. C is dangerous in memory handling
<shevy> even python has had its homepage changed not too long ago
fgo has quit [Ping timeout: 255 seconds]
<Nilium> PHP's documentation's nice mostly because I like that it has comments in the documentation
<Nilium> I don't know why that worked out or why it made them good but it did
Bumptious has joined #ruby
<kephra> best documentation for the base language has Lua, imho - but Lua also had the lowest quality of 3rd party modules and libraries
<kephra> so low, that the church decided to remove the module keyword from the language, to deprecicate all 3rd party modules
<Nilium> True. Lua's upside though is that it's small enough and the language is really well-defined.
<shevy> mruby to the rescue
<Nilium> Also, for most purposes, Lua's just really fast.
<Nilium> Even without LuaJIT
Tohsig has joined #ruby
linojon has joined #ruby
iamjarvo has joined #ruby
<Nilium> I still haven't tried using mruby
charliesome has joined #ruby
iamjarvo has quit [Client Quit]
tylerkern has joined #ruby
bmurt has quit []
chipotle has joined #ruby
<kephra> does mruby offer both light weight and heavy weight user objects?
<agent_white> Anyone know of a good hashing function for abitrary output digest length?
newUser1234 has joined #ruby
DivineEntity has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
<kephra> agent_white, http://floodyberry.com/noncryptohashzoo/ <- pick one ;-)
<agent_white> kephra: Ooo thank you! :D -- Essentially, I'm just wanting an string size of 50 for my hash's output.
claymore has quit [Quit: Leaving]
freerobby has quit [Client Quit]
ji0n has quit [Read error: Connection reset by peer]
<shevy> kephra I think right now it does not offer much at all :(
<kephra> *hm* so you need long hashes with variable length? Try Buz Hash or Zobrist Hash
skysploit has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<kephra> SHA-3 and Skein are also arbitrary length - but they are much slower, as they are crypto secure
<shevy> class ArchiveType
<shevy> so I look at old code I wrote
<shevy> and wonder why I wrote it
<shevy> hmmmmm
<agent_white> kephra: Aye! I'm not good at explaining it since I'm new to it... but basically like how SHA1 or SHA2 have 40 and 64 length digests, I want a 50 length digest.
ARCADIVS has quit [Quit: WeeChat 0.4.3]
nobitanobi has quit [Remote host closed the connection]
<agent_white> kephra: Yeah I was looking at sha3... but all the implementations in Ruby don't have the option for arbitrary length :(
<kephra> agent_white, does it need to be crypto secure?
<agent_white> NOPE! :D
<agent_white> It's just for this challenge: http://floodyberry.com/noncryptohashzoo/
<agent_white> erm
<kephra> http://en.wikipedia.org/wiki/Rolling_hash <- this buzhash might be much faster then sha3 ... and easier to implement also
newUser1234 has quit [Remote host closed the connection]
jerikl has quit [Quit: jerikl]
<agent_white> Oh boy... that may be a bit more than I need. I might just use sha2 and chop the leftovers I don't need. ;P
<agent_white> kephra: Thank you for the links!
<kephra> you need an arbibtrary precission library to implement buzhash for arbitrary length of course
newUser1234 has joined #ruby
<agent_white> Ahhh,
<Nilium> kephra: What's the difference between light- vs heavyweight objects?
<Nilium> Just heap vs. stack allocation?
<kephra> mainly the way the GC handles them
<Nilium> Or vice versa I guess, to keep with light/heavy
cesurasean1 is now known as cesurasean
<kephra> both are user space object, so its an object where the prototypes are implemented in C
skysploit has quit [Remote host closed the connection]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jheg has quit [Quit: jheg]
<kephra> basically a light user data is just a pointer, while heavy user data is a lua object, that is managed by C
<Nilium> So you're just referring to how Lua handles pointers vs. userdata
descala has quit [Read error: Connection reset by peer]
mikepack has quit []
<Nilium> I believe Ruby and mruby should currently handle that
<Nilium> Well, Ruby meaning MRI
kaspergrubbe_ has quit [Remote host closed the connection]
dseitz has joined #ruby
Sauvin has joined #ruby
nateberkopec has joined #ruby
newUser1234 has quit [Remote host closed the connection]
eka has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
cesurasean1 has joined #ruby
bedouin_ has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
ssut has quit [Ping timeout: 272 seconds]
cesurasean has quit [Ping timeout: 246 seconds]
<Tohsig> New here; is it appropriate to ask for advice on code style/organization? Just starting out with Ruby and am at a point where critiques would be helpful for my sanity :D
<apeiros> tohsig: sure, just ask
benlakey has quit [Ping timeout: 272 seconds]
ssut has joined #ruby
cesurasean has joined #ruby
dseitz has quit [Read error: Connection reset by peer]
jrhe_ has quit [Ping timeout: 272 seconds]
<Nilium> Long as you know that Ruby isn't Rails ಠ_ಠ
dseitz has joined #ruby
cesurasean2 has joined #ruby
dseitz has quit [Max SendQ exceeded]
<Tohsig> Ha, not quite that new ^^ Basically I've been building a CLI tool here: https://github.com/Tohsig/penknife_csv.
ptrrr has quit [Quit: ptrrr]
descala has joined #ruby
dseitz has joined #ruby
newUser1234 has joined #ruby
<Tohsig> And it works, but I don't know anyone who knows enough Ruby to tell me if there are any glaring issues with how I've organized the project.
bedouin__ has joined #ruby
<Nilium> What's the point of the gemfile?
jrhe_ has joined #ruby
<Tohsig> My experimentation with Bundler, heh. When I'm happier with it, I was going to push it to Rubygems.
benlakey has joined #ruby
<Nilium> I'm still not comfortable with bundler.
cesurasean1 has quit [Ping timeout: 272 seconds]
<Tohsig> Yeah, I haven't done much with it since I'm not using anything outside of the standard library yet.
cesurasean has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
niklasb has joined #ruby
cesurasean has joined #ruby
<kephra> tohsig, you might investigate old mainframe tools for that: RPG, OGL, PPFA (report generator, overlay generation language, page printer formatting aid)
newUser1_ has joined #ruby
bluish has quit []
andrewlio has quit [Quit: Leaving.]
newUser1234 has quit [Ping timeout: 272 seconds]
<Nilium> Also maybe just code in RPG IV
<Nilium> Entirely.
<kephra> Nilium, s/RPG/AWK/ <- I did that in early 80s ;-)
freerobby has joined #ruby
Matadoer has joined #ruby
chipotle has quit [Quit: cya]
<Tohsig> Ha, am I that far off base with this?
cesurasean2 has quit [Ping timeout: 240 seconds]
mr-foobar has quit [Quit: Leaving...]
axilla has quit [Ping timeout: 240 seconds]
Ankhers has joined #ruby
mr-foobar has joined #ruby
phutchins has joined #ruby
<Nilium> kephra: I've never used it, but a friend of mine graduated and ended up working in RPG IV and Cobol
newUser1_ has quit [Ping timeout: 245 seconds]
bmurt_ has joined #ruby
<jhass> tohsig: when you install the gem lib/ is available in the load path, so in bin/penknife you can just do require 'penknife_csv'
<Nilium> He left that job fairly shortly afterward because it was all old people and they were all supposedly very weird
<Nilium> Plus he didn't know either
<jhass> tohsig: for development bundle exec should make that work too
<jhass> tohsig: you should put all your classes into module PenknifeCSV
<Nilium> Speaking of require, the lack of that in Javascript is probably the biggest impediment I can think of to that language being taken seriously
<Tohsig> jhass: you know, that was one of my major questions, thanks
<jhass> tohsig: also I'm not a huge fan of automated requires via Dir[], I prefer to list them out by hand
Deele has quit [Ping timeout: 244 seconds]
raddazong has quit [Ping timeout: 272 seconds]
klmlfl has joined #ruby
<Nilium> It's probably a good idea to avoid those
klmlfl has quit [Remote host closed the connection]
bmurt has quit [Ping timeout: 255 seconds]
fold has quit [Ping timeout: 244 seconds]
madhatter has joined #ruby
<benzrf> ruby's require sucks
<benzrf> python's import is gr8
<benzrf> haskell's import is about even
<Tohsig> jhass + Nilium: Good to know. Was playing around with that line to see if it would affect load speed. Obviously not ^^
<jhass> tohsig: since you properly declare your executable in the gemspec rubygems will link it into a directory that's most likely already in the $PATH,, so need to add support for manual symlinking
<art-solopov> Nilium: But Node.JS has 'require'...
klmlfl has joined #ruby
<Nilium> node.js is a piece of crap and I can't forgive it for that.
freerobby has quit [Quit: Leaving.]
<gizmore> i use rand(min, max) ... does the distribution look linear or gauss?
<art-solopov> Nilium: Ouch. Why so serious?
<jhass> tohsig: your filenames should match the module/class names. For example in cli_check_options.rb I'd expect class CliCheckOptions
bricker`LA has joined #ruby
<Nilium> Because I disapprove of forking for concurrency/parallelism (depending on which one you care more about)
wald0 has quit [Read error: Connection reset by peer]
<jhass> gizmore: see docs of Random
<art-solopov> Nilium: But it's the most native way...
<gizmore> jhass: what is stopping you from answering? i read the docs a bit
memph1s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Nilium> Native/expensive/pointless/dumb
<art-solopov> gizmore: Logically, it should be uniform.
<gizmore> art-solopov: like a linear line? -------
<jhass> gizmore: oh sorry, confused it with SecureRandom that lists what sources it tries to read
Bumptious has quit [Remote host closed the connection]
<jhass> gizmore: still, "PRNGs are currently implemented as a modified Mersenne Twister with a period of 2**19937-1."
<art-solopov> gizmore: I mean, equal probability for each outcome.
<gizmore> it is for a game dicing... items can have weight: 600..900 ... and i want the resul being like gauss curve, but a bit shifted to the right
<gizmore> art-solopov: yeah, i also think it should be like y=1 for all values
<art-solopov> gizmore: I think you'd need a function that *specifically* states it's Gauss. Or try to generate Gauss from uniform.
Bumptious has joined #ruby
<Tohsig> jhass: Thanks for the comments! Some of that was for local testing (e.g. manual symlinks); I should get it out of the master branch.
<gizmore> art-solopov: yeah, until i got some nice idea i just use rand for now :) ... but it´s FIXME
wald0 has joined #ruby
<jhass> tohsig: so those are more minor things, what bothers me a bit that you have the main script in lib/, lib is for libraries though, it should contain almost no logic on the top level
AntelopeSalad_ is now known as AntelopeSalad
<jhass> tohsig: so the two most common options here are putting the flow control into the script in bin/ and let lib/ just provide the auxiliary classes, or make a Cli class that's handed ARGV and instantiated by the script in bin/
<gizmore> art-solopov: thank you very very much :)
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Wolland_ is now known as Wolland
_mikedugan has joined #ruby
<Nilium> 3pm
<Nilium> I need coffee
<art-solopov> gizmore: You're welcome. Honestly, I expected a library. V_V
Bumptious has quit [Remote host closed the connection]
<gizmore> art-solopov: it cries for a gem? ;)
Bumptious has joined #ruby
sylvanica has quit [Ping timeout: 260 seconds]
<Tohsig> jhass: ahhh, that makes sense; I'll fix that
fgo has joined #ruby
Bumptious has quit [Remote host closed the connection]
eka has joined #ruby
<art-solopov> gizmore: Heh. Sure does.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bumptious has joined #ruby
pandaant has joined #ruby
<art-solopov> Bye fellows!
bmurt_ has quit []
workmad3 has joined #ruby
art-solopov has quit [Quit: Bye!]
St_Marx has quit [Ping timeout: 264 seconds]
<jhass> tohsig: code style wise the only bad things I see are a return where an implicit one would work, a == nil check and building a string with + instead of interpolation
fgo has quit [Ping timeout: 244 seconds]
seydar has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<jhass> tohsig: of course the business logic is all intertwined with the presentation logic, but changing that would require a few larger changes ;)
<seydar> two questions: where should i go in the czech republic this xmas/new years, and how can i generate unicode characters from integers? i'm genuinely stumped.
<jhass> >> [9731].pack("U") # seydar
<eval-in> jhass => "☃" (https://eval.in/180045)
<kephra> seydar, I can answer the 2nd question in C - http://kephra.de/src/WylieUTF8/ - look at newUTF8encode in WylieUTF8.c
<seydar> jhass: well that's easy, thank you
stef_204 has joined #ruby
<kephra> *oh* nice Ruby has a function for this
<seydar> now i just need to figure out the czech republic
riotjones has quit [Ping timeout: 250 seconds]
tylerkern has joined #ruby
<Tohsig> jhass: O:) definitely learning, haha. I'll have to research the different logic types next.
<pontiki> snowman! :)))
nahtnam has joined #ruby
<jhass> seydar: why does it have to be the czech republic? Come to the C3 at Hamburg ;P
<nahtnam> hey! I have a number (n). how can I find the next prime number LARGER than (n). I am trying to learn how RSA works and want to make a simple demo app.
riotjones has joined #ruby
<seydar> jhass: i'm flying into germany so i *could* do hamburg, but i really want to see czechland
<nahtnam> I know there is a built in library but I don't know how to find the next largest prime number
krisquigley has quit [Remote host closed the connection]
<jhass> nahtnam: require 'prime'; Prime.find {|p| p > n }
<pontiki> prague is in czech, isn't it? that's supposed to be just gorgeous
kaspertidemann has joined #ruby
<seydar> pontiki: prague is the main goal. i also want to see the surrounding countryside as well though. gonna see how much czech i can learn between now and then
<nahtnam> jhass: thanks
alekst has joined #ruby
axsuul has quit [Ping timeout: 260 seconds]
<pontiki> that sounds wonderful, seydar
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
<waxjar> there is a church (i think) close to prague somewhere entirely decorated with human bones and skulls
<waxjar> i want to see that thing one day
icebourg has joined #ruby
<pontiki> yes, a reliquarium i think?
<seydar> waxjar: i'll see it for you and tell you how it is
cesurasean has quit [Ping timeout: 240 seconds]
<waxjar> that's very kind
<pontiki> it used to be standard practice that after bodies were fully decomposed, they'd dig up the bones and store them, freeing up cemetary space
nahtnam has quit [Quit: nahtnam left! You can find him @ http://nahtnam.com]
<waxjar> they still do that where i live
cesurasean has joined #ruby
WormDrink has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
* pontiki nods
froggy__ has joined #ruby
<Tohsig> The conversation just changed dramatically, but it's true here too :P
<seydar> tohsig, waxjar: where do you live?
<waxjar> netherlands
poulet_a has quit [Quit: Quitte]
wallerdev has joined #ruby
<Tohsig> seydar: Guatemala
tkuchiki has joined #ruby
mikedugan has quit [Disconnected by services]
_mikedugan is now known as mikedugan
froggy_ has quit [Ping timeout: 255 seconds]
DEA7TH has quit [Ping timeout: 250 seconds]
mdugan_ has joined #ruby
CoffeeDrivenC0de has joined #ruby
bmurt has joined #ruby
cesurasean has quit [Ping timeout: 250 seconds]
cesurasean has joined #ruby
Sonny|3oy has quit [Quit: Leaving]
m8 has quit [Quit: Sto andando via]
tkuchiki has quit [Ping timeout: 246 seconds]
chipotle has joined #ruby
axilla has joined #ruby
krisquigley has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
mary5030 has joined #ruby
codebrah has joined #ruby
postmodern has joined #ruby
<shevy> Uranus
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Matadoer has quit [Ping timeout: 272 seconds]
mkaesz has quit [Remote host closed the connection]
Matadoer has joined #ruby
WormDrink has joined #ruby
blackmesa has joined #ruby
bmurt has quit []
mojo619 has quit [Quit: mojo619]
toastynerd has quit [Read error: No route to host]
toastyne_ has joined #ruby
<dorei> anyone experienced with eventmachine?
InhalingPixels has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
heftig has joined #ruby
<dorei> I'm having a weird situation where unbind is called with an argument and thus I get " wrong number of arguments (1 for 0) (ArgumentError) "
jonr22 has joined #ruby
ringarin has joined #ruby
ringarin has quit [Client Quit]
CoffeeDrivenC0de has left #ruby [#ruby]
chipotle has quit [Quit: cya]
echevemaster has quit [Read error: Connection reset by peer]
Spami has joined #ruby
Tohsig has left #ruby [#ruby]
blackmesa has quit [Quit: WeeChat 1.0]
axilla has quit [Ping timeout: 245 seconds]
philcris_ has joined #ruby
chars6 has joined #ruby
axilla has joined #ruby
whyy has joined #ruby
<chars6> hi, i am very new to ruby
<chars6> i am trying to build a project (also using a gem called slinky) and i am getting the error
<chars6> Compilation failed on main.sass: uninitialized constant Sass::Engine
<chars6> the sass gem is installed. what am i doing wrong?
newUser1_ has joined #ruby
mikedugan has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
philcris_ has quit [Ping timeout: 255 seconds]
whyy has quit [Ping timeout: 250 seconds]
spider-mario has quit [Remote host closed the connection]
dioms_ has quit [Ping timeout: 240 seconds]
newUser1_ has quit [Ping timeout: 250 seconds]
dioms_ has joined #ruby
kaspertidemann has quit []
bmurt has joined #ruby
gregf has joined #ruby
Symbiosisz has quit [Remote host closed the connection]
axilla has quit [Ping timeout: 260 seconds]
axilla has joined #ruby
seydar has quit [Ping timeout: 260 seconds]
bmurt has quit [Client Quit]
newUser1234 has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has joined #ruby
newUser1234 has quit [Read error: Connection reset by peer]
Akagi201_ has joined #ruby
Akagi201 has quit [Read error: Connection reset by peer]
klaut has quit [Remote host closed the connection]
mkaesz has joined #ruby
cesurasean has quit [Ping timeout: 260 seconds]
fgo has quit [Ping timeout: 264 seconds]
Wolland has quit [Remote host closed the connection]
newUser1234 has joined #ruby
Wolland has joined #ruby
mkaesz has quit [Ping timeout: 246 seconds]
timonv_ has quit [Remote host closed the connection]
klmlfl has quit [Quit: klmlfl]
Lewix has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
newUser1234 has quit [Ping timeout: 245 seconds]
Wolland has quit [Ping timeout: 250 seconds]
phoo1234567 has quit [Quit: Leaving]
cesurasean has joined #ruby
sshaw has joined #ruby
nobitanobi has joined #ruby
nat2610 has joined #ruby
<nobitanobi> hihi
<sshaw> what's the state of ruby-electric.el and ruby-insert-end?
kaspertidemann has joined #ruby
newUser1234 has joined #ruby
<sshaw> the ruby repo comes with ruby-mode 0.9 which has ruby-insert-end
<sshaw> but emacs ships with ruby-mode 1.2 which does not have it
codebrah has quit [Quit: Computer has gone to sleep.]
<zenspider> sshaw: ruby-mode w/ emacs is the "official" one now. there IS some divergance between the two, but it should be considered the canonical one
patrick99e99 has joined #ruby
<zenspider> as far as electric goes... I dunno. I don't use electric modes
mordocai` is now known as mordocai
tylerkern has joined #ruby
Wolland has joined #ruby
<sshaw> zenspider: would be nice to get this fixed (finally), the ruby-electric has been broken since '08, maybe
newUser1_ has joined #ruby
newUser1234 has quit [Ping timeout: 260 seconds]
tylerkern has quit [Client Quit]
patrick99e99 has quit [Ping timeout: 250 seconds]
<nobitanobi> >> x = 1 if false ; p x
<eval-in> nobitanobi => nil ... (https://eval.in/180061)
zenojis has quit [Ping timeout: 240 seconds]
shevy has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
<sshaw> I'll take it to emacs land...
<nobitanobi> >> wow. So.. The Ruby interpreter allocates memory for all the variables?
<eval-in> nobitanobi => /tmp/execpad-983de70fc049/source-983de70fc049:2: syntax error, unexpected tCONSTANT, expecting keyword_do or '{' or '(' ... (https://eval.in/180062)
<nobitanobi> geez
<zenspider> sshaw: have you tried the ruby-electric in the package system?
<zenspider> http://melpa.milkbox.net/#/%20ruby-electric
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
<zenspider> strip that %20... dunno why it is there
codebrah has joined #ruby
<zenspider> last updated 20131217.33
Spami has quit [Quit: This computer has gone to sleep]
axl_ has quit [Client Quit]
Wolland has quit [Remote host closed the connection]
newUser1_ has quit [Ping timeout: 245 seconds]
Wolland has joined #ruby
<sshaw> which is not in ruby-mode 1.2 which is bundled with emacs
<zenspider> if it is clean & easy, I'd steal ruby-insert-end and put it in your own emacs setup
<sshaw> been doing this: https://gist.github.com/stuartsierra/1212314 for some time
<sshaw> he he, yah that's what I do, but just installed a new emacs version and noticed that it *still* wasn't fixed
cesurasean1 has joined #ruby
icebourg has quit []
r_s has quit [Ping timeout: 244 seconds]
<zenspider> it isn't a problem in emacs' ruby-mode, since it doesn't ship ruby-electric. this is on you for mixing the two
zenojis has joined #ruby
Takle has quit [Remote host closed the connection]
codebrah has quit [Quit: Computer has gone to sleep.]
Wolland has quit [Ping timeout: 272 seconds]
newUser1234 has joined #ruby
<zenspider> if this is a problem anywhere, it is with ruby-electric being published as a package at all, instead of forked and patched to work against emacs' ruby-mode
<zenspider> you'd have to take that up to the package maintainer, or do it yourself
cesurasean has quit [Ping timeout: 245 seconds]
<zenspider> again, I don't use electric. it doesn't provide me anything worthwhile
kaspertidemann has quit []
<sshaw> yes, with yas there's not much, except auto closing object literals and quotes
techietrash has joined #ruby
<zenspider> meh. never been a problem for the 14 years I've been doing ruby in emacs. *shrug*
<sshaw> wasn't sure were ruby-electric lived, considering ruby-mode's version w/ emacs and its version ruby repo
mkaesz has joined #ruby
newUser1234 has quit [Ping timeout: 245 seconds]
<sshaw> well my typing skills appreciate it...
shevy has joined #ruby
newUser1234 has joined #ruby
ctp has quit [Quit: Textual IRC Client: www.textualapp.com]
chipotle has joined #ruby
krisquigley has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
__main__ has joined #ruby
mkaesz has quit [Ping timeout: 240 seconds]
jonr22 has quit [Ping timeout: 264 seconds]
gilest has joined #ruby
timonv_ has joined #ruby
newUser1_ has joined #ruby
newUser1234 has quit [Ping timeout: 260 seconds]
Wolland has joined #ruby
St_Marx has joined #ruby
RustyShackleford has joined #ruby
jottr has joined #ruby
Lewix has joined #ruby
newUser1234 has joined #ruby
newUser1_ has quit [Ping timeout: 272 seconds]
crdprink2 has joined #ruby
parduse has quit []
crdpink has quit [Ping timeout: 272 seconds]
parduse has joined #ruby
nobitanobi has joined #ruby
Matadoer has quit [Ping timeout: 272 seconds]
Matadoer has joined #ruby
newUser1_ has joined #ruby
<asteve> I'm trying to understand output from pp, when pp'ing an array what is [...], ?
newUser1234 has quit [Ping timeout: 272 seconds]
<asteve> I know it's not nil, and I don't believe it's an empty array
davispuh has quit [Ping timeout: 245 seconds]
jhass is now known as jhass|off