<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]
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
<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.
<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>
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
<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.
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]
<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
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]
<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>
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]
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
<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]
<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?
<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 :)
<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 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]
<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.
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
<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…]
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. :)
<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]
<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