<banisterfiend>
so i overwrite the function with that
<MrZYX>
so the method returns a proc of the original one?
jsatk has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<banisterfiend>
MrZYX yeah, or it executes it if you provide the complete number of arguments, or it returns a partially applied proc
<MrZYX>
mmh
<banisterfiend>
MrZYX so you can do stuff like this too: def stuff(x, y, z) arr.each(&stuff(1, 2))
<banisterfiend>
err def stuff(x, y, z); end
<banisterfiend>
very haskell-y ;)
<MrZYX>
I've the issue that I've a proxy object that I want to work in if's (if the target is nil/false) and in case foo when String statements
<MrZYX>
but I guess that method won't help either here
randomau_ has joined #ruby
OffTheRails has quit [Ping timeout: 248 seconds]
Targen has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
snovak has quit [Ping timeout: 276 seconds]
<bronson_>
I have finished scattering uri.path.sub(%r{^/}, '') everywhere #join is called and it's a mess.
<shevy>
bronson_ I "solved" it for myself by avoiding Pathname permanently
Megtastique has quit [Quit: Megtastique]
<bronson_>
I should have just done string concatenation to start.
<shevy>
then again I don't know half the time why ruby has certain things. like require_relative, I never needed it, plain old require always worked nicely
randomautomator has quit [Ping timeout: 276 seconds]
<bronson_>
shevy: yep, I'll do that next time. Don't tell MrZYX . :)
randomau_ has quit [Read error: Operation timed out]
<MrZYX>
.lstrip('/'), not that I recommend putting that everywhere instead
<shevy>
it's pathing in ruby, half the other guys using ruby are wrong ;)
<MrZYX>
oh, wait that doesn't work
<shevy>
I guess that is there is more than one way to do things
<MrZYX>
I thought there was something like that
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<shevy>
hmm
<shevy>
I have .rstrip and .lstrip
<MrZYX>
yeah, but they don't take arguments
<MrZYX>
I thought they did
<shevy>
odd that they dont accept arguments
<bronson_>
yeah, that sounds like a great idea to me.
brianpWins has quit [Quit: brianpWins]
<shevy>
either there must be a reason why they don't or noone thought about it yet
<MrZYX>
well, I guess I just confused with .chomp
iliketur_ has quit [Quit: zzzzz…..]
mansi has joined #ruby
atyz has quit [Quit: Leaving...]
jlast has joined #ruby
pvizcay has joined #ruby
<shevy>
there is also .chop
<MrZYX>
.chop doesn't take one either iirc
Megtastique has joined #ruby
<MrZYX>
it just always removes the last char
Nisstyre has quit [Quit: Leaving]
zeade has quit [Quit: Leaving.]
<shevy>
I like chop
<shevy>
it reminds me of cutting wood
Megtastique has quit [Client Quit]
crunch-choco has quit [Quit: Lost terminal]
aeontech has joined #ruby
VTLob has quit [Quit: VTLob]
atyz has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
rickmasta has joined #ruby
Xeago has quit [Remote host closed the connection]
tyfighter has quit [Quit: tyfighter]
freeayu has joined #ruby
cajueiro has quit [Remote host closed the connection]
rcosta has joined #ruby
huevon has quit [Quit: WeeChat 0.4.1]
mlpinit has joined #ruby
digital-ghost has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
mlpinit has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
iliketur_ has joined #ruby
ehc has quit [Quit: ehc]
Ziarkaen has quit [Remote host closed the connection]
swordsmanz has quit [Quit: ooh ponies kinkeyyy]
apok has quit [Quit: apok]
dodosan has quit [Remote host closed the connection]
dodosan has joined #ruby
pvizcay has quit [Quit: leaving]
dodosan has quit [Ping timeout: 246 seconds]
dodosan has joined #ruby
c0rn has quit [Read error: Operation timed out]
rickmasta has quit [Quit: Leaving...]
Nisstyre has joined #ruby
wmoxam has joined #ruby
nari has joined #ruby
lukec has quit [Quit: lukec]
mklappstuhl has joined #ruby
ewnd9 has joined #ruby
Davey has joined #ruby
zigomir has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Client Quit]
Emiils has quit [Read error: Operation timed out]
pkrnj has joined #ruby
brianpWins has joined #ruby
brianpWins has quit [Client Quit]
rickmasta has joined #ruby
Shirakawasuna has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
emanu has quit [Quit: emanu]
snovak has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
s00pcan has quit [Ping timeout: 246 seconds]
snovak has quit [Ping timeout: 276 seconds]
mansi has quit [Remote host closed the connection]
Shirakawasuna has left #ruby ["Leaving"]
Voodoofish430 has quit [Quit: Leaving.]
mansi has joined #ruby
zorg24 has joined #ruby
havenwood has quit [Remote host closed the connection]
sevenseacat has joined #ruby
Ripp__ has joined #ruby
stkowski has joined #ruby
Ripp__ has quit [Client Quit]
<shevy>
MrZYX.chop!
<shevy>
MrZY.chop!
mansi has quit [Ping timeout: 240 seconds]
<shevy>
MrZ.chop!!!!
<shevy>
he is gone
<shevy>
hmm... one unnecessary chop
<shevy>
or rather !
iliketur_ has quit [Quit: zzzzz…..]
rcosta has quit [Remote host closed the connection]
marsLantern has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
sparq_ has joined #ruby
mklappstuhl has joined #ruby
banghouse2 has joined #ruby
marsLantern has quit [Client Quit]
MrZYX is now known as MrZYX|off
tyfighter has joined #ruby
tyfighter has quit [Client Quit]
stuartrexking has joined #ruby
v0n has joined #ruby
gildo has quit [Read error: Operation timed out]
JadedEvan has quit [Quit: Leaving]
rickmasta has quit [Quit: Leaving...]
Spami has quit [Quit: This computer has gone to sleep]
mando has joined #ruby
zigomir has quit [Ping timeout: 276 seconds]
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
ryandeussing has quit [Remote host closed the connection]
denken_ is now known as denken
<zendeavor>
just made sure he was really really gone
<zendeavor>
you put him in the negaverse
twoism has quit [Ping timeout: 245 seconds]
gazarsgo has quit [Quit: gazarsgo]
ryandeussing has joined #ruby
aeontech has quit [Quit: aeontech]
mansi has joined #ruby
ryandeussing has quit [Ping timeout: 245 seconds]
rickmasta has joined #ruby
_maes_ has joined #ruby
caju has joined #ruby
wmoxam has quit [Ping timeout: 245 seconds]
confounds has joined #ruby
Orxata_ has joined #ruby
<Orxata_>
Hello
thesheff17 has quit [Quit: Leaving]
scarolan has quit [Ping timeout: 276 seconds]
thesheff17 has joined #ruby
jlast has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
<Orxata_>
I have a file with 53 lines with the following format: <a target="bla" href="https://ble" etc="asd"> and I want to make a script that takes the link part and request for its content to the server
jlast has joined #ruby
C0deMaver1ck has quit [Ping timeout: 245 seconds]
lyanchih has joined #ruby
Xaitec has joined #ruby
louism2wash has joined #ruby
jlast has quit [Ping timeout: 264 seconds]
snovak has joined #ruby
Tobarja has joined #ruby
C0deMaver1ck has joined #ruby
C0deMaver1ck is now known as Guest69483
Ripp__ has joined #ruby
thesheff17 has quit [Quit: Leaving]
vlad_starkov has joined #ruby
thesheff17 has joined #ruby
Guest69483 has quit [Changing host]
Guest69483 has joined #ruby
Guest69483 is now known as C0deMaver1ck
caju has quit [Remote host closed the connection]
Ripp__ has quit [Client Quit]
narcan has joined #ruby
emergion has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
mklappstuhl has quit [Remote host closed the connection]
marcgg_ has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
Megtastique has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
OffTheRails has joined #ruby
thesheff17 has quit [Quit: Leaving]
thesheff17 has joined #ruby
aryaching has quit []
emergion has quit [Quit: Computer has gone to sleep.]
Vivekananda has quit [Ping timeout: 245 seconds]
kaspergrubbe has quit [Remote host closed the connection]
gazarsgo has joined #ruby
lukec has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
rickmasta has quit [Quit: Leaving...]
riddochc has joined #ruby
sporkbomb has quit [Quit: leaving]
riddochc has left #ruby [#ruby]
wallerdev has quit [Quit: wallerdev]
ehc has joined #ruby
pweems has quit [Ping timeout: 248 seconds]
adeponte has quit [Remote host closed the connection]
argentum has joined #ruby
scarolan has joined #ruby
pweems has joined #ruby
OffTheRails has quit [Ping timeout: 248 seconds]
ioNull has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
radic__ has joined #ruby
iliketur_ has joined #ruby
Megtastique has quit [Quit: Megtastique]
louism2wash has quit [Quit: Leaving]
scarolan has quit [Ping timeout: 246 seconds]
mrsolo has joined #ruby
Xaitec has quit [Remote host closed the connection]
radic_ has quit [Ping timeout: 260 seconds]
bklane has joined #ruby
arooni-mobile has quit [Quit: Leaving]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zorg24 has quit [Ping timeout: 264 seconds]
ravster has quit [Quit: Leaving.]
<zendeavor>
use an html or xml parser
<Orxata_>
rather than make a script?
duracrisis has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
confounds has quit [Ping timeout: 240 seconds]
<zendeavor>
no
<zendeavor>
as part of the script
lyanchih has quit [Quit: lyanchih]
dodosan has quit [Remote host closed the connection]
iliketur_ has quit [Quit: zzzzz…..]
ehc has quit [Quit: ehc]
narcan has joined #ruby
dodosan has joined #ruby
bklane has quit [Remote host closed the connection]
|PiP| has joined #ruby
leonardorb has joined #ruby
leonardorb has quit [Remote host closed the connection]
dodosan has quit [Ping timeout: 245 seconds]
<Orxata_>
ok i'm gonna try that, thank you
guiocavalcanti has joined #ruby
adeponte has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
narcan has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
iliketur_ has joined #ruby
ehc has joined #ruby
banghouse2 has quit [Remote host closed the connection]
narcan has quit [Client Quit]
jnoob22 has joined #ruby
narcan has joined #ruby
narcan has quit [Client Quit]
narcan has joined #ruby
narcan has quit [Client Quit]
iliketur_ has quit [Quit: zzzzz…..]
Megtastique has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
thebastl has quit [Remote host closed the connection]
tomzx_mac has quit [Ping timeout: 246 seconds]
thebastl has joined #ruby
mklappstuhl has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
newUser1234 has joined #ruby
hasrb has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
allanm_ has joined #ruby
jbpros has joined #ruby
mahlon_ has quit [Read error: Connection reset by peer]
mahlon_ has joined #ruby
newUser1234 has quit [Ping timeout: 264 seconds]
allanm has quit [Ping timeout: 240 seconds]
freeayu has quit [Quit: This computer has gone to sleep]
thebastl has quit [Remote host closed the connection]
jbpros has quit [Client Quit]
Senjai has quit [Ping timeout: 260 seconds]
ananthakumaran has joined #ruby
speakingcode-wor has quit [Ping timeout: 256 seconds]
lukec has quit [Quit: lukec]
jbpros has joined #ruby
jbpros has quit [Client Quit]
yacks has quit [Ping timeout: 246 seconds]
YaNakilon has quit [Ping timeout: 246 seconds]
cads has quit [Ping timeout: 246 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
dodosan has quit [Remote host closed the connection]
rickmasta has quit [Quit: Leaving...]
yacks has joined #ruby
dodosan has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
speakingcode-wor has joined #ruby
cads has joined #ruby
SteveBenner9 has quit [Quit: Leaving]
SteveBenner9 has joined #ruby
badabim has joined #ruby
<SteveBenner9>
hello
<SteveBenner9>
has anyone used HTTPS over SSL?
<SteveBenner9>
finding it difficult to diagnose my issue in Ruby ... I keep getting a timeout message when trying to send HTTP requests over SSL to my server, using a client key only to verify since server is self-signed (new proj.)
<jrobeson>
uhmm.. everybody does..
<SteveBenner9>
however, openssl s_client is working fine
<SteveBenner9>
I get the desired response using the same key file
dodosan has quit [Ping timeout: 276 seconds]
<SteveBenner9>
=)
<SteveBenner9>
I see
<SteveBenner9>
everyone uses it or finds difficult to diagnose? :0
<SteveBenner9>
:o
<jrobeson>
ah.. that's a different problem .. so.. you're just asking how figure out what's timing out when using https connection with client certificates
ch_ has quit [Remote host closed the connection]
<jrobeson>
you said https over ssl.. and i was like wut?
<SteveBenner9>
I'm new to SSL in general, right
<SteveBenner9>
err, HTTP over SSL
<jrobeson>
well.. first make it work without the client certificates
<SteveBenner9>
meaning key authentication, rather than password only
<SteveBenner9>
yes, I'm trying with ONLY a keyfile
<jrobeson>
start with one piece at a time
<jrobeson>
well make it work withotu any keyfiles
hiroyuki_ has quit [Ping timeout: 245 seconds]
<SteveBenner9>
can't get that working but openssl s_client works using just -key flag and the file
<jrobeson>
and then.. make it work with keyfiles
gildo has joined #ruby
ch_ has joined #ruby
<jrobeson>
it'll be easier to figure out where the problem comes from
rickmasta has joined #ruby
casheew has joined #ruby
<SteveBenner9>
so you are saying use a server-side certificate to authenticate the client?
<SteveBenner9>
at some point the ssl handshake needs one side to present a secure key as I understand.
<jrobeson>
i'm saying just make it work
<jrobeson>
ruby works without providing any client certificates at all
<jrobeson>
i mean every http library of any worth.. works just fine
wallerdev has quit [Quit: wallerdev]
<jrobeson>
without providing any specific certificates
<jrobeson>
because it looks at the OS certificate store
aryaching has joined #ruby
<jrobeson>
to verify the server certificate
<SteveBenner9>
yes, here is the issue: my server has no official CA
<SteveBenner9>
its our own service, so it self-signs.
<jrobeson>
well you can import your self signed cert
<SteveBenner9>
ergo the trouble
<jrobeson>
look up how to integrate it into your os's certificate store
<SteveBenner9>
thats what I thought you meant, ok I will try this..
<jrobeson>
but in any case.. it wouldn't just time out
<jrobeson>
it would tell you it couldn't verify
<jrobeson>
and just not work
<jrobeson>
like accessing it in firefox or whatever
ch_ has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
<SteveBenner9>
thanks for the advice.
<SteveBenner9>
what baffles me is why command line openssl s_client is working but not any ruby libs I have tried
<jrobeson>
all i'm reallying say. is just go with one piece at a time
<SteveBenner9>
our server is in erlang, so it's difficult to troubleshoot..
hiroyuki has joined #ruby
<jrobeson>
perhaps you're not doing it right.. perhaps there is a bug.. etc
<SteveBenner9>
Right. of course
<SteveBenner9>
most likely.
<jrobeson>
openssl is a terrible library.. and quite hard to integrate correctly
snovak has joined #ruby
<SteveBenner9>
I wish I could write a Ruby SSL library from the ground up
<jrobeson>
haven't you found examples on the internet on how to do it ?
<SteveBenner9>
Everything I've looked at is horribly documented
<jrobeson>
seems like you can't be the first.. or the 100000th person who wants to do this
<SteveBenner9>
well it all builds on top of openssl... I mean I'd like to replace it ;)
<SteveBenner9>
right.. It's not my current project but I'm just wistful
<SteveBenner9>
haha
<SteveBenner9>
if I had time... I totally would
<SteveBenner9>
Ruby is my life
mansi has joined #ruby
<SteveBenner9>
jrobeson: do you know of any technique to observe the direct network traffic "under the hood" of the ruby library
mando has quit [Remote host closed the connection]
helvete has quit [Quit: Leaving...]
<SteveBenner9>
linux/mac/windows anything
<SteveBenner9>
I run all 3
<SteveBenner9>
oh and to clarify: i mean the traffic running when I make the request, not the static lib code which I have glanced at.. But that is too in-depth really
ewnd9 has quit [Remote host closed the connection]
<SteveBenner9>
I dug until I struck 'C', then about face. Hah..
vlad_starkov has quit [Ping timeout: 276 seconds]
<SteveBenner9>
thanks anyhow...
SteveBenner9 has quit [Quit: Leaving]
snovak has quit [Ping timeout: 248 seconds]
<Nogbit>
is your issue with a ruby client or ruby server? Im able to use the "restclient" gem and make ssl requests with a cert/key
dash_ has joined #ruby
jlast has joined #ruby
mansi has quit [Ping timeout: 248 seconds]
badabim has quit [Remote host closed the connection]
ahg has joined #ruby
S0da has quit [Read error: Operation timed out]
Eiam has quit [Ping timeout: 260 seconds]
ewnd9 has joined #ruby
S0da has joined #ruby
zets has joined #ruby
thebastl has joined #ruby
<Nogbit>
oh he left, oh well!
heftig has joined #ruby
SteveBenner9 has joined #ruby
<Nogbit>
yes, Im using rest client, it works fine, no need for the CA
sparq_ has quit [Ping timeout: 240 seconds]
ntus1017 has joined #ruby
jlast has quit [Ping timeout: 276 seconds]
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
dodosan has joined #ruby
carraroj has joined #ruby
heftig has quit [Quit: Quitting]
hiroyuki has quit [Ping timeout: 245 seconds]
pwh has joined #ruby
heftig has joined #ruby
pwh has quit [Max SendQ exceeded]
aryaching has quit [Read error: Connection reset by peer]
hiroyuki has joined #ruby
aryaching has joined #ruby
pwh has joined #ruby
cj3kim has quit [Remote host closed the connection]
thebastl has quit [Remote host closed the connection]
freeayu has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Tuxist has joined #ruby
emergion has joined #ruby
yxhuvud has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
freeayu has quit [Client Quit]
cj3kim has quit [Ping timeout: 256 seconds]
carraroj has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
spider-mario has joined #ruby
mklappstuhl has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
hamakn has joined #ruby
Quashie has joined #ruby
carraroj has quit [Ping timeout: 276 seconds]
rezzack has quit [Quit: Leaving.]
ebouchut has joined #ruby
mansi has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
snovak has joined #ruby
<zendeavor>
the answer is the same in both cases
hamed_r has joined #ruby
ananthakumaran has joined #ruby
obs has joined #ruby
_honning_ has quit [Ping timeout: 276 seconds]
eregon has joined #ruby
io_syl has quit [Quit: io_syl]
mansi has quit [Ping timeout: 245 seconds]
narcan has joined #ruby
druonysuse has joined #ruby
ntus1017 has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 276 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Emiils has joined #ruby
SteveBenner9 has quit [Quit: Leaving]
quazimodo has joined #ruby
havenwood has joined #ruby
txdv has quit [Read error: Operation timed out]
ebouchut has quit [Quit: This computer has gone to sleep]
wargasm has quit [Ping timeout: 245 seconds]
eregon has quit [Ping timeout: 264 seconds]
ebouchut has joined #ruby
sparq_ has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 264 seconds]
polysics has joined #ruby
<polysics>
hello
nerdman has joined #ruby
jarray52 has quit [Quit: Leaving.]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
Ripp__ has joined #ruby
quazimodo has quit [Ping timeout: 264 seconds]
quazimodo has joined #ruby
decoponio has joined #ruby
blackmesa has joined #ruby
Lewix has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
MrZYX|off is now known as MrZYX
hamakn has quit [Ping timeout: 248 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<polysics>
hi tehre! I was exploring external control of a Sidekiq job (mostly stopping it)
haxrbyte has quit [Read error: Connection reset by peer]
huf has quit [Ping timeout: 256 seconds]
atno has joined #ruby
thebastl has joined #ruby
<polysics>
what options are there? Redis polling, filesystem polling, DRb
<polysics>
is FS polling too heavy?
huf has joined #ruby
_serial_ has joined #ruby
vlad_starkov has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
_serial_ has quit [Client Quit]
Ripp__ has quit [Quit: Ripp__]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
vlad_starkov has quit [Ping timeout: 245 seconds]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mneorr has joined #ruby
thillux has joined #ruby
dash_ has quit [Ping timeout: 260 seconds]
mneorr has quit [Remote host closed the connection]
druonysuse has quit [Ping timeout: 276 seconds]
ewnd9 has quit [Read error: Connection reset by peer]
ewnd9 has joined #ruby
eliasp has quit [Read error: Connection reset by peer]
eliasp has joined #ruby
teddyp1cker has joined #ruby
kvirani_ has joined #ruby
ehaliewicz has quit [Ping timeout: 240 seconds]
kvirani has quit [Ping timeout: 276 seconds]
<existensil>
polysics: depends the specifics of your filesystem polling implementation and, of course, how big your workload is
casheew has quit [Quit: leaving]
casheew has joined #ruby
cj3kim has joined #ruby
<existensil>
but, the best and most portable solution is to use redis, clearly, since Sidekiq already depends on it and all your workers will be connected to it
<existensil>
and you won't have to mess with anything when you end up having multiple servers full of workers, since they'll (presumeably) point to the same redis instance/pool
thebastl has quit [Remote host closed the connection]
<existensil>
redis is already your point of failure with your sidekiq workers. no reason to avoid the dependency with your extension, since redis will work awesome for what you want
<existensil>
you can also use pub/sub
<existensil>
(via redis)
<polysics>
would you recommend sharing the sidekiq Redis connection?
<polysics>
or is it enough to just connect to Redis from the worker?
cj3kim has quit [Ping timeout: 245 seconds]
browndawg has quit [Ping timeout: 260 seconds]
<existensil>
polysics: The overhead for a second connection isn't very high. Might allow you the flexibility also of using a seperate redis db if needed later for the external control stuff
ryandeussing has joined #ruby
<polysics>
I was thinking of using a "stop" namespace. If a job finds its own JID in that, it stops
<existensil>
but reusing the sidekiq connection should work just fine, so either approach has merit
thebastl has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
Zolo has joined #ruby
<polysics>
I tried looking on how to reuse it, but it seems like you have to create a connection ,then tell Sidekiq to use that
<existensil>
that makes sense. you could also store the JID in a single "set" data type in redis. save a little space and keep your key space cleaner.
<existensil>
instead of one-key-per-job
<existensil>
you have one key with all the stop IDs in it
<platzhirsch>
waxjar: that's interesting, unfortunately I am getting my JSON documents from Elasticsearch and not the file system
binaryplease has joined #ruby
bld0 has quit [Quit: ...]
<platzhirsch>
I am really not sure how to implement this. I need all documents at the beginning to initialize my class and then I need to call a compute method on each of the documents. Load, initialize, free, load initialize, free... load, compute, free ...
siaW has joined #ruby
<waxjar>
it doesn't have to come from the file system platzhirsch :)
axeman- has quit [Remote host closed the connection]
duggiefresh_ has joined #ruby
<platzhirsch>
waxjar: I see, I am not sure whether this is the right approach yet
obs has quit [Ping timeout: 245 seconds]
<platzhirsch>
I am not sure, but I think my problem is the Elasticsearch Ruby wrapper, it loads the documents into memory
ebouchut has quit [Quit: This computer has gone to sleep]
kvirani_ has quit [Remote host closed the connection]
kvirani has joined #ruby
SteveBenner09 has joined #ruby
mansi_ has joined #ruby
jan1337zZz is now known as jan1337z
jan1337z is now known as Jan
duggiefresh_ has quit [Quit: duggiefresh_]
predator117 has quit [Ping timeout: 246 seconds]
Jan is now known as Guest80165
nerdman has quit [Quit: leaving]
predator117 has joined #ruby
kvirani has quit [Ping timeout: 276 seconds]
mansi_ has quit [Ping timeout: 245 seconds]
duggiefresh_ has joined #ruby
sayan has joined #ruby
axeman- has joined #ruby
duggiefresh_ has quit [Client Quit]
lkba has joined #ruby
sayan has quit [Remote host closed the connection]
rcosta has joined #ruby
Xaitec has joined #ruby
predator117 has quit [Ping timeout: 248 seconds]
ivanf has joined #ruby
freeayu has quit [Quit: This computer has gone to sleep]
osvico has joined #ruby
ryandeussing has joined #ruby
ewnd9 has quit [Ping timeout: 264 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
ryandeussing has quit [Read error: Operation timed out]
dodosan has joined #ruby
predator117 has joined #ruby
intuxicated has quit [Quit: Leaving]
mklappstuhl has joined #ruby
sventon has joined #ruby
krz has joined #ruby
dodosan has quit [Ping timeout: 260 seconds]
lotherk1 has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
Krungthep has left #ruby [#ruby]
<mostlybadfly>
Does anyone ever use compilr?
<mostlybadfly>
I'm trying to figure out if an ide is even necessary if I have gedit and irb
<mostlybadfly>
Probably just preference
snovak has joined #ruby
_JamieD_ has quit [Quit: _JamieD_]
lotherk has quit [Ping timeout: 264 seconds]
caju has joined #ruby
<_br_>
mostlybadfly: You are trying to learn Ruby?
<mostlybadfly>
Yeah
<mostlybadfly>
I know everyone suggests vim but it's such a pita lol
snovak has quit [Ping timeout: 264 seconds]
<_br_>
Well, editors are like ice cream, so what ever rocks your boat is fine.
predator117 has joined #ruby
aryaching has joined #ruby
rcosta has quit [Remote host closed the connection]
krz has quit [Quit: krz]
<mostlybadfly>
I ended up using. Gedit with gmate plugins and I'm pretty comfortable with it
<_br_>
To answer your question, you certainly don't need an IDE to learn ruby. Simple ruby interpreter or repl and whatever texteditor you've got will be fine.
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
sergicles has joined #ruby
gildo has quit [Ping timeout: 246 seconds]
<SteveBenner09>
once you are intermediate though, IDE's can be awesome
BizarreCake has joined #ruby
<SteveBenner09>
well there's only one really RubyMine but I use it constantly
<SteveBenner09>
but starting out I think simple is far better
<_br_>
Discussing editors/ide's is so useless anyway.
<mostlybadfly>
Ah OK cool thanks guys :)
axeman- has quit [Remote host closed the connection]
<SteveBenner09>
Hey is anyone familiar with Rhodes/Rhomobile?
<mostlybadfly>
I'm only on day 3 so I have a ways to go :p
<SteveBenner09>
it's pretty useless.
binaryplease has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
vlad_starkov has joined #ruby
kvirani has joined #ruby
<_br_>
SteveBenner09: Asking to ask, will get you no where.
badabim has quit [Ping timeout: 246 seconds]
Wildhoney has joined #ruby
<SteveBenner09>
_br_: I'm looking for advice with my Rhodes app, the mechanism is not very well explained so I'm looking for Rhodes developers
mansi_ has joined #ruby
mneorr has quit [Remote host closed the connection]
aryaching has quit [Read error: Connection reset by peer]
aryaching_ is now known as aryaching
SteveBenner09 has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
siera08 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130814063812]]
mansi_ has quit [Remote host closed the connection]
leonardorb has joined #ruby
wallerdev has quit [Quit: wallerdev]
Neomex has joined #ruby
rcosta has joined #ruby
zoee has joined #ruby
axeman- has joined #ruby
jan1337zZz is now known as jan1337z
hiroyuki_ has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
hiroyuki has quit [Ping timeout: 256 seconds]
Matriks has joined #ruby
leonardo_ has joined #ruby
leonardorb has quit [Read error: Connection reset by peer]
predator117 has quit [Ping timeout: 256 seconds]
lukec has joined #ruby
razi has joined #ruby
lemonsparrow has joined #ruby
razi has quit [Client Quit]
Desert_eagle has joined #ruby
mrsolo has joined #ruby
burlyscudd has joined #ruby
krz has quit [Quit: krz]
lucazi has quit [Remote host closed the connection]
burlyscudd has quit [Client Quit]
predator117 has joined #ruby
jan1337z is now known as jan1337zZz
devoldmx3 has joined #ruby
mneorr has joined #ruby
lotherk1 has quit [Quit: Leaving.]
devoldmx has quit [Ping timeout: 264 seconds]
nari has joined #ruby
v0n has joined #ruby
cj3kim has joined #ruby
solrize_ has joined #ruby
guiocavalcanti has joined #ruby
cj3kim has quit [Ping timeout: 248 seconds]
lotherk has joined #ruby
rcosta has quit [Remote host closed the connection]
lemonsparrow has quit [Quit: Page closed]
v0n has quit [Ping timeout: 260 seconds]
ryandeussing has joined #ruby
sevenseacat1 has joined #ruby
threesome has quit [Read error: Operation timed out]
lucazi_ has joined #ruby
lotherk has quit [Client Quit]
Deele has quit [Ping timeout: 240 seconds]
sevenseacat has quit [Read error: Connection reset by peer]
mansi_ has joined #ruby
blo has quit [Ping timeout: 264 seconds]
devoldmx3 has quit [Ping timeout: 276 seconds]
blo has joined #ruby
blo has quit [Changing host]
blo has joined #ruby
siera08 has joined #ruby
Deele has joined #ruby
huevon has quit [Write error: Broken pipe]
solrize_ has quit [Ping timeout: 240 seconds]
staafl has joined #ruby
browndawg has joined #ruby
companion is now known as Companion
staafl_alt has quit [Ping timeout: 264 seconds]
<shevy>
mostlybadfly I myself never suggest vim
<shevy>
vim and emacs should both die
senayar has joined #ruby
<mostlybadfly>
OK yeah I have certain people that are like omg you need this
<shevy>
an editor written in ruby would be cool though
<shevy>
other than redcar (I hate java)
<zets>
I use rubymine most of the time. Vim can be good once you load it up with plugins but there's a huge learning curve.
hamakn has joined #ruby
sevenseacat1 is now known as sevenseacat
wallerdev has joined #ruby
mneorr has quit [Ping timeout: 246 seconds]
tjad has quit [Ping timeout: 245 seconds]
mneorr has joined #ruby
<zendeavor>
the learning curve for vim is hugely overblown
<Morrolan>
You can start with the very basic features, and work your way up. *shrug*
<sebastianb>
all you need at first is how to write the file and quit the editor
<sebastianb>
sometimes you may need the almighty vim skill for searching
jefflyne has joined #ruby
snovak has joined #ruby
<Morrolan>
And maybe 'Esc Esc Esc Esc Esc i' if you're stuck in some obscure mode or command. :)
siera08 has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130814063812]]
<sebastianb>
I never had to press Esc more than twice (when I was stuck :P)
<Morrolan>
I like to be on the safe side. :P
<sebastianb>
more than two times? (english is not my first language)
<Morrolan>
twice == two times.
<sebastianb>
Yeah, I know that
<sebastianb>
I just thought for a second that 'two times' sounds more... english way :D
duggiefresh_ has quit [Quit: duggiefresh_]
<sebastianb>
nvm
<Morrolan>
I'd say that, in this case, it doesn't matter. But maybe there's some obscure rule. :D
rcosta has joined #ruby
gildo has joined #ruby
Xeago_ has joined #ruby
snovak has quit [Read error: Operation timed out]
devoldmx has joined #ruby
duggiefresh_ has joined #ruby
vlad_starkov has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
anonymuse has joined #ruby
leonardo_ has quit [Read error: Connection reset by peer]
<_br_>
shevy: Ok, I bite. What is wrong with ViM and EMACS?
leonardorb has joined #ruby
<_br_>
Just curious if this is just some good ol' trolling or if you have some comment that is actually worth discussing.
<shevy>
I am sure you have heard it all before
<_br_>
Probably.
<_br_>
Isn't the whole discussion of bashing various editors just bullshit?
<shevy>
and I am not sure what you want to discuss, either. It either has features or it does not. Basically it comes down to several things - first and foremost, there is the claim that it has a steep learning curve (which it has) and at a later time you will become god-like productive
<_br_>
Well, don't all editors habe that?
<shevy>
Absolutely not at all. You spend many hours in an editor if you code in it, so the discussion is part of one's life just as much.
<shevy>
they have different featuresets
<_br_>
So you define vim, emacs == bs due to their learning curve?
<shevy>
the workflows in vim or i.e. sublime or bluefish are very different, the amount of keystrokes are different, the way how the brain has to work to operate either of these will be different
<_br_>
Excatly, different. Some people will love it, others hate it.
vlad_starkov has quit [Ping timeout: 264 seconds]
<_br_>
Its like oh you like apples? I hate apples they all suck. Oranges are the rage.
<shevy>
_br_ no, I have a million complaints. do you want to ignore 99% of the complaints and narrow it down to just one argument where you could then refute it? I give you another one - the syntax to extend vim is absolute, total and utter shit
<shevy>
there is no argument behind your statement _br_
<_br_>
Actually the one spouting air is you shevy.
<shevy>
if a:Forward let SearchCmd = '/' else let SearchCmd = '?' endif
<shevy>
_br_ I gave you a few arguments so far. it's not my fault if you can not accept them
<shevy>
_br_ what editor do you use?
<Morrolan>
So far you've provided us with two reasons you dislike vim, shevy. I'm sure we can come up with two resons we like it. :)
<shevy>
Morrolan ok start
<_br_>
shevy: Does it matter? How does my preference make any difference to your logical fallacy?
<_br_>
Lets say I use good ol' ed.
<shevy>
_br_ because I went ahead and listed arguments against it. You refuted that these arguments hold no value, you gave zero alternatives and you didn't admit to using vim either
<shevy>
no you don't
<shevy>
if you can not even admit to your main editor, why do you want to "discuss"?
<_br_>
Because you are trolling and winding yourself up about utter BS.
<Morrolan>
Eh, two things I like about it? Multiline edit. Visual selection blocks. And yes, those aren't unique to vim.
Neomex has quit [Quit: Neomex]
<shevy>
_br_ that is because you are unable to accept criticism. I dont know why though, I conclude you are a vimster
<_br_>
Ah, jumping to conclusions.
<shevy>
what is "visual selection" - other editors can not select text?
<shevy>
_br_ Ah, unable to discuss. :)
<Morrolan>
shevy: Why need I list features which are unique to it?
<shevy>
Morrolan I did not say that, these two features could be extremely important in your workflow, that is perfectly fine
* Morrolan
shrugs
<_br_>
shevy: How can I discuss this with you? You are already accusing me ad hominem, and with other various logical fallacies. Not very objective is it?
<shevy>
I found the extreme dominance of vim and emacs very strange, it is as if people require help from an editor in order to be competent
<shevy>
_br_ hey buddy, who of you started with the "trolling" "argument"?
<_br_>
How about the whole idea of burst mode editing? Is that bs?
<_br_>
shevy: You, by touching a decade old flame war topic.
<shevy>
no, you did man
<shevy>
here I paste for you:
<shevy>
-> <_br_> Just curious if this is just some good ol' trolling or if you have some comment that is actually worth discussing.
<_br_>
Well, what are your arguments then? Except nothing you said so far?
<shevy>
you set the tone by insinuating that there are only two modes possible - either it must be trolling, or there must be a "comment" worth discussing. what is the "comment" worth discussing when you haven't come to your own conclusio before?
<shevy>
<_br_> Actually the one spouting air is you shevy. <---
<shevy>
_br_ You need to mature up.
<_br_>
What is the editor then we SHOULD use shevy ?
<shevy>
It's also curious how you label it as "old flame war".
argentum has joined #ruby
<_br_>
Oh well, go back in old usenet times and read the lists. There is so much of it.
<shevy>
_br_ different people have different needs, it would be silly to assume that there is one perfect editor that would fit everyone's needs
<_br_>
Oh wow.
argentum has quit [Client Quit]
<_br_>
But certainly emacs and vim have to die?
<Morrolan>
shevy: That doesn't go well together with.. yea.
<shevy>
yes
* Morrolan
snrks
<shevy>
both vim and emacs users are those unable to see alternatives
<Morrolan>
Bullshit.
<existensil>
an editor for everyone already exists, but everyone hates it...
<existensil>
eclipse
* Morrolan
stabs existensil
<shevy>
I hate java :(
<Morrolan>
Oh, it has plugins for all kinds of languages.
<Morrolan>
But Eclipse and me never really got friends. :)
duggiefresh_ has quit [Quit: duggiefresh_]
<existensil>
proof that solving everyone's needs is not really what everyone wants, or that needs are different than features and often mutually exclusive
<_br_>
Oh, ok. So much for listening to todays trolling. Thanks shevy.
<shevy>
_br_ thanks my gay friend
* Morrolan
puts on a helmet
shevy was kicked from #ruby by apeiros [using 'gay' as a derogatory is unwelcome]
<_br_>
haha, more ad hominem
shevy has joined #ruby
mklappstuhl has joined #ruby
dayepa has quit [Quit: dayepa]
<shevy>
apeiros please continue
<_br_>
Well, sorry for that guys. Its actually also part my fault, I should have not discussed stuff like that. shevy please give it a rest.
<shevy>
we need equal rights - can I call _br_ a troll?
<existensil>
since it he wasn't simultaneously using the derogatory comment to belittle or critique your argument, i think its technically just name calling
dayepa has joined #ruby
<shevy>
_br_ I think it is ok if I call you a troll
<shevy>
_br_ so I guess I have to apologize for my earlier words
nignaztic has joined #ruby
<shevy>
well I am fine with that
<shevy>
I just find it unfair to chime in a discussion, side with one, threaten (me) with a ban yet the other side with nothing at all
<_br_>
I had enough of this. Have a nice day, cheers.
<apeiros>
shevy, _br_: if you want to continue this discussion, please go elsewhere.
<apeiros>
I will not tolerate it here anymore.
<shevy>
alright, I am done.
heftig has quit [Read error: Connection reset by peer]
heftig has joined #ruby
Matriks has quit [Remote host closed the connection]
<apeiros>
and shevy: using an attribute of people as a derogatory term is unwelcome. nobody is born a troll. there is no troll-race or no troll-people. it's not about you insulting _br_ or _br_ insulting you. it's about you using gay as a derogatory that got you kicked.
futilegames has joined #ruby
marcgg has quit [Ping timeout: 248 seconds]
nazty has quit [Ping timeout: 248 seconds]
mklappstuhl has quit [Ping timeout: 240 seconds]
<apeiros>
and I didn't kick you nor _br_ for ad-hominems because I'm not present here all the time to play kindergarten teacher.
sayan has joined #ruby
<futilegames>
Working on client work on a Saturday when I'd planned to do some side project coding :(
marcgg has joined #ruby
fourq_ is now known as fourq
rcosta has quit [Remote host closed the connection]
daniel_hinojosa has joined #ruby
OffTheRails has joined #ruby
OffTheRails has quit [Remote host closed the connection]
bklane has joined #ruby
jlast has joined #ruby
<_br_>
apeiros: Thanks for beaking up the discussion. You are quite right.
anonymuse has quit [Remote host closed the connection]
<_br_>
shevy: Sorry for getting you wound up and for calling you a troll. I am just so tired of this editor discussions, hence my comments. I think I read way to many flamewars of this on the usenet.
<shevy>
let's forget it
aryaching_ has joined #ruby
<zendeavor>
emacs is cool
sayan has quit [Excess Flood]
<existensil>
futilegames: same
aryaching has quit [Ping timeout: 240 seconds]
<shevy>
lol
zendeavor was kicked from #ruby by apeiros [no fuel for this.]
<shevy>
can't deny that, matz uses emacs
zendeavor has joined #ruby
<zendeavor>
man im juss sayin
<existensil>
what editor would hitler have used?
<apeiros>
zendeavor: yes. I'm just saying too. I said the discussion ended there. that applies to you too.
<zendeavor>
hey man can't we all just be friends
sayan has joined #ruby
<shevy>
existensil whoa
tommyvyo has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
<Morrolan>
He was an aspiring painter, not an aspiring coder. ;)
ebouchut has joined #ruby
cj3kim has joined #ruby
<existensil>
right, but modern designers need something for CSS and such. I hope if he was born today he'd be a struggling web designer, screaming at his boss trying to make him learn front end coding, instead of trying to conquer Europe
<existensil>
if that scenario did play out... I wonder what editor he'd be drawn to
<zets>
neinpad
sayan has left #ruby [#ruby]
<existensil>
it would have to be someone visually appealing I would assume, but sublime seems too soft for hitler
<existensil>
s/someone/somewhat/
<existensil>
I bet the terminal would scare him, so vim and emacs are both out
<Morrolan>
Maybe he'd be an Adobe Dreamweaver follower. :)
<existensil>
ah, yes, Dreamweaver
<existensil>
you win
<shevy>
the terminal is so useful
<existensil>
yeah, but you won't convince hitler of that
<existensil>
i mean, all of Europe couldn't convince him Jews were people
hiroyuki_ has quit [Remote host closed the connection]
Rym has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
hiroyuki has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
carraroj has joined #ruby
ryandeussing has quit [Remote host closed the connection]
cookiemonsta has left #ruby [#ruby]
newUser1234 has joined #ruby
aryaching_ has quit []
obs has joined #ruby
obs has quit [Client Quit]
lotherk has joined #ruby
dodosan has joined #ruby
obs has joined #ruby
Guest00000 has joined #ruby
ebouchut has quit [Quit: This computer has gone to sleep]
Jake232 has joined #ruby
dodosan has quit [Ping timeout: 248 seconds]
lotherk has quit [Ping timeout: 264 seconds]
airtonix_ has joined #ruby
airtonix has quit [Ping timeout: 240 seconds]
lyanchih has joined #ruby
anonymuse has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
newUser1234 has quit [Remote host closed the connection]
guiocavalcanti has quit [Remote host closed the connection]
philcrissman_ has quit [Remote host closed the connection]
spundun has quit [Read error: Connection reset by peer]
atno has quit [Remote host closed the connection]
anonymuse has quit [Remote host closed the connection]
atno has joined #ruby
JDHankle has joined #ruby
<existensil>
yes, that was the inspiration for the question. with the accusations of ad hominems i thought it would be fun to try and actually lighten the conversation using hitler
St_Marx has joined #ruby
rcosta has joined #ruby
<existensil>
as opposed to the comparisons godwins law is based off, which usually are hyperbolic and a sign of a conversation that has devolved
atyz has quit [Read error: Connection reset by peer]
helvete has joined #ruby
JDHankle has joined #ruby
ryandeussing has joined #ruby
ewnd9 has quit [Ping timeout: 260 seconds]
teddyp1cker has quit [Remote host closed the connection]
yacks has quit [Ping timeout: 245 seconds]
<anildigital>
Tests
jan1337zZz is now known as jan1337z
yacks has joined #ruby
lyanchih has quit [Quit: lyanchih]
gemmy has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
m8 has quit [Read error: Connection reset by peer]
m8 has joined #ruby
mneorr has quit [Remote host closed the connection]
carraroj has joined #ruby
leonardorb has quit [Remote host closed the connection]
alpha123 has joined #ruby
predator117 has quit [Ping timeout: 260 seconds]
snovak has joined #ruby
<Orxata_>
Well I love notepad
<gemmy>
Given an ActiveRecord Model that has relationships ( for example Post.comments ) how can I serialize all the tree in YAML or XML? I've done an erb template but, is there a better way?.tia
<existensil>
you offer a good example of how an opinion, if bad enough, does actually warant questioning the character and inteligence of the person posessing the opinion
<polysics>
wow, I must admit I was skeptic about Capybara Webkit integration tests
<polysics>
jsut a few broad reaching features caught me a lot of bugs
<polysics>
gemmy: I am not a Rails expert, but can't you do something like to_xml.include(:comments)?
maxmanders has quit [Quit: Computer has gone to sleep.]
scarolan has joined #ruby
caju has joined #ruby
baroquebobcat has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
vadelius has quit [Ping timeout: 245 seconds]
sayan has joined #ruby
predator117 has quit [Ping timeout: 240 seconds]
caju has quit [Ping timeout: 264 seconds]
predator117 has joined #ruby
fsck3r has joined #ruby
fsck3r has quit [Client Quit]
fsck3r has joined #ruby
sayan has quit [Max SendQ exceeded]
ssvo has joined #ruby
ntus1017 has joined #ruby
caju has joined #ruby
sayan has joined #ruby
nomenkun_ has joined #ruby
ssvo has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
axeman- has joined #ruby
gildo has joined #ruby
wormwood has quit [Quit: WeeChat 0.4.1]
ssvo has quit [Quit: leaving]
Monie has quit [Read error: Connection reset by peer]
ssvo has joined #ruby
whowantstolivefo has joined #ruby
nomenkun_ has quit [Read error: Connection reset by peer]
ryandeussing has joined #ruby
rcosta has joined #ruby
sparq_ has joined #ruby
endash has joined #ruby
rcosta_ has quit [Ping timeout: 276 seconds]
Evixion has quit [Read error: Connection reset by peer]
Davey has joined #ruby
bnagy has quit [Ping timeout: 264 seconds]
bnagy has joined #ruby
nomenkun has joined #ruby
headius has joined #ruby
gildo has quit [Ping timeout: 260 seconds]
jds_ has quit [Remote host closed the connection]
vadelius has joined #ruby
philcrissman_ has joined #ruby
endash has quit [Client Quit]
carraroj has joined #ruby
Evixion has joined #ruby
wormwood has joined #ruby
philcrissman_ has quit [Ping timeout: 276 seconds]
jds_ has joined #ruby
iliketur_ has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
rcosta has quit [Remote host closed the connection]
blackmesa has joined #ruby
danielfriedman has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
alpha123 has quit [Ping timeout: 264 seconds]
huevon has joined #ruby
sayan has joined #ruby
intuxicated has joined #ruby
carraroj has joined #ruby
vlad_starkov has joined #ruby
_honning_ has quit [Read error: Operation timed out]
fsck3r has quit [Quit: Leaving...]
endash has joined #ruby
starfox21 has joined #ruby
vadelius has quit [Ping timeout: 245 seconds]
binaryplease has joined #ruby
kvirani has quit [Remote host closed the connection]
araujo has quit [Read error: Connection reset by peer]
kvirani has joined #ruby
araujo has joined #ruby
rcosta has joined #ruby
cody-- has joined #ruby
nitish has joined #ruby
Spami has joined #ruby
Monie has joined #ruby
kvirani has quit [Ping timeout: 276 seconds]
graft is now known as Guest53117
polysics has joined #ruby
browndawg has left #ruby [#ruby]
Companion is now known as companion
ssvo has quit [Ping timeout: 264 seconds]
agjacome has joined #ruby
headius has quit [Quit: headius]
vadelius has joined #ruby
polysics has quit [Ping timeout: 245 seconds]
rickruby has quit [Remote host closed the connection]
axeman- has quit [Remote host closed the connection]
_JamieD_ has joined #ruby
fsck3r has joined #ruby
snovak has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
rcosta has quit [Remote host closed the connection]
i_s has joined #ruby
threesome has joined #ruby
aef has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 264 seconds]
katselphrime has joined #ruby
Targen has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Guest83359 has quit [Read error: Connection reset by peer]
rcosta has joined #ruby
binaryplease has quit [Quit: WeeChat 0.4.1]
blackmesa has joined #ruby
monkegjinni has quit [Remote host closed the connection]
altamic has joined #ruby
DanKnox_away is now known as DanKnox
altamic has left #ruby [#ruby]
pweems has joined #ruby
Nitrodex has joined #ruby
monkegjinni has joined #ruby
companion is now known as Companion
Nitrodex is now known as Guest36251
philcrissman_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
Ripp__ has joined #ruby
kvirani has joined #ruby
nomenkun has quit [Remote host closed the connection]
yacks has quit [Ping timeout: 260 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
danielfriedman has quit [Quit: danielfriedman]
OZzl has quit [Read error: Connection reset by peer]
mneorr_ has joined #ruby
fsck3r has quit [Quit: Leaving...]
_JamieD_ has quit [Quit: _JamieD_]
OZzl has joined #ruby
<dnyy>
so if I have an array of objects, how can i split them into separate arrays objects with foo is "a" go in one array, foo is "b" goes in another, and so on?
blackmesa has quit [Ping timeout: 240 seconds]
Megtastique has joined #ruby
<dnyy>
without knowing the amount of new arrays that will be created*
ssvo has joined #ruby
yacks has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<apeiros>
I don't quite get by what rule you want to split
<apeiros>
maybe make an example of in/output?
mneorr has quit [Ping timeout: 245 seconds]
endash has quit [Quit: endash]
Nisstyre has quit [Quit: Leaving]
<dnyy>
basically, i have a bunch of active records in an array. i want the output to be [ [ created_thursday, created_thursday ], [ created_friday], [ created_saturday ] ] if that makes sense. basically into different arrays by the created_at field.
<dnyy>
i guess i could brute force it, but i'm wondering if there's any method on array or something that'd help (couldn't find anything useful in the docs)
Nisstyre has joined #ruby
Nisstyre has quit [Client Quit]
fsck3r has joined #ruby
carraroj has quit [Ping timeout: 276 seconds]
cody-- has quit [Quit: Computer has gone to sleep.]
hasrb has quit [Remote host closed the connection]
airtonix_ has joined #ruby
carraroj has joined #ruby
airtonix has quit [Ping timeout: 240 seconds]
hadees has joined #ruby
newUser1234 has joined #ruby
polysics has joined #ruby
caju has joined #ruby
starfox21 has quit [Quit: starfox21]
vlad_sta_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
Megtastique has quit [Quit: Megtastique]
starfox21 has joined #ruby
alpha123 has joined #ruby
polysics has quit [Ping timeout: 248 seconds]
rickmasta has quit [Quit: Leaving...]
cody-- has joined #ruby
nicoulaj has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
Megtastique has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
<shevy>
wow
<shevy>
lua lua-5.2.2.tar.xz
<shevy>
198K in size
snovak has joined #ruby
Triconium has quit [Quit: Leaving...]
ananthakumaran has quit [Quit: Leaving.]
<shevy>
hmmm
<shevy>
mruby is not much larger though
<shevy>
mruby-master.tar.xz 206K
robustus has joined #ruby
airtonix_ has quit [Ping timeout: 256 seconds]
<shevy>
compared to ... ruby-2.0.0p247.tar.xz 8.0M
kaspergrubbe has quit [Remote host closed the connection]
Squarepy has quit [Quit: Leaving]
akells`` has joined #ruby
snovak has quit [Read error: Operation timed out]
<jrobeson>
lua's stadard library is a ton smaller than ruby..
<jrobeson>
like waaaay smaller
Es0teric has joined #ruby
starfox21 has quit [Quit: starfox21]
airtonix has joined #ruby
fsck3r has quit [Quit: Leaving...]
senayar has joined #ruby
lukec has quit [Quit: lukec]
Blue_Ice has joined #ruby
jds_ has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
caju has quit [Remote host closed the connection]
marcgg has joined #ruby
senayar has quit [Ping timeout: 246 seconds]
<waxjar>
will mruby have a stdlib? it doesn't have require, right
lotherk has joined #ruby
setient has quit [Ping timeout: 245 seconds]
setient has joined #ruby
<shevy>
hmm
pweems has quit [Ping timeout: 240 seconds]
<shevy>
how can people load addons in mruby?
kham has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<waxjar>
seems like there is a mruby-require project
<alpha123>
lua is just a much simpler language than ruby, I'm not surprised it's tiny. It's also much less useful, in general. (Not saying it's useless -- on the contrary, I like Lua a lot)
lotherk has quit [Ping timeout: 248 seconds]
cape_2005 has joined #ruby
lyanchih has joined #ruby
mercwithamouth has joined #ruby
thebastl has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
djdeluxe76 has joined #ruby
cody-- has quit [Quit: Computer has gone to sleep.]
rcosta has joined #ruby
dodosan has joined #ruby
monkegjinni has joined #ruby
djdeluxe76 is now known as Munster
cody-- has joined #ruby
Xaitec has joined #ruby
r0bglees0n has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
pweems has joined #ruby
cody-- has quit [Client Quit]
marcgg_ has joined #ruby
cape_2005 has quit [Quit: Verlassend]
marcgg has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
nomenkun has joined #ruby
rickruby has joined #ruby
ssvo has joined #ruby
lyanchih has quit [Quit: lyanchih]
nomenkun has quit [Ping timeout: 240 seconds]
rcosta has quit [Ping timeout: 240 seconds]
sparq_ has joined #ruby
rickruby has quit [Ping timeout: 264 seconds]
vlad_sta_ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
Ripp__ has quit [Quit: Ripp__]
infecto has joined #ruby
sambao21 has joined #ruby
sayonarauniverse has joined #ruby
sayan has quit [Quit: Leaving]
Megtastique has quit [Quit: Megtastique]
s00pcan has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 246 seconds]
smoothbutta has joined #ruby
smoothbu_ has quit [Read error: Connection reset by peer]
carraroj has quit [Quit: Konversation terminated!]
fsck3r has joined #ruby
newUser1234 has quit [Remote host closed the connection]
gemmy has quit [Quit: homehomehome]
akells`` is now known as akells
polysics has joined #ruby
freeayu has joined #ruby
pwh has quit [Quit: pwh]
katselphrime has quit [Quit: WeeChat 0.3.7]
baroquebobcat has joined #ruby
sventon has quit [Remote host closed the connection]
newUser1234 has joined #ruby
polysics has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
ssvo has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
xk_id has quit [Ping timeout: 264 seconds]
monkegjinni has joined #ruby
bricker has quit [Ping timeout: 264 seconds]
snovak has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
ch_ has joined #ruby
ch_ has quit [Remote host closed the connection]
ch_ has joined #ruby
xk_id has joined #ruby
platzhirsch has left #ruby [#ruby]
Companion is now known as companion
kaspergrubbe has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 245 seconds]
Notte has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
Quashie has quit [Ping timeout: 246 seconds]
baroquebobcat has joined #ruby
duggiefresh_ has joined #ruby
mansi_ has quit [Remote host closed the connection]
mansi has joined #ruby
fsck3r has quit [Quit: Leaving...]
spider-mario has quit [Remote host closed the connection]
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
kham has quit [Quit: WeeChat 0.4.1]
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
mansi has quit [Ping timeout: 248 seconds]
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
fsck3r has joined #ruby
caju has joined #ruby
pwh has joined #ruby
Xeago has joined #ruby
duggiefresh_ has quit [Quit: duggiefresh_]
baroquebobcat has quit [Quit: baroquebobcat]
wesside has quit [Ping timeout: 256 seconds]
milardovich has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
singularity9 has quit [Read error: Connection reset by peer]
<existensil>
Isn't Louisville, KY where Ernie Miller lives? He's an amazing dev, but I'm guessing you'd have to pay a lot to get him to tutor.
popl has joined #ruby
Jake232 has joined #ruby
tkuchiki has joined #ruby
singularity9 has joined #ruby
i_s has joined #ruby
lotherk has joined #ruby
bdscvr has left #ruby [#ruby]
jds_ has joined #ruby
lotherk has quit [Client Quit]
lotherk has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
soulcake has joined #ruby
Monie has quit [Ping timeout: 240 seconds]
xk_id has quit [Ping timeout: 240 seconds]
siaW has quit [Quit: siaW]
ferdev has joined #ruby
ferdev has quit [Client Quit]
Deele has quit [Quit: User excited]
Quashie has joined #ruby
newUser1234 has joined #ruby
sambao21 has quit [Ping timeout: 264 seconds]
akells has quit [Remote host closed the connection]
i_s has quit [Ping timeout: 260 seconds]
Monie has joined #ruby
metrix has joined #ruby
_veer has quit [Ping timeout: 260 seconds]
huoxito has quit [Quit: Leaving]
akells has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
ch_ has quit [Remote host closed the connection]
xk_id has joined #ruby
rcosta has joined #ruby
Quashie_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #ruby
<metrix>
I am using Thread.pool to do some things in a threaded manner. at this point I can display the data, but I would like to do something with the result of each thread in the primary app. How do I pass data from a thread back to the application?
Quashie has quit [Ping timeout: 245 seconds]
akells has quit [Remote host closed the connection]
<metrix>
I was thinking of something along the lines of "results.each do |x|" as the results come in, but i'm not sure how to go about that
xk_id has quit [Ping timeout: 276 seconds]
<Spitfire>
metrix, do you want to pass the data while the thread is still doing it's stuff, or are you happy to return it once the thread has finished?
akells has joined #ruby
xk_id has joined #ruby
pwh has quit [Quit: pwh]
<shevy>
hmm anyone has an idea for requiring a module and auto-including this upon requiring? how to accomplish that?
nicoulaj has quit [Remote host closed the connection]
<MrZYX>
like always for that module or arbitrarily for any module?
maxmanders has quit [Quit: Computer has gone to sleep.]
<metrix>
spitfire: I was thinking while it's still running.. but i would be OK with completing everything after
<shevy>
MrZYX only for that module that is required. I am thinking of having this like so (just thinking): require 'foobar' <--- normal way to include it require 'foobar/autoinclude' <--- automatically do include Foobar upon require, somehow... I am unsure if that is even possible though
wmoxam has joined #ruby
<Spitfire>
metrix, hmm, well. In general terms the normal way to pass stuff from a thread back to the main instance is to use "return datavariable" to terminate the thread.
<MrZYX>
shevy: can't you just include the module in the file you're requiring?
<MrZYX>
main is the same object everywhere, isn't it?
<Spitfire>
And you collect that by calling .join on the thread (from the main thread), which makes the main thread wait until you get the return before continuing.
pkrnj has quit [Quit: Computer has gone to sleep.]
lkba has quit [Ping timeout: 264 seconds]
<metrix>
spitfire: I see
<Spitfire>
So something like thr = thread.new(return "hello"); var = thr.join; print var;
<shevy>
MrZYX yeah I could include it, it's a bit tedious though
<Spitfire>
Would output "hello"
hamakn has quit [Ping timeout: 245 seconds]
<shevy>
class Foo1; include Shared ... class Foo2; include Shared
<Spitfire>
Ages since I've programmed though, so I probably can't help you on the specifics much.
<Spitfire>
But that's the theory! :p
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<metrix>
LOL
<metrix>
Spitfire: Thank you for the help!
Matriks has quit [Remote host closed the connection]
<Spitfire>
I'm sure you can find quite a lot on google if you just search for "joining threads" and such like.
<Spitfire>
No worries.
Xaitec has quit [Remote host closed the connection]
rcosta has quit [Remote host closed the connection]
optimusprimem has quit [Ping timeout: 245 seconds]
ch_ has joined #ruby
hamakn has joined #ruby
polysics has joined #ruby
<Spitfire>
metrix, fwiw, you can do some magic to allow you to pass data back while the thread is still running.
ch_ has joined #ruby
<Spitfire>
But that's only because ruby is magic. A lot of languages can't really do that smoothly.
<metrix>
I see
<Spitfire>
And tbh you run into quite a lot of difficulties / race conditions / etc if it's not done properly.
<metrix>
I will look into it some more :)
Rym has quit [Ping timeout: 245 seconds]
polysics has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
newUser1234 has quit [Remote host closed the connection]
guiocava_ has quit [Remote host closed the connection]
s00pcan has joined #ruby
snovak has joined #ruby
xk_id has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
MrZYX is now known as MrZYX|off
xk_id has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
agjacome has quit [Quit: leaving]
S0da has joined #ruby
optimusprimem has joined #ruby
ch_ has quit [Remote host closed the connection]
|PiP| has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
rgbdev has joined #ruby
wmoxam has quit [Ping timeout: 245 seconds]
anonymuse has quit [Remote host closed the connection]
larissa has joined #ruby
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
huevon has quit [Quit: WeeChat 0.4.1]
guiocavalcanti has joined #ruby
druonysuse has quit [Read error: Connection reset by peer]
druonysuse has joined #ruby
druonysuse has joined #ruby
druonysuse has quit [Changing host]
pweems has quit [Ping timeout: 246 seconds]
s00pcan has quit [Remote host closed the connection]
guiocavalcanti has quit [Read error: No route to host]
duracrisis has joined #ruby
guiocavalcanti has joined #ruby
ssvo has joined #ruby
s00pcan has joined #ruby
mansi has joined #ruby
atno has quit [Ping timeout: 264 seconds]
dodosan has quit [Remote host closed the connection]
metrix has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130814063812]]
Rym has joined #ruby
mansi has quit [Ping timeout: 276 seconds]
atno has joined #ruby
s00pcan has quit [Ping timeout: 264 seconds]
eka has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
ch_ has joined #ruby
ch_ has quit [Remote host closed the connection]
ch_ has joined #ruby
monkegjinni has joined #ruby
druonysuse has quit [Read error: Connection reset by peer]
pwh has joined #ruby
klaut has quit [Ping timeout: 260 seconds]
pwh has quit [Max SendQ exceeded]
druonysuse has joined #ruby
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
akells has quit [Remote host closed the connection]
klaut has joined #ruby
Wildhoney has joined #ruby
monkegjinni has quit [Remote host closed the connection]
pwh has joined #ruby
pwh has quit [Max SendQ exceeded]
pwh has joined #ruby
druonysuse has quit [Client Quit]
druonysus has joined #ruby
caju has quit [Remote host closed the connection]
adeponte has joined #ruby
adeponte has quit [Remote host closed the connection]
adeponte has joined #ruby
yfeldblum has joined #ruby
Villadelfia has quit [Read error: Connection reset by peer]
pitzips has joined #ruby
argentum has quit [Quit: argentum]
adeponte has quit [Ping timeout: 245 seconds]
s00pcan has joined #ruby
klaut_ has joined #ruby
Villadelfia has joined #ruby
klaut has quit [Ping timeout: 245 seconds]
cody-- has joined #ruby
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
staafl has quit [Ping timeout: 248 seconds]
rhys has quit [Quit: Ex-Chat]
MadMao has joined #ruby
rcosta has joined #ruby
infecto has quit [Ping timeout: 260 seconds]
Rym has quit [Ping timeout: 276 seconds]
polysics has joined #ruby
xk_id has quit [Quit:
vlad_starkov has quit [Remote host closed the connection]
s00pcan has quit [Quit: Lost terminal]
dodosan has joined #ruby
infecto has joined #ruby
blackmesa has joined #ruby
gildo has joined #ruby
polysics has quit [Ping timeout: 276 seconds]
rickruby has joined #ruby
predator217 has joined #ruby
gossfunkel has joined #ruby
ch_ has quit [Remote host closed the connection]
snovak has joined #ruby
predator117 has quit [Ping timeout: 245 seconds]
dodosan has quit [Ping timeout: 246 seconds]
rickruby has quit [Ping timeout: 240 seconds]
adeponte has joined #ruby
iamjarvo has joined #ruby
SteveBenner09 has joined #ruby
alpha123 has quit [Quit: Lost terminal]
newUser1234 has joined #ruby
snovak has quit [Ping timeout: 248 seconds]
t0rc has joined #ruby
druonysus has quit [Read error: Connection reset by peer]
druonysus has joined #ruby
newUser1234 has quit [Ping timeout: 245 seconds]
atyz has joined #ruby
Ripp__ has quit [Quit: Ripp__]
klaut_ has quit [Remote host closed the connection]