amerine has quit [Quit: Computer has gone to sleep.]
JohnBat26 has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 256 seconds]
baba has joined #ruby-lang
drbrain has quit [Ping timeout: 260 seconds]
ridget has quit [Remote host closed the connection]
yobiflare has quit [Ping timeout: 260 seconds]
johnnyfive has joined #ruby-lang
nXqd has quit [Ping timeout: 245 seconds]
havenwood has quit [Read error: Connection reset by peer]
mantono has joined #ruby-lang
b1rkh0ff has quit [Ping timeout: 276 seconds]
<certainty>
moin
mjio has quit []
KA_ has quit [Quit: KA_]
nXqd has joined #ruby-lang
b1rkh0ff has joined #ruby-lang
workmad3 has joined #ruby-lang
ImSexyandIknowit has joined #ruby-lang
innohero has joined #ruby-lang
dc5ala has joined #ruby-lang
drbrain has joined #ruby-lang
<freedrull>
what was ruby like before rails
<freedrull>
:X
<drbrain>
smallor
kiwnix has quit [Remote host closed the connection]
amerine has joined #ruby-lang
<freedrull>
more japanese?
ottbot has joined #ruby-lang
gnufied has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
marco__ has quit [Remote host closed the connection]
zmack has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
zmack_ has joined #ruby-lang
francisfish has joined #ruby-lang
zmack has quit [Ping timeout: 248 seconds]
beho has joined #ruby-lang
<certainty>
freedrull: further from a community equal to that of php
<certainty>
well that's a bit unfair i guess, as ruby inherits the community from rails, but not the other way around
francisfish has quit [Remote host closed the connection]
tbuehlmann has joined #ruby-lang
dr_bob has joined #ruby-lang
dr_bob has quit [Client Quit]
ottbot has quit [Ping timeout: 248 seconds]
dr_bob has joined #ruby-lang
ebouchut has quit [Read error: Connection reset by peer]
face has quit [Ping timeout: 260 seconds]
solars has joined #ruby-lang
face has joined #ruby-lang
<whitequark>
the only certainty here is that suggesting the concept of inheritance instead of subsetting is wrong...
<whitequark>
*ahem* sorry
<Asher>
anyone have any links about dispatch between unicorn and a frontend slow-client server like nginx or apache? i'd like to know more specifically about the relationship between slow-client server keepalive connections and unicorn worker instances
<whitequark>
Asher: nginx backend is pure http/1.0, no keepalive there
<Asher>
er… i was just reading about keepalive on nginx?
<Asher>
my understanding was that one of the hot points for nginx is that it can keepalive clients with very low overhead
chekcmate has joined #ruby-lang
<chekcmate>
hi all
rue|w has joined #ruby-lang
<whitequark>
Asher: _backend_
<whitequark>
the part that connects to unicorn, that is
<whitequark>
nginx does not keep connections to unicorns, it handles the keepalive'ness by itself and only pushes single requests further.
<Asher>
so let's say i'm dealing with websockets - every time a socket wants new content from the back end it will have to start with a new worker instance?
<antbody>
Can you use websockets with unicorn? Don't they recommend something else for that (might be wrong though).
<whitequark>
^ that
<whitequark>
you can use websockets with thin
<Asher>
any links as to the recommendation?
<Asher>
would like to understand why thin vs unicorn for sockets
<whitequark>
Asher: thin works, unicorn doesn't
<Asher>
no i got that, i'm curious as to why that is
<whitequark>
unicorn simply does not have support for backgrounding a stream
<Asher>
b/c the backend is 1.0 only?
<whitequark>
mhm. afaik unicorn will accept http/1.1 requests, but it doesn't support keepalive nor pipelining
<Asher>
right but i thought that's why you use a frontend like nginx
<Asher>
to handle keepalive and pipelining
maxmanders has joined #ruby-lang
<whitequark>
pretty much
maxmande_ has joined #ruby-lang
<chekcmate>
whitequark: mind giving me a helping head for a second?
emocakes has joined #ruby-lang
<whitequark>
chekcmate: ok
Mon_Ouie has joined #ruby-lang
maxmanders has quit [Read error: Operation timed out]
<chekcmate>
I got an alias, which is called sample: alias sample='. ~/sample/sample/ci_support/set_env.sh; cd ~/sample/sample'
<chekcmate>
set_env is setting the envoirement variables
<chekcmate>
like $AMOS_NAT, $AMOS_DATA
judofyr has joined #ruby-lang
<chekcmate>
when I use trace, starting a bash script, which uses those variables
<chekcmate>
the variables aren't available
<chekcmate>
(i start strace with sudo)
<whitequark>
man sudo /env_reset /env_keep
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<chekcmate>
so when in my run.sh $AMOS_NAT/data/testcase/... it will say "could not find /data/testcase/"
<chekcmate>
but totally ignores the $ stuff
<chekcmate>
ah, so it is a sudo "problem" in that case?
<whitequark>
it is by design
<whitequark>
there are sensitive env variables you don't want to leak
<whitequark>
RUBYOPT eg can execute arbitrary code under sudo
<whitequark>
etc
<chekcmate>
oh ok
<Asher>
so are websockets usually handled with an independent websocket server?
<chekcmate>
thanks whitequark
vlad_starkov has joined #ruby-lang
<judofyr>
Asher: most of the time, yes. Rails doesn't play well with websockets, so people often set up Thin+Sinatra
dasil003 has joined #ruby-lang
<Asher>
judofyr - i've written my own framework that i'm working on polishing final details of before releasing, so trying to sort out some details in deployment possibilities
marr has joined #ruby-lang
<judofyr>
Asher: what is it built on? Rack?
<Asher>
yes
<judofyr>
Asher: do you support rack.async?
fluido has joined #ruby-lang
<Asher>
not sure what supporting it entails - pretty sure i _could_, whether or not i presently do
<Asher>
i think i'm just looking for any literature so i can try to orient myself in terms of how to support websockets w/my framework
ridget has joined #ruby-lang
<Asher>
i've never dealt with websockets before and i'm not terribly familiar with http server internals or details of web server configurations - so trying to get a handle as to how websockets are generally handled
<judofyr>
Asher: well, there's a new hijack API in Rack 1.5 I think
<judofyr>
Asher: but really, Rack wasn't built for websockets, so it's all hacks on top of hacks
<whitequark>
neither was http
<whitequark>
the hacks are pretty much extrinsic.
<yorickpeterse>
morning
<Asher>
well my framework just depends on nokogiri and has only a very minimal entry point
<Asher>
so… suggestions where to start thinking about how to accomplish websockets?
agarie_ has quit [Remote host closed the connection]
dr_bob has joined #ruby-lang
skade has joined #ruby-lang
jvrmaia has joined #ruby-lang
kcassidy has joined #ruby-lang
francisfish has joined #ruby-lang
<gnufied>
Asher: are you using eventmachine or something?
<gnufied>
only evented web servers are going to work websockets, afaik
<gnufied>
have a look at faye-websocket gem
<Asher>
why only evented web servers?
<gnufied>
which Web server you are planning to use?
<gnufied>
because of nature of long held connections
<Asher>
i'm not committed to any necessarily.. i'm trying to figure out what options are possible
beho has quit [Remote host closed the connection]
<gnufied>
it sounds like, you have lot to internalize
glebm has joined #ruby-lang
<Asher>
i am just trying to figure what solutions are available for hooking a front-end slow client to a ruby process in a way that is amenable to websockets
mercwithamouth has joined #ruby-lang
<Asher>
so i figured front-end you have something like nginx and then backend something like unicorn
<Asher>
and it seems that works fine even if each socket request requires a different worker (tho that seems silly)
<Asher>
but i was trying to understand what possibilities there are otherwise
<gnufied>
nginx can't load balance websockets
<judofyr>
Asher: Unicorn isn't designed for slow clients at all, and Nginx doesn't handle websockets yet :)
<gnufied>
(not out of box anyways)
<Asher>
which is what i learned a few minutes ago from whitequark
<judofyr>
gnufied: maybe in the latest version?
<Asher>
but i haven't found any good consolidated literature about this
<Asher>
so if you have links to any please share, i admit my ignorance from the start
neocoin has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
rsl has joined #ruby-lang
Eising has joined #ruby-lang
<Eising>
hey there. I'm looking for an advice in regards to something I'm writing: I'm scanning network devices and collecting information, and I need to both store the collected information in an object and be able to dump that object. I could just write att_accessors for each element, but that makes dumping cumbersome. Any advice?
<Eising>
Structs perhaps?
<imperator>
perhaps
<imperator>
just curious, what platform?
<Eising>
the network devices?
<judofyr>
Eising: if it's known attributes: Struct sounds fine. if it's unknown: just a Hash?
<Eising>
It's known attributes, however not all devices will fill all attributes
<Eising>
OpenStruct looks suitable too
dasil003 has quit [Ping timeout: 255 seconds]
tomzx_mac has joined #ruby-lang
rue|w has quit [Read error: Connection reset by peer]
rue_XIW has joined #ruby-lang
rue_XIW has quit [Read error: Connection reset by peer]
rue|w has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 260 seconds]
toretore has quit [Quit: Leaving]
toretore has joined #ruby-lang
xalei has quit [Ping timeout: 255 seconds]
krz has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 260 seconds]
<injekt>
a hash seems fine to me
Criztian has quit [Ping timeout: 240 seconds]
randomlogin has quit [Remote host closed the connection]
randomlogin has joined #ruby-lang
Criztian has joined #ruby-lang
yobiflare has joined #ruby-lang
sush24 has joined #ruby-lang
sepp2k has joined #ruby-lang
ddv is now known as Scatman
idkazuma has joined #ruby-lang
Scatman is now known as ddv
<injekt>
tbh though, why would cinch not work on windows? the copius amounts of threading maybe?
Bearproof has joined #ruby-lang
<rue|w>
Egg on my face now, I’ve always said that Windows works in a cinch
<injekt>
wrong channel
<injekt>
rue|w: har
<dominikh>
rue|w: it does. we just don't support it much. and someone reported today that it doesn't work on Win XP
jxie has joined #ruby-lang
<injekt>
dominikh: he made a funny
<dominikh>
oh
<dominikh>
yeah
<dominikh>
well, I looked funnier now didn't i!
<injekt>
i guess you win
Bearproof has left #ruby-lang [#ruby-lang]
savagecroc has joined #ruby-lang
<savagecroc>
how do you return the first match in an array [{:a => 1},{:a => 2},{:a => 2}].select {|b| b[:a] == 2}
<savagecroc>
i want something like that but that returns and gives up after it finds the first one
<dominikh>
#first
<savagecroc>
hmm first just returns the first record it doesn't take a block as an argument to match
<savagecroc>
got it
<savagecroc>
detect
<dominikh>
eh, sorry. #find, not #first :P
<dominikh>
and #find is an alias for #detect or vice versa, yeah
<savagecroc>
oh really ok
<savagecroc>
i'll use find
<savagecroc>
saves me a character
<chekcmate>
injekt: I'm at 32.121 trace files :)
vmoravec has quit [Remote host closed the connection]
rawler has joined #ruby-lang
rawler has left #ruby-lang [#ruby-lang]
jxie has quit [Quit: leaving]
bryanl has quit [Ping timeout: 255 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
bryanl has joined #ruby-lang
JoelMcCracken has joined #ruby-lang
swav has quit [Read error: Connection reset by peer]
arca0 has quit [Remote host closed the connection]
swav has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
zmack has quit [Remote host closed the connection]
slyphon has quit [Ping timeout: 276 seconds]
mephux has quit [Excess Flood]
Guest13532 has joined #ruby-lang
enebo has joined #ruby-lang
sush24 has joined #ruby-lang
totallymike has joined #ruby-lang
KA_ has quit [Ping timeout: 260 seconds]
gnufied1 has quit [Quit: Leaving.]
rins has joined #ruby-lang
phlipper has joined #ruby-lang
slyphon has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
gnufied has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
rdw200169 has joined #ruby-lang
dr_bob has joined #ruby-lang
chekcmate_ has joined #ruby-lang
sush24 has joined #ruby-lang
<chekcmate_>
test
<imperator>
error! error! ster-i-lize!
<chekcmate_>
stayin alive!
<chekcmate_>
stayin alive!
<chekcmate_>
now I haz earworm ._.
caral has quit [Quit: caral]
chekcmate has quit [Ping timeout: 245 seconds]
chekcmate_ is now known as chekcmate
rue_XIW has quit [Remote host closed the connection]
<chekcmate>
no party today? so quiet here... :o
vlad_starkov has joined #ruby-lang
postmodern has quit [Quit: Leaving]
slyphon has quit [Ping timeout: 276 seconds]
<judofyr>
ain't no party like an IRC party ;)
<chekcmate>
judofyr: call a guy in your company you don't know and tell him "I don't have time to talk to you right now" and hang up.
<judofyr>
chekcmate: I know everyone in my company ;)
<chekcmate>
also, suggest to pray Our Father after an important meeting
<chekcmate>
^- my boss did this today
<chekcmate>
you should have seen the peoples faces
<injekt>
i would try that but my company has 5 people in it and the calls would be way too expensive
<chekcmate>
aw :/
<chekcmate>
or run around with open pants and when someone tells you, say "I like it better that way!" and run off
<injekt>
open pants means a very different thing in the uk
<chekcmate>
hu?
<chekcmate>
I meant the zipper heh
<chekcmate>
putting colleagues chairs in the lift is also great hah!
<injekt>
pants in the uk does not mean pants in the us
<chekcmate>
trouses?
<injekt>
trousers, right
<chekcmate>
trousers!
<injekt>
pants would be, well.. your junk would be on show
<chekcmate>
ah yea... good old school english
<chekcmate>
internet messed it up
<chekcmate>
injekt: do you, as a native, register those kinds of differences a lot?
<chekcmate>
british<>american
<injekt>
chekcmate: yes, and i work with canadians which is a hybrid between the two
<judofyr>
damn canadians
<chekcmate>
no french canadians?
<injekt>
because canadians have different names for stuff, but they also spell correctly
bantic has joined #ruby-lang
<injekt>
unlike americans
<judofyr>
"correctly"
<injekt>
no french canadians
<judofyr>
colour: rage-face;
<injekt>
:P
<chekcmate>
color/colour there it is again!
<injekt>
yeah, canadians write colour, like us
solars has quit [Ping timeout: 276 seconds]
<injekt>
you weird us guys drop the u's in lots of words
<chekcmate>
at least you can't fuck up with articles ._.
<chekcmate>
the the the the
<injekt>
wat
<chekcmate>
+ a great thing about english is that there is only "you"
<chekcmate>
injekt: der die das... etc.
<judofyr>
there's only me? :D
<injekt>
chekcmate: ah
<chekcmate>
der baum, die frau, das auto; the tree, the woman, the car
<injekt>
are they context specific?
<chekcmate>
judofyr: yes, you are my world, darling!
<judofyr>
\o/
<chekcmate>
injekt: based on gender
<injekt>
ah right yeah
<injekt>
i find langs like that harder to learn
<chekcmate>
only having "you" instead of various forms makes it easier to bond with people i guess
<judofyr>
Norwegian: en hund, ei katt, et hus; a dog, a cat, a house
<injekt>
they're supposed to be easier in theory
<chekcmate>
in japanese it's really very different, depending on who you speak with
<judofyr>
oops, it's not "ei katt". silly me.
<injekt>
judofyr: go learn your own language
<chekcmate>
:D
<judofyr>
injekt: at we don't conjugar verbs (like in Spanish)
<chekcmate>
funny how we're actually all a bunch of incested guys
<chekcmate>
at least that's how those different languages sound alike
<chekcmate>
katt = katze = cat
<judofyr>
llamo = my name is …; llamas = your name is
<judofyr>
what's up with that? :/
<injekt>
:/
<injekt>
cat = cat
<chekcmate>
judofyr: that's spanish
<injekt>
welcome to britain
<judofyr>
chekcmate: Sí
<chekcmate>
kindergarten = kindergarten
<chekcmate>
judofyr: lived several years on tenneriffe and near alicante, spoke it like my 2nd mother tongue... but after 5-6 years in germany, having no one to speak to.. most is gone :(
<judofyr>
chekcmate: :(
<judofyr>
chekcmatõr
<chekcmate>
perhaps it's in the back of my head... need some good punches, it'll come back
Guest13532 has quit [Excess Flood]
<chekcmate>
que tal, judofyr? toda bien?
<injekt>
actually come to think of it there's SO many words that have multiple meanings in the english language too
<chekcmate>
e.g.?
io_syl has quit [Quit: Computer has gone to sleep.]
<judofyr>
chekcmate: sí, sí (that's basically all the Spanish I can)
<injekt>
um
<injekt>
leaves
<chekcmate>
judofyr: enough!
<chekcmate>
like "the leaf"?
<chekcmate>
the leaves; he leaves?
<injekt>
yup
<injekt>
both work
<judofyr>
chekcmate: cuanta cuesta una cerveza?
<chekcmate>
100€
<injekt>
'crane' is also one
mephux_ has joined #ruby-lang
<injekt>
point
<injekt>
rose
<injekt>
ok there's lots
<judofyr>
"injekt"
<chekcmate>
wow, crane means really a lot!
<injekt>
har
<injekt>
i got 3 things
<injekt>
crane (the vehicle), the bird, to crank your neck
<chekcmate>
kran, kranich, fluggestell, zapfhahn
<judofyr>
fluggestell?
<chekcmate>
rofl
<chekcmate>
chariot
<chekcmate>
the thing a plane stands on
<injekt>
lol
<chekcmate>
but it's also crane
<chekcmate>
zapfhahn is great lol
<chekcmate>
spigot
<chekcmate>
beer tap
<chekcmate>
injekt: get me a crane!
<injekt>
the bird?
<injekt>
D:
<chekcmate>
well, that's your choice, but I want the right one until tomorrow morning!
<injekt>
there was a funny illustration about common words in britain, and it had a sentence with one word repeated in it like 4-5 times and each time it meant something different, can't find it
jgv has joined #ruby-lang
<chekcmate>
homonyms you mean?
<injekt>
right
<injekt>
actually they might have been heteronyms
<injekt>
cant remember
<chekcmate>
you're right
<injekt>
it was amusing though
CoverSlide has quit [Read error: Operation timed out]
<chekcmate>
Homonym are the things which sound the same, but aren't written the same
<injekt>
isn't that a heterograph?
<injekt>
:D
<chekcmate>
um... I go check google
slyphon has joined #ruby-lang
<chekcmate>
nope
<chekcmate>
With my lead pencil, I'm going to lead my friend. <= heteronyms
slyphon_ has joined #ruby-lang
<imperator>
chekcmate, stop talking about slyphon that way
mephux_ is now known as mephux
<chekcmate>
sorry, I didn't get that one ._.
<chekcmate>
shit i have to go my train
<chekcmate>
cu guys
chekcmate has quit [Quit: Page closed]
<imperator>
slyphon, read the tenderlove blog post
nXqd has quit [Ping timeout: 240 seconds]
slyphon has quit [Ping timeout: 260 seconds]
slyphon_ is now known as slyphon
CoverSlide has joined #ruby-lang
kcassidy has quit [Ping timeout: 276 seconds]
srbaker has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
kcassidy has joined #ruby-lang
vlad_starkov has joined #ruby-lang
bredonjones has joined #ruby-lang
jvrmaia has quit [Remote host closed the connection]
dasil003 has quit [Ping timeout: 245 seconds]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
priodev has quit [Ping timeout: 276 seconds]
judofyr has quit [Remote host closed the connection]
zhul_mechanos has joined #ruby-lang
havenwood has joined #ruby-lang
priodev has joined #ruby-lang
davidbalbert is now known as davidbalber|away
davidbalber|away is now known as davidbalbert
bzalasky_ has quit [Remote host closed the connection]
<Rarrikins_a>
Is there some way to get rubyw.exe from popping up a window whenever there's output from the script?
gnufied has quit [Quit: Leaving.]
idkazuma has quit [Remote host closed the connection]
davidbalbert is now known as davidbalber|away
<darix>
Rarrikins_a: use some gui tool kit and let that draw windows for you?
sush24 has quit [Quit: This computer has gone to sleep]
<Rarrikins_a>
I want to run a script as a daemon (hidden)
<Rarrikins_a>
But it seems like whenever the script uses print or puts, rubyw pops up a window and then gets rid of it.
<Rarrikins_a>
It's not supposed to.
geopet has joined #ruby-lang
<heftig>
Rarrikins_a: $>.reopen open("NUL:", "w")
wyhaines has joined #ruby-lang
<Rarrikins_a>
How can I tell whether rubyw is working (so that it doesn't do that otherwise?
<heftig>
what?
<Rarrikins_a>
I have a script I want to run in ruby on various platforms and rubyw sometimes on Windows
<Rarrikins_a>
When the program outputs something to the terminal with rubyw, it opens a window and gets rid of it quickly, which it's not supposed to.
<Rarrikins_a>
I can, of course, shut the output off, but that will ruin it for when I run it under ruby.
<Rarrikins_a>
Is there a way to shut it off only when running under rubyw?
pygmael has quit [Quit: pygmael]
johnnyfive has quit [Ping timeout: 248 seconds]
fsvehla has quit [Quit: fsvehla]
rue|w has joined #ruby-lang
banisterfiend has joined #ruby-lang
<banisterfiend>
anyone played much with Module#prepend in 2.0 ?
<heftig>
Rarrikins_a: check RSTDIN.stat fails, i guess
<heftig>
Uer
bredonjones has quit [Remote host closed the connection]
<heftig>
Rarrikins_a: check RUBY_PLATFORM and whetherSTDIN.stat fails, i guess
<banisterfiend>
anyone figure out a way to get a Method object for the original method?
<banisterfiend>
i.e: class A; def hi; end; end; module P; def hi; end; end; class A; prepend P; end; how to get an UnboundMethod for A#hi ?
havenwood has quit [Remote host closed the connection]
fluido has quit [Remote host closed the connection]
rue|w has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
dr_bob has joined #ruby-lang
<Rarrikins_a>
heftig: OK, I'll try that
marcopod has quit [Remote host closed the connection]
amerine has joined #ruby-lang
unix is now known as fire
sn0wb1rd has quit [Quit: sn0wb1rd]
nXqd has joined #ruby-lang
havenwood has quit [Ping timeout: 252 seconds]
randomlogin has quit [Ping timeout: 256 seconds]
bougyman has quit [Quit: Lost terminal]
tylersmith has joined #ruby-lang
bougyman has joined #ruby-lang
nXqd has quit [Ping timeout: 252 seconds]
agile has quit [Remote host closed the connection]
sn0wb1rd has joined #ruby-lang
Asher has quit [Quit: Leaving.]
<soahccc>
How to read the last line of a file ignoring the rest of the file? Found some solutions but they're all pretty old and don't look really good. Is readline the way to go?
adambeynon has joined #ruby-lang
agile has joined #ruby-lang
<heftig>
no, for performance reasons you probably want a custom solution that reads chunks from the end of the file, looking for a newline
<whitequark>
`tail -n1 file`
Asher has joined #ruby-lang
<heftig>
or just shell out
<heftig>
but that's a cop-out :p
<soahccc>
I saw those too. Is it generally better to read a "bigger" chunk and check for newline or doing it char by char?
<heftig>
definitely don't do IO char-by-char
<soahccc>
good to know =)
<soahccc>
I think I stick to readlines first (with my with_position enum extension) but I will fiddle a bit with seek but I don't have enough time to make a clean implementation...
davidbalber|away is now known as davidbalbert
JohnBat26 has quit [Ping timeout: 245 seconds]
randomlogin has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
swav has quit [Remote host closed the connection]
vlad_sta_ has quit [Read error: Connection reset by peer]
djwonk has quit []
bredonjones has joined #ruby-lang
iamwn has joined #ruby-lang
<Rarrikins_a>
I figured out the problem: I'm using Open3.capture2e, and apparently rubyw leaks the output of the command to the window.
io_syl has joined #ruby-lang
io_syl_ has joined #ruby-lang
io_syl has quit [Read error: Connection reset by peer]
dr_bob has quit [Quit: Leaving.]
io_syl_ is now known as io_syl
dhruvasagar has joined #ruby-lang
<iamwn>
Hi, does anyone know if the Mutex class works only with Threads, or does it work with Processes as well?
<workmad3>
iamwn: I believe it's only for threads... processes don't get shared memory
dasil003 has joined #ruby-lang
kurko__ has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
<iamwn>
I thought so, thanks
tpope_ has left #ruby-lang [#ruby-lang]
<workmad3>
iamwn: you shouldn't need mutexes for processes though... not having shared memory means that the sort of deadlock that mutexes protect against just aren't present
banisterfiend has joined #ruby-lang
tpope has joined #ruby-lang
jonahR has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
<iamwn>
Well, the thing is that I have a queue of data and x processes are handling the queue. Without shared memory, I can't prevent the process from handling something from the queue that is already being handled by some other process
workmad3 has quit [Ping timeout: 260 seconds]
__butch__ has joined #ruby-lang
skade has joined #ruby-lang
zhul_mechanos has quit [Quit: zhul_mechanos]
kcassidy has left #ruby-lang [#ruby-lang]
__butch__ has quit [Client Quit]
kfries6 has joined #ruby-lang
hackeron has quit [Ping timeout: 252 seconds]
__butch__ has joined #ruby-lang
djwonk has joined #ruby-lang
rue|w has joined #ruby-lang
Bearproof has joined #ruby-lang
agarie has joined #ruby-lang
agarie has quit [Remote host closed the connection]
aedorn has joined #ruby-lang
hackeron has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
<emmdeeess>
thank you, i'm trying to install it now
dhruvasagar has quit [Ping timeout: 252 seconds]
<havenwood>
emmdeeess: Cool. From inside Pry just type 'help' to see the pry-specific commands.
<emmdeeess>
i get NilClass#methods: & ^ __pry__ inspect nil? pretty_print_cycle rationalize to_a to_c to_f to_i to_r to_s |
<emmdeeess>
but if i try to_a, i get an error
banisterfiend has quit [Remote host closed the connection]
mistym is now known as mistym_lunch
<emmdeeess>
NoMethodError: undefined method `to_a' for #<Mysql::Result:0x0000000159f9b0>
fire has quit [Quit: WeeChat 0.4.0]
megha has joined #ruby-lang
<havenwood>
emmdeeess: It isn't a Hash. Hash#to_a would have work, *if* it was a Hash. :P
<havenwood>
s/work/worked
nXqd has joined #ruby-lang
b1rkh0ff has quit [Read error: Connection reset by peer]
<havenwood>
emmdeeess: Looks like you are using ActiveRecord? You might have better luck approaching the issue in #RubyOnRails
<emmdeeess>
ok, i'm trying to figure this out - what i have is a result set, and i need to have something that goes through each row?
<emmdeeess>
i have no idea what i'm doing =o)
<havenwood>
emmdeeess: I'd suggest reading the docs on ActiveRecord and asking in #railsnoob or #rubyonrails
<emmdeeess>
appreciate it, thank you
slyphon has quit [Quit: slyphon]
<havenwood>
emmdeeess: Pry really is nice for hacking together whats going on in a situation like you're in - but documentation and asking Rails folks will probably get you to this particular answer quicker :P
slyphon has joined #ruby-lang
ddv has quit [Read error: Connection reset by peer]
toertore has joined #ruby-lang
enebo_ has joined #ruby-lang
jxie has joined #ruby-lang
nXqd_ has joined #ruby-lang
bredonjo_ has joined #ruby-lang
<havenwood>
emmdeeess: There appear to be a bunch of libraries that use Mysql::Result. Rails, ffi-mysql, mysql gem. A gist of the code you use to instantiate the Mysql::Result would be key!
ivanoats has quit [Remote host closed the connection]
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ottbot has quit [Ping timeout: 260 seconds]
sustainableweb has joined #ruby-lang
sustainableweb has quit [Remote host closed the connection]
sustainableweb has joined #ruby-lang
ivanoats has quit [Ping timeout: 272 seconds]
sustainableweb has quit [Ping timeout: 240 seconds]
judofyr has quit [Read error: No route to host]
judofyr has joined #ruby-lang
nXqd has joined #ruby-lang
randomlogin has joined #ruby-lang
CoverSlide has quit [Ping timeout: 240 seconds]
Bearproof has joined #ruby-lang
Bearproof has quit [Client Quit]
intellitech has quit [Quit: intellitech]
s1kx has joined #ruby-lang
s1kx has quit [Changing host]
s1kx has joined #ruby-lang
reactormonk has quit [Quit: WeeChat 0.3.8]
kfries6 has left #ruby-lang [#ruby-lang]
workmad3 has joined #ruby-lang
bredonjo_ has quit [Remote host closed the connection]
gregmore_ has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
Elixor has joined #ruby-lang
<zzak>
drbrain: did you see who i have to present with tonight?
<drbrain>
you guys should high-five
<zzak>
i pee'd my pants
<drbrain>
haha
<drbrain>
Jim is awesome
<zzak>
i should whip up some patches for him so i have an excuse to ping him IRL
rodj has joined #ruby-lang
<rodj>
hello all
<rodj>
I have a ruby oauth integration question.: Is it important to keep my API_KEY and API_SECRET private?
yobiflare has joined #ruby-lang
<rodj>
or is there a better place to ask the question?
workmad3 has quit [Ping timeout: 252 seconds]
joevandyk has joined #ruby-lang
kurko__ has quit [Quit: Computer has gone to sleep.]
adambeynon has joined #ruby-lang
<judofyr>
rodj: yes, API_SECRET is supposed to be *very* secret :)
workmad3 has joined #ruby-lang
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
<rodj>
I was afraid of that.... If I have a script I plan to release as open source, does each user need to have thier own separate API key and APU secret?
<judofyr>
rodj: yup
<rodj>
although, I appreciate the quick answer, this is not what I wanted to hear. but it does make sense.
yobiflare has quit [Read error: Operation timed out]
workmad3 has joined #ruby-lang
bzb has quit [Quit: Leaving]
ottbot has quit [Ping timeout: 252 seconds]
kurko__ has quit [Read error: Connection reset by peer]
mythogen has quit [Quit: mythogen]
kurko__ has joined #ruby-lang
reactormonk has joined #ruby-lang
ivanoats has joined #ruby-lang
glebm has joined #ruby-lang
ridget has joined #ruby-lang
randomlogin has quit [Ping timeout: 252 seconds]
jacktrick has joined #ruby-lang
sailias has quit [Ping timeout: 252 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
joevandyk has quit [Quit: joevandyk]
Mon_Ouie has quit [Ping timeout: 256 seconds]
mythogen has joined #ruby-lang
mythogen has quit [Remote host closed the connection]
mythogen has joined #ruby-lang
joevandyk has joined #ruby-lang
srbaker has joined #ruby-lang
Vektor has joined #ruby-lang
marco_ has quit [Disconnected by services]
slyphon_ has joined #ruby-lang
slyphon_ has quit [Client Quit]
Harzilein has joined #ruby-lang
<Harzilein>
hi
scampbell has quit [Quit: Leaving]
emmdeeess has left #ruby-lang [#ruby-lang]
slyphon has quit [Ping timeout: 244 seconds]
<jacktrick>
'lo
bzb has joined #ruby-lang
jvrmaia has quit [Remote host closed the connection]
djwonk has quit []
jvrmaia has joined #ruby-lang
emocakes has quit [Quit: emocakes]
ottbot has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
jvrmaia has quit [Ping timeout: 272 seconds]
idkazuma has joined #ruby-lang
yobiflare has joined #ruby-lang
randomlogin has joined #ruby-lang
sepp2k has quit [Ping timeout: 245 seconds]
davidbalbert is now known as davidbalber|away
mythogen has quit [Quit: mythogen]
tonni has joined #ruby-lang
joevandyk has quit [Quit: joevandyk]
guns has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
baba has joined #ruby-lang
megha has quit [Ping timeout: 256 seconds]
ilyam has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
joevandyk has joined #ruby-lang
cupakromer has joined #ruby-lang
havenwood has joined #ruby-lang
Qwakeree has joined #ruby-lang
slyphon has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
ivanoats has joined #ruby-lang
ivanoats has joined #ruby-lang
jonahR_ has joined #ruby-lang
jonahR_ has quit [Client Quit]
zhul_mechanos has joined #ruby-lang
qwakeree_ has joined #ruby-lang
Marco has joined #ruby-lang
jonahR has quit [Ping timeout: 248 seconds]
ivanoats has quit [Ping timeout: 255 seconds]
jvrmaia has joined #ruby-lang
robotmay has joined #ruby-lang
ryanf has joined #ruby-lang
qwakeree_ has quit [Quit: Page closed]
swav has joined #ruby-lang
Qwakeree has quit []
Qwakeree has joined #ruby-lang
mjio has joined #ruby-lang
Bearproof has joined #ruby-lang
ilyam_ has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
ivanoats has joined #ruby-lang
dasil003 has quit [Ping timeout: 252 seconds]
ilyam has quit [Ping timeout: 276 seconds]
ilyam_ is now known as ilyam
JoelMcCracken has quit [Ping timeout: 245 seconds]
jacktrick has quit [Quit: Leaving]
Qwakeree has left #ruby-lang [#ruby-lang]
ramonmaruko has quit [Ping timeout: 246 seconds]
jtoy has quit [Quit: jtoy]
MaddinXx_ has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
cirenyc has joined #ruby-lang
mercwithamouth has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
bzb has quit [Quit: Leaving]
nXqd has quit [Ping timeout: 240 seconds]
dustint has quit [Read error: Operation timed out]
slyphon has quit [Ping timeout: 276 seconds]
beho has quit [Remote host closed the connection]
solars has quit [Ping timeout: 256 seconds]
randomlogin has quit [Remote host closed the connection]
randomlogin has joined #ruby-lang
jvrmaia has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
sn0wb1rd has quit [Read error: Connection reset by peer]
randomlogin has left #ruby-lang [#ruby-lang]
sn0wb1rd has joined #ruby-lang
randomlogin has joined #ruby-lang
Qwakeree has joined #ruby-lang
<Qwakeree>
hola?
benanne has quit [Quit: kbai]
bluepojo has quit [Read error: Connection reset by peer]
bluepojo has joined #ruby-lang
outoftime has quit [Quit: Leaving]
<drbrain>
hello
slyphon has joined #ruby-lang
Mike26 has quit [Quit: Leaving.]
dasil003 has joined #ruby-lang
kisha has joined #ruby-lang
Mike26 has joined #ruby-lang
Mike26 has quit [Read error: Connection reset by peer]
lcdhoffman has quit [Quit: lcdhoffman]
tenderlove has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
<kisha>
Hello there. I'm shifted from 1.9.3-p194 to p386. I switched it back (--default to 194) and am experiencing all kinds of issues with new & existing rails apps. Any help you could provide would be appreciated -- Here is the gist https://gist.github.com/kisha/4774517
<kisha>
Can anyone provide a little guidance or point me in the right direction?
scottschecter has quit [Quit: WeeChat 0.4.0]
bantic has quit [Quit: bantic]
<havenwood>
kisha: Curious what OS and distro you are on? OS X?
<kisha>
I don't know what distro means but I'm using OS 10.7 (Lion)
<havenwood>
kisha: On second glance I shoulda known it was OS X, from darwin. Oops!
<kisha>
No worries, any help would be humbly appreciated
<havenwood>
kisha: If you open `irb` and `require 'openssl'` does it work?
<havenwood>
kisha: Maybe paste on gist.github.com the output of the following from the Terminal: DYLD_PRINT_LIBRARIES=1 ruby -ropenssl -e "nil"
scottschecter has joined #ruby-lang
ridget has quit [Remote host closed the connection]
sigerello has joined #ruby-lang
ridget has joined #ruby-lang
Qwakeree has quit []
Qwakeree has joined #ruby-lang
kurko__ has quit [Quit: Computer has gone to sleep.]
davidbalber|away is now known as davidbalbert
mwjcomputing has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
toertore has quit [Quit: Leaving]
randomlogin has quit [Quit: randomlogin]
<havenwood>
kisha: Hrm. Did you run `bundle` from the app directory?
randomlogin has joined #ruby-lang
arca0 has quit [Remote host closed the connection]
ottbot has quit [Ping timeout: 256 seconds]
kisha has quit [Quit: kisha]
sigerello has quit [Ping timeout: 245 seconds]
ridget has quit [Remote host closed the connection]