apeiros changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
jenrzzz has quit [Ping timeout: 245 seconds]
binaryplease has quit [Quit: binaryplease]
firstdayonthejob has quit [Ping timeout: 250 seconds]
GodFather has quit [Ping timeout: 260 seconds]
SCHAAP137 has joined #ruby
<ezio> i tried to get curb working but ... apparently it's for 0.9.3
<ezio> it's clearly abandoned
<ezio> huge stack of unresolved issues
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ezio> its installation has reminents of links that no longer exist
minimalism has joined #ruby
fmcgeough has joined #ruby
tau has quit [Remote host closed the connection]
nankyokusei has joined #ruby
Xentil has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Devalo has joined #ruby
kies has quit [Quit: baaaaiiiiiiiiiii~]
hightower2 has quit [Ping timeout: 256 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
hightower3 has quit [Ping timeout: 268 seconds]
hightower2 has joined #ruby
hightower3 has joined #ruby
kies has joined #ruby
VladGh has joined #ruby
CloCkWeRX has left #ruby [#ruby]
fmcgeough has quit [Quit: fmcgeough]
Devalo has quit [Ping timeout: 268 seconds]
jgpawletko has joined #ruby
jgpawletko has quit [Client Quit]
LiamW has joined #ruby
<LiamW> eee fun algorithm time
<daed> what algorithm
cibs has quit [Ping timeout: 268 seconds]
futabachannel has joined #ruby
cibs has joined #ruby
Channel6 has joined #ruby
<LiamW> let's say that you want to find the shortest leftmost "balanced" block in bbcode (this is like the balanced parentheses problem, but I think it can't be solved correctly with the tree solution)
<LiamW> "[b] stuff [/b]" should return the whole string, so should "[b] stuff [b] [/b]", but "[b]stuff[/b][/b]" should return "[b]stuff[/b]"
<LiamW> and I swear this is not an x/y problem
<LiamW> the opening block will /always/ be the first part of the string
<LiamW> in this case
JoshS has quit [Quit: Leaving]
Wizznt has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
GodFather has joined #ruby
toretore has quit [Ping timeout: 244 seconds]
Immune has quit [Ping timeout: 260 seconds]
honore has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
b_ has quit [Remote host closed the connection]
boadie has joined #ruby
JeanCarl1Machado has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
charliesome has quit [Client Quit]
charliesome has joined #ruby
nunchuck has quit [Read error: Connection reset by peer]
kirun has quit [Quit: Konversation terminated!]
nunchuck has joined #ruby
boadie_ has quit [Ping timeout: 246 seconds]
Immune has joined #ruby
Ropeney has joined #ruby
fulgore_ has quit [Ping timeout: 240 seconds]
Cork has quit [Ping timeout: 240 seconds]
arescorpio has joined #ruby
LoneHerm_ has joined #ruby
Cork has joined #ruby
Channel6 has quit [Quit: Leaving]
alex0ptr has quit [Remote host closed the connection]
enterprisey has joined #ruby
DenSchub has quit [Ping timeout: 248 seconds]
<havenwood> LiamW: for a non-Regexp solution: s[0..s.rindex('[/b]') + 3]
DenSchub has joined #ruby
ihme-TTilus has quit [Ping timeout: 256 seconds]
saltsa has quit [Ping timeout: 248 seconds]
byte512 has joined #ruby
TTilus has joined #ruby
<havenwood> LiamW: the_end = '[/b]'; s[0..s.rindex(the_end) + the_end.size]
<LiamW> you can't solve it with regexps to begin with unless you were being pragmatic and limited it to some x amount of nested states
<LiamW> but I want to fully handle nesting
<havenwood> LiamW: oh, i misread your last example
<LiamW> plus that won't get this scenario: '[b]foo[/b] [b]bar[/b]'
<LiamW> the inner portion will be "foo[/b] [b]bar"
<havenwood> what should it be?
<LiamW> but I want it to get "[b]foo[/b]"
mwlang has quit [Quit: mwlang]
<havenwood> LiamW: how about?: the_end = '[/b]'; s[0..s.index(the_end) + the_end.size.pred]
mwlang has joined #ruby
<havenwood> LiamW: it works with the examples you've given at least
<havenwood> or yeah, regexp
VladGh has quit [Ping timeout: 245 seconds]
<LiamW> fair enough, I haven't explained very well: with [b] it doesn't ever make sense to go more than one level
<LiamW> but [span][/span] etc could be nested to arbitrary levels
<havenwood> LiamW: This sure looks like xml or html but with square braces instead of angle braces :P
<LiamW> yup
mwlang has quit [Client Quit]
<LiamW> that's what bbcode pretty much is
<LiamW> "[span]x[span]y[/span]z[/span]a[/span]" => I want to get "[span]x[span]y[/span]z[/span]"
mwlang has joined #ruby
<havenwood> s.tr '[]', '<>'
<havenwood> :P
mwlang has quit [Client Quit]
<LiamW> I mean, I'm writing this to replace a buggy old parser with XSS flaws
<LiamW> so.
<LiamW> and I can't use an off-the-shelf one because this language is too customized
Bish has quit [Ping timeout: 244 seconds]
d^sh_ has quit [Ping timeout: 260 seconds]
palms has joined #ruby
<LiamW> I have the other language parts figured out
<LiamW> I just have to handle this damn arbitrary nesting problem
byte512 has quit [Ping timeout: 256 seconds]
Bish has joined #ruby
<havenwood> LiamW: granted i'm distracted at the moment but i don't quite follow the goal. i'd suggest posting a gist with description of why you're trying to do it and a bunch of examples (or better yet a failing minitest specs or tests)
Silthias has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
allcentury has joined #ruby
d^sh has joined #ruby
saltsa has joined #ruby
Silthias has joined #ruby
csk has joined #ruby
Axy has quit [Read error: Connection reset by peer]
byte512 has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Devalo has quit [Ping timeout: 244 seconds]
nankyokusei has joined #ruby
Papierkorb has quit [Ping timeout: 258 seconds]
Papierkorb has joined #ruby
benlieb has joined #ruby
<LiamW> hmm
<LiamW> what a weird problem..
nankyokusei has quit [Ping timeout: 265 seconds]
* LiamW 's head is reeling from semantic satiation of the word "span"
benlieb has quit [Quit: benlieb]
djbkd has joined #ruby
Silthias has quit [Ping timeout: 265 seconds]
Silthias has joined #ruby
swills has joined #ruby
Guest34150 has quit [Changing host]
Guest34150 has joined #ruby
Guest34150 is now known as bougyman
swills has quit [Remote host closed the connection]
swills has joined #ruby
DrCode has quit [Ping timeout: 244 seconds]
foofottufof has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<foofottufof> hello, am I alone?
Rodya_ has quit [Remote host closed the connection]
<LiamW> no
drale2k has quit [Ping timeout: 260 seconds]
brendan- has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
jackjackdripper has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
drale2k has joined #ruby
<foofottufof> Does anyone know which gtk is the best for little desktop ruby apps? I've seen lots of old info online but can't seem to find any consensus in 2016 for what 's really good. Any opinions? Thanks!
hinbody has quit [Quit: leaving]
GodFather has joined #ruby
gizless is now known as gizmore
benlieb has joined #ruby
benlieb has quit [Client Quit]
wpostma1 has joined #ruby
<pilne> from what i've seen in various distros, gtk2 is still ubiquitous, but gtk3 has almost taken over
<LiamW> gtk3 has better rb bindings as far as I know
<LiamW> because of gir etc
<Nilium> I think you'd probably want to look more at which gems are better maintained than GTK version at this point
marr has quit [Ping timeout: 245 seconds]
h1d has quit [Quit: h1d]
hinbody has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
Silthias has quit [Ping timeout: 245 seconds]
<foofottufof> I've read a lot about QtRuby, Shoes, and gtk2 & gtk3. But I haven't enough experience to tell which ones are smaller projects or aren't so well suited to ruby; and which are really working well in 2016.
<daed> i'd like to know as well
<foofottufof> Also tk is built in apparently
<daed> last time i looked at shoes was in 2008-2009
Silthias has joined #ruby
gener1c_ has joined #ruby
<foofottufof> Thanks for the ideas ;)
<foofottufof> I'll probably try a small project in each one and see what I can discover.
<LiamW> side note: you could also use libffi and use gtk handles direcly
swills has quit [Ping timeout: 250 seconds]
<LiamW> this would obviously be more of a pain in the ass but it would be similar to using gtk from C code
<foofottufof> OK, thanks. It looks like there are a lot of things to try. I'll check that out too.
Rickmasta has joined #ruby
<foofottufof> got to go. Goodnight!
gener1c has quit [Ping timeout: 265 seconds]
foofottufof has quit []
DrCode has joined #ruby
benlieb has joined #ruby
<havenwood> LiamW: How about StringScanner? Giving it a try.
<LiamW> StringScanner is annoying to use
<LiamW> I ended up writing my own
<LiamW> but that doesn't detail the algo that I need
<LiamW> just provides a framework for lexical analysis
jackjackdripper has quit [Quit: Leaving.]
<LiamW> (different project but you get the idea)
<LiamW> ((I also didn't know about ... vs .. so ignore my noobery))
benlieb has quit [Client Quit]
gener1c has joined #ruby
csk has quit [Ping timeout: 265 seconds]
<LiamW> this can be very easily used for making a parser with a non-recursive lexer (combined or not combined)
nankyokusei has joined #ruby
<LiamW> but it's impractical to make a recursive lexer with it, so my current project doesn't use it
gener1c_ has quit [Ping timeout: 256 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
harai_ has quit [Ping timeout: 265 seconds]
nankyokusei has quit [Ping timeout: 246 seconds]
igniting has quit [Ping timeout: 250 seconds]
Devalo has joined #ruby
Littlemyu_ has joined #ruby
benlieb has joined #ruby
<havenwood> LiamW: I commented on your gist fwiw
gusrub_ has joined #ruby
<havenwood> LiamW: it's not quite right but an excuse to play with StringScanner nonetheless
Devalo has quit [Ping timeout: 248 seconds]
<havenwood> LiamW: yeah, seems the requirements are unique enough that writing your own is the way to go :-)
csk has joined #ruby
gusrub_ has quit [Ping timeout: 260 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
Ropeney has joined #ruby
igniting has joined #ruby
mipesom has quit [Ping timeout: 256 seconds]
mipesom has joined #ruby
blackwind_123 has quit [Ping timeout: 258 seconds]
harai_ has joined #ruby
VladGh has joined #ruby
chrisja has quit [Quit: leaving]
jud has quit [Ping timeout: 258 seconds]
csk has quit [Read error: Connection reset by peer]
creat has joined #ruby
d^sh has quit [Ping timeout: 260 seconds]
d^sh has joined #ruby
harfangk has joined #ruby
jackjackdripper has joined #ruby
gusrub_ has joined #ruby
Channel6 has joined #ruby
redpants has quit [Quit: leaving]
nankyokusei has joined #ruby
ace05 has quit [Remote host closed the connection]
wpostma1 has quit [Ping timeout: 256 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
nankyokusei has quit [Ping timeout: 256 seconds]
creat has quit [Ping timeout: 240 seconds]
Yzguy has joined #ruby
<Yzguy> Hello!
<Yzguy> quick question, im doing trollop argument validations
<Yzguy> Trollop::die :ip, "must be a valid IPv4 Address" if ip =~ Resolv::IPv4::Regex
jenrzzz has joined #ruby
<Yzguy> I got it, man that was silly.
optiz0r has quit [Ping timeout: 265 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
hanmac has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
enterprisey has quit [Read error: Connection reset by peer]
jcao219 has quit [Ping timeout: 268 seconds]
GodFather has quit [Ping timeout: 260 seconds]
bocaneri has joined #ruby
govg has quit [Ping timeout: 260 seconds]
arnonhongklay has quit [Ping timeout: 268 seconds]
jackjackdripper has quit [Quit: Leaving.]
pilne has quit [Quit: Quitting!]
hanmac has joined #ruby
arnonhongklay has joined #ruby
agent_white has quit [Ping timeout: 258 seconds]
ace05 has joined #ruby
optiz0r has joined #ruby
arnonhongklay has quit [Client Quit]
jaguarmagenta has joined #ruby
astrobunny has joined #ruby
ace05 has quit [Ping timeout: 246 seconds]
agent_white has joined #ruby
palms has quit [Ping timeout: 260 seconds]
Silthias has quit [Ping timeout: 265 seconds]
Silthias has joined #ruby
nankyokusei has joined #ruby
djbkd has quit [Quit: My people need me...]
palms has joined #ruby
lel has quit [Quit: awejfiocsdjofd]
nankyokusei has quit [Ping timeout: 245 seconds]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
palms has quit [Ping timeout: 260 seconds]
palms has joined #ruby
Moosashi has joined #ruby
enterprisey has joined #ruby
bikram has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Silthias has quit [Ping timeout: 244 seconds]
pwnd_nsfw has joined #ruby
Silthias has joined #ruby
yanigisawa has quit [Quit: WeeChat 0.4.2]
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
ur5us has quit [Remote host closed the connection]
govg has joined #ruby
Devalo has joined #ruby
Littlemyu_ has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Read error: Connection reset by peer]
Devalo has quit [Ping timeout: 260 seconds]
Asher has joined #ruby
enterprisey has quit [Quit: Leaving]
blackwind_123 has joined #ruby
igniting has quit [Ping timeout: 256 seconds]
CloCkWeRX has joined #ruby
Yzguy has quit [Quit: Zzz...]
byte512 has quit [Ping timeout: 240 seconds]
railssmith has joined #ruby
Silthias has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby
Silthias has joined #ruby
jcao219 has joined #ruby
nankyokusei has joined #ruby
pwnd_nsfw` has joined #ruby
rohit_ has joined #ruby
pwnd_nsfw has quit [Ping timeout: 256 seconds]
Vile` has quit [Ping timeout: 268 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
arescorpio has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 240 seconds]
creat has joined #ruby
gix has joined #ruby
A5101 has quit [Ping timeout: 245 seconds]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
ur5us has joined #ruby
Tempesta has quit [Quit: See ya!]
rohit__ has joined #ruby
rohit_ has quit [Ping timeout: 252 seconds]
pwnd_nsfw has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
palms has quit [Ping timeout: 260 seconds]
cyphase has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
cyphase has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
ur5us has quit [Remote host closed the connection]
XV8 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Moosashi has quit [Quit: Moosashi]
djbkd has joined #ruby
nankyokusei has joined #ruby
CloCkWeRX has quit [Ping timeout: 250 seconds]
drPoggs has quit [Ping timeout: 250 seconds]
Devalo has quit [Ping timeout: 246 seconds]
ace05 has joined #ruby
bluOxigen has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
ace05 has quit [Ping timeout: 248 seconds]
Savage has joined #ruby
jtd has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
rohit__ has quit [Ping timeout: 260 seconds]
Madplatypus has joined #ruby
rohit__ has joined #ruby
rohit__ has quit [Client Quit]
rohit__ has joined #ruby
jtd has joined #ruby
cyphase has quit [Ping timeout: 268 seconds]
CloCkWeRX has joined #ruby
govg has joined #ruby
aupadhye has joined #ruby
cyphase has joined #ruby
bigmac has quit [Quit: Leaving]
CloCkWeRX has quit [Ping timeout: 260 seconds]
zacts has quit [Ping timeout: 240 seconds]
igniting has joined #ruby
Channel6 has quit [Quit: Leaving]
dionysus69 has joined #ruby
yardenbar has joined #ruby
nankyokusei has joined #ruby
ponga has quit []
ur5us has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
nankyokusei has quit [Ping timeout: 268 seconds]
yardenbar has quit [Ping timeout: 260 seconds]
CloCkWeRX has quit [Ping timeout: 250 seconds]
govg has quit [Ping timeout: 244 seconds]
blackbombay has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
drPoggs has joined #ruby
gizmore has quit [Ping timeout: 260 seconds]
etehtsea has joined #ruby
LoneHermit has joined #ruby
ace05 has joined #ruby
Devalo has joined #ruby
LoneHermit has quit [Ping timeout: 244 seconds]
agent_white has quit [Ping timeout: 258 seconds]
ace05 has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
ag4ve has quit [Ping timeout: 265 seconds]
nofxx_ has joined #ruby
CloCkWeRX has joined #ruby
nofxx has quit [Ping timeout: 246 seconds]
Ishido has joined #ruby
ag4ve has joined #ruby
<astrobunny> named parameters /dance
<astrobunny> bye bye options hash
lxsameer has joined #ruby
ur5us has joined #ruby
<blackbombay> they've been around for a while :-)
<astrobunny> yes
<astrobunny> and ive been using them for a while
<astrobunny> god bless them
<astrobunny> deleting code ftw
<blackbombay> i don't use them much so far.
<astrobunny> the takeup has been slow in my code too
<astrobunny> but its coming along
<astrobunny> it doesnt make sense for some funcs
egg_ has joined #ruby
<astrobunny> but its a blessing for a lot of them
<daed> we still have production environments running on ruby 1.8.7
* daed gags
<daed> it's only the one, but still
konsolebox has joined #ruby
etehtsea has quit [Ping timeout: 260 seconds]
A5101 has joined #ruby
nankyokusei has joined #ruby
Silthias has quit [Ping timeout: 245 seconds]
Silthias has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
ta_ has quit [Remote host closed the connection]
agent_white has joined #ruby
etehtsea has joined #ruby
futabachannel has quit [Quit: Leaving...]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
etehtsea has quit [Ping timeout: 240 seconds]
gizmore has joined #ruby
gizmore has quit [Remote host closed the connection]
gizmore has joined #ruby
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
LoneHermit has joined #ruby
rohit__ has quit [Ping timeout: 256 seconds]
gizmore has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
benlieb has quit [Client Quit]
<dminuoso> I need some input. I got an image from a PDF that is marked with a "FlateDecode". Zlib happly inflates this, but the output does not match any image format I'm aware of.
vuoto has joined #ruby
<dminuoso> OSX suggests the output is a VAX COFF...
pawnbox has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
<dminuoso> The inflated data starts with a couple dozen \FF bytes at both the start and end, it's a bit weird.
gusrub_ has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 260 seconds]
Devalo has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
pawnbox has joined #ruby
dnicole has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
ur5us has quit [Remote host closed the connection]
luckyruby has joined #ruby
conta1 has joined #ruby
edwinvdgraaf has joined #ruby
ag4ve has quit [Ping timeout: 258 seconds]
blaxter has joined #ruby
blaxter has quit [Remote host closed the connection]
ace05 has joined #ruby
charliesome has joined #ruby
blaxter has joined #ruby
nankyokusei has joined #ruby
edwinvdgraaf has quit [Ping timeout: 246 seconds]
VxJasonxV has joined #ruby
LoneHermit has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
aryaching has joined #ruby
<VxJasonxV> I'm attempting to collaborate on a Ruby gem, this gem has example files inside of it's git repo that users are supposed to copy out, switch out some values, install the gem externally (directly or via bundler) then run the example file
<VxJasonxV> I'm developing examples that are intended to test changes I'm making to the gem even if I never wind up committing the example file itself
c0mrad3 has joined #ruby
<VxJasonxV> Is it possible to require sources from the file system so it uses my local changes?
ace05 has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<daed> 'from the file system'?
ace05 has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
<dminuoso> VxJasonxV: Yes. Use the "path" directive in Bundler.
_djbkd has joined #ruby
<dminuoso> VxJasonxV: ie. gem 'foo', path: 'path/to/the/gem'
<VxJasonxV> that's what I tried to explain. This is a file *inside* the gem. Installing the gem inside of itself doesn't make sense to me
<dminuoso> What?
<dminuoso> VxJasonxV: ?testcase
<dminuoso> ?testcase
<ruby[bot]> dminuoso: I don't know anything about testcase
<dminuoso> ruby[bot]: You dont know much, do you?
LoneHerm_ has quit [Ping timeout: 260 seconds]
<VxJasonxV> not often
ace05 has quit [Remote host closed the connection]
<dminuoso> VxJasonxV: Test with spec/minitest/whatever framework you have, *not* with examples/ files
<VxJasonxV> my workspace is a gem's sources. It already has a Gemfile, which contains only codeclimate-test-reporter and gemspec
<dminuoso> They exist for a reason.
<VxJasonxV> that itself is difficult for a whole different reason, the primary author was working on a mocking server for test purposes, but that is well beyond my skill set
vuoto has quit [Remote host closed the connection]
<VxJasonxV> because we don't want to send hundreds of what are essentially junk requests to the service whenever tests are run
vuoto has joined #ruby
Yzguy has joined #ruby
<Yzguy> https://github.com/yzguy/fusionmanage -- my first ruby gem!
<Yzguy> figured it was a neat start project
<elomatreb> Yzguy: Any reason for having the action behing a flag? Couldn't they just be subcommands?
<Yzguy> not sure I understand, you mean like fusionmanage show versus fusionmanage --action show
<Yzguy> I had thought about that, new to trollop so wasn't too sure on how to do that (mixing between flags/non-flag)
<elomatreb> Yeah. This looks a little weird (Maybe it makes sense in the domain, not familiar)
ace05 has joined #ruby
<elomatreb> Of course, it's perfectly valid this way. No reason to do extra work
<Yzguy> Well I kinda of like the sub command thing with flags, just not sure how. if you have any references I would love to take a look
<Yzguy> ideally because it would be cool to only have to specify the like protocol, ip, etc when the sub command is forward
<Yzguy> err wait, i did that already :P but yeah I like the sub command idea
ace05 has quit [Remote host closed the connection]
iceWeasley has joined #ruby
<Yzguy> ah, found a doc on it
<Yzguy> I'll try it out! Thanks elomatreb
<Yzguy> I also need to work on tests next :) but baby steps
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
dionysus69 has joined #ruby
blaxter has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
A5101 has quit [Ping timeout: 268 seconds]
Yzguy has quit [Quit: Zzz...]
blaxter has joined #ruby
rohit__ has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
last_staff has joined #ruby
vuoto has quit [Remote host closed the connection]
pwnd_nsfw has quit [Ping timeout: 258 seconds]
vuoto has joined #ruby
JoshS has joined #ruby
Tempesta has joined #ruby
gingray has joined #ruby
tvw has joined #ruby
Silthias has quit [Ping timeout: 248 seconds]
modin has quit [Ping timeout: 246 seconds]
Hobbyboy has quit [Ping timeout: 260 seconds]
Silthias has joined #ruby
Savage has quit [Quit: Connection closed for inactivity]
modin has joined #ruby
yardenbar has joined #ruby
xrlk has quit [Ping timeout: 245 seconds]
nankyokusei has joined #ruby
Bish has quit [Remote host closed the connection]
agent_white has quit [Quit: brb sec]
TvL2386 has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
iceWeasley has quit [Quit: Page closed]
CloCkWeRX has quit [Ping timeout: 256 seconds]
ace05 has joined #ruby
_djbkd has quit [Remote host closed the connection]
<VxJasonxV> I got it working by running the same initialization that the gemspec file does. moving the local lib onto the start of $LOAD_PATH (unshift), and then just using the normal 'require' call.
VxJasonxV has left #ruby ["de/part'ing"]
_djbkd has joined #ruby
ace05 has quit [Ping timeout: 240 seconds]
_djbkd has quit [Ping timeout: 260 seconds]
Silthias has quit [Ping timeout: 252 seconds]
Silthias has joined #ruby
Dimik has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
claudiuinberlin has joined #ruby
shaman42 has quit [Ping timeout: 260 seconds]
TomyWork has joined #ruby
CloCkWeRX has joined #ruby
SesMan has joined #ruby
solocshaw has joined #ruby
nofxx_ has quit [Ping timeout: 258 seconds]
vondruch has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
RedFromage has joined #ruby
Hobbyboy has joined #ruby
SesMan has quit [Ping timeout: 260 seconds]
solocshaw has quit [Ping timeout: 256 seconds]
Salih has joined #ruby
Salih has joined #ruby
Salih has quit [Changing host]
nankyokusei has joined #ruby
edwinvdgraaf has joined #ruby
CloCkWeRX has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
aufi has joined #ruby
nobitanobi has joined #ruby
shaman42 has joined #ruby
nobitano_ has joined #ruby
nobitanobi has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
aswen has joined #ruby
Silthias has quit [Ping timeout: 252 seconds]
Silthias has joined #ruby
andikr has joined #ruby
marr has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
aganov has joined #ruby
elifoster has quit [Quit: sleep]
Silthias1 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
Silthias has quit [Ping timeout: 246 seconds]
teclator has joined #ruby
<quazimodo> I have something like like while line = file.gets; puts line; end
<quazimodo> it's running on another thread, but i need to be able to kill that thread. I have no idea how, it doesn't respond to calls to kill it
<quazimodo> in particular I'm using celluloid
luckyruby has quit [Quit: Leaving...]
<quazimodo> i mean, I don't know how to 'idle' the celluloid actor in between reading from the stdout
pawnbox has quit [Ping timeout: 246 seconds]
atmosx has joined #ruby
palms has joined #ruby
flying has joined #ruby
<daed> are you trapping signals?
<quazimodo> no, i haven't begun this
j`ey has joined #ruby
<heftig> with plain threads and no celluloid, Thread#raise and Thread#kill work just fine
<j`ey> I have a script which used the Net::HTTP stuff to logon to a site
<quazimodo> I'm happy for the thread/celluloid actor to block on read, as long as they and the main program respond to SIGINT
<j`ey> the site's SSL Cert has changed, now I'm getting: 'net/http.rb:933:in `connect_nonblock': SSL_connect returned=1 errno=0 state=error: certificate verify failed (OpenSSL::SSL::SSLError)'
<quazimodo> but i'm not sure how this works
<j`ey> is there some local 'cache' of the cert of something?
vondruch has joined #ruby
ramfjord has joined #ruby
CloCkWeRX has joined #ruby
mikecmpbll has joined #ruby
ace05 has joined #ruby
ur5us has joined #ruby
<quazimodo> this is so odd
<quazimodo> how do people spawn another process and monitor it simply?
<quazimodo> basically, i need my ruby program to spawn a node server and keep an eye on it in the development environment
<quazimodo> I presume I need 1 more ruby thread to do this
k13nox has joined #ruby
palms has quit [Ping timeout: 260 seconds]
<manveru> j`ey: look in /etc/ssl/certs
<manveru> j`ey: alternatively your SSL_CERT_FILE env var
<daed> or just set ssl verify to none
nankyokusei has joined #ruby
ferr has joined #ruby
ace05 has quit [Ping timeout: 248 seconds]
<dminuoso> quazimodo: Depends on what you mean by monitoring.
<manveru> if you don't care about security :P
Ishido has quit [Ping timeout: 240 seconds]
lenwood has joined #ruby
kareelee has joined #ruby
xrlk has joined #ruby
rohit__ has quit [Quit: Leaving]
aryaching has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
<quazimodo> dminuoso: how about just reading the stdout of the process and logging/puts'ing it
<quazimodo> something simple to start with
<dminuoso> quazimodo: I don't think you can kill a thread while its blocking by the way.
nankyokusei has quit [Ping timeout: 258 seconds]
<quazimodo> yeah see that's what i'm getting at
Tropical has joined #ruby
Fernando-Basso has joined #ruby
<quazimodo> i don't know these things :(
ocbtec has joined #ruby
koooge has quit [Quit: Leaving...]
<quazimodo> maybe it's wise to throw a timeout around the blocking io?
Ropeney has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
<dminuoso> quazimodo: Mmm a quick test case revals that you can kill blocking threads.
bikram has quit [Quit: Lost terminal]
<quazimodo> dminuoso: yes makes sense. I have no issues terminating with SIGKILL. SIGINT isn't so easy going
<quazimodo> so i need to figure out a way to allow SIGINTs through
bikram has joined #ruby
jsrn_ has joined #ruby
mlehrer has joined #ruby
<dminuoso> quazimodo: You're mixing things uyp.
<dminuoso> quazimodo: Signals are a process-wide thing, not thread specific.
frmendes has joined #ruby
<daed> yeah, how would you kill -9 a thread within a PID?
<daed> from externally
<daed> seems a little awkward
Ishido has joined #ruby
<quazimodo> is this safe?
<dminuoso> quazimodo: Generally "killing a thread" means "re-schedule the thread as stopped" and "interrupt" it
<dminuoso> quazimodo: That looks silly and wrong.
<daed> yeah, why is there a signal trap within the exception handler?
<dminuoso> quazimodo: If you want non-blocking IO - then use non-blocking IO. The signal handler in the rescue block is quite silly too.
mim1k|work has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 246 seconds]
<quazimodo> yeah it does look silly and wrong doesn't it
<quazimodo> i just have no idea how to gracefully handle a sigint while a thread's doing blocking IO
mim1k|work has joined #ruby
<dminuoso> quazimodo: you dont need to care
<dminuoso> quazimodo: just #kill the thread
Kero has quit [Ping timeout: 245 seconds]
Tropical has quit [Quit: Leaving]
Kero has joined #ruby
agit0 has joined #ruby
<quazimodo> dminuoso: so trap the sigint then #kill the thread?
<dminuoso> quazimodo: Depends. If you exit Ruby you dont have to, it will get reaped anyway.
<quazimodo> hrm cool
jcao219 has quit [Ping timeout: 244 seconds]
SCHAAP137 has joined #ruby
Xeago has quit [Ping timeout: 268 seconds]
Dimik has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
Xeago has joined #ruby
TvL2386 has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 244 seconds]
<j`ey> manveru: I looked in /etc/ssl/certs.. not sure exactly what Im looking for
bartek has joined #ruby
Beams has joined #ruby
mim1k|work has quit [Ping timeout: 250 seconds]
astrobunny has quit [Remote host closed the connection]
jaruga___ has joined #ruby
<manveru> j`ey: openssl s_client -connect host:port
<manveru> have you tried that yet?
Kero has quit [Ping timeout: 265 seconds]
mim1k|work has joined #ruby
toretore has joined #ruby
<j`ey> manveru: it's 43 right? for https://?
<tobiasvl> 443
<manveru> 443
Kero has joined #ruby
<j`ey> Verify return code: 21 (unable to verify the first certificate)
<j`ey> and now it's just waiting
pwnd_nsfw has joined #ruby
ur5us has quit [Remote host closed the connection]
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
<bikram> c
<manveru> you can cancel it then
<manveru> anw, that means you need to update your system certificates
<manveru> depends on the OS, but you should find plenty of docs for that online
medved_ has joined #ruby
teclator has quit [Ping timeout: 252 seconds]
joonty has joined #ruby
nobitano_ has quit []
nobitanobi has joined #ruby
mark_66 has joined #ruby
<j`ey> manveru: ok (ubuntu) I'll go have a look
blackbombay has quit [Ping timeout: 240 seconds]
blaxter has quit [Quit: foo]
Snowy has joined #ruby
mim1k|work has quit [Ping timeout: 246 seconds]
skweek has quit [Ping timeout: 252 seconds]
SCHAAP137 has quit [Ping timeout: 240 seconds]
<xrlk> returning a 2
<xrlk> is the best case scenario
<xrlk> damn
Snowy has quit [Remote host closed the connection]
<xrlk> thats like half the job
Snowy has joined #ruby
mim1k|work has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JeanCarloMachado has joined #ruby
nankyokusei has joined #ruby
jcao219 has joined #ruby
teclator has joined #ruby
agit0 has quit [Ping timeout: 260 seconds]
ruby[bot] has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
ruby-lang343 has joined #ruby
tomphp has joined #ruby
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Changing host]
SCHAAP137 has joined #ruby
medved_ has quit [Ping timeout: 260 seconds]
frmendes has quit [Quit: cya...]
bikram has quit [Ping timeout: 245 seconds]
manjaro-kde5 has joined #ruby
lenwood has quit [Remote host closed the connection]
boadie_ has joined #ruby
boadie_ has quit [Client Quit]
bartek has quit [Ping timeout: 248 seconds]
<j`ey> manveru: can I PM?
boadie has quit [Ping timeout: 256 seconds]
mim1k|work has quit [Ping timeout: 260 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jcao219 has quit [Ping timeout: 260 seconds]
mim1k|work has joined #ruby
nankyokusei has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
nettoweb has joined #ruby
ldnunes has joined #ruby
orangey has quit [Ping timeout: 256 seconds]
nankyokusei has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
tomphp has joined #ruby
b_ has joined #ruby
mrwn has joined #ruby
aidalgol has quit [Remote host closed the connection]
cyphase has quit [Ping timeout: 268 seconds]
orangey has joined #ruby
workmad3 has joined #ruby
cyphase has joined #ruby
conta1 has quit [Ping timeout: 265 seconds]
Cymew has joined #ruby
conta has joined #ruby
ace05 has joined #ruby
orangey has quit [Ping timeout: 248 seconds]
nankyokusei has joined #ruby
Beams has quit [Quit: .]
ace05 has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
XV8 has quit [Quit: Textual IRC Client: www.textualapp.com]
Immune has quit [Ping timeout: 260 seconds]
cyphase has quit [Ping timeout: 258 seconds]
agent_white is now known as agent_zzz
agent_zzz has quit [Quit: leaving]
<apeiros> dminuoso: re your image issue - have you tried jbig2?
jenrzzz has quit [Ping timeout: 260 seconds]
orangey has joined #ruby
<dminuoso> apeiros: Mmmm, no.
<dminuoso> apeiros: I assumed that imagemagick at least knew how to recognize any humanly possible image format.
cyphase has joined #ruby
<apeiros> sane approach
<apeiros> but we live in an insane world ;-) (I've no idea whether IM would recognize jbig2)
<dminuoso> apeiros: Im close to thinking that the deflated data is actually PDF data, rather than raw jpeg
bikram has joined #ruby
<apeiros> pdf embedded in pdf? :D
<daed> we have to go deeper
Cymew has quit [Ping timeout: 246 seconds]
aswen has quit [Quit: WeeChat 1.5]
bikram has quit [Ping timeout: 250 seconds]
<apeiros> daed: what for? you'll only find turtles ^^
j`ey has left #ruby [#ruby]
<daed> we need to incept the idea of image file formats into imagemagick's brain
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
govg has joined #ruby
Rodya_ has joined #ruby
JeanCarloMachado has quit [Ping timeout: 268 seconds]
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 268 seconds]
tvw has quit []
JeanCarloMachado has joined #ruby
tvw has joined #ruby
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
nobitanobi has quit [Ping timeout: 260 seconds]
LiamW has left #ruby ["WeeChat 1.5"]
maokomioko has joined #ruby
banisterfiend has joined #ruby
cyphase has quit [Ping timeout: 258 seconds]
ruby-lang343 has quit [Ping timeout: 260 seconds]
egg_ has quit [Read error: Connection reset by peer]
martynas_ has joined #ruby
eGGshke has joined #ruby
cyphase has joined #ruby
bikram has joined #ruby
Sammichmaker has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
pawnbox has quit [Remote host closed the connection]
bayed has joined #ruby
Rodya_ has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 260 seconds]
govg has quit [Ping timeout: 256 seconds]
pragmaticus has joined #ruby
Beams has joined #ruby
ruby-lang841 has joined #ruby
ldnunes has quit [Ping timeout: 245 seconds]
pawnbox has joined #ruby
ddffg has joined #ruby
sdothum has joined #ruby
charliesome has joined #ruby
c355e3b has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
ace05 has joined #ruby
GodFather has joined #ruby
ldnunes has joined #ruby
ruby-lang841 has quit [Client Quit]
cyphase has quit [Ping timeout: 245 seconds]
ledestin has joined #ruby
ace05 has quit [Ping timeout: 240 seconds]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
vali has joined #ruby
octo8 has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
cyphase has joined #ruby
pawnbox has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
pawnbox has joined #ruby
jenrzzz has joined #ruby
teclator has quit [Ping timeout: 268 seconds]
kobain has joined #ruby
teclator has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 245 seconds]
nankyokusei has joined #ruby
claudiuinberlin has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bikram has quit [Quit: Lost terminal]
tau has joined #ruby
cyphase has quit [Ping timeout: 245 seconds]
manjaro-kde5 has quit [Ping timeout: 260 seconds]
ldnunes has quit [Ping timeout: 268 seconds]
b_ has quit [Quit: Leaving]
pawnbox has joined #ruby
cyphase has joined #ruby
Beams has quit [Quit: .]
vali has quit [Quit: WeeChat 1.6]
charliesome has joined #ruby
Beams has joined #ruby
igniting has quit [Ping timeout: 245 seconds]
brendan- has joined #ruby
igniting has joined #ruby
nankyokusei has joined #ruby
Beams has quit [Ping timeout: 258 seconds]
sparch has joined #ruby
nobitanobi has joined #ruby
Immune has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sparch has quit [Client Quit]
sparch has joined #ruby
sparch has quit [Changing host]
sparch has joined #ruby
k13nox has quit [Remote host closed the connection]
MissionCritical has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 265 seconds]
ldnunes has joined #ruby
nobitanobi has quit []
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
pragmaticus has quit [Ping timeout: 260 seconds]
allcentury has joined #ruby
kareelee_ has joined #ruby
blackmesa has joined #ruby
blackbombay has joined #ruby
dionysus69 has joined #ruby
cyphase has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
charliesome has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
kareelee has quit [Ping timeout: 252 seconds]
eGGshke has quit [Remote host closed the connection]
eGGshke has joined #ruby
lenwood has joined #ruby
ruby-lang327 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
cyphase has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
djellemah has quit [Ping timeout: 244 seconds]
johnmilton has joined #ruby
ruby-lang327 has quit [Ping timeout: 260 seconds]
brendan- has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
_4ivilo has joined #ruby
blackmesa has joined #ruby
pawnbox has joined #ruby
ace05 has joined #ruby
ldnunes has quit [Ping timeout: 258 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
biberu has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
ace05 has quit [Ping timeout: 258 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
nadir has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
GinoManWorks has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
pragmaticus has joined #ruby
synthroid has joined #ruby
kareelee has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
ldnunes has joined #ruby
cyphase has quit [Ping timeout: 240 seconds]
joonty has quit [Quit: This computer has gone to sleep]
Vile` has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
kareelee_ has quit [Ping timeout: 268 seconds]
honore has quit [Quit: zzz]
cyphase has joined #ruby
maokomioko has quit [Quit: Textual IRC Client: www.textualapp.com]
csk has joined #ruby
joonty has joined #ruby
claudiuinberlin has joined #ruby
nankyokusei has joined #ruby
gnufied has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
nankyokusei has quit [Ping timeout: 265 seconds]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
JeanCarloMachado has quit [Remote host closed the connection]
GodFather has joined #ruby
k13nox has joined #ruby
k13nox has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
tyang has joined #ruby
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
nankyokusei has joined #ruby
sepp2k has joined #ruby
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
<kke> looks like i need to build a programming language on top of hashes.. something like: { skip_if: { db_driver: { is: [ 'mysql', 'galera' ], and: { db_host: { null: false } } } should create something like: `if (db_driver == 'mysql' || db_driver == 'galera') && !db_host.nil?` any tips, is there something i should be using?
nankyokusei has quit [Ping timeout: 244 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<manveru> kke: you... what?
<apeiros> it seems they have an AST in a hash
<apeiros> and want to evaluate it
Snowy has quit [Ping timeout: 265 seconds]
<manveru> how about something like liquid instead?
<manveru> i'm mostly interested what "need" means :)
k13nox has joined #ruby
d0nn1e has quit [Ping timeout: 244 seconds]
Vile` has quit [Ping timeout: 256 seconds]
<kke> can't use liquid, has to be yaml compatible
<apeiros> isn't liquid a template thingy?
<manveru> yeah
vuoto has quit [Remote host closed the connection]
<kke> wasn't one of liquids intentions to remove all conditional logic from views?
nankyokusei has joined #ruby
vuoto has joined #ruby
<kke> i think AST was the keyword i was after
<apeiros> it's cute how every other template language sets out with that goal initially
<manveru> i meant more the implementation of liquid than the usage :)
<blackbombay> apeiros: some go a lot further than others. effigy for example.
d0nn1e has joined #ruby
<apeiros> lynk?
<dminuoso> apeiros: Even more cute how modern solutions even go back to the roots, realizing that mixing code and markup is extremely elegant. :p
<manveru> kke: well, in the end you're gonna build your own programming language now :)
<blackbombay> https://github.com/jferris/effigy - looks unmaintained nowadays.
<apeiros> blackbombay: thanks
johnmccabe has joined #ruby
eGGshke has quit []
chadwtaylor has joined #ruby
chadwtaylor has quit [Remote host closed the connection]
chadwtaylor has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
fmcgeough has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
<apeiros> dminuoso: yeah, it's difficult to do templating well. it's annoyingly easy to mess up no matter which variant you choose - all code outside of the template (akin what effigy seems to do), mixed, or all code in the template - all ways lead to hell eventually :-S
xrlk has quit [Ping timeout: 260 seconds]
k13nox has quit [Quit: Leaving...]
quazimodo has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
aupadhye has quit [Remote host closed the connection]
blackwind_123 has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackwind_123 has joined #ruby
banisterfiend has quit [Ping timeout: 244 seconds]
nettoweb has quit [Ping timeout: 248 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
SCHAAP137 has quit [Quit: Leaving]
Littlemyu_ has joined #ruby
aegis3121 has joined #ruby
jhack has joined #ruby
sgronblo has left #ruby [#ruby]
last_staff has quit [Quit: last_staff]
nankyokusei has joined #ruby
Hanynowsky has joined #ruby
Cymew has joined #ruby
<Hanynowsky> hello guys
<Hanynowsky> needs an urgent help
<Hanynowsky> I am using a small Sinatra app
<Hanynowsky> That serves as an API
nettoweb has joined #ruby
<Hanynowsky> well, It receives too many http requests
<Hanynowsky> and I get CONNECTION REFUSED
<Hanynowsky> error
Cymew has left #ruby [#ruby]
<Hanynowsky> How can i configure Sinatra to accept a big number of simultaneous requests
<Hanynowsky> ???
SCHAAP137 has joined #ruby
<blackbombay> what web server are you using? it sounds like it dies.
swills has joined #ruby
<apeiros> that might well not be a limitation of sinatra Hanynowsky
<Hanynowsky> apeiros, so a limitation of the THIN server ?
<apeiros> Hanynowsky: how many connections are we talking about?
<Hanynowsky> apeiros, ~~ 1000
<apeiros> search for max_conns
nankyokusei has quit [Ping timeout: 256 seconds]
<Hanynowsky> I guess it is 1024
swills has quit [Remote host closed the connection]
swills has joined #ruby
<Hanynowsky> When you first start the sinatra app, it tells you : Max connections set to 1024
brendan- has joined #ruby
<apeiros> yes, see ^
<Hanynowsky> But I can't figure out where to change that setting
cdg has joined #ruby
<Hanynowsky> sinatra and thin were installed as GEMS
<Hanynowsky> apeiros, hummm !
nankyokusei has joined #ruby
<Hanynowsky> What if I lock sinatra to server requests synchronosly ?
<Hanynowsky> synchronously
<Hanynowsky> Would it make sure all requests pass through even though ot takes more time to be served
tlaxkit has joined #ruby
<apeiros> no idea
<Hanynowsky> ok thanks :)
<Hanynowsky> I am gonna try
vuoto has quit [Remote host closed the connection]
medved_ has joined #ruby
vuoto has joined #ruby
ramortegui has joined #ruby
nankyoku_ has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
Savage has joined #ruby
nankyokusei has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nankyoku_ has quit [Ping timeout: 244 seconds]
Beams has joined #ruby
binaryplease has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
millerti has joined #ruby
eclm has joined #ruby
rfoust has joined #ruby
_sfiguser has joined #ruby
zamasu has joined #ruby
<zamasu> It is possible to use multiple languages with Yard?
<zamasu> Spanish, English...
dviola has joined #ruby
malconis has joined #ruby
binaryplease has quit [Quit: binaryplease]
spiette has quit [Ping timeout: 265 seconds]
spiette has joined #ruby
Helheim has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
malconis has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
pawnbox_ has joined #ruby
allcentury has joined #ruby
workmad3 has joined #ruby
DLSteve has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
MissionCritical has joined #ruby
DroidBurgundy has joined #ruby
grug is now known as GRUG-THE-THUG
shinnya has joined #ruby
malconis has joined #ruby
bluOxigen has quit [Remote host closed the connection]
Littlemyu_ has quit [Ping timeout: 260 seconds]
binaryplease has joined #ruby
Snowy has joined #ruby
tuxaddicted has quit [Ping timeout: 268 seconds]
flyingX has joined #ruby
Rodya_ has joined #ruby
bluOxigen has joined #ruby
flying has quit [Ping timeout: 240 seconds]
saslam has joined #ruby
bluOxigen has quit [Remote host closed the connection]
bluOxigen has joined #ruby
conta has quit [Quit: conta]
rippa has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
blackmesa has quit [Quit: WeeChat 1.5]
bluOxigen has joined #ruby
saslam has quit [Ping timeout: 268 seconds]
igniting has quit [Ping timeout: 252 seconds]
xaxisx_ has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
binaryplease has quit [Ping timeout: 246 seconds]
ace05 has joined #ruby
xaxisx has quit [Ping timeout: 265 seconds]
medved_ has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
geek876__ has joined #ruby
dionysus69 has joined #ruby
ace05 has quit [Ping timeout: 246 seconds]
gregf_ has joined #ruby
ta_ has quit [Remote host closed the connection]
<geek876__> Hello , quick question, I want to get the timezone offset from locatime in ruby. When I do this 'Time.now.getlocal.zone' I get GMT but I want to retrieve +01:00 or +00:00 depending on if we are in british summer or winter time
ta_ has joined #ruby
naprimer_3 has joined #ruby
<apeiros> >> Time.now.utc_offset
<ruby[bot]> apeiros: # => 0 (https://eval.in/677356)
<geek876__> Thanks apeiros
polishdub has joined #ruby
Silthias1 has quit [Ping timeout: 250 seconds]
naprimer_2 has quit [Ping timeout: 265 seconds]
ta_ has quit [Ping timeout: 256 seconds]
conta has joined #ruby
Silthias has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
teclator has quit [Ping timeout: 260 seconds]
skweek has joined #ruby
terens has quit [Remote host closed the connection]
charliesome has joined #ruby
vali has joined #ruby
<vali> hi
<geek876__> @apeiros: Can I get it in format +01:00 or +00:00 ? Time.now.utc_offset gives me simply a 0 which is valid but I need it as +00:00
kareelee has quit [Remote host closed the connection]
<apeiros> more precisely, it gives you a number, but you want a string
<vali> hi guys, I'm having an issues transforming a timestamp using ruby in logstash
<vali> more exactly http://pastie.org/10962132
charliesome has quit [Ping timeout: 260 seconds]
gheegh has joined #ruby
kareelee has joined #ruby
<apeiros> you can use divmod + String#% to format the result
<geek876__> i converted it to string using to_s but it is still 0
<vali> they migrated to event.get/set and it seems that I'm not doing the code changes correctly
dionysus69 has joined #ruby
<toretore> it is also in seconds, not hours
<vali> any ideas what am I doing wrong ?
govg has joined #ruby
<apeiros> >> "%+03d:%02d" % Time.now.utc_offset.div(60).divmod(60)
<ruby[bot]> apeiros: # => "+00:00" (https://eval.in/677360)
<geek876__> thanks
kareelee has quit [Ping timeout: 260 seconds]
zamasu has quit [Quit: Page closed]
JoshS has quit [Ping timeout: 258 seconds]
<toretore> or just time.strftime('%:z') ;)
mrwn has quit [Remote host closed the connection]
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
cloaked1 has joined #ruby
ponga has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ferr has quit [Quit: WeeChat 1.5]
lenwood has quit [Ping timeout: 258 seconds]
troulouliou_div2 has joined #ruby
konsolebox has quit [Quit: Leaving]
klemanski has joined #ruby
lenwood has joined #ruby
octo8 has quit [Read error: Connection reset by peer]
binaryplease has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
binaryplease has quit [Client Quit]
nettoweb has joined #ruby
brendan- has joined #ruby
aufi has quit [Ping timeout: 268 seconds]
marr has quit [Ping timeout: 245 seconds]
oncall-pokemon has joined #ruby
handicraftsman has joined #ruby
<handicraftsman> Any good ides for ruby? (atom lags, rubymine is payed)
<havenwood> handicraftsman: emacs or vim
<handicraftsman> Non-console
<havenwood> handicraftsman: Which OS?
<handicraftsman> GNU/Linux (archlinux -> manjaro)
<handicraftsman> i686
<handicraftsman> Using gedit right now, but it does not supports all ruby-features (erb, string-interpolations, custom-string-quotes etc)
<handicraftsman> *does not support
mrwn has joined #ruby
<chris2> gvim and gtk emacs :P
<handicraftsman> ...
raeoks has joined #ruby
JoshS has joined #ruby
<chris2> its not console and it has the features you want...
kareelee has joined #ruby
<handicraftsman> Ported-console (vte-like)
aegis3121 has quit [Ping timeout: 265 seconds]
<havenwood> handicraftsman: Or Atom performance is getting better over time. You could hang in there 'till it's passable on your machine.
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<handicraftsman> Also. I am using i686. So, i must rebuilt it each time
mark_66 has quit [Quit: Leaving.]
ace05 has joined #ruby
<blackbombay> handicraftsman: sublime?
<havenwood> or neovim-qt
<blackbombay> i would have recommended emacs but it sounds like you want a "modern" editor.
<chris2> itym a modern "editor" ;)
benlieb has joined #ruby
<handicraftsman> yaourt -S itym neovim-qt
<handicraftsman> So, trying
<chris2> itym is not an editor ;)
<handicraftsman> Ahh
d3d1rty has quit [Ping timeout: 244 seconds]
<chris2> and neovim-qt is vim ;P
jenrzzz has quit [Ping timeout: 258 seconds]
<baweaver> handicraftsman: A lot of people use Sublime Text
<baweaver> or Brackets or Atom
flyingX has quit []
<handicraftsman> I have subl3, but it lags for unknow reason. Brackets too
<baweaver> Might kill a few plugins and see what happens
solocshaw has joined #ruby
<baweaver> Atom is better about sandboxing them away a bit.
<blackbombay> try "howl". it's suppose to have good performance.
ace05 has quit [Ping timeout: 256 seconds]
<handicraftsman> Can i use atom without sandboxing?
raeoks has quit [Read error: Connection reset by peer]
Guest43733 has quit [Quit: Oh shit the geek died!]
enterprisey has joined #ruby
ldnunes has quit [Ping timeout: 268 seconds]
borkdude has joined #ruby
borkdude has quit [Excess Flood]
borkdude has joined #ruby
ruby045 has joined #ruby
conta has quit [Ping timeout: 240 seconds]
borkdude has left #ruby [#ruby]
synthroid has quit [Remote host closed the connection]
<apeiros> toretore: oooh! I never knew about the : modifier for %z. that's nice!
<apeiros> handicraftsman: if subl lags for you, rubymine would probably not be a viable choice even if it was free ;-) (not that that makes anything better)
<blackbombay> i thought apeiros knew everything.
nankyokusei has joined #ruby
spacenoid has joined #ruby
<apeiros> blackbombay: I do. my omniscience just happens to be a non-linear function of the timecube.
<spacenoid> what a great time to join, please go on =p
<apeiros> oh wait… timecube has gone… nooooo
hightower3 has quit [Ping timeout: 260 seconds]
<chris2> thymecube is still there iirc
hightower2 has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
hightower2 has joined #ruby
dn` has quit [Ping timeout: 246 seconds]
<apeiros> stumbled over an interview with the creator. watched 3min. decided I can't take that much stupidity at this time. already far too much of that floating around nowadays :-S
nankyokusei has quit [Ping timeout: 256 seconds]
<chris2> how true
<apeiros> aaaand I probably should go OT with that :D
dn` has joined #ruby
<handicraftsman> @apeiros, it started to lag after update
<toretore> timecube for president
<pagios> how many bytes are reserved by default to a char in ruby
<pagios> 2?
<toretore> you can't resist the bellybutton logic
<toretore> pagios: depends on encoding
<chris2> pagios: depends on the encoding. default is utf8
<pagios> so 8 byteS?
Rodya_ has quit [Remote host closed the connection]
<pagios> per char
<toretore> and utf8 is variable
* baweaver slowly puts down ?offtopic
<apeiros> utf-8 means 1-5 bytes atm
<chris2> 1 byte per char when ascii
<pagios> 1.5?
<apeiros> 1 to 5
<apeiros> not 1.5
<pagios> i need exact number
<apeiros> variable, as others already said
<chris2> there is no exact number
<apeiros> you won't get one. that's not how it works.
<pagios> as i am sending 80bytes of characters
<handicraftsman> I'll try configuring emacs
<pagios> apeiros, i need tosend 80 bytes of char exacgtly
<chris2> then use BINARY, and it will be 1 byte = 1 char
<apeiros> well, 80 bytes of characters in utf-8 can be anything from 16 to 80 characters
<havenwood> pagios: so that's between 16 and 80 chars
ldnunes has joined #ruby
handicraftsman has left #ruby ["Leaving"]
<pagios> i need the exact number i cant send something in between
<toretore> then you send 80 bytes, not 80 bytes of characters
<apeiros> then you're either doing something wrong using utf-8, or have another misunderstanding
<pagios> coz in python it is exactly a number
<blackbombay> apeiros: lol
<chris2> in python its the same :P
<apeiros> pagios: yeah, no. then it's not utf-8. but it may still be unicode.
<pagios> if i send 'A'*2700 it means i am sending 2700bytes +
<chris2> same in ruby
<toretore> not if it's utf 16
<pagios> i am not specifying the utf
<apeiros> pagios: you do understand what "variable" means, yes?
enterprisey has quit [Remote host closed the connection]
<chris2> use .bytesize to measure the length in bytes
<apeiros> 2700 times "A" in utf-8 will be 2700 bytes in *all* systems which correctly implement utf-8.
marr has joined #ruby
tyang_ has joined #ruby
<chris2> use .byteslice(0,80) to send 80 bytes, no matter the encoding
<havenwood> pagios: len(bytearray("😑")) #=> 4
<havenwood> pagios: it totally depends on the character in utf-8, in python or whatever lang
lenwood has quit [Remote host closed the connection]
lenwood has joined #ruby
claudiuinberlin has quit [Read error: Connection reset by peer]
<toretore> timecube can encode every conceivable character in half a byte
<apeiros> if you have 80 bytes exactly in your message you either have some kind of restriction (e.g. "only ascii"), padding, or incomplete sequences.
<apeiros> that's assuming that your protocol truly and really prescribes utf-8.
TheDoctor has joined #ruby
<TheDoctor> Yeah, timecube, wasn't a great idea
<TheDoctor> would not recommend
<TheDoctor> alonsy!
TheDoctor has quit [Client Quit]
tyang has quit [Ping timeout: 258 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
<pagios> havenwood, so if i foce a utf-8 a char would be 1 byte exactly?
<toretore> pagios: explain in more detail what it is you're trying to do
edwinvdgraaf has joined #ruby
<pagios> studying buffer overflows
<pagios> and i need to send exact number of bytes
hanine_ has joined #ruby
<toretore> so where does yout talk of characters come from?
<pagios> to make the remote machine behave in a specific way
<chris2> then use binary strings
Hanynowsky has quit [Read error: Connection reset by peer]
hanine__ has joined #ruby
<apeiros> pagios: I think you don't understand character vs. byte yet. IMO you should learn about what means what first.
<pagios> a char is a number of byte depdning the encoding set no?
<toretore> it's exactly something like that which can create a buffer overflow
<pabs> pagios: utf-8 and utf-16 are both variable-width encodings
<pagios> in utf-16 1 char is 16 bit
<pabs> that is, the number of bytes that it takes to encode a character vary depending on the character
<pagios> i understand that
<pabs> pagios: that's incorrect, utf-16 is variable-width (look up surrogate pairs)
<pagios> ok
tlaxkit has quit [Remote host closed the connection]
<pagios> this applies to all programming languages or only ruby
<toretore> pagios: you just have to remove from your mind the idea that byte and character are the same
tlaxkit has joined #ruby
<apeiros> pagios: this applies to all programming languages
<pagios> ok
<chris2> but in C sizeof(char) == 1!!
malconis has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> as said - it's not utf-8 or -16 etc. otherwise
<pagios> what should i google to understand this theory
<geek876__> @apeiros: Referencing your earlier gist https://eval.in/677360, I think this will always evaluate to +00:00 regardless of the offset is either 0 or 1. If it is 1, it should evaluate to +01:00 but it won't
virgil has joined #ruby
jjhgwe has joined #ruby
<apeiros> geek876__: 01:00 would have an offset of 3600
<apeiros> as offset is in seconds
<toretore> pagios: http://graysoftinc.com/character-encodings has a lot of good stuff on charsets
edwinvdgraaf has quit [Ping timeout: 246 seconds]
<pagios> thanks
<geek876__> ok got it
hanine_ has quit [Ping timeout: 246 seconds]
<pagios> utf-8 is variable width too?
<pagios> ok pabs answered that
xaxisx_ has quit [Remote host closed the connection]
rkoller has joined #ruby
aganov has quit [Remote host closed the connection]
xaxisx has joined #ruby
rkoller has quit [Client Quit]
tdy has quit [Ping timeout: 256 seconds]
martynas_ has quit [Ping timeout: 244 seconds]
ruby045 has quit [Ping timeout: 260 seconds]
yardenbar has quit [Ping timeout: 260 seconds]
jackjackdripper has joined #ruby
synthroid has joined #ruby
koffeekbd has quit [Quit:   see ya  ]
teclator has joined #ruby
phaza_ has joined #ruby
phaza has quit [Read error: Connection reset by peer]
amclain has joined #ruby
conta has joined #ruby
martynas_ has joined #ruby
claudiuinberlin has joined #ruby
teclator has quit [Quit: No Ping reply in 180 seconds.]
aufi has joined #ruby
lxsameer has joined #ruby
teclator has joined #ruby
saslam has joined #ruby
marxarelli has joined #ruby
jsrn_ has quit [Quit: Leaving]
klemanski has quit [Quit: Leaving]
unshadow has joined #ruby
_sfiguser has quit [Ping timeout: 256 seconds]
phantompain has quit [Ping timeout: 265 seconds]
martynas_ has quit [Ping timeout: 250 seconds]
ace05 has joined #ruby
[Butch] has joined #ruby
RedFromage has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orangey has quit [Ping timeout: 258 seconds]
saslam has quit [Read error: Connection reset by peer]
saslam has joined #ruby
mrwn has quit [Remote host closed the connection]
ace05 has quit [Ping timeout: 250 seconds]
phaza_ has quit [Read error: Connection reset by peer]
phaza_ has joined #ruby
GRUG-THE-THUG is now known as gr8g
saslam has quit [Read error: Connection reset by peer]
saslam has joined #ruby
tomphp has quit [Ping timeout: 268 seconds]
tdy has joined #ruby
_sfiguser has joined #ruby
igniting has joined #ruby
kingja has joined #ruby
phantompain has joined #ruby
andikr has quit [Remote host closed the connection]
petervo has joined #ruby
conta has quit [Ping timeout: 258 seconds]
solocshaw has quit [Ping timeout: 260 seconds]
<petervo> is there a way to use prctl to set PR_SET_PDEATHSIG with ruby?
Snowy has quit [Quit: ragequit]
TPug has joined #ruby
<baweaver> System calls, beyond that eam might know.
Rodya_ has joined #ruby
hahuang61 has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
orangey has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
snguyen has joined #ruby
Beams has quit [Quit: .]
saslam has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Ping timeout: 240 seconds]
lenwood has quit [Ping timeout: 260 seconds]
rafadc has quit [Ping timeout: 260 seconds]
rafadc has joined #ruby
phantompain has quit [Ping timeout: 256 seconds]
orangey has quit [Remote host closed the connection]
orangey has joined #ruby
dionysus69 has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
solocshaw has joined #ruby
blackbom1 has joined #ruby
mikecmpbll has quit [Ping timeout: 244 seconds]
pawnbox_ has quit [Ping timeout: 260 seconds]
blackwind_123 has quit [Ping timeout: 252 seconds]
gusrub_ has joined #ruby
tyang__ has joined #ruby
solocshaw has quit [Ping timeout: 256 seconds]
blackwind_123 has joined #ruby
blackbombay has quit [Ping timeout: 268 seconds]
hanine__ has quit [Remote host closed the connection]
tyang_ has quit [Ping timeout: 258 seconds]
mg^ has joined #ruby
claudiuinberlin has quit []
phantompain has joined #ruby
mikecmpbll has joined #ruby
adgtl has joined #ruby
virgil has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
jjhgwe has quit [Remote host closed the connection]
DroidBurgundy has quit [Remote host closed the connection]
adgtl has quit [Client Quit]
gusrub_ has quit [Remote host closed the connection]
DroidBurgundy has joined #ruby
gusrub_ has joined #ruby
enterprisey has joined #ruby
Derperperd has quit [Quit: Derperperd]
ramortegui has quit [Quit: Ex-Chat]
jud has joined #ruby
jud has quit [Changing host]
jud has joined #ruby
pawnbox has joined #ruby
jhack has joined #ruby
gusrub_ has quit [Ping timeout: 240 seconds]
tlaxkit has quit [Quit: tlaxkit]
anisha has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
polishdub has quit [Quit: Leaving]
bikram has joined #ruby
<bikram> Greetings all :)
jenrzzz has joined #ruby
ace05 has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
JoshS has quit [Quit: Leaving]
<bikram> /CONNECT Freenode
<bikram> EXIT
bikram has quit [Client Quit]
xdccMule has joined #ruby
xdccMule has quit [Client Quit]
enterprisey has quit [Remote host closed the connection]
bikram has joined #ruby
railssmith has quit [Ping timeout: 268 seconds]
<bikram> Anybody on?
jenrzzz has quit [Ping timeout: 256 seconds]
ace05 has quit [Ping timeout: 252 seconds]
Derperperd has joined #ruby
TomyWork has quit [Ping timeout: 256 seconds]
SCHAAP137 has joined #ruby
whathappens has joined #ruby
geek876__ has quit [Ping timeout: 260 seconds]
pilne has joined #ruby
xrlk has joined #ruby
<havenwood> bikram: Have a Ruby question?
whathappens has quit [Read error: Connection timed out]
whathappens has joined #ruby
firstdayonthejob has joined #ruby
gheegh has quit [Ping timeout: 240 seconds]
<ddffg> show me please sample code with poltergeist
enterprisey has joined #ruby
<bikram> Yeah havenwood, I was working with some general trees. Basically, what I was trying to acheive was to list files and files in a tree structure once they are requested from the remote server.
<bikram> I don't know if this is the right question to ask here.
ramfjord has joined #ruby
A5101 has joined #ruby
nankyokusei has joined #ruby
SCHAAP137 has quit [Ping timeout: 245 seconds]
firstdayonthejob has quit [Quit: WeeChat 1.6]
chris349 has joined #ruby
splud has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
zacts has joined #ruby
<bikram> havenwood: Generally speaking, that's all about queues and stacks I guess. But, how is it done, like structuring files and folders as that of `tree -r` command??
nankyokusei has quit [Ping timeout: 260 seconds]
claudiuinberlin has joined #ruby
jenrzzz has joined #ruby
matheusmoreira has quit [Ping timeout: 240 seconds]
firstdayonthejob has joined #ruby
VeryBewitching has joined #ruby
matheusmoreira has joined #ruby
enterprisey has quit [Remote host closed the connection]
Rodya_ has joined #ruby
dhollinger has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
<havenwood> bikram: Say more about what you're doing? Are you searching for the structure or trying to find an appropriate data type to store it or? It seems the Find module might be applicable but you'll have to say more: https://docs.ruby-lang.org/en/2.3.0/Find.html
SCHAAP137 has joined #ruby
_djbkd has joined #ruby
dhollinger has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
aryaching has joined #ruby
wopi has joined #ruby
<bikram> havenwood: Thank you very much. Here's my scenario, I wanted to create a local structure of files and folders from github repo. I am using `mechanize` gem to to request and find files and folders. Now, once folder is detected, you have to find it's sub folders and files and so on. The problem is how do you list files and folders in a structure, a tree, a hash or may be some other data structure.
gusrub_ has joined #ruby
<toretore> you know github has an api right
gusrub__ has joined #ruby
<bikram> toretore: Yeah right. But it doesn't simply let you list all files and folders as far as I know.
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
<wopi> bikram: why You just don't fetch with mechanize the repositories, and then just use git to fetch the files itself ?
gusrub_ has quit [Ping timeout: 256 seconds]
<bikram> toretore: Thank you!
gusrub__ has quit [Ping timeout: 268 seconds]
<bikram> here's what I am trying to acheive ` Dir.glob('**/*').inject({}) {|h,i| t = h; i.split("/").each {|n| t[n] ||= {}; t = t[n]}; h}`
railssmith has joined #ruby
<bikram> Something like that.
dhollinger has quit [Ping timeout: 248 seconds]
<toretore> it's going to have to be recursive
<bikram> Here's my gist, it's kinda weird, I hope you guys would understand https://gist.github.com/veekram/e33be8143324d44ae7c80363190ed4f3
<bikram> toretore: Yeah.
kechja has joined #ruby
<bikram> You go to remote repo, fetch files and folders, record them, go for each folders, record files and folders and so on. That's recursive, but I am not able to work on that.
<bikram> I don't want to use any API for now, if that works.
<baweaver> You can also dig a hole with a spoon
<baweaver> doesn't mean it's smart or effective
<bikram> baweaver: lol
dhollinger has joined #ruby
<bikram> I am not pretty good at ruby, I am working on it, that's why I didn't go for API.
GodFather has quit [Ping timeout: 256 seconds]
<bikram> Any help would be greatly appreciated.
<baweaver> The API will be easier
Fernando-Basso has quit [Quit: Leaving]
paha80 has joined #ruby
paha80 has quit [Remote host closed the connection]
paha80 has joined #ruby
<bikram> baweaver: yeah, true that. I wana go hard way, so that I can more things on the way.
<baweaver> suit yourself
<bikram> hehe
paha80 has quit [Remote host closed the connection]
paha80 has joined #ruby
symm- has joined #ruby
paha80 has quit [Remote host closed the connection]
paha80 has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
GodFather has joined #ruby
claudiuinberlin has joined #ruby
gusrub_ has joined #ruby
mpwin has joined #ruby
paha80 has quit [Remote host closed the connection]
jenrzzz has joined #ruby
tomphp has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
tdy has quit [Ping timeout: 260 seconds]
paha80 has joined #ruby
paha80 has quit [Client Quit]
mtkd has quit [Ping timeout: 268 seconds]
A5101 has quit [Ping timeout: 258 seconds]
mtkd has joined #ruby
tyang_ has joined #ruby
jeremyhall has joined #ruby
claudiuinberlin has quit [Ping timeout: 256 seconds]
ldnunes has quit [Ping timeout: 260 seconds]
claudiuinberlin has joined #ruby
chris2 has quit [Ping timeout: 258 seconds]
ldnunes has joined #ruby
tyang__ has quit [Ping timeout: 258 seconds]
Rodya_ has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
radic has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
radic has joined #ruby
Rodya_ has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
<adam12> Has anybody seen this pattern before? specifically the else inside the rescue? https://gist.github.com/adam12/6677003b610e927cade33ec6f5ea2b5e
<adam12> or is it else inside the begin? Anyways - I've never seen it before - wondering if it's a common pattern.
claudiuinberlin has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
claudiuinberlin has joined #ruby
<apeiros> sure, the full syntax of begin/rescue is begin/rescue/else/ensure/end
benlieb has quit [Quit: benlieb]
chris2_ has joined #ruby
<apeiros> I don't like the defined? there, but sadly ruby didn't give us a decent tool to check for deep constants for a long time.
wopi has quit [Quit: leaving]
<adam12> Yeah - so I never realized begin supported else. Just rescue/ensure. Makes more sense now.
bluOxigen has quit [Ping timeout: 240 seconds]
muelleme has joined #ruby
<blackbom1> i havent seen else used much.
machinewar has joined #ruby
<apeiros> it's rather rare, since probably more often you'll just continue after the `end`
<apeiros> (or before the rescue)
<adam12> So I found it in the docs
<adam12> I've been writing Ruby for a long time, and _never_ seen else used in a begin/end block.
nocco has joined #ruby
<adam12> Which fascinates me.
vuoto has quit [Remote host closed the connection]
whathappens has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
whathappens has joined #ruby
Devalo has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 246 seconds]
blackbom1 has quit [Ping timeout: 256 seconds]
j2k has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
gusrub_ has quit []
_4ivilo has quit [Read error: Connection reset by peer]
aryaching has quit [Read error: Connection reset by peer]
gusrub_ has joined #ruby
SeepingN has joined #ruby
blackbom1 has joined #ruby
snguyen has quit [Quit: Textual IRC Client: www.textualapp.com]
Jackneill_ has joined #ruby
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
atmosx_ has joined #ruby
gusrub_ has quit [Remote host closed the connection]
whathappens has quit [Ping timeout: 244 seconds]
gusrub_ has joined #ruby
ldnunes_ has joined #ruby
nebben has quit [Read error: Connection reset by peer]
nebben has joined #ruby
ldnunes_ has quit [Read error: Connection reset by peer]
ldnunes_ has joined #ruby
ldnunes has quit [Ping timeout: 248 seconds]
gusrub_ has quit [Remote host closed the connection]
gusrub_ has joined #ruby
pawnbox has joined #ruby
askhat has joined #ruby
cdg has quit [Remote host closed the connection]
askhat has quit [Client Quit]
skweek has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby
muelleme has quit [Ping timeout: 258 seconds]
A5101 has joined #ruby
gusrub_ has quit [Remote host closed the connection]
rodfersou has joined #ruby
rodfersou has quit [Client Quit]
chris2_ is now known as chris2
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
matp has joined #ruby
matp_ has quit [Read error: Connection reset by peer]
Moeh has joined #ruby
epitron has quit [Ping timeout: 260 seconds]
solocshaw has joined #ruby
shinnya has joined #ruby
anisha has joined #ruby
ldnunes_ has quit [Ping timeout: 252 seconds]
malcolmva has quit [Ping timeout: 256 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
smlocal has joined #ruby
joonty has joined #ruby
muelleme has joined #ruby
gusrub_ has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
sparch has quit [Remote host closed the connection]
machinewar has quit []
pragmaticus has quit [Ping timeout: 260 seconds]
gusrub_ has quit [Ping timeout: 245 seconds]
pawnbox has quit [Remote host closed the connection]
ace05 has joined #ruby
millerti has joined #ruby
Rodya_ has quit [Read error: Connection reset by peer]
solocshaw has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
tdy has joined #ruby
Devalo has joined #ruby
brent__ has joined #ruby
joonty has quit [Read error: Connection reset by peer]
Derperperd has quit [Quit: Derperperd]
joonty has joined #ruby
ace05 has quit [Ping timeout: 245 seconds]
chadwtaylor has quit [Remote host closed the connection]
solocshaw has joined #ruby
tomphp has joined #ruby
johnmilton has quit [Remote host closed the connection]
ur5us has joined #ruby
ace05 has joined #ruby
shinnya has quit [Ping timeout: 258 seconds]
Nick__ has joined #ruby
nankyokusei has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
Moeh has quit [Quit: Textual IRC Client: www.textualapp.com]
Nick__ has quit [Client Quit]
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 260 seconds]
<gener1c> anybody home?
<gener1c> i looking for ruby devs
SCHAAP137 has quit [Quit: Leaving]
<gener1c> specifically people dealing with the build
<gener1c> travis stuff
<elomatreb> You should probably ask your question, if someone can help you they will respond
<gener1c> the github build is failing
<gener1c> i need help with my PR
<gener1c> its my first one
malcolmva has joined #ruby
ogotai has joined #ruby
SCHAAP137 has joined #ruby
<gener1c> ah main build is failing as well
<gener1c> ehe
Capela has joined #ruby
epitron has joined #ruby
zeroDi has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
millerti has joined #ruby
Rodya_ has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
sepp2k has quit [Quit: Leaving.]
cpruitt has joined #ruby
kingja has quit [Remote host closed the connection]
_djbkd has quit [Ping timeout: 258 seconds]
LiamW has joined #ruby
<LiamW> havenwood: thanks so much <3
<LiamW> this is what I eventually got
martynas_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
lenwood has joined #ruby
nocco has quit [Remote host closed the connection]
nocco has joined #ruby
phaza has joined #ruby
nocco has quit [Remote host closed the connection]
nocco has joined #ruby
claudiuinberlin has joined #ruby
nocco has quit [Remote host closed the connection]
nocco has joined #ruby
zeroDi has quit [Quit: WeeChat 1.6]
enterprisey has joined #ruby
nocco has quit [Remote host closed the connection]
ace05 has quit [Read error: Connection reset by peer]
nocco has joined #ruby
phaza_ has quit [Ping timeout: 252 seconds]
ace05 has joined #ruby
Lord_of_Life has quit [Excess Flood]
nocco has quit [Remote host closed the connection]
millerti has quit [Quit: Textual IRC Client: www.textualapp.com]
nocco has joined #ruby
nocco has quit [Remote host closed the connection]
vuoto has joined #ruby
nocco has joined #ruby
enterprisey has quit [Remote host closed the connection]
anisha has quit [Quit: This computer has gone to sleep]
nocco has quit [Remote host closed the connection]
Lord_of_Life has joined #ruby
nocco has joined #ruby
lenwood has quit [Quit: Konversation terminated!]
lenwood has joined #ruby
nocco has quit [Remote host closed the connection]
kingja has joined #ruby
nocco has joined #ruby
nocco has quit [Remote host closed the connection]
nocco has joined #ruby
nocco has quit [Remote host closed the connection]
nocco has joined #ruby
biberu has quit []
quazimodo has joined #ruby
jnj has joined #ruby
<jnj> Could anyone tell me why this line of code will throw an error: unless ip == "localhost" || ip.include? ".", but using or in place of || does not?
tyang__ has joined #ruby
nocco has quit [Ping timeout: 260 seconds]
phantompain has quit [Ping timeout: 250 seconds]
<apeiros> jnj: because of precedence
workmad3 has joined #ruby
<apeiros> also, a) always provide errors you get, and b) errors are raised, not thrown (throw means something else in ruby)
aufi has quit [Ping timeout: 252 seconds]
<LiamW> segfaults notwithstanding
* LiamW has seen one too many a ruby core dump
C0deMaver1ck has joined #ruby
<jnj> apeiros: thanks, I switched around ip == "localhost" and put ip.include in the front! And duly noted, thanks.
<apeiros> o0
<apeiros> that might not do what you think it does, though
<apeiros> you should use parens
nocco has joined #ruby
tyang_ has quit [Ping timeout: 258 seconds]
<LiamW> yeah this sounds like you need ip.include?(".")
nocco has quit [Remote host closed the connection]
<jnj> LiamW: oh, duh
<LiamW> or ?. if you want to abuse parse.y
atmosx_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> ip.include? "." || ip == "localhost" -->is interpreted as --> ip.include?("." || ip == "localhost")
<LiamW> friends don't let friends use parse.y
gusrub_ has joined #ruby
<jnj> apeiros: Cool, thanks!
Savage has quit [Quit: Connection closed for inactivity]
solocshaw has quit [Ping timeout: 245 seconds]
<apeiros> ast> nil unless ip == "localhost" or ip.include? "."
<apeiros> hm, was it >>?
ta_ has quit [Remote host closed the connection]
<apeiros> ast>> nil unless ip == "localhost" or ip.include? "."
<ruby[bot]> apeiros: I have parsed your code, the result is at https://eval.in/677514
<apeiros> tadaa
cdg has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
joonty has quit [Quit: This computer has gone to sleep]
<LiamW> ast>> ?.
<ruby[bot]> LiamW: I have parsed your code, the result is at https://eval.in/677515
jenrzzz_ has quit [Ping timeout: 258 seconds]
_djbkd has joined #ruby
Devalo has quit [Remote host closed the connection]
<LiamW> I have no idea why that even exists
gusrub_ has quit [Ping timeout: 245 seconds]
rodfersou has joined #ruby
ta_ has joined #ruby
jnj has quit [Ping timeout: 265 seconds]
claudiuinberlin has quit [Remote host closed the connection]
solocshaw has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
C0deMaver1ck has quit [Quit: C0deMaver1ck]
martynas_ has quit [Ping timeout: 256 seconds]
phantompain has joined #ruby
solocshaw has quit [Read error: Connection reset by peer]
solocshaw1 has joined #ruby
symm-_ has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
solocshaw1 is now known as solocshaw
skweek has joined #ruby
Salih has quit [Quit: Leaving]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
skweek has quit [Remote host closed the connection]
agent_white has joined #ruby
frmendes has joined #ruby
tyang__ has quit [Quit: Leaving]
^mtkd has joined #ruby
mtkd has quit [Ping timeout: 268 seconds]
t-richards has joined #ruby
webguynow has quit [Ping timeout: 252 seconds]
webguynow has joined #ruby
charliesome has joined #ruby
rodfersou has quit [Quit: leaving]
symm-_ has quit [Ping timeout: 250 seconds]
<agent_white> Afternoon folks.
VeryBewitching has quit [Quit: Konversation terminated!]
ta_ has quit [Remote host closed the connection]
petervo has left #ruby ["Leaving"]
jnj has joined #ruby
wopi has joined #ruby
marxarelli is now known as marxarelli|afk
jaruga___ has quit [Quit: jaruga___]
claudiuinberlin has joined #ruby
bikram has quit [Ping timeout: 265 seconds]
vuoto has quit [Remote host closed the connection]
wopi has quit [Quit: leaving]
enterprisey has joined #ruby
wopi has joined #ruby
ta_ has joined #ruby
rcvalle has joined #ruby
jnj has quit [Ping timeout: 252 seconds]
vuoto has joined #ruby
GodFather has joined #ruby
redpants has joined #ruby
ocbtec has quit [Quit: leaving]
enterprisey has quit [Remote host closed the connection]
quazimodo has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
malconis has joined #ruby
ycyclist has joined #ruby
<ycyclist> I cannot remember how to do integer division in ruby with truncation.
<apeiros> >> 3/2
<ruby[bot]> apeiros: # => 1 (https://eval.in/677533)
<apeiros> it involves 2 steps. step 1: have integers. step 2: divide.
teclator has quit [Ping timeout: 240 seconds]
wopi has quit [Quit: leaving]
teclator has joined #ruby
gusrub_ has joined #ruby
j2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wopi has joined #ruby
vuoto has quit [Remote host closed the connection]
<chris2> or use divmod :D
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Devalo has joined #ruby
pwnd_nsfw` has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
enterprisey has joined #ruby
AlexRussia has joined #ruby
Devalo has quit [Remote host closed the connection]
pwnd_nsfw has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
gusrub_ has quit [Remote host closed the connection]
gusrub_ has joined #ruby
gusrub_ has quit [Remote host closed the connection]
jnj has joined #ruby
blackwind_123 has quit [Ping timeout: 246 seconds]
miqlas-H has joined #ruby
wopi has left #ruby [#ruby]
gusrub_ has joined #ruby
enterprisey has quit [Remote host closed the connection]
t-richards has quit [Quit: Leaving]
blackwind_123 has joined #ruby
quazimodo has quit [Read error: Connection reset by peer]
gingray has quit [Ping timeout: 245 seconds]
CloCkWeRX has joined #ruby
Capela has quit []
c0mrad3 has quit [Quit: Connection closed for inactivity]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
askhat has joined #ruby
askhat has left #ruby [#ruby]
ramfjord_ has joined #ruby
<muelleme> Any tips how to debug why JSON.parse fails? If I copy the string to http://jsonlint.com/, it is classified as valid json
malconis has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has quit [Ping timeout: 250 seconds]
bruno- has quit [Quit: Lost terminal]
blackwind_123 has quit [Ping timeout: 258 seconds]
ylluminarious_ has joined #ruby
nankyokusei has joined #ruby
byte512 has joined #ruby
blackwind_123 has joined #ruby
teclator has quit [Ping timeout: 252 seconds]
teclator has joined #ruby
AlexRussia has quit [Ping timeout: 265 seconds]
coyo has quit [Ping timeout: 260 seconds]
d3d1rty has joined #ruby
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
_djbkd has quit [Remote host closed the connection]
dnicole has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 260 seconds]
kareelee has quit [Remote host closed the connection]
dnicole has joined #ruby
kareelee has joined #ruby
gheegh has joined #ruby
dnicole has quit [Remote host closed the connection]
claudiuinberlin has quit []
dnicole has joined #ruby
kingja has quit [Ping timeout: 246 seconds]
dnicole has quit [Remote host closed the connection]
vifino has joined #ruby
redpants has quit [Read error: Connection reset by peer]
gusrub__ has joined #ruby
redpants has joined #ruby
ta_ has quit [Remote host closed the connection]
kareelee has quit [Ping timeout: 260 seconds]
CloCkWeRX has quit [Ping timeout: 260 seconds]
ramfjord_ has quit [Ping timeout: 265 seconds]
ylluminarious_ has quit [Ping timeout: 245 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_djbkd has joined #ruby
kareelee has joined #ruby
gusrub_ has quit [Ping timeout: 260 seconds]
muelleme has quit [Ping timeout: 245 seconds]
saslam has joined #ruby
byte512 has quit [Ping timeout: 268 seconds]
saslam has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
solocshaw has quit [Ping timeout: 258 seconds]
saslam has joined #ruby
chadwtaylor has joined #ruby
Immune has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
byte512 has joined #ruby
ta_ has quit [Ping timeout: 268 seconds]
lenwood has quit [Ping timeout: 248 seconds]
toretore has quit [Ping timeout: 248 seconds]
jeremyhall has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
wopi has joined #ruby
kingja has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kareelee has quit [Remote host closed the connection]
ajsharma has joined #ruby
ajsharma has quit [Client Quit]
kareelee has joined #ruby
ajsharma has joined #ruby
CloCkWeRX has joined #ruby
Rodya_ has joined #ruby
saslam has quit [Read error: Connection reset by peer]
saslam has joined #ruby
whathappens has joined #ruby
marxarelli|afk is now known as marxarelli
marxarelli is now known as marxarelli|afk
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
Lord_of_Life has quit [Excess Flood]
saslam_ has joined #ruby
marxarelli has joined #ruby
kareelee has quit [Ping timeout: 245 seconds]
vifino has quit [Quit: Who turned this off?! D:<]
ajsharma has quit [Quit: Textual IRC Client: www.textualapp.com]
Lord_of_Life has joined #ruby
ajsharma has joined #ruby
hybridsole has quit []
saslam has quit [Ping timeout: 248 seconds]
marr has quit [Remote host closed the connection]
vifino has joined #ruby
balazs has quit [Ping timeout: 256 seconds]
bovis has joined #ruby
rafadc has quit [Ping timeout: 250 seconds]
ace05_ has joined #ruby
ace05 has quit [Read error: Connection reset by peer]
croberts is now known as Toledo-bbl
rafadc has joined #ruby
synthroid has quit []
elastix has joined #ruby
kbdkode has joined #ruby
balazs has joined #ruby
<bovis> When exporting strings to a yaml file with .to_yaml, I get dates that read "2016-09-09", but when they're imported with YAML.load, I get #<Date: 2016-09-09 ((2457641j,0s,0n),+0s,2299161j)>, which does not respond to .length, of course, which is what I need.
<bovis> Any way to export with quotes to fix that? Or just import without the cruft?
<apeiros> uh, you're exporting dates there, not strings
<apeiros> hence you get back dates, not strings, when importing
<bovis> apeiros: I try to export with DateTime.now.strftime("%Y-%m-%d")
<bovis> well, the program uses that as its formatting
<apeiros> >> require 'yaml'; YAML.load([Date.today, "2016-09-09"].to_yaml)
<ruby[bot]> apeiros: # => [#<Date: 2016-11-14 ((2457707j,0s,0n),+0s,2299161j)>, "2016-09-09"] (https://eval.in/677548)
<apeiros> bovis: well, seems you're doing something wrong in the process.
<apeiros> as you can see, yaml has no problem exporting and importing a string looking like a date without confusing it with an actual date.
^mtkd has quit [Read error: Connection reset by peer]
<bovis> right
loincloth has quit []
MrBusiness2 has quit [Quit: https://www.youtube.com/watch?v=xIIqYqtR1lY -- Suicide is Painless - Johnny Mandel]
mtkd has joined #ruby
SeepingN has quit [Disconnected by services]
SeepingN_ has joined #ruby
<bovis> the date is generated as I showed, put into an array of hashes, and saved to the yaml file with .to_yaml -- nothing in between
<bovis> what could I do wrong?
wopi has left #ruby [#ruby]
balazs has quit [Ping timeout: 256 seconds]
benlieb has quit [Quit: benlieb]
jenrzzz has quit [Ping timeout: 246 seconds]
<apeiros> without your code, the best I can do is riddle.
<apeiros> or repeat what I already told you
chadwtaylor has quit [Remote host closed the connection]
AlexRussia has joined #ruby
<bovis> right, a poor suggestion on my part
allcentury has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby
<bovis> can you tell YAML to output with quotes for strings?
<apeiros> you can debug by inspecting your data in between and verify it truly is what you expect it to be.
jnj has quit [Ping timeout: 256 seconds]
fmcgeough has quit [Quit: fmcgeough]
<apeiros> no, you can't tell yaml how to format built-in data types. and there's no need either. it does it correctly.
balazs has joined #ruby
jnj has joined #ruby
honore has joined #ruby
jenrzzz has joined #ruby
<bovis> I'll dig some more
<bovis> thanks
rafadc has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
rafadc has joined #ruby
Olipro has quit [Ping timeout: 260 seconds]
rakm has joined #ruby
csk has quit [Quit: ZZZzzz…]
nofxx has joined #ruby
AlexRussia has quit [Ping timeout: 260 seconds]
kingja has quit [Quit: kingja]
pwnd_nsfw has joined #ruby
vifino has quit [Ping timeout: 256 seconds]
elastix has quit [Quit: Leaving]
pwnd_nsfw` has quit [Ping timeout: 256 seconds]
allcentury has joined #ruby
vifino has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
teclator has quit [Quit: No Ping reply in 180 seconds.]
AlexRussia has joined #ruby
teclator has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jnj has quit [Quit: Leaving]
<pilne> i am coming to the conclusion that i don't *really* have to worry about if there is a gem for what I want to do in ruby, as long as there is a well doccumented *something* that exposes a clean c-api?
phantompain has quit [Ping timeout: 250 seconds]
xavier2 has joined #ruby
Derperperd has joined #ruby
<eam> pilne: yes, if you're comfortable with writing a wrapper
AlexRussia has quit [Ping timeout: 256 seconds]
<eam> it's not terribly difficult
teclator has quit [Quit: No Ping reply in 180 seconds.]
<xrlk> trivial even
<xavier2> Hey, I've become quite the neat freak recently and I was wondering how Bundler works. Does it shove gems neatly in let's say a project's subfolder like npm does?
firstdayonthejob has quit [Ping timeout: 260 seconds]
chopin has joined #ruby
jenrzzz has joined #ruby
<xavier2> I want to try out Ruby and eventually Rails as well but I'd like to make sure everything stays nice and tight and I don't end up with loose files that I won't know the purpose of all over my filesystem
saslam_ has quit [Ping timeout: 248 seconds]
teclator has joined #ruby
AlexRussia has joined #ruby
<nofxx> xavier2, think npm -g well configured
* Nilium looks at his ~/bin directory and thinks "loose files"
<Nilium> So many things
<nofxx> It's ~/.gem ... way smarter...
rafadc has quit [Ping timeout: 246 seconds]
<nofxx> Nilium, gem insn't there.. it's inside ~/.gem too, you should have it on your $PATH
<xavier2> If I have project X and I install gem a then I start project Y, what prevents Y from seeing a then?
<nofxx> nothing, that's the point
mpwin has quit [Quit: Leaving...]
<xavier2> What if I wanted Y to not be able to access any of a's libraries / tools?
<nofxx> that's just stupid
<xavier2> How is that?
<xavier2> let's say I have gems a and b that may conflict
<nofxx> system install/ user install / project install... npm is by default project, gem by default user
rafadc has joined #ruby
<xavier2> I want a on project X and b on project Y
chadwtaylor has joined #ruby
<nofxx> xavier2, that doesn't happen, you require what you need
<nofxx> just because it can 'see' doesnt mean it will be read/run whatever see?
<pilne> i try and just gem install bundler, and a linter or two into my ruby-install location, and then use bundler to install gems into /vendor inside each project
<xavier2> What about different versions of the same gem though?
<nofxx> xavier2, no problem either.. you can have all versions
<nofxx> and require any specific one
<xavier2> hmm
<pilne> gems don't don crap inside a ruby script/app unless they are required
ur5us has quit [Remote host closed the connection]
<pilne> don=do
<nofxx> exactly
<xavier2> Well then :P
phantompain has joined #ruby
dnicole has joined #ruby
<nofxx> xavier2, which OS? maybe there's no --user-isntall, so gem asks for root, not the best option
<nofxx> check /etc/gemrc
<xavier2> My last argument would be what if I want project-specific gem installs to make sure my gemfile's up to date and that I don't end up requiring something that's already been installed from another project without thinking about adding it - without relying on tests?
rafadc has quit [Ping timeout: 265 seconds]
<xavier2> nofxx: gentoo - I haven't installed anything yet. Python's virtualenv creeped me to no end on my last install
<nofxx> bundle install / bundle check will do that already
<nofxx> xavier2, nah, don't use those multiversion envs... ruby has a lot too.. rbenv, rvm...
<Nilium> rbenv is nice.
<Nilium> And chruby.
<pilne> i use chruby/ruby-install
<nofxx> extra uneeded problem
<Nilium> rvm's a little crufty but it still works.
<pilne> after rvm assploded on me a couple times
<pilne> but i was rubynoob then
<pilne> so it was probably my fault :)
<Nilium> caveat: I don't know if it actually still works and I just assume it does because I don't remember anyone saying it didn't.
rafadc has joined #ruby
koooge has joined #ruby
SeepingN_ is now known as SeepingN
<nofxx> you can install a 2+ ruby version, jruby, and whatever else on your OS...
<nofxx> JustWorks™
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
ag4ve has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
ag4ve has quit [Max SendQ exceeded]
ag4ve has joined #ruby
<nofxx> also: ruby didn't came out on a bathroom, it started well taught, hence how quickly the v1->v2 transition was. Just to see point check out python2, python3 or angular...
kechja has quit [Ping timeout: 248 seconds]
<nofxx> There's a great twit by some angular dev: "It's a complete rewrite, everything will change"
CausaMortis has joined #ruby
<xrlk> nice
Jackneill_ has quit [Remote host closed the connection]
<xavier2> hehe
<CausaMortis> Hey guys, newb here. In a project I work on, I found a method that specified its parameters like so (parameter1:, parameter2:). It seems that the values do get passed but when they are empty the method does not error. What do I search for to better grasp what is going on here? It seems like parameter1:, is short for parameter1: nil, correct?
<baweaver> keyword parameters.
<baweaver> or keyword args
<CausaMortis> Great, found that first hit :)
<CausaMortis> Thank you!
ag4ve has quit [Ping timeout: 265 seconds]
nettoweb has joined #ruby
benlieb has joined #ruby
fmcgeough has joined #ruby
AlexRussia has quit [Ping timeout: 260 seconds]
benlieb has quit [Client Quit]
cpruitt has quit [Quit: cpruitt]
fmcgeough has quit [Client Quit]
pilne has quit [Quit: Quitting!]