apeiros_ changed the topic of #ruby-lang to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste code on http://gist.github.com
devgiant has quit [Read error: Connection reset by peer]
Asher has quit [Read error: Connection reset by peer]
devgiant has joined #ruby-lang
Asher has joined #ruby-lang
kiyote23_ has joined #ruby-lang
avdi has joined #ruby-lang
hahuang61 has joined #ruby-lang
<womble> jkyle: I find setting environment variables in daemons perfectly reasonable, but then again I'm a bit weird. There's ~/.gemrc for setting per-user gem config, and <SYSTEM CONFIG DIRECTORY>/gemrc for system-wide config.
bcardarella_ has joined #ruby-lang
cornerma1 has joined #ruby-lang
FastJack_ has joined #ruby-lang
robbyoconnor has joined #ruby-lang
lytol has quit [Remote host closed the connection]
beawesomeinstead has joined #ruby-lang
sangwoojoo_ has joined #ruby-lang
diegovio1 is now known as diegoviola
robbyoconnor has quit [Client Quit]
akahn has joined #ruby-lang
gix- has joined #ruby-lang
gix has quit [Ping timeout: 264 seconds]
tbuehlmann has quit [Ping timeout: 264 seconds]
kiyote23 has quit [Ping timeout: 264 seconds]
hahuang65 has quit [Ping timeout: 264 seconds]
tzero has quit [Ping timeout: 264 seconds]
oleo has quit [Ping timeout: 264 seconds]
cornerma1 is now known as cornerman
beawesomeinstead has quit [Changing host]
beawesomeinstead has joined #ruby-lang
beawesomeinstead has quit [Changing host]
beawesomeinstead has joined #ruby-lang
tbuehlmann has joined #ruby-lang
adambeynon has joined #ruby-lang
oleo has joined #ruby-lang
<workmad3> womble: I also have no problem setting up env vars for daemonised processes :)
clauswitt has joined #ruby-lang
<jkyle> womble: yeah, if it was a one off. probably fine. lot of moving parts, daemons, etc that'll need it. the #puppet folks pointed me to fpm, so I just knocked out an rpm for it :P
matp has joined #ruby-lang
nifoc has joined #ruby-lang
KillerFox has joined #ruby-lang
nathanstitt has joined #ruby-lang
<jkyle> workmad3, womble: so my philosophy on that is, if you're having to maintain state in multiple places there's probably a better way :)
mame1 has joined #ruby-lang
tzero has joined #ruby-lang
<workmad3> jkyle: I'm slapping it all out from a single source using chef ;)
<womble> jkyle: Who's maintaining state in multiple places?
ddfreyne has joined #ruby-lang
robbyoconnor has joined #ruby-lang
<jkyle> if you have to enter teh new gem path in an apache config, a puppet run time, etc. you have to maintain the value in multiple places. so there's multiple points of failure or misconfiguration. if you can solve the same problem by changing one config file...much less error prone
<womble> jkyle: I do -- it's all in Puppet. Puppet drives the configuration of everything else.
<womble> In fact, I have to enter most of my environment variables in zero places, because they're automatically derived from other pieces of information.
cornerma1 has joined #ruby-lang
<jkyle> still, if you can make the change in one spot. it's less erorr prone then passing that value to a few modules. But in this particular case, trying to avoid puppet as this is a framework for deploying puppet infrastructure like masters and such
<jkyle> rpm solves it perfectly
<jkyle> no environment variables, shared state, or deployment frameworks needed :)
Averna has joined #ruby-lang
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
<womble> Just use Puppet to deploy Puppet! oh wait...
Caius has quit [Quit: ""]
<workmad3> womble: chef is used to install chef ;)
Caius has joined #ruby-lang
<workmad3> admittedly, that's chef-client (installed via an omnibus .deb or .rpm) is used to install chef-server (using embedded chef-solo cookbooks)... but still pretty fun :)
chancancode has joined #ruby-lang
bb010g has joined #ruby-lang
<womble> workmad3: Yeah, that's cheating.
charliesome has quit [Quit: zzz]
elgreco has joined #ruby-lang
BBA has joined #ruby-lang
<bitflipping> anyone have experience using Fiddle::Win32Types and want to give a hand?
manveru has joined #ruby-lang
<bnagy> I have no experience with fiddle, but a great deal with FFI and Win32
ritek has joined #ruby-lang
<bitflipping> well, I'm trying to extend https://github.com/nilium/opengl-core/ so that it can load/call functions generated from khronos' wgl.xml as well
<BBA> I have some experience with Fiddle , what is your question
elgreco_ has quit [Ping timeout: 252 seconds]
<bitflipping> it currently uses fiddle, but only loads/calls functions generated from khronos' gl.xml, which doesn't use the windows types
iamninja has joined #ruby-lang
bryancp has joined #ruby-lang
<bitflipping> So its kind of an broad question as to how to complete this, but a more specific question would be, how do I use Fiddle::Win32Types like I would Fiddle::TYPE_LONG
elgreco has quit [Ping timeout: 264 seconds]
<bitflipping> sorry for inane questions as well, I'm rather new to ruby
<bitflipping> on a related note, Fiddle::WINDOWS returns false, I'm running ruby in msys2 under Windows 7 64-bit
<bitflipping> and I'm not sure why haha
devgiant_ has joined #ruby-lang
BBA has quit [Quit: Page closed]
<bnagy> cause msys isn't really windows
jlpeters has joined #ruby-lang
<bitflipping> thought it might be that, wasn't sure though, figured I had access to windows libraries/dlls etc so it wouldn't be an issue
<bnagy> presumably the same approach would work for fiddle
wizonesolutions has joined #ruby-lang
rbowlby_ has joined #ruby-lang
<BBA> has anyone had experience streaming twitter feeds across a page? almost like a stock ticker
<bnagy> well it has quite a few, by the looks
<bitflipping> word, thats what I was going to go about doing, but then I saw that Fiddle had a Win32Types module and thought there might be a more automatic/better way haha
<bnagy> and they look like just type aliases
<bnagy> so you can use both
leonshalimov has joined #ruby-lang
nomadicoder has joined #ruby-lang
ggherdov has quit [Excess Flood]
BBA has joined #ruby-lang
<bnagy> for windows types I usually just use a convenience file to map like HWND to an FFI type
devgiant has quit [Ping timeout: 244 seconds]
kalehv has joined #ruby-lang
rbowlby_ has quit [Client Quit]
<bitflipping> so I guess that brings me to, I'm not really sure what/how Fiddle::Win32Types is doing, how to utilize it
adambeynon has quit [Ping timeout: 244 seconds]
|jemc| has quit [Ping timeout: 264 seconds]
<bitflipping> it looks like Fiddle::TYPE_LONG just gives an int when I call puts on it, and I'm not sure how to get to that point from the aliases
<bitflipping> right
<bnagy> Win32Types::HANDLE = SomeOtherThing::ULONG
<bnagy> so you could use one wherever you use the other
adambeynon has joined #ruby-lang
leonshalimov has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradland has quit [Quit: bradland]
nathanstitt has quit [Quit: I growing sleepy]
ggherdov has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
crdpink has quit [Ping timeout: 265 seconds]
znz_jp has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby-lang
spastorino has joined #ruby-lang
ggherdov has quit [Excess Flood]
crdpink has joined #ruby-lang
<bnagy> looks like you need to include that module in your fiddle wrapper classes
<zenspider> you're a fiddle wrapper
<bnagy> no you
havenwood has joined #ruby-lang
tkuchiki has joined #ruby-lang
grandy_ has joined #ruby-lang
amsi has quit [Ping timeout: 245 seconds]
<zenspider> YOU
<grandy_> hello, quick question -- is there a way to create a binding that only has 3 vars defined in it and does not have access to any global vars?
znz_jp has joined #ruby-lang
<zenspider> probably not
<bnagy> grandy_: there used to be a BlankSlate
amsi has joined #ruby-lang
<grandy_> bnagy: ahh
<bnagy> uh.. BasicObject?
ledestin has joined #ruby-lang
<grandy_> bnagy: ahh that might do what i want
<havenwood> >> BasicObject.public_methods false
<eval-in> havenwood => [:allocate, :new, :superclass] (https://eval.in/242064)
<grandy_> cool
devgiant_ has quit [Quit: Leaving]
<zenspider> still can access globals
Musashi007 has quit [Quit: Musashi007]
<zenspider> and you said binding, which is specific, and opaque, and subclasses Object
<bnagy> you can access toplevel with ::FOO
<grandy_> bnagy: ahh just noticed that
<zenspider> yeah. that globals requirement makes this neigh impossible
<bnagy> so it's not 'security' it's just to stop mistakes
<grandy_> bnagy: ahh
nomadicoder has quit [Ping timeout: 244 seconds]
<bnagy> we don't really do true isolation in ruby
allolex____ has joined #ruby-lang
<bnagy> kind of by design
crdpink has joined #ruby-lang
ramblinpeck_ has joined #ruby-lang
ggherdov has joined #ruby-lang
crdpink2 has joined #ruby-lang
crdpink has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
dbussink has quit [Ping timeout: 244 seconds]
crdpink2 has quit [Client Quit]
<grandy_> bnagy: interesting
michaeldeol has joined #ruby-lang
|jemc| has joined #ruby-lang
crdpink has joined #ruby-lang
kalehv has quit [Remote host closed the connection]
[H]unt3r has joined #ruby-lang
chancancode has quit [Ping timeout: 244 seconds]
nomadicoder has joined #ruby-lang
jo__ has joined #ruby-lang
dbussink has joined #ruby-lang
dlackty__ has quit [Read error: Connection reset by peer]
dlackty__ has joined #ruby-lang
grandy_ is now known as grandy
yfeldblum has quit [Remote host closed the connection]
shinnya_ has quit [Ping timeout: 255 seconds]
<bitflipping> thank you very much bnagy, I'm still kind of stumbling through it, but I think I understand what happens with the include now, it is finding the win32 types and I can stumbling along through the next part haha
hendranata_ has joined #ruby-lang
postmodern has quit [Ping timeout: 244 seconds]
postmodern has joined #ruby-lang
nomadicoder has quit [Ping timeout: 244 seconds]
Bwild has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 245 seconds]
_whitelogger_ has joined #ruby-lang
chancancode has joined #ruby-lang
klmlfl has joined #ruby-lang
ledestin has quit [Quit: ledestin]
BBA has quit [Ping timeout: 246 seconds]
emmesswhy has joined #ruby-lang
marr has quit [Ping timeout: 240 seconds]
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
nomadicoder has joined #ruby-lang
Musashi007 has joined #ruby-lang
shinnya_ has joined #ruby-lang
leon has joined #ruby-lang
<leon> ruby?
mistym has quit [Remote host closed the connection]
leon is now known as Guest70353
<Guest70353> aloha?
lsegal has joined #ruby-lang
twe4ked has quit [Ping timeout: 244 seconds]
twe4ked has joined #ruby-lang
yusuf has joined #ruby-lang
manveru has quit [Ping timeout: 244 seconds]
stamina has joined #ruby-lang
nathanstitt has joined #ruby-lang
manveru has joined #ruby-lang
sleepee has quit [Quit: Leaving]
tkuchiki has joined #ruby-lang
SkramX_ has quit [Ping timeout: 244 seconds]
dbussink has quit [Ping timeout: 244 seconds]
SkramX_ has joined #ruby-lang
tkuchiki has quit [Client Quit]
klmlfl has quit [Remote host closed the connection]
dbussink has joined #ruby-lang
djbkd has quit [Quit: My people need me...]
klmlfl has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
crankharder has quit [Ping timeout: 252 seconds]
crankharder has joined #ruby-lang
seank_ has quit [Read error: Connection reset by peer]
amsi has quit [Quit: Leaving]
stamina has quit [Ping timeout: 264 seconds]
znz_jp has quit [Quit: kill -QUIT $$]
Lewix has quit []
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seank_ has joined #ruby-lang
Guest70353 has quit [Quit: Saliendo]
znz_jp has joined #ruby-lang
enebo has joined #ruby-lang
nathanstitt has joined #ruby-lang
fujimura has joined #ruby-lang
<bitflipping> I'm currently getting an undefined method when trying to call Fiddle::CParser::parse_ctype I've tried both requiring Fiddle/CParser and including CParser, any suggestions?
mistym has joined #ruby-lang
<bnagy> why are you trying to parse C?
brooks has joined #ruby-lang
<bitflipping> I'm trying to utilize the parse_ctype function which would essentially just run types until it returns the fiddle type
<bitflipping> I'm dealing with opengl bindings which have their base in c headers, and typenames associated to that hierarchy
enebo has quit [Quit: enebo]
<bitflipping> "run types" -> its recursive until it returns a type defined in the fiddle.so or it raises a DLError
<bnagy> ok. Mostly I've ended up doing header parsing by hand because the 'automatic' stuff never worked
<bnagy> like I moved all the .h stuff over to ruby analogs
<bitflipping> word, logically it looks like Fiddle's should work, I just can't get the function to run TT___TT
<bnagy> but it's time consuming
<bitflipping> aye, haha
saramic has joined #ruby-lang
<bnagy> http://docs.ruby-lang.org/en/2.0.0/Fiddle/CParser.html does that example work in irb?
<bitflipping> it does thank you, I guess I'll try to follow that setup haha
<bnagy> the import names seem a bit wacky :/
<bnagy> (as I mentioned, I am anti-Fiddle)
<bitflipping> yea, word
<bitflipping> I'm really just trying to extend this other guy's library, and I feel if he is using fiddle already, I'll just go along with that TT___TT
<bnagy> seems best
<bnagy> pretty sure Nilium is on freenode, just don't know if they're in this particular chan
amclain has joined #ruby-lang
<bitflipping> word, that example actually throws an error, but it does call the function and run haha
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby-lang
<bitflipping> should I be able to include just anywhere within a class description?
<bnagy> yeah, but it might do different things depending on where :)
robbyoconnor has quit [Ping timeout: 244 seconds]
leonshalimov has joined #ruby-lang
rcvalle has quit [Quit: rcvalle]
shinnya_ has quit [Ping timeout: 256 seconds]
cantonic has joined #ruby-lang
mistym_ has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
bradland has joined #ruby-lang
<bitflipping> would some wonky scoping be happening if I'm using an included function inside a default_proc that is being declared/defined just inside the base level of the class?
mistym has quit [Ping timeout: 252 seconds]
<bnagy> *shrug*
<bitflipping> lol
<bnagy> sry, gotta make pizza dough atm
<bnagy> but in general actual code is easier for people to comment on
<bitflipping> no prob that sounds cool
tkuchiki has joined #ruby-lang
<bitflipping> makes sense
Fretta has joined #ruby-lang
mistym_ is now known as mistym
leonshalimov has quit [Ping timeout: 264 seconds]
robbyoconnor has joined #ruby-lang
jdecuirm has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has quit [Changing host]
Lewix has joined #ruby-lang
<jdecuirm> Hey guys, is this sentence correct for split? long_string.split('\n') ?
chills42 has joined #ruby-lang
yfeldblum has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
<womble> jdecuirm: It's valid. Whether it's correct depends on what you want to achieve... <grin>
<jdecuirm> thanks womble, i just found the problem i solved it, thanks again!
ta has joined #ruby-lang
seank_ has quit [Read error: Connection reset by peer]
nathanstitt has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
seank_ has joined #ruby-lang
ta has quit [Ping timeout: 244 seconds]
charliesome has quit [Read error: Connection reset by peer]
<bitflipping> turns out it doesn't like it if you include something within a class or a module, for some reason thats how I thought you got the mixin behaviour
bradland has quit [Quit: bradland]
<bitflipping> I'm kind of confused haha
<bnagy> include _is_ how you get the mixin behaviour
linc01n has joined #ruby-lang
linc01n has quit [Ping timeout: 265 seconds]
mostlybadfly has quit [Ping timeout: 265 seconds]
gnufied has quit [Ping timeout: 265 seconds]
<bnagy> it sounds like you're trying to learn ruby at the same time as fiddle
<bnagy> which I suspect is going to be really, really confusing
charliesome has joined #ruby-lang
DarkBushido has quit [Ping timeout: 265 seconds]
x0f has quit [Ping timeout: 265 seconds]
<bitflipping> aye haha, really as soon as I get this to work I shouldn't have to touch fiddle again haha
meizaps has quit [Ping timeout: 265 seconds]
womble has quit [Ping timeout: 265 seconds]
gnufied has joined #ruby-lang
bradland has joined #ruby-lang
bradland has joined #ruby-lang
mostlybadfly has joined #ruby-lang
dbussink has quit [Ping timeout: 244 seconds]
jlpeters has quit [Ping timeout: 244 seconds]
kang2011 has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 245 seconds]
<bitflipping> can you use included/mixin function from within your class?
womble has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
jlpeters has joined #ruby-lang
<bitflipping> or only as acting upon an object of that type
<kang2011> Hi, i'm new to ruby & sproutcore, i got this error when trying to use sproutcore: cannot load such file -- sass/script/node (LoadError)
io_syl has quit []
gnufied has quit [Ping timeout: 244 seconds]
robbyoconnor has joined #ruby-lang
martinbmadsen has joined #ruby-lang
manveru has quit [Ping timeout: 244 seconds]
mattyohe has quit [Ping timeout: 244 seconds]
LacyBee has quit [Quit: (null)]
jo__ has quit [Quit: Connection closed for inactivity]
<bradland> bitflipping: yes, you can use the methods from within your class if they are of the appropriate scope
<kang2011> yes
<bradland> that’s a great use for modules
<ericwood> kang2011: do you have sproutcore installed as a gem
saramic has quit [Remote host closed the connection]
twe4ked has quit [Ping timeout: 244 seconds]
ta has joined #ruby-lang
skade has joined #ruby-lang
<kang2011> i got sproutcore (1.10.3.1)
<kang2011> i install rvm
<kang2011> then install sproutcore
SuMo_D has joined #ruby-lang
<kang2011> with ruby 1.9.3
<ericwood> can you tell me what the output of this is? "gem list | grep sprout"
<ericwood> that doesn't mean it's installed as a gem
<ericwood> is this in a rails environment?
manveru has joined #ruby-lang
<kang2011> no, i just try out sproutcore, and do a hello worl
Musashi007 has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
<kang2011> I tried this: proutcore gen project getting_started
<ericwood> sproutcore is a JS library, what are you using on the ruby side to serve it?
<kang2011> i follow the tutorial from sproutcore
mattyohe has joined #ruby-lang
ta has quit [Ping timeout: 244 seconds]
DarkBushido has joined #ruby-lang
LITesterB has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
iamninja has quit [Quit: ZZZzzz…]
x0f has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
linc01n has quit [Ping timeout: 244 seconds]
SuMo_D has joined #ruby-lang
bcardarella_ has quit [Ping timeout: 245 seconds]
martinbmadsen has quit [Ping timeout: 252 seconds]
skade has quit [Quit: Computer has gone to sleep.]
dik_dak has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
linc01n has joined #ruby-lang
bcardarella_ has joined #ruby-lang
twe4ked has joined #ruby-lang
dik_dak has joined #ruby-lang
SuMo_D has quit [Ping timeout: 264 seconds]
michaeldeol has joined #ruby-lang
<bradland> bitflipping: was busy for a minute, but just threw this pastie up to illustrate: http://pastie.org/9830677
meizaps has joined #ruby-lang
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
adambeynon has quit [Ping timeout: 244 seconds]
dbussink has joined #ruby-lang
adambeynon has joined #ruby-lang
manveru has quit [Ping timeout: 244 seconds]
manveru has joined #ruby-lang
ta has joined #ruby-lang
fujimura has joined #ruby-lang
DeanH has joined #ruby-lang
_whitelogger_ has joined #ruby-lang
benlakey_ has joined #ruby-lang
tvl is now known as tobiasvl
Randroid has joined #ruby-lang
SuMo_D has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
Lewix has joined #ruby-lang
meizaps has joined #ruby-lang
<bradland> kang2011: did you get the sproutcore gem working?
crankharder has quit [Ping timeout: 244 seconds]
chills42 has quit [Remote host closed the connection]
chills42 has joined #ruby-lang
crankharder has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
Bwild has joined #ruby-lang
maso has joined #ruby-lang
_whitelogger_ has quit [Excess Flood]
x0f has joined #ruby-lang
<bitflipping> thanks bradland, this is kind of where I'm at right now, it seems I can't use included functions from within a proc thats being defined in the class http://pastebin.com/EcQKUw1s
_whitelogger_ has joined #ruby-lang
bcardarella_ has quit [Ping timeout: 244 seconds]
dbussink has quit [Ping timeout: 244 seconds]
bcardarella_ has joined #ruby-lang
<bradland> gaaaaaah, proc lexical closure madness
nikky has left #ruby-lang ["WeeChat 1.0.1"]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
<bitflipping> lol
meizaps has quit [Ping timeout: 244 seconds]
jlpeters has quit [Ping timeout: 244 seconds]
beawesomeinstead has quit [Ping timeout: 244 seconds]
ta has joined #ruby-lang
mistym has quit [Quit: Leaving...]
<bitflipping> so it seems I get my desired functionality by including Fiddle::CParser outside the class definition, but I'm not sure what effect that has on everything else outside of the file
<bitflipping> ie. were I to require the file from someplace else, I'd then have Fiddle::CParser included into the global scope?
bb010g has quit []
beawesomeinstead has joined #ruby-lang
jlpeters has joined #ruby-lang
<bradland> you probably don’t want to do that, because yes, you’d be including it in global scope
<bitflipping> word
<bradland> the issue you’re having is with scope
<bradland> there is a method for passing a binding to a proc when called with eval
<bradland> it looks like: eval(“my_proc”, binding)
vbatts|work has joined #ruby-lang
linc01n has quit [Ping timeout: 244 seconds]
vbatts|work is now known as vbatts_
bb010g has joined #ruby-lang
vbatts_ has left #ruby-lang [#ruby-lang]
mistym has joined #ruby-lang
meizaps has joined #ruby-lang
ta has quit [Ping timeout: 252 seconds]
<bnagy> :<
<bradland> bitflipping: the money is in the second answer, btw (eval with Proc#binding)
x0f has quit [Ping timeout: 244 seconds]
<bnagy> you're trying to dynamically call CParser from a proc and your soltuion is to eval with a binding?
<bnagy> just stop whatever you're doing, and go outside
<bnagy> it will all seem better tomorrow
Fretta has quit [Quit: Textual IRC Client: www.textualapp.com]
<bitflipping> haha, I was just thinking that having an eval statement in a relatively frequently called hash lookup would do wonders for my performance :p
<bitflipping> thank you for the answer though bradland
Iskarlar has joined #ruby-lang
io_syl has joined #ruby-lang
x0f has joined #ruby-lang
<bnagy> whatever parsing you're doing can surely be done statically
robbyoconnor has quit [Quit: Konversation terminated!]
<bnagy> and then you can use the results of that dynamically if you find you have to
<bradland> bitflipping: have a look at “Implementation strategy 5: mixins” in this document: http://dazuma.github.io/blockenspiel/rdoc/ImplementingDSLblocks_rdoc.html
<bradland> which does a fantastic job explaining why my eval suggestion is certifiably insane lol
brooks has quit [Quit: brooks]
<rickrobs> anyone have a suggestion on how I can execute some code after a certain amount of time has passed?
<bnagy> rickrobs: wait, then execute the code
<bradland> rickrobs: sleep
<rickrobs> I would like the current method to continue running
dbussink has joined #ruby-lang
<bnagy> threads
<bradland> you don’t want that, just sleep
<bradland> it’ll give the illusion that lots of work is happening
<rickrobs> so I'm listenting on a port and when I start receiving data I want to start a "timer" and then after 10 seconds or so have passed I want to execute the other code
<rickrobs> so sleeping in that loop won't work
<bnagy> still threads
<rickrobs> k
<rickrobs> thanks
<bnagy> usually your listener would be in a thread anyway
linc01n has joined #ruby-lang
<bnagy> ruby Queue is threadsafe if you need a way to sync stuff
manveru has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: zzz]
pepperbreath has joined #ruby-lang
cubicme has joined #ruby-lang
<rickrobs> ok cool thanks for the help @bnagy. I don't think I will need to sync anything with what I'm doing.
pwnz0r has joined #ruby-lang
manveru_ has joined #ruby-lang
<rickrobs> ah very nice. Thanks @brandland. I'm an iOS dev trying to hack some ruby so this is helping tons. I appreciate it.
meizaps has quit [Ping timeout: 244 seconds]
<bradland> rickrobs: a not-horrible threading tutorial: http://www.tutorialspoint.com/ruby/ruby_multithreading.htm
sk_0 has quit [Ping timeout: 240 seconds]
znz_jp has quit [Ping timeout: 244 seconds]
<dorei> why not eventmachine? i think it has built-in support for timers
meizaps has joined #ruby-lang
bradland has left #ruby-lang [#ruby-lang]
bradland has joined #ruby-lang
djbkd has joined #ruby-lang
znz_jp has joined #ruby-lang
beawesomeinstead has quit [Ping timeout: 244 seconds]
dorei has quit []
ta has joined #ruby-lang
dbussink has quit [Ping timeout: 244 seconds]
<bradland> rickrobs: dorei’s suggestion is actually really great. eventmachine’s README tutorial sounds like it might even cover almost exactly what you’re doing: http://www.rubydoc.info/github/eventmachine/eventmachine/file/docs/GettingStarted.md
<bnagy> EM is kind of dead afaik
x0f has quit [Ping timeout: 244 seconds]
mistym has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Remote host closed the connection]
<bradland> those references to 1.9.2 certainly weren’t reassuring
x0f has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
ledestin has joined #ruby-lang
<bradland> was it obviated by updates to Ruby’s built in concurrency features?
mistym has joined #ruby-lang
<bnagy> I think the key devs just got other work
yfeldblum has joined #ruby-lang
<womble> bnagy: It gets a release at *least* every 18 months!
<womble> (Whether it needs it or not!)
leonshalimov has joined #ruby-lang
<bnagy> last I looked celluloid was cool and still maintained
<bnagy> I just dunno if tarcieri is distracted with crypto / rust stuff now
ta has quit [Ping timeout: 255 seconds]
sk_0 has joined #ruby-lang
gix- has quit [Ping timeout: 240 seconds]
dbussink has joined #ruby-lang
bradland has quit [Quit: bradland]
dik_dak has quit [Quit: Textual IRC Client: www.textualapp.com]
leonshalimov has quit [Ping timeout: 252 seconds]
BubonicPestilenc has joined #ruby-lang
duderonomy has joined #ruby-lang
ta has joined #ruby-lang
gix has joined #ruby-lang
diegovio1 has joined #ruby-lang
pwnz0r has quit []
diegoviola has quit [Ping timeout: 240 seconds]
tenderlove has quit [Remote host closed the connection]
ta has quit [Ping timeout: 264 seconds]
nathanstitt has quit [Quit: I growing sleepy]
charliesome has joined #ruby-lang
nathanstitt has joined #ruby-lang
nathanstitt has quit [Client Quit]
mistym has quit [Changing host]
mistym has joined #ruby-lang
diegovio1 has quit [Ping timeout: 245 seconds]
kyb3r_ has joined #ruby-lang
nathanstitt has joined #ruby-lang
nathanstitt has quit [Client Quit]
linc01n has quit [Ping timeout: 244 seconds]
diegovio1 has joined #ruby-lang
adambeynon has quit [Ping timeout: 244 seconds]
diegovio1 is now known as diegoviola
dellavg_ has joined #ruby-lang
linc01n has joined #ruby-lang
adambeynon has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
lsegal has joined #ruby-lang
meizaps has quit [Ping timeout: 244 seconds]
shubhamgoyal has quit [Remote host closed the connection]
DarkBushido has quit [Ping timeout: 244 seconds]
michaeldeol has joined #ruby-lang
wallerdev has joined #ruby-lang
ta has joined #ruby-lang
mostlybadfly has quit [Ping timeout: 244 seconds]
io_syl has quit []
DarkBushido has joined #ruby-lang
Musashi007 has joined #ruby-lang
mostlybadfly has joined #ruby-lang
dbussink has quit [Ping timeout: 244 seconds]
mjc_ has quit [Ping timeout: 244 seconds]
meizaps has joined #ruby-lang
ta has quit [Ping timeout: 256 seconds]
linc01n has quit [Ping timeout: 244 seconds]
mjc_ has joined #ruby-lang
linc01n has joined #ruby-lang
ta has joined #ruby-lang
ItSANg___ has quit [Quit: Leaving...]
znz_jp has quit [Quit: kill -QUIT $$]
shubhamgoyal has joined #ruby-lang
znz_jp has joined #ruby-lang
shubhamgoyal has quit [Read error: Connection reset by peer]
shubhamg_ has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
linc01n has quit [Ping timeout: 244 seconds]
ledestin has quit [Quit: ledestin]
Randroid has quit [Quit: Randroid]
Lewix has quit [Remote host closed the connection]
ta has quit [Ping timeout: 256 seconds]
martinbmadsen has joined #ruby-lang
DarkBushido has quit [Ping timeout: 244 seconds]
linc01n has joined #ruby-lang
twe4ked has quit [Ping timeout: 244 seconds]
mistym has quit [Ping timeout: 244 seconds]
martinbmadsen has quit [Ping timeout: 264 seconds]
mistym has joined #ruby-lang
twe4ked has joined #ruby-lang
DarkBushido has joined #ruby-lang
dbussink has joined #ruby-lang
ta has joined #ruby-lang
Rylee has quit [Quit: WeeChat 1.1-dev]
Rylee has joined #ruby-lang
_whitelogger_ has joined #ruby-lang
Guest23235 has quit [Ping timeout: 252 seconds]
tenderlove has joined #ruby-lang
dbussink has quit [Ping timeout: 244 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has quit [Quit: Musashi007]
michaeldeol has joined #ruby-lang
vozcelik has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
diegoviola has quit [Read error: Connection reset by peer]
dbussink has joined #ruby-lang
BubonicPestilenc has quit [Ping timeout: 264 seconds]
meizaps has quit [Ping timeout: 244 seconds]
saramic has joined #ruby-lang
meizaps has joined #ruby-lang
x0f has quit [Ping timeout: 244 seconds]
jgpawletko has quit [Quit: jgpawletko]
bantic has joined #ruby-lang
dbussink has quit [Ping timeout: 244 seconds]
dellavg_ has quit [Ping timeout: 264 seconds]
tenderlove has quit [Ping timeout: 255 seconds]
dellavg_ has joined #ruby-lang
x0f has joined #ruby-lang
nofxx has quit [Ping timeout: 245 seconds]
pabs has quit [Ping timeout: 265 seconds]
dellavg_ has quit [Ping timeout: 264 seconds]
leonshalimov has joined #ruby-lang
Sadin_ has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
linc01n has quit [Ping timeout: 244 seconds]
saramic has quit []
apeiros has joined #ruby-lang
Sadin_ has joined #ruby-lang
leonshalimov has quit [Ping timeout: 240 seconds]
linc01n has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
seank_ has quit [Read error: No route to host]
seank_ has joined #ruby-lang
mrgoodcat has quit [Ping timeout: 245 seconds]
ducklobster has joined #ruby-lang
ducklobster has quit [Read error: Connection reset by peer]
ducklobster has joined #ruby-lang
Averna has quit [Quit: Leaving.]
AKASkip has joined #ruby-lang
ledestin has joined #ruby-lang
dbussink has joined #ruby-lang
mistym has quit [Ping timeout: 244 seconds]
<bitflipping> I think I've a solution thats not super clean, but it gets the job done, just need to implement it properly now.
<bitflipping> Essentially I'll make a class that includes Hash and Fiddle::CParser
apeiros has quit [Remote host closed the connection]
<bitflipping> then I can call hash.parse_ctype from within the block because its a method of an object being passed in
apeiros has joined #ruby-lang
<bitflipping> should stay contained in this area being used, due to being an exclusive type, so I won't be blowing up the rest of my code by including the functionality in the builtin Hash class
<bitflipping> :)
mistym has joined #ruby-lang
mistym has joined #ruby-lang
rahul_j has joined #ruby-lang
oleo__ has quit [Quit: Verlassend]
tectonic has joined #ruby-lang
apeiros has quit [Ping timeout: 264 seconds]
znz_jp has quit [Ping timeout: 244 seconds]
<stardiviner> How to write content to a stream data file with binary format? The file type is: application/octet-stream; charset=binary.
sangwoojoo_ has quit [Remote host closed the connection]
<bnagy> binwrite
manveru_ is now known as manveru
znz_jp has joined #ruby-lang
znz_jp has quit [Client Quit]
LITesterB has quit [Quit: Bye!]
x0f has quit [Ping timeout: 244 seconds]
bantic has quit [Quit: bantic]
x0f has joined #ruby-lang
<stardiviner> bnagy: bnagy binwrite, is open file with binary way, not really write binary format content into file.
znz_jp has joined #ruby-lang
<bnagy> uh.. ok. You're telling the story.
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
<bnagy> all ruby strings are 'binary'
<stardiviner> bnagy: I mean I want to write binary data into file. The binary data like this: https://stackoverflow.com/questions/23252458/response-setcontenttypeapplication-octet-stream
<bnagy> I heard you
djbkd has quit [Quit: My people need me...]
<bnagy> ruby strings are just binary blobs
<bnagy> the only thing that will mess with them is your io
tenderlove has joined #ruby-lang
<bnagy> but setting a content-type has basically nothing to do with any of that
<bnagy> that's a webserver question
<bnagy> hmm thanks terminal
<stardiviner> bnagy: I checked out the binwrite generated file with command: $ file -bi test2 , it is text/plain; charset=us-ascii.
<bnagy> if you want to write it into a file on the filesystem, though, binwrite
<bnagy> no, it's not
SuMo_D has quit [Ping timeout: 255 seconds]
<bnagy> or use the 'b' flag somewhere in when you open, but binwrite makesratakes away all that crap
<bnagy> because files don't have those things
<bnagy> trust me, binwrite just dumps binary into a file
<bnagy> file is probably confused because you wrote 'foo' or something
<bnagy> there's no implicit content type in a file on unix, file just guesses
kang2011 has quit []
<stardiviner> bnagy: wait, I don't understand those binary data or something else, I just did some Google, and have a need to generate a file with that format: application/octet-stream; charset=binary
tectonic has quit []
<stardiviner> bnagy: on unix, file just guesses ? no way to specify ?
<bnagy> ok well I can see that you don't really know what you're talking about, and I'm kind of bored with repeating the same thing
<bnagy> application-octet-stream is web crap
<bnagy> unix files are just files
fclausen has quit [Ping timeout: 272 seconds]
<stardiviner> bnagy: I see, so unix can't generate binary data file, web application can handle this ?
<womble> stardiviner: Yes, the 'file' command on a Unix system takes a guess at what the content-type of the file is based on its content.
<bnagy> another way to look at it is that _all_ unix files are binary data files
<womble> There's a rules file somewhere on your system that describes all the different formats that file knows about
<bnagy> content types come in when you need to warn an app ( web browser ) what it might be getting
<womble> It's actually rather interesting to see how it's done.
<womble> Or, at least, *I* think it's interesting...
<womble> bnagy: With hilarity invariably ensuing when you tell the browser what to expect, and then send it something else...
<bnagy> that would be mean
<womble> Yes... yes it would.
ItSANgo has joined #ruby-lang
mrgoodcat has joined #ruby-lang
<stardiviner> get a little understand. Here is what I found https://stackoverflow.com/questions/941856/write-binary-file-in-ruby , Does BinData do what I want?
booly-yam has quit [Ping timeout: 252 seconds]
<womble> stardiviner: The accepted answer on that question is a common way to write encoded values to a file in Ruby, yes.
tenderlove has quit [Ping timeout: 244 seconds]
_fritchie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fujimura has quit [Remote host closed the connection]
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
fujimura has joined #ruby-lang
<stardiviner> bnagy: womble thanks for your help.
martinbmadsen has joined #ruby-lang
<bnagy> stardiviner: binwrite is still safer than write
<bnagy> although it's only on Windows that write will backstab you
<bnagy> these days anyway
<stardiviner> bnagy: so use IO.binwrite to replace IO.write.
<bnagy> safest, yeah
<bnagy> but bindata is only needed if you're packing a higher level struct
apeiros has joined #ruby-lang
[spoiler] has joined #ruby-lang
tectonic has joined #ruby-lang
tectonic has quit [Client Quit]
<bnagy> like I said, ruby strings are raw binary blobs
<bnagy> >> "\xeb\xfe"
<eval-in> bnagy => "\xEB\xFE" (https://eval.in/242124)
emmesswhy has quit [Ping timeout: 240 seconds]
<bnagy> that could be x86 machine code, some non-printable 8 bit ascii or a non existant utf-8 char
<bnagy> it couldn't be ascii ascii
ta has quit [Ping timeout: 256 seconds]
<bnagy> >> "\xeb\xfe".encode 'ascii'
<eval-in> bnagy => "\xEB" followed by "\xFE" on UTF-8 (Encoding::InvalidByteSequenceError) ... (https://eval.in/242125)
martinbmadsen has quit [Ping timeout: 244 seconds]
<bnagy> oops
<bnagy> oh wow it's not even utf-8, my bad
<stardiviner> bnagy: This example get me understand what you said about ruby strings are raw binary.
pabs has joined #ruby-lang
<bnagy> \o/
<apeiros> any char beyond \x7f can't be ascii
emmesswhy has joined #ruby-lang
maso has quit [Ping timeout: 264 seconds]
twe4ked has quit [Ping timeout: 244 seconds]
twe4ked has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
Musashi007 has joined #ruby-lang
chinmay_dd has joined #ruby-lang
rahul_j has joined #ruby-lang
chinmay_dd has quit [Client Quit]
ledestin has quit [Quit: ledestin]
Kryptoni_ has joined #ruby-lang
Kryptonita has quit [Ping timeout: 255 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
twe4ked has quit [Ping timeout: 244 seconds]
twe4ked has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sadin_ has quit [Remote host closed the connection]
<[spoiler]> I think I developed a deranges sense of humour. I literally go through mails in our spam filter that are flagged as sex or romance related spam and read them for the lols
ItSANgo has quit [Quit: Leaving...]
amclain has quit [Quit: Leaving]
shubhamgoyal has joined #ruby-lang
shubhamgoyal has quit [Read error: Connection reset by peer]
shubham__ has joined #ruby-lang
ItSANgo has joined #ruby-lang
shubhamg_ has quit [Ping timeout: 255 seconds]
mistym has quit [Ping timeout: 244 seconds]
kwd has joined #ruby-lang
fclausen has joined #ruby-lang
arBmind has joined #ruby-lang
mistym has joined #ruby-lang
<ljarvis> what I would do to have that kind of spare time
twe4ked has quit [Ping timeout: 244 seconds]
fclausen has quit [Ping timeout: 272 seconds]
FastJack_ has quit [Quit: leaving]
FastJack has joined #ruby-lang
leonshalimov has joined #ruby-lang
twe4ked has joined #ruby-lang
ItSANgo has quit [Quit: Leaving...]
x0f has quit [Ping timeout: 244 seconds]
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
leonshalimov has quit [Ping timeout: 240 seconds]
rahul_j has quit [Quit: rahul_j]
vozcelik has quit [Quit: Textual IRC Client: www.textualapp.com]
x0f has joined #ruby-lang
rahul_j has joined #ruby-lang
twe4ked has quit [Ping timeout: 244 seconds]
banister has joined #ruby-lang
Iskarlar has joined #ruby-lang
twe4ked has joined #ruby-lang
<[spoiler]> ljarvis, it's usually while I'm handling an infected/hacked website and wait for the scan to complete.
<apeiros> ljarvis: I find that an interesting question - what exactly would you do for that kind of spare time? :D
<ljarvis> apeiros: um..
<ljarvis> i.. dont know
<tbuehlmann> ugh, am I too early for yorickrants?
booly-yam has joined #ruby-lang
<tbuehlmann> damn you appointments in the morning
<apeiros> tbuehlmann: yes. next performance is at 13:00 CET
<apeiros> preorder your ticket now!
<ljarvis> haha, no way will it be that late
<ljarvis> i give it 30 minutes
sarkyniin has joined #ruby-lang
bitflipping has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
<apeiros> we are now taking bets on when the next performance of yorickrants will happen
<ljarvis> we should build a web app
<ljarvis> in node
<ljarvis> no wait, io.js
<apeiros> backed by mongo
<ljarvis> maybe with a mysql slave
<apeiros> I heard it's so much fun
<apeiros> not mssql?
<ljarvis> just in case
<[spoiler]> Lmao
<ljarvis> that's true, and it needs to be webscale
robbyoconnor has joined #ruby-lang
<[spoiler]> Why does the node/whatever community have so much drama... I'm not even "in it" and I know about their drama
duderonomy has quit [Read error: Connection reset by peer]
<apeiros> oh, could also use memcached as our persistence layer
<tbuehlmann> just read io.js released 1.0.0, and of course 1.0.1 :D
<ljarvis> we should use a varnish front end too
<ljarvis> memcached wont be enough i dont imagine
* apeiros goes back preparing a confcall about webservices (SOAP, yummi!)
* apeiros burps in the process
Forgetful_Lion has joined #ruby-lang
<apeiros> oh, anybody happen to have material on async soap webservices?
sk_0 has quit [Ping timeout: 240 seconds]
t_ has quit [Ping timeout: 256 seconds]
ItSANgo has joined #ruby-lang
<ljarvis> apeiros: we wrote something ourselves in the end
<apeiros> ljarvis: soap? we will too. but I'm curious whether there's materials on best practices and "avoid this" patterns
<ljarvis> apeiros: yeah soap, we plug into github.com/loco2/lolsoap and use an async client with our own pooling implementation
solars has joined #ruby-lang
booly-yam has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 264 seconds]
ruby-lang331 has joined #ruby-lang
<ruby-lang331> Hi All
<ruby-lang331> I am newbie to ruby
<ruby-lang331> got confusion over == and === operator
<ruby-lang331> seems behaves in same manner
<ruby-lang331> tried to understand but failed to get ti
<ruby-lang331> it
<apeiros> ruby-lang331: it's not an operator, it's a method
<ruby-lang331> can any explain how == is different from ===
<apeiros> ruby-lang331: and like every other method, how it behaves depends on how the class you call it on implements it
<apeiros> Object defines equal?, eql?, === and == as aliases
<apeiros> equal? -> object identity (same object, same object_id)
<apeiros> eql? -> same hash key
<ruby-lang331> apeiros: can you give me a simple example to demonstrate == and ===
<apeiros> === -> case/when & grep equality. a bit the weirdo under the equals
<apeiros> == -> object equality, if <=> (comparison) is also defined, == should return true when <=> returns 0 (same ordering)
<ruby-lang331> i have googled so many blogs, but unable to understand
<apeiros> `case "foo"; when String; ` this uses === internally.
<apeiros> you'll usually not use === directly in your code.
<ruby-lang331> So you mean to say we dont use === operator in our real code?
skade has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
<ljarvis> ruby-lang331: https://eval.in/242146
<apeiros> ruby-lang331: rarely ever seen
<ljarvis> ruby-lang331: and no, not really. Sometimes people use it to check object classes though
t_ has joined #ruby-lang
sk_0 has joined #ruby-lang
kyb3r_ has quit [Ping timeout: 252 seconds]
fclausen has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
kyb3r_ has joined #ruby-lang
tenderlove has joined #ruby-lang
sarkyniin has quit [Remote host closed the connection]
futilegames has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
Integralist has joined #ruby-lang
Integral2st has joined #ruby-lang
Integral1st has joined #ruby-lang
Integral3st has joined #ruby-lang
duderonomy has joined #ruby-lang
hanjin has joined #ruby-lang
francisfish has joined #ruby-lang
benten has joined #ruby-lang
tenderlove has quit [Ping timeout: 244 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
meizaps has quit [Ping timeout: 244 seconds]
meizaps has joined #ruby-lang
ta has joined #ruby-lang
DarkBushido has quit [Ping timeout: 244 seconds]
DarkBushido has joined #ruby-lang
mistym has quit [Ping timeout: 244 seconds]
wallerdev has quit [Quit: wallerdev]
banister has joined #ruby-lang
fclausen has quit [Ping timeout: 272 seconds]
ta has quit [Ping timeout: 264 seconds]
mistym has joined #ruby-lang
ItSANgo has quit [Quit: Leaving...]
GBrawl has joined #ruby-lang
wallerdev has joined #ruby-lang
DivineEntity has quit [Ping timeout: 264 seconds]
DivineEntity has joined #ruby-lang
Kryptoni_ has quit [Ping timeout: 245 seconds]
meizaps has quit [Ping timeout: 244 seconds]
arBmind has quit [Quit: Leaving.]
meizaps has joined #ruby-lang
iamninja has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
emmesswhy has quit [Quit: This computer has gone to sleep]
marr has joined #ruby-lang
Sadin_ has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
ruby-lang331 has quit [Ping timeout: 246 seconds]
Sadin_ has quit [Remote host closed the connection]
Kryptonita has joined #ruby-lang
DarkBushido has quit [Ping timeout: 244 seconds]
Sadin_ has joined #ruby-lang
czj627 has joined #ruby-lang
Sadin_ has quit [Remote host closed the connection]
czj627 has left #ruby-lang [#ruby-lang]
Sadin_ has joined #ruby-lang
DarkBushido has joined #ruby-lang
Sadin_ has quit [Remote host closed the connection]
Sadin_ has joined #ruby-lang
shubham__ has quit [Remote host closed the connection]
mistym has quit [Ping timeout: 244 seconds]
shubhamgoyal has joined #ruby-lang
ta has joined #ruby-lang
mistym has joined #ruby-lang
leonshalimov has joined #ruby-lang
meizaps has quit [Ping timeout: 244 seconds]
Integral4st has joined #ruby-lang
Sadin_ has quit [Remote host closed the connection]
shubhamgoyal has quit [Ping timeout: 245 seconds]
ta has quit [Ping timeout: 252 seconds]
meizaps has joined #ruby-lang
hachiya has quit [Quit: No Ping reply in 180 seconds.]
hachiya has joined #ruby-lang
Integral1st has quit [Ping timeout: 245 seconds]
leonshalimov has quit [Ping timeout: 245 seconds]
linc01n has quit [Ping timeout: 243 seconds]
linc01n has joined #ruby-lang
donove has joined #ruby-lang
donove has joined #ruby-lang
x0f has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby-lang
mistym has quit [Ping timeout: 244 seconds]
Integral4st has quit [Read error: Connection reset by peer]
Integral1st has joined #ruby-lang
meizaps has quit [Ping timeout: 243 seconds]
x0f has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yorickpeterse> morning
ndrst has quit [Ping timeout: 244 seconds]
meizaps has joined #ruby-lang
<Kryptonita> morning
ndrst has joined #ruby-lang
Nixsos has joined #ruby-lang
DarkBushido has quit [Ping timeout: 244 seconds]
mistym has quit [Ping timeout: 244 seconds]
DarkBushido has joined #ruby-lang
hendranata_ has quit [Ping timeout: 264 seconds]
tmi_ has joined #ruby-lang
mistym has joined #ruby-lang
arBmind has joined #ruby-lang
kyb3r_ has quit [Read error: Connection reset by peer]
twe4ked has quit [Ping timeout: 244 seconds]
cubicme has left #ruby-lang [#ruby-lang]
arBmind has quit [Ping timeout: 256 seconds]
twe4ked has joined #ruby-lang
donove has quit [Quit: Leaving]
x0f has quit [Ping timeout: 244 seconds]
hramrach has quit [Remote host closed the connection]
x0f has joined #ruby-lang
arBmind has joined #ruby-lang
postmodern has quit [Ping timeout: 244 seconds]
benten has quit [Quit: ....]
hramrach has joined #ruby-lang
Sadin_ has joined #ruby-lang
postmodern has joined #ruby-lang
Iskarlar has joined #ruby-lang
ldnunes has joined #ruby-lang
postmodern has joined #ruby-lang
Iskarlar has quit [Ping timeout: 244 seconds]
Mon_Ouie has quit [Read error: Connection reset by peer]
Sadin_ has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
Sadin_ has joined #ruby-lang
martinbmadsen has joined #ruby-lang
tmi_ has quit [Quit: Changing server]
arBmind has quit [Read error: Connection reset by peer]
martinbmadsen has quit [Ping timeout: 244 seconds]
Sadin_ has quit [Remote host closed the connection]
shubhamgoyal has joined #ruby-lang
Sadin_ has joined #ruby-lang
Sadin_ has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
Sadin_ has joined #ruby-lang
shubhamgoyal has quit [Ping timeout: 256 seconds]
fujimura has quit [Remote host closed the connection]
Sadin_ has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
GBrawl has quit [Quit: (null)]
Sadin_ has joined #ruby-lang
banister has joined #ruby-lang
Sadin_ has quit [Remote host closed the connection]
postmodern has quit [Ping timeout: 264 seconds]
fujimura has quit [Ping timeout: 240 seconds]
Sadin_ has joined #ruby-lang
Sadin_ has quit [Remote host closed the connection]
fclausen has joined #ruby-lang
Sadin_ has joined #ruby-lang
Sadin_ has quit [Remote host closed the connection]
ta has joined #ruby-lang
mistym has quit [Ping timeout: 244 seconds]
mistym has joined #ruby-lang
ta has quit [Ping timeout: 245 seconds]
pico-pete has quit [Ping timeout: 240 seconds]
calumgunn has joined #ruby-lang
ishikawa has quit [Remote host closed the connection]
ishikawa has joined #ruby-lang
linc01n has quit [Ping timeout: 244 seconds]
rahul_j has joined #ruby-lang
linc01n has joined #ruby-lang
sferik has joined #ruby-lang
sferik has quit [Remote host closed the connection]
sferik has joined #ruby-lang
rahul_j has quit [Client Quit]
fclausen has quit [Ping timeout: 272 seconds]
rahul_j has joined #ruby-lang
Nixsos has quit [Quit: zzzz]
rahul_j has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
fclausen has joined #ruby-lang
leonshalimov has joined #ruby-lang
twe4ked has quit [Ping timeout: 244 seconds]
Nixsos has joined #ruby-lang
ta has joined #ruby-lang
twe4ked has joined #ruby-lang
postmodern has joined #ruby-lang
|jemc| has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Ping timeout: 272 seconds]
leonshalimov has quit [Ping timeout: 256 seconds]
shubhamgoyal has joined #ruby-lang
cubicme has joined #ruby-lang
shubhamgoyal has quit [Ping timeout: 256 seconds]
fclausen has quit [Ping timeout: 272 seconds]
iamninja has quit [Ping timeout: 250 seconds]
shubhamgoyal has joined #ruby-lang
tentimes has joined #ruby-lang
cubicme has quit [Quit: cubicme]
cubicme has joined #ruby-lang
jxie has quit [Ping timeout: 265 seconds]
benhuda has joined #ruby-lang
<benhuda> hi all
<benhuda> id like to compose a modern ruby api stack for a company that's never done ruby
jxie has joined #ruby-lang
<benhuda> any suggestions? (mostly for lightweight services and a nice data layer like activerecord)
devgiant has joined #ruby-lang
rahul_j has joined #ruby-lang
fujimura has joined #ruby-lang
Sadin_ has joined #ruby-lang
rahul_j has quit [Client Quit]
rahul_j has joined #ruby-lang
rahul_j has quit [Client Quit]
Sadin_ has quit [Remote host closed the connection]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scorix has quit [Ping timeout: 265 seconds]
rahul_j has joined #ruby-lang
GBrawl has joined #ruby-lang
tcopeland has quit [Quit: Leaving.]
cubicme has quit [Quit: cubicme]
rocco88 has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
jxie has quit [Ping timeout: 255 seconds]
jxie has joined #ruby-lang
crankharder has quit [Ping timeout: 240 seconds]
crankharder has joined #ruby-lang
shubhamgoyal has quit [Remote host closed the connection]
shubhamgoyal has joined #ruby-lang
sferik has joined #ruby-lang
shubhamgoyal has quit [Remote host closed the connection]
rahul_j has quit [Quit: rahul_j]
shubhamgoyal has joined #ruby-lang
shubhamgoyal has quit [Remote host closed the connection]
shubhamgoyal has joined #ruby-lang
shubhamgoyal has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
<ljarvis> benhuda: sinatra is popular for that kind of thing
<benhuda> im aware of sinatra, padrino, rails, and rails-api
<benhuda> im kind of aiming at something production, fully baked used by some large company
<benhuda> that covers development workflow, security, data, etc.
shubhamgoyal has joined #ruby-lang
shubhamgoyal has quit [Read error: Connection reset by peer]
<yorickpeterse> There's no silver bullet that solves all your problems
shubhamgoyal has joined #ruby-lang
<ljarvis> yeah if you want something decent you need to use those bricks to build yourself something that suits your needs
tenderlove has joined #ruby-lang
<ljarvis> I have an api that averages ~2m hits a day built on sinatra with postgres and sequel
<ljarvis> it's had hours and hours of tuning
<yorickpeterse> ~100k average a day here, also Sinatra/Sequel
<yorickpeterse> average response time is ~40ms
<yorickpeterse> 100% uptime too since we started it :P
<ljarvis> uptime for mine has been great too over the last 4 years
shubhamgoyal has quit [Ping timeout: 256 seconds]
scorix has joined #ruby-lang
GBrawl has quit [Ping timeout: 272 seconds]
tenderlove has quit [Quit: Leaving...]
ruby-lang933 has joined #ruby-lang
<ruby-lang933> Hello eveyone!
ta_ has joined #ruby-lang
<ruby-lang933> I would like to add 10 sec delay on iterating a loop...
<ljarvis> ruby-lang933: sleep 10
<ruby-lang933> eg: array has [10,23,65,24] first 10 would be displayed, after 10 senconds 23 would be displayed and so on...
nifoc has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ruby-lang933> Thanks! but sleep does not add delay on loop iteration
<ruby-lang933> I tried using sleep..
<tobiasvl> what do you mean ruby-lang933?
<tobiasvl> it suspends the current thread
<tobiasvl> it should add delay anywhere
nifoc has joined #ruby-lang
TvL2386 has joined #ruby-lang
<ruby-lang933> but will it display in that format..
<ruby-lang933> Maybe I was doing it wrong..
tentimes has quit [Quit: ASCII a stupid question, get a stupid ANSI!]
<tobiasvl> display in what format?
<tobiasvl> maybe you could show the code
<ruby-lang933> sure.
benlovell has quit [Ping timeout: 265 seconds]
<ruby-lang933> its a basic one..
<ruby-lang933> <% @a = [2131,324,23,32,45,3,234,32] %>
<ruby-lang933> <% for n in @a %> <% sleep 10 %> <%= n %> <% end %>
<ljarvis> ruby-lang933: you can't do it in a web view
<tobiasvl> nope, that will just make the whole website slower to render
scorix1 has joined #ruby-lang
<tobiasvl> you'll need to use something like jquery to update the page dynamically
scorix has quit [Ping timeout: 245 seconds]
ta has quit [Ping timeout: 245 seconds]
<ruby-lang933> I am creating a rake task..
cornerma1 has joined #ruby-lang
ta_ has quit [Remote host closed the connection]
yusuf has quit [Quit: Leaving.]
<ruby-lang933> I have the jquery code, which is running perfect..
<ruby-lang933> but I would like to run this on server with rake task..
GBrawl has joined #ruby-lang
benlovell has joined #ruby-lang
gregf_ has quit [Quit: leaving]
<ruby-lang933> It seems to be working, I replaced the code in controller action..
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
ta has joined #ruby-lang
Bwild has quit [Ping timeout: 240 seconds]
chills42 has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
chills42 has joined #ruby-lang
ruby-lang933 has quit [Quit: Page closed]
meschi has quit [Ping timeout: 244 seconds]
emmesswhy has joined #ruby-lang
emmesswhy has quit [Client Quit]
calumgunn has left #ruby-lang ["Textual IRC Client: www.textualapp.com"]
emmesswhy has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
crankharder has quit [Ping timeout: 245 seconds]
emmesswhy has quit [Client Quit]
crankharder has joined #ruby-lang
rahul_j has joined #ruby-lang
emmesswhy has joined #ruby-lang
banister has joined #ruby-lang
crankharder has quit [Ping timeout: 240 seconds]
crankharder has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rahul_j has joined #ruby-lang
Integral2st has quit [Ping timeout: 264 seconds]
Integralist has quit [Ping timeout: 256 seconds]
Integral1st has quit [Ping timeout: 264 seconds]
Integral3st has quit [Ping timeout: 264 seconds]
sferik has joined #ruby-lang
crankharder has quit [Ping timeout: 264 seconds]
rahul_j has quit [Quit: rahul_j]
lele|w has quit [Read error: Connection reset by peer]
leonshalimov has joined #ruby-lang
tkuchiki has joined #ruby-lang
lacrosse__ has joined #ruby-lang
Integralist has joined #ruby-lang
Integral1st has joined #ruby-lang
Integral2st has joined #ruby-lang
crankharder has joined #ruby-lang
lele|w has joined #ruby-lang
leonshalimov has quit [Ping timeout: 264 seconds]
tcopeland has joined #ruby-lang
iamninja has joined #ruby-lang
Integral1st has quit [Ping timeout: 240 seconds]
crankharder has quit [Ping timeout: 244 seconds]
Integralist has quit [Ping timeout: 264 seconds]
postmodern has quit [Quit: Leaving]
Integralist has joined #ruby-lang
Integral1st has joined #ruby-lang
Integral3st has joined #ruby-lang
crankharder has joined #ruby-lang
sudoubuntu has joined #ruby-lang
sudoubuntu has quit [Client Quit]
rahul_j has joined #ruby-lang
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crankharder has quit [Ping timeout: 255 seconds]
ItSANgo has joined #ruby-lang
crankharder has joined #ruby-lang
sferik has joined #ruby-lang
bantic has joined #ruby-lang
bantic has quit [Client Quit]
malconis has joined #ruby-lang
malconis has quit [Remote host closed the connection]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gregf_ has joined #ruby-lang
nifoc has quit [Remote host closed the connection]
scorix1 has quit [Ping timeout: 256 seconds]
rcvalle has joined #ruby-lang
nifoc has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
malconis has joined #ruby-lang
charliesome has quit [Quit: zzz]
zenspider has quit [Ping timeout: 265 seconds]
rahul_j has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JohnBat26 has joined #ruby-lang
shubhamgoyal has joined #ruby-lang
shubhamgoyal has quit [Ping timeout: 240 seconds]
zenspider has joined #ruby-lang
bradland has joined #ruby-lang
solars has quit [Ping timeout: 244 seconds]
sferik has joined #ruby-lang
toretore has joined #ruby-lang
devgiant_ has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has quit [Changing host]
Lewix has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
Musashi007 has quit [Quit: Musashi007]
Musashi007 has joined #ruby-lang
rahul_j has joined #ruby-lang
jgpawletko has joined #ruby-lang
scorix1 has joined #ruby-lang
devgiant has quit [Ping timeout: 244 seconds]
sferik has quit [Remote host closed the connection]
sferik has joined #ruby-lang
Musashi007 has quit [Client Quit]
ItSANgo has quit [Quit: Leaving...]
rocco88 has quit []
tkuchiki has quit [Remote host closed the connection]
AKASkip has quit [Quit: Leaving.]
tkuchiki has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
LITesterB has joined #ruby-lang
rahul_j has joined #ruby-lang
ta_ has joined #ruby-lang
Musashi007 has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
tkuchiki has quit [Ping timeout: 252 seconds]
leonshalimov has joined #ruby-lang
LITesterB has quit [Client Quit]
gix has quit [Quit: Client exiting]
martinbmadsen has joined #ruby-lang
ta_ has quit [Ping timeout: 244 seconds]
banister has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
leonshalimov has quit [Ping timeout: 245 seconds]
chills42 has quit [Remote host closed the connection]
chills42 has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 264 seconds]
chills42_ has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
chills42 has quit [Read error: Connection reset by peer]
solars has joined #ruby-lang
rcvalle has quit [Ping timeout: 264 seconds]
brooks has joined #ruby-lang
gix has joined #ruby-lang
oleo has joined #ruby-lang
goodcodeguy has joined #ruby-lang
JohnBat26 has joined #ruby-lang
jo__ has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
[spoiler] has quit [Quit: Leaving]
<yorickpeterse> welp, big DB migration is next Tuesday
<yorickpeterse> I hope I can get everything done by then
<yorickpeterse> and that nothing explodes
<yorickpeterse> also I hope RDS upgrades to pg 9.4 before then, but that's unlikely :/
mattyohe has joined #ruby-lang
rcvalle has joined #ruby-lang
elgreco has joined #ruby-lang
ta_ has joined #ruby-lang
rahul_j has joined #ruby-lang
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_fritchie has joined #ruby-lang
sferik has joined #ruby-lang
_fritchie has quit [Remote host closed the connection]
_fritchie has joined #ruby-lang
ta_ has quit [Ping timeout: 245 seconds]
rahul_j has quit [Client Quit]
tkuchiki has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
TvL2386 has quit [Ping timeout: 264 seconds]
sferik_ has joined #ruby-lang
stamina has joined #ruby-lang
brooks has quit [Quit: brooks]
matp has quit [Remote host closed the connection]
matp has joined #ruby-lang
pepperbreath has quit [Quit: Leaving.]
sferik has quit [Ping timeout: 264 seconds]
whippythellama has joined #ruby-lang
fujimura_ has joined #ruby-lang
fujimura has quit [Read error: Connection reset by peer]
<workmad3> yorickpeterse: is it at least 9.3 atm? :)
shubhamgoyal has joined #ruby-lang
TvL2386 has joined #ruby-lang
<wnd> 9.3.5 is available on rds
fujimura_ has quit [Ping timeout: 252 seconds]
chills42_ has quit [Remote host closed the connection]
iamninja has quit [Quit: Textual IRC Client: www.textualapp.com]
brooks has joined #ruby-lang
iamninja has joined #ruby-lang
SuMo_D has joined #ruby-lang
SuMo_D has quit [Client Quit]
shinnya_ has joined #ruby-lang
chills42 has joined #ruby-lang
Mon_Ouie has quit [Quit: WeeChat 1.0.1]
cantaberry has quit []
ItSANgo has joined #ruby-lang
shazaum has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
shazaum has quit [Changing host]
shazaum has joined #ruby-lang
ta_ has joined #ruby-lang
leonshalimov has joined #ruby-lang
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby-lang
seank_ has quit [Read error: No route to host]
seank_ has joined #ruby-lang
ruby-lang852 has joined #ruby-lang
sferik_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chills42 has quit [Remote host closed the connection]
bantic has joined #ruby-lang
<yorickpeterse> workmad3: yeah
klmlfl has joined #ruby-lang
havenwood has joined #ruby-lang
solars has quit [Ping timeout: 245 seconds]
nathanstitt has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
bitflipping has joined #ruby-lang
meschi has joined #ruby-lang
_fritchie has quit [Read error: Connection reset by peer]
TvL2386 has quit [Read error: Connection reset by peer]
_fritchie has joined #ruby-lang
_fritchie has quit [Max SendQ exceeded]
solars has joined #ruby-lang
_fritchie has joined #ruby-lang
<ljarvis> gaahhh session cookies im so confused
rippa has joined #ruby-lang
<workmad3> ljarvis: http is fun :)
<ljarvis> caching is hilarious
elgreco has quit [Remote host closed the connection]
leonshalimov has quit [Ping timeout: 256 seconds]
rahul_j has joined #ruby-lang
drunken_thor has joined #ruby-lang
tanema has joined #ruby-lang
leonshalimov has joined #ruby-lang
tanema has quit [Client Quit]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
Sadin_ has joined #ruby-lang
kwd has quit [Quit: kwd]
benhuda has quit [Remote host closed the connection]
devgiant has joined #ruby-lang
apeiros has quit [Ping timeout: 272 seconds]
[H]unt3r has joined #ruby-lang
ta_ has quit [Remote host closed the connection]
elgreco has joined #ruby-lang
devgiant_ has quit [Ping timeout: 264 seconds]
greenarrow has joined #ruby-lang
drunken_thor has quit [Quit: leaving]
drunken_thor has joined #ruby-lang
sangwoojoo has joined #ruby-lang
drunken_thor has quit [Client Quit]
drunken_thor has joined #ruby-lang
bantic has quit [Quit: bantic]
bantic has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
martinbmadsen has joined #ruby-lang
vozcelik has joined #ruby-lang
emmesswhy has joined #ruby-lang
mannyt has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 244 seconds]
Integralist has quit [Quit: leaving]
nux443 has joined #ruby-lang
|jemc| has joined #ruby-lang
apeiros has joined #ruby-lang
enebo has joined #ruby-lang
stamina has quit [Ping timeout: 240 seconds]
solars has quit [Ping timeout: 245 seconds]
dorei has joined #ruby-lang
dsf has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<dsf> #ruby-core
francisfish has quit []
sleepee has joined #ruby-lang
leonshalimov has quit [Ping timeout: 276 seconds]
sferik has joined #ruby-lang
sferik has quit [Client Quit]
yfeldblum has joined #ruby-lang
__butch__ has joined #ruby-lang
dsf has quit [Quit: Page closed]
seank_ has quit [Read error: Connection reset by peer]
seank_ has joined #ruby-lang
softaco_s has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
softaco_s has left #ruby-lang [#ruby-lang]
wallerdev has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
symm- has joined #ruby-lang
ta_ has joined #ruby-lang
drunken_thor has quit [Quit: leaving]
greenarrow has quit [Quit: 500]
rocco88 has joined #ruby-lang
ta_ has quit [Ping timeout: 272 seconds]
drunken_thor has joined #ruby-lang
bb010g has quit [Quit: Connection closed for inactivity]
elgreco_ has joined #ruby-lang
sent1nel has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sent1nel has quit [Client Quit]
nofxx has joined #ruby-lang
elgreco has quit [Ping timeout: 265 seconds]
setanta_ has joined #ruby-lang
devgiant has quit [Quit: Leaving]
ta_ has joined #ruby-lang
elgreco_ has quit []
diegoviola has joined #ruby-lang
AKASkip has joined #ruby-lang
sleepee has quit [Ping timeout: 264 seconds]
|jemc| has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
<bitflipping> I'm back! haha, I'm now trying to find a way to include/extend methods and variables from Fiddle::Importer such that when I include Fiddle::Win32Types it can call typealias and access @type_alias
chills42 has joined #ruby-lang
ta_ has quit [Ping timeout: 276 seconds]
lapide_viridi has joined #ruby-lang
drunken_thor has quit [Quit: leaving]
drunken_thor has joined #ruby-lang
ta_ has joined #ruby-lang
michaeldeol has joined #ruby-lang
ta_ has quit [Ping timeout: 245 seconds]
Nixsos has quit [Ping timeout: 244 seconds]
<bitflipping> or moreso, why is typealias undefined in this case: http://pastebin.com/1avqi0Ue
symm- has quit [Quit: Leaving...]
symm- has joined #ruby-lang
oleo is now known as Guest32097
oleo__ has joined #ruby-lang
leonshalimov has joined #ruby-lang
amsi has joined #ruby-lang
martinbmadsen has joined #ruby-lang
yalue has joined #ruby-lang
arBmind has joined #ruby-lang
Guest32097 has quit [Ping timeout: 245 seconds]
Lewix has quit [Remote host closed the connection]
iamninja has quit [Quit: ZZZzzz…]
leonshalimov has quit [Ping timeout: 240 seconds]
<bitflipping> just now seeing, I think the previous way is the way to go, @type_alias isn't defined until dlload is called, seems like the alias set up by the include would be overwritten then? TT___TT
chills42 has quit [Remote host closed the connection]
Lewix_ has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
chills42 has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 255 seconds]
RobertBirnie has joined #ruby-lang
symm- has quit [Ping timeout: 244 seconds]
malconis has joined #ruby-lang
ta_ has joined #ruby-lang
ta_ has quit [Ping timeout: 276 seconds]
Integral3st has quit [Ping timeout: 256 seconds]
Integral1st has quit [Ping timeout: 246 seconds]
Integral2st has quit [Ping timeout: 272 seconds]
leonshalimov has joined #ruby-lang
chinmay_dd has joined #ruby-lang
lytol has joined #ruby-lang
<Paradox> stupid gem i made
centrx has joined #ruby-lang
benlovell has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby-lang
diegoviola has quit [Read error: Connection reset by peer]
dvorkbjel has quit [Ping timeout: 264 seconds]
chinmay_dd has quit [Client Quit]
yfeldblu_ has quit [Ping timeout: 264 seconds]
weaksauce has quit [Ping timeout: 264 seconds]
astratto has joined #ruby-lang
dvorkbjel has joined #ruby-lang
wallerdev has joined #ruby-lang
workmad3 has quit [Ping timeout: 244 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
symm- has joined #ruby-lang
drunken_thor has quit [Quit: leaving]
astratto has quit [Quit: WeeChat 1.0.1]
michaeldeol has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
drunken_thor has joined #ruby-lang
unreal has quit [Ping timeout: 244 seconds]
ascarter has joined #ruby-lang
unreal has joined #ruby-lang
djbkd has joined #ruby-lang
drunken_thor has quit [Quit: leaving]
drunken_thor has joined #ruby-lang
ottlikg has joined #ruby-lang
Sadin_ has quit []
skade has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
dellavg_ has joined #ruby-lang
ddd has joined #ruby-lang
iamninja has joined #ruby-lang
vozcelik has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby-lang
ruby-lang304 has joined #ruby-lang
<ruby-lang304> Guys I got catalog structure like this: Main catalog have lib catalog + spec(integration catalog + unit catalog) catalog where should I have Gemfile + Gemfile.lock files?
<ruby-lang304> lib catalog got project code, integration - intergration tests(rspec, unit(unit tests rspec)
<yorickpeterse> Your question makes no sense
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yorickpeterse> Gemfiles should go in the root directory of your project if that's what you're asking
<ljarvis> ruby-lang304: at the top level
<ruby-lang304> OK thank you
marr has quit [Ping timeout: 252 seconds]
[H]unt3r has quit [Remote host closed the connection]
ta_ has joined #ruby-lang
[H]unt3r has joined #ruby-lang
dom420 has joined #ruby-lang
<dom420> is this the correct place to ask for ruby help?
chills42 has quit [Remote host closed the connection]
<dom420> i'm trying to override 'object.to_s' on an object by passing it a method
<dom420> not sure if thats even possible
<bradland> dom420: if you could gist some code showing what you’re trying to do, that would be helpful
<dom420> definitely
<dom420> just wanted to confirm this was the right place to do this first
<bradland> yep, you bet
<bradland> there’s this channel, and also #ruby
ta_ has quit [Ping timeout: 276 seconds]
<bradland> #ruby currently has about 942 people in it, but your question seems straight forward enough that it will probably be answered here
ta_ has joined #ruby-lang
chills42 has joined #ruby-lang
vozcelik has joined #ruby-lang
banister has joined #ruby-lang
Sadin has joined #ruby-lang
vozcelik has quit [Max SendQ exceeded]
ruby-lang353 has joined #ruby-lang
benlovell has joined #ruby-lang
<ddd> dom420, i think you want alias_method.
<ddd> brb
Sadin has quit [Client Quit]
SHyx0rmZ has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby-lang
ottlikg has left #ruby-lang [#ruby-lang]
ottlikg has joined #ruby-lang
Sadin has joined #ruby-lang
Sadin has quit [Remote host closed the connection]
<dom420> how do i use alias_method on an instance?
ruby-lang353 has quit [Ping timeout: 246 seconds]
<bradland> dom420: what is the class of the object returned by get_object_from_web()?
<dom420> its something from google's api
diegoviola has joined #ruby-lang
<dom420> id rather not care what the class is
benlovell has quit [Ping timeout: 272 seconds]
Sadin has joined #ruby-lang
<bradland> ideally, you’d define .to_s for that class, rather than override the method at this point
<dom420> yeah but since im not the one defining the class
<dom420> id like to be able to not worry about the object's class and simply override its to_s method
<bradland> you can monkey patch it, or you can add a method that is more specific for your use case (which is probably the smarter idea)
<ddd> that's fine, you just extend the class
<dom420> how do i do that on an instance
<bradland> Object#define_singleton_method should do what you want
<bradland> i don’t know if this is the best design decision though
Sadin has quit [Client Quit]
shazaum has quit [Quit: Leaving]
<dom420> does that override to_s on every sword in the program from then on
brooks has quit [Quit: brooks]
<bradland> yes
<bradland> dom420: you’ve got an extra curley brace on line 1 though
dangerousdave has joined #ruby-lang
rocco88 has quit []
Sadin has joined #ruby-lang
Sadin has quit [Remote host closed the connection]
<dom420> its just pseudo, but thank you
arBmind has quit [Ping timeout: 245 seconds]
arBmind has joined #ruby-lang
drunken_thor has quit [Quit: leaving]
drunken_thor has joined #ruby-lang
futilegames_ has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
futilegames_ is now known as futilegames
sarkyniin has joined #ruby-lang
dom420 has quit [Quit: Page closed]
skade has quit [Quit: Computer has gone to sleep.]
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #ruby-lang
brooks has joined #ruby-lang
<bitflipping> bradland: aye, I had come across a function in fiddle, dlload, which says @type_alias = {}
<bitflipping> to my knowledge that pretty much clears all the aliases that were set when you include Fiddle::Win32Types
<bitflipping> but then I found the function dlopen, which doesn't clear @type_alias
<bitflipping> I just never left the channel
<bradland> ah
<bradland> funtimes in Fiddle
<bitflipping> yessir haha
<bitflipping> I mean, at least I'm learning more about ruby in a short period of time than I would have had I not tried to get it working this way haha
siwica1 has joined #ruby-lang
cornerma1 has joined #ruby-lang
cornerman has quit [Ping timeout: 255 seconds]
cornerma1 is now known as cornerman
skade has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang61 has quit [Quit: WeeChat 1.1]
siwica1 has quit [Ping timeout: 276 seconds]
[H]unt3r has quit [Remote host closed the connection]
lytol has quit [Remote host closed the connection]
[H]unt3r has joined #ruby-lang
marr has joined #ruby-lang
workmad3 has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
wallerdev has quit [Quit: wallerdev]
Mon_Ouie has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlovell has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
leonshalimov has quit [Ping timeout: 265 seconds]
danromano has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlovell has quit [Ping timeout: 265 seconds]
dagda1 has joined #ruby-lang
leonshalimov has joined #ruby-lang
spuk has quit [Changing host]
spuk has joined #ruby-lang
eam_ is now known as eam
chills42 has quit [Remote host closed the connection]
pwnz0r has joined #ruby-lang
ta_ has quit [Ping timeout: 265 seconds]
benlovell has joined #ruby-lang
ascarter has joined #ruby-lang
AncientAmateur has joined #ruby-lang
wallerdev has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
danromano has quit [Ping timeout: 244 seconds]
nofxx has quit [Ping timeout: 246 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
benlovell has quit [Ping timeout: 272 seconds]
postmodern has joined #ruby-lang
chills42 has joined #ruby-lang
benlovell has joined #ruby-lang
leonshalimov has quit [Ping timeout: 276 seconds]
ddd has quit [Quit: reloading screenrc config]
ddd has joined #ruby-lang
Kryptonita has quit [Remote host closed the connection]
Kryptonita has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dabradley has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bwild has joined #ruby-lang
danromano has joined #ruby-lang
siwica has joined #ruby-lang
wprice_ is now known as wprice
rushed has joined #ruby-lang
Kryptonita has quit [Ping timeout: 265 seconds]
weaksauce has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
dellavg_ has quit [Ping timeout: 264 seconds]
drunken_thor has quit [Ping timeout: 255 seconds]
fclausen has joined #ruby-lang
arBmind has joined #ruby-lang
ta_ has joined #ruby-lang
benlovell has quit [Ping timeout: 245 seconds]
benlovell has joined #ruby-lang
oleo__ is now known as oleo
ottlikg has left #ruby-lang [#ruby-lang]
Lewix_ has quit [Remote host closed the connection]
lapide_viridi has quit [Quit: Leaving]
yfeldblum has quit [Remote host closed the connection]
martinbmadsen has joined #ruby-lang
ruby-lang304 has quit [Ping timeout: 246 seconds]
fclausen has quit [Ping timeout: 272 seconds]
rnardi has quit [Ping timeout: 252 seconds]
martinbmadsen has quit [Ping timeout: 245 seconds]
benlovell has quit [Ping timeout: 265 seconds]
yalue has quit [Read error: Connection reset by peer]
diegoviola is now known as resentido
wallerdev has quit [Quit: wallerdev]
bb010g has joined #ruby-lang
djbkd has joined #ruby-lang
resentido is now known as diegoviola
lytol has joined #ruby-lang
Lewix has joined #ruby-lang
diegoviola is now known as resentido
cantonic has quit [Read error: Connection reset by peer]
lytol has quit [Ping timeout: 245 seconds]
cantonic has joined #ruby-lang
chouhoul_ has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
ta_ has quit [Read error: Connection timed out]
chouhoulis has quit [Ping timeout: 264 seconds]
<ljarvis> [0, ..10]; => [0; 10]; #lolrust
leonshalimov has joined #ruby-lang
chouhoulis has joined #ruby-lang
leonshalimov has quit [Ping timeout: 256 seconds]
chouhoul_ has quit [Ping timeout: 264 seconds]
Kryptonita has joined #ruby-lang
<whitequark> ugh
fusillicode1 has quit [Quit: Leaving.]
Lewix has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 245 seconds]
<ljarvis> :D
michaeldeol has joined #ruby-lang
toertore has joined #ruby-lang
lytol has joined #ruby-lang
Kryptonita has quit [Ping timeout: 244 seconds]
toretore has quit [Ping timeout: 272 seconds]
<ericwood> that syntax is weird
tcopeland has quit [Quit: Leaving.]
<ljarvis> heh
workmad3 is now known as wm3|away
<womble> Yeah, trailing semicolons, WTF?
yfeldblum has joined #ruby-lang
drunken_thor has joined #ruby-lang
Guest571 is now known as perry
oddmunds has quit [Quit: WeeChat 1.1]
perry has quit [Changing host]
perry has joined #ruby-lang
<ericwood> unacceptable
<yorickpeterse> I made exactly 2 slides in LibreOffice for FOSDEM
<yorickpeterse> then it crashed :<
<ericwood> :D
<ericwood> just use LaTeX + beamer
<yorickpeterse> and I spent 30 minutes trying to figure out how to change the default font
<ericwood> I typically use either slid.es or Keynote depending on the presentation
<ericwood> slid.es is just a wysiwyg for impress.js or whatever; you can download the results or embed your own code in it
oddmunds has joined #ruby-lang
siwica has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby-lang
leonshalimov has joined #ruby-lang
ta_ has joined #ruby-lang
ruby-lang852 has quit [Ping timeout: 246 seconds]
<headius> yorickpeterse: nokogiri works on rbx now?
<headius> I just saw the bug updates
goodcodeguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wmoxam has quit [Ping timeout: 240 seconds]
siwica has joined #ruby-lang
wmoxam has joined #ruby-lang
hanjin has quit [Quit: Http://www.ZeroIRC.NET ¢Æ Zero IRC ¢Æ Ver 2.9G]
futilegames has quit [Quit: futilegames]
drunken_thor has quit [Quit: leaving]
rikkipitt has joined #ruby-lang
timanema has joined #ruby-lang
crankharder has quit [Quit: leaving]
crankharder has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
timanema has quit [Quit: leaving]
timanema has joined #ruby-lang
seank_ has quit [Remote host closed the connection]
seank_ has joined #ruby-lang
wmoxam has quit [Ping timeout: 256 seconds]
|jemc| has joined #ruby-lang
ta_ has quit [Ping timeout: 276 seconds]
AKASkip has quit [Ping timeout: 245 seconds]
wmoxam has joined #ruby-lang
fclausen has joined #ruby-lang
hahuang65 has joined #ruby-lang
<ljarvis> drbrain: fwiw im not against adding hoe again, but is there a simple way to do this doc stuff without it? seems like the only task that might depend on it
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby-lang
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby-lang
|jemc| has quit [Read error: Connection reset by peer]
sarkyniin has quit [Remote host closed the connection]
|jemc| has joined #ruby-lang
<drbrain> yeah, I'm rebuilding it
<ljarvis> my hero
ta_ has joined #ruby-lang
lytol has quit [Ping timeout: 252 seconds]
Nixsos has joined #ruby-lang
<drbrain> ok, pushed
<drbrain> you should try a publish_docs to make sure I have your SSH key properly
<ljarvis> drbrain: all good, cheers!
lytol has joined #ruby-lang
<drbrain> great!
pwnz0r has quit [Remote host closed the connection]
sangwoojoo has quit [Read error: Connection reset by peer]
sangwoojoo has joined #ruby-lang
ta_ has quit [Ping timeout: 276 seconds]
sangwoojoo has quit [Ping timeout: 276 seconds]
siwica has quit [Ping timeout: 264 seconds]
martinbmadsen has joined #ruby-lang
wm3|away has quit [Ping timeout: 265 seconds]
<bitflipping> anyone have experience with String unpack and the 'p' directive for null-terminated pointers?
[H]unt3r has quit []
<bitflipping> 'test'.unpack('p') is just giving me a []
ta_ has joined #ruby-lang
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
rushed has quit [Quit: rushed]
<drbrain> bitflipping: 'test' isn't null-terminated
<drbrain> >> ['test'].pack 'p'
<eval-in> drbrain => "\x10D|A" (https://eval.in/242475)
<drbrain> >> ['test'].pack('p').unpack('p')
<eval-in> drbrain => ["test"] (https://eval.in/242476)
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
nofxx has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 272 seconds]
<drbrain> bitflipping: I think you need to give it a real pointer
<bitflipping> hmm, k I guess I thought I came across an easy way to get a null-terminated string pointer from a ruby string haha
ta_ has quit [Ping timeout: 276 seconds]
<drbrain> if you want a pointer to a null terminated string from ruby then use pack instead of unpack
rikkipitt has quit []
djbkd has quit [Remote host closed the connection]
<drbrain> if you want it for a C extension use StringValueCStr
djbkd has joined #ruby-lang
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagda1 has joined #ruby-lang
dik_dak has joined #ruby-lang
ta_ has joined #ruby-lang
tcopeland has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
<bitflipping> drbrain: thanks, I'm trying to call wglGetProcAddress, which takes a pointer to a null-terminated string as input
ta_ has quit [Ping timeout: 276 seconds]
GBrawl has quit [Quit: (null)]
<drbrain> bitflipping: then you definitely want pack, but if you're using fiddle/DL/ffi it should be able to do the right thing when given a string
ta_ has joined #ruby-lang
<drbrain> unpack is to go the opposite way, from pointer to string
whippythellama has quit [Quit: whippythellama]
leonshalimov has quit [Ping timeout: 244 seconds]
<bitflipping> thats what I was thinking, but its returning a null-pointer, so I figured I'd poke around some? haha
apeiros has quit [Remote host closed the connection]
<bitflipping> word, 'test'.unpack('Z*').pack('p').unpack('p') is an identity function that I think I can use parts of to do stuff with
apeiros has joined #ruby-lang
setanta_ has quit [Quit: Leaving]
<bitflipping> well, not really an identity function, but its close, seems to go through the permutations I need
<bitflipping> thanks for the input
<bitflipping> *I think I need*
ta_ has quit [Ping timeout: 245 seconds]
<bnagy> did you try just null terminating the string yourself and passing it as a param?
symm- has quit [Ping timeout: 245 seconds]
ishikawa has quit [Remote host closed the connection]
hramrach has quit [Remote host closed the connection]
ishikawa has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
enebo has quit [Quit: enebo]
leandrosnunes has joined #ruby-lang
hramrach has joined #ruby-lang
rbowlby has joined #ruby-lang
Raycaster has joined #ruby-lang
<bitflipping> I wasn't sure how to do that TT___TT and from the basic searching I've done it seems like the null-padding of a string should null terminate it?
<bitflipping> I'm going to take a little break though, sorry for bringing something up and then dipping
<bradland> >> “foo\x00”
<bradland> >> "foo\x00"
<eval-in> bradland => "foo\u0000" (https://eval.in/242478)
<bradland> unicoooooodez
<bradland> >> "foo\x00".unpack("H*")
<eval-in> bradland => ["666f6f00"] (https://eval.in/242479)
<bradland> meh, same diff
<bnagy> it's just the display, yeah
emily_ has joined #ruby-lang
ruby-lang569 has joined #ruby-lang
<bnagy> >> "\u0000".bytesize
<eval-in> bnagy => 1 (https://eval.in/242480)
<bitflipping> O.O haha
skade has joined #ruby-lang
<bnagy> bitflipping: in general a string can be passed as a pointer to ffi stuff - that's how you'd pass a pointer to a struct etc, pack it and pass the string as a param
<bnagy> in your case try like s="foo"; s << "\x00"; res = this_takes_a_pointer(s)
<bnagy> I'm assuming fiddle is not batshit, so same _should_ work
ruby-lang569 has quit [Ping timeout: 246 seconds]
<drbrain> fiddle is an FFI wrapper with a DL-inspired API so it should work there too
ta_ has joined #ruby-lang
<bnagy> I didn't know that
<bnagy> so.. why not just use FFI? :/
<bnagy> did they feel guilty about DL?
<bnagy> (which never worked, as far as I could tell)
nathanstitt has quit [Quit: I growing sleepy]
emily_ has quit [Remote host closed the connection]
__butch__ has quit [Quit: Leaving.]
<bradland> yeah, *why* use Fiddle?
ta_ has quit [Ping timeout: 245 seconds]
dik_dak has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 245 seconds]
kramsee has quit [Ping timeout: 244 seconds]
djbkd has quit [Remote host closed the connection]
kramsee has joined #ruby-lang
kalehv has joined #ruby-lang
<bitflipping> its being used by opengl-core
leandrosnunes has quit [Ping timeout: 255 seconds]
spuk has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby-lang
<bitflipping> my brother wanted to get into some opengl coding and had experience with ruby, so looking through projects, opengl-core actually has newer functionality and it has some wrappers in opengl-aux that make it easier to set up and run
<bitflipping> I've had experience with opengl but not with ruby, but he didn't want to spend all his time on specificities of opengl calls which is why this was attractive
spuk has joined #ruby-lang
<bitflipping> while still being able to expand further in the future, and make the engine from the ground up
<bitflipping> we got it set up and working on his computer, which is a mac, which the author uses also
<bnagy> I was poking around a bit and the opengl landscape is pretty bleak :/
<drbrain> bnagy: API compatibility
<bitflipping> I've just been trying to get a dev environment set up on this computer which has windows
<bradland> soooo, about to submit a pull request to an OSS project for a bug i nailed down earlier.
ta_ has joined #ruby-lang
<bitflipping> so I've been trying to extend the library so it will work with windows, hence the poking around Fiddle's functionality and such
<bitflipping> nice
<bradland> the library calls `require 'rubygems'` and `require 'bundler/setup'`, both of which i have removed
<bradland> could anyone familiar with structuring bundler within gem projects have a quick look
<bradland> it's a very small PR
wallerdev has joined #ruby-lang
<drbrain> bradland: removing those two requires is good
<drbrain> a library shouldn't depend on bundler
<bradland> i agree
<bradland> cool, so that's sane
<bradland> ah, excellent link to reference when explaining my PR!
dik_dak has joined #ruby-lang
ta_ has quit [Ping timeout: 245 seconds]
AncientAmateur has quit [Remote host closed the connection]
leandrosnunes has joined #ruby-lang
djbkd has quit [Remote host closed the connection]