apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
rocknrollmarc has joined #ruby
infoget has joined #ruby
baweaver has quit [Remote host closed the connection]
AkashicLegend has joined #ruby
wallerdev has joined #ruby
Guest1421 has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
Deele has joined #ruby
kblake has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 264 seconds]
rocknrollmarc has quit [Ping timeout: 252 seconds]
robustus has joined #ruby
<havenwood> >> require 'bigdecimal'; BigDecimal::INFINITY
<ruboto> havenwood # => #<BigDecimal:4136ea34,'Infinity',9(9)> (https://eval.in/339353)
<pipework> I imagine havenwood walking through a park full of bridges, feeding the trolls like they were geese, and he's just doing what he does every day.
poguez_ has quit [Quit: Connection closed for inactivity]
lessless has joined #ruby
<ebonics> >> require 'bigdecimal'; BigDecimal::INFINITY / BigDecimal::INFINITY
<ruboto> ebonics # => #<BigDecimal:40cc258c,'NaN',9(27)> (https://eval.in/339362)
spider-mario has quit [Remote host closed the connection]
TheNet has joined #ruby
<havenwood> >> require 'bigdecimal'; 1.upto(BigDecimal::INFINITY / BigDecimal::INFINITY).take 5
<ruboto> havenwood # => [1, 2, 3, 4, 5] (https://eval.in/339368)
<ebonics> >> require 'bigdecimal'; BigDecimal::INFINITY / (BigDecimal::INFINITY * 0)
<ruboto> ebonics # => #<BigDecimal:4126249c,'NaN',9(36)> (https://eval.in/339369)
<havenwood> pipework: ;)
<ebonics> >> 1 / 0
<ruboto> ebonics # => divided by 0 (ZeroDivisionError) ...check link for more (https://eval.in/339370)
scripore has quit [Quit: This computer has gone to sleep]
TheNet has quit [Client Quit]
Zai00 has quit [Quit: Zai00]
<ebonics> >> 1.upto(BigDecimal("Infinity") * 0).take 5
<ruboto> ebonics # => undefined method `BigDecimal' for main:Object (NoMethodError) ...check link for more (https://eval.in/339372)
<ebonics> >> require 'bigdecimal'; 1.upto(BigDecimal("Infinity") * 0).take 5
<ruboto> ebonics # => [1, 2, 3, 4, 5] (https://eval.in/339373)
scripore has joined #ruby
hackeron has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
uptownhr has quit [Quit: uptownhr]
byprdct has joined #ruby
mary5030 has joined #ruby
infinitone has quit [Remote host closed the connection]
hackeron has joined #ruby
sankaber has joined #ruby
alderamin has quit []
<havenwood> ebonics: Learn to turn a NaN into NaNanade.
n80 has joined #ruby
<ebonics> >> require 'bigdecimal'; (BigDecimal::INFINITY * 0).to_us + "anade"
<ruboto> ebonics # => undefined method `to_us' for #<BigDecimal:422de460,'NaN',9(27)> (NoMethodError) ...check link for more (https://eval.in/339404)
<ebonics> >> require 'bigdecimal'; (BigDecimal::INFINITY * 0).to_s + "anade"
<ruboto> ebonics # => "NaNanade" (https://eval.in/339405)
jeramy_s has joined #ruby
moretti has quit [Quit: Leaving...]
mary5030 has quit [Ping timeout: 255 seconds]
tvw has quit []
Yzguy has joined #ruby
bmurt has quit []
djbkd has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
lfox has joined #ruby
<ebonics> >> require 'bigdecimal'; 1.upto(7) { print BigDecimal::INFINITY * 0 }; print " BATMAN";
<ruboto> ebonics # => NaNNaNNaNNaNNaNNaNNaN BATMANnil (https://eval.in/339423)
<ebonics> whats with the nil
<apeiros> return value of print
workmad3 has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
<meph> lol, the old batman joke
<ebonics> i thought i was being clever
<ebonics> sry
bruno-_ has quit [Ping timeout: 276 seconds]
<meph> funny joke allways funny, at least for me (even the nil return xD)
<Nilium> So today, I assigned weekend homework for my dev team: they must watch videos about Git.
tubuliferous_ has quit [Ping timeout: 244 seconds]
<ebonics> that's happening
<Yzguy> :p
<Nilium> Because every day of the week, I have had to fix one and only one person's repository over and over, and I got tired of it.
<Nilium> I don't expect it to happen, but I still did it.
<meph> btw: had someone played with ProcessShared gem on ARM processors?
<ebonics> if i'm forced to learn a new technology for my job ima get paid for it
<Nilium> The one guy who needs to do it totally won't 'cause he doesn't program for fun or anything
jackjackdripper has quit [Quit: Leaving.]
<bricker> Nilium: I remember my first few days with git... brutal...
<Nilium> Well, he can do it, or I'm going to not help him with it.
<Nilium> My first days with git were alright, but I had no cemented history with version control.
<ebonics> inb4 committing development code to master erryday
<Nilium> ebonics: This is part of what I'm trying to stop.
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 256 seconds]
<Nilium> Pretty soon, I'm just going to take away commit access to master entirely because one guy (same guy who keeps screwing up his local repo 'cause he hasn't figured out that he shouldn't be doing 'git rebase' every five seconds) keeps creating merge requests, assigning them to himself and then accepting them immediately
<Nilium> Y'know, circumventing the whole point of the merge request: code review.
<ebonics> he probably has a macro for that and everything
<Nilium> I doubt it. He was recently proud that he learned how to use sed to do a substitution.
<ebonics> #efficiency
CloCkWeRX1 has left #ruby [#ruby]
juanpablo_ has joined #ruby
<Nilium> His interaction with git is primarily through PHPStorm, which is part of the problem: he keeps trying to make everything go through one tool.
<ebonics> intellij has some decent git plugins
<Nilium> It has barebones support for most things. I strongly recommend most people use the CLI or SourceTree.
<meph> keeps creating merge requests, assigning them to himself and then accepting them immediately <---- no way
<ebonics> Nilium, you can use the terminal in phpstorm and shit
<ebonics> you sure he doesnt do that
<Nilium> He tries to and fails.
<ebonics> is he paid the same amount as you
<Nilium> Again, we're talking about someone who uses rebase and assumes it's the magic fix-up command
<Nilium> And then he pulls the remote master on top of his changes and I just.. it makes me mad that I have to fix this every day and he doesn't figure out anything.
<Nilium> Yes.
<meph> rebase doesn't autofix git...
<ebonics> honestly i don't really know what that's like cause i do my own thing
<meph> indeed if you don't know how to play with rebase
<Nilium> Yes, which is why I told the entire dev team to stop using rebase.
<meph> more than a fixer is a breaker
Akagi201 has joined #ruby
<ebonics> but i would try to avoid confrontation then just blame everything on him when shit falls apart
CamonZ has quit [Quit: Textual IRC Client: www.textualapp.com]
<Nilium> If you don't know what rebase is doing, you should never use rebase. Ever.
<meph> Nilium: It's like I teach my "monkey" code partners
<meph> just to use pull and push
<meph> one of them learned to use rebase and fucked everything in 0 seconds
<Nilium> You'll never lose data in git, but I don't want to have to explain to people how to pull stuff out of reflog
tvw has joined #ruby
<ebonics> i think it would be annoying to have someone that's equal to me trying to tell me how to do my job
<ebonics> even if i;m fucking up badly
<Nilium> Plus whenever I do use rebase I always, always, always create a new branch specifically for that
<Nilium> So that I don't have to use the reflog
juanpablo_ has quit [Ping timeout: 264 seconds]
<ebonics> like how do you assign homework to someone when they're your coworker of equal stature
<Nilium> ebonics: When I'm the source control admin.
<ebonics> oic
<Nilium> I'm a coworker, we're paid the same, but I'm the one who has to deal with this.
<meph> like my case
<Nilium> I need more people to be proficient with their tools and not just go "well I'll just use it like subversion"
Papierkorb has quit [Ping timeout: 246 seconds]
<Nilium> If they're proficient, they make fewer errors, they get things done faster, and I spend less time fixing things
towski_ has quit [Remote host closed the connection]
<ebonics> is it the standard workflow in your company
<Nilium> You know, so I can actually focus on building stuff
<ebonics> or did you impose it?
<Nilium> I haven't discussed workflow at all.
towski_ has joined #ruby
<Nilium> Git is a tool. The workflow is separate.
Ellis has left #ruby [#ruby]
endash has quit [Quit: endash]
<meph> Nilium: you got damn right, people that come from SVN usually fails more than people that doesn't learned any version control :(
endash has joined #ruby
endash has quit [Client Quit]
<Nilium> I will be imposing a workflow on everyone, but I need to get them all up to speed.
<meph> or at least it's what happens in my work
<Nilium> Like I said, I didn't use SVN before I got started with git. Git just made sense.
<Nilium> The problem is the people who have an existing vocabulary.
<ebonics> SVN is pretty much garbo
<ebonics> the only thing other than git i use from time to time is mercurial
<Nilium> Watch people take a linguistics 101 course at any university and you'll see them all stumble over themselves because they keep trying to assign their high-school understanding of language and its terminology to linguistics, which uses the same terms but with different meanings
<meph> xDD
<meph> true but sad story
<Nilium> It was actually funny when I had to take linguistics 101 'cause I didn't have any public school education and I barely knew that stuff. Was easy as hell.
towski_ has quit [Remote host closed the connection]
<ebonics> it reminds me of someone i know
<Nilium> It's entirely prior knowledge that gets people hung up.
<Nilium> You have to be willing to throw what you know out the window and start fresh.
<ebonics> he was basically really bad as a kid, never went to school. he didn't read for basically 18 years
<Nilium> I read tons as a kid, I just had no real formal education.
dvlwrk has quit [Quit: Leaving]
<ebonics> and now he's probably the smartest person i know. has like photographic memory and can speed read insanely fast
<ebonics> so i question if it was because he didnt receive education and just adopted his own way of reading
<ebonics> or if its just cause he has natural talent
<meph> maybe both
<Nilium> Don't know. I don't know the person.
<Nilium> Literally nothing I can say to that.
<ebonics> he credits it to not learning how to read
<ebonics> i'm just presenting you with an anecdote :)
<ebonics> to back up what you've been saying
<meph> argh, that shitty cubietruck will made me insane :(
<ebonics> i have honestly the worst decision ever
jottr_ has joined #ruby
<ebonics> i assume theres some decent way to accomplish long polling in ruby right
icarus has quit [Ping timeout: 272 seconds]
sankaber has quit [Ping timeout: 240 seconds]
<Nilium> My method of doing that is to open a socket and read, but I also wouldn't use Ruby for it.
rbo has quit [Ping timeout: 264 seconds]
<ebonics> well that's the thing
<ebonics> i wrote some middleware in java to act as a server
jottr has quit [Ping timeout: 240 seconds]
<ebonics> but my middleware is basically calling exec to my ruby application which i find kind of cringeworthy
<ebonics> so i might just cut out the middleware
sankaber has joined #ruby
kenneth__ has joined #ruby
<ebonics> too jaded to try to implement jruby, it failed hard when i tried before
<meph> jruby...
<meph> tell me a java-hater, but everything that starts with a "j" and is kinda related to java
<meph> makes me feel like The Hulk
<ebonics> i have no idea what you mean lol
<bricker> yeah that was a rough read
<weaksauce> java is pretty verbose but performant.
<weaksauce> c# is a nice language
<bricker> I hate that "verbose" is considered a bad thing
<ebonics> C# is pretty much the same verbosity as java
<meph> that java makes me want to smash things xD
<Nilium> I use Go.
<weaksauce> why
tcrypt has quit [Remote host closed the connection]
<weaksauce> verbose for the sake of being verbose is a bad thing in my opinion
kenneth has quit [Ping timeout: 272 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<bricker> weaksauce: verbose for the sake of explictness and clarity is good
<ebonics> ^
tcrypt has joined #ruby
<ebonics> java is a nice language in that it forces some really good habits
<weaksauce> bricker the tons of boilerplate code you need to make anything in java is shit imo
<ebonics> i would always recommend a new programmer to learn java first
<Nilium> I tell people to learn C or Ruby.
<ebonics> weaksauce, i agree, but you also get a lot of flexibility in that
<Nilium> Or I guess Go would be a good learning language these days.
<meph> ClassWithReallyLongNameThatCannotBeReadedBecauseItsPrettyDamnLargeAndItFinishesOutOfTheScreen
<bricker> ebonics: or something similar. Ruby is a horrible first language for a programmer. It's easy but you don't learn any important programming concepts.
<bricker> well, maybe a few
<ebonics> i think ruby is too high level to learn first
<ebonics> it's like learning javascript first
<bricker> weaksauce: Yes, I agree with that statement
<ebonics> everything just works but you don't learn any design patterns
<Nilium> You need to understand logic and control structures before anything else.
<Nilium> Then how to think about data structures
<ebonics> i think for most people that's pretty intuitive
Rickmasta has joined #ruby
<ebonics> and some of the language constructs in ruby are pretty unique. ie. it's going to be confusing when switching to a C-based language
<Nilium> Having seen multiple intro to CS classes fail, I think you're wrong
<weaksauce> and the boilerplate code makes it harder to reason about the system as a whole. the more you can fit on the screen the more you can understand
<ebonics> maybe
baweaver has joined #ruby
<shevy> certainty look someone else likes lisp too http://blog.rongarret.info/2015/05/why-lisp.html
KrzaQ has quit [Disconnected by services]
<ebonics> weaksauce, not sure what you mean by that
<Nilium> At any rate, I like the idea of Go as a learning language now. Limited constructs, limited wasted time on style, limited wasted time on various other things.
<ebonics> i think that the boilerplate is worth writing most of the time in java
KrzaQ has joined #ruby
<weaksauce> ebonics why?
<shevy> why is writing boilerplate good
<ebonics> you don't _have_ to write it. but it allows for the most flexibility. the end result is always fantastic
<shevy> like the hello world example in java
tuelz has joined #ruby
tcrypt has quit [Ping timeout: 244 seconds]
<ebonics> what of it shevy
<shevy> what is good about it?
<ebonics> compared to what
<ebonics> a scripted language?
<shevy> to any language that does not mandate as many characters
<meph> shevy: you know nothing, Jon Snow...
<shevy> meph hehe
<ebonics> i think your argument is a fallacy. but to start it's good because you learn a shitload of things about java just by understanding all the kwyrods in that example
<shevy> meph well I have quite some long class-names too, but that is really extreme... HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor
<meph> I think the coder was trying to break java writing long class-names
duderonomy has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
<ebonics> plus meph your IDE is going to obviously generate all that boilerplate
lidenskap has quit [Remote host closed the connection]
<ebonics> i thought you meant for inheritance and design pattern boilerplate
tuelz has quit [Ping timeout: 250 seconds]
<ebonics> oh i mean shevy
<ebonics> **
bricker has quit [Quit: leaving]
<shevy> so now you have to use an IDE too
<ebonics> who doesn't use an IDE?
<Nilium> ←
<weaksauce> I don't
<shevy> people who don't need one for instance
<ebonics> okay have a vim plugin then for generating class boilerplate
<meph> emacs ftw
<ebonics> whatever dude lol
<weaksauce> do you have one?
<shevy> why would anyone want to use vim or emacs
* Nilium stabs shevy
<Nilium> Speak not ill of vim.
<shevy> no I mean really
<Nilium> Do speak ill of emacs though.
<weaksauce> vim is word
<weaksauce> shevy you don't understand vim
<shevy> you have an IDE like environment, sort of
<Nilium> Let me give you one reason I like using vim: I can press qq to record a macro, copy that recording out of a register, and then put it in a script and turn it into a command.
<shevy> you can use irb/pry, there are embeddable terminals like vte
<meph> i use emacs as shell too
robustus has joined #ruby
<Nilium> It's not for everyone, but I like the flexibility vim gives me that I haven't found in any IDE.
<meph> this days I'm too lazy...
<Nilium> I suspect Emacs is the same for Emacs users.
<weaksauce> you have the notion of more than one clipboard as well.
<meph> Nilium: indeed
<weaksauce> registers as they are called in vim
<Nilium> weaksauce: Also sessions, undo history that persists across vim instances, etc.
<ebonics> i think vim is definitely the best tool for development, in terms of streamlining development once you know how to use it
<shevy> ebonics I sort of use ruby code to generate boilerplate code in ruby too, for instance, "rubygen foo.rb" would generate a basic class in ruby
<shevy> or rather "basic"; it has some common idioms that I use
<Nilium> There are a lot of little things in vim and I assume emacs (I don't use it, but it wouldn't be in use today if it weren't good) that just add up to them being better for the people who use them
<shevy> like: if __FILE__ == $PROGRAM_NAME
<b00b00> if i save page content to a variable, say that variable is a multilaine string with 100 lines, and it stored in var named page_content, how i access to line X, like line 1?
<weaksauce> emacs is great for programability
<shevy> most of my classes have a run() and reset() method because I then don't have to think should I ever want to invoke the object, or reset it again
<ebonics> b00b00, storing it in a string is probably not what you want to do in that case
jeramy_s has quit [Read error: Connection reset by peer]
<weaksauce> vim is great for efficiency of editing
<Nilium> To the point that you can implement vim in emacs.
<weaksauce> indeed and it's not *that* bad
<Nilium> I do not believe that emacs can be implemented in vim, but I haven't looked it up
<shevy> b00b00 easiest if you have an array. your_string.split("\n")[1]
<weaksauce> Nilium no body want's to use VimL is the reason it's not been implemented yet
jottr_ has quit [Read error: Connection reset by peer]
<meph> Nilium: vim has also a "emacs-mode"
<Nilium> I use it, but it's a "ok I really want this thing to work, let's just do what I have to"
<weaksauce> it could probably be done but that's the worst programming language ever
adkron has joined #ruby
djellemah_ has joined #ruby
<Nilium> No, it's just really bad.
<shevy> haha
<ebonics> intellij has a vim mode
<Nilium> Trust me, there is worse.
<ebonics> lold
jottr_ has joined #ruby
<weaksauce> i'd rather write in vb
<ebonics> we going full circle
<adkron> I'm working on a talk, and would love to get some ideas for good examples
<meph> if my memory doens't fail... It's called VImacs
<shevy> adkron a talk about what
<adkron> What things do you do in a web app that you find repeated from controller to controller
duncannz has joined #ruby
<Nilium> Programming in Tcl is pretty awful, for example.
<shevy> I like the vim keybindings. I hate the vim function syntax though
<ebonics> m8 what do you mean you dont run vimacs in your intellij
<ebonics> you new or smthing?
<weaksauce> that's viml shevy
<adkron> My examples so far are like/dislike, subscribe, report, sorting?
<Nilium> I tried using the Vim stuff in IntelliJ and it just doesn't work well
<Nilium> Too many clashing key bindings and so on
<shevy> adkron create? delete? stats/statistics?
<ebonics> prob cause you didnt switch vim to emacs mode within intellij
<weaksauce> I require multi chord keybindings for one
<ebonics> rookie mistake
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> adkron edit!
<shevy> CENSOR!
<adkron> shevy: It is more along the lines of the non-restful things. Like something you might do to multiple models
jwingfi has joined #ruby
bigmac has quit [Ping timeout: 276 seconds]
jwingfi has quit [Remote host closed the connection]
<weaksauce> any vi mode that can't do multi chord keybindings is a nonstarter
<shevy> hmm
<adkron> non-restful might not be the best description
<shevy> can you use vim to write music?
<adkron> Things often not done in a restful way
<shevy> I know that we have a music guy here... ericwood
<Nilium> Also, to be fair, I'm a lousy vim user 'cause I still use the arrow keys.
<adkron> shevy: yes you can write music in vim, well I at least mark up lyrics with notes for the ukulele
<ebonics> Nilium, that's pretty pleb not gonna lie
<ebonics> <3
<weaksauce> Nilium :(
<weaksauce> I thought I liked you
<shevy> Nilium I do so too, I hated to want to use other keys for arrows
djellemah has quit [Ping timeout: 265 seconds]
<Nilium> I don't have proper keyboard form, so my hands are never in a good place to use hjkl
<shevy> haha
<shevy> you have fat hands
<weaksauce> ha
<meph> well...
<meph> I think I'll go to sleep
<shevy> no!
havenwood has quit [Read error: Connection reset by peer]
<Nilium> My left hand is always on WASD and my right is always on space iop'
<ebonics> mine too lmao
f3lp has quit [Ping timeout: 240 seconds]
<ebonics> i type with whatever finger is closest to the key
<ebonics> and i move my hands around so much
<ebonics> it's a disaster
<shevy> one day we can type with our brain
<weaksauce> why space iop'
jaequery has joined #ruby
<ebonics> is this website supposed to be edgy
<ebonics> by using 5pt font
arescorpio has joined #ruby
wolfleemeta___ has quit [Remote host closed the connection]
<meph> 5pt...
<meph> my eyes
wolfleemeta___ has joined #ruby
<b00b00> i have this very simple code: https://gist.github.com/anonymous/9e01bf743e09c524b2e5 , that stores yml content to multiline string i assume. how do i access each line in this string?
thiagovsk has joined #ruby
ta has quit [Read error: Connection reset by peer]
JDiPierro has joined #ruby
<ebonics> >> "a\nb".each_line do |line|; print line + "->"; end;
<ruboto> ebonics # => a ...check link for more (https://eval.in/339546)
ta has joined #ruby
iasoon has quit [Ping timeout: 256 seconds]
<ebonics> >> "a\nb".each_line do |line|; print line.strip + "->"; end;
<ruboto> ebonics # => a->b->"a\nb" (https://eval.in/339548)
Ropeney has joined #ruby
unreal_ has joined #ruby
pontiki has joined #ruby
<Nilium> weaksauce: I can't explain it, it's just how my form developed.
<ebonics> b00b00, ^
babykosh has joined #ruby
baweaver has quit [Remote host closed the connection]
<Nilium> I have never once had anyone tell me how to type, so how I type is how I learned on my own
tvw has quit [Remote host closed the connection]
rahult has joined #ruby
nahtnam has joined #ruby
<weaksauce> hey put your right hand on jl;
<Nilium> This works perfectly fine for me 'cause I touch type just fine and whatnot, my fingers just aren't on the keys everyone else apparently uses.
<weaksauce> jkl;
<weaksauce> now you don't have that excuse
rahult is now known as rahult_
rahult_ is now known as rahult
<Nilium> But then it feels wrong.
unreal has quit [Ping timeout: 240 seconds]
<weaksauce> it is so right
<Nilium> So you say, but you might be the pied piper ಠ_ಠ
<weaksauce> he was a bad man
<weaksauce> I am not
<weaksauce> ergo not the pied piper
bruno- has joined #ruby
bruno-_ has joined #ruby
<ebonics> b00b00, actually i'd probably use a closure there
sanguisdex has quit [Quit: Leaving.]
<ebonics> use yield within openurl then just feed it a closure so you can stream the lines
<ebonics> isntead of iterating over them twice
f3lp has joined #ruby
pontiki has quit [Ping timeout: 246 seconds]
<ebonics> wtf are they called in ruby again
<ebonics> procs?
<weaksauce> blocks
<ebonics> orite
<weaksauce> procs are a type of block
<weaksauce> b00b00 that code doesn't do what you think it does
woodruffw has quit [Quit: And then he took off.]
<weaksauce> b00b00 puts returns nil and the last statement in a method gets evaluated and returned
bruno-_ has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 256 seconds]
<weaksauce> b00b00 so openurl will always return nil
woodruffw has joined #ruby
Filete has quit [Quit: Textual IRC Client: www.textualapp.com]
tuelz has joined #ruby
Filete has joined #ruby
wolfleemeta____ has joined #ruby
djbkd has joined #ruby
<ebonics> >> require 'open-uri'; open('https://google.com')
<ruboto> ebonics # => (https://eval.in/339574)
<ebonics> >> require 'open-uri'; puts open('https://google.com')
<ruboto> ebonics # => (https://eval.in/339582)
<ebonics> >> require 'open-uri'; d = open('https://google.com') { |u| u.read }; d
<ruboto> ebonics # => (https://eval.in/339583)
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
Rollabunna has joined #ruby
wolfleemeta___ has quit [Ping timeout: 256 seconds]
pontiki has joined #ruby
juanpablo_ has joined #ruby
<b00b00> thanks, but in these examples i get ssl error
meph has quit [Quit: Leaving.]
f3lp has quit [Ping timeout: 256 seconds]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<b00b00> need to append this {ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE} iassume
<ebonics> b00b00, i was just messing around there
<ebonics> you can try the last one though
<ebonics> with your ssl verify
<b00b00> ok, i will try, thanks alot
multi_io has quit [Ping timeout: 246 seconds]
n80 has quit [Quit: n80]
cryptarium has joined #ruby
juanpablo_ has quit [Ping timeout: 244 seconds]
tectonic has joined #ruby
multi_io has joined #ruby
jottr_ has quit [Ping timeout: 246 seconds]
<pontiki> hi
lidenskap has joined #ruby
lidenskap has quit [Remote host closed the connection]
Yzguy has quit [Quit: I'm sleeping, go away.]
icarus has joined #ruby
yqt has quit [Ping timeout: 244 seconds]
wallerdev has quit [Quit: wallerdev]
thumpba_ has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby
michaeldeol has quit [Client Quit]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
redjack1964 has quit [Remote host closed the connection]
vikaton has joined #ruby
yfeldblum has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 272 seconds]
michaeldeol has joined #ruby
Channel6 has quit [Quit: Leaving]
lidenskap has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Client Quit]
lidenskap has quit [Remote host closed the connection]
jaequery has joined #ruby
<b00b00> great, now i see the string with line\nline\n and so on... say i want to replace the whole first line, what is the right way? sorry for these lots of questions but very new with this
<b00b00> i assume sub or gsub, but want to know the right way, thanks
rahult has joined #ruby
diegoviola has joined #ruby
aphprentice has joined #ruby
lidenskap has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
yfeldblum has joined #ruby
nemish_ has quit [Ping timeout: 276 seconds]
Zenon has quit [Quit: bb]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wolfleemeta____ has quit [Remote host closed the connection]
wolfleemeta____ has joined #ruby
b00b00 has quit [Ping timeout: 250 seconds]
wolfleemeta_____ has joined #ruby
wolfleemeta____ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
woodruffw has quit [Quit: And then he took off.]
woodruffw has joined #ruby
davedev2_ has quit [Ping timeout: 265 seconds]
tubuliferous_ has joined #ruby
woodruffw has quit [Client Quit]
workmad3 has joined #ruby
balazs has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Filete has quit [Ping timeout: 252 seconds]
n80 has joined #ruby
scripore has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubuliferous_ has quit [Ping timeout: 240 seconds]
davedev2_ has joined #ruby
diegoaguilar has joined #ruby
icarus has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
rahult has joined #ruby
davedev24_ has quit [Ping timeout: 256 seconds]
jeromelanteri has joined #ruby
Akagi201 has quit []
MXfive has joined #ruby
vikaton has quit []
kenneth__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
nobitanobi has quit [Remote host closed the connection]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dickchansey3 has joined #ruby
lidenskap has quit [Remote host closed the connection]
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cjim_ has joined #ruby
dickchansey3 has quit [Remote host closed the connection]
bebijlia has quit [Ping timeout: 272 seconds]
juanpablo_ has joined #ruby
Xiti has quit [Quit: Xiti]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 256 seconds]
cjim_ has quit [Client Quit]
swgillespie has joined #ruby
Kricir has quit [Remote host closed the connection]
tectonic has quit []
PhantomSpank has joined #ruby
Xiti has joined #ruby
juanpablo_ has quit [Ping timeout: 255 seconds]
diegoaguilar has quit [Quit: Leaving]
MXfive has quit [Quit: Textual IRC Client: www.textualapp.com]
tonyhb has joined #ruby
PhantomS_ has quit [Ping timeout: 245 seconds]
alderamin has joined #ruby
shuber_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
thatslifeson has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
A205B064 has quit [Ping timeout: 246 seconds]
penzur has joined #ruby
anthony has joined #ruby
anthony has quit [Client Quit]
MXfive has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
tectonic has joined #ruby
kthxbai has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kthxbai has quit [Remote host closed the connection]
swgillespie has joined #ruby
<rgb-one> Anyone here who has experience with AsciiDoctor?
zzing has joined #ruby
bireunco has joined #ruby
realname_ has joined #ruby
realname_ is now known as Guest15326
bireunco has quit [Remote host closed the connection]
kenneth has joined #ruby
TheCapacitator has joined #ruby
icebourg has joined #ruby
kenneth has quit [Client Quit]
adkron has quit [Ping timeout: 264 seconds]
kenneth has joined #ruby
ramfjord has joined #ruby
millerti has joined #ruby
TheCapacitator has quit [Remote host closed the connection]
icarus has joined #ruby
idafyaid has joined #ruby
braincrash has quit [Quit: bye bye]
n80 has quit [Quit: n80]
zotherstupidguy has quit [Ping timeout: 256 seconds]
Feyn has joined #ruby
Kricir has joined #ruby
zotherstupidguy has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
vikaton has joined #ruby
braincrash has joined #ruby
Spami has joined #ruby
jack_rabbit has joined #ruby
startupality has joined #ruby
danman has joined #ruby
tus has quit []
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tonyhb has quit [Quit: peace]
JDiPierro has quit [Remote host closed the connection]
danman has quit [Quit: danman]
kblake has joined #ruby
zotherstupidguy has quit [Ping timeout: 252 seconds]
Perdomo has quit [Ping timeout: 244 seconds]
GlenK_ has joined #ruby
zotherstupidguy has joined #ruby
<GlenK_> hi hi. how goes it ruby land?
startupality has quit [Quit: startupality]
hgl- has joined #ruby
<pipework> The princess just kidnapped a criminal.
<GlenK_> ruby has the best documentation hands down
psy_ has joined #ruby
<GlenK_> guess I'm just a weirdo
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
shuber_ has quit [Remote host closed the connection]
<GlenK_> I'll go back to lord of the rings or something
kblake has quit [Ping timeout: 240 seconds]
<GlenK_> ha, nah, I'm all over the place
<GlenK_> salmon might be a thing
GriffinHeart has quit [Remote host closed the connection]
hgl has quit [Ping timeout: 276 seconds]
hgl- is now known as hgl
michaeldeol has joined #ruby
wolfleemeta_____ has quit [Remote host closed the connection]
wolfleemeta_____ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
phutchins1 has quit [Quit: WeeChat 1.1.1]
zarubin has quit [Ping timeout: 246 seconds]
shuber_ has joined #ruby
baweaver has joined #ruby
lidenskap has joined #ruby
jack_rabbit has quit [Ping timeout: 272 seconds]
Guest1421 has joined #ruby
wolfleemeta_____ has quit [Read error: Connection reset by peer]
GlenK_ has quit []
AlphaAtom has joined #ruby
lidenskap has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
AlphaAtom has quit [Ping timeout: 256 seconds]
kies has quit [Ping timeout: 250 seconds]
DexterLB has quit [Quit: So long and thanks for all the fish]
thatslifeson has joined #ruby
tectonic has quit []
sevenseacat has joined #ruby
nini1294 has joined #ruby
DexterLB has joined #ruby
apurcell has quit [Quit: Be back later ...]
thatslifeson has quit [Ping timeout: 264 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zarubin has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
balazs has quit []
Guest1421 has quit [Ping timeout: 244 seconds]
kies has joined #ruby
konsolebox has quit [Ping timeout: 252 seconds]
nini1294 has quit [Read error: Connection reset by peer]
bigmac has joined #ruby
icebourg has quit [Ping timeout: 256 seconds]
tubuliferous_ has joined #ruby
icebourg has joined #ruby
mallu has quit [Ping timeout: 246 seconds]
<bigmac> im messing with xpath
dseitz has quit [Remote host closed the connection]
workmad3 has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bigmac> <p>one<em class="something">two<a href="src/loc">link</a></em></p>
<bigmac> i cant get the first string
<bigmac> only the hole string
alkoma has quit [Remote host closed the connection]
DexterLB has quit [Ping timeout: 240 seconds]
<bigmac> <div class="fancy"><p>one<em class="something">two<a href="src/loc">link</a></em></p></div>
DexterLB has joined #ruby
longfeet has quit [Ping timeout: 256 seconds]
<bigmac> page.xpath("//div[contains(@itemprop, 'description')]")
nobitanobi has joined #ruby
tubuliferous_ has quit [Ping timeout: 276 seconds]
<bigmac> typo
workmad3 has quit [Ping timeout: 245 seconds]
lidenskap has joined #ruby
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
nobitanobi has quit [Ping timeout: 255 seconds]
kurokatze has joined #ruby
konsolebox has joined #ruby
<kurokatze> text2 = /ayyy+\b/i.match(@msg.text)
cyberarm has joined #ruby
<kurokatze> text3 = text2.length
konsolebox has quit [Max SendQ exceeded]
<kurokatze> why does text3 always return 1 for me?
konsolebox has joined #ruby
mengu has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
<mozzarella> kurokatze: because there's no capture group
zacts has joined #ruby
<ducklobster> hoping someone can help me with bundler / building gems
<kurokatze> yeah, i just figured that out
<kurokatze> thanks mate
<ducklobster> i have a library that i wrote which has a .gemspec
<ducklobster> and i have defined the runtime dependencies
<ducklobster> and the development dependencies
<ducklobster> this is all checked into git
<ducklobster> in anothe project, i have added it to the Gemfile
<ducklobster> but when i do a bundler install
<ducklobster> it seems to skip over the development dependencies
<ducklobster> i tried bundle install --without production but no luck
mengu has quit [Ping timeout: 252 seconds]
<ducklobster> any ideas on how to force a gem to be pulled with its development dependencies?
<pontiki> bundler doesn't install gems' development dependencies
<pontiki> because it doesn't think you're developing the gems being installed
<bigmac> i strugle to grab the first string found in this html
<bigmac> <p>text<em class="nobr">Written by<a href="src/loc/html">name</a></em></p>
<ducklobster> pontiki: then what is the point of add_development_dependency in the .gemspec?
<pontiki> what is the first string you want, bigmac
<bigmac> text*
<bigmac> all the examples i find online are basic
<bigmac> <p>string<p>
<ducklobster> pontiki: "Development dependencies aren’t installed by default and aren’t activated when a gem is required."
<zotherstupidguy> bigmac checkout nokogiri http://www.nokogiri.org/
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zacts has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
<pontiki> isn't that what i just said, ducklobster ?
thatslifeson has joined #ruby
<ducklobster> it is :)
shuber_ has quit [Remote host closed the connection]
<ducklobster> i was just quoting the doc
<ducklobster> which still doesn't explain
<pontiki> development dependencies in the gemspec are for working on the development of the gem, not for using the gem in another project
<bigmac> all the examples i find on nokogiri xpath stuff are basic
<bigmac> page.xpath("//p")
<bigmac> <p>string</p>
cjim_ has joined #ruby
<bigmac> but when there are other trailing junk
<bigmac> <p>string<h1>some more</h1></p>
<bigmac> page.xpath("//p") => "<p>string<h1>some more</h1></p>"
<ducklobster> pontiki: is it also correct to _not_ have a Gemfile for a library i am developing?
<bigmac> page.xpath("//h1") => "<h1>some more</h1>"
<ebonics> bigmac, if you get the selenium firefox plugin it will allow you to right click an element and get the unique identifier for it
<ebonics> sometimes it'll be like somediv:nth-child
juanpablo_ has joined #ruby
<pontiki> ducklobster: if you're using bundler in the development of your library, it will require a Gemfile. but your Gemfile would contain only the source and gemspec lines probably
<ducklobster> ahh i see
<ducklobster> thanks for the info
<zotherstupidguy> ducklobster in other words its not your problem now :)
<zotherstupidguy> well using git, you can update the other Gemfile
<zotherstupidguy> make a pullrequest
<pontiki> ducklobster: i tend to always start gem or library or pretty much any non-rails development using `bundle gem <name> ...`
duderonomy has joined #ruby
lidenskap has quit [Remote host closed the connection]
<bigmac> ebonics: i have the correct identifier, i just struggle to grab the first string
<pontiki> zenspider & the seattlerc have hoe, which is really pretty great
<pontiki> sorry, seattlerb*
<bigmac> page.xpath("//p") => "<p>string<h1>some more</h1></p>"
<ebonics> bigmac, there's no way to get that string nless you remove the h1 text first
juanpablo_ has quit [Ping timeout: 252 seconds]
<ebonics> ie. you can just remove all child elements of the paragraph then get its text
<bigmac> so, at this point ill parse the resaults with gsub?
<ebonics> that's nasty
<bigmac> yah lol
<ebonics> just do what i said there
<bigmac> im trying to do this clean
_blizzy_ has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Remote host closed the connection]
<pontiki> bigman, let's break this down. you run '<p>text<em>some other crap</em></p>' into Nokogiri::HTML.fragment, you get back a structure like so: https://gist.github.com/tamouse/6e18b44916b98b9dc7a3
shuber_ has joined #ruby
jaequery has joined #ruby
penzur has quit [Quit: quit]
<pontiki> doc.children.first is the <p> element: https://gist.github.com/tamouse/6e18b44916b98b9dc7a3
<pontiki> it has two children
konsolebox has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bigmac> ebonics: oh you are amazing i did it lol
<bigmac> pontiki: looking now
<ebonics> bigmac, nice ;o
<bigmac> xpath("//em").remove
<bigmac> and then => <p>string</p>
moeabdol1 has quit [Ping timeout: 240 seconds]
gambl0re has quit [Ping timeout: 250 seconds]
<pontiki> you understand that removes it from the whole tree?
<ebonics> yeah if youre gonna need it later make sure you clone the parent first
davedev24_ has joined #ruby
davedev2_ has quit [Ping timeout: 265 seconds]
<bigmac> i notice
<bigmac> lol
serivichi has quit [Ping timeout: 244 seconds]
apurcell has joined #ruby
davedev2_ has joined #ruby
Rollabunna has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 256 seconds]
Rollabunna has joined #ruby
konsolebox has joined #ruby
<nahtnam> I have a array/json that looks like this: ["EU West", {"capacity"=>"full", "load"=>"idle"}] I am trying to get the capacity and load to be puts, but I dont know how to access it. I am able to access the Location by doing @json.first
jeromelanteri has quit [Remote host closed the connection]
apurcell has quit [Ping timeout: 256 seconds]
WilfredTheGreat has joined #ruby
<nahtnam> Oh lol
<nahtnam> Figured it out. :P
A205B064 has joined #ruby
<ebonics> >> ["EU West", {"capacity"=>"full", "load"=>"idle"}][1]["capacity"]
<ruboto> ebonics # => "full" (https://eval.in/339979)
DynamicMetaFlow has joined #ruby
<nahtnam> ebonics: Yeah, thats what I did
DynamicMetaFlow has quit [Client Quit]
DynamicMetaFlow has joined #ruby
bruno- has joined #ruby
bruno-_ has joined #ruby
sinequanon has joined #ruby
MXfive has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has quit [Quit: zzz]
MXfive has joined #ruby
s2013 has joined #ruby
bruno-_ has quit [Ping timeout: 265 seconds]
bruno- has quit [Ping timeout: 264 seconds]
riotjones has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
<ebonics> is there a way to call the array's [] in this example from the module?
<ebonics> >> ['a','b','c'].extend (Module.new do; def [](v1); puts super[v1]; end; end)[0]
<ruboto> ebonics # => undefined method `[]' for #<Module:0x41e63dcc> (NoMethodError) ...check link for more (https://eval.in/340030)
riotjones has quit [Ping timeout: 256 seconds]
SegFaultAX has quit [Ping timeout: 256 seconds]
knikolov has quit [Quit: WeeChat 1.2-rc2]
SegFaultAX has joined #ruby
yfeldblum has joined #ruby
icebourg has quit []
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
agent_white has joined #ruby
thumpba has joined #ruby
djbkd has quit [Quit: My people need me...]
Vile` has quit [Remote host closed the connection]
Spami has joined #ruby
thumpba_ has joined #ruby
lessless has quit [Quit: Textual IRC Client: www.textualapp.com]
rbo has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
thumpba has quit [Ping timeout: 256 seconds]
Oka has joined #ruby
Vile` has joined #ruby
thumpba_ has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
ProteusX has quit [Ping timeout: 240 seconds]
<pontiki> i don't even understand what that's supposed to do
PhantomSpank has quit [Remote host closed the connection]
<pontiki> >> ['a','b','c'].extend (Module.new do; def [](v1); puts super[v1]; end; end)
<ruboto> pontiki # => ["a", "b", "c"] (https://eval.in/340099)
<pontiki> >> ['a','b','c'].extend(Module.new do; def [](v1); puts super[v1]; end; end)
<ruboto> pontiki # => ["a", "b", "c"] (https://eval.in/340100)
<pontiki> >> ['a','b','c'].extend(Module.new do; def [](v1); puts super[v1]; end; end)[0]
<ruboto> pontiki # => a ...check link for more (https://eval.in/340101)
<pontiki> >> ['a','b','c'].extend(Module.new do; def [](v1); puts super[v1]; end; end)[1]
<ruboto> pontiki # => ...check link for more (https://eval.in/340102)
<pontiki> >> ['a','b','c'].extend(Module.new do; def [](v1); puts super[v1]; end; end)[-1]
<ruboto> pontiki # => c ...check link for more (https://eval.in/340103)
<pontiki> >> ['a','b','c'].extend(Module.new do; def [](v1); puts super[v1]; end; end)[-2]
<ruboto> pontiki # => ...check link for more (https://eval.in/340104)
<pontiki> >> ['a','b','c'].extend(Module.new do; def [](v1); puts super[v1]; end; end)[2]
<ruboto> pontiki # => ...check link for more (https://eval.in/340105)
<pontiki> >> ['a','b','c'].extend(Module.new do; def [](v1); puts super[v1]; end; end)[-1]
<ruboto> pontiki # => c ...check link for more (https://eval.in/340106)
<pontiki> yeah, i have no idea
penzur has joined #ruby
apurcell has joined #ruby
ProteusX has joined #ruby
gizless is now known as gizmore
ohaibbq has joined #ruby
kt2 has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
rahult has joined #ruby
rahult is now known as rahult_
davedev24_ has joined #ruby
rahult_ has quit [Client Quit]
apurcell has quit [Ping timeout: 256 seconds]
<ebonics> pontiki, it's just supposed to override the [] method of the array
<ebonics> >> (['a','b','c'].extend (Module.new do; def [](v1); puts super[v1]; end; end))[0]
<ruboto> ebonics # => a ...check link for more (https://eval.in/340111)
djbkd has joined #ruby
<ebonics> >> (['a','b','c'].extend (Module.new do; def [](v1); puts super[v1].upcase; end; end))[0]
<ruboto> ebonics # => A ...check link for more (https://eval.in/340112)
<pontiki> right, but with your space between extend and (Mo... the [] is being applied to the () expression, not the array
thumpba has joined #ruby
<ebonics> yeah pontiki i thought it was complaining about the def [] but it was just the access
<ebonics> hard to debug when its all on 1 line lol
<pontiki> okay, but what's happening when you use [1]?
<ebonics> >> (['a','b','c'].extend (Module.new do; def [](v1); puts super[v1].upcase; end; end))[1]
<ruboto> ebonics # => undefined method `upcase' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/340143)
thumpba_ has joined #ruby
<pontiki> and then what's happening when you use [-1] ?
<pontiki> or [-2]
<ebonics> why's it do that
<ebonics> >> (['a','b','c'].extend (Module.new do; def [](v1); puts super[v1].upcase; end; end))[-1]
<ruboto> ebonics # => C ...check link for more (https://eval.in/340147)
Spami has quit [Quit: This computer has gone to sleep]
PhantomSpank has joined #ruby
<ebonics> oh pontiki
<ebonics> >> (['a','b','c'].extend (Module.new do; def [](v1); puts super(v1).upcase; end; end))[1]
<ruboto> ebonics # => B ...check link for more (https://eval.in/340151)
<ebonics> i forgot about that
agent_white has quit [Ping timeout: 250 seconds]
<ebonics> what's super[v1] return though?
thumpba has quit [Ping timeout: 244 seconds]
PhantomSpank has quit [Read error: Connection reset by peer]
tubuliferous_ has joined #ruby
PhantomSpank has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
<hanmac> ebonics: do you still not understand the difference between super() and super[] ?
<ebonics> hanmac, i understand super() does what i want
<ebonics> i don't know what super[] is doing
cjim_ has quit [Quit: (null)]
PhantomSpank has quit [Read error: Connection reset by peer]
<baweaver> and 0.007% the runtime of permutation solutions
workmad3 has joined #ruby
<hanmac> ebonics: its like super returns 'b' super[1] is 'b'[1] => nil
cjim_ has joined #ruby
<hanmac> ebonics: i would recommend that you use irb or pry for testing
PhantomSpank has joined #ruby
<ebonics> oh i see
<ebonics> wait no i don't
<ebonics> isn't "super" the array
<ebonics> >> (['a','b','c'].extend (Module.new do; def [](v1); puts super; end; end))[1]
<ruboto> ebonics # => b ...check link for more (https://eval.in/340153)
malcolmva has quit [Ping timeout: 244 seconds]
tubuliferous_ has quit [Ping timeout: 252 seconds]
Guest15326 has quit [Ping timeout: 265 seconds]
<ebonics> hanmac, yeah i will
<hanmac> ebonics: NO self is the array, super is the [] method
<Diabolik> what is the equivalent of figaro for angular?
<ebonics> ohhh i see hanmac
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 256 seconds]
MrSamuel has joined #ruby
<ebonics> i forgot methods are objects too
workmad3 has quit [Ping timeout: 265 seconds]
<Diabolik> ebonics everything is an object
<Diabolik> including objects
<Diabolik> :P
<ebonics> Diabolik, even me?
<Diabolik> yes
<ebonics> check your privilege
<pontiki> methods are messages, not objects
PhantomSpank has quit [Read error: Connection reset by peer]
<ebonics> pretty sure blocks are objects are they
<ebonics> only procs are?
PhantomSpank has joined #ruby
<ebonics> arent*
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
PhantomSpank has joined #ruby
PhantomSpank has quit [Read error: Connection reset by peer]
kenneth has joined #ruby
<weaksauce> pontiki can't you pass around a method as an object?
<weaksauce> unbind it from a class etc.
zarubin has quit [Ping timeout: 250 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> >> method(:p).to_proc
<ruboto> baweaver # => #<Proc:0x41aac350 (lambda)> (https://eval.in/340185)
<baweaver> >> method(:p).to_proc[1]
<ruboto> baweaver # => 1 ...check link for more (https://eval.in/340186)
<baweaver> as a proc at least.
<ebonics> >> (&method(:p))]1
<ruboto> ebonics # => /tmp/execpad-35e7e8b5ea6c/source-35e7e8b5ea6c:2: syntax error, unexpected & ...check link for more (https://eval.in/340188)
<ebonics> >> (&method(:p))[1]
<ruboto> ebonics # => /tmp/execpad-87ec4e1df7ad/source-87ec4e1df7ad:2: syntax error, unexpected & ...check link for more (https://eval.in/340190)
<ebonics> i thoght & turned things into procs lol
<weaksauce> >> class A; def a; puts "a"; end; end; x= A.unbind(:a); x
<ruboto> weaksauce # => undefined method `unbind' for A:Class (NoMethodError) ...check link for more (https://eval.in/340192)
<weaksauce> >> class A; def a; puts "a"; end; end; x= A.method(:a).unbind; x
<ruboto> weaksauce # => undefined method `a' for class `Class' (NameError) ...check link for more (https://eval.in/340193)
<weaksauce> meh
malcolmva has joined #ruby
idafyaid has quit [Quit: idafyaid]
<weaksauce> >> class A; def a; puts "a"; end; end; x=A.new; x.unbind(:a); x
<ruboto> weaksauce # => undefined method `unbind' for #<A:0x40babef0> (NoMethodError) ...check link for more (https://eval.in/340194)
<weaksauce> ok i'm done
DynamicMetaFlow has quit [Ping timeout: 256 seconds]
<weaksauce> psyche
GriffinHeart has joined #ruby
<pontiki> you can definitely create a closure over a method, making a method object
<weaksauce> >> class A; def a; puts "a"; end; end; x=A.new; y = x.method(:a).unbind; x
<ruboto> weaksauce # => #<A:0x41a4ff24> (https://eval.in/340195)
arescorpio has quit [Quit: Leaving.]
<ebonics> >> class A; def a; puts "a"; end; end; x=A.new; y = x.method(:a).unbind; x.a
<ruboto> ebonics # => a ...check link for more (https://eval.in/340198)
<ebonics> >> class A; def a; puts "a"; end; end; x=A.new; y = x.method(:a).unbind; y.a
<ruboto> ebonics # => undefined method `a' for #<UnboundMethod: A#a> (NoMethodError) ...check link for more (https://eval.in/340199)
<ebonics> what's the utility of being able to do that?
<weaksauce> probably not much but you can unbind a method on an instance at runtime and bind it on another object
juanpablo_ has joined #ruby
* baweaver hasn't used binding in ruby at all.
<ebonics> weaksauce, can you do that with a yield in a block
<weaksauce> I am not an expert in the esoteric corners of ruby ebonics
<weaksauce> perhaps?
lidenskap has joined #ruby
<baweaver> I only dabble in the black arts
juanpablo_ has quit [Ping timeout: 246 seconds]
<ebonics> ihate syncing filessss
<ebonics> i HAVE to do it or ill be nanoyed by the popups.. damn OCD
lidenskap has quit [Ping timeout: 252 seconds]
rgb-one has quit [Read error: Connection reset by peer]
jack_rabbit has joined #ruby
<weaksauce> I'm sure most uses would be fine with a simple block and a yield
<weaksauce> there is probably some weird use that I have no need for
zarubin has joined #ruby
<ebonics> weaksauce, im talking about stopping the yield like half way through then unbinding it and binding it to a new class
<ebonics> if it would carry over the state etc
<weaksauce> I don't think it carries state over but you could try it
thumpba has joined #ruby
<baweaver> Benchmark.measure { string_sorting_n4((1..1_000_000).to_a.sample(15_000)) }.real # => => 1.0660423850058578
nimstr has joined #ruby
<baweaver> permutation variants won't finish for a few weeks at least.
<baweaver> Algorithms \o/
thumpba_ has quit [Ping timeout: 245 seconds]
Hirzu has joined #ruby
<zotherstupidguy> have anybody seen this before "hack.rb:2:in `<main>': undefined local variable or method ` ' for main:Object (NameError)
<baweaver> No, but we haven't seen your code that caused it either
<zotherstupidguy> well guess wht, just a ruby file with require 'yaml' in it!
<pontiki> make sure you don't have some non-printing character in there on line 2
thumpba has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
<zotherstupidguy> pontiki seems to work! damn, how you check aganist this, i am using vim!
jack_rabbit has quit [Ping timeout: 272 seconds]
Hirzu_ has quit [Ping timeout: 276 seconds]
<pontiki> make enough mistakes, you will, by the time you're my age
<zotherstupidguy> pontiki thankx (pow)
<zotherstupidguy> pontiki thankx (bow)
<zotherstupidguy> i need to do the proper bow, aikido style
<pontiki> meh, i screwed up the quote anyway
ohaibbq has quit [Quit: Leaving...]
* zotherstupidguy thinks pontiki should be a honorary shihan
<pontiki> just an old mouse
sinequanon has quit [Remote host closed the connection]
mindaslab has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
Eiam has quit [Ping timeout: 272 seconds]
simpyll has joined #ruby
zotherstupidguy has quit [Ping timeout: 276 seconds]
lidenskap has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
MrSamuel has joined #ruby
MrSamuel has quit [Client Quit]
Oka has quit [Quit: さようなら]
x1337807x has joined #ruby
x1337807x has quit [Client Quit]
apurcell has joined #ruby
AlHafoudh has quit [Ping timeout: 264 seconds]
mindaslab has quit [Ping timeout: 256 seconds]
bigmac has quit [Ping timeout: 264 seconds]
apurcell has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
cjim_ has quit [Quit: (null)]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sinkensabe has joined #ruby
Igorshp has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
electriv has joined #ruby
Ropeney has quit [Quit: Leaving...]
jottr_ has joined #ruby
jeromelanteri has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
icarus has quit [Ping timeout: 245 seconds]
hanmac has quit [Ping timeout: 256 seconds]
infoget has quit [Quit: Leaving.]
zotherstupidguy has joined #ruby
decoponio has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
<zotherstupidguy> is it wise to use rake for running a webapp, to test it?
sepp2k has quit [Quit: Leaving.]
sepp2k has joined #ruby
Igorshp has quit [Read error: Connection reset by peer]
hanmac has joined #ruby
Igorshp has joined #ruby
sinkensabe has quit [Ping timeout: 256 seconds]
scripore has joined #ruby
ayaz has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
zotherstupidguy has quit [Ping timeout: 264 seconds]
tubuliferous_ has joined #ruby
zotherstupidguy has joined #ruby
workmad3 has joined #ruby
jayeshsolanki has joined #ruby
<pontiki> the tests tend to be the default rake operation...
<pontiki> i guess i'm not sure what you mean there
A205B064 has quit [Ping timeout: 246 seconds]
tubuliferous_ has quit [Ping timeout: 250 seconds]
jupenzot has joined #ruby
jeromelanteri has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
workmad3 has quit [Ping timeout: 244 seconds]
penzur has quit [Ping timeout: 250 seconds]
jupenzot is now known as penzur
djbkd has joined #ruby
kyrylo has joined #ruby
<zotherstupidguy> pontiki i want to test my application api, so i need to run it before running the tests
psy_ has quit [Ping timeout: 246 seconds]
<pontiki> what? that doesn't even make sense
Joufflu has quit [Quit: Peace]
bruno- has joined #ruby
bruno-_ has joined #ruby
<pontiki> what do your tests test??
<zotherstupidguy> they call the api and see if it returns somthing meangiful
<zotherstupidguy> via Net::HTTP response object
Zai00 has joined #ruby
<pontiki> no unit or feature tests?
djbkd has quit [Ping timeout: 264 seconds]
<zotherstupidguy> i am using minitest specs
bruno-_ has quit [Ping timeout: 276 seconds]
bruno- has quit [Ping timeout: 276 seconds]
<zotherstupidguy> i am sorry i am not sure what u mean
djbkd has joined #ruby
<pontiki> i guess i don't know what question you're asking
hanachin has quit [Remote host closed the connection]
<pontiki> if you need to have your application up to bounce tests off it, why are asking if it's okay to use rake?
<zotherstupidguy> not really, i just got confused by feature tests, i thought cucumber
<zotherstupidguy> i am trying to figure out if i need to make a rake task to test API, then this task will have a dependency on another task that runs the app first
jottr_ has quit [Ping timeout: 252 seconds]
<zotherstupidguy> i just wanna make sure that others do it in a similar fashion, i like to stay with the herd
<pontiki> whatever you use to run your tests, you need to ensure the dependencies for passing those tests are in place
<pontiki> is this a rails app?
<zotherstupidguy> pontiki i hear of mocking web calls, etc. thats why i ask, no it is not rails, pure rack
mengu has joined #ruby
mengu has joined #ruby
<pontiki> you generally mock web calls your application makes
<pontiki> not the web calls your test makes to your application
<zotherstupidguy> ok
<pontiki> so your tests don't depend on services not under test
<pontiki> say your application makes a service call to facebook's api
<pontiki> you mock that call out
<zotherstupidguy> ok, so its ok to use rake to 1) run the app, 2) run the tests, 3) stop the running app.
<zotherstupidguy> ?
<pontiki> sure, if you want
<zotherstupidguy> is this the way most ppl go with?
juanpablo_ has joined #ruby
<pontiki> it's not the way people testing rails do things
<pontiki> i can't speak for others
<zotherstupidguy> how u do it?
<pontiki> but rails has testing stuff in it so that it builds the calls to the stack as if they were coming through from a server
psy_ has joined #ruby
<pontiki> i don't know if rack has that, or if you can use the same things
<pontiki> i'm not saying it can't be done. i just have no experience doing so
<zotherstupidguy> so you can test a rails app, without running it?
<pontiki> what you're proposing isn't bad either
<pontiki> you test it without running it *separately*
<pontiki> it's definitely running
jottr_ has joined #ruby
<pontiki> it's all loaded up with your tests
<zotherstupidguy> aha
<zotherstupidguy> i guess rails testing worth a look at to see what helper function rails provide to do tests
diegoviola has quit [Remote host closed the connection]
<pontiki> which is also somewhat of an annoyance to outright problem because it can keep the tests from starting up quickly
juanpablo_ has quit [Ping timeout: 246 seconds]
<pontiki> it's why things like zeus, spork, and spring have been built
<pontiki> i don't want to send you on a wild goose chase, either
<pontiki> even in my sinatra apps, i've never spent any time testing that aspect
<pontiki> i test all the internal models and objects and stuff
<zotherstupidguy> because usually ppl test models
<zotherstupidguy> not api calls
<zotherstupidguy> exactly, right
<pontiki> api interfaces are pretty damn thin
<pontiki> not much to test at all
<zotherstupidguy> good point
<zotherstupidguy> because its done at the framework level
<zotherstupidguy> testing is done at the framework level
<zotherstupidguy> pontiki thanks
jottr_ has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
banister has joined #ruby
agent_white has joined #ruby
vickleton has joined #ruby
roolo has joined #ruby
psyprus has quit [Ping timeout: 248 seconds]
iamninja has quit [Read error: Connection reset by peer]
electriv has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
penzur has quit [Quit: wadiwasi]
sinkensabe has joined #ruby
thumpba has joined #ruby
sepp2k has quit [Quit: Leaving.]
psyprus has joined #ruby
lkba has joined #ruby
lkba_ has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
thumpba has quit [Ping timeout: 256 seconds]
pontiki has quit [Quit: gnite]
duncannz has quit [Ping timeout: 244 seconds]
iamninja has joined #ruby
lkba has quit [Ping timeout: 276 seconds]
Igorshp has quit [Remote host closed the connection]
_ixti_ is now known as ixti
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Zai00 has quit [Quit: Zai00]
sinkensabe has quit [Remote host closed the connection]
Igorshp has joined #ruby
sinkensabe has joined #ruby
roshanavand has joined #ruby
aryaching has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
Perdomo has joined #ruby
Igorshp has quit [Remote host closed the connection]
ghr has joined #ruby
Igorshp has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
mdw has joined #ruby
sepp2k has joined #ruby
thatslifeson has quit [Remote host closed the connection]
deuterium has joined #ruby
ProteusX has quit [Ping timeout: 264 seconds]
mbeasley has quit [Ping timeout: 272 seconds]
swgillespie has joined #ruby
Perdomo has quit [Ping timeout: 272 seconds]
MyMind has joined #ruby
Sembei has quit [Ping timeout: 245 seconds]
livathinos has joined #ruby
Macaveli has joined #ruby
mbeasley has joined #ruby
idafyaid has joined #ruby
idafyaid is now known as Guest40723
Guest40723 has quit [Remote host closed the connection]
jacwodjo has joined #ruby
sevenseacat has joined #ruby
jacwodjo has quit [Remote host closed the connection]
roshanavand has quit [Quit: Konversation terminated!]
colorisco has joined #ruby
roshanavand has joined #ruby
ProteusX has joined #ruby
jacwodjo has joined #ruby
vickleton has quit [Ping timeout: 240 seconds]
lavros has joined #ruby
sepp2k has quit [Quit: Leaving.]
livathinos has quit []
sepp2k has joined #ruby
Guest1421 has joined #ruby
lordkryss has joined #ruby
redjack1964 has joined #ruby
Guest1421 has quit [Ping timeout: 264 seconds]
rbo has quit [Ping timeout: 245 seconds]
tubuliferous_ has joined #ruby
workmad3 has joined #ruby
meph has joined #ruby
bMalum has joined #ruby
tubuliferous_ has quit [Ping timeout: 272 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
workmad3 has quit [Ping timeout: 276 seconds]
Igorshp has quit [Remote host closed the connection]
User458764 has joined #ruby
jph98 has joined #ruby
Spami has joined #ruby
Spami has quit [Client Quit]
Spami has joined #ruby
yqt has joined #ruby
turtil has joined #ruby
startupality has joined #ruby
rahult has joined #ruby
juanpablo_ has joined #ruby
GriffinHeart has quit []
bruno- has joined #ruby
bruno-_ has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
banister has joined #ruby
juanpablo_ has quit [Ping timeout: 250 seconds]
jacwodjo has quit [Ping timeout: 272 seconds]
rahult is now known as rahult_
rahult_ is now known as rahult
roshanavand has quit [Quit: Konversation terminated!]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
centrx has joined #ruby
jottr_ has joined #ruby
astrobunny has quit [Ping timeout: 264 seconds]
millerti has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
Igorshp has quit [Remote host closed the connection]
User458764 has joined #ruby
haxrbyte_ has quit [Ping timeout: 255 seconds]
djellemah_ has quit [Ping timeout: 246 seconds]
hanachin has joined #ruby
lidenskap has quit [Remote host closed the connection]
<atmosx> hell
<centrx> aw hell
jph98 has quit [Quit: jph98]
_blizzy_ has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hanachin_ has joined #ruby
<atmosx> hm
<atmosx> There's is something wrong
<atmosx> but I can't tell what
ixti has quit [Ping timeout: 256 seconds]
<sevenseacat> its lupus.
hanachin has quit [Ping timeout: 240 seconds]
<apeiros> o/ sevenseacat
<sevenseacat> evening
<apeiros> sevenseacat: just fyi, that person from yesterday did not contact me
<sevenseacat> figured as much.
hanachin has joined #ruby
<apeiros> IMO you handled that just fine
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bMalum has quit [Quit: bMalum]
hanachin_ has quit [Ping timeout: 256 seconds]
startupality has quit [Quit: startupality]
<sevenseacat> thanks :)
Leef_ has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
ndrei has quit [Ping timeout: 252 seconds]
railsForDaiz has joined #ruby
idafyaid has joined #ruby
thatslifeson has joined #ruby
idafyaid is now known as Guest23901
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_mak has joined #ruby
<_mak> how to convert this to a readable date: 1430432075 ?
<jhass> what's its .class?
thatslifeson has quit [Ping timeout: 264 seconds]
<jhass> _mak: ^
zotherstupidguy has quit [Ping timeout: 240 seconds]
<_mak> jhass: what do you mean?
hanmac has quit [Remote host closed the connection]
<yxhuvud> mak: Time.at
<jhass> if it's a Fixnum
qwertme has joined #ruby
<jhass> _mak: I want to know if it's a String, a Fixnum, a ...
<atmosx> _mak: give the result of 1430432075.class in your program (string, fixnum, time...)
zotherstupidguy has joined #ruby
<_mak> jhass: ah, it's a string
hanachin_ has joined #ruby
<yxhuvud> atmos: it won't be a time unless there are some monkey patch shenanigans.
<jhass> where do you get it from?
<atmosx> I think he needs a method or a one-liner with some regexp/gsub/split/etc to make sense of it all... Either way I can't read it in any meaningful way.
<jhass> >> Time.at("1430432075".to_i).to_s
<ruboto> jhass # => "2015-04-30 22:14:35 +0000" (https://eval.in/340809)
hanachi__ has joined #ruby
<jhass> there might be a much better way, depending on the answer of my last question
bMalum has joined #ruby
<_mak> jhass: mysql DB
hanachin has quit [Ping timeout: 252 seconds]
<jhass> _mak: common
<jhass> provide some info
relix has joined #ruby
<jhass> what ORM, what datatype in mysql, what's the code you use to fetch it
<_mak> jhass: I found the answer: DateTime.strptime("1430432075",'%s').strftime("%d%m%Y")
<shevy> long live _mak \o/
<_mak> jhass: thanks atmosx thanks!
<atmosx> _mak: :-)
infoget has joined #ruby
<jhass> _mak: that's fine if you want something that works. If you want to know if it's the best possible solution you need to answer my questions
hanachin_ has quit [Ping timeout: 256 seconds]
electriv has joined #ruby
<_mak> jhass: I don't know the answers... All I have is a csv with this number as the column 'upload_date'
hanmac has joined #ruby
<jhass> oh, well, then the earlier answer would be CSV, not MySQL ;)
Jackneill has joined #ruby
<_mak> jhass: but the csv is a dump from the mysql
<_mak> ok sorry then
moeabdol1 has joined #ruby
<jhass> yes, but your program doesn't know that (and doesn't need to)
<jhass> for it, the datasource is CSV
XxionxX has joined #ruby
railsForDaiz has quit [Ping timeout: 240 seconds]
jayeshsolanki has quit [Ping timeout: 265 seconds]
<_mak> yes
<_mak> indeed
shuber_ has quit [Remote host closed the connection]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hanachi__ has quit [Ping timeout: 272 seconds]
sinkensabe has joined #ruby
jayeshsolanki has joined #ruby
zotherstupidguy has quit [Ping timeout: 245 seconds]
zotherstupidguy has joined #ruby
Feyn has quit [Quit: Leaving]
qwertme has joined #ruby
charliesome has quit [Quit: zzz]
jph98 has joined #ruby
jayesh_ has joined #ruby
granthatcher has joined #ruby
SouL_|_ has joined #ruby
moeabdol1 has quit [Ping timeout: 245 seconds]
jayeshsolanki has quit [Ping timeout: 244 seconds]
XxionxX1 has joined #ruby
<al2o3-cr> who the hell do you escape "ruby -e 'puts "hello"'" the hello?
granthatcher has quit [Client Quit]
XxionxX has quit [Ping timeout: 245 seconds]
<jhass> so you have the ruby string "ruby -e 'puts "hello"'" ?
<hanmac> al2o3-cr: \"
<al2o3-cr> jhass: yeah
<al2o3-cr> i want it so its like this "ruby -e 'puts \"hello\"'"
<jhass> >> %(ruby -e 'puts "hello"')
<ruboto> jhass # => "ruby -e 'puts \"hello\"'" (https://eval.in/340840)
nfk has joined #ruby
<jhass> if that's your real example (shelling out to ruby from ruby), there's likely something wrong going on btw ;)
<al2o3-cr> basically it;s coming in from a bot command
bMalum has quit [Quit: bMalum]
<jhass> uh, so you write an eval bot?
<al2o3-cr> no
<al2o3-cr> it's complicated but I think %() will for the moment
<jhass> al2o3-cr: if it's user input please, please consider open3 with a form that takes ARGV directly without going through a shell
gauke has joined #ruby
<al2o3-cr> jhass: thats what im using :)
<al2o3-cr> let me test something and i'll get back one min
<yxhuvud> You can also use shellwords.
mostlybadfly has quit [Quit: Connection closed for inactivity]
<jhass> I'd be curios to see why you would need escaping then
charliesome has joined #ruby
<al2o3-cr> but the command is coming from irc
<al2o3-cr> I need to escape \"hello\" from with the string
banister has joined #ruby
<jhass> so cmd is an array
<jhass> ?
<al2o3-cr> command is a string
<jhass> then you're invoking a shell
<jhass> how is command built?
<al2o3-cr> yep
ghr has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
<al2o3-cr> ":al2o3-cr!~al2o3-cr@unaffiliated/gr33n7007h PRIVMSG #filmsbykris :%sh ruby -e '1 < 2'" like this
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<al2o3-cr> so command will be "ruby -e '1 < 2'"
XxionxX1 has quit [Ping timeout: 256 seconds]
<al2o3-cr> but I need to escape what evers inside either being ' or "
<jhass> so you built a shell eval bot...
chipotle has joined #ruby
<al2o3-cr> jhass: sort of
<jhass> what sort of sandbox do you use?
<al2o3-cr> c9.io
<jhass> no, for running the command
<al2o3-cr> none
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> cool, where's the bot? I'd like to add my public ssh key to your machine
<al2o3-cr> theres only me that can issue the commands
<jhass> by nick?
<al2o3-cr> no
<al2o3-cr> so how to escape ?
<jhass> there's nothing to escape then
<al2o3-cr> i,o,e,t Open3.popen3("ruby -e 'puts "hello"'") that gives syntax error hello needs to be escaped
<jhass> yes
<User458764> Hi, is there a method doing the same thing on an array? a.insert(0,myval), I want to push a value to top of the "stack"
<jhass> but that's not what you're code is doing
sinkensabe has quit [Remote host closed the connection]
<jhass> there's no literal
<al2o3-cr> hey?
<jhass> User458764: .unshift
yqt has quit [Ping timeout: 246 seconds]
<User458764> jhass that's the one I searched
sinkensabe has joined #ruby
<User458764> thanks
<jhass> al2o3-cr: you confuse presentation with value I guess
<al2o3-cr> hmmm...
<jhass> al2o3-cr: try running ruby -e "p gets" on your shell and enter ruby -e 'puts "hello"' and press enter
gauke has quit [Quit: gauke]
<al2o3-cr> ok
<jhass> (or just run gets in irb I guess)
lidenskap has joined #ruby
<al2o3-cr> jhass: yep that works but it's already inside a string if you get what i mean
electriv has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> no, I don't
<al2o3-cr> right one sec
zotherstupidguy has quit [Ping timeout: 240 seconds]
jph98 has quit [Quit: jph98]
<al2o3-cr> ok this is the string i get back "ruby -e 'puts "hello"'"
<jhass> compare puts '"hello"' to puts '"hello"'.inspect
<al2o3-cr> this need to passed to open3 as that string but escaped
zotherstupidguy has joined #ruby
<jhass> "get back"?
sinkensabe has quit [Ping timeout: 265 seconds]
meph has quit [Quit: Leaving.]
<al2o3-cr> "hello" "\"hello\""
iasoon has joined #ruby
<al2o3-cr> so inspect will work right?
<jhass> no
lidenskap has quit [Ping timeout: 240 seconds]
<al2o3-cr> oh ok
<jhass> you're still confusing value with presentation
<al2o3-cr> i might be i'm tired
<hectortrope> hi jhass
<jhass> >> %(").chars.map(&:ord)
<ruboto> jhass # => [34] (https://eval.in/340903)
<jhass> so " is 34, clear?
<al2o3-cr> yep
<jhass> >> %("hello").chars.map(&:ord)
<ruboto> jhass # => [34, 104, 101, 108, 108, 111, 34] (https://eval.in/340907)
<jhass> >> '"hello"'.chars.map(&:ord)
<ruboto> jhass # => [34, 104, 101, 108, 108, 111, 34] (https://eval.in/340908)
<jhass> >> "\"hello\"".chars.map(&:ord)
<ruboto> jhass # => [34, 104, 101, 108, 108, 111, 34] (https://eval.in/340909)
<al2o3-cr> jhass: gotcha
<jhass> 3 presentations, same value
<al2o3-cr> yeah i see now
colorisco has quit [Ping timeout: 246 seconds]
moeabdol has joined #ruby
tubuliferous_ has joined #ruby
sdothum has joined #ruby
<al2o3-cr> sorry jhass being DUMB thank you!
workmad3 has joined #ruby
bMalum has joined #ruby
<jhass> let's hope your authentication is sane
<al2o3-cr> jhass: that is for sure :)
<jhass> what do you use?
<al2o3-cr> channel acess list
<al2o3-cr> access list
<jhass> and authname?
<al2o3-cr> yep
colorisco has joined #ruby
<al2o3-cr> that alright yeah?
<al2o3-cr> or do i need more?
<jhass> that should be okay
<al2o3-cr> jhass: ok thanks jhass :)
<jhass> still running arbitrary code coming in over the network...
<jhass> ymmv
<al2o3-cr> I know sort of pushing my look
<al2o3-cr> luck*
tubuliferous_ has quit [Ping timeout: 272 seconds]
thatslifeson has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
thatslifeson has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
Papierkorb has joined #ruby
qwertme has joined #ruby
<shevy> dumdedum
bruno-__ has joined #ruby
jgt has joined #ruby
<jgt> hey folks
zarubin has quit [Remote host closed the connection]
bruno-_ has quit [Ping timeout: 240 seconds]
<jgt> what would you call this `f5(f4(f3(f2(f1()))))`
<jgt> (aside from bad function names)
bruno- has quit [Ping timeout: 240 seconds]
<jhass> to deeply nested call
<jhass> *too
<jgt> yes yes, comedic answers aside
<toretore> functional programming
<jgt> yes, it’s function composition, but done in a normal OO language
<jgt> is it just nested functions?
<jgt> my first thought was higher-order functions, but I don’t think that’s right
<jhass> the language doesn't dictate the style of programming used, it just usually works better for a particular one
<toretore> what is it you're looking for jgt?
<jgt> jhass: Yes, you’re right, and I agree
iasoon has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
<jhass> so that you're using an OO language doesn't mean it can't be functional programming
<jgt> toretore: A name that describes what I just did in terms native to someone not involved with FP
<jgt> jhass: See previous reply
<toretore> why do you need a name for it? it's just a bunch of fn calls
ghr has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
<jgt> names are needed to describe ideas
<toretore> function composition describes it (whatever "it" is) well
<jgt> I know it does
<toretore> but?
<jgt> but I’m looking for a way to describe it without using typical FP names
<toretore> why?
Papierkorb has quit [Remote host closed the connection]
scripore has joined #ruby
juanpablo_ has joined #ruby
<toretore> "function composition" isn't restricted to fp
<jgt> because that’s normally the easiest way to teach FP ideas to people unfamiliar with the paradigm
cassianoleal has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
<jgt> or, to teach anyone anything for that matter
<toretore> what aspect is it you actually want to get across?
<toretore> lack of side effects?
<jgt> yes
xxneolithicxx has quit [Ping timeout: 255 seconds]
<jgt> I would mostly compare it to unix pipes
iasoon has joined #ruby
shuber_ has joined #ruby
<jgt> or rather, the idea of some value going in one side, and coming out the other
<jgt> of a chain of a bunch of small pure functions
<toretore> just say that
<jgt> fair enough
<jgt> thanks for the discussion :)
Freijo is now known as Fraeon
JDiPierro has joined #ruby
bruno-__ has quit [Ping timeout: 250 seconds]
<toretore> for someone unfamiliar with the concept, it's going to take some thinking to understand the significance anyway
bruno- has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
<toretore> for someone new to programming it should be quite intuitive
juanpablo_ has quit [Ping timeout: 245 seconds]
dorei has joined #ruby
<toretore> side effects are less intuitive
bruno-_ has joined #ruby
Papierkorb has joined #ruby
roshanavand has joined #ruby
phoo1234567 has joined #ruby
rodfersou has joined #ruby
shuber_ has quit [Ping timeout: 256 seconds]
rodfersou has quit [Client Quit]
yqt has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
jottr_ has quit [Ping timeout: 272 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
redjack1964 has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
jottr_ has joined #ruby
lxsameer has quit [Quit: Leaving]
moeabdol has quit [Quit: WeeChat 1.1.1]
n008f4g_ has joined #ruby
rocknrollmarc has quit [Ping timeout: 272 seconds]
jottr_ has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
bruno-_ has quit [Quit: Lost terminal]
bruno- has quit [Quit: Lost terminal]
Rickmasta has joined #ruby
Guest35288 has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
bruno-_ has joined #ruby
Papierkorb has quit [Remote host closed the connection]
Mohan has joined #ruby
Mohan is now known as Guest13665
<_blizzy_> til I can intertwine two arrays with a.zip(b).flatten
<_blizzy_> god I love ruby
Papierkorb has joined #ruby
bruno-__ has joined #ruby
rocknrollmarc has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
bMalum has quit [Quit: bMalum]
scripore has quit [Quit: This computer has gone to sleep]
rocknrollmarc has joined #ruby
TheHodge has joined #ruby
scripore has joined #ruby
<_mak> I have # encoding: utf-8 on my rb file, and I don't know why the ö is being transformed to a crazy long string
AkashicLegend has quit [Ping timeout: 246 seconds]
<jhass> # encoding: utf-8 is only for the literals inside the file
<jhass> you still need to take care to read files in their correct encoding
sinkensabe has joined #ruby
<_mak> jhass: you mean when I do a File.open and File.write?
<jhass> yeah
<jhass> and CSV.foreach and any kind of IO really
<_mak> jhass: and what I should do it to specify uft-8 every time I use any kind of IO?
<jhass> setting Encoding.default_external comes to mind
rocknrollmarc has quit [Ping timeout: 244 seconds]
<_mak> jhass: thanks a lot!
diegoaguilar has joined #ruby
sinkensabe has quit [Ping timeout: 245 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has joined #ruby
relix has joined #ruby
relix has quit [Client Quit]
bMalum has joined #ruby
bMalum has quit [Client Quit]
haxrbyte has joined #ruby
Guest13665 has quit [Ping timeout: 265 seconds]
jayesh_ has quit [Quit: bye!]
jayeshsolanki has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest52096
ghr has quit [Ping timeout: 255 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 252 seconds]
zotherstupidguy has quit [Ping timeout: 256 seconds]
zarubin has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
zotherstupidguy has joined #ruby
sinkensabe has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
aryaching has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
shuber_ has joined #ruby
scripore has joined #ruby
subtwo has joined #ruby
b00b00 has joined #ruby
gregf has quit [Quit: WeeChat 1.1.1]
mengu__ has joined #ruby
snath has quit [Ping timeout: 255 seconds]
Mon_Ouie has joined #ruby
Guest52096 has quit [Ping timeout: 240 seconds]
shuber_ has quit [Ping timeout: 244 seconds]
simpyll has quit [Ping timeout: 272 seconds]
mengu has quit [Ping timeout: 256 seconds]
zarubin has quit [Remote host closed the connection]
Mohan_ has joined #ruby
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
Kricir has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 245 seconds]
dstarh has joined #ruby
AlexRussia has joined #ruby
ayaz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simpyll has joined #ruby
dstarh has quit [Client Quit]
serivich has joined #ruby
zarubin has joined #ruby
juanpablo_ has joined #ruby
Macaveli has joined #ruby
Pupeno has joined #ruby
allcentury has joined #ruby
juanpablo_ has quit [Ping timeout: 240 seconds]
mitt3ns has joined #ruby
agent_white has quit [Ping timeout: 252 seconds]
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mindaslab has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
<mwlang> I’m trying to author a gem and I’m having trouble when loading the gem once built and installed. when I’m in my gem’s folder and I require ‘lib/dinero’ (the gem’s name is dinero), everything’s fine. but when I rake install it, then use irb to: require ‘dinero’ I end up with an indefinite wait for the files to load and it appears to be an infinite recursion issue.
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
diegoaguilar has quit [Quit: Leaving]
mitt3ns has joined #ruby
<jhass> do you get a trace on Ctrl+C?
mitt3ns has quit [Read error: Connection reset by peer]
deuterium has quit [Quit: zzZZZzzz..]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
rodfersou has joined #ruby
<jhass> weird
mitt3ns has joined #ruby
scripore has quit [Quit: Leaving]
<jhass> gems/dinero-0.0.1/lib/dinero.rb:2 what's on line 1?
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
Zai00 has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
mitt3ns has joined #ruby
charliesome has quit [Quit: zzz]
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mengu has joined #ruby
<mwlang> ah, I bet I need to remove two of those requires since I’m calling them development dependencies…probably belongs in the spec helper.
<jhass> mwlang: can you add .gemspec?
babykosh has quit [Quit: babykosh]
<jhass> well yeah, but it shouldn't cause a hang
tubuliferous_ has joined #ruby
<mwlang> jhass: refresh gist. gemspec added.
bruno- has quit [Quit: Lost terminal]
bruno-__ has quit [Quit: Lost terminal]
bruno-_ has quit [Quit: Lost terminal]
nszceta has joined #ruby
mengu__ has quit [Ping timeout: 264 seconds]
_mak has left #ruby [".."]
zotherstupidguy has quit [Ping timeout: 250 seconds]
<jhass> mwlang: try adding to the gemspec: s.require_paths = ["lib"] and removing the first line (modifying $:)
freerobby has joined #ruby
tubuliferous_ has quit [Ping timeout: 255 seconds]
sinkensabe has quit [Remote host closed the connection]
<mwlang> jhass: ok
zotherstupidguy has joined #ruby
thatslifeson has joined #ruby
<mwlang> that broke rake build
<mwlang> recursion now occurring there.
<mwlang> added that stack trace to https://gist.github.com/mwlang/b0c9caac5509e4a8d5df
JDiPierro has quit [Remote host closed the connection]
<jhass> remove the require and replace Dingero::VERSION with a string, for now
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thatslifeson has quit [Ping timeout: 244 seconds]
qwertme has joined #ruby
AlphaAtom has joined #ruby
<mwlang> doing that now. while I was waiting, I got the public repo set up: https://github.com/mwlang/dinero
tus has joined #ruby
<mwlang> weird…the version line now reports: wrong number of arguments (1 for 0) from
<mwlang> and it reads: s.version = "0.0.1"
zotherstupidguy has quit [Ping timeout: 256 seconds]
<jhass> maybe some weird char inserted? try deleting it and writing it again
centrx has quit [Quit: Shutting down, Please wait...]
Porfa has joined #ruby
zotherstupidguy has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
<mwlang> ok, fixed the version thingy…I had a typo (forgot the equal sign). rake build and install now working again, but recursion issue still there.
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
<mwlang> gist updated with latest stack trace
<jhass> you miss the equal sign for require_paths too
mitt3ns has quit [Read error: Connection reset by peer]
Mohan_ has quit [Ping timeout: 256 seconds]
mitt3ns has joined #ruby
ayaz has joined #ruby
<mwlang> yeah, I fixed it on both lines.
mitt3ns has quit [Read error: Connection reset by peer]
ayaz has quit [Client Quit]
msimkins has quit [Ping timeout: 252 seconds]
zack6849 has quit [Ping timeout: 252 seconds]
mitt3ns has joined #ruby
<mwlang> pushed fixes to repo.
<jhass> make sure gem uninstall the old versions
Guest87507 has quit [Ping timeout: 252 seconds]
<mwlang> ah…maybe that’s it.
<mwlang> I just wasn’t changing the version numbers between builds.
Mohan has joined #ruby
Mohan is now known as Guest88507
tvw has joined #ruby
<mwlang> jhass: there’s only one dinero-0.0.1 on my path, so it’s being refreshed with each rake install
<jhass> through trial and error: for some reason s.add_dependency "rails", "~> 4" causes it
mtakkman has joined #ruby
Olipro_ has joined #ruby
Olipro_ is now known as Guest17606
<jhass> and actually it just hangs for a long time, not forever
<jhass> I have no idea why you depend on the entirety of rails btw
<mwlang> jhass: ugh…that shouldn’t be there.
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
<jhass> regarding your load path setup, check the bundler gem template: https://github.com/bundler/bundler/blob/master/lib/bundler/templates/newgem/newgem.gemspec.tt#L2
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
Leef_ has quit [Ping timeout: 264 seconds]
mitt3ns has joined #ruby
<mwlang> jhass: thanks for that…I was wondering if there wasn’t a better way.
<mwlang> I was looking at other gems to try to come up with a good one.
zarubin has quit [Remote host closed the connection]
<b00b00> i have string like this : ""---\nfoo: \"bar\"\nbaz: \n - \"qux\"\n - \"quxx\"\ncorge: null\ngrault: 1\ngarply: true\nwaldo: \"false\"\nfred: \"undefined\"\nemptyArray: []\nemptyObject: {}\nemptyString: \"\"" , how do i convert it so each line be as element in array?
msimkins has joined #ruby
<jhass> looks like yaml
<b00b00> yes, it is
<jhass> parse it
<jhass> require "yaml"; YAML.load
<b00b00> is there a way to do it without using yaml libs or methods?
<jhass> yes, write a yaml parser
lkba has joined #ruby
<jhass> and get a t-shirt saying "I have a strong case of the not invented here syndrome"
<apeiros> b00b00: why on earth would you want to do it without yaml?
zarubin has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
shuber_ has joined #ruby
<mwlang> jhass: replacing my whacky gemspec with the templated one resolved the issues entirely.
quimrstorres has joined #ruby
bluOxigen has joined #ruby
mitt3ns has joined #ruby
<jhass> mwlang: great!
zack6849 has joined #ruby
zack6849 has joined #ruby
astrobunny has joined #ruby
<mwlang> and boom, it’s published. :-)
<b00b00> i am very new with ruby, and one of places i find for a potential job asked me for converting yml to jason without using yml/jason libs, i need very basic knowledge with ruby for some reason, so that is why :), i need to do it and understand what i did, so looking for help with that thing, thanks :)
<apeiros> jason?
<apeiros> you mean json?
<b00b00> yes, sorry
<jhass> then they want you to demonstrate that you're capable of some basic string juggling
<mwlang> b00b00: you’d benefit from just going through a few online beginner courses on codeschool or pluralsight.com.
<jhass> asking us for the solution defeats the point of that question
jottr_ has joined #ruby
mindaslab has quit [Quit: Leaving.]
mindaslab has joined #ruby
nszceta has quit [Quit: Textual IRC Client: www.textualapp.com]
<mwlang> b00b00: read through this guy’s post and think about how you’re approaching learning Ruby: https://medium.com/how-i-learned-ruby-rails/how-i-trained-to-learn-rails-e08c94e2a51e
shuber_ has quit [Ping timeout: 264 seconds]
<mwlang> b00b00: basically, what I see is that you’re in the weeds trying to figure out details without the proper tools in hand.
allcentury has quit [Ping timeout: 240 seconds]
psy_ has quit [Remote host closed the connection]
rgb-one has joined #ruby
Kricir has joined #ruby
<b00b00> thanks, was reading the basics and it helped, that is why i asking some basics how to convert multiline string to array or stuff like this, so i move on from part to part
<jhass> read the docs of String and Regexp
jottr_ has quit [Ping timeout: 256 seconds]
mitt3ns has quit [Read error: Connection reset by peer]
jordanm has quit [Remote host closed the connection]
mitt3ns has joined #ruby
jordanm has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Porfa has quit [Quit: Porfa]
Spami has quit [Quit: This computer has gone to sleep]
Kricir has quit [Ping timeout: 264 seconds]
thumpba has joined #ruby
snath has joined #ruby
thumpba has quit [Remote host closed the connection]
thumpba has joined #ruby
lidenskap has joined #ruby
mindaslab has quit [Quit: Leaving.]
mindaslab has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
ntln has joined #ruby
lidenskap has quit [Ping timeout: 264 seconds]
psyprus has quit [Read error: Connection reset by peer]
mindaslab has quit [Ping timeout: 256 seconds]
The_Phoenix has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
snath has quit [Ping timeout: 240 seconds]
_blizzy_ has joined #ruby
_blizzy_ has quit [Max SendQ exceeded]
psyprus has joined #ruby
_blizzy_ has joined #ruby
aryaching has quit [Ping timeout: 256 seconds]
sinkensabe has joined #ruby
_blizzy_ has quit [Max SendQ exceeded]
_blizzy_ has joined #ruby
infoget has quit [Quit: Leaving.]
mostlybadfly has joined #ruby
workmad3 has joined #ruby
DEA7TH_ has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
roolo has quit [Remote host closed the connection]
ghr has joined #ruby
Guest88507 has quit [Ping timeout: 276 seconds]
Mohan has joined #ruby
Mohan is now known as Guest59445
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
mitt3ns has quit [Read error: Connection reset by peer]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
ndrei has quit [Ping timeout: 256 seconds]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
mitt3ns has joined #ruby
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
ndrei has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
nobitanobi has joined #ruby
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
sinkensabe has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
yqt has quit [Ping timeout: 244 seconds]
rocknrollmarc has joined #ruby
<shevy> dumdedum
rocknrollmarc has quit [Max SendQ exceeded]
Igorshp has joined #ruby
s2013 has joined #ruby
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
sevenseacat has joined #ruby
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
thumpba has quit [Ping timeout: 256 seconds]
Igorshp_ has joined #ruby
simpyll has quit [Ping timeout: 256 seconds]
adkron has joined #ruby
rocknrollmarc has joined #ruby
thumpba has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
Igorshp has quit [Ping timeout: 272 seconds]
rocknrollmarc has joined #ruby
juanpablo_ has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
TheHodge has quit [Quit: Connection closed for inactivity]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
mtakkman has quit [Ping timeout: 250 seconds]
juanpablo_ has quit [Ping timeout: 244 seconds]
jottr_ has joined #ruby
startupality has joined #ruby
aryaching has joined #ruby
FernandoBasso has joined #ruby
Channel6 has joined #ruby
P1RATEZ has joined #ruby
riotjones has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
growlove has joined #ruby
tubuliferous_ has joined #ruby
tonyhb has joined #ruby
riotjones has quit [Ping timeout: 255 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 240 seconds]
tubuliferous_ has quit [Ping timeout: 256 seconds]
Igorshp_ has quit [Remote host closed the connection]
thatslifeson has joined #ruby
gsd has joined #ruby
Perdomo has joined #ruby
gaboesquivel has joined #ruby
s2013 has joined #ruby
thatslifeson has quit [Ping timeout: 240 seconds]
Perdomo has quit [Ping timeout: 265 seconds]
lavros has quit [Ping timeout: 264 seconds]
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
<shevy> hmm
<shevy> >> File.basename("/initrd.img")
<ruboto> shevy # => "initrd.img" (https://eval.in/341392)
<shevy> >> File.dirname("/initrd.img")
<ruboto> shevy # => "/" (https://eval.in/341393)
<shevy> so essentially, a filepath, to some file, constitutes of dirname + basename ?
DexterLB has quit [Read error: Connection reset by peer]
willharrison has joined #ruby
FernandoBasso has quit [Quit: leaving]
<dorei> i think you're right shevy
<dorei> there's also a unix util named "basename" that predates ruby
banister has joined #ruby
<b00b00> need a little clue here, is there away to loop through each element in array and do particular manipulation for that specific line?
<shevy> b00b00 this is a typical example for the method called .map()
ndrei has quit [Ping timeout: 265 seconds]
_blizzy_ has quit [Ping timeout: 256 seconds]
ndrei has joined #ruby
davedev2_ has quit [Ping timeout: 265 seconds]
davedev24_ has joined #ruby
DexterLB has joined #ruby
premera has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
rgb-one has quit [Read error: Connection reset by peer]
tuelz has quit [Quit: WeeChat 1.1.1]
mitt3ns has joined #ruby
longfeet has joined #ruby
gaboesquivel has quit []
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mwlang has quit [Quit: mwlang]
mitt3ns has quit [Read error: Connection reset by peer]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mitt3ns has joined #ruby
Yzguy has joined #ruby
Guest1421 has joined #ruby
endash has joined #ruby
infoget has joined #ruby
yqt has joined #ruby
<shevy> am I still connected guys? you all have become so quiet...
sevenseacat has quit [Quit: Me dun like you no more.]
thumpba has quit [Remote host closed the connection]
<b00b00> shevy: thanks
jayeshsolanki has quit [Quit: bye!]
Sawbones has joined #ruby
A205B064 has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
<IceDragon> shevy: hi
<shevy> hey FireDragon
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
infoget has quit [Quit: Leaving.]
mitt3ns has joined #ruby
mitt3ns has quit [Changing host]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
Yzguy has quit [Quit: I'm sleeping, go away.]
mitt3ns has joined #ruby
mengu has quit []
dc has joined #ruby
blueOxigen has joined #ruby
Sawbones has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 276 seconds]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sawbones has joined #ruby
startupality has quit [Quit: startupality]
sepp2k has quit [Ping timeout: 244 seconds]
Sawbones has quit [Remote host closed the connection]
Kricir has joined #ruby
startupality has joined #ruby
jenrzzz has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
greenbagels has joined #ruby
avahey has joined #ruby
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
claw has quit [Ping timeout: 245 seconds]
mitt3ns has joined #ruby
Kricir has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
EDragon205 has joined #ruby
workmad3 has joined #ruby
<EDragon205> hi
ducklobster has quit [Ping timeout: 256 seconds]
shuber_ has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
slash_nick has joined #ruby
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 244 seconds]
sepp2k has joined #ruby
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
Channel6 has quit [Quit: Leaving]
workmad3 has joined #ruby
Cust0sL1men has quit [Ping timeout: 250 seconds]
adkron has quit [Ping timeout: 265 seconds]
<EDragon205> I'm learning the basics of ruby, and I don't understand class variables and instances very well.
<mozzarella> EDragon205: just ask questions, then
<EDragon205> Can you explain what @ and @@ variables do and what self means when using self.def_name
thatslifeson has joined #ruby
slash_nick has quit [Ping timeout: 246 seconds]
<mozzarella> @variables are instance variables, each instance will have these, and they're not shared across instances
<mozzarella> @@variables are class variables and they are shared across all instances
lidenskap has joined #ruby
<mozzarella> as for the self keyword, it can mean different things at different places in your code
serivich has quit [Quit: Leaving]
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
<mozzarella> if it's in a method, it refers to the current instance of the class, if it's inside the class and outside any method, it refers to the class object
mitt3ns has quit [Read error: Connection reset by peer]
<toretore> EDragon205: for the most part, don't worry about or use class variables
<mozzarella> yeah, I rarely use them
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mindaslab has joined #ruby
mitt3ns has joined #ruby
<EDragon205> ok so @@ is like a global variable, but only in a class, then @ is like a local variable, but only in a class?
mitt3ns has quit [Read error: Connection reset by peer]
<toretore> in an instance
<toretore> for @
mitt3ns has joined #ruby
thatslifeson has quit [Ping timeout: 256 seconds]
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
<EDragon205> im confused
<toretore> @@ = class, @ = instance
lidenskap has quit [Ping timeout: 240 seconds]
<toretore> do you understand the difference between a class and an instance of a class?
Soda has joined #ruby
godcodeguy has joined #ruby
<EDragon205> is an instance of a class a def inside it?
<mozzarella> hope that helps
<EDragon205> ok thanks
<toretore> no, a class is a template from which you make an instance. class Dog; def bark; end; end; instanceOfDog = Dog.new
lfox has joined #ruby
<toretore> you need to understand this before you can understand instance variables
lfox has quit [Max SendQ exceeded]
<EDragon205> Ah, isn't that what calls the class?
Guest1421 has quit [Ping timeout: 256 seconds]
Peetooshock has joined #ruby
Peetooshock has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
Guest1421 has joined #ruby
<shevy> EDragon205 we instantiate a new object from that class
<shevy> EDragon205 you can have @instance_variables reside on the class-level instance, such as: class Foo; @bar = 5; end, or for your given object; class Foo; def initialize; @bar = 5; end; end
lkba has quit [Ping timeout: 256 seconds]
jgt has quit [Ping timeout: 272 seconds]
<EDragon205> i don't understand what you mean
Guest59445 has quit [Ping timeout: 256 seconds]
<b00b00> how can with .map method move on all string elements in arry and do diff manipulations for each line? like if i have element like "---\n" that needs to be changed to "{\n" , or 'parameter:'\n needs to be changed to "parameter:,"\n , is there a way to do it with same loop and to do for each line whats needed or better use .sub! and replace whats needed? i did with .sub! and all fine, but want
<b00b00> to know what is the right way/concept to do such things. thanks
psy has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
arturaz has quit [Ping timeout: 252 seconds]
mitt3ns has joined #ruby
<shevy> EDragon205 you have to understand @instance variables first then
mitt3ns has quit [Read error: Connection reset by peer]
<EDragon205> that's what I, having a hard time doing
Mohan has joined #ruby
<EDragon205> i'm*
<shevy> it is a variable
mitt3ns has joined #ruby
Mohan is now known as Guest34982
mitt3ns has quit [Read error: Connection reset by peer]
<shevy> b00b00 can you give a short example input, and the desired output? your sentence is so long :P
dc has quit [Remote host closed the connection]
mitt3ns has joined #ruby
mindaslab1 has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
gauke has joined #ruby
mitt3ns has joined #ruby
<b00b00> shevy: its just showing how i m poor in ruby :)
<shevy> no
<b00b00> lol
<shevy> that was just difficult to understand
mindaslab has quit [Ping timeout: 256 seconds]
<shevy> >> "---\n".gsub(/---/, '{')
<ruboto> shevy # => "{\n" (https://eval.in/341582)
<shevy> I do not know what is this though:
dseitz has joined #ruby
<shevy> 'parameter:'\n
<shevy> it is not valid ruby
yfeldblum has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
yeticry has joined #ruby
gauke has quit [Quit: gauke]
mitt3ns has quit [Read error: Connection reset by peer]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
godcodeguy has quit [Quit: Textual IRC Client: www.textualapp.com]
mitt3ns has joined #ruby
tubuliferous_ has joined #ruby
godcodeguy has joined #ruby
EDragon205 has quit []
aryaching has quit []
crazysim has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 245 seconds]
mindaslab1 has quit [Ping timeout: 256 seconds]
gaganjyot has joined #ruby
bartkoo has joined #ruby
gaganjyot has quit [Max SendQ exceeded]
mindaslab has joined #ruby
gaganjyot has joined #ruby
tubuliferous_ has quit [Ping timeout: 276 seconds]
startupality has quit [Quit: startupality]
gaganjyot has quit [Max SendQ exceeded]
tectonic has joined #ruby
gsd has quit [Ping timeout: 272 seconds]
ixti has joined #ruby
godcodeguy has quit [Quit: Textual IRC Client: www.textualapp.com]
<b00b00> thanks shevy, what is the meanning of "p begin" , "rescue Exception" , "puts "#{$!} (#{$!.class})"", " $stdout.flush", "raise $!" , thanks about it, if you can point me whats each do or docs about
godcodeguy has joined #ruby
<shevy> b00b00 begin and rescue is to rescue exceptions ok?
startupality has joined #ruby
<shevy> and the $ variables have a special meaning
godcodeguy has quit [Client Quit]
<shevy> $stdout.flush should clear $stdout
<shevy> I think $! is the error code of your program
<b00b00> i see
mitt3ns has quit [Read error: Connection reset by peer]
godcodeguy has joined #ruby
mitt3ns has joined #ruby
<shevy> indeed
<shevy> $! -> error message
<shevy> just looked it up
mitt3ns has quit [Read error: Connection reset by peer]
mindaslab has quit [Ping timeout: 256 seconds]
<b00b00> thanks alot
<shevy> on unix this should be like when you do in a shell script: exit 127 or so yes?
mitt3ns has joined #ruby
<shevy> that has a longer explanation
ndrei has joined #ruby
platzhirsch has joined #ruby
<b00b00> good explanation, thanks
mindaslab has joined #ruby
tonyhb has quit [Quit: peace]
BigRonnieRon has joined #ruby
BigRonnieRon has quit [Max SendQ exceeded]
towski_ has joined #ruby
Kricir has joined #ruby
startupality has quit [Quit: startupality]
BigRonnieRon has joined #ruby
gsd has joined #ruby
gsd has quit [Max SendQ exceeded]
gsd has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
snath has joined #ruby
gsd has quit [Max SendQ exceeded]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
gsd has joined #ruby
_blizzy_ has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
Kricir has quit [Ping timeout: 276 seconds]
mitt3ns has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
infoget has joined #ruby
penzur has joined #ruby
jimms has joined #ruby
startupality has joined #ruby
<penzur> test
tchebb has quit [Quit: ZNC - http://znc.in]
mindaslab has left #ruby [#ruby]
willharrison has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
<shevy> panzer!
mitt3ns has joined #ruby
startupality has quit [Quit: startupality]
snath has quit [Quit: Leaving]
snath has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
longfeet has quit [Ping timeout: 256 seconds]
kirun has joined #ruby
bmurt has joined #ruby
<b00b00> when i write line like this : open('https://goog.e.com', {ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE}) {|u| u.read }; d , what is the meanning of "{|u| u.read }; d" part? format the string to clean raw? thanks
infoget has quit [Quit: Leaving.]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lavros has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
djellemah has joined #ruby
cryptarium has quit [Quit: Leaving]
djellemah has quit [Client Quit]
kies has quit [Ping timeout: 272 seconds]
djellemah has joined #ruby
Guest34982 has quit [Ping timeout: 252 seconds]
banister has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest85213
jgt has joined #ruby
chipotle has quit [Quit: cheerio]
tjohnson has joined #ruby
kenneth has joined #ruby
chinmay_dd has joined #ruby
jimms_ has joined #ruby
apurcell has joined #ruby
nobitanobi has quit [Remote host closed the connection]
jimms has quit [Ping timeout: 264 seconds]
jgt has quit [Ping timeout: 255 seconds]
FernandoBasso has joined #ruby
<hanmac> b00b00: open returns an IO or IO-like object ... if you want the content you need to read from that IO object
<b00b00> i see, its like "cleaning" the needed content?
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
apurcell has quit [Ping timeout: 244 seconds]
mitt3ns has quit [Read error: Connection reset by peer]
lkba has joined #ruby
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mitt3ns has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
mitt3ns has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
mitt3ns has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
windowlicker has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
kies has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
dc has joined #ruby
<shevy> b00b00 you know the {} part?
<shevy> it is a block
startupality has joined #ruby
<shevy> b00b00 read this here, then you should understand what a block is: http://www.reactive.io/tips/2008/12/21/understanding-ruby-blocks-procs-and-lambdas/
<shevy> .read is .read() is a method on that object
iamjarvo has joined #ruby
<shevy> I do not know what the d is
<shevy> you did not show that part of the code either ;)
CustosLimen has quit [Max SendQ exceeded]
CustosLimen has joined #ruby
romero has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
jottr_ has joined #ruby
Limix has joined #ruby
maia has joined #ruby
thatslifeson has joined #ruby
zzing has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
<maia> Hello. Any suggestions on how to extract the most similar part of a string for a given substring(query)? E.g. the query is "dr strangelove", the string is "Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb" and I'd want to return "Dr. Strangelove".
<maia> I'd like to add that the string can contain accents, umlauts, stopwords etc. which the query most likely doesn't.
yqt has quit [Ping timeout: 272 seconds]
<ebonics> maia, the charset thing seems like it's going to be the biggest problem
mitt3ns has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
<ebonics> maia, you might want to let your database do most of the heavy lifting. ie. use LIKE %substr% if you're using SQL for your similarity search
mitt3ns has joined #ruby
adkron has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
lidenskap has joined #ruby
mitt3ns has joined #ruby
<maia> ebonics: I could downcase/unaccent/… the string and then match the query, but I guess I’d then need some object storing the char positions for the original and modified strings
mitt3ns has quit [Read error: Connection reset by peer]
<ebonics> maia, sounds like a pretty good job for redis
mitt3ns has joined #ruby
<maia> ebonics: as for the db, I’ve been in #postgresql before but as I assumed that additional modules like 'unaccent' are not available on heroku, I decided to think about ruby-based solutions
longfeet has joined #ruby
juanpablo_ has joined #ruby
<ebonics> maia, it's a lot less efficient if you have to do a bunch of processing in your backend as opposed to let your db do it
platzhirsch has quit [Ping timeout: 240 seconds]
Kricir has quit [Ping timeout: 272 seconds]
<ebonics> as long as your db is setup efficiently and/or clustered then it's better than tying up resources with ruby
<maia> ebonics: yeah, but unless I find a way to add postgres modules to the default postgres available on heroku, I need another solution. And in fact the use case is really as short as the example.
lidenskap has quit [Remote host closed the connection]
<ebonics> maia, can i ask what your exact usecase is
<ebonics> sounds like postgre is a shitty solution for ecommerce anyway
lidenskap has joined #ruby
apurcell has joined #ruby
<maia> ebonics: my use case is 'un-unaccenting' and 'un-lowercasing' and 'un-stopwordremoval' for a string.
<ebonics> maia, i mean your whole application. you might be able to find a database more suited for it. ie. ecommerce sites usually have better functionality with graph databases
<maia> So with the input 'dr strangelove' and 'Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb' I’d need the method to return the properly capitalized version
juanpablo_ has quit [Ping timeout: 272 seconds]
kurokatze has left #ruby ["WeeChat 1.0.1"]
<maia> ebonics: it’s not related to ecommerce at all. What I do is finding common (substring)phrases from tweets. For this I heavily regex the sources to only keep relevant words. Then I end up with a substring and what to get the source to better display the phrase
mitt3ns has quit [Read error: Connection reset by peer]
<maia> *want
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
<maia> ebonics: and as some people use accents, umlauts etc. on twitter, others don’t, I replace all these features by ascii-versions.
apurcell has quit [Ping timeout: 240 seconds]
<ebonics> maia, you have that functionality already?
<maia> yes.
mitt3ns has joined #ruby
Guest1421 has quit [Ping timeout: 255 seconds]
nobitanobi has joined #ruby
<ebonics> maia, instead of altering your database you could just leave the original un-mangled one in your database and keep a set of aliases in a redis entry
diegoaguilar has joined #ruby
User458764 has joined #ruby
lavros has quit [Ping timeout: 252 seconds]
<maia> ebonics: you’d suggest to have the entire un-mangled tweets in redis?
<ebonics> maia, nah
<maia> because I only care about common phrases
<ebonics> just your keywords
banister has joined #ruby
<ebonics> keep the lowercased, stripped versions in redis with a pointer to the database index for the clean string
Spami has joined #ruby
<maia> it’s not keywords. it’s the largest matching (mangled) substring of a group of tweets
<ebonics> i don't see the distinction
lavros has joined #ruby
<maia> ebonics: hmm. (and thanks for your time by the way). e.g. I have ten tweets about a movie. I clean the strings (lowercase, remove stopwords, unaccent), then look for matching substrings. I end up with e.g. two substrings. Now I’d need to lookup the 'original’ substring.
<ebonics> clean_idx = redis.get("dr strangelove"); clean_str = postgres.get_where("keyword.ID = {#clean_idx}"); # clean_str.text => "Dr. Strangelove"
<maia> ebonics: with your suggestion I’d need to store every possible substring in redis?
<ebonics> maia, yup
mitt3ns has quit [Read error: Connection reset by peer]
<ebonics> or maybe you could think of a more clever solution
<maia> (I’m not familiar with redis yet, I assume it’s just a fancy hash)
avahey has quit [Quit: Connection closed for inactivity]
<ebonics> it's a key/value loopup
<ebonics> lookup*
mitt3ns has joined #ruby
mitt3ns has quit [Changing host]
mitt3ns has joined #ruby
<ebonics> where your value can be basically any data structure
mitt3ns has quit [Read error: Connection reset by peer]
<maia> ebonics: if a tweet has 10 words then I’d need to store 10+9+8+7+6+5+4+3+2+1 substring entries in my key/value lookup
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
CustosLimen has quit [Max SendQ exceeded]
<djellemah> maia: full text search in postgres may help http://www.postgresql.org/docs/9.4/static/textsearch.html
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
<ebonics> maia, that's not that many key/values
<ebonics> and you can run multiple instances of redis
mitt3ns has joined #ruby
<maia> djellemah: I’ve looked into it but have not found a way to 'e.g. unaccent' without installing additional modules (which most likely does not work on heroku)
mitt3ns has quit [Read error: Connection reset by peer]
iamjarvo_ has joined #ruby
<maia> ebonics: oh so you suggest to feed redis just with the e.g. 10 tweets, then wipe the redis db and feed with the next group?
<ebonics> maia, definitely dont wipe the results
mitt3ns has joined #ruby
<jhass> maia: host postgres somewhere decent where you have control and connect to it from heroku if you have to use heroku for the frontend
<ebonics> you can use it next time for faster queries
CustosLimen has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
<maia> ebonics: okay, so I have some 10k tweets per day. When splitting that’s ~100k words. When using bigrams, trigrams etc. I’d end up with a million entries in redis per day.
baweaver has joined #ruby
michaeldeol has joined #ruby
iamjarvo has quit [Ping timeout: 255 seconds]
<ebonics> maia, your words arent ever going to overlap?
<ebonics> there's a finite number of words haha
<maia> ebonics: but not a finite number of combinations.
<ebonics> maia, well yeah there is a finite number of thsoe too
<ebonics> i think i don't understand what you're doing
workmad3 has quit [Ping timeout: 256 seconds]
<ebonics> you probably will need some type of better solution than i'm suggesting
<maia> how frequent was 'A 7.8 Eathquake just hit Nepal west of Kathmandu' until two weeks ago?
<ebonics> maia, why are oyu even saving all permutations of the tweet
<maia> ebonics: I’m trying to extract relevant news from tweets by identifying common phrases.
startupality has quit [Quit: startupality]
<maia> ebonics: I thought you suggested to save all permutations?
snath has quit [Remote host closed the connection]
<ebonics> maia, not if you dont have to obviously
<ebonics> maia, seems like you're trying to avoid lexing
<maia> e.g. with the above string plus ['reports of a 7.8 earthquake', 'epicentrum west of kathmandu', 'massive earthquake'] I’d extract the following phrases: ['earthquake', 'west of kathmandu'].
<maia> And for these phrases I’d search for the 'unmangled' versions, e.g. 'west of Kathmandu'.
<ebonics> maia, so you could just store entries for earthquake and west of kathmandu on redis
mitt3ns has quit [Read error: Connection reset by peer]
<ebonics> and have your unmangled version in your database
mitt3ns has joined #ruby
<ebonics> or just do everything on redis, whatever
<ebonics> depends if you need to add more metrics to the keywords
<maia> ebonics: I think I have to think about your suggestion. Probably it’s what I need, but currently I don’t yet get why I should permanently store data. I thought I could write a method that is input two strings (one processed substring, one source string) and it will return the 'unprocessed' string. no db, nothing.
gsd_ has joined #ruby
<ebonics> maia, even if you accomplished that for one language it wouldn't be adaptive
jgt has joined #ruby
gsd has quit [Read error: Connection reset by peer]
<ebonics> in that case you'd have to hardcode a bunch of rules instead of just a catchall for stripping punctuation and mapping charsets
<maia> ebonics: currently I only care about one language, and there are very easy rules of un-accenting.
_ixti_ has joined #ruby
snath has joined #ruby
<ebonics> maia, how are you going to determine _which_ unmangled version is the best one?
allcentury has joined #ruby
cjim_ has joined #ruby
tubuliferous_ has joined #ruby
ixti has quit [Ping timeout: 276 seconds]
<maia> ebonics: I’m using pg_trgm, sorting by similarity and taking the first item. As I know which group of tweets a phrase will origin, it’s easy to do a similarity search for just these tweets.
<ebonics> maia, okay i see
<ebonics> maia, yeah i'd really consider just caching the unmangled version with a bunch of aliases
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
jgt has quit [Ping timeout: 250 seconds]
swgillespie has joined #ruby
Joufflu has joined #ruby
<ebonics> the only problem i see is that a lot of your keywords are transitive
<maia> so take the first item the similarity search returns, split it, create all permutations, save these in a hash with the mangled version as key and the unmangled as value.
<ebonics> you don't care about that?
mitt3ns has quit [Read error: Connection reset by peer]
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<maia> transitive? (I’m not a native speaker)
mitt3ns has joined #ruby
MasterPiece has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
ohaibbq has joined #ruby
mitt3ns has joined #ruby
<ebonics> graph database would be AMAZING for your usecase
tubuliferous_ has quit [Ping timeout: 250 seconds]
yqt has joined #ruby
iamjarvo has joined #ruby
<maia> I might miss something regarding transitive keywords, but as my phrase search returns the longest frequent substring, I don’t care if there are shorter substrings
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
<maia> (oh yes, graph databases look exciting)
<ebonics> maia, you might consider checking out OQGRAPH for mariadb
<maia> will do so, thanks. although I really hope I can find a 10 liner ruby method first to tackle that problem. :)
colorisco has quit [Quit: colorisco]
<ebonics> gl with that <3
chinmay_dd has quit [Ping timeout: 244 seconds]
diegoaguilar has quit [Quit: Leaving]
BigRonnieRon has quit [Quit: Textual IRC Client: www.textualapp.com]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kt2 has quit [Quit: ...]
JDiPierro has joined #ruby
nettoweb has joined #ruby
<maia> ebonics: thanks! and thanks for your suggestions! :)
apurcell has joined #ruby
<ebonics> maia, np
kt2 has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
startupality has joined #ruby
ascarter has joined #ruby
apurcell has quit [Ping timeout: 256 seconds]
shuber_ has quit [Remote host closed the connection]
happyface has joined #ruby
shuber_ has joined #ruby
praneeth_ has joined #ruby
Sawbones has joined #ruby
<praneeth_> hello
kt2 has quit [Quit: ...]
<praneeth_> when i'm trying to upload image using carrierwave and cloudinary
kt2 has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<praneeth_> i'm getting private method `write_uploader' called for object
icarus has joined #ruby
<praneeth_> can anyone help me out
<jhass> #RubyOnRails folks should have more experience on that
nux443 has joined #ruby
lkba has joined #ruby
laurentide has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
<praneeth_> Okay jhass
startupality has quit [Quit: startupality]
mitt3ns has joined #ruby
Sawbones has quit [Ping timeout: 276 seconds]
Kricir has joined #ruby
infoget has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
snath has left #ruby ["Leaving"]
nahtnam has quit [Quit: Connection closed for inactivity]
startupality has joined #ruby
relix has joined #ruby
allcentury has quit [Ping timeout: 272 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
praneeth_ has quit []
Kricir has quit [Ping timeout: 246 seconds]
infoget has quit [Read error: Connection reset by peer]
infoget has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
startupality has quit [Quit: startupality]
mitt3ns has joined #ruby
growlove has quit [Remote host closed the connection]
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
startupality has joined #ruby
apurcell has joined #ruby
maia has quit [Quit: maia]
mitt3ns has quit [Read error: Connection reset by peer]
startupality has quit [Client Quit]
mitt3ns has joined #ruby
apurcell has quit [Ping timeout: 244 seconds]
Peetooshock has quit [Remote host closed the connection]
growlove has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
bmurt has quit []
mitt3ns has joined #ruby
jottr_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vickleton has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
mitt3ns has quit [Read error: Connection reset by peer]
rgb-one has joined #ruby
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
Guest1421 has joined #ruby
mitt3ns has joined #ruby
allcentury has joined #ruby
startupality has joined #ruby
bartkoo has quit [Quit: bartkoo]
zz_Outlastsheep is now known as Outlastsheep
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vickleton has quit [Quit: Ex-Chat]
nettoweb has joined #ruby
nettoweb has quit [Read error: Connection reset by peer]
rgb-one has quit [Remote host closed the connection]
lordkryss has quit [Quit: Connection closed for inactivity]
icarus_ has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
vickleton has joined #ruby
mitt3ns has joined #ruby
icarus has quit [Ping timeout: 256 seconds]
sinequanon has joined #ruby
chipotle has joined #ruby
roolo has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sinequanon has quit [Ping timeout: 256 seconds]
xxneolithicxx has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kadoppe has quit [Ping timeout: 244 seconds]
Rickmasta has joined #ruby
jgt has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
kadoppe has joined #ruby
mitt3ns has joined #ruby
dc has quit [Remote host closed the connection]
quimrstorres has joined #ruby
ascarter has joined #ruby
ascarter has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apurcell has joined #ruby
relix has joined #ruby
jgt has quit [Ping timeout: 272 seconds]
juanpablo_ has joined #ruby
ascarter has joined #ruby
rawrmonstar has joined #ruby
quimrstorres has quit [Ping timeout: 256 seconds]
lxsameer has joined #ruby
icarus_ has quit [Ping timeout: 252 seconds]
icarus has joined #ruby
apurcell has quit [Ping timeout: 246 seconds]
mitt3ns has quit [Read error: Connection reset by peer]
juanpablo_ has quit [Ping timeout: 276 seconds]
mitt3ns has joined #ruby
icebourg has joined #ruby
kenneth has joined #ruby
dling has joined #ruby
jackjackdripper has joined #ruby
woodruffw has joined #ruby
Kricir has joined #ruby
startupality has quit [Quit: startupality]
mitt3ns has quit [Read error: Connection reset by peer]
iasoon has quit [Ping timeout: 252 seconds]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
DerisiveLogic has joined #ruby
Guest85213 has quit [Ping timeout: 256 seconds]
mitt3ns has joined #ruby
startupality has joined #ruby
Mohan has joined #ruby
Hirzu has quit [Remote host closed the connection]
Mohan is now known as Guest44972
Kricir has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
Hirzu has joined #ruby
banister has joined #ruby
seitensei has joined #ruby
swgillespie has joined #ruby
tenseiten has quit [Ping timeout: 265 seconds]
iamjarvo has joined #ruby
apurcell has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mitt3ns has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
zacts has joined #ruby
segfalt_ has joined #ruby
icarus has quit [Ping timeout: 256 seconds]
apurcell has quit [Ping timeout: 264 seconds]
segfalt has quit [Ping timeout: 276 seconds]
segfalt_ is now known as segfalt
Outlastsheep is now known as zz_Outlastsheep
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
mdw has joined #ruby
tubuliferous_ has joined #ruby
pontiki has joined #ruby
<pontiki> aloha
<pipework> Hidoe
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moeabdol has quit [Read error: Connection reset by peer]
tubuliferous_ has quit [Ping timeout: 255 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
zotherstupidguy has quit [Ping timeout: 264 seconds]
gsd_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zotherstupidguy has joined #ruby
lidenskap has quit [Remote host closed the connection]
Guest44972 has quit [Ping timeout: 240 seconds]
mitt3ns has quit [Read error: Connection reset by peer]
mitt3ns has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest62234
P1RATEZ has quit []
allcentury has quit [Ping timeout: 256 seconds]
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
lidenskap has joined #ruby
shuber_ has quit [Remote host closed the connection]
kenneth has joined #ruby
moeabdol1 has joined #ruby
BlaXpirit has joined #ruby
moeabdol has quit [Ping timeout: 244 seconds]
<BlaXpirit> what is a better way to write for x in f(); yield x; end
<Nilium> Need context.
Jackneill has quit [Ping timeout: 246 seconds]
<BlaXpirit> Nilium, I want to delegate to a function that yields in another function that yields
<BlaXpirit> (sorry, don't know what such "functions" are actually called)
<waxjar> BlaXpirit: f.each(&block_you_captured) ?
<BlaXpirit> hmm thanks
<shevy> hey pontikers
kt2 has quit [Quit: ...]
<atmosx> hello
jgt has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
falsetto has joined #ruby
mitt3ns has quit [Read error: Connection reset by peer]
<shevy> hello atmosxers
mitt3ns has joined #ruby
falsetto has left #ruby [#ruby]
<atmosx> shevy: how's life? :-)
WillAmes has quit [Ping timeout: 265 seconds]
<shevy> right now I am fiddling with gem dependencies
<shevy> x = Gem::Commands::DependencyCommand.new.gem_dependency('cookbooks', nil, nil)
<shevy> that's sort of the way to obtain the dependencies
<shevy> kinda crazy long
shuber_ has joined #ruby
<shevy> this works for my local dependencies
endash has quit [Quit: endash]
jgt has quit [Ping timeout: 272 seconds]
icebourg has quit []
Danishman has joined #ruby
dc has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
<atmosx> ah sounds cool, never did that
allcentury has joined #ruby
freerobby has quit [Quit: Leaving.]
dc has quit [Remote host closed the connection]
moeabdol1 has quit [Quit: WeeChat 1.1.1]
jottr_ has quit [Ping timeout: 246 seconds]
godcodeguy is now known as goodcodeguy
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raniere has joined #ruby
mitt3ns has quit [Ping timeout: 244 seconds]
raniere has left #ruby ["WeeChat 1.1.1"]
badhatter has quit [Quit: Leaving]
b0t00 has joined #ruby
shredding has joined #ruby
<shevy> hehe
<shevy> I needed to have that because I had to bundle a project into a single .gem
badhatter has joined #ruby
banister has joined #ruby
<atmosx> hm guard + minitest + spring + guard-rails +guard-minitest is kick-ass.
<atmosx> + growl
<pipework> I'm not a fan of spring myself, but if you're doing rails and want the whole environment, I guess.
scripore has joined #ruby
tchebb has joined #ruby
<atmosx> pipework: what do you use?
<pipework> atmosx: I don't, actually. Unless it's jruby, then I have some fun drip stuff.
decoponio has quit [Quit: Leaving...]
<atmosx> pipework: autotest is *very* slow. It's unbearable
Kricir has joined #ruby
<pipework> I just try not to load the whole rails environment.
<atmosx> I see
<pipework> Once you get the hang of it, it's pretty easy and nice.
<atmosx> I forgot to mention mini-reporters
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework> But I deviate a lot from rails developers.
<atmosx> minitest-reporters for the win \o/
apurcell has joined #ruby
CloCkWeRX has joined #ruby
baweaver has quit [Remote host closed the connection]
willharrison has joined #ruby
x1337807x has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
saintcajetan has joined #ruby
apurcell has quit [Ping timeout: 246 seconds]
jottr_ has joined #ruby
iasoon has joined #ruby
dc has joined #ruby
Limix has quit [Quit: Limix]
dc has quit [Remote host closed the connection]
shuber_ has quit [Remote host closed the connection]
noname1 has joined #ruby
JDiPierro has joined #ruby
lidenskap has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
ghr has joined #ruby
nfk has quit [Quit: yawn]
shuber_ has joined #ruby
lidenskap has joined #ruby
nobitanobi has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
ghr has quit [Ping timeout: 255 seconds]
scripore has quit [Quit: This computer has gone to sleep]
Guest1421 has quit [Ping timeout: 240 seconds]
platzhirsch has joined #ruby
lidenskap has quit [Remote host closed the connection]
scripore has joined #ruby
dc has joined #ruby
segfalt has quit [Quit: segfalt]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shredding has quit [Ping timeout: 255 seconds]
scripore has quit [Client Quit]
chipotle has joined #ruby
lidenskap has joined #ruby
texasmynsted has joined #ruby
apurcell has joined #ruby
<texasmynsted> installed rbenv and if I rbenv init -
icebourg has joined #ruby
<texasmynsted> then it has a call to source "/opt/local/bin/../completions/rbenv.bash"
<texasmynsted> That file does not exist.
monod has joined #ruby
<texasmynsted> any ideas?
<texasmynsted> I see it in the git repo…. so nm
Hobogrammer has quit [Ping timeout: 256 seconds]
<pipework> texasmynsted: I just use chruby and ruby-install and they work.
zacts has quit [Ping timeout: 246 seconds]
<pipework> No silly rehashing or init calls, just source the functions file in your shell config and you're good to go.
<texasmynsted> are those alternatives to rbenv?
apurcell has quit [Ping timeout: 256 seconds]
almost_android has joined #ruby
almost_android has left #ruby [#ruby]
<texasmynsted> oh chruby looks like a rbenv alternative.
<texasmynsted> I just want something that works
<texasmynsted> if chruby is better than rbenv then great
<pipework> chruby and ruby-install
<pipework> The 'and' being rather important.
duncannz has joined #ruby
<texasmynsted> heh
gregf has joined #ruby
sinequanon has joined #ruby
juanpablo_ has joined #ruby
<texasmynsted> bummer, no macport for it.
fivetwentysix has quit [Quit: leaving]
djbkd has quit [Ping timeout: 250 seconds]
scripore has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<pipework> texasmynsted: homebrew
<texasmynsted> yeah, I have moved away from homebrew
<texasmynsted> No intention of going back
<weaksauce> ruby-install is manual only
<pipework> Well, installation of chruby and ruby-install is rather simple.
<pipework> weaksauce: wrong
<pipework> There's packages for it.
HoloIRCUser has joined #ruby
sinequanon has quit [Ping timeout: 264 seconds]
juanpablo_ has quit [Ping timeout: 264 seconds]
<pipework> And homebrew has a recipe.
<texasmynsted> looks like I could install from the git repo
<pipework> texasmynsted: yup.
<texasmynsted> Would you say chruby or rbenv is simpler?
<weaksauce> I searched for it yesterday pipework
<weaksauce> I didn't find it.
<pipework> weaksauce: I installed it yesterday.
<weaksauce> great
<pipework> pipework$ brew search ruby-install
<pipework> ruby-install
zotherstupidguy has quit [Ping timeout: 250 seconds]
Guest70592 has joined #ruby
<pipework> texasmynsted: chruby and ruby-install are simpler, smaller, and don't have an author that spreads FUD.
_blizzy_ has quit [Ping timeout: 256 seconds]
Guest70592 has quit [Client Quit]
<texasmynsted> heh
<texasmynsted> sounds like a winner to me
zotherstupidguy has joined #ruby
* texasmynsted intalling chruby and ruby-install
nimstr has quit [Ping timeout: 265 seconds]
MXfive has quit [Max SendQ exceeded]
<pipework> postmodern is not only on IRC, he's a really nice person.
<texasmynsted> thank you both
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MXfive has joined #ruby
MyMind has quit [Ping timeout: 250 seconds]
<pipework> texasmynsted: The only bit worth knowing is that you might want to grab a new shell or modify $RUBIES yourself after using ruby-install.
<texasmynsted> is there a problem with installing on mac os x from the git repos?
<pipework> texasmynsted: Shouldn't e.
<pipework> be*
Pisuke has joined #ruby
<texasmynsted> modify rubies?
<pipework> If you don't know what that means, just open a new shell after using ruby-install to install a ruby.
<pipework> Then you can use chruby in that new shell to switch to it
apurcell has joined #ruby
b0t00 has quit [Ping timeout: 276 seconds]
<texasmynsted> ok. Is that persistant?
<texasmynsted> or do I need to open a new shell each time I want a particular version of ruby?
<pipework> $RUBIES is set properly with each new shell.
<pipework> Just when you install a ruby.
endash has joined #ruby
<pipework> [14:51:47] <pipework>texasmynsted: The only bit worth knowing is that you might want to grab a new shell or modify $RUBIES yourself after using ruby-install.
<pipework> ruby-install is for, you guessed it, installing rubies.
<texasmynsted> ok
blueOxigen has quit [Ping timeout: 240 seconds]
hmsimha has joined #ruby
workmad3 has joined #ruby
apurcell has quit [Ping timeout: 256 seconds]
<texasmynsted> can I type something to see it is workign?
<pipework> Try using it.
davidhq has joined #ruby
<texasmynsted> chruby does nothing… I think I need to install some rubyies
<pipework> Did you open a new shell after using ruby-install?
<pipework> Did you also set up chruby like it says in the readme?
badhatter has quit [Read error: Connection reset by peer]
<texasmynsted> oops, did not open a new shell.
<texasmynsted> just now typed ruby-install ruby
<texasmynsted> hope that was not bad
bartkoo has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
badhatter has joined #ruby
<texasmynsted> from new shell get "$ chruby
<texasmynsted> -bash: chruby: command not found"
<pipework> Did you follow the chruby installation instructions in the README?
Kricir has joined #ruby
<texasmynsted> I did
JDiPierro has quit [Remote host closed the connection]
<texasmynsted> have to try this later.
<texasmynsted> sudo ./scripts/setup.sh errored out, think I fixed
HoloIRCUser has quit [Ping timeout: 240 seconds]
startupality has quit [Quit: startupality]
TinkerTyper has quit [Ping timeout: 276 seconds]
Kricir has quit [Ping timeout: 252 seconds]
CamonZ has joined #ruby
TinkerTyper has joined #ruby
duncannz has quit [Ping timeout: 265 seconds]
dc has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
apurcell has joined #ruby
startupality has joined #ruby
rgb-one has joined #ruby
djellemah has quit [Ping timeout: 244 seconds]
sepp2k has quit [Quit: Leaving.]
tvw has quit [Remote host closed the connection]
pl1ght has quit [Ping timeout: 264 seconds]
icebourg has quit []
nobitanobi has joined #ruby
tubuliferous_ has quit [Ping timeout: 252 seconds]
apurcell has quit [Ping timeout: 255 seconds]
towski_ has quit [Remote host closed the connection]
havenwood has joined #ruby
lidenskap has quit [Remote host closed the connection]
P1RATEZ has joined #ruby
MasterPiece has quit [Remote host closed the connection]
jgt has joined #ruby
jbomo has joined #ruby
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
allcentury has quit [Ping timeout: 240 seconds]
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
Danishman has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jgt has quit [Ping timeout: 244 seconds]
chipotle has quit [Quit: cheerio]
CustosLimen has quit [Ping timeout: 256 seconds]
allcentury has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CustosLimen has joined #ruby
claw has joined #ruby
shuber_ has quit [Remote host closed the connection]
JDiPierro has joined #ruby
nobitanobi has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
b00b00 has quit []
redjack1964 has joined #ruby
roolo_ has joined #ruby
workmad3 has joined #ruby
roolo has quit [Ping timeout: 256 seconds]
x1337807x has joined #ruby
apurcell has joined #ruby
x1337807x has quit [Max SendQ exceeded]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
platzhirsch has left #ruby [#ruby]
x1337807x has joined #ruby
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
Guest1421 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackjackdripper has joined #ruby
tectonic has quit []
sinkensabe has joined #ruby
jackjackdripper1 has quit [Read error: Connection reset by peer]
scripore has joined #ruby
Hobogrammer has joined #ruby
jenrzzz has joined #ruby
Guest1421 has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
Xaitec has joined #ruby
Xaitec has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
roolo_ has quit [Remote host closed the connection]
roolo has joined #ruby
jbelmont has joined #ruby
roolo has quit [Remote host closed the connection]
shuber_ has joined #ruby
jack_rabbit has joined #ruby
MXfive has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LJT has joined #ruby
Sawbones has joined #ruby
badhatter has quit [Quit: Leaving]
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
baweaver has joined #ruby
LJT has quit [Max SendQ exceeded]
monod has quit [Quit: Cya guys!!]
LJT has joined #ruby
IrishGringo has joined #ruby
startupality has joined #ruby
Kricir has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
jack_rabbit has quit [Ping timeout: 240 seconds]
Sawbones has quit [Remote host closed the connection]
Sawbones has joined #ruby
jbelmont has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
_blizzy_ has joined #ruby
Kricir has quit [Ping timeout: 256 seconds]
startupality has quit [Quit: startupality]
ta has quit [Remote host closed the connection]
ta has joined #ruby
vikaton has quit []
dc has joined #ruby
kirun has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 250 seconds]
Sawbones has quit [Remote host closed the connection]
qwertme has joined #ruby
sinkensabe has quit [Remote host closed the connection]
_blizzy_ has quit [Ping timeout: 265 seconds]
segfalt has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
infoget has quit [Quit: Leaving.]
workmad3 has quit [Ping timeout: 252 seconds]
juanpablo_ has joined #ruby
dc has quit [Remote host closed the connection]
juanpablo_ has quit [Ping timeout: 256 seconds]
_blizzy_ has joined #ruby
zarubin has quit [Remote host closed the connection]
MissionCritical has quit [Ping timeout: 264 seconds]
Zai00 has quit [Quit: Zai00]
jenrzzz has quit [Ping timeout: 256 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
willharrison has joined #ruby
zarubin has joined #ruby
Filete has joined #ruby
shuber_ has quit [Remote host closed the connection]
shuber_ has joined #ruby
tectonic has joined #ruby
LJT has quit [Quit: Sleeping...]
JDiPierro has quit [Remote host closed the connection]
segfalt has quit [Quit: segfalt]
vikaton has joined #ruby
tectonic has quit [Client Quit]
lidenskap has joined #ruby
jottr has joined #ruby
jottr_ has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LJT has joined #ruby
P1RATEZ has quit []
MissionCritical has joined #ruby
jottr has quit [Client Quit]
CloCkWeRX has quit [Quit: Leaving.]
jimms_ has quit [Remote host closed the connection]
phoo1234567 has quit [Quit: Leaving]
LJT has quit [Quit: Sleeping...]
ascarter has joined #ruby
LJT has joined #ruby
dc has joined #ruby
windowlicker has quit [Quit: Leaving]
zenspider has joined #ruby
dc has quit [Remote host closed the connection]
BlaXpirit has quit [Quit: Quit Konversation]
<rgb-one> any AsciiDoctor users here?
hololeap has joined #ruby
<zenspider> what's that?
bartkoo has quit [Quit: bartkoo]
greenbagels has quit [Read error: Connection reset by peer]
jackjackdripper has quit [Quit: Leaving.]
<rgb-one> A text processor http://asciidoctor.org/
Rickmasta has joined #ruby
jack_rabbit has joined #ruby
<hololeap> does anybody have an idea why Regexp#=== _doesnt_ call .to_s on its argument? it would make things like Pathname.new('/whatever').grep(/\.mp3$/i) possible and i don't see when a Regexp would apply to anything but a string
CaffeineShot has joined #ruby
Soda has quit [Remote host closed the connection]
<IceDragon> hololeap, its actually the other way around