havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
ap4y1 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
ap4y has quit [Ping timeout: 260 seconds]
<elomatreb> If it's an Object it should have an #inspect, only BasicObject[-derived] doesn't have that
mim1k has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
centrx has joined #ruby
centrx has quit [Changing host]
centrx has joined #ruby
ap4y1 has quit [Quit: WeeChat 1.9.1]
howdoi has joined #ruby
gustavo_ has quit [Remote host closed the connection]
ap4y has joined #ruby
<havenwood> >> Object.new.inspect
<ruby[bot]> havenwood: # => "#<Object:0x40899c58>" (https://eval.in/886243)
pryorda has quit [Ping timeout: 260 seconds]
alnewkirk has joined #ruby
jenrzzz has joined #ruby
Cork has joined #ruby
ycycling has quit [Ping timeout: 260 seconds]
hahuang65 has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
bruno- has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
megamosaren has quit [Ping timeout: 255 seconds]
Cohedrin_ has quit [Read error: Connection reset by peer]
cdg has joined #ruby
Cork has quit [Ping timeout: 258 seconds]
PresidentBiscuit has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
enterprisey has joined #ruby
Cohedrin_ has joined #ruby
pryorda has joined #ruby
centrx has quit []
dviola has joined #ruby
kapil___ has joined #ruby
rajno has quit [Ping timeout: 240 seconds]
<latemus> thx
modin has joined #ruby
rajno has joined #ruby
<latemus> inspect just gives the object id, not it's content
<latemus> if i convert to an array i see more. is there way to dump the object?
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has joined #ruby
alnewkirk has joined #ruby
Cork has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
jxv has joined #ruby
sepp2k has quit [Quit: Leaving.]
jenrzzz has quit [Ping timeout: 240 seconds]
troys_ is now known as troys
kculpis has joined #ruby
vee__ has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
fmcgeough has joined #ruby
AndBobsYourUncle has joined #ruby
Cork has quit [Ping timeout: 240 seconds]
micahf has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
AndBobsYourUncle has quit [Ping timeout: 240 seconds]
alnewkirk has joined #ruby
bmurt has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
zanoni_ has joined #ruby
raatiniemi has quit [Quit: No Ping reply in 180 seconds.]
zanoni has quit [Ping timeout: 255 seconds]
zanoni_ is now known as zanoni
AnoHito_ has joined #ruby
raatiniemi has joined #ruby
ForeignBiscuit has joined #ruby
ForeignBiscuit has quit [Max SendQ exceeded]
Cork has joined #ruby
|ifei5good has joined #ruby
ForeignBiscuit has joined #ruby
ForeignBiscuit has quit [Max SendQ exceeded]
AnoHito has quit [Read error: Connection reset by peer]
ForeignBiscuit has joined #ruby
ForeignBiscuit has quit [Max SendQ exceeded]
k3rn31_ has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ForeignBiscuit has joined #ruby
ForeignBiscuit has quit [Max SendQ exceeded]
ForeignBiscuit has joined #ruby
ForeignBiscuit has quit [Max SendQ exceeded]
John___ has quit [Read error: Connection reset by peer]
vee__ has joined #ruby
veloutin has quit [Ping timeout: 260 seconds]
quiller has quit [Ping timeout: 240 seconds]
|ifei5g00d has quit [Ping timeout: 260 seconds]
Xeago has quit [Ping timeout: 260 seconds]
ForeignBiscuit has joined #ruby
Cohedrin_ has joined #ruby
x0f has quit [Ping timeout: 240 seconds]
marens has quit [Read error: Connection reset by peer]
marens has joined #ruby
ResidentBiscuit has quit [Ping timeout: 240 seconds]
jgt has quit [Ping timeout: 240 seconds]
k3rn31 has quit [Ping timeout: 240 seconds]
oetjenj has joined #ruby
veloutin has joined #ruby
Xeago has joined #ruby
jolamb has quit [Ping timeout: 260 seconds]
quiller has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
|ifei5good has quit [Ping timeout: 240 seconds]
x0f has joined #ruby
jolamb has joined #ruby
oleo has quit [Ping timeout: 258 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<havenwood> larissa: You can define #inspect. Say more about what you have and what you'd like it to look like?
<havenwood> oops, wrong nick!
|ifei5g00d has joined #ruby
<havenwood> latemus: ^
pilne has joined #ruby
jphase has joined #ruby
<havenwood> latemus: You may like the default class behavior, exposing instance variables.
<latemus> havenwood: thank you
ap4y has quit [Ping timeout: 240 seconds]
creat has quit [Ping timeout: 255 seconds]
kent\n has quit [Read error: Connection reset by peer]
imode has joined #ruby
pygospa has quit [Ping timeout: 255 seconds]
kent\n has joined #ruby
creat has joined #ruby
PresidentBiscuit has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 248 seconds]
pygospa has joined #ruby
|ifei5good has joined #ruby
RickHull has joined #ruby
Cohedri__ has joined #ruby
|ifei5g00d has quit [Ping timeout: 240 seconds]
troys is now known as troys_
d^sh has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
biox is now known as droapoedsp
droapoedsp is now known as biox
d^sh has joined #ruby
Cohedrin_ has quit [Ping timeout: 258 seconds]
biox_ has quit [Quit: brb servers are ded]
wald0 has quit [Quit: Lost terminal]
alfiemax has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
jrafanie has joined #ruby
enterprisey has quit [Ping timeout: 255 seconds]
Cohedri__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin_ has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
uZiel has joined #ruby
ozcanesen has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has quit [Remote host closed the connection]
enterprisey has joined #ruby
gizmore has joined #ruby
Technodrome has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
gusrub has joined #ruby
|ifei5good has quit [Ping timeout: 248 seconds]
gizmore|2 has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
jgt has joined #ruby
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
|ifei5g00d has joined #ruby
MrBusiness has joined #ruby
orbyt_ has joined #ruby
gusrub has quit [Remote host closed the connection]
micahf has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin_ has quit [Read error: Connection reset by peer]
|ifei5g00d has quit [Ping timeout: 240 seconds]
Cohedrin_ has joined #ruby
apeiros has joined #ruby
jphase has quit [Remote host closed the connection]
ap4y has joined #ruby
hahuang65 has joined #ruby
DTZUZO has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
marxarelli is now known as marxarelli|afk
|ifei5g00d has joined #ruby
jolamb has quit [Read error: Connection reset by peer]
oleo has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
Azure|dc has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
fullstack has quit [Ping timeout: 264 seconds]
jphase has joined #ruby
fullstack has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
jolamb has joined #ruby
cdg has quit [Remote host closed the connection]
Technodrome has joined #ruby
kies has quit [Ping timeout: 258 seconds]
oetjenj has quit [Read error: Permission denied]
|ifei5g00d has quit [Ping timeout: 248 seconds]
oetjenj has joined #ruby
mjolnird has quit [Quit: Leaving]
|ifei5g00d has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
govg has quit [Ping timeout: 260 seconds]
govg has joined #ruby
Cohedrin_ has joined #ruby
chouhoulis has joined #ruby
astrobunny has joined #ruby
govg has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
lacour has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Read error: No route to host]
|ifei5g00d has quit [Ping timeout: 248 seconds]
|ifei5g00d has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
jphase has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
jphase has joined #ruby
jgt has quit [Ping timeout: 255 seconds]
DTZUZO has quit [Ping timeout: 240 seconds]
jphase_ has joined #ruby
jphase__ has joined #ruby
ap4y has quit [Quit: WeeChat 1.9.1]
jphase has quit [Ping timeout: 258 seconds]
ap4y has joined #ruby
|ifei5g00d has quit [Ping timeout: 258 seconds]
jphase has joined #ruby
c_nick has joined #ruby
jphase_ has quit [Ping timeout: 258 seconds]
ledestin has joined #ruby
|ifei5g00d has joined #ruby
jphase__ has quit [Ping timeout: 255 seconds]
hahuang65 has joined #ruby
zanoni has quit [Ping timeout: 248 seconds]
jphase has quit [Ping timeout: 258 seconds]
meinside has joined #ruby
hahuang65 has quit [Ping timeout: 258 seconds]
uZiel has joined #ruby
astrobunny has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has quit [Ping timeout: 248 seconds]
dviola has quit [Quit: WeeChat 1.9.1]
Cohedrin_ has quit [Read error: Connection reset by peer]
Cohedrin_ has joined #ruby
<c_nick> is it possible to call a ruby function only on form submit through HAML or is there a better way to achieve this?
gix has joined #ruby
govg has joined #ruby
<RickHull> i don't see why not. using rails? IIRC haml just defines the html, which defines the form. how you handle GET/POST params is ostensibly separate
hahuang65 has joined #ruby
astrobunny has joined #ruby
<c_nick> RickHull, I have created a User Interface where i give all the options to the User and use his selection and create a query which i show in a div, is there a way by which i can send this content from the div back to my route ?
alfiemax has joined #ruby
<c_nick> for now i am sending the form elements and concatenating the elements in the ruby like i do in JS which is literally doing things twice
<c_nick> i am using Sinatra Haml no Rails
<RickHull> is the query created on the server or the client?
|ifei5g00d has quit [Ping timeout: 260 seconds]
<c_nick> thats a good question .. I am doing all of that in JS so in the Client.. but this sinatra app is not really a server-client .. its like an App so in this case server and client are one
<RickHull> if the client owns the query, then the client will have to submit that created query via GET/POST on the form submit
<RickHull> right?
<c_nick> yes
<RickHull> in your param handler on the server, you can do your function when you receive e.g. POST['the_query']
<c_nick> submit the created query via GET/POST is what i am looking for .. for now when i click on submit i get all the params but they essentially only include the input tags i am not entirely sure how i can pass a div innerhtml to a form
<RickHull> via JS I think
<RickHull> that div would need to be contained in the HTML <form>
<RickHull> and tagged as in input, maybe?
<RickHull> via HTML ultimately, I would think. but you can manipulate the DOM with JS maybe?
<c_nick> its in the form .. hmm perhaps if i make it a TextArea .. let me see
<RickHull> you can style the TextArea to look like a regular div
<c_nick> that seems like a good option .. as i am not really in the favour of doing it once in JS then again in Ruby.. then maintain both till the end.. thats sad
<c_nick> I will try and see Thanks RickHull :-)
<RickHull> good luck, cheers :)
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has joined #ruby
<c_nick> thanks RickHull, Works well! :-)
<c_nick> Now off to styling ... :)
|ifei5g00d has joined #ruby
<RickHull> think about whether or not you want the user to edit the textarea. might be cool, maybe not
<RickHull> style accordingly
<RickHull> i think you can probably inject the query string into the form submission without an explicit input
<c_nick> i want that text area to be a read only bit .. ie. u can copy from the UI and paste on the cmd ..
<RickHull> textarea is probably fine for a prototype. you can display it and submit it more cleanly in v2
apeiros has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
<c_nick> yes seems like the right foot forward, many thanks RickHull, :)
c_nick has quit [Quit: ciaos]
apeiros has quit [Ping timeout: 255 seconds]
Yzguy has joined #ruby
ozcanesen has quit [Quit: ozcanesen]
|ifei5g00d has quit [Ping timeout: 260 seconds]
fullstack has quit [Ping timeout: 260 seconds]
cschneid_ has joined #ruby
fullstack has joined #ruby
mikecmpbll has joined #ruby
kies has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
|ifei5g00d has joined #ruby
Technodrome has joined #ruby
fullstack has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
fullstack has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
jphase has joined #ruby
mim1k has joined #ruby
jphase_ has joined #ruby
jphase__ has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase___ has joined #ruby
jphase has quit [Ping timeout: 255 seconds]
mim1k has quit [Ping timeout: 260 seconds]
jphase_ has quit [Ping timeout: 252 seconds]
jphase__ has quit [Ping timeout: 252 seconds]
cdg has joined #ruby
jphase___ has quit [Ping timeout: 252 seconds]
cdg has quit [Ping timeout: 252 seconds]
alfiemax has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Dimik has joined #ruby
Cohedrin_ has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
govg has quit [Ping timeout: 260 seconds]
alex`` has joined #ruby
cschneid_ has quit [Remote host closed the connection]
govg has joined #ruby
cschneid_ has joined #ruby
biberu has joined #ruby
mim1k has quit [Ping timeout: 252 seconds]
jphase has joined #ruby
jphase_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has quit [Ping timeout: 252 seconds]
jphase has joined #ruby
jphase_ has quit [Ping timeout: 252 seconds]
jphase_ has joined #ruby
guacamole has joined #ruby
jphase has quit [Ping timeout: 255 seconds]
jphase__ has joined #ruby
jphase_ has quit [Ping timeout: 255 seconds]
brian__ has joined #ruby
|ifei5g00d has quit [Ping timeout: 240 seconds]
enterprisey has quit [Quit: Leaving]
jphase__ has quit [Ping timeout: 255 seconds]
|ifei5g00d has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
jgt has joined #ruby
jxv has joined #ruby
|ifei5g00d has quit [Ping timeout: 260 seconds]
brian__ has quit [Ping timeout: 260 seconds]
jgt has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
theory4000 has joined #ruby
|ifei5g00d has joined #ruby
prutheus has quit [Quit: Page closed]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 255 seconds]
gigetoo has joined #ruby
jxv has joined #ruby
troys_ is now known as troys
Silthias1 has joined #ruby
LocaMocha has joined #ruby
Silthias has quit [Ping timeout: 248 seconds]
ta has quit [Remote host closed the connection]
djbkd has joined #ruby
Macaveli has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgt has joined #ruby
aupadhye has joined #ruby
theory4000 has quit [Ping timeout: 260 seconds]
jxv has joined #ruby
cschneid_ has quit [Remote host closed the connection]
jphase has joined #ruby
cschneid_ has joined #ruby
oleo has quit [Quit: Leaving]
|ifei5g00d has quit [Ping timeout: 260 seconds]
<latemus> is run() like a subshell?
hutch34 has joined #ruby
<Radar> is what now
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
andikr has joined #ruby
<latemus> soryr
jphase has quit [Ping timeout: 246 seconds]
jphase has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
|ifei5g00d has joined #ruby
troys has quit [Quit: Bye]
jphase has quit [Ping timeout: 246 seconds]
kernelPaniq has quit [Remote host closed the connection]
Devalo has joined #ruby
cgfbee has quit [Quit: cgfbee]
jenrzzz has quit [Ping timeout: 248 seconds]
Dimik has quit [Ping timeout: 248 seconds]
fullstack has quit [Ping timeout: 246 seconds]
fullstack has joined #ruby
jottr has joined #ruby
anisha_ has joined #ruby
segy has quit [Quit: ZNC - http://znc.in]
Devalo has quit [Remote host closed the connection]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
segy has joined #ruby
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
Devalo has joined #ruby
cschneid_ has joined #ruby
Devalo has quit [Remote host closed the connection]
jenrzzz has joined #ruby
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
rabajaj has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Heph_ has joined #ruby
Devalo has quit [Ping timeout: 240 seconds]
conta has joined #ruby
kculpis has quit [Ping timeout: 240 seconds]
pilne has quit [Quit: Quitting!]
jenrzzz has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
nick123 has joined #ruby
snickers has joined #ruby
Devalo has joined #ruby
RedNifre has joined #ruby
RedNifre is now known as Guest96661
Devalo has quit [Ping timeout: 246 seconds]
fclausen has quit [Ping timeout: 248 seconds]
|ifei5g00d has quit [Ping timeout: 258 seconds]
apeiros has joined #ruby
|ifei5g00d has joined #ruby
lacour has quit [Quit: Leaving]
Devalo has joined #ruby
mjolnird has joined #ruby
cschneid_ has joined #ruby
Devalo has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Ping timeout: 255 seconds]
djbkd has quit []
mank has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
djbkd has joined #ruby
morfin has joined #ruby
<morfin> if i have Base with method foo and derived which does not implement this method should i raise NoMethodError?
alveric2 has quit [Quit: WeeChat 1.9.1]
<morfin> in Base.foo
<morfin> i should signl somehow that method is not implemented but NotImplementedError seems to be wrong choice
ta has joined #ruby
Freshnuts has joined #ruby
<Nilium> foo in base foo is 4.
<morfin> ?
* Nilium crawls back into the bad joke pit from whence he came.
<morfin> def rand 4 end
JoL1hAHN has quit [Ping timeout: 255 seconds]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
<matthewd> morfin: Have you considered not defining the method?
ioggstream has joined #ruby
<morfin> i was thinking to have methods in base class but throw NoMethodError or something if not implemented in subclass
andikr has quit [Remote host closed the connection]
<morfin> >> class Base def test() raise NoMethodError end end class Derived < Base def test() puts "Derived.test" end end Derived.new.test
<ruby[bot]> morfin: # => /tmp/execpad-7fb7d0021bb8/source-7fb7d0021bb8:2: syntax error, unexpected keyword_class, expecting k ...check link for more (https://eval.in/886385)
JoL1hAHN has joined #ruby
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
<matthewd> Why?
<morfin> oops
<morfin> just move shared implementations of methods to Base?
<morfin> and leave rest of methods in derived from Base classes
Devalo has quit [Ping timeout: 260 seconds]
|ifei5g00d has quit [Ping timeout: 264 seconds]
Tempesta has quit [Quit: See ya!]
cschneid_ has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
Tempesta has joined #ruby
cdg has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
claudiuinberlin has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
<ljarvis> NotImplementedError seems perfect for this if it's something derived classes are meant to implement
<matthewd> NotImplementedError is a very bad solution for this: an exception is more than its name
<dminuoso> ljarvis: considering how its used in ruby core and stlib no.
<dminuoso> ljarvis: NotImplementedError is conventionally used in situations when a given functionality is not implemented for some target platform.
<ljarvis> well now if that's how we thought about ruby code all of our code would be awful
<ljarvis> so they used a too generic exception for their use-case
mark_66 has joined #ruby
<matthewd> ljarvis: And if we started raising non-StandardError exceptions for simple runtime issues, all of our code would be awful
|ifei5g00d has joined #ruby
Technodrome has joined #ruby
<dminuoso> ljarvis: Something like this is what I've been working on (thanks to matthewd for refining my earlier version) to force users to implement a given interface: https://eval.in/886401
zautomata has quit [Ping timeout: 240 seconds]
Defenestrate has joined #ruby
alfiemax has quit [Remote host closed the connection]
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
alfiemax has joined #ruby
|ifei5g00d has quit [Ping timeout: 240 seconds]
zautomata has joined #ruby
<dminuoso> Though I suppose it'd be harder to do this with inheritance.
marr has joined #ruby
Devalo has joined #ruby
<matthewd> dminuoso: I was wondering about deferring the check to .new -- initially just so you can put the includes before the methods, but it might help here too
<matthewd> Much less "compile-time"-y though
<ljarvis> Right, I agree it's not optimal, but also Ruby does not have good tools for defining these sort of interfaces. Having nothing and raising NoMethodError is definitely not enough
alfiemax has quit [Ping timeout: 255 seconds]
<matthewd> I think I might do it with rdoc + method_missing, personally
<ljarvis> that's not a bad shout
<matthewd> rdoc to define the call-seq, document the method's intent, and make it look like the abstract class has it
<matthewd> method_missing with a list of abstract methods to still raise a NoMethodError, but give a better "oi, you should've implemented this in your subclass" message
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Devalo has quit [Ping timeout: 246 seconds]
|ifei5g00d has joined #ruby
andikr has joined #ruby
Cohedrin_ has quit [Quit: Textual IRC Client: www.textualapp.com]
alfiemax has joined #ruby
jgt has quit [Ping timeout: 264 seconds]
megamosaren has joined #ruby
cschneid_ has joined #ruby
ldepandis has joined #ruby
faces has joined #ruby
Technodrome has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Remote host closed the connection]
Silthias has joined #ruby
prutheus has joined #ruby
jphase has joined #ruby
Silthias1 has quit [Ping timeout: 248 seconds]
<prutheus> Hey. I use ruby for data processing and calculation tasks. I want to build a new PC with better performance. But I am not quite sure what kind of processor I should buy. Can the standard ruby interpreter do real multithreading, or do I not need a lot of cores/threads but a lot of cpu speed? what is good/what do I not need?
jphase_ has joined #ruby
jxv has joined #ruby
jphase has quit [Ping timeout: 252 seconds]
djbkd has quit []
jphase has joined #ruby
jphase_ has quit [Ping timeout: 252 seconds]
quobo has joined #ruby
postmodern has quit [Quit: Leaving]
rajnoT has joined #ruby
<dminuoso> prutheus: It can do real multithreading but with a catch.
<prutheus> yes?
jphase_ has joined #ruby
<dminuoso> prutheus: In MRI the VM has whats called a global VM lock which prevents most regular kinds of parallelism.
rajno has quit [Ping timeout: 240 seconds]
jphase has quit [Ping timeout: 246 seconds]
frmendes has joined #ruby
<prutheus> dminuoso: Well, what is MRI?
<dminuoso> prutheus: Short story is: In MRI the only parallelism you get is with I/O or specially written native extensions.
frmendes is now known as fribmendes
<dminuoso> prutheus: Matz Ruby Interpreter, the "regular ruby implementation"
<prutheus> ok
<dminuoso> prutheus: However, JRuby has no such lock, so you get full parallelism in ruby land.
<prutheus> and when I use an other interpreter, i can get real multithreading? ok
<dminuoso> But you still have native threads in MRI for concurrency.
guille-moe has joined #ruby
<matthewd> If your data processing and calculation is parallelizable, you can run multiple MRI processes -- or use JRuby
<prutheus> ok buttt question: is my default program multithreaded then or only when I use threads in my program?
<dminuoso> prutheus: Unless you explicitly create threads, you only have the main thread (and some internal threads you dont need to worry about)
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase_ has quit [Ping timeout: 246 seconds]
Devalo has joined #ruby
zautomata has quit [Ping timeout: 240 seconds]
aufi has joined #ruby
Prutheus_ has joined #ruby
<Prutheus_> sorry got dc
prutheus has quit [Ping timeout: 260 seconds]
FastJack has quit [Ping timeout: 258 seconds]
<Prutheus_> So even when I use jRuby, I still need to program threads with thread.new right?
<dminuoso> Prutheus_: If you want to do multithreading, you have to create threads, yes.
Devalo has quit [Ping timeout: 260 seconds]
jottr has joined #ruby
rahul_bajaj has joined #ruby
<dminuoso> matthewd: it's still frustrating. I've been working with webpack-dev-server for over a year now, and not once did I have comparable issues.
<Prutheus_> Ok. And what kind of cpu is good for multithread, what for single?
ur5us has joined #ruby
<dminuoso> Prutheus_: Ignoring a lot of the finer details, it's basically just about the number of physical cores. Ignore "hyperthreading", it's just a marketing gag.
<matthewd> Prutheus_: It sounds like you're solving things in an odd order
<dminuoso> Oh also I seem to have switched channels.
rabajaj has quit [Ping timeout: 260 seconds]
cschneid_ has joined #ruby
ldepandis has quit [Ping timeout: 252 seconds]
<Prutheus_> so a cpu with some chores and high clock would be perfect?
<Prutheus_> Why a strange order?
jottr has quit [Ping timeout: 255 seconds]
jphase has joined #ruby
<greenbagels> Prutheus_: your workload with parallelism will always be limited to the number of available threads on your cpu
<dminuoso> Prutheus_: You have not even implemented your data-processing yet. Also, most frequently performance problems arise from poor code.
<matthewd> ^
<greenbagels> clockrate is not a factor in whether your program will benefit from multithreading
<greenbagels> data dependence and # of threads (as well as % of your code that will be parallelized) are more significant
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
jgt has joined #ruby
<greenbagels> (as well as the difficulty of your problem itself, parallelizing something like an array summation function might actually end up slowing down your code)
ur5us has quit [Remote host closed the connection]
<Prutheus_> What would be more worth for me? AMD FX 8350 or i3 8750K or neither?
Devalo has joined #ruby
mim1k has joined #ruby
lel has quit [K-Lined]
cschneid_ has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
Yzguy has quit [Quit: Zzz...]
<greenbagels> If this is a serious project, I'd probably have to say a xeon with 16 threads
<greenbagels> you could even buy a dual socket system for 32+ threads if you so desire
<dminuoso> Prutheus_: Stop worrying about buying adequate hardware. In my experience, you buy dedicated hardware after you have a) written the software, b) profiled it, c) optimized it, and d) have an idea of what you need, and why you need it.
<greenbagels> and what dminuoso said
ioggstream has quit [Ping timeout: 240 seconds]
<greenbagels> see if your code is at the point where you know it'll actually significantly benefit from multiple threads
<Prutheus_> No because currently I am working in my notebook but I want to build a PC with a lot of RAM and good CPU to work on that in future
jphase has quit [Ping timeout: 255 seconds]
<matthewd> Prutheus_: Perhaps you can expand on "data processing and calculation tasks"?
<matthewd> 'cos that's kinda what computers do
<Prutheus_> Ok. For example, my most recent project crawls market data, enter it into several files, do a lot of computations on it and give me some results
<matthewd> How much data? How long does it take, and how long do you want it to take?
ap4y has quit [Quit: WeeChat 1.9.1]
<dionysus69> in this specific case ,is it better to use => format rather than this ? "1d": 1
<dionysus69> rubocop is complaining, i dont know how fair it is
<Prutheus_> 200 CSV files with each 20k rows and 100 cols
<tobiasvl> dionysus69: well, they don't do the same thing. using : makes the key a symbol, using the => rocket makes it a string
<Prutheus_> Takes very long, needs lot lot RAM and should be very faster with new pc
<matthewd> dionysus69: Up to you
<matthewd> Prutheus_: That doesn't sound like much data at all. You'd probably be better off improving your code.
<dionysus69> tobiasvl: you sure? I thought both were same in context of a hash key value assignment
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Paraxial has joined #ruby
<Prutheus_> No it is a lot. On each I do 187 TA calculations which are pretty slow. Whatever, I want to use the new pc for my future tasks, too
<tobiasvl> >> {"1d": 1}
<ruby[bot]> tobiasvl: # => {:"1d"=>1} (https://eval.in/886428)
<tobiasvl> >> {"1d" => 1}
<ruby[bot]> tobiasvl: # => {"1d"=>1} (https://eval.in/886429)
<tobiasvl> dionysus69: ^
Devalo has quit [Ping timeout: 255 seconds]
<dionysus69> tobiasvl: ok I understood :) thanks
<matthewd> Prutheus_: Okay; I don't know what a TA calculation is ¯\_(ツ)_/¯
<Prutheus_> Some market calcs , see ta-lib
<matthewd> I'm not saying "don't buy a new computer"; I'm saying "I doubt buying a new computer will be an effective solution to improving your run time"
<dminuoso> tobiasvl: => doesn't make it a string, it just leaves it as is.
<Prutheus_> At least cause of the more RAM it is, because I can store more data in arrays and can work faster with them?
<dminuoso> tobiasvl: Might sound pedantic, but turns out you can use pretty much anything as a key in hash. :P
<tobiasvl> dminuoso: yes, of course. I meant in his specific example. but good clarification
<dminuoso> Ah nevermind then.
claudiuinberlin has joined #ruby
<matthewd> dminuoso: It's only pedantic in the sense that I'm pretty sure all three of you know exactly how a hash works, and no-one said anything that implied otherwise :P
<dminuoso> Prutheus_: If you can show us your code, we might be able to provide some insights in your mistakes.
ioggstream has joined #ruby
<dminuoso> matthewd: Oh well. :)
mjolnird has quit [Quit: Leaving]
<Prutheus_> Yes good idea, but this idea is not based on the code. It is based with the idea that I will work on it in future tasks then. So do I need a fast lowcore cpu or much more and and and? I just have problems to identify a good processor
<matthewd> Prutheus_: Yes, if you have more RAM, you can put more things in memory; and yes, it is faster to work with data that's in memory. But the path to faster code is almost always to do less work, not to do it faster.
<Prutheus_> Yes I understand, but please help diciding a cpu ^^
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
<matthewd> Is there really that much variability of clockspeed-vs-cores trade-off these days? (at a given budget level)
Devalo has joined #ruby
<Prutheus_> You remember the 2 CPU I mentioned?
<dminuoso> matthewd: Yes.
sekmo has joined #ruby
<matthewd> "i3 8750K"?
<Prutheus_> 8350k is what I meant
<sekmo> Hi everyone! I'm looking for very simple ruby katas in order to get good with object modelling with Ruby. Could you send me some simple examples?
workmad3 has joined #ruby
Devalo has quit [Ping timeout: 258 seconds]
<sekmo> I've found the famous elevator and bowling problems.. but I'm looking for something simpler :- )
<sekmo> actually, something very simple and oop-oriented :-)
Siyfion has joined #ruby
ioggstream has quit [Ping timeout: 248 seconds]
<Prutheus_> matthewd you see it is not easy
ioggstream has joined #ruby
Beams has joined #ruby
<matthewd> Prutheus_: I'd go with the much faster, brand new, Intel 4-core over the slower, 5-year-old, AMD 8-core. Personally.
<Prutheus_> Ok thanks. But can you also tell me what I should look at when I may want to search for another one?
Cork has quit [Ping timeout: 248 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthewd> I'd say the first four cores are more important than the ones after that, to me
rabajaj has joined #ruby
<Prutheus_> What do you mean with that?
<matthewd> Given that those extra 4 cores seems to be the only thing the AMD chip has going for it, the Intel seems an easy win in that particular comparison
Guest28041 has joined #ruby
<dminuoso> Slapping more cores is not necessarily a benefit because they ultimately share a critical resource: the single memory bus.
<Prutheus_> Ahh ok
<dminuoso> Which is why 8-core processors are not universally better in multithreading situations than 4-core processors.
<matthewd> 4 cores will be noticeably better than 2 cores; I don't think 8 cores will be noticeably better than 4. (For most workloads, ymmv, etc)
rahul_bajaj has quit [Ping timeout: 248 seconds]
<Prutheus_> Very thanks for this session. I learned allot from you thanks
pmunt_ has quit [Remote host closed the connection]
alexday has joined #ruby
pmunt_ has joined #ruby
alexday has left #ruby ["WeeChat 1.8"]
imode has quit [Ping timeout: 260 seconds]
flips has quit [Quit: bbl ...]
voiceftp has joined #ruby
jaruga has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cork has joined #ruby
yCrazyEdd has quit [Ping timeout: 260 seconds]
Prutheus_ has quit [Ping timeout: 260 seconds]
pax has joined #ruby
pax has quit [Changing host]
pax has joined #ruby
pax is now known as Guest74772
jinie_ has quit [Remote host closed the connection]
rajno has joined #ruby
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
rajnoT has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 255 seconds]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
jgt has quit [Read error: Connection reset by peer]
Serpent7776 has joined #ruby
ioggstream has quit [Ping timeout: 246 seconds]
Devalo has joined #ruby
shoogz has joined #ruby
mim1k has joined #ruby
claudiuinberlin has joined #ruby
ferr has joined #ruby
jgt has joined #ruby
Burgestrand has joined #ruby
ioggstream has joined #ruby
Devalo has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
charliesome has quit [Client Quit]
charliesome has joined #ruby
jgt has quit [Read error: Connection reset by peer]
jgt has joined #ruby
jgt has quit [Client Quit]
jottr has quit [Ping timeout: 264 seconds]
alfiemax_ has joined #ruby
robnester has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest74772 has quit [Ping timeout: 240 seconds]
rajno has quit [Ping timeout: 255 seconds]
rajnoT has joined #ruby
pax_ has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
robnester has joined #ruby
astrobunny has quit [Remote host closed the connection]
aclark has joined #ruby
charliesome has joined #ruby
sekmo has quit [Quit: Textual IRC Client: www.textualapp.com]
RickHull has quit [Ping timeout: 260 seconds]
zautomata has joined #ruby
mim1k has joined #ruby
bigkevmcd has joined #ruby
InfinityFye has joined #ruby
duckpuppy has joined #ruby
cschneid_ has joined #ruby
rgr has joined #ruby
mjolnird has joined #ruby
mim1k has quit [Disconnected by services]
pax_ is now known as pax
mim1k_ has joined #ruby
pax is now known as Guest52550
cschneid_ has quit [Ping timeout: 264 seconds]
zanoni has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stamina has joined #ruby
Freshnuts has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
gigetoo has joined #ruby
chmurifree is now known as chmuri
workmad3 has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
cschneid_ has quit [Ping timeout: 252 seconds]
cabotto has joined #ruby
|ifei5g00d has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
dkam has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
alfiemax_ has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
|ifei5g00d has joined #ruby
fclausen has joined #ruby
mim1k_ is now known as mim1k
nick123 has quit [Quit: Leaving...]
nadir has quit [Quit: Connection closed for inactivity]
ajaysingh has joined #ruby
jphase has joined #ruby
Defenestrate has quit [Quit: Leaving]
cschneid_ has joined #ruby
Puffball has quit [Remote host closed the connection]
jphase has quit [Ping timeout: 252 seconds]
cschneid_ has quit [Ping timeout: 252 seconds]
jphase has joined #ruby
tvw has joined #ruby
Guest52550 is now known as pax
pax is now known as Guest16627
jphase has quit [Ping timeout: 252 seconds]
GodFather has quit [Ping timeout: 248 seconds]
Psybur has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
cschneid_ has joined #ruby
jphase has joined #ruby
jphase_ has joined #ruby
GodFather has joined #ruby
cabotto has quit [Remote host closed the connection]
cschneid_ has quit [Ping timeout: 252 seconds]
cabotto has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase__ has joined #ruby
jphase has quit [Ping timeout: 252 seconds]
Macaveli has joined #ruby
claudiuinberlin has joined #ruby
jphase_ has quit [Ping timeout: 252 seconds]
jphase has joined #ruby
cabotto has quit [Ping timeout: 240 seconds]
jphase__ has quit [Ping timeout: 252 seconds]
flips has joined #ruby
jphase has quit [Ping timeout: 258 seconds]
dkam has quit [Quit: Be back later ...]
dkam has joined #ruby
fclausen has quit [Ping timeout: 248 seconds]
vondruch_ has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vondruch has quit [Ping timeout: 260 seconds]
vondruch_ is now known as vondruch
wsilva has joined #ruby
Macaveli has joined #ruby
apparition has joined #ruby
alfiemax has quit [Remote host closed the connection]
wsilva has quit [Quit: Leaving]
wsilva has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
alfiemax has joined #ruby
jottr has joined #ruby
fribmendes has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 255 seconds]
mitchellvanw has joined #ruby
|ifei5g00d has quit [Ping timeout: 258 seconds]
Psybur has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 246 seconds]
rabajaj has quit [Quit: Leaving]
rabajaj has joined #ruby
|ifei5g00d has joined #ruby
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
Hexafox[I] has joined #ruby
|ifei5g00d has quit [Ping timeout: 255 seconds]
kies has quit [Ping timeout: 248 seconds]
vondruch_ has joined #ruby
synthroid has joined #ruby
vondruch has quit [Ping timeout: 258 seconds]
vondruch has joined #ruby
|ifei5g00d has joined #ruby
vondruch_ has quit [Ping timeout: 260 seconds]
frmendes has joined #ruby
|ifei5g00d has quit [Ping timeout: 240 seconds]
|ifei5g00d has joined #ruby
frmendes has quit [Client Quit]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanca_ has joined #ruby
Macaveli has joined #ruby
shinnya has joined #ruby
Devalo has joined #ruby
bmurt has joined #ruby
Devalo has quit [Ping timeout: 260 seconds]
jottr has joined #ruby
jphase has joined #ruby
Devalo has joined #ruby
Devalo has quit [Ping timeout: 246 seconds]
andikr has quit [Remote host closed the connection]
nadir has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mson has joined #ruby
tcopeland has quit [Quit: tcopeland]
uZiel has quit [Ping timeout: 248 seconds]
Psybur has joined #ruby
cdg has joined #ruby
claudiuinberlin has joined #ruby
rajnoT has quit [Ping timeout: 255 seconds]
dkam has quit [Quit: Be back later ...]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dkam has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
ta has quit [Remote host closed the connection]
^mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
dviola has joined #ruby
cdg has joined #ruby
InfinityFye has quit [Ping timeout: 240 seconds]
dkam has quit [Ping timeout: 240 seconds]
synthroid has quit [Remote host closed the connection]
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
bmurt has joined #ruby
govg has quit [Ping timeout: 258 seconds]
chouhoulis has joined #ruby
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
charliesome has joined #ruby
govg has joined #ruby
Nexer has quit [Quit: Connection closed for inactivity]
alnewkirk has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
sepp2k has joined #ruby
snickers has quit [Ping timeout: 240 seconds]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Closing time!]
Devalo has joined #ruby
Burgestrand has joined #ruby
fclausen has joined #ruby
Devalo has quit [Ping timeout: 246 seconds]
Burgestrand has quit [Ping timeout: 240 seconds]
Siyfion has quit [Quit: Textual IRC Client: www.textualapp.com]
fclausen has quit [Ping timeout: 248 seconds]
<Hexafox[I]> Why is `:foo == 'foo'` false?
juanca_ has quit [Remote host closed the connection]
<dminuoso> Hexafox[I]: A symbol is more like a number than a string.
<Hexafox[I]> I thought symbols could be used to replace strings for a lot of things.
<tobiasvl> well, not for that
FastJack has joined #ruby
<dminuoso> Hexafox[I]: The idea is to provide something that looks like strings, but behaves like numbers. And that's symbols.
rgr_ has joined #ruby
<Hexafox[I]> I have `Config = YAML.load_file('config.yml')` and I tried to do `Config[:password]` but only `Config['password']` works
<dminuoso> That behavior is mostly relevant to the internals of Ruby (essentially the idea is that comparing numbers is faster than comparing strings)
chouhoulis has joined #ruby
<dminuoso> So it's used to identify things (such as methods for example) internally.
<dminuoso> Hexafox[I]: There's some bits and parts in Ruby that accepts both, for example .send(...) - but only because it coerces its argument to a Symbol.
rgr has quit [Ping timeout: 246 seconds]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
scorpiosec has joined #ruby
<Hexafox[I]> So if something converts all input to symbols it doesn't matter if you use a string or a symbol?
<Hexafox[I]> But otherwise it does matter?
<dminuoso> Hexafox[I]: Right.
<Hexafox[I]> Ah, cool
scorpiosec has quit [Read error: Connection reset by peer]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> Hexafox[I]: same reason as 1 == "1" is false :)
<apeiros> "looking similar" is not the same as "being equal" and even less as "being same"
<Hexafox[I]> I just noticed in a lot of places I could use a string or a symbol and it did the same thing but now I see what is going on.
aupadhye has quit [Ping timeout: 260 seconds]
oleo has joined #ruby
Defenestrate has joined #ruby
DLSteve_ has joined #ruby
synthroid has joined #ruby
|ifei5g00d has quit [Ping timeout: 248 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Puffball has joined #ruby
Ltem has joined #ruby
|ifei5g00d has joined #ruby
fmccann has joined #ruby
Defenestrate has quit [Quit: Leaving]
agent_white has joined #ruby
mikecmpbll has joined #ruby
rabajaj has quit [Quit: Leaving]
bmurt has joined #ruby
fmccann has quit [Client Quit]
jrafanie has joined #ruby
stamina has quit [Quit: WeeChat 1.9.1]
blackmesa has joined #ruby
bmurt has quit [Client Quit]
safetypin has joined #ruby
rabajaj has joined #ruby
selim has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
selim has joined #ruby
vondruch has joined #ruby
jrafanie_ has joined #ruby
tcopeland has joined #ruby
jrafanie has quit [Ping timeout: 252 seconds]
|ifei5g00d has quit [Ping timeout: 246 seconds]
Burgestrand has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
P1ro has joined #ruby
Rapture has joined #ruby
Burgestrand has quit [Ping timeout: 246 seconds]
bmurt has joined #ruby
ioggstream has left #ruby ["Konversation terminated!"]
safetypin has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 240 seconds]
|ifei5g00d has joined #ruby
shinnya has quit [Ping timeout: 248 seconds]
Hexafox[I] has quit [Ping timeout: 248 seconds]
vee__ has quit [Ping timeout: 240 seconds]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
qqmash has joined #ruby
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Client Quit]
Devalo has quit [Ping timeout: 260 seconds]
morantron has joined #ruby
<morantron> Hi! is it possible in YAML to have both an anchor and an alias on the same node? I'm trying to do something like this https://pastebin.com/D9D0fayk
<ruby[bot]> morantron: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/b9ef373921fd9b83b0e4fe6efc4e7bd6
<ruby[bot]> morantron: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<morantron> oops
|ifei5good has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
|ifei5g00d has quit [Ping timeout: 255 seconds]
Burgestrand has joined #ruby
exchgr has quit [Quit: ZNC - http://znc.in]
FrostCandy has joined #ruby
vee__ has joined #ruby
<FrostCandy> I get unexpected } in this line: res = Net::HTTP.post_form(uri, 'd' => {['ruby', 'perl']}.to_json, 'max' => '50')
<FrostCandy> Im just tryin to end a json variable in a post
blackmesa has joined #ruby
ferr has quit [Quit: WeeChat 1.9.1]
bruno- has joined #ruby
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
exchgr has joined #ruby
<FrostCandy> ahhh: res = Net::HTTP.post_form(uri, 'd' => {'d'=>['one','two']}.to_json )
exchgr has quit [Client Quit]
Devalo has quit [Ping timeout: 240 seconds]
exchgr has joined #ruby
ShalokShalom has joined #ruby
ForeignBiscuit has quit [Quit: Critical Miss]
exchgr has quit [Client Quit]
orbyt_ has joined #ruby
exchgr has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
Methiew has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
vee__ has quit [Ping timeout: 255 seconds]
claudiuinberlin has joined #ruby
kculpis has joined #ruby
<Methiew> Hi
Methiew has left #ruby ["Leaving"]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gusrub has joined #ruby
gustavo has joined #ruby
cschneid_ has joined #ruby
gustavo is now known as Guest85881
John___ has joined #ruby
dionysus69 has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
troys has joined #ruby
rabajaj has quit [Quit: Leaving]
qqmash has quit [Quit: Leaving.]
nowhereman has quit [Ping timeout: 240 seconds]
vee__ has joined #ruby
jxv has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
synthroid has quit [Remote host closed the connection]
vtx has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
fclausen has joined #ruby
thomasv314 has joined #ruby
<vtx> hi guys. i am new to ruby and i want to try and start off right when it comes to writing tests for my application. i’ve seen some discussion about specs vs units when testing ruby, and i’m not sure what the difference is, or if they are two names for the same “thing”. i’ve also browsed repositiores and some people seem to have what look like integration tests as what i would assume to be unit tests. i’m from a java background, and in the past i’ve used j
<vtx> for writing unit tests for my code. beyond that, i want to actually write “good” tests, in a more general sense. what resources or sites or books should i be looking at to get an idea of the different types of tests in the ruby ecosystem, i.e. what is considered a unit/integration/system test and what is the difference in unit/spec tests, and also, what actually makes a good, effective test?
P1ro has quit [Quit: P1ro]
thomasv314 has quit [Client Quit]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fclausen has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> vtx: The difference between specs and tests is, I think, the easier part of your question. The primary difference is vocabulary. I think Minitest points out the distinctions well. Compare the unit test and spec examples: https://github.com/seattlerb/minitest#unit-tests
morantron has quit [Quit: WeeChat 1.9.1]
thomasv314 has joined #ruby
synthroid has joined #ruby
jxv has joined #ruby
<havenwood> vtx: Sometimes one of the requirements for a project is to have "specs" and if you call your tests "specs," you then have executable specs.
<vtx> havenwood: ah okay. so are specs the more “ruby” way of doing things?
nowhereman has joined #ruby
apeiros has joined #ruby
<havenwood> vtx: A lot of folk combine the unit test and spec style to create a hybrid. I use the spec-style for `describe` and `it` but then use the test style for `assert`.
<havenwood> vtx: I suppose the most Ruby way would be what Ruby ships with, Minitest, which has both. TIMTOWTDI.
<vtx> havenwood: ohhhh so i can mix and match whatever styles i want? but how would that work if the “test” approach requires that i extend Minitest::Test, whereas the spec style does not?
<havenwood> RSpec is certainly a heavy hitter in the community, so spec-style is popular.
charliesome has joined #ruby
charliesome has quit [Client Quit]
<havenwood> vtx: They provide the same thing in the middle, just different ways of getting there.
Devalo has joined #ruby
<havenwood> vtx: Unit tests are typically fairly quick and easy to write. They mean your code is written in testable units.
<havenwood> vtx: Integration tests are important, because they typically tie more together and cover that real user flow is actually working.
<vtx> i guess i don’t really understand why both these approaches exist?
conta has quit [Ping timeout: 248 seconds]
<havenwood> vtx: System tests would be the most important, but they tend to be slower and inexplicably fail. Hopefully one day soon these will be more reliable.
mim1k has joined #ruby
<havenwood> Headless browsers are getting there.
<vtx> i guess before, in my previous jobs, system testing and integration testing were considered to be the same thing
<havenwood> vtx: Both approaches for unit/integration/system or for spec/test style?
<vtx> havenwood: for spec/test style
<havenwood> System tests use a headless browser to actually go through and click on things, etc.
<havenwood> Integration tests do as close to that as they can, without a real browser.
<havenwood> vtx: Spec and test style don't have to both exist, but they do. I haven't found the distinction to be very helpful.
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
<vtx> havenwood: but who does find the distinction helpful?
ResidentBiscuit has joined #ruby
theory4000 has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
<matthewd> vtx: Note that barring extremely exceptional cases, these are a project-level either/or choice, not something a given project will have both of
<vtx> i mean, is the intent that less technical qa engineers can discern what tests are doing more easily?
<havenwood> Contractors used to like to propose replacing your tests with executable specs. They liked it.
<havenwood> I don't know!
<vtx> lol
<matthewd> Different people like different APIs ¯\_(ツ)_/¯
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
gusrub has quit [Remote host closed the connection]
<havenwood> vtx: If you can read a unit test you can read a spec.
charliesome has joined #ruby
<vtx> yeah that’s what i thought too lol
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
<havenwood> vtx: They're the same thing effectively.
<vtx> i might just go with the test style, since i guess i’m more comfortable with the syntax
<vtx> since it’s just like writing actual ruby?
ResidentBiscuit has joined #ruby
charliesome has quit [Client Quit]
rippa has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
<havenwood> vtx: Both are actual Ruby, just depends whether you prefer inheritance and methods named according to the DSL or blocks.
<vtx> i guess the syntax of the test style better reflects how the code in my application is structured
<havenwood> vtx: I like the spec style for setup and asserts for the middle. Pick your poison. Rubyists should be able to read and work with either.
<havenwood> Mix and match or use just one style, your choice1
dinfuehr has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
<havenwood> vtx: How to write good, effective tests is a lot harder question to answer.
<vtx> it’s something i’ve always struggle with
<vtx> i can write tests that assert a bunch of stuff, but my test suites rarely inspire confidence in me that my application works as expected :/
charliesome has joined #ruby
charliesome has quit [Client Quit]
ozcanesen has joined #ruby
<havenwood> ^ that's a new book that's come out (that I haven't read)
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
friday has quit [Disconnected by services]
charliesome has joined #ruby
friday has joined #ruby
Guest85881 has quit [Ping timeout: 258 seconds]
gustavo_ has joined #ruby
gustavo_ has quit [Remote host closed the connection]
gustavo_ has joined #ruby
milardovich has joined #ruby
vee__ has quit [Ping timeout: 248 seconds]
gustavo_ has quit [Max SendQ exceeded]
gustavo_ has joined #ruby
Emmanuel_Chanel has joined #ruby
ab_ has joined #ruby
ab_ is now known as Guest3707
ShalokShalom has quit [Remote host closed the connection]
gustavo_ has quit [Ping timeout: 258 seconds]
gustavo_ has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest96661 has quit [Ping timeout: 240 seconds]
ajaysingh has quit [Ping timeout: 255 seconds]
gustavo_ has quit [Client Quit]
jottr has quit [Quit: WeeChat 1.9.1]
jxv has joined #ruby
guille-moe has quit [Ping timeout: 248 seconds]
apparition has quit [Quit: Bye]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
claudiuinberlin has joined #ruby
alfiemax has quit [Remote host closed the connection]
claudiuinberlin has quit [Client Quit]
vee__ has joined #ruby
SeepingN has joined #ruby
Macaveli has joined #ruby
mostlybadfly has joined #ruby
nicesignal has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
nicesignal has joined #ruby
<Guest3707> hello
bmurt has joined #ruby
<Guest3707> somebody can help to do the exericise?
hutch34 has joined #ruby
guille-moe has joined #ruby
milardovich has quit [Remote host closed the connection]
__Yiota has quit [Quit: Textual IRC Client: www.textualapp.com]
milardovich has joined #ruby
__Yiota has joined #ruby
<havenwood> Guest3707: What exercise?
DLSteve_ has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
orbyt_ has joined #ruby
kies has joined #ruby
<SeepingN> push-ups
<SeepingN> go!
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mank has quit [Ping timeout: 252 seconds]
ecstasy has joined #ruby
<ecstasy> I need to write firmware for IoT devices, Ruby or Python?
<Papierkorb> lol
<Papierkorb> Guest3707: no effort on your part?
<mozzarella> Guest3707: you're not gonna try anything?
<Papierkorb> what have you tried already?
<ecstasy> ty Papierkorb
fmccann has joined #ruby
<Papierkorb> ?
<ecstasy> very helpful
<ecstasy> much appreciated
<Papierkorb> that wasn't directed towards you?
orbyt_ has joined #ruby
<ecstasy> Indeed it was, as it seems you are asking me
<Papierkorb> huh?
<ecstasy> Looks like I've found my answer, thanks
ecstasy has left #ruby ["Leaving"]
<Papierkorb> Now that *is* "lol"
Guest96661 has joined #ruby
kuchi has quit [Ping timeout: 246 seconds]
quobo has quit [Quit: Connection closed for inactivity]
thomasv314 has joined #ruby
blackmesa has joined #ruby
<Guest3707> i'm a newbie, could you help plz?
Serpent7776 has quit [Quit: Leaving]
<Papierkorb> Guest3707: we already asked you what you have tried to tackle your homework
kuchi has joined #ruby
aufi has quit [Quit: Leaving]
weaksauce has joined #ruby
<SeepingN> firmware... for a IoT devices. and ... ruby?! lolz
Guest96661 has quit [Ping timeout: 240 seconds]
jrafanie has joined #ruby
fmccann has quit [Quit: Textual IRC Client: www.textualapp.com]
<Guest3707> currently no effert
<Guest3707> *effort
<Zarthus> then why should we put our effort into it?
<Guest3707> for me to start
<Zarthus> but you're not helping us help you help yourself
<Zarthus> you need to explain where you are stuck
milardovich has quit [Remote host closed the connection]
<SeepingN> step 0
<Papierkorb> Guest3707: That's really not how it works. You have to make the start. Remember, we're real human beings who're here in their spare time helping out. We're literally taking time out of our free time to help random people. All we ask for is for you to make the start.
<SeepingN> me thinks you are in the wrong class
__Yiota has quit [Remote host closed the connection]
__Yiota has joined #ruby
weaksauce has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
milardovich has joined #ruby
DLSteve_ has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
mochiyoda_ has quit [Quit: Konversation terminated!]
thinkpad has quit [Ping timeout: 240 seconds]
milardovich has quit [Remote host closed the connection]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest96661 has joined #ruby
chouhoul_ has joined #ruby
milardovich has joined #ruby
mochiyoda_ has joined #ruby
ek926m has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
chouhoulis has quit [Ping timeout: 248 seconds]
milardovich has quit [Remote host closed the connection]
workmad3 has joined #ruby
megamosaren has quit [Ping timeout: 258 seconds]
Guest96661 has quit [Ping timeout: 260 seconds]
Beams has quit [Quit: .]
uZiel has joined #ruby
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
snickers has joined #ruby
orbyt_ has quit [Ping timeout: 240 seconds]
zautomata1 has joined #ruby
[Butch] has joined #ruby
vee__ has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
ldepandis has joined #ruby
zautomata has quit [Ping timeout: 248 seconds]
quobo has joined #ruby
troys is now known as troys_
jaruga has quit [Quit: jaruga]
marxarelli|afk is now known as marxarelli
uZiel has quit [Ping timeout: 248 seconds]
polishdub has joined #ruby
usb777 has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ek926m has quit [Quit: Leaving]
orbyt_ has joined #ruby
<usb777> hey for those using komodo, just started using the editor but i cant find out how to run my code, theres no run button. cant run the file through run command either help
Guest28041 has quit [Quit: WeeChat 1.7]
ldepandis has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
ResidentBiscuit has quit [Read error: Connection reset by peer]
<usb777> hey anyone know how to run the code in komodo editor?????
orbyt_ has quit [Ping timeout: 252 seconds]
vee__ has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.9.1]
troys_ is now known as troys
ResidentBiscuit has joined #ruby
blackmesa has joined #ruby
milardovich has joined #ruby
uZiel has joined #ruby
average has joined #ruby
usb777 has quit [Ping timeout: 260 seconds]
milardovich has quit [Remote host closed the connection]
Guest96661 has joined #ruby
fmccann has joined #ruby
eckhardt has joined #ruby
Macaveli has joined #ruby
fclausen has joined #ruby
fmccann has quit [Client Quit]
hahuang65 has joined #ruby
Macaveli has quit [Ping timeout: 240 seconds]
<SeepingN> The 10x Programmer. huh, never heard that term but have definitely felt it
guille-moe has quit [Ping timeout: 248 seconds]
fclausen has quit [Ping timeout: 248 seconds]
ozcanesen has quit [Quit: ozcanesen]
Heph_ has quit [Quit: Leaving]
nick123 has joined #ruby
weaksauce has joined #ruby
fmccann has joined #ruby
orbyt_ has joined #ruby
MrSparkle has quit [Ping timeout: 264 seconds]
porfa has joined #ruby
<porfa> hi
<Papierkorb> yo
dviola has quit [Quit: WeeChat 1.9.1]
fmccann has quit [Client Quit]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jxv has joined #ruby
claudiuinberlin has joined #ruby
fmcgeough has quit [Ping timeout: 252 seconds]
fmcgeough has joined #ruby
vtx has quit [Quit: vtx]
__Yiota has joined #ruby
MrSparkle has joined #ruby
milardovich has joined #ruby
alfiemax has joined #ruby
average has left #ruby [#ruby]
conta has joined #ruby
milardovich has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
moei has joined #ruby
agent_white has quit [Quit: brb]
mark_66 has quit [Remote host closed the connection]
chouhoul_ has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
Guest96661 has quit [Ping timeout: 255 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
orbyt_ has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
ledestin has joined #ruby
milardovich has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DLSteve_ has quit [Ping timeout: 255 seconds]
guacamole has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
vtx has joined #ruby
fmccann has joined #ruby
milardovich has quit [Remote host closed the connection]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
pmunt_ has quit [Read error: Connection reset by peer]
ogres has joined #ruby
pmunt_ has joined #ruby
Xiti has quit [Quit: Xiti]
milardovich has joined #ruby
wsilva has quit [Quit: Leaving]
milardovich has quit [Remote host closed the connection]
Xiti has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
orbyt_ has quit [Ping timeout: 248 seconds]
s3nd1v0g1us has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
lacour has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest62583 is now known as maxmanders
cdg has quit [Remote host closed the connection]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
uZiel has joined #ruby
claudiuinberlin has joined #ruby
LocaMocha has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
bmurt has joined #ruby
chouhoulis has joined #ruby
milardovich has joined #ruby
banisterfiend has joined #ruby
<banisterfiend> is there a way to compile ruby so that it statically links some libraries but dynamically links others? (i.e statically link openssl but everything else it dynamically links to)
jrafanie has joined #ruby
|ifei5good has quit [Ping timeout: 240 seconds]
uZiel has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
cdg has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
<havenwood> banisterfiend: isn't that what --with-static-linked-ext does, just statically link bundled extensions?
<havenwood> unsure
cdg has quit [Ping timeout: 252 seconds]
milardovich has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<banisterfiend> havenwood i tried that and it didn't seem to make any difference\
<havenwood> hrmm
|ifei5g00d has joined #ruby
<banisterfiend> havenwood the same libs came up under 'otool -L'
<havenwood> banisterfiend: here's an issue where they add an option to disable dynamic linking: https://bugs.ruby-lang.org/issues/4946
jackrandom has joined #ruby
<havenwood> it seems like the default should be that anything that isn't explicitly statically linked gets dynamically linked
<havenwood> ¯\_(ツ)_/¯
weaksauce has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
troys is now known as troys_
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
postmodern has joined #ruby
<banisterfiend> fuck ruby
<banisterfiend> havenwood last night when i was building ruby it only linked against 3-4 libraries
<banisterfiend> now it's linking against 10 and i have no idea what i changed
<banisterfiend> i dont think i did a major install of any new software or libraries
<havenwood> Did it get moved? Maybe --enable-load-relative wasn't set?
imode has joined #ruby
<havenwood> I haven't done statically linked builds in a while. Ran into some issues with 2.3, I can't recall what. It sure would be nice if someone shipped reproducible ones.
<havenwood> I did the OS X one for RVM for a while. It's just a pain to do for each version.
uZiel has joined #ruby
uZiel has quit [Remote host closed the connection]
nadir has joined #ruby
<banisterfiend> havenwood can you type this on one of yoru ruby 2+ executables: otool -L ruby
<banisterfiend> and give me the result?
<banisterfiend> i get so much junk
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit [Ping timeout: 240 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Freshnuts has joined #ruby
jrafanie_ has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jackrandom> are you using os x?
jrafanie has quit [Ping timeout: 240 seconds]
<havenwood> banisterfiend: (jemalloc is just from a --with-jemalloc, otherwise a pretty vanilla install)
jxv has joined #ruby
justthisguy has joined #ruby
justthisguy has quit [Client Quit]
claudiuinberlin has joined #ruby
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dimik has joined #ruby
<banisterfiend> jackrandom yes i'm using osx
uZiel has joined #ruby
<banisterfiend> havenwood the top one is yesterday, the bottom one is today where i'm getting so much more junk
thomasv314 has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
Technodrome has joined #ruby
fclausen has joined #ruby
porfa has quit [Quit: porfa]
blackmesa has joined #ruby
porfa has joined #ruby
raatiniemi has quit [Ping timeout: 255 seconds]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jxv has joined #ruby
thomasv3_ has joined #ruby
thomasv314 has quit [Ping timeout: 252 seconds]
fclausen has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
alfiemax has quit [Remote host closed the connection]
eckhardt has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thomasv3_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thomasv314 has joined #ruby
tpendragon has quit [Remote host closed the connection]
Guest30004 has quit [Remote host closed the connection]
tsglove has quit [Ping timeout: 240 seconds]
Kug3lis has joined #ruby
Kug3lis has quit [Client Quit]
lxsameer has joined #ruby
Freshnuts has quit [Quit: Leaving]
cdg has joined #ruby
thomasv3_ has joined #ruby
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
AndBobsYourUncle has joined #ruby
thomasv314 has quit [Ping timeout: 240 seconds]
nick123 has quit [Ping timeout: 248 seconds]
BTRE has quit [Read error: Connection reset by peer]
|ifei5g00d has quit [Ping timeout: 246 seconds]
robnester is now known as robnesterThinksN
robnesterThinksN is now known as robnester
anisha_ has quit [Quit: This computer has gone to sleep]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
|ifei5g00d has joined #ruby
conta has quit [Ping timeout: 240 seconds]
duper has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
marxarelli is now known as marxarelli|afk
shinnya has joined #ruby
tsglove has joined #ruby
marxarelli|afk is now known as marxarelli
troys_ is now known as troys
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nick123 has joined #ruby
eckhardt has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
mim1k has quit [Ping timeout: 248 seconds]
tsglove2 has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
tsglove2 has quit [Max SendQ exceeded]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tsglove2 has joined #ruby
workmad3 has joined #ruby
tsglove has quit [Ping timeout: 240 seconds]
tsglove2 has quit [Max SendQ exceeded]
ta has joined #ruby
tsglove2 has joined #ruby
marcux has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
chouhoul_ has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
synthroid has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
goyox86_ has joined #ruby
ur5us has joined #ruby
kapil___ has joined #ruby
__Yiota has quit [Remote host closed the connection]
__Yiota has joined #ruby
selim has quit [Ping timeout: 258 seconds]
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 246 seconds]
thomasv3_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fmcgeough has quit [Ping timeout: 248 seconds]
fmcgeough_ has joined #ruby
milardovich has quit [Remote host closed the connection]
synthroid has joined #ruby
selim has joined #ruby
theory4000 has quit [Ping timeout: 260 seconds]
jrafanie has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
dostoyevsky has joined #ruby
<dostoyevsky> Does Python have something similar to Ruby's Dir["*/somefile"].each {|filename| puts filename } ?
ozcanesen has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
ferr has joined #ruby
sinduck has quit [Ping timeout: 240 seconds]
<dostoyevsky> Seems it's glob.glob something
Tharbakim has quit [Ping timeout: 240 seconds]
<Papierkorb> dostoyevsky: Sounds like you'd want to ask that in a python oriented channel
DanKnox has quit [Ping timeout: 264 seconds]
Flonk has quit [Ping timeout: 240 seconds]
Rapture has quit [Ping timeout: 255 seconds]
jxv has joined #ruby
tsglove3 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
OnkelTem has quit [Ping timeout: 246 seconds]
jxv has quit [Client Quit]
goyox86_ has quit [Quit: goyox86_]
jxv has joined #ruby
goyox86_ has joined #ruby
Tharbakim has joined #ruby
Flonk has joined #ruby
tsglove2 has quit [Ping timeout: 248 seconds]
Tharbakim has quit [Changing host]
Tharbakim has joined #ruby
<havenwood> dostoyevsky: You can write that in Ruby as just: puts Dir["*/somefile"]
<dostoyevsky> Papierkorb: I did.. they didn't grok ruby though in the beginning... so I asked here...
yottanami has joined #ruby
<yottanami> Hey all
<havenwood> dostoyevsky: Python does have various ways. #python should get it if you use #glob in your example.
<havenwood> yottanami: hey
<yottanami> Is any way to step by step debug just current file using byebug?
DanKnox has joined #ruby
<havenwood> dostoyevsky: Ask them about `Dir.glob` equivalent and they'll get on the right track.
<havenwood> (They call it "glob" too.)
<yottanami> I mean do not go to other files and back when another method calls
sinduck has joined #ruby
DLSteve_ has joined #ruby
goyox86_ has quit [Ping timeout: 248 seconds]
synthroid has quit []
GodFather has quit [Ping timeout: 248 seconds]
sepp2k has quit [Quit: Leaving.]
cdg has quit [Remote host closed the connection]
BTRE has joined #ruby
cdg has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
alnewkirk has quit [Ping timeout: 248 seconds]
chouhoulis has joined #ruby
troys is now known as troys_
apeiros has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
BTRE has quit [Quit: Leaving]
morfin has quit []
Guest3707 has quit [Quit: Page closed]
BTRE has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
ur5us has quit [Remote host closed the connection]
jackrandom has quit [Ping timeout: 246 seconds]
yottanami has quit [Ping timeout: 246 seconds]
megamos has joined #ruby
|ifei5good has joined #ruby
__Yiota has quit [Remote host closed the connection]
|ifei5g00d has quit [Ping timeout: 248 seconds]
marcux has quit [Ping timeout: 248 seconds]
__Yiota has joined #ruby
goyox86_ has joined #ruby
ap4y has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
goyox86_ has quit [Client Quit]
pryorda has quit [Ping timeout: 258 seconds]
rgr_ has quit [Ping timeout: 255 seconds]
fclausen has joined #ruby
goyox86_ has joined #ruby
goyox86_ is now known as goyox86
<SHyx0rmZ> pity
<SHyx0rmZ> I haven't done Ruby in ages, but I really wanted to help Guest3707
<SHyx0rmZ> some good fun after work
hutch34 has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fclausen has quit [Ping timeout: 248 seconds]
troys_ is now known as troys
zautomata2 has joined #ruby
zautomata1 has quit [Ping timeout: 264 seconds]
milardovich has quit [Remote host closed the connection]
GodFather has joined #ruby
theory4000 has joined #ruby
ozcanesen has quit [Ping timeout: 260 seconds]
jxv has joined #ruby
jrafanie has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
jxv has quit [Client Quit]
jxv has joined #ruby
pryorda has joined #ruby
alex`` has quit [Quit: WeeChat 1.9.1]
jenrzzz has joined #ruby
RickHull has joined #ruby
Tony-St4rk is now known as Hav0k
Hav0k is now known as H4v0k
vee__ has quit [Ping timeout: 248 seconds]
Psybur has joined #ruby
FrostCandy has quit []
biberu has quit []
Ltem has quit [Quit: Leaving]
tcopeland has quit [Quit: tcopeland]
vee__ has joined #ruby
nickjj has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
nickjj has joined #ruby
safetypin has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
k3rn31_ has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
fclausen has joined #ruby
|ifei5good has quit [Ping timeout: 248 seconds]
jphase has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 264 seconds]
ryzokuken has joined #ruby
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
|ifei5g00d has joined #ruby
dkam has joined #ruby
theory4000 has quit [Ping timeout: 258 seconds]
Psybur has quit [Ping timeout: 240 seconds]
ResidentBiscuit has quit [Ping timeout: 248 seconds]
Azure|dc is now known as Azure
cdg_ has joined #ruby
cdg has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
cdg_ has quit [Ping timeout: 240 seconds]
polishdub has quit [Quit: leaving]
orbyt_ has joined #ruby
QualityAddict has joined #ruby
ramfjord has joined #ruby
<SeepingN> SHyx0rmZ ?
<SeepingN> oh I see. ll
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nick123 has quit [Read error: Connection reset by peer]
AndBobsYourUncle has joined #ruby
nick123 has joined #ruby
guacamole has joined #ruby
tcopeland has joined #ruby
Psybur has joined #ruby
thinkpad has joined #ruby
megamos has quit [Ping timeout: 255 seconds]
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
QualityAddict has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
vtx has quit [Quit: vtx]
giraffe has joined #ruby
giraffe is now known as Guest20101
tpendragon has joined #ruby
Asher1 has joined #ruby
Asher has quit [Disconnected by services]
Asher1 is now known as Asher
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fclausen has quit [Ping timeout: 248 seconds]
AndBobsYourUncle has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alnewkirk has joined #ruby
jxv has joined #ruby
<zanoni> Sinatra question not allowed?
jphase has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
nick123 has quit [Read error: Connection reset by peer]
naprimer3 has joined #ruby
alnewkirk has quit [Ping timeout: 255 seconds]
nick123 has joined #ruby
jphase has quit [Ping timeout: 258 seconds]
Asher has quit [Quit: Leaving.]
milardovich has quit [Ping timeout: 248 seconds]
lxsameer has quit [Quit: WeeChat 1.9.1]
naprimer2 has quit [Ping timeout: 258 seconds]
jphase has joined #ruby
<RickHull> just ask
<RickHull> :)
Znine-zero has joined #ruby
goyox86 has quit [Quit: goyox86]
hutch34 has quit [Ping timeout: 258 seconds]
<Znine-zero> Would anyone be willing to help explain to me why I get a "is not allowed as an instance variable name" error when on the line: if line =~ /@([a-z]{1,})/
<Znine-zero> Escaping the @ gives me an expecting $undefined, expecting end-of-input error.
<Znine-zero> I'm looking for, like, an unmatched quote or something but without any luck.
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
thomasv314 has joined #ruby
troys is now known as troys_
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Znine-zero> It even throws the error when the line is commented out. I really messed *something* up. lmfao.
<elomatreb> Sounds like a problem with something else, because that line has no error by itself. Paste the entire file?
hutch34 has joined #ruby
<zanoni> Using Sinatra, and want to serve/play audio files that are outside of the public_folder, outside of the site root. I'm using Thin as a server, so I don't believe x-sendfile is an option. Not sure what if any my options might be?
Znine-zero has left #ruby [#ruby]
orbyt_ has joined #ruby
guacamol_ has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
<nickjj> zanoni, what if you proxied it with nginx?
safetypin has joined #ruby
gusrub has joined #ruby
alnewkirk has joined #ruby