apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
<Barrin6>
oh
<Barrin6>
omg
kurko_ has quit [Ping timeout: 246 seconds]
Forgetful_Lion has joined #ruby-lang
<Barrin6>
suppose to use ==
<Barrin6>
not =
<ryanf>
yeah
<Barrin6>
hehe i'm a dummy
majjoha has quit [Ping timeout: 246 seconds]
<ryanf>
btw "if (...); true; else; false" can almost always be replaced with just "..."
<Barrin6>
what do you mean?
<Barrin6>
... n%3==||n%5==0...
<Barrin6>
just like that?
<ryanf>
yeah, except you left out a 0
<Barrin6>
oh wow
<ryanf>
wait, I'm not sure what you meant
<ryanf>
-t
<Barrin6>
1 sec
<Barrin6>
i'll paste bin it
<ryanf>
I'm saying you could just define the method as def multiple(n); n%3 == 0 || n%5 == 0; end
<Barrin6>
oh
apeiros has quit [Read error: Connection reset by peer]
micalexa_ has quit [Remote host closed the connection]
Forgetful_Lion has quit [Read error: Operation timed out]
micalexander has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
uokesita has left #ruby-lang [#ruby-lang]
uokesita has joined #ruby-lang
uokesita has quit [Quit: Leaving]
uokesita has joined #ruby-lang
ruby-lang763 has joined #ruby-lang
zz_michael_mbp is now known as michael_mbp
Forgetful_Lion has quit [Read error: Operation timed out]
hahuang65 has quit [Read error: Connection reset by peer]
ruby-lang763 has quit [Ping timeout: 250 seconds]
hahuang65 has joined #ruby-lang
uokesita has left #ruby-lang [#ruby-lang]
Forgetful_Lion has joined #ruby-lang
uokesita_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 245 seconds]
kgrz has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
Forgetful_Lion has quit [Read error: Operation timed out]
kgrz has quit [Ping timeout: 240 seconds]
Forgetful_Lion has joined #ruby-lang
majjoha has joined #ruby-lang
nathanstitt has joined #ruby-lang
Oloryn_lt22 has quit [Ping timeout: 265 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
majjoha has quit [Ping timeout: 240 seconds]
DeFii has joined #ruby-lang
DeFii has left #ruby-lang [#ruby-lang]
Forgetful_Lion has joined #ruby-lang
Oloryn_lt2 has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
jxie_ has joined #ruby-lang
jxie has quit [Ping timeout: 240 seconds]
kgrz has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Oloryn_lt21 has joined #ruby-lang
banisterfiend has quit [Quit: Computer has gone to sleep.]
Oloryn_lt2 has quit [Ping timeout: 245 seconds]
Forgetful_Lion has joined #ruby-lang
kgrz has quit [Ping timeout: 240 seconds]
bzalasky has joined #ruby-lang
majjoha has joined #ruby-lang
<jrobeson>
Asitha, i don't have time to look at your regex right now, but perhaps you might want to play in this http://rubular.com/
Forgetful_Lion has quit [Read error: Operation timed out]
bzalasky has quit [Remote host closed the connection]
michael_mbp is now known as zz_michael_mbp
bzalasky has joined #ruby-lang
majjoha has quit [Ping timeout: 265 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
Forgetful_Lion has joined #ruby-lang
bzalasky has quit [Ping timeout: 272 seconds]
pleirosei has quit [Ping timeout: 260 seconds]
Forgetful_Lion has quit [Read error: Operation timed out]
billybob000 has joined #ruby-lang
<billybob000>
so i can't pass a method a hash w/o using parenthesis? eg "foo.bar {number: 5}"
Forgetful_Lion has joined #ruby-lang
<heftig>
billybob000: yes, because it conflicts with the block syntax
<billybob000>
ah, cool
Oloryn_lt2 has joined #ruby-lang
<heftig>
puts 3, {foo: 3} would be unambiguous, because of the comma
Oloryn_lt21 has quit [Ping timeout: 272 seconds]
jackrasum has joined #ruby-lang
kgrz has joined #ruby-lang
jackrasum has quit [Ping timeout: 250 seconds]
muh has joined #ruby-lang
Forgetful_Lion has quit [Read error: Operation timed out]
Forgetful_Lion has joined #ruby-lang
mistym_ has joined #ruby-lang
Forgetful_Lion has quit [Client Quit]
postmodern has quit [Quit: Leaving]
Forgetful_Lion has joined #ruby-lang
pleirosei has joined #ruby-lang
<billybob000>
so it looks like you can't mix and match named parameters either...
<billybob000>
probably not a good idea anyway
stefff has quit [Ping timeout: 272 seconds]
Forgetful_Lion has quit [Read error: Connection reset by peer]
<billybob000>
def foo(bar=nil, blah: 5)
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
mistym has quit [Ping timeout: 272 seconds]
Forgetful_Lion has quit [Read error: Connection reset by peer]
neaer has quit []
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
majjoha has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
mucker has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
uokesita_ has quit [Quit: This computer has gone to sleep]
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
mdedetrich has joined #ruby-lang
majjoha has quit [Ping timeout: 272 seconds]
Forgetful_Lion has joined #ruby-lang
Trapper has quit [Ping timeout: 272 seconds]
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
tomzx_mac has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
mistym_ is now known as mistym
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
majjoha has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Oloryn_lt21 has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
mucker has quit [Remote host closed the connection]
Oloryn_lt2 has quit [Ping timeout: 252 seconds]
Forgetful_Lion has quit [Read error: Connection reset by peer]
mucker has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
majjoha has quit [Ping timeout: 245 seconds]
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
jithu has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
mucker has quit [Ping timeout: 265 seconds]
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 240 seconds]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
Forgetful_Lion has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
daikan has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
intellitech has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
daikan has quit [Ping timeout: 272 seconds]
kgrz has quit [Ping timeout: 240 seconds]
mucker has joined #ruby-lang
majjoha has joined #ruby-lang
majjoha has quit [Ping timeout: 246 seconds]
gjaldon has joined #ruby-lang
Tearan has joined #ruby-lang
Boohbah has quit [Remote host closed the connection]
Boohbah has joined #ruby-lang
mdedetrich has joined #ruby-lang
sevvie has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
mucker has quit [Remote host closed the connection]
jithu has quit [Quit: Mother, did it need to be so high?]
mucker has joined #ruby-lang
<gjaldon>
hi all. 'alt + left or right arrow' doesn't work in my irb/pry and in bash but works fine in zsh. any idea how to troubleshoot?
<ryanf>
gjaldon: bash and irb/pry don't share any line-editing code afaik, so if you're having a problem with both of them then it's probably something about your terminal
<ryanf>
other than that, if you're having trouble with line-editing stuff in irb/pry, make sure you're using real readline and not libedit (which is the default on macs)
<ryanf>
if it's libedit it will say something in parentheses after the number iirc?
<gjaldon>
I get this: EditLine wrapper
<ryanf>
yeah, that's bad news
<ryanf>
are you using the ruby that came with your mac?
<gjaldon>
dang. I installed via rbenv
<ryanf>
oh ok
<ryanf>
just google rbenv readline
<ryanf>
you might not even have to recompile
<gjaldon>
thanks man! will try and look it up. been looking for a solution for days but wasn't sure wat to look for
<gjaldon>
looking it up now
<ryanf>
no problem
muh has quit [Ping timeout: 272 seconds]
sevvie has quit [Read error: Connection reset by peer]
lacrosse has quit [Read error: Connection reset by peer]
sevvie has joined #ruby-lang
majjoha has joined #ruby-lang
jithu has quit [Quit: Mother, did it need to be so high?]
majjoha has quit [Ping timeout: 245 seconds]
kenta_ has joined #ruby-lang
jithu has joined #ruby-lang
bzalasky has joined #ruby-lang
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
Asitha has quit []
fosky has joined #ruby-lang
joshAnderson99 has left #ruby-lang [#ruby-lang]
majjoha has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
hramrach has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby-lang
tomzx_mac has quit [Read error: Operation timed out]
majjoha has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby-lang
UziMonkey has quit [Ping timeout: 264 seconds]
apeiros has quit [Ping timeout: 265 seconds]
UziMonkey has joined #ruby-lang
mucker has quit [Remote host closed the connection]
mucker has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
mucker has quit [Ping timeout: 272 seconds]
bzalasky has joined #ruby-lang
guns has joined #ruby-lang
bzalasky_ has joined #ruby-lang
bzalasky has quit [Ping timeout: 252 seconds]
gjaldon has joined #ruby-lang
Oak has joined #ruby-lang
nisstyre has joined #ruby-lang
majjoha has joined #ruby-lang
zz_michael_mbp is now known as michael_mbp
alexju_ has joined #ruby-lang
majjoha has quit [Ping timeout: 252 seconds]
michael_mbp is now known as zz_michael_mbp
alexju has quit [Ping timeout: 272 seconds]
bzalasky_ has quit [Remote host closed the connection]
bastilian_ has joined #ruby-lang
bastilian has quit [Ping timeout: 264 seconds]
jxie has joined #ruby-lang
sevvie has quit [Read error: Connection reset by peer]
jxie_ has quit [Ping timeout: 240 seconds]
majjoha has joined #ruby-lang
alexju_ has quit [Remote host closed the connection]
alexju has joined #ruby-lang
majjoha has quit [Ping timeout: 240 seconds]
alexju has quit [Ping timeout: 245 seconds]
ruby-lang130 has joined #ruby-lang
zz_michael_mbp is now known as michael_mbp
bzalasky has joined #ruby-lang
ruby-lang130 has quit [Ping timeout: 250 seconds]
Tearan has quit [Quit: Sleepy Badger....]
shaileshg_ has joined #ruby-lang
Tearan has joined #ruby-lang
Tearan has quit [Client Quit]
nisstyre has quit [Quit: Leaving]
<shaileshg_>
hello
<shaileshg_>
Hi, I am trying to read certificate.cer to fetch public key for encrypting data in ruby, but it is showing nested asn1 error error. Can anyone help with it?
<shaileshg_>
dbussink: I want to encrypt a session key using public key in the given .cer file
<dbussink>
shaileshg_: if you read that, it shows the different available methods and has what you want
<shaileshg_>
dbussink: thanks.. it works
<shaileshg_>
dbussink: saved my day.. have been trying since morning.. :)
JohnBat26 has joined #ruby-lang
<dbussink>
shaileshg_: np
<shaileshg_>
dbussink: I am just curious to know.. why does public_encrypt works on key and not on foo? does key = foo.public_key makes it an actual instance of RSA class?
bastilian_ has quit [Quit: Leaving...]
<dbussink>
shaileshg_: because foo is a certificate object
<dbussink>
and not an rsa public key
<dbussink>
a certificate entails more than just a public key
Coincidental has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
majjoha has joined #ruby-lang
<freedrull>
anyone know of a way to treat Array#cycle as a sort of lazy infinite list, so I can just grab the first 5 elements off it? array.cycle.take(5) or something
<freedrull>
oh wait, that works ><
<freedrull>
geez
MaddinXx has joined #ruby-lang
majjoha has quit [Ping timeout: 245 seconds]
Coincidental has quit [Ping timeout: 272 seconds]
hhatch has joined #ruby-lang
fosky_ has quit [Remote host closed the connection]
<yxhuvud>
:D
wudofyr has joined #ruby-lang
shinnya has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
Elinos has quit [Quit: Leaving]
skade has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shaileshg_>
dbussink: Hi, thr?
mucker has joined #ruby-lang
<shaileshg_>
dbussink: How do I read .p12 file?
bzalasky has quit [Remote host closed the connection]
majjoha has joined #ruby-lang
bzalasky has joined #ruby-lang
<dbussink>
shaileshg_: dunno, i'd say google for it, should give some information
<Trapper>
I just want to know, is this the standard way of doing things?
<Trapper>
Instead of counters, let's pretend those methods are checking a database or whatever
<Trapper>
should you want them all happening at the same time?
<Trapper>
Is this the only way you can give feedback to the user?
<Trapper>
eg. Counter 1 has finished, Counter 2 has finished
<Trapper>
Do they need to be in threads?
<yorickpeterse>
euh, what are you trying to do?
<yorickpeterse>
also mind you that threads in MRI are fairly useless for non IO stuff
Squarepy has quit [Read error: Connection reset by peer]
Squarepy has joined #ruby-lang
mbj has joined #ruby-lang
mbj has quit [Ping timeout: 240 seconds]
stevepsharpe has quit [Quit: Leaving...]
bastilian has quit [Quit: Leaving...]
bastilian has joined #ruby-lang
duphus1 has quit [Quit: Leaving.]
Trapper has quit [Ping timeout: 272 seconds]
majjoha has joined #ruby-lang
majjoha has quit [Ping timeout: 246 seconds]
mdedetrich has joined #ruby-lang
Boohbah has quit [Ping timeout: 240 seconds]
Kabaka has quit [Ping timeout: 240 seconds]
toretore has joined #ruby-lang
martndemus has joined #ruby-lang
martndemus has quit [Client Quit]
heftig_ has joined #ruby-lang
martndemus has joined #ruby-lang
Kabaka has joined #ruby-lang
heftig has quit [Ping timeout: 272 seconds]
schaerli has joined #ruby-lang
Trapper has joined #ruby-lang
shinnya has quit [Ping timeout: 272 seconds]
<Trapper>
I#m
Boohbah has joined #ruby-lang
<Trapper>
trying to send feedback on what is happening to the user
<Trapper>
so surely I have to use threads?
<Trapper>
there's no other way to do 2 things at the same time
hhatch has quit [Ping timeout: 252 seconds]
stevepsharpe has joined #ruby-lang
ledestin has quit [Quit: ledestin]
bastilian has quit [Quit: Leaving...]
VTLob has joined #ruby-lang
<yorickpeterse>
That's correct
schaerli has quit [Remote host closed the connection]
<Trapper>
yorickpeterse: I'll admit I've never done threading before :)
<Trapper>
You see, I thought I simply had to have 2 threads to give feedback; one to display the feedback, and a second one to contain the methods of the actual program
mbj has joined #ruby-lang
mbj has quit [Client Quit]
mbj has joined #ruby-lang
<Trapper>
and then I thought there was magical way to see what method the interpreter was currently in, and send this information to the first thread
<yorickpeterse>
Hm, not sure if that's required for ncurses
<yorickpeterse>
eh no that's not how threading works
<Trapper>
So I need seperate threads for each method?
<Trapper>
one thread for the 'status displayer'
<Trapper>
all of the other methods in their own thread
<Trapper>
and then, in the 'status displayer' thread, test to see what threads are .alive? ?
<Trapper>
and then give according feedback
<Trapper>
?
MaddinXx has quit [Remote host closed the connection]
<Trapper>
afk
<yorickpeterse>
No
<yorickpeterse>
You're not getting what threads do
<yorickpeterse>
They are not stricly bound to methods at all
<yorickpeterse>
Threads are just lumps of code that can do *anything* while something else is running (ignoring MRI's GIL for a moment)
<yorickpeterse>
if you're dealing with some kind of GUI you typically have one thread doing the main GUI stuff and a bunch of others doing the slow, potentially blocking work
<yorickpeterse>
that way the UI doesn't lock up if you're doing something that takes a few seconds
<Trapper>
I see :)
<Trapper>
I am creating a program with a UI (using Curses)
<Trapper>
So how can I give feedback to the UI?
<Trapper>
Show the user what's currently happening?
<Trapper>
One thread for the UI. One thread for the rest of the program.
<yorickpeterse>
Start with that, yes
<whitequark>
one thread to rule them all
<Trapper>
haha
<yorickpeterse>
whitequark: clearly we all need to start using event loops and callbacks everywhere
<Trapper>
ahh I see
<Trapper>
right, these are new topics to me
<Trapper>
but
<Trapper>
I assume we have a continually running event loop in the UI thread
<yorickpeterse>
yes
<yorickpeterse>
but doesn't curses do that for you?
<Trapper>
and then, in the Program thread, we use callbacks to send information to this loop?
<yorickpeterse>
(last time I looked at (n)curses was 2 years ago)
<yorickpeterse>
if not more
<yorickpeterse>
not strictly callbacks, anything really
<yorickpeterse>
Just stick with method calls instead of sharing data
<yorickpeterse>
e.g.
<Trapper>
well I understand that now, that's fine
<Trapper>
but now I'm worried that curses apparently does this automatically :L
<yorickpeterse>
a problem common with threading is that the moment you start sharing data everything will explode on Friday the 13th once a year
<yorickpeterse>
when everybody is at sleep
<yorickpeterse>
except for that one client who's already pissed off
<Trapper>
I see!
martndemus has quit [Ping timeout: 240 seconds]
<Trapper>
I'll take note of that
<Trapper>
What do you mean that curses takes care of it for you, though? Because if I create a window with a counter loop inside it, and a second window witha counter loop inside it, the first window will appear, count down and then dissapear. Then the second window will appear, count down and then dissapear.
<Trapper>
I can only get them to both count down on the screen at the same time using two threads?
<Trapper>
So it doesn't appear to me that curses does it automatically.
<Trapper>
I am using curses though. Not ncurses
mucker has quit [Remote host closed the connection]
mucker has joined #ruby-lang
majjoha has joined #ruby-lang
<yorickpeterse>
hm
<yorickpeterse>
not sure about curses, but for example in GTK it will start a loop for you
<yorickpeterse>
So the moment you call Gtk.main it will block everything after it
bastilian has joined #ruby-lang
mucker has quit [Ping timeout: 246 seconds]
cnivolle has joined #ruby-lang
majjoha has quit [Ping timeout: 240 seconds]
martndemus has joined #ruby-lang
<Trapper>
yorickpeterse: I've been skimming some docs...I don't think each new window is in its own new thread.
<Trapper>
if that is what you mean by automatic threading?
<Trapper>
there's no much mention of threads, actually
<Trapper>
*not much
<yorickpeterse>
No
bastilian has quit [Quit: Leaving...]
<yorickpeterse>
curses doesn't use threading
<yorickpeterse>
What I meant was whether or not you'd somehow have to keep it alive yourself or whether it would start some kind of loop
<Trapper>
ohh!
<Trapper>
I think understand now
<Trapper>
Yes, I think it is automatic
<Trapper>
acutally
anekos_ has quit [Ping timeout: 264 seconds]
anekos_ has joined #ruby-lang
majjoha has joined #ruby-lang
<Trapper>
yorickpeterse: Ah yes getting on well now
majjoha has quit [Ping timeout: 256 seconds]
<Trapper>
simply using an instance variable to update the variable loop
<Trapper>
*event loop
<Trapper>
instance variables are availbe to all across threads
mahlon_ has quit [Ping timeout: 240 seconds]
mahlon_ has joined #ruby-lang
sreffotsirk has joined #ruby-lang
elia has joined #ruby-lang
jithu has joined #ruby-lang
jondot has quit [Quit: WeeChat 0.3.7]
bastilian has joined #ruby-lang
majjoha has joined #ruby-lang
francisfish has joined #ruby-lang
tonni has quit [Remote host closed the connection]
banisterfiend has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby-lang
shinnya has joined #ruby-lang
daikan has quit [Remote host closed the connection]
gjaldon has joined #ruby-lang
daikan has joined #ruby-lang
bastilian has quit [Quit: Leaving...]
workmad3 has quit [Ping timeout: 272 seconds]
daikan has quit [Ping timeout: 272 seconds]
kek has joined #ruby-lang
banisterfiend has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
simoz has joined #ruby-lang
<chris2>
anyone knows which is the best taglib interface for ruby?
tomzx_mac has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
<chris2>
hm, taglib-ruby seems to be most recent
sreffotsirk has quit [Quit: ❤]
Trapper has joined #ruby-lang
kitak_ has quit [Remote host closed the connection]
kitak_ has joined #ruby-lang
cogent has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mucker has joined #ruby-lang
GeissT has quit [Remote host closed the connection]
Tearan has joined #ruby-lang
Tearan has quit [Client Quit]
cogent has quit [Quit: cogent]
Trapper has quit [Ping timeout: 272 seconds]
jwollert- has quit [Ping timeout: 248 seconds]
majjoha has joined #ruby-lang
Squarepy_ has joined #ruby-lang
Squarepy_ has quit [Remote host closed the connection]
Squarepy has quit [Quit: Leaving]
workmad3 has joined #ruby-lang
sepp2k has joined #ruby-lang
majjoha has quit [Ping timeout: 246 seconds]
Tearan has joined #ruby-lang
Tearan has quit [Client Quit]
Tearan has joined #ruby-lang
Tearan has quit [Client Quit]
workmad3 has quit [Ping timeout: 272 seconds]
nathanstitt has joined #ruby-lang
Tearan has joined #ruby-lang
Tearan has quit [Client Quit]
Tearan has joined #ruby-lang
Tearan has quit [Client Quit]
gjaldon has quit [Remote host closed the connection]
Maddin___ has joined #ruby-lang
MaddinXx_ has quit [Ping timeout: 256 seconds]
elia has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby-lang
relix has joined #ruby-lang
lfox has joined #ruby-lang
[spoiler] has joined #ruby-lang
Johz has joined #ruby-lang
Trapper has joined #ruby-lang
caral has joined #ruby-lang
caral has quit [Client Quit]
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
francisfish has quit [Read error: Connection reset by peer]
francisfish has joined #ruby-lang
<Trapper>
So why is it that Rails is so heavily dependant on the console/terminal
<Trapper>
compared with PHP framworks?
<Trapper>
I mean, why isn't there a PHPMyAdmin for Ruby?
<Trapper>
RubyMyAdmin?
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
simoz has quit [Ping timeout: 246 seconds]
majjoha has joined #ruby-lang
<[spoiler]>
Trapper, Rails is not a language, though
<[spoiler]>
PHP is a framework on its own
<[spoiler]>
Also, I never felt like I needed PhpMyAdmin with Rails, tbf
<Trapper>
spoiler: Neither have I, but I've only managed simple applications so far
<Trapper>
spoilder: How would you manage a large database?
<Trapper>
make queries on it and suchlike?
<Trapper>
All through the command line?
<[spoiler]>
Trapper, rails console & active record :D
francisfish has quit [Ping timeout: 245 seconds]
<[spoiler]>
rails lets you run like a project-specific irb session
<[spoiler]>
you have perfet control over everything through it
<[spoiler]>
perfect*
<Trapper>
okay :D
majjoha has quit [Ping timeout: 256 seconds]
<Trapper>
I use active record too
<Trapper>
I just think it might be a bit confusing for larger projects
elia has joined #ruby-lang
elia has quit [Client Quit]
<Trapper>
I mean, hard to see relationships and such like.
elia has joined #ruby-lang
gjaldon has joined #ruby-lang
<Trapper>
You'd have to study your models and make a few queries to work out what was going on
<Trapper>
Do you reckon that's what developers working on huge projects do?
<[spoiler]>
Yeah. I mean there's nothing stopping you from using PhpMyAdmin *and* Rails
Kabaka has quit [Remote host closed the connection]
<[spoiler]>
I just never thought I needed it. Everything you need is already available to you from the OS/Rails
<Trapper>
Suppose so
<Trapper>
one point
<Trapper>
this may be majorly nooby so forgive me
<Trapper>
but
<Trapper>
actually I've just worked it
<Trapper>
out
<Trapper>
never mind :P
<[spoiler]>
Trapper, hahaha! See, there's nothing to worry about :-)
Kabaka has joined #ruby-lang
<Trapper>
spoilder: nope :)
<Trapper>
*spoiler
<gjaldon>
hi all, having problems with irb/pry. 'alt+left arrow' works fine but 'alt + right arrow' works on the first, but any next consecutive ones don't unless I press 'a' after. I just installed ruby 2.0 compiled with readline. before, both 'alt + left arrow' and 'alt + right arrow' didn't work.
<gjaldon>
anyone here have an idea on how to fix this?
wallerdev has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
majjoha has joined #ruby-lang
workmad3 has quit [Ping timeout: 272 seconds]
majjoha has quit [Ping timeout: 272 seconds]
elia has quit [Quit: Computer has gone to sleep.]
Trapper has quit [Ping timeout: 272 seconds]
elia has joined #ruby-lang
alekst has joined #ruby-lang
[spoiler] has quit [Quit: Leaving]
jsullivandigs has joined #ruby-lang
Elinos has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has quit [Ping timeout: 272 seconds]
majjoha has joined #ruby-lang
majjoha has quit [Ping timeout: 240 seconds]
mbj has quit [Ping timeout: 245 seconds]
sevvie has joined #ruby-lang
Tearan has joined #ruby-lang
Tearan has quit [Client Quit]
schaerli has joined #ruby-lang
Tearan has joined #ruby-lang
pumper has joined #ruby-lang
Tearan has quit [Client Quit]
banisterfiend has quit [Quit: Computer has gone to sleep.]
jithu has quit [Quit: Mother, did it need to be so high?]
Maddin___ has quit [Remote host closed the connection]
pumper has quit [Remote host closed the connection]
io_syl has quit []
rx_ has joined #ruby-lang
banisterfiend has joined #ruby-lang
rx_ has left #ruby-lang [#ruby-lang]
rx_ has joined #ruby-lang
rx_ has quit [Client Quit]
alekst has quit [Quit: Leaving...]
majjoha has joined #ruby-lang
rx_ has joined #ruby-lang
rx_ has left #ruby-lang [#ruby-lang]
michael_mbp is now known as zz_michael_mbp
majjoha has quit [Ping timeout: 246 seconds]
carlosgaldino has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jithu has joined #ruby-lang
rixth has joined #ruby-lang
apeiros has joined #ruby-lang
Tearan has joined #ruby-lang
Tearan has quit [Client Quit]
Tearan has joined #ruby-lang
Tearan has quit [Client Quit]
Tearan has joined #ruby-lang
Tearan has quit [Client Quit]
sevvie has quit [Read error: Connection reset by peer]
jxie has joined #ruby-lang
Tearan has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]