<mozzarella>
Oog: begin *block* end until *condition*
<Oog>
i read that was not recommended
<mozzarella>
why not
<mozzarella>
and why do you need it
mistermocha has quit [Ping timeout: 250 seconds]
<elomatreb>
Loops with the condition at the bottom may make your program difficult to read, but if you're careful about that you are free to use them
mynick has joined #ruby
antgel has joined #ruby
cajone has joined #ruby
<Oog>
cool thanks
CloCkWeRX has joined #ruby
mynick has quit [Client Quit]
mynick has joined #ruby
mikecmpbll has joined #ruby
mynick has quit [Client Quit]
n1x-nz has quit [Quit: Leaving]
pawnbox has joined #ruby
antgel has quit [Ping timeout: 246 seconds]
johnDoe111 has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
mynick has joined #ruby
mynick has quit [Client Quit]
PaulCapestany has joined #ruby
antgel has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
lukec has quit [Quit: lukec]
mynick has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
tildes has quit [Ping timeout: 276 seconds]
PaulCape_ has quit [Ping timeout: 250 seconds]
Es0teric has joined #ruby
zyzioziom has quit [Ping timeout: 276 seconds]
johnDoe111 has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
mynick has quit [Client Quit]
mynick has joined #ruby
mynick has quit [Client Quit]
mynick has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
mynick has quit [Client Quit]
johnDoe111 has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nawn has joined #ruby
hutch34 has joined #ruby
mynick has joined #ruby
nawn has left #ruby [#ruby]
adgtl has quit [Remote host closed the connection]
mdw has joined #ruby
nawn has joined #ruby
blackgoat has joined #ruby
blackmesa has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
nawn has quit [Remote host closed the connection]
nadir has quit [Quit: Connection closed for inactivity]
glcx has joined #ruby
glcx has joined #ruby
mynick has quit [Quit: leaving]
_joes____ has joined #ruby
_joes____ has quit [Client Quit]
joes has joined #ruby
flughafen_ has quit [Ping timeout: 252 seconds]
nankyokusei has joined #ruby
d0lph1n98 has quit [Ping timeout: 244 seconds]
ohcibi has quit [Ping timeout: 260 seconds]
eL_bamba has joined #ruby
PaulCape_ has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
zeroDi has quit [Ping timeout: 252 seconds]
Devalo has quit [Remote host closed the connection]
PaulCapestany has quit [Ping timeout: 252 seconds]
mdw has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
djbkd has quit [Remote host closed the connection]
<kareeoleez>
I am experimenting with threading and I am creating a permutation processor http://pastie.org/private/dn6y6mboxwlhzothilofg. Can someone tell me If using threads makes sense (first of all) and what can I do to increase overall performance? Memory concumption is no more than 45MB but CPU Usage is 100%
nofxx has quit [Ping timeout: 260 seconds]
nofxx has joined #ruby
kirillow has joined #ruby
workmad3 has joined #ruby
johnDoe111 has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
<apeiros>
seems to me like you miscounted your dots…
PaulCapestany has quit [Ping timeout: 260 seconds]
<ruurd>
apeiros also if you use it between // ???
kareeoleez has joined #ruby
|ifei5good has joined #ruby
<kareeoleez>
jhass: += works fine
<jhass>
not my question ;)
<jhass>
ruurd: yes
biberu has joined #ruby
<ruurd>
jhass hmmm. intriguing!
<apeiros>
ruurd: of course. .{12} is a replacement for 12 dots. so you have to insert them where you'd put the 12 dots.
<jhass>
ruurd: btw the recommendation is still to not use regex for this
zeroDi has joined #ruby
|ifei5g00d has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
<kareeoleez>
jhass: I want to calculate permutations as much efficient as I can
neanderslob has quit [Ping timeout: 260 seconds]
<jhass>
kareeoleez: you're calculating them outside any threads
<kareeoleez>
jhass: I tried without .lazy first and 7.5 out of 8GB RAM were gone.
<kareeoleez>
jhass: so by using .lazy it fell down to 45MB which is awesome
<jhass>
and MRI doesn't run anything not blocking on IO concurrently
<ruurd>
jhass is mindlessly iterating over lines and determining word size any better?
* apeiros
wonders about the point of putting "mindlessly" into that phrase
<ruurd>
Mind you it's just horsing around what I'm doing. Like hey this is interesting let's see what I can do?
<jhass>
ruurd: the regex engine doesn't do anything else
<kareeoleez>
jhass: I am slicing 14,400,000 iterations to 1000 slices and iterate over each one
<apeiros>
ruurd: is it less mindless to use a regex to iterate over lines and determine word size?
<ruurd>
Because it is the obvious solution to determining word size in a list of words...
<kareeoleez>
jhass: the purpose is to process them further e.g. write them to a file
<jhass>
ruurd: no, not at all what I would first think of
<ruurd>
Not in this case :-) as I was mindlessly ^&* around with them :-)
<apeiros>
"obvious"
<jhass>
kareeoleez: all to the same file?
neanderslob has joined #ruby
<apeiros>
nono, the obvious solution obviously would be to sort the list by size, then use a linear search for the boundaries of length 16, and then select the indices between the boundaries individually
<ruurd>
apeiros ha ha ha
<jhass>
apeiros: sounds slow :P
<kareeoleez>
jhass: it doesn't matter for now
<apeiros>
jhass: but it's obvious!!!
<ruurd>
and mindless :-)
sdothum has joined #ruby
<apeiros>
depending on the use case an unstupidified version of that would be what I'd use
<ruurd>
I mean - everybody does it that way since Edsger Dijkstra right?
<kareeoleez>
jhass: I want to iterate each one
<apeiros>
mostly the sorting by size part. f.ex. if you repeatedly need the subset of differently sized words
<jhass>
kareeoleez: it does, you're doing it the wrong way around otherwise. It's "I have to do X, threads look like a good way to gain some speed", not "Let's use threads, no matter what for, they make everything faster & better"
<jhass>
because the latter is absolutely not true
<kareeoleez>
jhass: you're saying that it doesn't make sense ? that there's a chance I might not need threads ?
<jhass>
sure
<ruurd>
as in using more processors to crank through a problem isn't going to solve your IO bottlenect - au contraire :)
<kareeoleez>
jhass: I also thought about forking processes. If one consumes 50MB, I can dedicate 500MB to run 10 processes concurrently
<ruurd>
ct>ck
<kareeoleez>
ruurd: can you explain this
<jhass>
kareeoleez: same issue, replace "thread" with "concurrency" in my above statement
<jhass>
ruurd: sadly in MRI it will more likely solve your IO bottle neck than your CPU bottleneck
stannard has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
<ruurd>
kareeoleez use hadoop?
<ruurd>
or equivalent?
chipotle has joined #ruby
<apeiros>
is this still that permutations problem?
<jhass>
yes
<apeiros>
and the desired result is the number of permutations, or are the generated words all needed?
<jhass>
unclear
<apeiros>
shake the 8ball again!
workmad3 has quit [Ping timeout: 240 seconds]
<kareeoleez>
heh
<kareeoleez>
apeiros: all the generated words
mtkd has joined #ruby
<apeiros>
given the amount of time you spend to optimize, consider dropping to native C or java.
<kareeoleez>
apeiros: just to make it clear, I am just experimenting with various ruby features
<kareeoleez>
apeiros: this is not an option for now, I want to learn Ruby first
<apeiros>
hm. use fork then, I guess
stannard has quit [Ping timeout: 240 seconds]
neanderslob has quit [Remote host closed the connection]
<apeiros>
or use jruby (still native ruby, but real concurrency)
<apeiros>
latter is probably a ton easier
<kareeoleez>
apeiros: do you have any idea why my case doesn't work ?
<apeiros>
no. I stopped looking at that code.
<apeiros>
I only have a general idea about what you're trying to do.
<kareeoleez>
apeiros: should I bother you or not ?
<kareeoleez>
with details
<apeiros>
you shouldn't. I don't find it an interesting problem. sorry :)
DaniG2k has quit [Quit: leaving]
<kareeoleez>
no problem, thanks
craigp has quit [Ping timeout: 240 seconds]
aswen has quit [Ping timeout: 276 seconds]
duncannz has quit [Remote host closed the connection]
<kareeoleez>
jhass: isn't it moving from threads to processes making it an o/s problem and not a ruby-level one ?
neanderslob has joined #ruby
<jhass>
no
blaxter has joined #ruby
eL_bamba has quit [Remote host closed the connection]
GBrawl has quit [Quit: (null)]
zyzioziom has joined #ruby
tomphp has joined #ruby
d0lph1n98 has joined #ruby
aswen has joined #ruby
<kareeoleez>
jhass: celluloid ? any use ?
<jhass>
you're still way too vague on your exact problem domain as that I could make any recommendations
<jhass>
celluloid is providing the actor model, so another form of concurrency, my above statement still holds true
<apeiros>
celluloid helps if you want to do concurrency at scale (wrt complexity), it'll be slower than custom cooked concurrency.
<jhass>
both are providing the actor model, so another form of concurrency, my above statement still holds true
<jhass>
we can play this all day, I just have to copy paste
<kareeoleez>
jhass: I could create 4 vm's and distribute the processing
<jhass>
er
<jhass>
both are providing another form of concurrency, my above statement still holds true
<jhass>
VMs won't magically stuff faster, on contrary
<jhass>
*magically make, what's up with me today -.-
<kareeoleez>
jhass: what is unclear to you ?
<kareeoleez>
jhass: so I may provide more information
<kareeoleez>
except If you don't want me to, that's fine I understand
<jhass>
pretty much everything
<kareeoleez>
jhass: so you have the whole alphabet (up/down cases) plus numbers and you want to find out all permutations
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
<jhass>
I'll use the-stinger or alike
tomphp has quit [Client Quit]
<jhass>
or whatever it was called
shinnya has quit [Ping timeout: 276 seconds]
<apeiros>
haven't heard of that - what's that?
<manveru>
bougyman: what's up?
<kareeoleez>
there's also cewl which does that
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shinnya has joined #ruby
<bougyman>
manveru: had a question about Innate::Optioned
<jhass>
I guess I was thinking of john-the-ripper actually
<kareeoleez>
jhass: so I want to implement an algorithm in order to calculate them as fast as possible, with the lowest memory consumption and CPU Usage (I understand this might not be possible)
<jhass>
time to learn x86_64 assembly then
<kareeoleez>
jhass: with Ruby
<kareeoleez>
and only Ruby for now
<bougyman>
say I have "o 'Some User Type', :some_user; o 'user', :user, MyMod.options.some_user"
<jhass>
see, that's why people get uninterested to help you
<bougyman>
inside the same block, they can't be dependent like that, right?
<jhass>
you start with general broad descriptions and then on each suggestion you come up with another previously unmentioned constraint
<jhass>
till the point you no longer yourself know exactly what you want
<bougyman>
that's options.dsl do |o|, btw
<kareeoleez>
jhass: I got the same replies some days ago when I was getting 95% memory usage and a person suggested using enumerator and .lazy
<apeiros>
kareeoleez: there isn't much to change about the algorithm
<apeiros>
the only thing you can change is the implementation
<kareeoleez>
so simply as that the memory consumption fell to 45MB
<kareeoleez>
jhass: that's all
<kareeoleez>
jhass: I am not hiding something
<apeiros>
and in pure theory, this problem isn't having a memory-vs-cpu tradeoff. only aspects of how ruby works introduces that (namely how well you can use native methods)
<kareeoleez>
jhass: it may sound silly to you but I want to be able to create a webpage with ajax and view real time the processing statistics
<manveru>
bougyman: in theory it should work
<jhass>
see, all of the sudden a whole new problem domain added
<apeiros>
there's a fixed lower bound of memory you need (sum of all resulting strings) and a fixed lower bound of CPU you need (number of iterations to enumerate all permutations). and in theory you can reach those. in practice, when staying in pure ruby, it's a problem of matching your problem to native methods.
<jhass>
good luck, I'm out
<bougyman>
manveru: would order matter?
<manveru>
but won't be updated when you set the first Upton
<manveru>
*option
<manveru>
sure
<kareeoleez>
jhass: why ?
<bougyman>
that's what I was thinking.
kgrz has joined #ruby
<manveru>
it's immediate... no lazy eval there
blackgoat has joined #ruby
kirun has joined #ruby
banister has joined #ruby
aswen has quit [Ping timeout: 276 seconds]
zyzioziom1 has joined #ruby
zyzioziom has quit [Ping timeout: 252 seconds]
zyzioziom1 is now known as zyzioziom
kareeoleez is now known as GorillaApe
GorillaApe is now known as kareeoleez
jgt has joined #ruby
jaguarmagenta has joined #ruby
kirillow has joined #ruby
nclbr has joined #ruby
adgtl has joined #ruby
hutch34 has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PaulCapestany has joined #ruby
nclbr has quit [Client Quit]
<kirillow>
is there a concise way to distribute the contents of a hash among several variables like this: a, b = distribute(hash_with_two_key_value_pairs)
<dsferreira>
hash.to_a
<jhass>
can even (key1, value1), (key2, value2) = hash.to_a
<kirillow>
!
<jhass>
or value1, value2 = hash.values
PaulCape_ has quit [Ping timeout: 260 seconds]
jaguarmagenta has quit [Ping timeout: 276 seconds]
stardiviner has quit [Ping timeout: 240 seconds]
Biopandemic has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
<apeiros>
kirillow: what are you trying to achieve?
<apeiros>
what's the purpose?
zyzioziom has quit [Ping timeout: 244 seconds]
bkxd has joined #ruby
y2mq37 has joined #ruby
minimalism has quit [Quit: minimalism]
rippa has joined #ruby
aries_liuxueyang has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
craigp has joined #ruby
aries_liuxueyang has joined #ruby
davedev24 has joined #ruby
zenguy_pc has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
zenguy_pc has joined #ruby
<dsferreira>
apeiros, is there an official gitter chat room for ruby? I'm not finding anything. Should we create one?
<dsferreira>
mruby has one already.
moeabdol has quit [Ping timeout: 260 seconds]
<dsferreira>
jruby also has one
<shevy>
stay here!
<shevy>
IRC for the win!!!
<jhass>
yeah, what's up with the strong desire to fragment communities to proprietary platforms these days....
<shevy>
it took jhass years to unify #ruby and #ruby-lang
<jhass>
a couple of months actually
<shevy>
gone are the days of newcomers asking "hey, why are there two ruby channels?"
<dsferreira>
I agree with you
<dsferreira>
The problem is that currently is like fighting the world
gizmore has quit [Ping timeout: 240 seconds]
<Zarthus>
perhaps it is, but the world is full of silly people
<dsferreira>
Everyone is there
<jhass>
never has been a good reason tbh
<dsferreira>
what irc client to you use for iPhone?
<jhass>
I prefer a good community over a big one
PaulCape_ has joined #ruby
DaniG2k has joined #ruby
<bougyman>
dsferreira: i'm interested in your question, but I don't have an iPhone
<dsferreira>
That gitter is even worst since it forces you to use Github oauth
<bougyman>
just wondering what to answer when someone asks it.
<bougyman>
on android I use irssi-connectbot or andchat
PaulCapestany has quit [Ping timeout: 276 seconds]
Arcaire has quit [Ping timeout: 276 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
zotherstupidguy has joined #ruby
hogetaro_ has quit [Quit: Leaving...]
<jhass>
on android I use AndroidIRC it's called iirc, though rarely so, since my bouncer mails me highlights and PMs
<dsferreira>
those applications don't exist for iphone it seems
davedev2_ has joined #ruby
<dsferreira>
noone using iPhone?
eL_bamba has joined #ruby
<Zarthus>
there are plenty of irc clients for irc
davedev2_ has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
davedev__ has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
<Zarthus>
are you trying to say you can't connect to irc from an iphone? because I'm not surprised "AndroidIRC" doesn't exist there.
<Zarthus>
you're looking for colloquy
<dsferreira>
I know that. I only would like to know what is the best one
<Zarthus>
there is no "best one"
<Zarthus>
there are choices, some people like others better than colloquy.
jokke has quit [Remote host closed the connection]
jokke has joined #ruby
<NoobPlayer97>
shevy?
der-landgraf has quit [Ping timeout: 244 seconds]
<NoobPlayer97>
Then maybe I'll try creating my own distro using LinuxFromScratch
jokke has quit [Remote host closed the connection]
<jhass>
you used linux yet?
jokke has joined #ruby
jaguarmagenta has joined #ruby
<NoobPlayer97>
Not really
<jhass>
don't start out with LFS then
<NoobPlayer97>
:D
<jhass>
go with something that makes choices for you, like ubuntu or antergos
<NoobPlayer97>
Oh.. Only for intermediate?
<jhass>
yeah
<jhass>
once you familarized there, do a Arch or Gentoo install on your own
|2701 has joined #ruby
<jhass>
if you mastered that you'll know if LFS is still worth the experience
<NoobPlayer97>
Hmm
GodFather has quit [Ping timeout: 246 seconds]
<NoobPlayer97>
I wanted to check on linux from ground level
<NoobPlayer97>
Coz I am a lil paranoid about securitt..
<NoobPlayer97>
Security*
<Papierkorb>
Nothing to do with it
<Papierkorb>
in fact, you'll have to maintain all libraries yourself
<Papierkorb>
new OpenSSL? better build half of your system new
<Papierkorb>
same for any other library
<NoobPlayer97>
Oooo
<jhass>
also not unlikely you'll make the wrong choices
<Papierkorb>
^
<jhass>
that other distros already get right for you
cdg has joined #ruby
<Papierkorb>
At least choose a distro which compiles everything on your machine so you still have full control. Like Gentoo (?)
<Papierkorb>
(Never used Gentoo)
der-landgraf has joined #ruby
<NoobPlayer97>
No
bronson has joined #ruby
PaulCape_ has joined #ruby
kirillow has quit [Quit: WeeChat 1.0.1]
<NoobPlayer97>
Just sat on college's Ubuntu
<Papierkorb>
NoobPlayer97: make yourself familiar with LVM, LUKS, md-crypt, QEMU/KVM, CGroups (and LXC for that matter), general security best practices, and of course only use libre software. And that's security paranoia 101, not even 102
<NoobPlayer97>
Woah!
<NoobPlayer97>
Superbumper!
<Papierkorb>
Security is hard! Surprising!
<NoobPlayer97>
Not surprising!
<Papierkorb>
Also 'security' is more than "don't tell anyone your password"
agent_white has quit [Read error: Connection reset by peer]
<NoobPlayer97>
Lol..
cdg has quit [Remote host closed the connection]
<NoobPlayer97>
I forgot I did work a lil on Kali
<NoobPlayer97>
But didn't get me anywhere
<Papierkorb>
that's for pentesting and not for being a secure system for general use
PaulCapestany has quit [Ping timeout: 276 seconds]
Vingador has quit [Remote host closed the connection]
<Papierkorb>
NoobPlayer97: I just noticed that this is #ruby and not #ruby-offtopic. Please move the discussion there.
atmosx has quit [Ping timeout: 260 seconds]
<NoobPlayer97>
K.. Cool!
Arcaire has joined #ruby
atmosx has joined #ruby
<jhass>
I would consider kali one of the most insecure systems in fact
bronson has quit [Ping timeout: 252 seconds]
<NoobPlayer97>
Thought so..
flughafen_ has quit [Ping timeout: 240 seconds]
jbird00 has joined #ruby
DaniG2k has quit [Quit: leaving]
<NoobPlayer97>
Anyways thanks for the help!
NoobPlayer97 has left #ruby ["AndroIRC"]
nofxx has quit [Ping timeout: 246 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
stannard has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
GodFather has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
insanedreamer has quit [Ping timeout: 240 seconds]
<jhass>
ellistaa: well you stub a different object than you call it on
yfeldblum has quit [Ping timeout: 276 seconds]
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ellistaa>
jhass so would i do person = Person.new, Person.stub(:get_greeting)
<jhass>
person = Person.new; person.stub(:get_greeting); expect(person.scream_greeting).to eq "Hello World"
yfeldblum has joined #ruby
<jhass>
no, ^
<jhass>
Person.stub(:get_greeting) would stub a call to Person.get_greeting
tinnvec has joined #ruby
adgtl has quit [Ping timeout: 250 seconds]
jaguarmagenta has joined #ruby
<ellistaa>
jhass: ok that’s returning nil, i thought i was supposed to get {}
<ellistaa>
and empty object
PaulCape_ has joined #ruby
<jhass>
I don't see how you come to think so
<ellistaa>
thought i read it in the docks
CloCkWeRX has quit [Remote host closed the connection]
<ellistaa>
awesome, thanks for the help
yfeldblu_ has joined #ruby
iwmrby has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
edavis has quit [Remote host closed the connection]
<jhass>
btw I realize this is for practicing, but in a real world usecase I wouldn't stub that
PaulCapestany has quit [Ping timeout: 276 seconds]
<ellistaa>
jhass: why not?
<jhass>
it's not doing a call to a class not under test
<ellistaa>
what if its like a http call that requires auth and i dont have auth in local? i was planning to stub that
<jhass>
then yes
<jhass>
but it's not here
<ellistaa>
ok cool
<ellistaa>
yeah just wanted to figure out how it works
yfeldblum has quit [Ping timeout: 276 seconds]
<ellistaa>
realized i wrote terrible tests last friday at work so now i have to go back and fix them
<iwmrby>
Hey. So, I am creating a model for something and I want to have a Unix timestamp in the X field. I should use x:time, right?
<jhass>
ellistaa: also have a look at webmock for http stuff
<jhass>
?rails iwmrby
<ruby[bot]>
iwmrby: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<ellistaa>
jhass: ok cool
<iwmrby>
Oh, shit. Sorry.
<jhass>
no worries
<ellistaa>
iwmrby: i dont think Time.now is unix timestamp
skalfyfan has joined #ruby
<ellistaa>
oh i think its Time.now.to_I
edavis has joined #ruby
whiteline has quit [Remote host closed the connection]
<iwmrby>
ellistaa: yes, .to_i converts to Unix timestamp. But I'm not sure I can use that in model declarations.
<ellistaa>
declaration?
tinnvec has quit [Quit: No Ping reply in 180 seconds.]
adgtl has joined #ruby
fujinuma has quit [Ping timeout: 260 seconds]
DoubleMalt has joined #ruby
whiteline has joined #ruby
tinnvec has joined #ruby
skalfyfan has quit [Read error: Connection reset by peer]
skalfyfan has joined #ruby
nertzy3 has quit [Read error: Connection reset by peer]
<iwmrby>
ellistaa: Yup. "rails generate model blah X:type", where type is in {:string, :text, :integer, :float, :decimal, :datetime, :timestamp, :time, :date, :binary, :boolean}
jaguarmagenta has quit [Remote host closed the connection]
<ellistaa>
oh
mdw has joined #ruby
<ellistaa>
dang yeah that sucks its not an option
nertzy has joined #ruby
<iwmrby>
I think it's timestamp, but I thought I should ask somebody first.
<iwmrby>
eh, I'll figure it out
nertzy has quit [Client Quit]
allcentury has quit [Ping timeout: 276 seconds]
hutch34 has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Log1x has quit [Read error: Connection reset by peer]
PaulCapestany has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
tinnvec has quit [Quit: No Ping reply in 180 seconds.]
Elvin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<fujinuma>
It raises an exception: SQLite3::Exception - no such bind parameter
adgtl has joined #ruby
rbennacer has joined #ruby
<TheFarmingBunny>
i'm bored and trying to meet people under the facade that im trying to get a group for the railsrumble that doesnt start for several months
gtsai has joined #ruby
<jhass>
fujinuma: what's params?
rbennace_ has joined #ruby
<fujinuma>
jhass: a hash
<jhass>
make it an array
kareeoleez has joined #ruby
<fujinuma>
jhass: yes, sir ;)
artm has joined #ruby
artm has left #ruby [#ruby]
xlegoman has quit [Read error: Connection reset by peer]
artm has joined #ruby
jgt has quit [Read error: Connection reset by peer]
gtsai has quit [Remote host closed the connection]
harry111 has joined #ruby
jwren has joined #ruby
markfletcher has quit [Client Quit]
symm- has joined #ruby
markfletcher has joined #ruby
mradmacher has joined #ruby
artm has left #ruby ["Ex-Chat"]
nemish has quit [Remote host closed the connection]
nibbo has quit [Remote host closed the connection]
nemish has joined #ruby
nibbo has joined #ruby
nando293921 has joined #ruby
markfletcher has quit [Client Quit]
mradmacher has left #ruby ["WeeChat 0.4.2"]
craigp has joined #ruby
adgtl has quit [Ping timeout: 260 seconds]
ellistaa_ has joined #ruby
nibbo has quit [Ping timeout: 252 seconds]
ellistaa has quit [Ping timeout: 260 seconds]
ellistaa_ is now known as ellistaa
nemish has quit [Remote host closed the connection]
nemish has joined #ruby
nibbo has joined #ruby
firstdayonthejob has joined #ruby
al2o3-cr has quit [Read error: Connection reset by peer]
fujinuma has left #ruby ["WeeChat 1.4"]
hackeron has joined #ruby
flughafen_ has quit [Ping timeout: 244 seconds]
nemish has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
nibbo has quit [Ping timeout: 272 seconds]
chopin has quit [Remote host closed the connection]
Pupeno has quit [Quit: Leaving...]
<ellistaa>
jhass: is a stub just a fake method while a mock is a fake instance of a class?
adgtl has joined #ruby
_orangejuice has joined #ruby
<apeiros>
ellistaa: there's articles about test doubles
<jhass>
if I got it right, a stub replaces something on the real object, a mock is a entirely different object that exposes the same interface as the real one
<apeiros>
a mock verifies that a specific method is invoked, and the way it is invoked
<ellistaa>
so if i created a class called MockPerson to take the place of the Person class, that would be a mock?
<apeiros>
a stub simply acts the way you describe, but doesn't make any assertions on whether a stubbed method is invoked and how
al2o3-cr has joined #ruby
<apeiros>
if your MockPerson describes how it is used in the test, and fails the test if it isn't used that way - yes
<apeiros>
otherwise it's a stub
diegoaguilar has quit [Remote host closed the connection]
daguilaraguilar has quit [Remote host closed the connection]
<ellistaa>
apeiros: when would i choose to use a mock over a stub then
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
PaulCape_ has quit [Ping timeout: 260 seconds]
Es0teric has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.5]
kirillow has joined #ruby
al2o3-cr has joined #ruby
<kirillow>
I'm using tilt to render some scss, but it only seems to execute @import only on the first level. So my main.scss imports _typey.scss, but typey/_defaults.scss in _typey.scss will not be imported.
tristanp has joined #ruby
<kirillow>
this is the line: File.write(file_destination, Tilt.new(file_path).render(self))
adgtl has joined #ruby
<kirillow>
where file_path is the path to my main.scss which does @require 'typey' and so on
GBrawl has quit [Read error: Connection reset by peer]
ur5us has quit [Remote host closed the connection]
ellistaa has joined #ruby
nankyokusei has joined #ruby
adgtl has joined #ruby
<apeiros>
ellistaa: example for a mock: say test an orm you wrote, and you mock your persistency layer, and you want to ensure that the model calls e.g. .save
<apeiros>
when you stub, you don't care it's called. when you mock, you say "I expect the test to cause .save being called"
Yzguy has quit [Quit: Zzz...]
<ellistaa>
so if i wanted to test the orm, i would create a fake calss called mock orm and then test that its being called?
AlexRussia has joined #ruby
adgtl has quit [Ping timeout: 250 seconds]
cisco has joined #ruby
tristanp has quit [Remote host closed the connection]
adgtl has joined #ruby
tristanp has joined #ruby
Dimik has quit [Ping timeout: 264 seconds]
wldcordeiro has quit [Ping timeout: 260 seconds]
lukec has quit [Quit: lukec]
kus has joined #ruby
kus has quit [Max SendQ exceeded]
pawnbox has quit [Remote host closed the connection]
hadoken has joined #ruby
djbkd has joined #ruby
wldcordeiro has joined #ruby
tmtwd has joined #ruby
joneshf-laptop has quit [Remote host closed the connection]
dmr8 has quit [Read error: Connection reset by peer]