<Areessell>
I'm on Yosemite and `/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby --version` outputs `ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]` for me
<patrickholmes>
hyosimetie
droidburgundy has joined #ruby
<patrickholmes>
yosimite
sargas has quit [Quit: This computer has gone to sleep]
<patrickholmes>
irb 2.0.0
St_Marx has joined #ruby
<Areessell>
Ok?
<Areessell>
Soo, yeah. 2.0
<bradland>
doh
shuber_ has quit [Remote host closed the connection]
<bradland>
forgot the ./ when execing
<apeiros_>
patrickholmes: why do you ask?
Crazy_Atheist has joined #ruby
<bradland>
I get this as well: ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
<patrickholmes>
ei was wondering what was the diffrence between irb and latest ruby you can get off the internet?
<Areessell>
Oh, security patches and stuff. You can find a list of updates online
<bradland>
i only rely on the system ruby for things that are in Core and Stdlib
icebourg has quit []
pietr0 has quit [Quit: pietr0]
<bradland>
as in, i’ve been known to ship some basic utility scripts to end-users who are competent enough to type `munge somefile.txt` in to a terminal
<patrickholmes>
can u referme to a link were i can download everything i need for the latest ruby …..anybody?
Vivekananda has quit [Ping timeout: 240 seconds]
<bradland>
i recommend using a Ruby manager like RVM or rbenv
<patrickholmes>
awere can i find that manger
<Areessell>
I use this new fangled contraption that actually searches all of the interconnected websites out there
<patrickholmes>
manerger
<bradland>
i’m with Areessell. you should google them.
<patrickholmes>
Manager
<patrickholmes>
Okay
<bradland>
the likelihood of yet another RVM vs rbenv debate breaking out goes up with every word we type.
<bradland>
and nobody wants that :)
<Areessell>
Clearly RVM
<Areessell>
=p
<bradland>
shot heard ‘round the world....
<bradland>
lol
nicolastarzia has joined #ruby
AlexRussia has joined #ruby
<shevy>
there is no winner if two losers fight one another
kirun has quit [Quit: Client exiting]
cantonic has joined #ruby
<patrickholmes>
What Willthey supply me with
<Areessell>
Ruby
<bradland>
patrickholmes: the purpose of a Ruby manager is to allow you to run multiple versions of ruby
<bradland>
which is a common desire amongst ruby developers
<bradland>
ruby comes with something called rubygems
beef-wellington has joined #ruby
<bradland>
rubygems allow you to download packages of code
<patrickholmes>
ok….
<bradland>
if you don’t use a ruby manager, all this gets installed to your system in a way that is difficult to remove if you want/need to start over or change at some point
<Areessell>
Why even go through explaining this?
<patrickholmes>
and i chance download these gyms with I RB
<Areessell>
See?
<bradland>
hahaha
<patrickholmes>
**cant
<bradland>
no, IRB is not for installing gems
<bradland>
IRB is called a REPL
stunder has quit [Quit: Screw you guys I'm going home]
<bradland>
aaaaand there goes 20 minutes of my life
agrinb has joined #ruby
<shevy>
I am just in for the comments
<shevy>
"naughty ninnie"
Menorah has quit [Quit: This computer has gone to sleep]
<shevy>
oh it is written with trailing y ... ninny
<shevy>
they should redo that and take prominent japanese folks
<shevy>
like matz!
dtordable has quit [Remote host closed the connection]
<Wolfram74>
so I did a benchmark-ips run, and I'm not sure how to interpret this output http://dpaste.com/1F9JC9M
GaryOak_ has quit [Remote host closed the connection]
<Wolfram74>
is the iterations / 100 ms compared with iterations / second different because of ramp up time?
bigkevmcd has quit [Ping timeout: 252 seconds]
adriancb has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 258 seconds]
St_Marx has quit [Quit: WeeChat 1.0.1]
<bradland>
Wolfram74: i wouldn’t think so, because I would assume that both measurements are calculated using the total execution time and total number of iterations, rather than the first 100ms, which would be impacted by ramp up time.
St_Marx has joined #ruby
<bradland>
also, i have no idea why they don’t convert directly
Dopagod has joined #ruby
<Wolfram74>
but the ratios are clearly different, because i/100ms has ratio of like, 3, 3.5
<Vesta4>
Hi. Is it possible to install ruby and rails without an internet connection? I'm running Ubuntu in VirtualBox and can't hook up to the internet through wi-fi.
pengin has quit [Ping timeout: 244 seconds]
wmute has joined #ruby
<apeiros_>
Vesta4: should be possible. I couldn't tell you how, though.
<shevy>
ah
<apeiros_>
but I'd bet there are guides. plenty of prod machines which are not allowed to have net or compilers
<shevy>
so those strange 0xb numbers come from (object_id << 1).to_s(16) ?
msmith has quit [Remote host closed the connection]
<apeiros_>
shevy: yes
<shevy>
cool
DadoCe has joined #ruby
<KLVTZ>
Vesta4: you can't connect via virtualbox to the internet?
spastorino has quit [Quit: Connection closed for inactivity]
<Vesta4>
apeiros_ - I've been looking online for guides, but haven't found anything (or, the google results are not things that I understand, being a little green to ruby and ubuntu)
<KLVTZ>
Vesta4: have you selected a NAT connection in the hardware section of your vbox?
<Vesta4>
KLUTZ - I've been working in the vbox channel for a couple hours now trying to figure it out. No luck.
<Vesta4>
Yes.
<KLVTZ>
Hmm, are you on a regular connection. Laptop and connecting to a wirless router?
sargas has quit [Quit: This computer has gone to sleep]
<KLVTZ>
sorry if my questions seem redundant in comparison to the other channel, just trying to get a better idea
duggiefresh has joined #ruby
<Vesta4>
Yeah, no problem.
<KLVTZ>
Couldn't he grab the source package and then scp the stuff onto the vbox?
<apeiros_>
Vesta4: rvm is one of the popular tools used to install ruby. especially concurrent rubies of different versions.
<KLVTZ>
so long as you have a broadcast address
PeterBoy has quit [Quit: Bye Bye]
<Vesta4>
In fact, I'm only installing on ubuntu in a vm because I couldn't get rails to work on windows 7, and people here strongly suggested the vm approach.
hashpuppy has joined #ruby
DadoCe has quit [Ping timeout: 245 seconds]
<Vesta4>
I'll take a look at that offline link.
LouisRoR has quit []
<KLVTZ>
what issues where you facing in windows 7?
<KLVTZ>
God, it's been forever since I worked in W7, made the switch to ubuntu and man, my dev environment became so much easier lol
<shevy>
don't tell that to jidar KLVTZ ;)
yfeldblum has quit [Ping timeout: 258 seconds]
barderer has quit [Ping timeout: 264 seconds]
Vesta4_ has joined #ruby
mxweas has joined #ruby
LouisRoR has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karmatr0n has joined #ruby
kenneth has joined #ruby
tokik has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
Vesta4 has quit [Ping timeout: 265 seconds]
CrazyM4n has joined #ruby
Vesta4_ is now known as Vesta4
<Vesta4>
The second step on that "RVM in offline mode" is "Download the rvm tarball: curl -sSL https:yada.yada/yada -o rvm-stable.tar.gz"
<Vesta4>
I understand that I'll need to download rvm and get it onto the offline machine, but I'm not sure what the Windows equivalent of that curl command is.
hashpuppy has quit [Quit: Computer has gone to sleep.]
rotor` has quit [Ping timeout: 258 seconds]
jlast has quit [Remote host closed the connection]
kenneth has quit [Client Quit]
kenneth has joined #ruby
Musashi007 has quit [Quit: Musashi007]
jenrzzz has joined #ruby
mxweas has quit [Ping timeout: 258 seconds]
olivier_bK has quit [Ping timeout: 265 seconds]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor has joined #ruby
Guest26597 has joined #ruby
Musashi007 has joined #ruby
luizbafilho has quit [Ping timeout: 244 seconds]
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
Mia has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.0.1]
<shevy>
yeah the RVM guys probably assumed that nobody uses windows
pandaant has joined #ruby
havenwood has joined #ruby
crueber has quit [Quit: Leaving.]
<shevy>
if I have class Person; end ... can I use a module called Gender, and if I include it, I could also add an instance variable called @gender into class Person?
fandi_ has quit [Remote host closed the connection]
Stalkr_ has quit [Quit: Leaving...]
Spami has quit [Quit: This computer has gone to sleep]
devoldmx33 has quit [Ping timeout: 258 seconds]
eka has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
conniemj_ has quit [Ping timeout: 258 seconds]
djbkd has quit [Quit: My people need me...]
conniemj_ has joined #ruby
kobain has joined #ruby
agrinb has joined #ruby
Vesta4 has left #ruby [#ruby]
mroach has joined #ruby
echooo has joined #ruby
apeiros_ has quit [Remote host closed the connection]
existensil has quit [Ping timeout: 250 seconds]
havenwood has quit [Ping timeout: 240 seconds]
apeiros_ has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
robustus has quit [Ping timeout: 250 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
robustus has joined #ruby
kenneth has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
marr has quit [Ping timeout: 245 seconds]
livingstn has quit [Ping timeout: 258 seconds]
AlexRussia has joined #ruby
wmute has quit [Quit: Leaving]
rshetty has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
kenneth has quit [Client Quit]
mloveless has joined #ruby
kenneth has joined #ruby
checkit has joined #ruby
jamesaxl|2 has quit [Remote host closed the connection]
russt has quit [Quit: russt]
supersym has quit [Ping timeout: 240 seconds]
<bricker`work>
shevy: sure, why not?
AlexRussia has quit [Ping timeout: 272 seconds]
<shevy>
hmm
kenneth has quit [Client Quit]
<shevy>
cool
kenneth has joined #ruby
<godd2>
shevy just make manual getters and setters in the Gender module
<godd2>
and every instance of Person will have those available
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<godd2>
apparently attr_accessor works just fine inside modules
<shevy>
cool
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nicolastarzia has quit [Ping timeout: 245 seconds]
davedev24_ has quit [Ping timeout: 244 seconds]
echooo has quit [Remote host closed the connection]
echooo has joined #ruby
brahmadpk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adriancb has quit [Remote host closed the connection]
Pattt has quit [Ping timeout: 258 seconds]
adriancb has joined #ruby
agrinb has joined #ruby
s00pcan_ has joined #ruby
mjmac has quit [Ping timeout: 258 seconds]
apurcell has quit [Quit: Be back later ...]
rockdon has quit [Ping timeout: 258 seconds]
davedev24_ has joined #ruby
Wolfram74 has quit [Quit: Leaving...]
zorak8 has quit [Ping timeout: 244 seconds]
Guest76 has joined #ruby
amclain has quit [Quit: Leaving]
adriancb has quit [Ping timeout: 256 seconds]
xenomorph is now known as {xenomorph}
agrinb has quit [Ping timeout: 258 seconds]
rhunter has joined #ruby
{xenomorph} is now known as xenomorph
braincra- has quit [Quit: bye bye]
rjhunter has quit [Ping timeout: 258 seconds]
decoponio has joined #ruby
pen has quit []
pen has joined #ruby
gsd has joined #ruby
pika_pika has quit [Ping timeout: 258 seconds]
braincrash has joined #ruby
brahmadpk has joined #ruby
phutchins has quit [Ping timeout: 258 seconds]
doritostains has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Quit: Leaving...]
phutchins has joined #ruby
adriancb has joined #ruby
sargas has joined #ruby
sargas has quit [Client Quit]
nb_bez___ has quit [Quit: Connection closed for inactivity]
mjmac has joined #ruby
rockdon has joined #ruby
mgberlin has quit [Read error: Connection reset by peer]
russt has quit [Quit: russt]
mgberlin has joined #ruby
devoldmx has joined #ruby
tzero has quit [Quit: WeeChat 0.4.3]
armyriad has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
Guest64 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mleung has joined #ruby
mleung has quit [Client Quit]
barderer has joined #ruby
unclestoobing has joined #ruby
mleung has joined #ruby
<unclestoobing>
Hi everyone
<unclestoobing>
quick question - I'm starting to learn ruby and was just wondering about the best path forward. Anyone have a recommendation on the best way for me to start to learn? Thanks!!
tjohnson has joined #ruby
<_seanc_>
There are a few sites that offer lesson: codecademy.com/en/tracks/ruby,rubymonk.com, and tryruby.org are the ones I know of.
jpstokes has quit [Remote host closed the connection]
<Algebr>
I would say give yourself problems that are slightly above your current level, hard but achievable given effort.
mxweas has quit [Ping timeout: 265 seconds]
n008f4g_ has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
mleung has quit [Quit: mleung]
mgberlin_ has joined #ruby
arup_r has quit [Quit: Leaving.]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<unclestoobing>
okay thank you for the feedback!
mgberlin has quit [Ping timeout: 245 seconds]
unclestoobing has quit [Quit: Page closed]
gauravagarwalr has joined #ruby
sevenseacat has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
Menorah has quit [Quit: This computer has gone to sleep]
mleung has joined #ruby
Joufflu has joined #ruby
Scripore has quit [Ping timeout: 245 seconds]
pu22l3r has joined #ruby
kotk_ has joined #ruby
kotk has quit [Ping timeout: 252 seconds]
russt has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
mleung has quit [Quit: mleung]
mgberlin_ has quit [Read error: Connection reset by peer]
rockdon has quit [Ping timeout: 258 seconds]
mgberlin has joined #ruby
ItSANg___ has quit [Quit: Leaving...]
Algebr has quit [Remote host closed the connection]
banister has joined #ruby
kiyote23 has quit [Remote host closed the connection]
rockdon has joined #ruby
karmatr0n has joined #ruby
mgberlin has quit [Read error: Connection reset by peer]
mgberlin has joined #ruby
<parabolize>
shevy: I don't think the conversion to UTF-8 is finished. 0x80.chr converts to ASCII-8BIT. That ASCII-8BIT string won't convert to UTF-8 with String#encode('UTF-8'). My understanding (Based on The Well Grounded Rubyist) is anything after 0x7F should automatically convert to UTF-8.
s00pcan_ has quit [Ping timeout: 245 seconds]
agrinb has joined #ruby
shuber_ has quit [Remote host closed the connection]
Takle has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Quit: Leaving.]
shuber_ has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
rohit_ has joined #ruby
Takle has quit [Ping timeout: 250 seconds]
Musashi007 has quit [Quit: Musashi007]
anaeem1 has joined #ruby
JBreit has joined #ruby
basex has joined #ruby
JBreit has left #ruby [#ruby]
anaeem1 has quit [Remote host closed the connection]
ItSANgo has joined #ruby
mgberlin has quit [Remote host closed the connection]
shuber_ has quit [Ping timeout: 250 seconds]
IrishGringo has joined #ruby
icebourg has quit []
anafrogue has quit [Remote host closed the connection]
<parabolize>
err.. bad example. 0x80 isn't defined in either. Use 0xA1. 0xA1.chr.encode('UTF-8') #=> UndefinedConversionError: "\xA1" from ASCII-8BIT to UTF-8
<parabolize>
pretty sure that should work..
icedp has quit [Ping timeout: 245 seconds]
dwn has quit [Ping timeout: 264 seconds]
Guest76 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thumpba has joined #ruby
arescorpio has quit [Excess Flood]
AlexRussia has joined #ruby
jack_rabbit has joined #ruby
gauravagarwalr has quit []
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
mary5030 has quit [Remote host closed the connection]
claptor has quit [Remote host closed the connection]
mary5030 has joined #ruby
claptor has joined #ruby
barderer has quit [Ping timeout: 240 seconds]
bline79 has quit [Ping timeout: 256 seconds]
bline79 has joined #ruby
basex has quit [Remote host closed the connection]
yfeldblum has joined #ruby
adriancb has quit [Ping timeout: 255 seconds]
mary5030 has quit [Ping timeout: 245 seconds]
pen has quit [Remote host closed the connection]
thumpba has quit [Remote host closed the connection]
russt has quit [Quit: russt]
shuber_ has joined #ruby
kiyote23 has joined #ruby
tus has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 250 seconds]
mleung has joined #ruby
rohit_ has quit [Quit: Leaving]
thumpba has joined #ruby
phutchins has quit [Ping timeout: 250 seconds]
Musashi007 has joined #ruby
pen has joined #ruby
shuber_ has quit [Ping timeout: 250 seconds]
kenneth has joined #ruby
gauravagarwalr has joined #ruby
gauravagarwalr has left #ruby [#ruby]
thumpba has quit [Ping timeout: 240 seconds]
gauravagarwalr has joined #ruby
tzero has joined #ruby
karmatr0n has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
Musashi007 has quit [Client Quit]
pwnz0r has joined #ruby
nicolastarzia has joined #ruby
byprdct has quit [Ping timeout: 256 seconds]
Musashi007 has joined #ruby
x1337807x has joined #ruby
nicolastarzia has quit [Ping timeout: 272 seconds]
thumpba has joined #ruby
agrinb has joined #ruby
TheRinger_ has quit [Read error: Connection reset by peer]
anaeem1_ has quit [Remote host closed the connection]
sorc has quit [Remote host closed the connection]
alex88 has joined #ruby
ooesili has quit [Quit: leaving]
yo61 is now known as yo61_
nicolastarzia has joined #ruby
kasisnu has joined #ruby
ton31337 has left #ruby [#ruby]
Timgauthier has joined #ruby
TPBallbag has joined #ruby
mengu has quit [Remote host closed the connection]
<Timgauthier>
merry christmas!
asmodlol has quit [Quit: Leaving]
<gr33n7007h>
ho ho ho!
agrinb has joined #ruby
nicolastarzia has quit [Ping timeout: 244 seconds]
<gr33n7007h>
bah humbug
basex has joined #ruby
TPBallbag has quit [Remote host closed the connection]
devdazed has joined #ruby
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<gr33n7007h>
Is there a simpler approach to removing commented lines #=> File.readlines('/usr/share/wordlists/nmap.lst').reject{|l| l.start_with?('#') }
agrinb has quit [Ping timeout: 258 seconds]
<certainty>
that's pretty simple no?
<godd2>
simpler? maybe not. more effiecient? yes. don't forget that readlines reads the entire file into memory
basex has quit [Ping timeout: 240 seconds]
rshetty has quit [Ping timeout: 244 seconds]
<gr33n7007h>
Yes, more effecient, not simpler
<gr33n7007h>
my bad
<godd2>
as for simpler, *personally* I would name the block variable line, not l
iamjarvo has joined #ruby
fandi has joined #ruby
<apeiros_>
File.read(path).gsub(/^\#.*\n/, '')
<godd2>
while not technically simpler, it would read better (to me)
<apeiros_>
not simpler, but shorter
lesnik_ has quit [Quit: Lost terminal]
<apeiros_>
oh, results in a string, not an array of lines.
<godd2>
gr33n7007h also, don't forget that if that file was a ruby file, you'd have a bug
<godd2>
# can show up at the start of a line and that line isn't a comment
<gr33n7007h>
godd2, ah, got ya
<godd2>
also, it doesn't remove comments which start after some code, but you may not worry about those
<gr33n7007h>
apeiros_, yes thanks, thats better just added a split to the end
<certainty>
letting it appear elsewhere complicates things of course as there might be legal places for that token without it being considered a comment character
<gr33n7007h>
certainty, it's just a wordlist :)
<gr33n7007h>
but I get your point
<certainty>
i see i see. And i suspect none of the words can start with a #?
behrz has quit [Quit: Leaving]
<gr33n7007h>
well I say wordlist it's actually numbers only :)
<certainty>
then you could probably reject everything that is not a number
<certainty>
where a number can be complicated to recognize
<certainty>
depending on the number you accept
<certainty>
numbers
<certainty>
the point is. maybe whitelisting fits the bill better here
davedev24_ has quit [Ping timeout: 240 seconds]
<certainty>
i don't know i'm just thinking out loud
<godd2>
I suspect that gr33n7007h created the file and knows that the only exception is a possible # in the beginning of the line
<certainty>
:)
mostlybadfly has joined #ruby
<godd2>
but yes your method is good for extension (what if a word cant start with something else?)
<certainty>
fun fact. the parser that is used in nagios to parse the configuration used to explode when the comment character didn't start at the very beginning of the line. By explode i mean it generated a parse-error
pika_pika has joined #ruby
<godd2>
An error to be dreaded for the ages
uber_hulk has joined #ruby
postmodern has quit [Quit: Leaving]
Skwallinux has quit [Remote host closed the connection]
<certainty>
it's annoying at the least
uber_hulk has left #ruby [#ruby]
Xeago has quit [Remote host closed the connection]
<bradland>
because i’m not one to prevent someone from shooting their face off
<certainty>
haha
dumdedum has quit [Quit: foo]
<DefV>
:-)
oleo__ has quit [Quit: Verlassend]
reinaldob has quit [Remote host closed the connection]
<soahccc>
Anyone experienced with portaudio? I would like to loop over all devices (instead of using the default one) but it all just uses ffi somehow and I don't understand how to understand this :D
<bradland>
FWIW, this is how sprockets (the Rails asset pipeline) works; by using a JS runtime for compressing JS files.
<bradland>
We’re still on Rails 3, and I know it’s changed in 4, but we use therubyracer for our JS runtime.
nateberkopec has joined #ruby
<livcd>
gr33n7007h: shevy it is a directory
mengu has joined #ruby
jerius has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
<bradland>
whoever decided to show only the FQDN in the safari 8.0 address bar is a FUCKING moron
<bradland>
sry /vent
<ponga>
bradland: whoever works for developing safari is fucking moron from the beginning
<ponga>
i only use it for the sake of Keychain
<shevy>
livcd that is weird, then that error must be wrong
<ponga>
perhaps i should just swift from safari to firefox on ALL my devices
<bradland>
soahccc: yeah, i’m digging in to the portaudio docs, and it looks to me like you’re probably going to want to approach this a little differently, because while you’re writing Ruby, you’re not working with a Ruby API.
<bradland>
this means that the docs are structured for the native language (C).
tfitts has joined #ruby
<bradland>
i wouldn’t expect the normal convenience of Enumerable-like objects that you can iterate
phutchins has quit [Ping timeout: 255 seconds]
<soahccc>
I was afraid that this is the case
<bradland>
you’re going to want to understand how someone who uses portaudio would accomplish that task, then “port” that over to Ruby
<bradland>
it’s going to look really ugly, because the wrappers look really thin
<soahccc>
I have no idea what line 508 does but probably exactly what I want
dtordable has quit [Remote host closed the connection]
<soahccc>
so I just need to do that for all devices :) easy in theory
<bradland>
line 508 writes a sine wave with the frequency 440 Hz to the device
<bradland>
which will generate a hum
amaltson has quit [Client Quit]
supersym has joined #ruby
paulfm has joined #ruby
msmith has joined #ruby
Akuma has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 264 seconds]
jleishman has joined #ruby
<soahccc>
Fancy math ;) I just need any sort of noise. I want a little helper tool which plays a sound to all devices and does something visual so that I can sync up several sources more easily
<shevy>
certainty hands out a lot of permissions today
pu22l3r has quit [Read error: Connection reset by peer]
<certainty>
shevy: it's christmas time you know
<shevy>
and
<shevy>
no sorry
<shevy>
I meant to type:
<shevy>
yes
josephndenton has quit [Ping timeout: 256 seconds]
Guest36660 has joined #ruby
hamakn has joined #ruby
mjuszczak has joined #ruby
<soahccc>
bradland: well looping works but if I try to play something on all of them at once coreaudio crashes :(
<bradland>
hahaha
<bradland>
sorry, hate to laugh
<bradland>
but, that’s kind of funny
<bradland>
welcome to systems programming
<bradland>
everything is covered in infected blood and nails
dtordable has joined #ruby
dtordable has quit [Changing host]
dtordable has joined #ruby
uber_hulk has joined #ruby
robertt_dex has joined #ruby
<bradland>
not sure what your goals are, but i would loop over the devices, playing whatever test you need to play, and `sleep 1` inbetween
nicolastarzia has joined #ruby
shredding has joined #ruby
Takle_ has joined #ruby
Guest36660 is now known as santacat
santacat has quit [Changing host]
santacat has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shredding has quit [Client Quit]
Takle has quit [Ping timeout: 258 seconds]
agrinb has joined #ruby
nicolastarzia has quit [Ping timeout: 250 seconds]
amaltson has quit [Remote host closed the connection]
santacat is now known as Snowstormer
<soahccc>
bradland: well the purpose was to sync stuff where a delay doesn't come in handy :) I wonder why there is no app for that (or I'm just to stupid to find it)
josephndenton has joined #ruby
Snowstormer is now known as santacat
last_staff has quit [Quit: running for food]
<soahccc>
Or there are just to many ios apps for virtual clapperboards
dumdedum has joined #ruby
<bradland>
playing to multiple audio devices simultaneously in a way that doesn’t have audio-sync issues is actually a “hard problem"
blackoperat has quit [Ping timeout: 245 seconds]
<bradland>
as in, most generic computer audio systems can’t do it
Channel6 has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland>
our ears are very sensitive to phase sync issues
tobago has joined #ruby
<bradland>
that’s why we can hear intonation (or lack there of)
tobago has quit [Remote host closed the connection]
<bradland>
normally, the splitting of the audio signal is handled after the audio generation device
<bradland>
can you tell me a little bit about what you’re trying to do?
Macaveli has quit [Ping timeout: 265 seconds]
<soahccc>
hmm but I guess it will be more accurate than my guessing in FCP :D
_beechnut has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
<bradland>
based on what i know so far, you want to play audio on multiple devices, but i don’t know what the devices are, and why you want to do that
robertt_dex has quit [Remote host closed the connection]
the_f0ster has joined #ruby
<bradland>
some context can help tremendously in problem solving
robertt_dex has joined #ruby
<bradland>
and i fancy myself a master problem solver :)
reinaldob has joined #ruby
amaltson has joined #ruby
<soahccc>
bradland: Thinking about it, it wouldn't even help - my idea. If I record stuff I have a lot of individual tracks which are not started at the same time due to me hijacking the sound from several applications. Playing a sound on my devices wouldn't help there :(
adriancb has joined #ruby
<bradland>
i’d start by mixing your audio to a single track
shortCircuit__ has quit [Remote host closed the connection]
<bradland>
soahccc: another cool utility for these types of projects is called Soundflower. it’s a virtual audio bus. you can direct your applications send audio to Soundflower, then record off of Soundflower’s output, and everything will be mixed to one track.
<soahccc>
it's intentionally separated... On windows I couldn't find a way but on Mac there is Audio Hijack Pro. I would be screwed if I just had a single track. Sometimes I even get audio from others to be synced somehow
Takle_ has quit [Ping timeout: 244 seconds]
<bradland>
so you’re trying to capture audio from the device?
<bradland>
because it sounded like you were trying to write to the device
kiyote23 has joined #ruby
<soahccc>
yeah that was the idea but it turns out that it wouldn't work since I capture resp. "hijack" the audio before it hits any device
<bradland>
so it sounds like you have multiple audio recordings (in files?), and you want to “sync” them so they all start at the same time. is that correct?
adriancb has quit [Read error: Connection reset by peer]
<bradland>
yeah, you have to break this problem down in to parts
adriancb has joined #ruby
<bradland>
the capture part
<bradland>
the storage part
mrmargolis has joined #ruby
<bradland>
the sync/mix part
<bradland>
the final output part
kiyote23 has quit [Client Quit]
<bradland>
for the capture part, you can use Audacity to capture system audio on Windows
rbennacer has joined #ruby
kiyote23 has joined #ruby
FooMunki has joined #ruby
rbennacer has quit [Remote host closed the connection]
<soahccc>
I guess what I want is an (proper) virtual equivalent to a clapperboard. I would need an application that would start all the recordings (even remotely) at the same time. I guess I just do it as I did it ever since... Moving the tracks around till it fits. We have some tricks but they are weird
mary5030 has joined #ruby
Kricir has joined #ruby
max96at|off is now known as max96at
ejnahc has quit [Remote host closed the connection]
sigurding has joined #ruby
ejnahc has joined #ruby
<dtordable>
shevy: hello, sir
<soahccc>
bradland: I was able to do some trivial tasks on windows with VirtualAudioCable but due to the fact that some applications don't stick to original default device or/and don't have options to specify devices it's a pain in the arse. If you find me an equivalent to Audio Hijack for windows I will love you! :D
<shevy>
dtordable go learn ruby man
claudiuinberlin has joined #ruby
blackoperat has joined #ruby
<bradland>
soahccc: i see, so you need an audio/visual cue on the system so you can sync the various audio/video streams later.
Guest64 has joined #ruby
<bradland>
why do you need the audio to play on devices though? are you recording in the room with a camera?
<bradland>
FYI, no one does this: “I would need an application that would start all the recordings (even remotely) at the same time.”
<bradland>
they don’t do it because you can’t fix the speed of light problem
<dtordable>
shevy: I have to learn how to hand write first!
<soahccc>
bradland: no, in that case it would be simple by using a clapperboard. The idea was to play a "piep" on all outputs and inputs just everywhere make a "piep" and in addition a visual thing on the screen(s). With that method I could even sync any (face)cams by pointing it onto the screen while syncing.
kiyote23 has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
<bradland>
ok, that makes sense
<bradland>
but why do you need it to play on “all outputs”
<bradland>
do you have multiple sound cards in these systems?
droidburgundy has joined #ruby
<soahccc>
bradland: well even the internet lag will be more accurate than me, don't you think? And this page has a patent for reducing the "lag" to 5µs or something => http://www.uhrzeit.org/atomuhr.php
zB0hs has joined #ruby
econerd4ever has joined #ruby
<bradland>
heh
<bradland>
beware of anyone promising to reduce your latency
<bradland>
you can’t fix the last mile
<soahccc>
bradland: that was my mistake, since I'm capturing multiple applications (+mic) the device doesn't help me here
<bradland>
right
<bradland>
you want the piep to appear in all recordings (audio and video)
rshetty has joined #ruby
kiyote23 has joined #ruby
<bradland>
problem is, you can’t “play” to an application
<bradland>
unless that application allows you to provide an auxiliary input
<bradland>
for example, if you’re using audio hijack to record audio from an application, the “piep” won’t appear in that application’s audio stream, no matter what device you play it on.
<bradland>
if you play a piep to the device, you’re already downstream from your capture, so it won’t show up in the recording
nclbr has quit [Client Quit]
<soahccc>
yep so I think I have to do it manually :( But we have tricks. In case of games we smash the space key so that a jump can be synced with the noise of a dying keyboard in the mic input :)
<bradland>
yep, you’re pretty much stuck with those kinds of hacks
<bradland>
sadly
<soahccc>
it's not perfect but it helps a lot
jack_rabbit has quit [Ping timeout: 240 seconds]
* soahccc
needs an epic piep reaching through all layers, applications, dimensions and universes
rshetty has quit [Ping timeout: 250 seconds]
commmmodo has joined #ruby
enebo has joined #ruby
FooMunki has quit [Quit: FooMunki]
<shevy>
soahccc ruby
Akuma has joined #ruby
<shevy>
we should rewrite everything in ruby
<soahccc>
bradland: at least I had an introduction into some ffi stuff :) Thank you nevertheless
<bradland>
to run that script, you’ll need the ffi gem, and the portaudio.rb lib in a subdirectory named lib/
TPBallbag is now known as TPBaubleBag
<jmacdonald>
hi. if you had to write a 1 page report that just pulled some data out of a db and displayed it in a table or soething.. would you just write a CGI using ruby or is there a preferred framework?
<jmacdonald>
or cgi.rb?
TPBaubleBag is now known as TPBaublebag
<jmacdonald>
traditionally i'd use php, but i'd like to centralize on ruby.
<bradland>
it should cycle through all devices with output channels and play that modulated 440 Hz wave
rylev has joined #ruby
rohit has joined #ruby
<bradland>
jmacdonald: if performance is of ZERO consequence, you can use CGI
<bradland>
otherwise i’d use sinatra
<jmacdonald>
yeah, its inhouse stuff. billing reports and whatnot.
mattwildig has quit [Remote host closed the connection]
<bradland>
your lack of snobbery disappoints me, shevy
<jmacdonald>
shevy : cause i know php and barely know ruby. so for now i want to just use 1 tool to get better at it
rshetty has joined #ruby
<jmacdonald>
i did the same with python for some system scripts, but now since i'm doing a lot in Chef, i really just want to use one.
Channel6 has quit [Quit: Leaving]
Pumukel has quit [Read error: Connection reset by peer]
<jmacdonald>
well, bash and ruby. bash ain't going anywhere.
kapil__ has quit [Quit: Connection closed for inactivity]
mattwildig has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
kiyote23 has joined #ruby
alicanyilmaz has joined #ruby
DadoCe has quit [Remote host closed the connection]
<alicanyilmaz>
Hi guys
<shevy>
bradland he may have a use case for php
<shevy>
I am not other people :-)
crueber has joined #ruby
<bradland>
i’m totally kidding
<bradland>
:)
djdarkbeat has joined #ruby
xenomorph is now known as {xenomorph}
<shevy>
I abandoned php for ruby
<shevy>
well actually, it was either python or ruby
<bradland>
my problem is, i never abandon anything
<shevy>
my brain does not work that way
<bradland>
i left VBScript for Ruby
<bradland>
ha!
xjiujiu has quit [Ping timeout: 258 seconds]
blackoperat has joined #ruby
{xenomorph} is now known as xenomorph
allcentury has quit [Ping timeout: 245 seconds]
commmmodo has quit [Quit: commmmodo]
sambao21 has quit [Quit: Computer has gone to sleep.]
leizzer has joined #ruby
n80 has quit [Quit: n80]
arup_r has joined #ruby
<soahccc>
bradland: yeah I modified the portaudio similary. I had to skip device 0 and 1 though since it crashed coreaudio, this way even simultaneously works (as accurate as it gets)
mikewintermute has joined #ruby
rylev has quit [Remote host closed the connection]
<bradland>
yeah, it seems the device list requires some “curration” in order to work reasonably
<bradland>
i don’t even recognize some of the devices on my system, haha
<mitrom>
I wanted a quick tutorial but my ruby is much to be desired
<mitrom>
(writing, not seeking)
kotk has quit [Ping timeout: 252 seconds]
<certainty>
i don't get it
uber_hulk has joined #ruby
klmlfl has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 240 seconds]
Scripore has joined #ruby
hemanth has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
conniemj_ has joined #ruby
jheg has quit [Quit: jheg]
bricker`work has joined #ruby
_Andres has quit [Ping timeout: 255 seconds]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
krz has quit [Ping timeout: 245 seconds]
hemanth has quit [Ping timeout: 252 seconds]
agjacome has joined #ruby
alex88_ has joined #ruby
_Andres has joined #ruby
charliesome has quit [Quit: zzz]
econerd4ever has joined #ruby
alex88 has quit [Ping timeout: 255 seconds]
mjuszczak has quit []
barderer has joined #ruby
laudo has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
<laudo>
how do I get the vallue of an ojects attribute so that i can skip doing type = object.type and then if type == "string". Is there a way of doing if object.type == "string" ?
chinmay_dd has quit [Ping timeout: 245 seconds]
Zai00 has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uber_hulk has quit [Quit: leaving]
TPBaublebag has quit []
tuelz has quit [Ping timeout: 250 seconds]
djdarkbeat has quit [Read error: Connection reset by peer]
djdarkbeat has joined #ruby
michaeldeol has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LouisRoR has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
kiyote23 has joined #ruby
<Hanmac>
laudo: array.grep(String)
tuelz has joined #ruby
Takle has quit [Remote host closed the connection]
Patteh_ is now known as Patteh
snath has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
_beechnut has quit [Ping timeout: 244 seconds]
kiyote23 has quit [Remote host closed the connection]
<Hanmac>
laudo: does that help you? i think you should also tell us your ruby version because object.type is very much outdated
anaeem1 has joined #ruby
<laudo>
hanmac. What I am trying to do is iterate over a hash. For example. I have an object called VM. VM can have an attribute type. Type can be vmware, libvirt etc. So My goal is to be able to compare if vm.type == "vmware" . My ruby version is 1.9.3
rbennacer has quit [Remote host closed the connection]
<havenwood>
ahh, you've defined type, nvm
gsd has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexherbo2 has quit [Ping timeout: 264 seconds]
mleung has joined #ruby
anaeem1 has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
fandi has quit [Ping timeout: 245 seconds]
thumpba has quit []
thumpba has joined #ruby
kiyote23 has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
hobodave has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
<laudo>
hanmac: Thanks so cloud I do something like this? allvm_hash.all.each { |vm| if vm.select {|k,v| vm.type == "vmware" } vm_hash[vm[:name]] = vm[:name] }
atmosx has joined #ruby
_Andres has joined #ruby
patrick99e99 has joined #ruby
jeff-ooh has joined #ruby
dumdedum has quit [Quit: foo]
Musashi007 has joined #ruby
rylev has quit [Remote host closed the connection]
Musashi007 has quit [Client Quit]
JohnBat26 has quit [Ping timeout: 252 seconds]
maestrojed has joined #ruby
jenrzzz has joined #ruby
karmatr0n has joined #ruby
arkro has joined #ruby
kiyote23 has quit [Ping timeout: 265 seconds]
noop has joined #ruby
dstarh has joined #ruby
tus has quit [Ping timeout: 250 seconds]
fandi has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
msmith has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
MrIlyas has quit [Ping timeout: 244 seconds]
pietr0 has joined #ruby
GaryOak_ has joined #ruby
ponga has quit [Quit: Leaving...]
mary5030 has quit [Remote host closed the connection]
iamninja_ has quit [Remote host closed the connection]
tyll_ is now known as tyll
arclitgold has joined #ruby
Flcn has quit [Quit: Be back later ...]
msmith has joined #ruby
wldcordeiro has joined #ruby
thumpba has quit [Remote host closed the connection]
shuber_ has joined #ruby
econerd4ever has quit [Remote host closed the connection]
tus has joined #ruby
<Fire-Dragon-DoL>
when is the right moment for a newbie to read POODR? I have the feeling that if they didn't practice enough, they won't get everything from it and they won't understand the value of it °°
thumpba has joined #ruby
alex88_ has quit []
anaeem1 has joined #ruby
GaryOak__ has joined #ruby
ardsrk_ has joined #ruby
aclearman037 has joined #ruby
GaryOak_ has quit [Ping timeout: 244 seconds]
pwnz0r has joined #ruby
MrIlyas has joined #ruby
Pattt has joined #ruby
<bradland>
Fire-Dragon-DoL: the great thing about books is that you can go back and read them later to take away even more from them.
<shevy>
laudo normally you can just use .select alone over your dataset
livingstn has quit [Ping timeout: 264 seconds]
<Fire-Dragon-DoL>
bradland: yes but that's usually something they don't do. But you suggested me another thing. I can explicitly tell them to read it once and then RE-read it X time after, that can be a good idea
Scripore has quit [Ping timeout: 240 seconds]
Zai00 has quit [Quit: Zai00]
arkro has left #ruby ["Konversation terminated!"]
yfeldblum has joined #ruby
<bradland>
Yeah, IMO someone would need to have attempted (and failed) building their own classes at least a few times before they could benefit from POODR.
iamninja has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
Spami has quit [Quit: This computer has gone to sleep]
anaeem1_ has joined #ruby
ghostlines has joined #ruby
i5um41ru_ has quit [Ping timeout: 240 seconds]
<shevy>
POODLE?
atmosx_ has joined #ruby
alexherbo2 has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arclitgold>
i feel that Eloquent Ruby and Well Grounded Rubyist are better resources for noobs... speaking from experience :)
FooMunki has quit [Quit: FooMunki]
<shevy>
and
<shevy>
are you still a noob or are you now a solid rubyist arclitgold
atmosx has quit [Ping timeout: 256 seconds]
<bradland>
loaded question
yfeldblum has quit [Ping timeout: 255 seconds]
jaequery has joined #ruby
mylar has joined #ruby
<shevy>
well he used good resources
<shevy>
so I hope he is no longer a noob
<shevy>
bradland what did you use to learn ruby?
<bradland>
who says I know Ruby?
<dtordable>
shevy:
shuber_ has quit [Remote host closed the connection]
<dtordable>
look at this:
<dtordable>
As you are now reading a book on Ruby, I think it is safe to work on the assump-
<dtordable>
tion that you don’t need me to persuade you of the merits of the Ruby language.
<dtordable>
shevy: I'm beginning
Stoge88 has joined #ruby
windowlicker has joined #ruby
<bradland>
srsly though. i learned ruby by reading the pickaxe book and reading code.
kasisnu has quit [Quit: Leaving.]
shuber_ has joined #ruby
<bradland>
along the way i’ve read a few (mostly short) books, but most of what i learn I learn by doing or by reading other people’s code.
<arclitgold>
shevy: :) I'm less of a noob now
<arclitgold>
and continuing to get better, but willing to admit I have a long way to go
ghostlines has quit [Ping timeout: 245 seconds]
josephndenton has joined #ruby
ghostlines has joined #ruby
ndrei has joined #ruby
GaryOak__ has quit [Ping timeout: 244 seconds]
it0a has joined #ruby
sarmiena_ has joined #ruby
<mylar>
Hi is there a ruby debugger that works with modern 2.1.5 ruby and eclipse? Having some difficulties compiling under Debian.
s00pcan_ has quit [Ping timeout: 245 seconds]
shuber_ has quit [Remote host closed the connection]
Spami has joined #ruby
josephndenton has quit [Ping timeout: 252 seconds]
mengu has quit [Remote host closed the connection]
thumpba has quit [Remote host closed the connection]
dopie has quit [Remote host closed the connection]
mengu has joined #ruby
noop has quit [Ping timeout: 252 seconds]
<bradland>
and i don’t know if there are any plugins available for eclipse, but using the GUI debugger in RubyMine is HEAVEN
<shevy>
dtordable I don't believe you until it really happened
<dtordable>
shevy: that really happens
<dtordable>
lol
atmosx_ has quit [Ping timeout: 255 seconds]
<dtordable>
I read a phrase of a ruby book, shevy, but I'll be busy for a moment
shuber_ has joined #ruby
<shevy>
lol
nicolastarzia has joined #ruby
razieliyo has quit [Ping timeout: 250 seconds]
razieliyo has joined #ruby
razieliyo has quit [Changing host]
razieliyo has joined #ruby
<mylar>
bradland: I am using the Dynamic Languages Toolkit. I think it expects a particular gem.
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thumpba has joined #ruby
<dtordable>
Instead I’ll take the somewhat unconventional step of starting with a warmany people are attracted to Ruby by its simple syntax and its ease of use.
<dtordable>
shevy: have you seem? I've read the second phrase!
<dtordable>
hahaha
<shevy>
dtordable a programming language is about code elements
<dtordable>
yeah yeah
<shevy>
not about fancy and stylistic paragraphs decorating the author in question
<dtordable>
lexical analysis and syntactical analysis
<tuelz>
I need to pass a filename to a plugin, the problem is I only have access to the file's contents. Can I use StringIO to create a file like thingy in memory with a filename and everything then destroy it when I'm done or does StringIO do that?
<arup_r>
that will also throw error... as the method is a private method
agjacome has quit [Quit: leaving]
xMopxShell has joined #ruby
tejas-manohar has quit [Quit: Page closed]
<arup_r>
ohkay... you are correct
Blackhol_ has joined #ruby
rylev has quit [Ping timeout: 245 seconds]
<arup_r>
But yes.. There should be a better approach
<certainty>
indeed
triple_b has joined #ruby
<certainty>
the point is that :build_gist_template is a secret the tests shouldn't know
<arup_r>
yes
skinny_much has quit [Ping timeout: 245 seconds]
<certainty>
in fact an object using the API shouldn't know it
<certainty>
arup_r: one way would be to inject the thing that does the gist
<certainty>
it can be a ducktype responding to to_gist
Scripore has joined #ruby
skinny_much has joined #ruby
Hobogrammer has joined #ruby
<arup_r>
went above my head.. :(
<certainty>
the fact that it receives the template object which captures the binding looks smelly
<certainty>
arup_r: can you explain shortly what the responsibility of the class List is?
<arup_r>
sure
agrinb has joined #ruby
<arup_r>
List is any kind of list of objects... Currently it is a list of Tasks...
<arup_r>
Now.. This class.. will convert the list of objects to either Excel/Gist/XML template... Currently I implemented the Gist only
<arup_r>
Is it enough ?
<certainty>
yeah. Currently it does nothing with the things. Is that going to change?
<arup_r>
It is a Export kind of thing
<arup_r>
Thus I put it inside the Export module
<arup_r>
No.. It does..
<arup_r>
Currently it is converting to gist.. that's why to_gist
<arup_r>
Later I will add to_xml and to_excel
<certainty>
ok and the only thing it's ever going to do is converting the things to gist, spreadsheets, etc?
<arup_r>
Correct
<certainty>
so it's converter?
<arup_r>
humm.. for now it is..
<certainty>
ok
<arup_r>
Never know future(Sandi Metz) :)
<certainty>
hehe
<certainty>
ok at a first shot consider the following interface suggestion (and keep in mind that i had a glass of rum already)
bahar has joined #ruby
bahar has quit [Changing host]
<arup_r>
ohh :p
Akuma has quit [Quit: So long sukkas!]
<arup_r>
Your advices are always alcome
Guest9520 has joined #ruby
commmmodo has joined #ruby
<wasamasa>
arup_r: why did you call yourself arup_rakshit on stackoverflow?
beef-wellington has quit [Ping timeout: 264 seconds]
MrIlyas has quit [Quit: Leaving]
<arup_r>
Is it ?
<wasamasa>
is there some hidden meaning in it I'm missing?
<arup_r>
I'm not getting you
<arup_r>
:(
<certainty>
arup_r: create a class for every kind of conversion strategy and pass in the list
paulfm has quit [Quit: Zzzzz...]
<wasamasa>
it ends with "shit"
<arup_r>
lol
yfeldblum has joined #ruby
<certainty>
it's the other way around
<wasamasa>
to put it bluntly
Guest9520 has quit [Client Quit]
<arup_r>
certainty: Nice idea..
<certainty>
that allows you to test the things you want without knowing about private matters since you can pass in anything that quacks like your list
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
nateberkopec has joined #ruby
parabolize has joined #ruby
iamjarvo has joined #ruby
<certainty>
later you might want to introduce a factory of some sort to make the interface smaller and also reduce the things you need to know about
bob-john has joined #ruby
wolf4ood has quit [Quit: (null)]
<arup_r>
certainty: Can you put a draft in the Gist,,, and from there I will take forward,, your idea is sweet although
<certainty>
it may be prone to violate tell-don't-ask but that can be mitigated i think
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
Spami has joined #ruby
msmith has quit [Remote host closed the connection]
fdmhbq has quit [Read error: Connection reset by peer]
ifmy has left #ruby [#ruby]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
frem has joined #ruby
msmith has joined #ruby
jdj_dk has joined #ruby
browndawg has joined #ruby
browndawg has left #ruby [#ruby]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 258 seconds]
<certainty>
arup_r: as indicated it is probably enough for the list thing to respond to #each. The items must probably adhere to some protocol as well. Idk
<certainty>
wasamasa: o/
<bradland>
\o
<bradland>
stole that one
<wasamasa>
noo
SecretAg1nt has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
eating_nachos has joined #ruby
DLSteve has joined #ruby
Spami has quit [Read error: No route to host]
eating_nachos has left #ruby [#ruby]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has joined #ruby
<certainty>
heh bradland
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland>
like a ninja
<bradland>
that’ll teach you guys to leave your high fives lying around :)
<certainty>
:)
chuck has quit [Ping timeout: 245 seconds]
arietis has joined #ruby
<arup_r>
certainty: Thing is I need to supply _binding_ object
<certainty>
arup_r: what for?
<arup_r>
as ERB#result needs it
<arup_r>
as per the documentation
chuck has joined #ruby
josephndenton has joined #ruby
skinny_much has quit [Quit: Ruh Roh...]
sheepman has quit [Ping timeout: 250 seconds]
klmlfl has quit [Remote host closed the connection]
<certainty>
arup_r: yeah but what are you using it for. I usually do it with an object with the single purpose of providing it's binding. Something like RenderContext.new(things_to_be_made_available).get_binding and use that with ERB
robscomputer has joined #ruby
klmlfl has joined #ruby
<certainty>
that way you can easily sandbox the rendering
JohnBat26 has joined #ruby
<certainty>
(if you ever desire)
lolmaus has quit [Quit: Konversation terminated!]
skinny_much has joined #ruby
<arup_r>
certainty: #get_binding ?
jdj_dk has quit [Remote host closed the connection]
aclearman037 has joined #ruby
<bradland>
the binding you want to pass is entirely dependent on what is needed inside the template
msmith has quit [Remote host closed the connection]
<bradland>
the class certainty is suggesting is something you would write. RenderContext would do what its name suggests: provide binding context for a template.
Spami has quit [Quit: This computer has gone to sleep]
anarang has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
<arup_r>
ok..let me think
<certainty>
arup_r: that's the method i usually use to return the binding
<arup_r>
I think I got the point
<certainty>
also bradland already explained it. thanks
shuber_ has quit [Remote host closed the connection]
<arup_r>
Where you generally keep this class ? Looking for a place.. It should be inside the Converter
atmosx has joined #ruby
paulfm has quit [Client Quit]
<certainty>
arup_r: it depends. Most of the time it's a nested class
shuber_ has joined #ruby
<certainty>
in may cases
JimmyNeutron has joined #ruby
<arup_r>
In my case Inside the Gist?
<certainty>
could be yes
<arup_r>
ohh!
<apeiros_>
ok, arduino is fun. I wish my C++ was not so completely gone, though :)
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland>
apeiros_: i’m so completely terrified that i won’t be able to get my arduino to do _anything_
<certainty>
apeiros_: what are you using it for?
chrishough has joined #ruby
<atmosx>
apeiros_: what kind of project did you do?
<arup_r>
Not understanding why the separate class is needed?
oleo is now known as Guest30355
<arup_r>
ReaderConext
oleo__ has joined #ruby
<apeiros_>
certainty: currently I make puny LEDs obey my orders ;-)
<certainty>
arup_r: because seperation of concerns and SRP
<apeiros_>
certainty: just playing with the starter kit
rpag has joined #ruby
<tuelz>
I need to pass a filename to a plugin, the problem is I only have access to the file's contents. Can I use StringIO to create a file like thingy in memory with a filename and everything then destroy it when I'm done or does StringIO do that?
<certainty>
apeiros_: nice. I bought it some time back and didn't do anything with it yet
s00pcan_ has quit [Ping timeout: 265 seconds]
<apeiros_>
certainty: yeah, same here
<apeiros_>
certainty: luckily my brother came over for christmas, so we're tinkering together :D
<certainty>
i should probably get it out again
<certainty>
sounds like fun
<rpag>
tuelz, you can use StringIO to create an IO-like thingy, but it won't respond to .path
<apeiros_>
certainty: yeah, do that! it's really easy to get started. the kit is IMO excellently done.
<tuelz>
I've also looked at mmap, but on osx that would require some recompilation of libs with different compile flags. If I'm having to do that I feel like there's a good chance my plugin won't be very portable
Guest30355 has quit [Ping timeout: 244 seconds]
<certainty>
tuelz: you can make it respond to patg though
<bradland>
arup_r: do you use any variables within your ERB template?
reinaldob has quit [Remote host closed the connection]
<certainty>
or create a facade that delegates and provides the #path method
byprdct has quit [Read error: Connection reset by peer]
<waxjar>
tuelz: there's Tempfile?
<tuelz>
certainty: I tried that, the tilt template engine actually does a file lookup. I was hoping I could make that file lookup point to my content somehow
<tuelz>
waxjar: tempfile works fine, I don't want to write to disk if possible though
<apeiros_>
certainty, atmosx: ultimately I'd love to build a usb/bluetooth password "dongle". no idea whether I actually will, and if I do, whether it's really arduino
mleung has quit [Quit: mleung]
beef-wellington has joined #ruby
<bradland>
tuelz: the problem with libraries that want file paths is that they’re probably going to File.open
mary5030 has joined #ruby
<certainty>
true thing
reinaldob has joined #ruby
<atmosx>
apeiros_: I see, nice
<tuelz>
bradland: yeah wtf were they thinking?! (sarcasm text mode)
<tuelz>
:p
<certainty>
apeiros_: something like yubikey?
<bradland>
there’s no method for passing in a template string? only filepath?
<bradland>
that’s nuts
<apeiros_>
certainty, atmosx: also I'd love to throw out the current fan in my bathroom and replace it with something more intelligent, sensor + clock driven.
<certainty>
apeiros_: that should be doable
<apeiros_>
certainty: yeah. but with a screen and being able to store multiple passwords.
<certainty>
i meant to control my reptile boxes with that
<atmosx>
certainty: well theoretically everything is usuable.
<apeiros_>
certainty: main problem will be to get fitting parts
<atmosx>
certainty: err sorry, doable
dts|pokeball has quit [Read error: Connection reset by peer]
rodfersou has quit [Quit: leaving]
<apeiros_>
3d printers will help *a ton* with making a suitable casing
d2dchat has quit [Remote host closed the connection]
<tuelz>
bradland: I can make a stringIO but then when the engine does a file lookup it's not going to find an IO object in memory I guess
<bradland>
By default, template data is read from the file. When a block is given, it should read template data and return as a String. When file is nil, a block is required.
<certainty>
and you want the path to be dynamic? arup_r
agrinb has quit [Remote host closed the connection]
<bradland>
if you scroll all the way down to Configuring Slim, you’ll see reference to Slim::Template.new, but there’s no Template class documentation.
<bradland>
how does one figure out where Template comes from?
<arup_r>
class Gist became large enough..
<arup_r>
cetainty: ^^
chuck has joined #ruby
chuck has quit [Changing host]
chuck has joined #ruby
klmlfl has quit []
klmlfl has joined #ruby
<certainty>
arup_r: yeah but that's ok. Implement other converters and pull out classes if you need to share functionality
<tuelz>
bradland: exactly my problem :p
Spami has joined #ruby
<certainty>
bradland: you mean other that grep'ing the sources?
<certainty>
than
<tuelz>
bradland: It works now btw. You're todays internet hero. I've got a picture of you on my refridgerator now
<bradland>
heh
<bradland>
booya!
mrmargolis has quit []
studiotate has joined #ruby
<bradland>
certainty: heh. my git clone is just about worn out by now for that _exact_ purpose.
rpag has quit [Quit: Leaving]
<bradland>
“let’s download this thing and see what the hell is actually going on.”
<arup_r>
ok
<tuelz>
grepping code is for people who know how to code.
<certainty>
i do that alot
<arup_r>
thanks
<certainty>
not that i know how to code
doritostains has quit [Quit: WeeChat 1.0.1]
<bradland>
i like it because it looks like i’m working
<arup_r>
Let me organize now
<bradland>
lol
<tuelz>
I just spoke a law into existence. Apparently you didn't know you could code
seanosaur has joined #ruby
dro has joined #ruby
<shevy>
are you guys slacking again
<certainty>
arup_r: yw.
<shevy>
tomorrow is x-mas, don't say you can use that day to code
tobacco_joe has quit []
jheg has joined #ruby
<certainty>
shevy: i hope to receive some nice presents in code
heftig_ is now known as heftig
<certainty>
a nifty algorithm to optimize in the evening when kids are playing with their drones
tjohnson has joined #ruby
crazed_ has quit [Ping timeout: 240 seconds]
<certainty>
ok i do neither. I can not optimize algorithms and my kids don't have drones. The rum speaks out of me
Spami has quit [Quit: This computer has gone to sleep]
<certainty>
hanmac: you may want to skip badblocks
<certainty>
i forget the option for it
rshetty has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
<certainty>
i found that sometimes dd didn't help much. I resorted to rsync. Which might get slow on corrupt disks but may still be able to save the majority of the data
<Hanmac>
certainty: hm maybe but the raid partiions itself are not broken, its about the metadata inside of them
<certainty>
ah ok
ghostmoth has joined #ruby
zorak8 has quit [Ping timeout: 255 seconds]
<certainty>
i thought it was the actual data
crazed has quit [Ping timeout: 240 seconds]
rylev has joined #ruby
<Hanmac>
and i already have installed a new system, so i cant insert all the old drives at once, thats why i need to copy the images of the partions on my pc first
* certainty
remembers using dump and restore
<certainty>
vintage these days
crazed has joined #ruby
crazed has quit [Changing host]
crazed has joined #ruby
Xeago has quit [Remote host closed the connection]
green-big-frog is now known as frog|OFF
<Hanmac>
certainty: i dont know if i already did tell you about it, but my problem is that inside of the raid was an lvm ... and the lvm metadata did died ... means the data is still there ... but it cant find the partitions anymore
triple_b has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
s00pcan_ has joined #ruby
<certainty>
hanmac: hmm will cloning it help then?
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 256 seconds]
<certainty>
ah there is vgcfrestore
<Hanmac>
certainty: thats what i try ... clone the partions as images on my disk, connect the images as new raid, and then search the connected data after partitions ...
evanjs has quit [Remote host closed the connection]
rylev has quit [Ping timeout: 272 seconds]
<certainty>
i never had that before
Flcn has joined #ruby
seanosaur has quit []
tuelz has quit [Ping timeout: 252 seconds]
<Hanmac>
and no vgcfrestore might not work, because the backup files where on the lvm too ... (and i did try to reinstall the lvm metadata so it also does not fit anymore)
<certainty>
oh fun times
lampd1_ has joined #ruby
chinaski has quit [Read error: Connection reset by peer]
existensil has joined #ruby
pietr0 has quit [Quit: pietr0]
<Hanmac>
the cruel thing: when i do "grep something /dev/md/system" i can read my old data ... but i cant access it anymore
<Hanmac>
and no i did try to find old lvm metadata, but none of them was fitting
Xeago has joined #ruby
<bashusr>
if i add a gem to my gemfile that requires other gems, when i do bundle install does it install all the depedencies?
<bradland>
yes
commmmodo has quit [Quit: commmmodo]
lampd1_ has quit [Ping timeout: 244 seconds]
Akuma has joined #ruby
maletor has joined #ruby
dopie has joined #ruby
Darryl__ has quit [Quit: Connection closed for inactivity]
nicolastarzia has joined #ruby
DadoCe has quit [Remote host closed the connection]
ardsrk_ has quit [Quit: Connection closed for inactivity]
thumpba has quit [Remote host closed the connection]
deryl has joined #ruby
Musashi007 has joined #ruby
<bradland>
bashusr: when `bundle install` finishes, have a look inside Gemfile.lock.
thumpba has joined #ruby
nicolastarzia has quit [Ping timeout: 252 seconds]
olivier_bK has joined #ruby
thumpba has quit [Remote host closed the connection]
windowlicker has quit [Quit: Lost terminal]
jeanlinux has joined #ruby
thumpba has joined #ruby
commmmodo has joined #ruby
tuelz has joined #ruby
allcentury has joined #ruby
thumpba has quit [Remote host closed the connection]
jamesaxl has joined #ruby
reinaldob has joined #ruby
dcarmich has joined #ruby
thumpba has joined #ruby
oleo__ is now known as oleo
AlexRussia has joined #ruby
shuber_ has quit [Remote host closed the connection]
anarang has quit [Quit: Leaving]
fenzil has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shuber_ has joined #ruby
atmosx has quit [Ping timeout: 245 seconds]
impi0us has joined #ruby
thumpba has quit [Remote host closed the connection]
phutchins has quit [Quit: leaving]
phutchins has joined #ruby
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
rbrs has quit [Remote host closed the connection]
dnyy has left #ruby [#ruby]
DadoCe has joined #ruby
jenrzzz has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
j2p2 has quit [Ping timeout: 240 seconds]
Akuma has quit [Read error: Connection reset by peer]
AlexRussia has quit [Ping timeout: 244 seconds]
reinaldob has quit [Remote host closed the connection]
Timgauthier has joined #ruby
GaryOak_ has joined #ruby
hiyosi has joined #ruby
iamjarvo has joined #ruby
<Timgauthier>
Merry Happy Christmastime
patrick99e99 has quit [Ping timeout: 250 seconds]
kyb3r_ has joined #ruby
gsd_ has joined #ruby
gsd has quit [Ping timeout: 244 seconds]
momomomomo has joined #ruby
mleung has joined #ruby
gsd has joined #ruby
_4dnan_ has joined #ruby
gsd has quit [Read error: Connection reset by peer]
LouisRoR has joined #ruby
tomeara has joined #ruby
pengin has quit [Remote host closed the connection]
gsd has joined #ruby
mjuszczak has quit []
pengin has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gsd_ has quit [Ping timeout: 258 seconds]
keen__________10 has joined #ruby
<arclitgold>
u too!
keen___________9 has quit [Ping timeout: 245 seconds]
max96at is now known as max96at|off
kenneth has joined #ruby
Mon_Ouie has joined #ruby
gsd has quit [Ping timeout: 264 seconds]
fantazo has quit [Quit: Verlassend]
pengin has quit [Ping timeout: 258 seconds]
kenneth has quit [Client Quit]
gsd has joined #ruby
Menorah has joined #ruby
robscomputer has quit [Ping timeout: 272 seconds]
Akuma has joined #ruby
klmlfl_ has joined #ruby
tus has quit [Ping timeout: 264 seconds]
mjuszczak has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
lmickh has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<dtordable>
well
kenneth has joined #ruby
Spami has joined #ruby
klmlfl has quit [Ping timeout: 256 seconds]
rpag has joined #ruby
Takle has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
mattwildig has joined #ruby
rbennacer has joined #ruby
<pwnz0r>
can anyone reccomend a good starting point for learning ruby (not rails) if i am already an experienced programmer. im looking for something that will teach the power of ruby not for loops etc.
tus has joined #ruby
aclearman037 has joined #ruby
Techguy305 has joined #ruby
asmodlol has joined #ruby
<GaryOak_>
pwnz0r: Build a project you are interested in and work through each step
Takle_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland>
pwnz0r: have you looked at ruby at all yet? as in syntax.
<pwnz0r>
ya ive been playing around with it a bit
<pwnz0r>
using blocks and such
Timgauthier has quit [Read error: Connection reset by peer]
<pwnz0r>
iterators but thats about it. i have been working through some university assignements i found online, but the class is for newbs pretty much and not aimed at teach the ruby language
<shevy>
certainty you haven't used avisynth yet have you?
<certainty>
shevy: nope
<vvivv>
but cannor run nginx
<shevy>
certainty how about windows powershell?
<vvivv>
when run 'systemctl start nginx' , it gives error 'cannot find nginx'
<certainty>
shevy: nope
<vvivv>
could you help?
<bradland>
vvivv: wrong channel
<ericwood>
vvivv: #rubyonrails
<vvivv>
need register
Timgauthier has joined #ruby
<shevy>
certainty k - the idea of the pipes is to put together arbitrary objects, apply filters as you wish such as on http://avisynth.nl/index.php/First_script and combine this with both an approach usable like in traditional unix pipes and windows powershell
<certainty>
shevy: what does it do?
<certainty>
ah there it comes
<vvivv>
i forgot password
<bradland>
if you can’t start nginx, you have an OS issue
<shevy>
avisynth can be used to modify audio and video data
beef-wellington has quit [Ping timeout: 245 seconds]
<shevy>
for instance, you can easily put up a logo or blur out parts of the video using scripts alone
<pwnz0r>
just register
<pwnz0r>
its takes seconds...
<pwnz0r>
make a new gmail if you must
<certainty>
shevy: the thing i don't understand is, if this thing processes text or is some kind of embedded DSL?
<shevy>
certainty well just like you use a unix pipe right? "cat *.txt | nl"
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland>
so, our software product is an online reverse auction tool for “enterprise™” procurement
claymore has joined #ruby
<bradland>
we decided to do sound effects for the holiday, and OF COURSE we used the inception horn for 1st place turnovers
<bradland>
so every time someone takes over 1st place, i hear the inception horn
Timgauthier has quit [Read error: Connection reset by peer]
<arclitgold>
certainty: interesting.... not sure how much hardware info it will spit out
<bradland>
scares the SHIT out of me every time lol
devoldmx33 has quit [Remote host closed the connection]
<arclitgold>
bradland: hahaha
Timgauthier has joined #ruby
testcore has joined #ruby
Musashi007 has quit [Quit: Musashi007]
econerd4ever has quit [Remote host closed the connection]
Musashi007 has joined #ruby
econerd4ever has joined #ruby
Pupeno has quit [Quit: Leaving...]
sankaber has joined #ruby
<arclitgold>
certainty: facter spits out quite a bit of info, but not a ton of hardware stuffs
_Andres has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
pengin has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mleung has quit [Quit: mleung]
claymore has quit [Quit: Leaving]
bricker`work has joined #ruby
claymore has joined #ruby
<certainty>
arclitgold: yeah i wondered how much you needed. facter allows to be extended. I don't know what you need. You can probably parse dmidecode output to add facts
<dtordable>
shevy: I'm not touching Ruby!
<certainty>
depends on your needs. We did a standalone thing that operated on dmidecode input as one source
<shevy>
dtordable I know
<arclitgold>
certainty: nice - yeah dmidecode output would be helpful for sure
Azure has quit [Quit: Blue Sky Fish]
<arclitgold>
perhaps this is a good opportunity to write a simple lightweight gem?
<arclitgold>
hmmm
Kricir has quit [Remote host closed the connection]
<certainty>
arclitgold: yeah probably. We didn't find any gem that did the job
econerd4ever has quit [Ping timeout: 258 seconds]
<arclitgold>
gotcha
devoldmx33 has joined #ruby
gaboesquivel has quit [Remote host closed the connection]
<arclitgold>
yeah, I'm coming up cold
momomomomo_ has joined #ruby
<certainty>
arclitgold: also there is lshw which can output json data iirc
leonmaia has joined #ruby
momomomomo has quit [Ping timeout: 264 seconds]
momomomomo_ is now known as momomomomo
<certainty>
the problem we faced was that we didn't have all these tools available on all systems
<certainty>
curse you! legacy!
<arclitgold>
certainty: hehe yeah legaaaccyyy fuuuuuuuu. And yeah you're right about lshw
<arclitgold>
great point
barderer has quit [Ping timeout: 245 seconds]
<bradland>
hardware detection is always platform dependent
<bradland>
it’s probably the next worst thing to browser feature detection lol
Guest26597 has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kasperti_ has joined #ruby
<arclitgold>
bradland: yeah agreed...
Cyrax_ has quit [Ping timeout: 272 seconds]
jheg has joined #ruby
<Timgauthier>
oh man guyz, i know why everyone goes and does iOS stuff, i'm playing with swift and starting to learn
mjuszczak has quit []
Areessell has quit [Ping timeout: 258 seconds]
<Timgauthier>
and dragging a controller into the code and having it become a variable at the approprate scope is... unf
aclearman037 has joined #ruby
claudiuinberlin1 has joined #ruby
despai has joined #ruby
claudiuinberlin1 has quit [Client Quit]
leizzer has quit [Quit: WeeChat 0.4.2]
claudiuinberlin1 has joined #ruby
postmodern has joined #ruby
claudiuinberlin has quit [Ping timeout: 255 seconds]
s00pcan_ has quit [Ping timeout: 252 seconds]
_4dnan_ has left #ruby ["Leaving"]
maletor has quit [Quit: Computer has gone to sleep.]
shredding has joined #ruby
Timgauthier is now known as timgauthier_away
pwnz0r has quit [Remote host closed the connection]
zacts has joined #ruby
timgauthier_away is now known as Timgauthier
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwnz0r has joined #ruby
shredding has quit [Client Quit]
Azure has joined #ruby
Timgauthier has joined #ruby
<bradland>
Timgauthier: Swift - More magic than Ruby on Rails.
<bradland>
damn, i forgot the ™
<Timgauthier>
haha :P
shredding has joined #ruby
<Timgauthier>
Swift - More magical then Ruby on Rails ™
shuber_ has joined #ruby
sigurding has quit [Quit: sigurding]
kasperti_ has quit []
yo61_ is now known as yo61
<bradland>
it is an absolute miracle that i ever deploy a rails app
<bradland>
i mean, i know i can do it, i’m just not sure i know how it is that i can do it
Jackneill has quit [Ping timeout: 250 seconds]
rylev has joined #ruby
beef-wellington has joined #ruby
<shevy>
you are a railser
<shevy>
Timgauthier is a phper
it0a has quit [Quit: WeeChat 1.0.1]
claudiuinberlin1 has quit [Quit: Leaving.]
doritostains has joined #ruby
rurban has joined #ruby
<bankair>
how do you call someone who check its hardrive integrity under linux ?
<bradland>
man, so many ways to interpret that question
<bradland>
do you mean literally what do you call the person who does that?
econerd4ever has joined #ruby
<bradland>
or by someone do you mean the name of an application?
<bankair>
I'm so ashamed of that pun ...
revoohc has quit [Quit: revoohc]
<bankair>
a fscker
<bankair>
sorry, guys
<bradland>
ooooooooooh my
<bradland>
lol
chrishough has joined #ruby
<bradland>
this is IRC, where language barriers abound.
<bradland>
i thought for sure we were going to need a translator
<epitron>
the riddle has been solved!
Menorah has joined #ruby
rylev has quit [Ping timeout: 256 seconds]
aclearman037 has quit [Quit: I'm out!]
momomomomo has quit [Quit: momomomomo]
thumpba has quit [Remote host closed the connection]
despai has quit [Quit: This computer has gone to sleep]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
luizbafilho has joined #ruby
luizbafilho has quit [Client Quit]
livingstn has quit []
geggam has quit [Ping timeout: 250 seconds]
<shevy>
lol
<shevy>
I would have required a translation
allcentury has quit [Ping timeout: 264 seconds]
paulfm has quit [Quit: Zzzzz...]
delianides has joined #ruby
CrazyM4n has joined #ruby
gsd has joined #ruby
decoponio has quit [Quit: Leaving...]
thumpba has joined #ruby
gsd has quit [Read error: Connection reset by peer]
ohaibbq has joined #ruby
koderok has quit [Quit: koderok]
gsd_ has joined #ruby
nicolastarzia has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
thumpba has quit [Remote host closed the connection]
CustosL1men has quit [Ping timeout: 272 seconds]
thumpba has joined #ruby
patrick99e99 has joined #ruby
claymore has joined #ruby
beef-wellington has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
josephndenton has joined #ruby
sanguisdex has quit [Quit: Leaving.]
blackoperat has quit [Ping timeout: 265 seconds]
nicolastarzia has quit [Ping timeout: 256 seconds]
msmith has quit [Remote host closed the connection]
vvivv has quit [Quit: Leaving]
jeanlinux has quit [Remote host closed the connection]
lampd1_ has joined #ruby
jeanlinux has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
mattwildig has quit [Remote host closed the connection]
rpag has joined #ruby
despai has joined #ruby
lampd1_ has quit [Ping timeout: 240 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s00pcan_ has joined #ruby
dc_ has quit [Remote host closed the connection]
Timgauthier is now known as timgauthier_away
parduse has quit [Ping timeout: 265 seconds]
[gmi] has joined #ruby
parduse has joined #ruby
stunder has quit [Quit: Screw you guys I'm going home]
timgauthier_away is now known as Timgauthier
michaeldeol has joined #ruby
stunder has joined #ruby
tus has quit [Ping timeout: 272 seconds]
[gmi] has quit [Client Quit]
p4tux has quit [Remote host closed the connection]
startupality has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
JimmyNeutron has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
picassoo has joined #ruby
kavita has quit [Remote host closed the connection]
xenomorph is now known as {xenomorph}
barderer has joined #ruby
Xeago has quit [Remote host closed the connection]
{xenomorph} is now known as xenomorph
dc_ has joined #ruby
claymore has quit [Quit: Leaving]
shredding has quit [Quit: shredding]
TripleDES has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
FooMunki has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
rbennacer has quit [Remote host closed the connection]
gaboesquivel has joined #ruby
rbennacer has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
pwnz0r has quit [Remote host closed the connection]
<shevy>
ok guys
<shevy>
is it 24th already
rylev has joined #ruby
<shevy>
oh here is a question
<shevy>
what syntax would be nice to put A into B namespace?
<shevy>
let's say: class A; module B
<shevy>
well, vice versa
<shevy>
but I was thinking of an alternative syntax
Pumukel has quit [Quit: ChatZilla 0.9.91.1 [Firefox 34.0.5/20141126041045]]
kavita has joined #ruby
josephndenton has joined #ruby
gaboesquivel has quit []
jeff-ooh has quit [Remote host closed the connection]
beef-wellington has joined #ruby
rylev has quit [Ping timeout: 250 seconds]
JimmyNeutron has joined #ruby
<epitron>
shevy: wat
<shevy>
epitron well for instance
<shevy>
right now you have to do this:
<dtordable>
shevy: I kno how to do a Hello World program
<shevy>
module B
<shevy>
class A
<shevy>
epitron that means you would have to indent with 4 spaces inside of class A right?
crueber has quit [Quit: Leaving.]
<shevy>
dtordable show the code
<epitron>
ok
<dtordable>
def saysomething
<dtordable>
puts( "Hello" )
<dtordable>
end
<dtordable>
lol
<dtordable>
xDDDDD
<epitron>
how about: module B; class A
<epitron>
now you can use 2 chars
rbennacer has quit [Remote host closed the connection]
zorak8 has joined #ruby
jenrzzz has joined #ruby
<shevy>
dtordable was this a 'Hello World program'?
<shevy>
epitron a moment, I lost you there
<shevy>
oh
maletor has joined #ruby
<shevy>
epitron I mean when you add a method to class A
<shevy>
you would have to indent 2 levels right?
<dtordable>
shevy: nah, simply I read it on the book
<shevy>
dtordable the World part is missing in your example
maletor has quit [Changing host]
maletor has joined #ruby
<shevy>
and you don't need the ()
<epitron>
shevy: I used a semicolon
<epitron>
they are on the same line
<epitron>
no inventing necessary
<epitron>
indenting
<shevy>
let's not invent
<dtordable>
whatever... I'm going to sleep
<shevy>
:-)
mattwildig has joined #ruby
<shevy>
epitron right but in a .rb file you would normally use a newline rather than a semicolon
mary5030 has quit [Remote host closed the connection]
<epitron>
right, but you were just about to invent new syntax
<epitron>
you can use existing syntax
mary5030 has joined #ruby
ohaibbq has quit [Ping timeout: 240 seconds]
<shevy>
yeah that is fine
triple_b has joined #ruby
<shevy>
the thing is - module B here in this example often does not have a lot of stuff going for it
mattmcclure has quit [Quit: Connection closed for inactivity]
<shevy>
the interesting parts will all be defined onto the class, whereas module B just serves as the namespace of the project
<epitron>
such is the nature of namespaces
_ixti_ has joined #ruby
<epitron>
do you want a namespace operator?
<shevy>
well
<epitron>
class A; namespace B?
stunder has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 240 seconds]
<shevy>
what annoyed me were the 2 indent-levels
<epitron>
so don't indent twice
<shevy>
hehe
<epitron>
who cares
<shevy>
but then I am not consistent!
<epitron>
use a semicolon
<epitron>
new syntax is even less consistent
<shevy>
there has got to be another way
<epitron>
that's inconsistent with Ruby's compiler
klmlfl has joined #ruby
startupality has quit [Quit: startupality]
pwnz0r has joined #ruby
<epitron>
you can use class B::A if B is already defined
mary5030 has quit [Ping timeout: 265 seconds]
<epitron>
and you don't care about the external closure
<shevy>
hmm
bweston92 has joined #ruby
sevvie has joined #ruby
<bweston92>
Can anyone help me understand why this doesn't work http://www.codeshare.io/37XP5 line 29. Calling a module method from another method in same module.
pengin has quit [Remote host closed the connection]
klmlfl_ has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
Synthead has quit [Read error: Connection reset by peer]
pengin has joined #ruby
<shevy>
it's not known on the same level bweston92
<shevy>
btw that is annoying
bkulbida has quit [Quit: bkulbida]
<shevy>
while trying to read it, someone edits it
<bweston92>
Sorry
DadoCe has quit [Remote host closed the connection]
<epitron>
it's pretty sweet imo
akaiiro has joined #ruby
<bweston92>
Until someone wipes it all :p
commmmodo has joined #ruby
Synthead has joined #ruby
dangerousdave has quit [Ping timeout: 240 seconds]
<epitron>
hah, sorry, that was my fault
<epitron>
i tried to select something on my phone, and it typed a char
<epitron>
lol
<epitron>
there's no undo?
pengin has quit [Ping timeout: 250 seconds]
<epitron>
that's pretty terrible
<epitron>
is that the only copy you have?
<bweston92>
No idea on phones, aha
<bweston92>
I put it back
_Andres has quit [Read error: No route to host]
<bweston92>
I don't understand extend self... how does that work? surly it knows about self?
Hobogrammer has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
codecop has quit [Remote host closed the connection]
<epitron>
"exend self" makes all instance methods into class methods
Synthead has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
leonmaia has joined #ruby
<dts|pokeball>
E: Unable to locate package ruby19-dev
AUS3RIS has joined #ruby
freerobby has joined #ruby
<havenwood>
dts|pokeball: what version of what distro?
<dts|pokeball>
14 of ubuntu
shuber_ has quit [Remote host closed the connection]
Scripore has quit [Ping timeout: 265 seconds]
<havenwood>
dts|pokeball: ruby1.9.1-dev
<dts|pokeball>
ty
<havenwood>
yw
basex has joined #ruby
WeiJunLi has left #ruby [#ruby]
TripleDES has quit [Remote host closed the connection]
icebourg has quit []
basex has quit [Remote host closed the connection]
enebo has joined #ruby
Kricir has joined #ruby
kies has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<epitron>
hmm... if i'm trying to monkeypatch an existing method, using alias_method is a good way of keeping the old method around so i can use it still
<epitron>
that pollutes the namespace though
<epitron>
is there a way to not pollute, while still being able to access it?
<epitron>
should i make it private, maybe?
sevvie has quit [Ping timeout: 265 seconds]
s00pcan_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
sevvie has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
enebo has quit [Quit: enebo]
Cache_Money has quit [Quit: Cache_Money]
<rpag>
epitron, you can use method(:foo) & closures.
nicolastarzia has joined #ruby
<rpag>
x = method(:foo); define_method(:foo) { x.call }
pika_pika has quit [Ping timeout: 258 seconds]
<epitron>
yeah... i heard that method has a pretty big performance penalty though
<rpag>
haven't noticed that
<rpag>
never benchmarked it though
<rpag>
adios picassoo
<apeiros_>
there you go zenspider
<epitron>
matz and evan phoenix were talking about it
<shevy>
yeah it was sometimes mentioned that .call isn't the fastest
<epitron>
calls on UnboundMethods were the least fastest :)
checkit has quit [Quit: (null)]
AUS3RIS is now known as aus3ris
aus3ris is now known as AUS3RIS
blackoperat has joined #ruby
<epitron>
i'll just make it private
<rpag>
how does making it private solve the problem?
<waxjar>
i never really understood why you would want to keep around the original method
jeff-ooh has joined #ruby
<epitron>
rpag: namespace is less polluted
<epitron>
(mildly)
sevvie has joined #ruby
<shevy>
waxjar so that you could restore the default behaviour again
<epitron>
waxjar: performance, in this case. it's implemented in C
<epitron>
i'm hacking Array#* :D
<waxjar>
eeew :P
<crome>
I like it how ruby makes it so easy, almost desirable, to come up with the most horrible solutions for random problems
<crome>
as if it were a contestt
<epitron>
waxjar: it's neat! i can now do: [1,2,3] * [4,5,6] and get the cartesian product
<epitron>
or [1,2,3] ** 2
nicolastarzia has quit [Ping timeout: 258 seconds]
sevvie has quit [Read error: Connection reset by peer]
<epitron>
i wish i could remember what i was originally trying to solve :)
<waxjar>
haha
<epitron>
oh yes, i was just solving permutations problems for fun
<rpag>
crome, what's horrible about it?
sarmiena_ has joined #ruby
<epitron>
i wonder if i can define a method called ×
<epitron>
that would be even better
jeff-ooh has quit [Ping timeout: 264 seconds]
<waxjar>
you can pick any name you like
<rpag>
you can but you won't be able to call it witout send.
<rpag>
without
basex has joined #ruby
<waxjar>
but you'll likely end up using #send to call it :p
<rpag>
echo echo
pengin has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
<waxjar>
:p
<epitron>
aww
rpag is now known as candlefactory
<candlefactory>
20% more java, 80% more wax
iamninja has quit [Remote host closed the connection]