beauby has quit [Read error: Connection reset by peer]
Puffball has quit [Remote host closed the connection]
freddymungo has quit [Quit: Leaving]
djbkd has joined #ruby
hutch34 has joined #ruby
Puffball has joined #ruby
tmtwd has quit [Ping timeout: 264 seconds]
jcao219 has joined #ruby
beauby has joined #ruby
dtscode has joined #ruby
frankiee_ has joined #ruby
tcrypt has quit [Ping timeout: 264 seconds]
ResidentBiscuit has joined #ruby
_sfiguser has quit [Ping timeout: 244 seconds]
ResidentBiscuit has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 264 seconds]
tk__ has joined #ruby
tcrypt has joined #ruby
dviola has quit [Quit: WeeChat 1.5]
frankiee_ has quit [Ping timeout: 264 seconds]
nando293921 has joined #ruby
prawnzy has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
_sfiguser has joined #ruby
codelogix has quit [Ping timeout: 272 seconds]
LoneHermit has joined #ruby
kingkong- has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
imightbestupid12 has joined #ruby
<imightbestupid12>
where can i learn how if __FILE__ == $0 works in depth?
Puffball has quit [Remote host closed the connection]
<adam12>
imightbestupid12: What did you want to know about it? __FILE__ is current file, $0 is first argument according to OS, which is usually the file you're executing. If they match (the current file is being executed) the boolean is true.
<imightbestupid12>
OS
<imightbestupid12>
?
djbkd has quit [Ping timeout: 264 seconds]
<havenwood>
imightbestupid12: The equality bit is important and easy to look into. See the docs for ==. Try: ri Module.==
<adam12>
Well, I generalized it as the operating system, but it's likely the shell that's calling execve or whatever function in the kernel.
<imightbestupid12>
havenwood: i understand the equality and i understand that __FILE__ is a variable, but i don't get $0 and where it comes from
hahuang62 has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
tcrypt has quit [Ping timeout: 264 seconds]
beauby has quit [Read error: Connection reset by peer]
<imightbestupid12>
havenwood: that's not helpful =*(
brianpWins has quit [Client Quit]
tcrypt has joined #ruby
<havenwood>
imightbestupid12: There are lots of files but only one was used to start the program. That filename gets stored in the global $0 but can be changed.
<imightbestupid12>
i don't understand what an of that stuff on that reference means... is there an eli5 version or something?
LoneHermit has quit [Ping timeout: 272 seconds]
arashb has joined #ruby
bob434 has quit [Quit: Leaving]
Puffball has joined #ruby
roflmyeggo has joined #ruby
<imightbestupid12>
your explanation is a lot better havenwood :) maybe i'll find that magical resource
<imightbestupid12>
and if i find a magical resource that explains things in a way i understand i'll be sure to share it!
mistermocha has joined #ruby
arashb has quit [Ping timeout: 264 seconds]
roflmyeggo has quit [Ping timeout: 272 seconds]
djbkd has quit [Ping timeout: 272 seconds]
jackjackdripper has joined #ruby
Puffball_ has joined #ruby
beauby has quit [Read error: Connection reset by peer]
moneylotion has quit [Read error: Connection reset by peer]
drbrain has quit [Ping timeout: 244 seconds]
mtkd has quit [Ping timeout: 264 seconds]
Puffball has quit [Ping timeout: 264 seconds]
mtkd has joined #ruby
djbkd has joined #ruby
mistermocha has quit [Remote host closed the connection]
bihi has quit [Quit: Bye!]
duderonomy has joined #ruby
tcrypt has quit [Ping timeout: 264 seconds]
bihi has joined #ruby
beauby has joined #ruby
Ropeney has joined #ruby
gizmore has joined #ruby
tcrypt has joined #ruby
nankyokusei has joined #ruby
imightbestupid12 has quit [Ping timeout: 240 seconds]
beauby has quit [Read error: Connection reset by peer]
nanoz] has quit [Read error: Connection reset by peer]
<zenspider>
azbshiri: a note?
bocaneri has joined #ruby
zenspider has quit [Changing host]
zenspider has joined #ruby
phaza has quit []
RegulationD has quit [Ping timeout: 264 seconds]
tomphp has joined #ruby
duncannz has quit [Quit: Leaving]
Velizar has quit [Ping timeout: 244 seconds]
ctp has quit [Ping timeout: 244 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_drow has quit [Quit: This computer has gone to sleep]
sphex has quit [Ping timeout: 265 seconds]
sphex has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrwn has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
vitd has quit [Ping timeout: 264 seconds]
merlin2049er1 has joined #ruby
erlingur has joined #ruby
merlin2049er has quit [Ping timeout: 264 seconds]
pwnd_nsfw` has joined #ruby
tcrypt has joined #ruby
hogetaro has quit [Quit: Leaving...]
ych has joined #ruby
tomphp has joined #ruby
gizmore has quit [Ping timeout: 264 seconds]
gizmore has joined #ruby
Robtop__ has quit [Ping timeout: 272 seconds]
mniip has joined #ruby
elenatanasoiu has joined #ruby
jenrzzz has joined #ruby
NTrash has quit [Quit: Konversation terminated!]
pwnd_nsfw` has quit [Read error: Network is unreachable]
elenatanasoiu has quit [Client Quit]
pwnd_nsfw` has joined #ruby
NTrash has joined #ruby
NTrash has quit [Client Quit]
NTrash has joined #ruby
bsrd has joined #ruby
LambdaSix has joined #ruby
armyriad has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ych has quit [Ping timeout: 264 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
the_drow has joined #ruby
_sfiguser has quit [Ping timeout: 272 seconds]
mrwn has quit [Ping timeout: 272 seconds]
conta has joined #ruby
edwinvdgraaf has joined #ruby
SteenJobs has joined #ruby
aidalgol has quit [Quit: zZzZZZZzzzz]
conta has quit [Ping timeout: 272 seconds]
tty1 has joined #ruby
SteenJobs has quit [Ping timeout: 264 seconds]
tomphp has joined #ruby
ode_to_code has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tty1>
hey, so im brand new to ruby. Im curious, when I write a library some of the ruby files I write are intended to be "required" into applications that consume it. But other ruby files I write are only intended to be included indirectly (my main ruby file requires it but shouldnt be required directly). Is there some sort of naming convention or directory structure or something that would reflect this. like in javascript its typical to have an index
<tty1>
.js file and in python they use __init__ for that purpose.
_sfiguser has joined #ruby
Rickmasta has joined #ruby
last_staff has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
mrwn has joined #ruby
the_drow has quit [Ping timeout: 272 seconds]
the_drow has joined #ruby
tcrypt has quit [Ping timeout: 264 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tty1>
hanmac: wait i think thats different.. isnt that for determining hte entry point of an application? if so thats not exactly what i mean. I'm talking about the part of a library you can include that will include the whole library (require is what i mean by include)
bearche has joined #ruby
<hanmac>
ah about that part, checkout require_relative
tcrypt has quit [Ping timeout: 264 seconds]
<tty1>
hanmac: im familiar with require_relative, use it all the time.. i think you may not be understanding the question.. let me try to rephrase it, maybe that will help
tcrypt has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ARCADIVS has quit [Quit: ARCADIVS]
<tty1>
hanmac: I have 3 ruby files, each one with its own class in it, all in the same module. kiss.rb, kiss_serial.rb, and kiss_tcp.rb .. of these 3 files, the class in kiss has no use being instantiated directly, however kiss_serial and kiss_tcp both extend that class and do make sense being instantiated. Therefore if anyone requires the library then they would want to include kiss_serial and kiss_tcp but don't directly care about kiss. So I'd create
<tty1>
a 4th file called index.rb that includes kiss_serial.rb and kiss_tcp.rb but not kiss.rb. Then any application wishing to consume my library could just type require 'kisslib/index' but this seems cumbersome I'd rather them just be able to do require 'kisslib'
<tty1>
hanmac: but i dont know how to accomplish that
<hanmac>
you do a kisslib.rb which does require the other files in your wanted order
<tty1>
hmm
tomphp has joined #ruby
<tty1>
so id have a directory and an rb file by the same name?
<tty1>
I'd have kisslib/ and kisslib.rb both in the root folder together
<hanmac>
yeah that works
<tty1>
ok
nankyokusei has joined #ruby
zacstewart has joined #ruby
bsrd has quit [Quit: WeeChat 1.5]
pawnbox has quit [Remote host closed the connection]
<tty1>
hanmac: within the same gem you should always use require_relative and require is reserved for external dependencies?
<hanmac>
normally require_relative for internal, require for external stuff
CharlieLo has joined #ruby
nankyokusei has quit [Ping timeout: 272 seconds]
vitd has quit [Ping timeout: 264 seconds]
CharlieLo has quit [Ping timeout: 264 seconds]
prawnzy has joined #ruby
Velizar has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
pawnbox has joined #ruby
17SAAIEYV has joined #ruby
SteenJobs has joined #ruby
bearche has quit [Ping timeout: 272 seconds]
prawnzy has quit [Ping timeout: 264 seconds]
merlin2049er1 has quit [Quit: Leaving.]
17SAAIEYV has quit [Ping timeout: 264 seconds]
merlin2049er has joined #ruby
merlin2049er has quit [Client Quit]
beauby has joined #ruby
merlin2049er has joined #ruby
the_drow has quit [Ping timeout: 264 seconds]
SteenJobs has quit [Ping timeout: 264 seconds]
stamina has joined #ruby
biomass has quit [Quit: biomass]
last_staff has quit [Quit: last_staff]
g__l has quit [Read error: Connection reset by peer]
josuah has joined #ruby
bearche has joined #ruby
the_drow has joined #ruby
Guest41787 has quit [Ping timeout: 272 seconds]
djbkd has quit [Ping timeout: 264 seconds]
Velizar has quit [Quit: Velizar]
beauby has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
nuck has joined #ruby
nuck is now known as Guest34554
Gasher has joined #ruby
beauby has joined #ruby
webus has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
Guest34554 has quit [Read error: Connection reset by peer]
pwnd_nsfw has joined #ruby
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
NuckingFuts has joined #ruby
dling has quit [Ping timeout: 240 seconds]
yeticry has quit [Ping timeout: 244 seconds]
josuah has quit [Remote host closed the connection]
dling has joined #ruby
bsrd has joined #ruby
yeticry has joined #ruby
erlingur has quit [Ping timeout: 264 seconds]
pawnbox has quit [Read error: Connection reset by peer]
merlin2049er has quit [Quit: Leaving.]
pawnbox has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
merlin2049er has joined #ruby
djbkd has joined #ruby
merlin2049er has quit [Client Quit]
merlin2049er has joined #ruby
merlin2049er has quit [Client Quit]
the_drow has quit [Ping timeout: 264 seconds]
zacstewart has quit [Ping timeout: 264 seconds]
merlin2049er has joined #ruby
merlin2049er has quit [Client Quit]
merlin2049er has joined #ruby
c355e3b has joined #ruby
merlin2049er has quit [Client Quit]
merlin2049er has joined #ruby
zacstewart has joined #ruby
tcrypt has quit [Quit: _ノ乙(、ン、)_]
merlin2049er has quit [Client Quit]
merlin2049er has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
the_drow has joined #ruby
vitd has joined #ruby
beauby has quit [Read error: Connection reset by peer]
brendan- has joined #ruby
djbkd has joined #ruby
gingray has joined #ruby
daffy_duck_3 is now known as polkovnik
sdothum has joined #ruby
AlexRussia_ has quit [Ping timeout: 264 seconds]
P1ro has quit [Remote host closed the connection]
beauby has joined #ruby
ule has quit [Ping timeout: 264 seconds]
yokel has quit [Ping timeout: 244 seconds]
djbkd has quit [Ping timeout: 264 seconds]
teclator has joined #ruby
djbkd has joined #ruby
ode_to_code has quit [Quit: ode_to_code]
bearche has quit [Ping timeout: 264 seconds]
ule has joined #ruby
NTrash has quit [Ping timeout: 255 seconds]
mrwn has quit [Ping timeout: 272 seconds]
vitd has quit [Ping timeout: 264 seconds]
yokel has joined #ruby
CloCkWeRX has joined #ruby
NTrash has joined #ruby
bearche has joined #ruby
hk238 has quit [Remote host closed the connection]
NTrash has quit [Client Quit]
madgen has joined #ruby
sepp2k has joined #ruby
Devalo has joined #ruby
AltLock has joined #ruby
bearche has quit [Ping timeout: 244 seconds]
ta_ has quit [Remote host closed the connection]
urbanmonk has joined #ruby
josuah has joined #ruby
beauby has quit [Read error: Connection reset by peer]
djbkd has quit [Ping timeout: 264 seconds]
dunpeal has joined #ruby
beauby has joined #ruby
urbanmonk has quit [Client Quit]
djbkd has joined #ruby
josuah has quit [Remote host closed the connection]
josuah has joined #ruby
dunpeal has quit [Ping timeout: 244 seconds]
jonyijoe has quit []
JoshS has quit [Read error: Connection reset by peer]
hutch34 has joined #ruby
the_drow has quit [Ping timeout: 272 seconds]
mrwn has joined #ruby
the_drow has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
josuah has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
the_drow has quit [Ping timeout: 272 seconds]
dunpeal has joined #ruby
<tty1>
hey guys. I have the following line in python `return [ord(c) for c in read_data]` is there some similar and compact way to do this in ruby?
P1ro has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
the_drow has joined #ruby
boogeyman has quit [Quit: bb]
nankyokusei has joined #ruby
djbkd has joined #ruby
beauby has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 264 seconds]
the_drow has quit [Ping timeout: 272 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
bkxd has quit [Ping timeout: 244 seconds]
catphish has joined #ruby
beauby has joined #ruby
the_drow has joined #ruby
<catphish>
does anyone happen to know if there's a ruby implementation that could read an ext4 filesystem? i can't find anything, but thought it worth a quick ask
mrwn has quit [Ping timeout: 272 seconds]
hutch34 has quit [Ping timeout: 264 seconds]
Blaguvest has joined #ruby
prawnzy has joined #ruby
tvw has quit [Remote host closed the connection]
ta_ has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
prawnzy has quit [Ping timeout: 264 seconds]
csk has joined #ruby
tk2 has joined #ruby
beauby has quit [Read error: Connection reset by peer]
<apeiros>
it usually consists of a couple of files, containing modules and/or classes
<apeiros>
often packaged as a gem
<apeiros>
module, like classes, is a type of object in ruby and is part of the runtime
hk238 has joined #ruby
pwnd_nsfw has joined #ruby
nettoweb has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
the_drow has quit [Read error: Connection reset by peer]
pwnd_nsfw` has quit [Ping timeout: 272 seconds]
l4v2 has left #ruby [#ruby]
the_drow has joined #ruby
the_drow has quit [Remote host closed the connection]
djbkd has joined #ruby
webus has joined #ruby
conta has joined #ruby
codelogix has joined #ruby
<Jakey3>
if i install rvm as root, then add a user, he user cannot do rvm get head, receive an error Archives path '/usr/local/rvm/archives' not writable, aborting.
<Jakey3>
i want it availible system wide
lel has joined #ruby
<fredolinhares>
Is not secure to let it availabel system wide.
sandelius has joined #ruby
madgen has quit [Ping timeout: 265 seconds]
pawnbox has quit [Remote host closed the connection]
jcao219 has quit [Ping timeout: 244 seconds]
synne has joined #ruby
banisterfiend has joined #ruby
beauby has quit [Read error: Connection reset by peer]
despai has quit [Read error: Connection reset by peer]
despai has joined #ruby
djbkd has joined #ruby
dmr8 has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_sfiguser has quit [Ping timeout: 272 seconds]
brendan- has joined #ruby
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
beauby has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
AltLock has quit [Ping timeout: 264 seconds]
beauby has joined #ruby
the_drow has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
despai has quit [Quit: This computer has gone to sleep]
xentity1x has quit [Ping timeout: 272 seconds]
A124 has quit [Read error: No route to host]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codelogix has joined #ruby
MrLocal has joined #ruby
RegulationD has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
A124 has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
dagda1 has joined #ruby
<MrLocal>
Hello, i try to make a simple web spider. Is ther any gem for a DSL? The user should upload a file with instructions so that the spider take execute this. For Example: Go to www.example.com ; download this file
dviola has joined #ruby
hammond has quit [Ping timeout: 244 seconds]
_sfiguser has joined #ruby
codelogix has quit [Ping timeout: 252 seconds]
SteenJobs has quit [Quit: SteenJobs]
abernstein has quit [Quit: abernstein]
RegulationD has quit [Ping timeout: 264 seconds]
MrLocal has quit [Quit: Page closed]
the_drow has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
charliesome has joined #ruby
SteenJobs has joined #ruby
chrisco has joined #ruby
the_drow has joined #ruby
nettoweb1 has joined #ruby
cdg has quit [Remote host closed the connection]
beauby has quit [Read error: Connection reset by peer]
the_drow has quit [Read error: Connection reset by peer]
hammond has joined #ruby
hammond has joined #ruby
hammond has quit [Changing host]
hammond has joined #ruby
charliesome has quit [Client Quit]
nettoweb has quit [Read error: Connection reset by peer]
jcao219 has joined #ruby
the_drow has joined #ruby
charliesome has joined #ruby
beauby has joined #ruby
kith_ is now known as kith
codelogix has joined #ruby
chrisco has quit []
the_drow has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NTrash has quit [Quit: Konversation terminated!]
the_drow has joined #ruby
NTrash has joined #ruby
codelogix has quit [Ping timeout: 252 seconds]
beauby has quit [Ping timeout: 265 seconds]
Cohedrin has joined #ruby
bsrd has joined #ruby
Devalo has quit [Read error: Connection reset by peer]
Devalo_ has joined #ruby
bsrd has quit [Client Quit]
Cohedrin_ has joined #ruby
Devalo_ has quit [Read error: Connection reset by peer]
roflmyeggo has quit [Quit: Lost terminal]
the_drow has quit [Read error: Connection reset by peer]
Devalo has joined #ruby
sandelius has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin has quit [Ping timeout: 264 seconds]
jaguarmagenta has quit [Ping timeout: 264 seconds]
nettoweb1 has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
nettoweb has joined #ruby
Devalo has quit [Read error: Connection reset by peer]
Devalo has joined #ruby
sandelius has joined #ruby
the_drow has joined #ruby
Madplatypus has joined #ruby
madgen has joined #ruby
lel has quit [Quit: leaving]
boogeyman has quit [Quit: bb]
[k-_ has quit [Ping timeout: 264 seconds]
boogeyman has joined #ruby
codelogix has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
prawnzy has quit [Remote host closed the connection]
madgen has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beecushman has joined #ruby
AlphaAtom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has quit [Quit: Leaving...]
nankyokusei has joined #ruby
codelogix has quit [Ping timeout: 244 seconds]
brt has quit [Ping timeout: 244 seconds]
vuoto has joined #ruby
the_drow has joined #ruby
jaguarmagenta has quit [Ping timeout: 252 seconds]
Devalo has quit [Remote host closed the connection]
dmr8 has joined #ruby
the_drow has joined #ruby
conta has quit [Ping timeout: 265 seconds]
codelogix has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
Immune has joined #ruby
codelogix has quit [Ping timeout: 248 seconds]
Naz has joined #ruby
jcao219 has quit [Ping timeout: 252 seconds]
the_drow has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
webus has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
cyphase has quit [Ping timeout: 252 seconds]
stupidystupid has joined #ruby
prawnzy has quit [Remote host closed the connection]
Jackneill has quit [Remote host closed the connection]
cyphase has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
ruby-lang564 has joined #ruby
<ruby-lang564>
hello friends; anyone have an idea why `Process.clock_gettime(Process::CLOCK_MONOTONIC)` would throw `Errno::EINVAL: Invalid argument` on mac os 10.11?
Gasher has quit [Ping timeout: 244 seconds]
aidalgol has joined #ruby
alaibe has joined #ruby
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Nilium>
So, not Sierra?
dagda1 has joined #ruby
<Nilium>
Was it a build _for_ Sierra?
<ruby-lang564>
no, the build was for el capitan
beecushman has joined #ruby
<Nilium>
The syscalls for getting time changed in Sierra, so I'm not sure there.
<ruby-lang564>
i'm attempting to reinstall it right now from source to see if that allows it to define CLOCK_GETTIME
<ruby-lang564>
but i wasn't able to find anyone else with this problem, so I'm wondering what happened :-/
<Nilium>
That said, Ruby should be using libc, so it shouldn't be affected either
<Nilium>
s/syscalls/syscall/
<ruby-lang564>
yea, perhaps it might be easiest to just upgrade this laptop
<ruby-lang564>
welp, reinstalling from source instead of pouring the bottled homebrew install fixed it. i guess the el capitan version had a weird linking error or something
madgen has joined #ruby
<matthewd>
The docs do mention Darwin under "Emulations for CLOCK_MONOTONIC:".. maybe it decides which to use at compile time, and El Capitan supports the call natively?
dmr8 has quit [Quit: Leaving]
beecushman has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]