firstdayonthejob has quit [Ping timeout: 252 seconds]
duncannz has quit [Ping timeout: 260 seconds]
atomical has joined #ruby
startupality has quit [Quit: startupality]
k3asd` has quit [Quit: leaving]
k3asd` has joined #ruby
k3asd` has quit [Client Quit]
k3asd` has joined #ruby
l_tonz has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
Silverfall has joined #ruby
Musashi007 has quit [Quit: Musashi007]
eminencehc has joined #ruby
l_tonz has joined #ruby
k3asd` has quit [Quit: Lost terminal]
_aeris_ has quit [Ping timeout: 260 seconds]
Success has quit [Quit: Page closed]
k3asd` has joined #ruby
k3asd` has quit [Client Quit]
k3asd` has joined #ruby
eminence_ has joined #ruby
Guest51228 is now known as Tristan-Speccy
eminencehc has quit [Ping timeout: 264 seconds]
_aeris_ has joined #ruby
k3asd` has quit [Quit: leaving]
maletor has quit [Quit: Computer has gone to sleep.]
k3asd` has joined #ruby
minimalism has joined #ruby
eminence_ has quit [Ping timeout: 272 seconds]
terminalrecluse has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
eminencehc has joined #ruby
eminencehc has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
agent_white has joined #ruby
<agent_white>
Evenin' folks
_blizzy_ has joined #ruby
opensource_ninja has quit [Quit: opensource_ninja]
<c355E3B>
evening
symm- has quit [Quit: Leaving...]
symm- has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
eminencehc has joined #ruby
eminencehc has quit [Remote host closed the connection]
h99h9h88 has joined #ruby
k3asd` has quit [Ping timeout: 264 seconds]
<havenwood>
maletor has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
maletor has quit [Client Quit]
h99h9h88 has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tyraeltong has joined #ruby
segfalt__ has joined #ruby
keen___________2 has joined #ruby
keen___________1 has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
sp4rrow has joined #ruby
<dreinull75>
I can rescue inline for stuff like this: user.address.street rescue "Fail". Is it possible to rescue elsewhere? Like if user hits nil to end the chain immediately? (without changing user.address.street))
segfalt__ has quit [Ping timeout: 240 seconds]
<darix>
dreinull75: active_support brings a try method
<dreinull75>
darix sure, but then I'd have to change that line.
mistermocha has joined #ruby
<dreinull75>
I know about monads and try and stuff. In this case I just want to stop execution of that line.
<dreinull75>
Like rescue does.
tyraelto_ has joined #ruby
<darix>
rescue doesnt stop execution
ibouvousaime has quit [Ping timeout: 268 seconds]
<shevy>
anyone has some idea what my next (small) game should be about
<darix>
it just guards the error and then returns Fail
<dreinull75>
maybe not, but it does the job.
<dreinull75>
I'd like to outsource that a bit
devoldmx has quit [Ping timeout: 260 seconds]
<dreinull75>
I'm using a Null object that returns more Null objects but that doesn't look very smart
<hxegon_>
I'm going to pretend I was checking to see if ruby automatically converts to float when approprate with division Ox0dea
rgtk has quit [Read error: No route to host]
<jhass>
?pry hxegon_
<ruboto>
hxegon_, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
<jhass>
get it
<jhass>
don't use the bot
<Ox0dea>
jhass: Lighten up a little; it's Christmas.
rgtk has joined #ruby
<jhass>
Ox0dea: where's my present?
<Ox0dea>
jhass: I'm eating it.
<hxegon_>
jhass: I thought he got 2/3 strings and was making a joke about it meaning he got 0%
<Ox0dea>
^
<jhass>
Ox0dea: I don't think that's healthy
hmsimha_ has quit [Ping timeout: 265 seconds]
moss has quit [Ping timeout: 268 seconds]
<jhass>
so you'll probably die from it. I can accept that as a replacement I guess
<Ox0dea>
jhass: How do you know I didn't get you a pair of socks?
<jhass>
How do you know you're eating the present you got for me instead of the one I got myself for me?
cmoney has quit [Remote host closed the connection]
rgtk has joined #ruby
<jhass>
"HotDog, an HTML editor", let's hope it only works on fridays
hxegon_ has quit [Ping timeout: 272 seconds]
<Ox0dea>
I get ~47M vs. ~17M.
<jhass>
I wonder if the plugin still works
<Ox0dea>
Plugging hot dogs in where they don't belong is a serious offense in many jurisdictions.
vigintas has quit [Ping timeout: 250 seconds]
terminalrecluse has quit [Ping timeout: 250 seconds]
terminalrecluse has joined #ruby
moretti has quit [Quit: Leaving...]
rgtk has quit [Read error: No route to host]
rgtk_ has joined #ruby
jwinder has quit [Ping timeout: 250 seconds]
Scarthus is now known as Zarthus
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvw has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
rgtk_ has quit [Ping timeout: 260 seconds]
scampbell has quit [Quit: Leaving]
mikeharris22 has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
colegatron has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
x-light has joined #ruby
solocshaw has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
rgtk has quit [Read error: No route to host]
favadi has joined #ruby
RobertBirnie has joined #ruby
rgtk has joined #ruby
favadi has quit [Max SendQ exceeded]
StarBreaker has quit []
pwnd_nfsw has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 246 seconds]
RobertBirnie has quit [Ping timeout: 256 seconds]
hxegon has quit [Ping timeout: 256 seconds]
rgtk has quit [Ping timeout: 260 seconds]
asmodlol has quit [Ping timeout: 246 seconds]
solocshaw has joined #ruby
beast has joined #ruby
asmodlol has joined #ruby
hxegon has joined #ruby
rgtk has joined #ruby
pwnd_nsfw has joined #ruby
grotewold is now known as grotewold[afk]
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
<Ox0dea>
> sbc are the initials of Sacha Baron Cohen, (in)famous for his portrayal of a particular European "G", a phonetic respelling of which might be "You're a PNG", that being compressible to "urapng", which is a deranged anagram of "Pangur". Pangur Bán is a famous white cat, and this is a Whitespace interpreter written in LOLCODE.
<Ox0dea>
I have gone well and truly mad.
colegatron has joined #ruby
<Ox0dea>
I suppose flipping the languages would be madder still.
rgtk has quit [Ping timeout: 260 seconds]
hxegon has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
rgtk has joined #ruby
rgtk has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
solocshaw has quit [Remote host closed the connection]
solocshaw has joined #ruby
dorei has quit []
pdoherty has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
solocshaw has quit [Ping timeout: 246 seconds]
rgtk has joined #ruby
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
tmtwd has joined #ruby
pocketprotector- has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
But mine makes at least a little bit of Satan-blessed sense, no?
rgtk has quit [Read error: No route to host]
rgtk_ has joined #ruby
<jhass>
maybe
musou has quit [Quit: Connection closed for inactivity]
c355E3B has quit [Quit: Connection closed for inactivity]
tectonic has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
Oatmeal has joined #ruby
pocketprotector has quit [Ping timeout: 246 seconds]
rgtk_ has quit [Read error: No route to host]
rgtk has joined #ruby
IlIIlIII|I_snack has joined #ruby
pocketprotector- has quit [Ping timeout: 264 seconds]
<IlIIlIII|I_snack>
j L b z ~ q M w t m 2 d H M y g n ( ! X C s y " 4 R f ] \ N ^ j o g C / ' y U * ? Z C
<IlIIlIII|I_snack>
Y | A m ; D L E F B
<IlIIlIII|I_snack>
. o y ' p [ ? T [ f V P W H ) B b D J < N T % " V $ d , I t I g { 9 u 6 w $ v { f x R
<IlIIlIII|I_snack>
Q , ( ~ X / P g 8
<IlIIlIII|I_snack>
6 e I H ] Q * \ B x B Z - % C n ] : Z P r M W Z f : w / i ' U U ~ 9 . 3 t | u L b
<IlIIlIII|I_snack>
) C W C S E C D " z
<IlIIlIII|I_snack>
w . ^ { $ # y O < r U + b ? g , v l q K - : A j v I Y L t " < [ C 8 N % N C E 6
<IlIIlIII|I_snack>
Nothing but A ROOBY TOOB BLACK AZZ
<IlIIlIII|I_snack>
" _ . 4 _ $ I & > z k
solocshaw has joined #ruby
<IlIIlIII|I_snack>
] ] ' M K \ $ J P e ) - b 8 ) t I q z 2 ( # Q - O T ] l + > G I ' m " H y ) b ! e ; <
<IlIIlIII|I_snack>
M + = * b I ] @ Y u d
<IlIIlIII|I_snack>
A W ; d ? ` : _ D Y z " O j 5 . & f + d \ - t B - W ' B Z X - k J @ Q U R X o 5 ` Z
<IlIIlIII|I_snack>
N ~ . k u 9 I V V d 3
<IlIIlIII|I_snack>
# ] g { s X x ) ^ ^ : ~ { o E > Q A [ c N H f z n { = x \ , Q * W P m f @ I C >
<IlIIlIII|I_snack>
H | M 8 { = s # G b )
<Ox0dea>
Well, this is interesting.
<IlIIlIII|I_snack>
Q f c ! d A ) * d ) f | B : h h k O / D Q 1 N D l S ? k z = B | f k U & B , $ A + % K 2
<IlIIlIII|I_snack>
Z H " X : I L . $ M
<IlIIlIII|I_snack>
h d G ) - < = g a H @ O v - F d I , Q ^ J 9 S ` ] J l k & d , E x Z 5 \ I u [ C
<IlIIlIII|I_snack>
h { < G P a d e % / ?
<IlIIlIII|I_snack>
$ z _ i u h d i d E X + l R H Z = $ h + [ t t - \ S G ^ / D 3 \ $ U C K W L G Z C
<IlIIlIII|I_snack>
" L " B j B k k - l
<IlIIlIII|I_snack>
W B a K \ E R a @ 0 D d C * s | x n k M o y ) N ^ j S h b f a g z F " i = & e P v q
<IlIIlIII|I_snack>
! n ` J x ( n %
<IlIIlIII|I_snack>
8 S u { : d I j * ) s d x t \ e Z h - % o W U < F g s | I W G - h ~ @ T H t e _
<IlIIlIII|I_snack>
S + 3 F F v < t T %
<tectonic>
Wat?
<IlIIlIII|I_snack>
D j . M e b j A F W { > v A + # p 2 Y - m \ v s Q y / y 9 c I $ " & - % / p b _ Y ] \
<IlIIlIII|I_snack>
_ T ` z - X g > { V 6
<IlIIlIII|I_snack>
p } S ; Z S ' ; < / " c x A ? e X + * { j d F [ e } s 4 ; ; . A v 0 b " 0 M 0 L < E x )
<Ox0dea>
IlIIlIII|I_snack: Stop and have a chat?
<IlIIlIII|I_snack>
| - P * { g i } T M V
<IlIIlIII|I_snack>
Nothing but A ROOBY TOOB BLACK AZZ
<IlIIlIII|I_snack>
P p h B | N & G N O t m h z m { j 2 + h Q W m C ^ D S _ E v L : Z : , X V O ^ # 8 u -
<IlIIlIII|I_snack>
e n X c f z v M
<IlIIlIII|I_snack>
] e : J F i < 9 J I K b - P p $ e B w ` + % / ^ L Q 4 p S ~ o D $ \ \ G 8 Z v 5 { ; 0
<IlIIlIII|I_snack>
f G o / b E x B h 6 I
<IlIIlIII|I_snack>
r f = & ! y ; ? r k m u t ' B " \ ` @ k r U > @ Q + k A * } P \ ~ L : T 3 t Q (
IlIIlIII|I_snack has left #ruby [requested by jhass (Your behavior is not conductive to the desired environment.)]
<Ox0dea>
But he made me feel like I was in the matrix!
tkuchiki has joined #ruby
roxtrongo has joined #ruby
<Ox0dea>
I wish he knew how to do color.
<Ox0dea>
jhass: *conducive, for reference.
<jhass>
maybe he did, we got +c
tkuchiki has quit [Remote host closed the connection]
<xxneolithicxx>
he just got k+o'ed
<Ox0dea>
I have sufficient reason to believe that was just copied from a `cmatrix` run.
vigintas has joined #ruby
<Ox0dea>
A proper spammer would've made some of them green.
rgtk has quit [Ping timeout: 260 seconds]
<jhass>
xxneolithicxx: we're just late to the party, they've been roaming the network the whole day
<shevy>
hmm
<shevy>
can the economy stand the hit when IRC will be unavailable?
vigintas has quit [Ping timeout: 246 seconds]
rgtk has joined #ruby
<Ox0dea>
shevy: IRC is used to coordinate Bitcoin-mining botnets, so definitely not.
Ulfalizer has quit [Ping timeout: 250 seconds]
Erik_Underline has quit [Quit: Page closed]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
pocketprotector has joined #ruby
juanpablo__ has joined #ruby
The_Phoenix has joined #ruby
segmond has quit [Ping timeout: 240 seconds]
x-light has quit [Ping timeout: 268 seconds]
roxtrongo has quit [Remote host closed the connection]
claw has quit [Ping timeout: 268 seconds]
diegoaguilar has quit [Remote host closed the connection]
rgtk has quit [Ping timeout: 260 seconds]
juanpablo__ has quit [Ping timeout: 260 seconds]
claw has joined #ruby
djbkd has joined #ruby
rbennacer has quit [Remote host closed the connection]
c_nick has joined #ruby
rgtk has joined #ruby
hxegon has joined #ruby
<c_nick>
i want to iterate over a range of 1 to 10 .. such that for first 3 it should print "Hi" next two "Hello" then again next three "Hi" following two "Hello" and so on
<c_nick>
So the range would be (1..10) hi hi hi hello hello hi hi hi hello hello
<Ox0dea>
c_nick: Sounds like you want the flip-flop!
<Ox0dea>
Or maybe even a trip-flop, which must surely be the most obscure Ruby "feature".
<c_nick>
whats that .. I am not able to figure out in terms of % or /
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roxtrongo has joined #ruby
zenguy_pc2 has quit [Ping timeout: 260 seconds]
<Ox0dea>
c_nick: You'd make it easier on yourself if you went from 0..9 instead of 1..10.
<c_nick>
yeah a trip flop but how
<c_nick>
hmm
darkf has joined #ruby
<shevy>
lol
rgtk has quit [Read error: No route to host]
<shevy>
Ox0dea you are doing a comedy show here on #ruby
<shevy>
trip flops
rgtk has joined #ruby
<Ox0dea>
c_nick: You don't actually need a trip-flop, of course.
<c_nick>
Ox0dea: a 4th and 9th element would become 3rd and 8th
<Ox0dea>
It's really very simple arithmetic, and you've already hit on the right operators.
<c_nick>
oh
<c_nick>
so u mean number % 3 == 0 set a flag and then based on that do what you want
<Ox0dea>
c_nick: The optimal solution is stateless.
mikeharris22 has quit [Remote host closed the connection]
<Ox0dea>
c_nick: Why `% 3`?
djbkd has quit [Ping timeout: 264 seconds]
<c_nick>
after every 3rd element i want to change the print statement
segmond has joined #ruby
<Ox0dea>
c_nick: Nope.
<c_nick>
however 3 wont work
<Ox0dea>
c_nick: Mod-3 will cut your 10-element Range into 3 1/3 "chunks", which is not the 2 you're looking for.
<c_nick>
indeed
<Ox0dea>
c_nick: So who's better than 3 for that part?
rgtk has quit [Read error: No route to host]
<c_nick>
not getting :( i thought 2 but that doesnt ring a bell
<Ox0dea>
c_nick: You should just stop and think about it.
<Ox0dea>
It seems like you're just throwing shi^Wthings and hoping one sticks.
<shevy>
just keep trying
quazimodo has joined #ruby
Channel6 has joined #ruby
<Ox0dea>
Think until try becomes do.
rgtk has quit [Ping timeout: 260 seconds]
<Ox0dea>
c_nick: What operation can you apply to {0,1,2} that'll be the same for every element and yet different from the result you'd get when applying it to {3,4}?
xxneolithicxx has quit [Ping timeout: 272 seconds]
lavros has joined #ruby
braincras has joined #ruby
xxneolithicxx has joined #ruby
<Ox0dea>
hxegon: The former is calling #foo *on* 1, whereas the latter is calling it *with* 1.
<Ox0dea>
Methods defined at the top level become private methods on Object.
<Ox0dea>
hxegon: How're you gonna remember all this shit?
tkuchiki has quit [Remote host closed the connection]
<hxegon>
Ox0dea: on my pry I'm getting ArgumentError...
tkuchiki has joined #ruby
<Ox0dea>
hxegon: Awesome; gimme a second to read your mind to figure out to which example you're referring.
l_tonz has joined #ruby
<hxegon>
>> def foo a, b; a + b; end; foo.to_proc.curry[1]
<ruboto>
hxegon # => wrong number of arguments (0 for 2) (ArgumentError) ...check link for more (https://eval.in/460927)
<hxegon>
...
<Ox0dea>
hxegon: Procs are not methods...
<Ox0dea>
>> def foo a, b; a + b; end; foo # You're doing this, so the rest is noise.
<ruboto>
Ox0dea # => wrong number of arguments (0 for 2) (ArgumentError) ...check link for more (https://eval.in/460928)
davedev24 has quit []
gix has quit [Ping timeout: 240 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
<Ox0dea>
hxegon: I suspect you must be coming from a language in which you can obtain a reference to a method/function simply by mentioning its name, but that's just not the case in Ruby; mentioning a method's name invokes the method.
<Ox0dea>
This is entirely a byproduct of optional parentheses for method invocation.
<hxegon>
Ox0dea: I learned currying and partial application in haskell, so that is probably why
solocshaw has joined #ruby
l_tonz_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
peteykun has joined #ruby
<hxegon>
I'm going to reread some docs a few times...
<Ox0dea>
It's something I've been meaning to recreate with a bit more sanity since refinements landed.
<Ox0dea>
That main loop, though.
h99h9h88 has quit [Remote host closed the connection]
iateadonut has joined #ruby
favadi has joined #ruby
h99h9h88 has joined #ruby
techsethi has quit [Quit: techsethi]
l_tonz has joined #ruby
techsethi has joined #ruby
h99h9h88 has quit [Ping timeout: 265 seconds]
enherit has quit [Ping timeout: 240 seconds]
xantik has quit [Read error: Connection reset by peer]
Puck6633 has quit [Quit: Leaving]
shinnya has quit [Ping timeout: 268 seconds]
iateadonut has quit [Quit: Leaving.]
haxrbyte has joined #ruby
iateadonut has joined #ruby
mistermocha has joined #ruby
<hxegon>
Ox0dea: I have no idea how that case statement works, but it gives me haskell list comp, so I'm not going to sleep ontil I can find out how it works and absorb its power
sp4rrow has joined #ruby
<Ox0dea>
hxegon: That's arguably the most straightforward part, but there's certainly something to be learned from it.
duckpuppy has joined #ruby
haxrbyte has quit [Ping timeout: 240 seconds]
<Ox0dea>
As I understand it, Haskell lists can either be the bog-standard variety ([1,2,3]), a range ([1..3]), or a range whose step is the difference between the first two elements ([1,3..9]).
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Remote host closed the connection]
<Ox0dea>
That cast statement just branches based on the position of the Range in the Array.
<Ox0dea>
*case
leafybasil has joined #ruby
ziprar has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
mistermocha has quit [Ping timeout: 246 seconds]
tectonic has quit []
duckpuppy has quit [Ping timeout: 250 seconds]
diegoviola has quit [Quit: WeeChat 1.3]
favadi has joined #ruby
AnoHito_ has quit [Read error: Connection reset by peer]
leafybasil has quit [Ping timeout: 246 seconds]
AnoHito_ has joined #ruby
blubjr has quit [Read error: Connection reset by peer]
ledestin has quit [Read error: Connection reset by peer]
rakm has joined #ruby
blubjr has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
tlaxkit has quit [Quit: ¡Hasta luego!]
user1138 has joined #ruby
arup_r has joined #ruby
user1138 has quit [Remote host closed the connection]
arup_r is now known as Guest21618
<hxegon>
Ox0dea: its so wrong, but it feels so right
Guest21618 is now known as arup_r
tlarevo has left #ruby [#ruby]
NeverDie_ has joined #ruby
NeverDie has quit [Ping timeout: 252 seconds]
<Ox0dea>
hxegon: I think it's terrifying that Ruby can get that close.
techsethi has quit [Quit: techsethi]
yfeldblum has joined #ruby
<Ox0dea>
There are these blogthings pairing programming languages with weapons and with vehicles; I'm of the opinion that Ruby is the Bagger 288 in both cases. https://www.youtube.com/watch?v=azEvfD4C6ow
l_tonz has quit [Ping timeout: 250 seconds]
<Ox0dea>
> The Bagger 288 is there to safeguard all mankind. The Bagger 288 reaks total, utter devestation.
djbkd has joined #ruby
<hxegon>
Ox0dea: that is one kaiju killing machine. If ruby was a superhero, it would be spiderman. with great power...
devbug has joined #ruby
h99h9h88 has joined #ruby
pontiki has quit [Ping timeout: 240 seconds]
nixmaniack has quit [Read error: Connection reset by peer]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 265 seconds]
devbug_ has quit [Ping timeout: 265 seconds]
nixmaniack has joined #ruby
<Ox0dea>
I'm petitioning for the next edition of The Pickaxe Book to be called The Bagger 288 Book.
<hxegon>
Ox0dea: and there is more than one distributor csv, so I need the component cleanups (delete_empty_fields, recover_numstrings) to be easily combinable
<Ox0dea>
I thought you were just mucking about with the language looking for gotchas and the like.
<blubjr>
does ruby have something like lisp restarts
<hxegon>
Ox0dea: not really, I mean we are only @ 1 distributor for now, but we will have dozens and basic function comp like that just makes sense for the problem to me. (not that I don't like muking around in ruby though :) )
<Ox0dea>
blubjr: call/cc, you mean?
<blubjr>
call/cc is more general
<blubjr>
i could write it myself i guess but is there a predefined option
<Ox0dea>
I suppose I should've stuck a call to #rewind in there for demonstration purposes, but you get the idea.
<blubjr>
how would high level code grab that
<Ox0dea>
This is #ruby.
djbkd has quit [Remote host closed the connection]
<blubjr>
?
<Ox0dea>
blubjr: What's your definition of "high level" here?
<blubjr>
higher level
<blubjr>
sorry
<blubjr>
up the call stack
<Ox0dea>
"Grab" it as in have a reference to it?
<hxegon>
gnight all
<Ox0dea>
Au revoir, hxegon.
hxegon has quit [Quit: leaving]
stannard has quit [Ping timeout: 250 seconds]
<blubjr>
get at the continuation at time of error
<Ox0dea>
You just control the iteration?
<blubjr>
so that the lower level could give paths to respond by
nixmaniack has quit [Read error: Connection reset by peer]
n1x has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
<Ox0dea>
I confess to not having an intimate understanding of the Fiber API, but everything you'd need seems to be there.
<blubjr>
im sure it could be implemented
<blubjr>
i was just wondering if it already was
<Ox0dea>
If "what" already was?
<Ox0dea>
I did not intend to use quotes for emphasis there.
<blubjr>
lisp-style restarts
<blubjr>
where you get to a condition and you see if there's a handler and if there is let them continue from that point based off recovery strategies
lxsameer has quit [Remote host closed the connection]
<Ox0dea>
blubjr: Ah, that's a much better picture. I'm sure somebody somewhere's done it, and they probably used Fibers to do so.
<Ox0dea>
I suspect Celluloid's Fiber usage would be of considerable interest to you.
solocshaw1 has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
solocshaw1 is now known as solocshaw
<blubjr>
thank you
<Ox0dea>
You're welcome.
moeabdol has joined #ruby
yardenbar has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc2 has quit [Ping timeout: 250 seconds]
jgt has joined #ruby
blue_deref has quit [Quit: bbn]
lxsameer has joined #ruby
rrichardsr3 has joined #ruby
benhuda has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 240 seconds]
The_Phoenix has joined #ruby
n1x has quit [Ping timeout: 250 seconds]
ItSANgo has quit [Quit: Leaving...]
xantik has joined #ruby
nixmaniack has joined #ruby
jgt has quit [Ping timeout: 260 seconds]
sameerynho has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 252 seconds]
lxsameer_ has joined #ruby
rrichardsr3 has quit [Quit: He who dares .... wins.]
zenguy_pc2 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sameerynho has quit [Ping timeout: 268 seconds]
ItSANgo has joined #ruby
eminence_ has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
_blizzy_ has quit [Client Quit]
Rollabunna has joined #ruby
Rinzlit has joined #ruby
segfalt__ has joined #ruby
Rinzlit_ has quit [Ping timeout: 255 seconds]
segfalt__ has quit [Ping timeout: 240 seconds]
pontiki has joined #ruby
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has quit [Ping timeout: 246 seconds]
pontiki has quit [Ping timeout: 246 seconds]
weihan has quit [Ping timeout: 240 seconds]
naftilos76 has joined #ruby
duckpuppy has joined #ruby
mistermocha has joined #ruby
beast has quit [Quit: Leaving]
yfeldblum has joined #ruby
duckpuppy has quit [Ping timeout: 265 seconds]
techsethi has quit [Quit: techsethi]
mistermocha has quit [Ping timeout: 246 seconds]
bMalum has joined #ruby
bruno- has joined #ruby
agent_white has quit [Quit: moo]
bb010g has quit [Quit: Connection closed for inactivity]
rippa has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
colegatron has quit [Ping timeout: 265 seconds]
SCHAAP137 has joined #ruby
techsethi has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
solocshaw has joined #ruby
benlieb has quit [Quit: benlieb]
l_tonz has joined #ruby
asmodlol has quit [Ping timeout: 265 seconds]
tmtwd has quit [Ping timeout: 244 seconds]
solocshaw has quit [Remote host closed the connection]
solocshaw has joined #ruby
tmtwd has joined #ruby
tectonic has joined #ruby
agit0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
asmodlol has joined #ruby
l_tonz has quit [Ping timeout: 268 seconds]
vigintas has joined #ruby
trosborn has quit [Quit: trosborn]
favadi has joined #ruby
eam has quit [Ping timeout: 272 seconds]
k3asd` has joined #ruby
nixmaniack has quit [Remote host closed the connection]
vigintas has quit [Ping timeout: 264 seconds]
colegatron has joined #ruby
bMalum has quit [Quit: bMalum]
fedexo has quit [Read error: Connection reset by peer]
roxtrongo has quit [Remote host closed the connection]
devoldmx has joined #ruby
eam has joined #ruby
tref has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
juanpablo__ has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has quit [Ping timeout: 256 seconds]
firstdayonthejob has joined #ruby
naftilos76 has quit [Ping timeout: 265 seconds]
SenpaiSilver has joined #ruby
juanpablo__ has quit [Ping timeout: 260 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rippa has joined #ruby
favadi has joined #ruby
favadi has quit [Client Quit]
tectonic has quit []
devbug has quit [Remote host closed the connection]
pontiki has joined #ruby
karapetyan has joined #ruby
elaptics`away is now known as elaptics
nixmaniack has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
pontiki has quit [Ping timeout: 252 seconds]
arooni has joined #ruby
jgt has joined #ruby
treaki_ has joined #ruby
asmodlol has quit [Ping timeout: 256 seconds]
poguez_ has joined #ruby
gagrio has quit [Remote host closed the connection]
asmodlol has joined #ruby
jgt has quit [Ping timeout: 260 seconds]
dikaio has quit [Quit: ........]
techsethi has quit [Quit: techsethi]
arup_r has joined #ruby
arup_r is now known as Guest2104
drew2_ has quit [Ping timeout: 244 seconds]
Guest2104 is now known as arup_r
abbe has quit [Ping timeout: 246 seconds]
drew2_ has joined #ruby
techsethi has joined #ruby
lele has quit [Excess Flood]
lele has joined #ruby
abbe has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
gagrio has joined #ruby
roger_rabbit has quit [Ping timeout: 250 seconds]
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
htmldrum has quit [Ping timeout: 250 seconds]
tref has quit [Quit: tref]
nixmaniack has quit [Remote host closed the connection]
leafybasil has joined #ruby
benhuda has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
leafybasil has quit [Ping timeout: 264 seconds]
nixmaniack has joined #ruby
l_tonz has joined #ruby
arup_r has quit [Quit: Leaving]
zenguy_pc2 has quit [Ping timeout: 250 seconds]
techsethi has quit [Quit: techsethi]
sameerynho has joined #ruby
k3asd` has quit [Quit: leaving]
k3asd` has joined #ruby
techsethi has joined #ruby
nixmaniack has quit [Read error: Connection reset by peer]
vigintas has joined #ruby
nixmaniack has joined #ruby
segfalt__ has joined #ruby
l_tonz has quit [Ping timeout: 260 seconds]
lxsameer_ has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
FernandoBasso has joined #ruby
vigintas has quit [Ping timeout: 265 seconds]
k3asd` has quit [Ping timeout: 246 seconds]
nixmaniack has quit [Ping timeout: 255 seconds]
nixmaniack has joined #ruby
segfalt__ has quit [Ping timeout: 265 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
ruurd has joined #ruby
zenguy_pc2 has joined #ruby
treaki_ has quit [Ping timeout: 255 seconds]
n1x has joined #ruby
lxsameer_ has joined #ruby
nixmaniack has quit [Read error: Connection reset by peer]
saddad has quit [Quit: WeeChat 1.4-dev]
rgtk has joined #ruby
DoubleMalt has joined #ruby
arooni has quit [Ping timeout: 246 seconds]
treaki has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
sameerynho has quit [Ping timeout: 265 seconds]
n1x has quit [Client Quit]
rgtk has quit [Read error: No route to host]
rgtk has joined #ruby
rgtk has quit [Remote host closed the connection]
spider-mario has joined #ruby
rgtk has joined #ruby
jgt has joined #ruby
pontiki has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
Axy has joined #ruby
pontiki has quit [Ping timeout: 246 seconds]
Motoservo has joined #ruby
Mia has quit [Ping timeout: 265 seconds]
duckpuppy has joined #ruby
karapetyan has joined #ruby
roger_rabbit has joined #ruby
mistermocha has joined #ruby
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has quit [Quit: Leaving...]
benhuda has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
rgtk has joined #ruby
stannard has joined #ruby
rgtk has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 255 seconds]
jamesaxl has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
htmldrum has joined #ruby
stannard has quit [Ping timeout: 252 seconds]
nichtdiebohne has joined #ruby
karapetyan has quit [Remote host closed the connection]
ta has joined #ruby
karapetyan has joined #ruby
htmldrum has quit [Ping timeout: 264 seconds]
th0m_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rippa has joined #ruby
tmtwd has quit [Ping timeout: 250 seconds]
c_nick has left #ruby [#ruby]
Jackneill has joined #ruby
SCHAAP137 has quit [Ping timeout: 260 seconds]
rgtk has joined #ruby
c_nick has joined #ruby
<c_nick>
I need to delete data from three tables. I wanted to know which is the most database efficient approach of the following 1. Delete data from 3 tables using INNER JOINS (2 Inner join queries and 1 normal query) 2. Retrieve ID's and store in an array and then delete from 3 using Delete from where IN ()
DEA7TH has joined #ruby
pontiki has joined #ruby
djellemah_ is now known as djellemah
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
l_tonz has joined #ruby
quazimodo has joined #ruby
juanpablo__ has joined #ruby
<djellemah>
c_nick: In general, delete with inner join. But it depends. Are your indexes are set up correctly? How large is the set of rows you're deleting? Is this a once-off, or an operation that will be repeated? Do you need the deletes to be atomic? (or whatever the term du jour is)
l_tonz has quit [Ping timeout: 246 seconds]
SCHAAP137 has joined #ruby
The_Phoenix1 has joined #ruby
The_Phoenix has quit [Ping timeout: 264 seconds]
<c_nick>
its a one off for now but we will have to do it again in six months time
leafybasil has joined #ruby
juanpablo__ has quit [Ping timeout: 252 seconds]
<c_nick>
do i need to handle indexes on that database ?
htmldrum has joined #ruby
asmodlol has quit [Ping timeout: 255 seconds]
asmodlol has joined #ruby
devoldmx has joined #ruby
leafybasil has quit [Ping timeout: 246 seconds]
segfalt__ has joined #ruby
jessemcgilallen has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
segfalt__ has quit [Ping timeout: 260 seconds]
stamina has joined #ruby
techsethi has quit [Quit: techsethi]
blackmesa has joined #ruby
c_nick has left #ruby [#ruby]
akem has joined #ruby
haxrbyte has joined #ruby
akem2 has joined #ruby
OrbitalKitten has joined #ruby
akem2 has quit [Read error: Connection reset by peer]
last_staff has joined #ruby
OrbitalKitten has quit [Client Quit]
akem has quit [Ping timeout: 246 seconds]
akem2 has joined #ruby
akem2 has quit [Read error: Connection reset by peer]
akem has joined #ruby
rikkipitt has quit [Quit: Leaving...]
last_staff has quit [Quit: last_staff]
sameerynho has joined #ruby
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
akem has quit [Ping timeout: 246 seconds]
DEA7TH has quit [Ping timeout: 260 seconds]
lxsameer_ has quit [Ping timeout: 246 seconds]
sameerynho has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
minimalism has joined #ruby
kp666 has quit [Ping timeout: 260 seconds]
reubensutton has joined #ruby
<reubensutton>
Hi, does anyone know of a guide to compiling ruby statically?
Ulfalizer has joined #ruby
bruno- has joined #ruby
akem has joined #ruby
DEA7TH has joined #ruby
DEA7TH has quit [Client Quit]
bruno- has quit [Ping timeout: 240 seconds]
lubarch has joined #ruby
bruno- has joined #ruby
houhouli_ has quit [Remote host closed the connection]
<Ulfalizer>
1.8.7. on a really ancient laptop atm. :/
l_tonz has joined #ruby
<jhass>
that syntax was introduced with 1.9, but even that is out of support by now, 2.0 is about to run out (4 more months). 2.1 and 2.2 are the supported versions, 2.3 is around the corner
haxrbyte has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 255 seconds]
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
bruno- has quit [Ping timeout: 240 seconds]
<djellemah>
Ulfalizer: In other words, 1.8.7 is beyond ancient. So many of the articles you'll find on ruby will have syntax that won
<djellemah>
't work. Which will be confusing for you.
l_tonz has quit [Ping timeout: 268 seconds]
<Ulfalizer>
djellemah: i've just moved. still waiting for my regular computers to arrive. should be here in a few days. :)
<Ulfalizer>
stuck with this 2006 laptop until then
<Ulfalizer>
perhaps i could find a newer package for it still
<jhass>
doesn't mean it can't run a recent OS
machan has quit [Ping timeout: 240 seconds]
<Ulfalizer>
nope, just gotta hope someone has packaged up a recent ruby for it. it's a macbook running leopard.
<jhass>
install linux? :P
<Ulfalizer>
i run that on the other ones :)
<djellemah>
Ulfalizer: your tradeoff is then between confusing syntax, and doing an install dance. The install dance might be easier with rvm or similar. No idea about leopard though.
<jhass>
xfce or lxde, will run faster than it ever did
<Ulfalizer>
i'm pretty happy just reading up at the moment. i can pretend the syntax works until later. :P
machan has joined #ruby
bruno- has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
haxrbyte has joined #ruby
<djellemah>
Ulfalizer: At syntax level, 1.8.7 only understands => as the hash key/value separator. And -> for lambdas doesn't exist until 2.0 (I think...). There are quite a few other differences, but I think those two will bite hardest.
<djellemah>
jhass: and utf8 was post-1.8.7, right?
yqt has joined #ruby
juanpablo__ has joined #ruby
Icey has joined #ruby
<jhass>
1.9 improved encoding handling, 2.0 switched source code fallback encoding from ASCII to UTF-8
haxrbyte_ has joined #ruby
rgtk has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 240 seconds]
yqt has quit [Client Quit]
jokke1 has joined #ruby
<Ulfalizer>
why does task() take a single-element name=>prereqs hash instead of taking 'name' and 'prereqs' as two arguments? just to allow a particular syntax to be used?
jokke has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
<djellemah>
Ulfalizer: before keyword arguments, people used a hash to simulate them.
haxrbyte has quit [Ping timeout: 244 seconds]
<jhass>
Ulfalizer: so it looks nice
juanpablo__ has quit [Ping timeout: 240 seconds]
<jhass>
Ulfalizer: it's not keyword argument emulation here, the key is part of the data f or task
Icey has quit [Quit: Leaving]
stamina has quit [Ping timeout: 260 seconds]
<jhass>
there's no particular strong reason really
Icey has joined #ruby
<Ulfalizer>
ok, just wanted to check if you could pass in multiple name=>reqreqs in the hash at once or something
<Ulfalizer>
*prereqs
bruno- has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
<djellemah>
Ulfalizer: in ruby, a method call has provision for one 'implicit' hash, where you don't have to specify the {} around the hash elements.
diegoviola has joined #ruby
Icey has quit [Client Quit]
Icey has joined #ruby
<Ulfalizer>
can you put multiple elements in it? seems kinda odd to pass in single-key hashes left and right.
<Ulfalizer>
unless it's a keyword argument simulation thing maybe, like you mentioned
diegoviola has quit [Client Quit]
radgeRayden has quit [Quit: Leaving]
<jhass>
you can leave the braces off for only the last argument, multiple elements do work then though
<ruboto>
Ulfalizer # => undefined local variable or method `a' for main:Object (NameError) ...check link for more (https://eval.in/461054)
<Ulfalizer>
close :P
htmldrum has quit [Ping timeout: 240 seconds]
OrbitalKitten has joined #ruby
sankaber has quit [Ping timeout: 260 seconds]
sankaber has joined #ruby
<Ray`>
TypeError: Symbol is not a symbol
<Ray`>
best error of the day
peteykun has quit [Ping timeout: 240 seconds]
<djellemah>
Ulfalizer: yeah, whitespace is sometimes significant. :: is the constant resolution operator. Which overlaps with . in some cases.
OrbitalKitten has quit [Ping timeout: 246 seconds]
<djellemah>
>> Constant # Ray`
<ruboto>
djellemah # => uninitialized constant Constant (NameError) ...check link for more (https://eval.in/461058)
<Ulfalizer>
yeah, guessed that was what was going on. C++ has :: as a scope resolution operator too.
bruno- has joined #ruby
<Ulfalizer>
Ray`: it's probably expecting something that's an instance (object) of class Symbol. the class Symbol itself is not an instance of class Symbol, hence the error.
segfalt__ has joined #ruby
<Ulfalizer>
that seems dynamic languagish at least :P
<jhass>
doc conventions, use . to call in Ruby code
<Ulfalizer>
ok, ty
<Ulfalizer>
was just gonna ask if it was valid ruby syntax too :)
<Ulfalizer>
that'd make no sense though, at least not if it's "bare", since it'd be ambiguous with comments :P
aspiers has quit [Ping timeout: 250 seconds]
ruurd has joined #ruby
shellie_ has quit [Quit: brb.]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shellie_ has joined #ruby
kovalevsky has joined #ruby
<kovalevsky>
hello everyonw
<kovalevsky>
I'm using ruby on rails and I want to install a gem that needs to upload or set files in the assets folder but after run the bundle install command I dont see those files
<kovalevsky>
Anyone have any idea about why i'm getting this behavior?
<kovalevsky>
Thanks in advance
creepycat is now known as cats
claptor has joined #ruby
asmodlol has quit [Ping timeout: 268 seconds]
<jhass>
?rails
<ruboto>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<jhass>
and provide more information there
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asmodlol has joined #ruby
<kovalevsky>
ruboto, thanks a lot
<kovalevsky>
:D
kovalevsky has left #ruby ["Leaving"]
kp666_ has joined #ruby
kp666 has quit [Ping timeout: 252 seconds]
mistermocha has joined #ruby
yfeldblum has joined #ruby
duckpuppy has joined #ruby
OrbitalKitten has joined #ruby
shinnya has joined #ruby
bMalum has joined #ruby
dorei has joined #ruby
duckpuppy has quit [Ping timeout: 246 seconds]
mistermocha has quit [Ping timeout: 240 seconds]
zotherstupidguy has joined #ruby
colegatron has quit [Ping timeout: 260 seconds]
treaki has quit [Ping timeout: 256 seconds]
kp666_ has quit [Ping timeout: 250 seconds]
RobertBirnie has joined #ruby
radgeRayden_ is now known as radgeRayden
tlarevo has joined #ruby
kp666 has joined #ruby
blackmesa has joined #ruby
l_tonz has joined #ruby
tlarevo has quit [Ping timeout: 240 seconds]
htmldrum has quit [Ping timeout: 264 seconds]
machan has joined #ruby
radgeRayden_ has joined #ruby
colegatron has joined #ruby
fantazo has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
smoitra has joined #ruby
l_tonz has quit [Ping timeout: 268 seconds]
moeabdol has quit [Read error: Connection reset by peer]
radgeRayden has quit [Ping timeout: 255 seconds]
jokke1 is now known as jokke
moeabdol has joined #ruby
agit0 has joined #ruby
<smoitra>
hi everyone
<smoitra>
I am a rubyist
<al2o3-cr>
o/
<smoitra>
I have been failing in interviews that is quite frustrating for me
ruurd has joined #ruby
tulak has quit [Remote host closed the connection]
devoldmx has joined #ruby
<al2o3-cr>
smoitra: practice makes perfect
<smoitra>
So if anyone could help and mentor me that would be great I know people are busy.
<trosborn>
what have you been struggling with?
<smoitra>
The problem I am now facing is I get quickly out of track trying to do too many things in a hurry
<smoitra>
I have been struggling with ruby and RoR
<totimkopf>
smoitra: what have you been struggling with specifically?
devoldmx has quit [Ping timeout: 240 seconds]
<smoitra>
I have been struggling with ruby language constructs in particular most often I end of writing in efficient 'C' like code
ruurd has quit [Read error: Connection reset by peer]
<smoitra>
*inefficient
ponga has joined #ruby
Alina-malina has quit [Quit: Leaving]
<totimkopf>
smoitra: There are books to remedy those things like Eloquent Ruby and Confident Ruby
ziprar has joined #ruby
<totimkopf>
I haven't read those personally, I've just used The Well Grounded Rubyist... The code in that book is idiomatic ruby afaik :)
ekinmur has joined #ruby
<totimkopf>
smoitra: perhaps you're being too hard on yourself, how long have you been learning ruby?
<smoitra>
Since last year
<totimkopf>
what resources have you been using?
ruurd has joined #ruby
The_Phoenix1 has quit [Ping timeout: 265 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
<smoitra>
Programming ruby 1.9
<smoitra>
try ruby
<smoitra>
and Ruby docs
<trosborn>
if you show us some code, maybe we could help you refactor it to make it more Ruby-esque :)
<smoitra>
trosborn: thankyou but I dont have any of my code handy this time
<totimkopf>
smoitra: until then, check out Confident Ruby, it's a relatively short read
<smoitra>
totimkopf: thankyou I will surely check that out
<havenwood>
smoitra: If now is a good time maybe work through some interview-esque problems and get channel feedback.
symm- has quit [Ping timeout: 265 seconds]
Trynemjoel has joined #ruby
<smoitra>
havenwood: please tell me a good place to start
antgel has quit [Quit: leaving]
<totimkopf>
smoitra: do you remember the questions they asked you in your interviews?
sedai has joined #ruby
Rollabunna has quit [Remote host closed the connection]
<totimkopf>
regarding ruby/rails
sedai has quit [Client Quit]
<smoitra>
They asked me question to tell 3 ways to call a method etc
Voker57 has joined #ruby
<smoitra>
Yeah more realated to ruby on rails
<totimkopf>
do you know the correct answers to all the questions already?
<smoitra>
my interviewer told me I need more understanding of internals of ruby on rails
<smoitra>
no not yet
Alina-malina has joined #ruby
<totimkopf>
if not then create a gist and write down all the questions and I'm sure people will help you answer them all :)
th0m_ has quit [Read error: Connection reset by peer]
<totimkopf>
I'm curious to see the questions myself
<smoitra>
okay
<smoitra>
I will surely make a list of those questions
<totimkopf>
cool :D
The_Phoenix has joined #ruby
djbkd has joined #ruby
Nahra has quit [Remote host closed the connection]
<smoitra>
Thanks all
Nahra has joined #ruby
Azulinho has joined #ruby
radgeRayden_ is now known as radgeRayden
vdamewood has joined #ruby
segfalt__ has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
rgb-one has joined #ruby
djbkd has quit [Ping timeout: 272 seconds]
Jesterovskiy has joined #ruby
fantazo has quit [Quit: Verlassend]
Jesterovskiy has quit [Remote host closed the connection]
tlarevo has joined #ruby
Jesterovskiy has joined #ruby
Jesterovskiy has quit [Client Quit]
bMalum has quit [Quit: bMalum]
bMalum has joined #ruby
davedev24 has joined #ruby
Macaveli has joined #ruby
segfalt__ has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
moeabdol has quit [Read error: Connection reset by peer]
Rinzlit_ has joined #ruby
moeabdol has joined #ruby
h99h9h88 has joined #ruby
radgeRayden has quit [Read error: Connection reset by peer]
smoitra_ has joined #ruby
Rinzlit has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
atomical has joined #ruby
h99h9h88 has quit [Ping timeout: 252 seconds]
rgb-one has left #ruby [#ruby]
smoitra has quit [Ping timeout: 265 seconds]
k3asd` has joined #ruby
juanpablo__ has joined #ruby
User458764 has joined #ruby
trosborn has quit [Quit: trosborn]
zotherstupidguy has quit [Ping timeout: 252 seconds]
quazimodo has quit [Ping timeout: 252 seconds]
yardenbar has quit [Ping timeout: 265 seconds]
juanpablo__ has quit [Ping timeout: 244 seconds]
solocshaw has joined #ruby
grotewold[afk] is now known as grotewold
blackmesa has quit [Ping timeout: 268 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
l_tonz has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
decoponio has joined #ruby
akem has joined #ruby
jamto11 has joined #ruby
l_tonz has quit [Ping timeout: 268 seconds]
zenguy_pc has quit [Ping timeout: 256 seconds]
patdohere has joined #ruby
zotherstupidguy has joined #ruby
rgtk has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 246 seconds]
<Ulfalizer>
where does the 'gem' utility get dependency information from? the Gemfile seems to be related to Bundler, and i assume 'gem' isn't tied to Bundler.
<shevy>
information is written into the .gemspec file used to build a .gem
TheMoonMaster has quit [Ping timeout: 255 seconds]
nullwarp_ has quit [Ping timeout: 246 seconds]
shaileshg has joined #ruby
ainu has joined #ruby
roxtrongo has joined #ruby
but3k4 has joined #ruby
<Ulfalizer>
thanks for digging that up
<Ulfalizer>
and yeah, it looks like the require ought to be enough, even with my limited understanding :P
<jhass>
was a simple Blame away
<Ulfalizer>
just didn't think to check it. i assumed it was doing something common. :)
ainu has quit [Client Quit]
TheMoonMaster has joined #ruby
kp666 has quit [Ping timeout: 252 seconds]
blueOxigen has joined #ruby
null__ has joined #ruby
null__ has joined #ruby
nullwarp has joined #ruby
<Ulfalizer>
the original problem i'm trying to solve is cross-compiling ruby gems containing native extensions (e.g., nokogiri) to non-windows platforms. rake-compiler looked promising, but it seems to be tailored for cross-compilation to windows. :/
<Ulfalizer>
maybe it could be convinced into using other cross-compilers though
<Ulfalizer>
either way it's probably good to have some understanding of how ruby building and ruby gems work first
ivanskie has joined #ruby
<Ulfalizer>
Ox0dea: hax :P
<Ox0dea>
So hax.
c355E3B has joined #ruby
smoitra_ has quit [Ping timeout: 265 seconds]
carving is now known as GeneralElectric
erfus has joined #ruby
roxtrongo has quit [Remote host closed the connection]
Uranio has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
rbennacer has joined #ruby
nullwarp has quit [Ping timeout: 246 seconds]
null__ has quit [Ping timeout: 264 seconds]
cwong_on_irc has quit [Quit: Leaving.]
rfscott has joined #ruby
mhib has joined #ruby
null__ has joined #ruby
null__ has joined #ruby
hakunin_ is now known as hakunin
<djellemah>
Ox0dea: #-prefixed custom syntax. In ruby. Who woulda thunk.
naftilos76 has joined #ruby
<Ox0dea>
djellemah: This language is just crazy-malleable.
<shevy>
where people do all sorts of things without them ever being useful!
browndawg has joined #ruby
grotewold is now known as grotewold[afk]
<djellemah>
That # thing, I can think of a few places it could be useful. But it would drive wtf/line ratio through the roof.
saddad has joined #ruby
rbennacer has quit [Remote host closed the connection]
houhoulis has joined #ruby
<Ox0dea>
shevy: Are you saying you wouldn't want to be able to define instance methods like that?
jacaballero_ has joined #ruby
<shevy>
I don't know what that atrocity is
<Ox0dea>
Yes, you do.
bMalum has joined #ruby
<Ox0dea>
It's not as if there's any particularly good reason to put a comment at the end of a signature, so why couldn't # be co-opted for this purpose?
null__ has quit [Ping timeout: 264 seconds]
K1MOS has joined #ruby
Xeago has quit [Remote host closed the connection]
<shevy>
it's interesting to see that most rubyists drift towards omitting ()
jacaballero has quit [Ping timeout: 268 seconds]
<Ox0dea>
You're not paying attention.
roxtrongo has joined #ruby
K1MOS has quit [Max SendQ exceeded]
<shevy>
just delete the code
asmodlol has quit [Ping timeout: 260 seconds]
Zamerick has joined #ruby
null__ has joined #ruby
null__ has quit [Changing host]
null__ has joined #ruby
nullwarp has joined #ruby
<Ox0dea>
djellemah: The WTFs would be reduced considerably if it were highlighted differently.
jacaballero_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
symm- has joined #ruby
<Ox0dea>
djellemah: And so kindred spirits are we.
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
juanpablo__ has joined #ruby
Uranio has quit [Quit: Leaving]
rfscott has quit [Quit: Lost terminal]
darkf has quit [Quit: Leaving]
segfalt__ has quit [Ping timeout: 255 seconds]
Rollabunna has joined #ruby
<djellemah>
Ox0dea: A while back I was playing with single-assignment futures with blocking semantics - called dataflow variables in at least one other language. But I couldn't find a nice way to assign the value. The best I could come up with was this: soon = Dataflow.new; Thread.new{ puts soon }; soon._ = "The value you wanted, sah!"
<djellemah>
Ox0dea: Can you think of a nicer way?
* Ulfalizer
wonders why the Hoe documentation starts with "Sow generates a new project from scratch. Sow uses a simple ERB templating system..."
<Ulfalizer>
i was expecting "hoe is yadayada. to use hoe, do yadayada. here's the class and function reference: yadayada"
<Ulfalizer>
but maybe i'm looking in the wrong place :P
<djellemah>
Ulfalizer: maybe I'm way off here, but I have a sense most people don't bother with Hoe anymore. bundle gem your_new_gem does pretty much the same thing.
<Ox0dea>
djellemah: Well, you've got about two dozen or so different operators you could repurpose; you're right that `._ = ` isn't very aesthetically pleasing.
juanpablo__ has quit [Ping timeout: 272 seconds]
<Ox0dea>
How about defining #call, so that you could say `soon.(value)`.?
roxtrongo has quit [Remote host closed the connection]
Xeago has joined #ruby
karapetyan has joined #ruby
<djellemah>
Ox0dea: I was trying to keep the assignable instance as close to a transparent delegate as I could. Which is quite a tricky constraint to work with.
browndawg has quit [Read error: Connection timed out]
<Ox0dea>
djellemah: Well, but you've got that `_` attribute, which is something you've got to hand off explicitly, no?
ibouvousaime has joined #ruby
felltir has joined #ruby
_blizzy_ has quit [Quit: Leaving]
<djellemah>
Ox0dea: Not sure what you mean by hand off?
<Ox0dea>
djellemah: Delegate.
mndoci has joined #ruby
null__ has quit [Ping timeout: 264 seconds]
Xeago has quit [Ping timeout: 268 seconds]
<Ox0dea>
djellemah: Or did you mean you want it to look as much like regular assignment as possible?
<djellemah>
Ox0dea: Pretty much. From my perspective _ was the least breakage of transparency. But something has to break transparency. Or the language has to get another operator.
bruno- has joined #ruby
yardenbar has joined #ruby
<Ox0dea>
djellemah: Right, that's the point I meant to make in mentioning the operators at your disposal.
<Ox0dea>
You could define #/, for instance, and then the assignment could be `soon /= value`.
<Ox0dea>
You'd capture the argument, put it wherever you're putting `_` now, and make sure to return `self` so that it's not actually a reassignment.
<Ox0dea>
(We sound crazy.)
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<djellemah>
Ox0dea: Yes, it is a bit crazy. I was a bit obsessive about dataflow variables for a while.
rbennacer has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
bnizzle has joined #ruby
<shevy>
yeah
<shevy>
people are destroying the old IRC :(
<Papierkorb>
Do you need an account to read slack?
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Papierkorb>
I've never tried it, I'm just annoyed by the "wow IRC Slack bots are so helpful" hipsters
<shevy>
hehe
alexherbo2 has quit [Client Quit]
linocisco has joined #ruby
mndoci has quit [Ping timeout: 268 seconds]
segfalt__ has joined #ruby
<shevy>
"Code snippets: Slack has built-in support for them. On IRC you?re just asked to use a pastebin like Gist."
<shevy>
hmm
<shevy>
should not be that difficult to enable... like someone posts a link to a code site, and in the main buffer one could view the source, rather than using the browser to go there. would seem like a managable feature
bMalum has quit [Quit: bMalum]
rodfersou has quit [Ping timeout: 240 seconds]
saddad has quit [Ping timeout: 256 seconds]
<Ox0dea>
Putting it in the main buffer would be noisy, but I am surprised there isn't already a WeeChat script for sending Gist sources to some dedicated buffer.
zenguy_pc has quit [Ping timeout: 268 seconds]
mndoci has joined #ruby
bMalum has joined #ruby
<Papierkorb>
If the pastebin pages would be more smart, KDE would notice it upon me clicking on it and would actually open up my-favorite-code-editor program to show it.
diegoaguilar has quit [Remote host closed the connection]
blue_deref has joined #ruby
<Ox0dea>
Papierkorb: Are you suggesting an editor: protocol?
segfalt__ has quit [Ping timeout: 264 seconds]
<Papierkorb>
Ox0dea: No. Konversation (my IRC client) is configured in such a way that KDE will first send a HEAD request to a link I clicked on in any KDE application. It then uses the Content-Type to figure out which program to use. May be the web browser, but can also be my image viewer or text editor
<Papierkorb>
Afaik, that's the default configuration for KDE
<Ox0dea>
Nifty.
<adaedra>
Some editors already register a protocol to open files with.
Mon_Ouie has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
veg has joined #ruby
null__ has joined #ruby
null__ has quit [Changing host]
null__ has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
nullwarp has joined #ruby
rodfersou has joined #ruby
karapetyan has joined #ruby
BlackCoyote has joined #ruby
bruno- has joined #ruby
<shevy>
emacs!
<shevy>
it has ALL THE THINGS
OrbitalKitten has joined #ruby
BTRE has joined #ruby
Macaveli has joined #ruby
Musashi007 has joined #ruby
<adaedra>
no.
<shevy>
you are a vimster!
<dorei>
one needs guitar lessons before start using emacs :p
zenguy_pc has joined #ruby
mikeharris22 has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
<shevy>
actually that may not be so bad... know those old piano lessons by chance? one entails to putting your upper fingers flat on a surface, then use only one finger to tap a piano key as strong as you possibly can
linocisco has quit [Ping timeout: 250 seconds]
<shevy>
I always struggled with the ring finger
<rgtk>
True. I've been using Vim, then used Emacs as Vim emulator but now using vanilla Emacs.
stannard has quit [Remote host closed the connection]
<rgtk>
It's more ergonomical to me, frankly.
mrtomme has quit [Ping timeout: 260 seconds]
<shevy>
:)
stannard has joined #ruby
swgillespie has joined #ruby
bb010g has joined #ruby
Musashi007 has quit [Client Quit]
mrtomme has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mndoci has quit [Remote host closed the connection]
akem has quit [Ping timeout: 264 seconds]
mndoci has joined #ruby
stannard has quit [Ping timeout: 244 seconds]
mndoci_ has joined #ruby
mndoci has quit [Read error: Connection reset by peer]
fedexo has joined #ruby
SCHAAP137 has joined #ruby
devoldmx has joined #ruby
asmodlol has quit [Ping timeout: 255 seconds]
bruno- has joined #ruby
mndoci_ has quit [Remote host closed the connection]
<Ulfalizer>
ah, yeah, that makes sense in context actually
<adaedra>
(One of the rares cases I can say that without trolling.)
<shevy>
oh dear ...
sandals has joined #ruby
<Ox0dea>
> Although it has been confusing to many developers who do not speak Hebrew, it is still being used in PHP 5
<shevy>
adaedra yeah... that is weird
<Ulfalizer>
native = contains code that needs compiling
<shevy>
I even used to think that this is czech
<shevy>
Ulfalizer you are probably not using windows right?
<adaedra>
But you didn't czech if you were right?
<Ulfalizer>
shevy: nope, trying to cross-compile gems between different linux configurations
NeverDie has joined #ruby
<Ulfalizer>
which it seems no one expects you to do
<Ulfalizer>
so it's a huge mess
<Ox0dea>
Ulfalizer: On a Mac, no less.
<Ulfalizer>
:P
<Ulfalizer>
only until i get my regular boxes
<shevy>
adaedra eh, I was way too confused up there to understand (a) why Paamayim_Nekudotayim is redirected to "Scope resolution operator" and (b) how Ox0dea finds/knows these things. I think he is the Jerry Seinfeld of #ruby
<Ox0dea>
*boxen
mndoci has quit [Remote host closed the connection]
bnizzle has quit [Ping timeout: 240 seconds]
<Ox0dea>
shevy: How do you mean?
<shevy>
Ox0dea you are a born comedian
<adaedra>
shevy: people can just know things, you know.
<Ox0dea>
^
<Ulfalizer>
i still don't get why "rake native gem" spits out two different .gem's - one for linux and one for windows
<Ulfalizer>
that makes no sense with "rake cross compile" though
<Ox0dea>
The answer's 12 on 64-bit, and I can't think why.
<Ulfalizer>
both cross and compile!
<al2o3-cr>
Ox0dea: extra nibble
bnizzle1 has joined #ruby
kp666 has quit [Ping timeout: 260 seconds]
bnizzle has quit [Ping timeout: 246 seconds]
<al2o3-cr>
Come on Van GERWEN
<Ox0dea>
al2o3-cr: Did you mean nybble?
Uranio has joined #ruby
lkba has joined #ruby
<al2o3-cr>
Ox0dea: No, van GERWEN
<Mon_Ouie>
Maybe the size of the object header is the same for 64-bit and 32-bit ruby but the implicit size of a Fiddle::Pointer is not?
<Ox0dea>
Mon_Ouie: No, I don't think Fiddle is playing much a part in it; it's just the most straightforward way to thaw objects.
eminencehc has joined #ruby
nullwarp has joined #ruby
<Ox0dea>
Every Sybmol has a backing String, but it seems like they've got two on 64-bit.
<shevy>
check your Sybmols
Xeago has quit [Remote host closed the connection]
eminence_ has quit [Ping timeout: 264 seconds]
terminalrecluse has joined #ruby
<al2o3-cr>
ruby hacker of the year goes to Ox0dea
<Ox0dea>
I suppose it could be that a new String is winding up in ObjectSpace in the middle of the loop, but I'm using #<<, so I don't see why a new String should get created (and then immediately walked into).
<al2o3-cr>
Ox0dea: I want to see some quines that elite the master
zenguy_pc has joined #ruby
<Ox0dea>
al2o3-cr: You're looking for Endoh-san.
<al2o3-cr>
Ox0dea: you is plenty capable, no?
<Ox0dea>
al2o3-cr: Not of surpassing mame, certainly not.
<al2o3-cr>
Ox0dea: I don't think anyone is
<Ox0dea>
That's correct.
<al2o3-cr>
that guy is is not from planet earth
Contigi has quit [Quit: Leaving]
<Ox0dea>
And he still gave us The Qlobe.
<Ox0dea>
$DEITY bless that beautiful man.
<al2o3-cr>
AWESOME is all i can say!!!!!!!
DiCablo has joined #ruby
moeabdol has quit [Ping timeout: 244 seconds]
pocketprotector has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
bricker has quit [Ping timeout: 252 seconds]
juanpablo__ has joined #ruby
but3k4 has joined #ruby
<al2o3-cr>
Isolated
mistermocha has joined #ruby
MVPhelp has quit [Ping timeout: 260 seconds]
<al2o3-cr>
Ox0dea: why, just why?
devoldmx has joined #ruby
jessemcgilallen has joined #ruby
sandals has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<al2o3-cr>
You fruit cake
<djellemah>
Ox0dea: In a nutshell, the delegator can't disambiguate between handing off a method, and using it as assignment. Ah well, back to ._ = until something better shows up.
juanpablo__ has quit [Ping timeout: 265 seconds]
Uranio has quit [Quit: Leaving]
Trynemjoel has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
devoldmx has quit [Ping timeout: 272 seconds]
banister has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
null__ has joined #ruby
null__ has joined #ruby
<Ox0dea>
djellemah: You must promise me you won't actually use this. https://eval.in/461233
x-light has quit [Remote host closed the connection]
pygospa has joined #ruby
stamina has quit [Ping timeout: 256 seconds]
northfurr has quit [Quit: northfurr]
unreal_ has joined #ruby
Motoservo has joined #ruby
<al2o3-cr>
van GERWEN
<djellemah>
Ox0dea: Heh. I was wondering when the #-thing would show up again. I'll try it. But I won't use it. Much.
<Ox0dea>
djellemah: I suspect there might be some slightly saner way to do it via TracePoint, but that might be overkill.
<djellemah>
Lol. Definitely not! Well, maybe a little.
ponga has quit [Quit: Connection closed for inactivity]
<al2o3-cr>
insane in membrane, insane in the brain
unreal has quit [Ping timeout: 250 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
<al2o3-cr>
*the
<Ox0dea>
djellemah: Bummer; the TracePoint events are the exact same. :<
mistermocha has joined #ruby
<Ox0dea>
As expected, I guess; compound assignment should only ever be a syntactic convenience.
leafybasil has joined #ruby
Trynemjoel has joined #ruby
ivanskie has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
northfurr has joined #ruby
<Ox0dea>
>> class T; def call o; o end end; t = T.new; t :: (42) # djellemah
<tejasmanohar>
will this really work w/ multiple servers / heroku dynos?
<tejasmanohar>
there's no persistence layer, i think
fantazo has quit [Quit: Verlassend]
<tejasmanohar>
isnt it possible a job would execute twice then
northfurr has quit [Quit: northfurr]
fedexo has quit [Ping timeout: 246 seconds]
mistermocha has quit [Ping timeout: 272 seconds]
Creechoftheeast has quit []
<jhass>
tejasmanohar: whenever just generates you the crontab, it doesn't run or schedule anything itself. What to do with that crontab is a job for your deployment
<tejasmanohar>
ahaa
skade has joined #ruby
<tejasmanohar>
is there a good cron-ish implementation in ruby itself?
<tejasmanohar>
rufus-scheduler i guess
northfurr has joined #ruby
<havenwood>
tejasmanohar: whenever
<tejasmanohar>
i thought whenever relies on cron
<tejasmanohar>
i was saying something you can deploy to say heroku
<tejasmanohar>
doesn't need cron
<havenwood>
tejasmanohar: yeah, it does
<havenwood>
ah
<tejasmanohar>
yea
<tejasmanohar>
sorry that was badly phrased
<tejasmanohar>
cron-ish implementation in ruby as in a replacement-ish for apps :P
<apeiros>
snebel: KlassExample and klass are two different objects
<apeiros>
so they do not share instance variables
<snebel>
how could I access that variable?
<apeiros>
you'll have to do self.class.description in your instance
patdohere has quit [Read error: Connection reset by peer]
<snebel>
ah let me try
<apeiros>
that'll call the class method `description` (which you have defined in your example)
mistermocha has quit [Remote host closed the connection]
<apeiros>
the code you gisted btw. seems incomplete. it wouldn't run like that.
d00s has quit [Quit: Lost terminal]
armyriad has quit [Ping timeout: 255 seconds]
OrbitalKitten has joined #ruby
<Authenticator>
jhass: Thanks for the Typhoeus suggestion. I'm looking into it now.
mistermocha has joined #ruby
rgrmatt has joined #ruby
devoldmx has quit [Remote host closed the connection]
armyriad has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
eminence_ has joined #ruby
rgrmatt has quit [Remote host closed the connection]
blackmes1 has joined #ruby
mistermocha has quit [Remote host closed the connection]
eminencehc has quit [Ping timeout: 260 seconds]
<snebel>
I think I'm mixing things and I'm doing something weir, what I'm really looking for is a way for creating an instance from a class using an string to call the class
<snebel>
I was googling over there and found that Object.const_get
<snebel>
what would be the best way to do it?
<shevy>
snebel you have it as string?
<snebel>
I have a bunch of class files
<snebel>
I'm loading them by reading the dir
blackmesa has quit [Ping timeout: 264 seconds]
<snebel>
once loaded i'm trying to instantiate those objects
schi33 has quit [Remote host closed the connection]
<snebel>
dynamically
<shevy>
yeah the problem is that @description is not set since you do not instantiate
DiCablo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
l_tonz has quit [Ping timeout: 244 seconds]
<shevy>
"def self.description" is different than the "def initialize" part; you use @description in both cases, but these are two distinct @description
<Ox0dea>
snebel: Have you considered autoloading?
<snebel>
mmm i didn;t know there is something like this
<snebel>
im pretty new :-)
DiCablo has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<snebel>
i need to read more to understand better...
ivanskie has joined #ruby
<snebel>
step by step coll thanks!
rgrmatt has joined #ruby
<al2o3-cr>
snebel: everyone was once like you are
<snebel>
really grateful!
<Authenticator>
I'm using Net::HTTP.start {} to make many API calls. After it's processed ~16400 items it always falls over with "Errno::EADDRNOTAVAIL: Can't assign requested address - connect(2) ..." - That's suspiciously close to 16384. After a while, I can rerun it and it'll do another ~16k... Any ideas why it fails?
<c355E3B>
Authenticator: are you assigning a port to your socket?
lukaszes has joined #ruby
<havenwood>
"Creates a new Net::HTTP object, then additionally opens the TCP connection and HTTP session."
kp666_ has quit [Ping timeout: 250 seconds]
bMalum has quit [Quit: bMalum]
zenguy_pc has quit [Ping timeout: 260 seconds]
<c355E3B>
Authenticator: whats the output of `cat /proc/sys/net/ipv4/ip_local_port_range` ?
<adaedra>
Authenticator: otherwise, it seems you're running out of anonymous ports on your system. This would mean that the HTTP connections are kept open, maybe for keep-alive or something. Trying to see if you can't mutualize the HTTP objects and do multiple requests could be an idea.
h99h9h88 has joined #ruby
armyriad has quit [Quit: Leaving]
but3k4 has joined #ruby
houhoulis has quit []
<c355E3B>
or just close the connection and force a gc
<Authenticator>
c355E3B: I'm doing start(uri.hostname, uri.port) {|h| ... } if that's what you mean by a port.
<al2o3-cr>
this should fet you right `sudo sysctl -w net.ipv4.ip_local_port_range=$((2**32))`
<al2o3-cr>
Authenticator: uri.host
karapetyan has quit [Remote host closed the connection]
run_kmc has joined #ruby
<Authenticator>
c355E3B: 1024 65000
asmodlol has quit [Quit: Leaving]
<Authenticator>
adaedra: Hmm, I'll see if I can fiddle with keep-alive or something. These are quick requests, and that this does timeout eventually and let me run it again does imply that...
<havenwood>
Authenticator: Is using a persistent connection to the API a possibilty?
run_kmc has quit [Client Quit]
<Authenticator>
havenwood: I have no idea.
juanpablo__ has joined #ruby
<havenwood>
Authenticator: I'm curious, did you try Typhoeus?
l_tonz has joined #ruby
<Authenticator>
c355E3B: I could try throwing in a GC call to see if it helps. It *shouldn't*, but...
karapetyan has joined #ruby
<c355E3B>
I think your exsauting all of your computer's temp ports. So you either need to use the same port or make sure you cull ports your no longer needing.
mhib has quit [Read error: Connection reset by peer]
aspiers has quit [Ping timeout: 264 seconds]
h99h9h88 has quit [Remote host closed the connection]
sandals has joined #ruby
l_tonz has quit [Ping timeout: 255 seconds]
AnoHito_ has quit [Ping timeout: 240 seconds]
juanpablo__ has quit [Ping timeout: 272 seconds]
zenguy_pc has joined #ruby
<havenwood>
Authenticator: Typhoeus supports keep-alive or there are other options that do like HTTP.rb, HTTPClient, Net::HTTP::Persistent, etc.
<banister>
Mon_Ouie rust seems like your kind of language, are you learning it?
<al2o3-cr>
Mon_Ouie: Why?
Starbreaker has joined #ruby
rgrmatt has quit [Remote host closed the connection]
<Mon_Ouie>
banister: 'alut. Never looked at it, no
mikeharris22 has quit [Ping timeout: 252 seconds]
kinduff has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Mon_Ouie>
al2o3-cr: I don't know, maybe because it only makes sense to have one instance of ARGF, though that's not how they implemented true/false
<banister>
Mon_Ouie you should, it'll get your blood pumping again, you'll look away momentarily from the screen, then look back and feel your blood surge, you'll be programming late into the night and need to dive head first into the canal just to cool yourself down
bruno- has quit [Ping timeout: 255 seconds]
uber has quit [Ping timeout: 272 seconds]
opensource_ninja has joined #ruby
<al2o3-cr>
Mon_Ouie: My point exactly
<al2o3-cr>
Just an odd ball?
<Mon_Ouie>
Probably. If you want to see a third way to do it, look at how ENV works.
<al2o3-cr>
When got Y need an X, no?
<Mon_Ouie>
(ENV.class == Object, the methods are on its singleton class)
<banister>
Mon_Ouie are you still bothering with haskell or has that been tossed aside?
<banister>
Mon_Ouie and what new/fascinating projects are you working on?
<banister>
al2o3-cr Mon_Ouie is the rimbaud of ruby
<Mon_Ouie>
I haven't done much lately
<Mon_Ouie>
banister is Rimbaud's biggest fan
Dakuan has joined #ruby
<banister>
Mon_Ouie you're going to give up programming and smuggle guns in/out of africa instead?
<Mon_Ouie>
I'm not actively trying to mimic his life, no ;)
<banister>
i saw the place where he shot verlaine recently, while i was in brussels ;)
<banister>
exciting, too bad it's nearly that ridiculous pissing statue
<al2o3-cr>
Mon_Ouie: Thanks explaination
<al2o3-cr>
*for
<al2o3-cr>
*the
<banister>
al2o3-cr explanation*
<banister>
al2o3-cr you completely messed that up, try again!
<al2o3-cr>
banister: *k thanks
<banister>
near that*
<banister>
oh god, i failed too
<al2o3-cr>
shit happens
bruno- has joined #ruby
<banister>
Mon_Ouie are you doing yoru masters already?
<Mon_Ouie>
Yes, first out of two years
Rollabunna has joined #ruby
<al2o3-cr>
Can anyone tell me why addiction has got the better of me?
<havenwood>
?ot al2o3-cr
<banister>
Mon_Ouie cool, what's your topic?
<banister>
al2o3-cr because god no longer shines his light on you
<banister>
read more rimbaud
Dakuan has quit [Ping timeout: 252 seconds]
hmsimha_ has joined #ruby
<Mon_Ouie>
Oh, the topic of the thesis is picked around the beginning of the next semester
nertzy has joined #ruby
uber has joined #ruby
<banister>
Mon_Ouie has seen the low-hanging sun speckled with mystic horrors
<banister>
Mon_Ouie has seen the dawn rise up like a flock of doves
blueOxigen has quit [Ping timeout: 256 seconds]
ivanskie has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
<Authenticator>
al2o3-cr: Yeah, 2**16 works. Too bad we didn't figure on the p65k limit when Unix was being designed.
Rollabunna has quit [Ping timeout: 255 seconds]
bruno- has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
mag42c has joined #ruby
rgtk has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 244 seconds]
bruno- has quit [Ping timeout: 246 seconds]
tectonic has quit []
m3_del has joined #ruby
l_tonz has quit [Ping timeout: 255 seconds]
l_tonz_ has joined #ruby
m3_del has quit [Read error: Connection reset by peer]
m3_del has joined #ruby
Voker57 has quit [Read error: Connection reset by peer]
krumelmonster1 has quit [Quit: Leaving.]
opensource_ninja has quit [Ping timeout: 240 seconds]
jessemcgilallen has quit [Quit: jessemcgilallen]
DiCablo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
stamina has quit [Ping timeout: 252 seconds]
mistermocha has joined #ruby
Jackneill has quit [Remote host closed the connection]
ElFerna has joined #ruby
riotjone_ has joined #ruby
rgtk has joined #ruby
bruno- has joined #ruby
<dorei>
is there some ruby testing framework where i could provide it with a set of inputs and a set of expected outputs ?
FernandoBasso has quit [Quit: WeeChat 1.3]
riotjon__ has quit [Ping timeout: 240 seconds]
DN404 has joined #ruby
<DN404>
hi
ivanskie has quit [Ping timeout: 260 seconds]
mistermocha has quit [Ping timeout: 256 seconds]
tectonic has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
Ropeney has joined #ruby
bluOxigen has joined #ruby
mikeharris22 has joined #ruby
<al2o3-cr>
DN404: as a duck
htmldrum has joined #ruby
rgtk has quit [Remote host closed the connection]
mikeharris22 has quit [Ping timeout: 260 seconds]
fedexo has joined #ruby
l_tonz_ has quit [Ping timeout: 240 seconds]
<Authenticator>
jhass: havenwood: Wow, Typhoeus is *amazing*. It's like twenty or more times faster than Net::HTTP and I've made well over 16k - 58k in 35 seconds, and it handled it perfectly!
l_tonz has joined #ruby
<jhass>
ikr
scpike has joined #ruby
MVPhelp has joined #ruby
Rickmast_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eminencehc has joined #ruby
Rickmasta has joined #ruby
juanpablo__ has joined #ruby
MVPhelp has quit [Remote host closed the connection]
icbm has quit [Quit: Leaving]
MVPhelp has joined #ruby
kinduff has joined #ruby
zenguy_pc has quit [Ping timeout: 264 seconds]
kinduff has quit [Client Quit]
nertzy has quit [Quit: This computer has gone to sleep]
juanpablo__ has quit [Ping timeout: 255 seconds]
eminencehc has quit [Ping timeout: 240 seconds]
uber_ has joined #ruby
eminencehc has joined #ruby
ohaibbq has joined #ruby
diegoviola has joined #ruby
horsecowdog has joined #ruby
skade has joined #ruby
devbug_ has joined #ruby
Jardayn has quit [Read error: Connection reset by peer]
devbug has quit [Ping timeout: 264 seconds]
Starbreaker has quit []
rbennacer has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tectonic has quit []
zenguy_pc has joined #ruby
l_tonz has quit [Ping timeout: 260 seconds]
skade has quit [Ping timeout: 272 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
trosborn has joined #ruby
mikeharris22 has joined #ruby
Dakuan has joined #ruby
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
l_tonz has joined #ruby
duckpuppy has quit [Ping timeout: 268 seconds]
<shevy>
al2o3-cr it may be how your brain works, but often you can trick your brain