<harly>
and if you want actual player objects you'll need to cut some code to build them, probably using the @players data.
<Organik>
I figured that was an object
<harly>
what is that? one p ?
<harly>
or @players?
hellangel7 has joined #ruby-lang
skammer2 has joined #ruby-lang
<Organik>
Yeah one p
<Organik>
Same thing comes from @players, just all the other players.
<harly>
so each on a hash is probably giving you a key value pair. and it's name -> player_object
<harly>
it's hacky but to give an idea @players[p[1]].name should actually work.
<harly>
but i wouldn't do that long term. but try it out
<Organik>
Yeah I did p[0] earlier which gave me the name. But I knew that's not a good solution..
<harly>
p[1] should give you the player object tho
<harly>
or just change it to @players.each_value
<harly>
and use p.name as before
<harly>
that should work too
<Organik>
Hmm, I'll test it out. But I wonder what the better solution is as well..
<harly>
that solution is fine.
<harly>
if you really just want to pass a players array in, then put that int he controller
<harly>
@players = server.players.each_value
skammer2 has quit [Ping timeout: 240 seconds]
<harly>
sorry. server.players.values
<harly>
i mean.
bsvineeth has quit [Remote host closed the connection]
<Organik>
harly: That works. Although.. for whatever reason, it prints the names to the page, but then a few lines below it also echoes the whole array.. http://cl.ly/Xm8J
<harly>
isn't that your debugging line from before?
arooni-mobile has joined #ruby-lang
<Organik>
<%= @players.each do |p| %> <%= p.name %><br><br> <% end %>
<Organik>
That's all that's in my view
<harly>
dunno. you have a debugging somewhere in a template.
<harly>
look at the source and trace it down.
<harly>
maybe remove the require 'pp' but i don't think that it is alone
bsvineeth has joined #ruby-lang
<Organik>
Hmm... I literally don't know what it could be coming from. I mean if I remove the code from the view then it disappears obviously. But idk.
<Organik>
I removed the require pp but still there.
<Hanmac>
hey i have questions about the C-API with TypedData ... can someone help me about that problems?
<harly>
can you patsebin the html source of that data output?
kgrz has joined #ruby-lang
kimegede has quit [Quit: Leaving...]
spuk has quit [Ping timeout: 260 seconds]
kgrz has quit [Remote host closed the connection]
AKASkip has joined #ruby-lang
kgrz has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
hellangel7 has quit [Remote host closed the connection]
AKASkip has quit [Ping timeout: 272 seconds]
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
<Organik>
harly: I've figured out that this works without the each_value method in the controller
<Organik>
<% @players.each do |p, player| %> <%= player.name %> <% end %>
<harly>
yes that too.
<Organik>
I don't know why I have to do "p, player" for it to work, I wish it would just be p.. Really just a lack of Ruby knowledge really I'm sure.
<harly>
because it's a hash
<harly>
hash.each iterates over key,value pairs
<harly>
if you don't specify vars for both, it uses the key/value as a 2 item array instead.
Cakey has joined #ruby-lang
<Organik>
So by using |p| only.. p.name doesn't exist so to speak. I guess it's just that p, player seems ugly to me D:
<harly>
well |p| alone gives you [key, value] in p.
<Hanmac>
Organik: if you dont use a value inside of || use _ like "@players.each do |_, player|" but i think better would be "@players.each_value do |player|"
<harly>
in this particular case he's only using the name. so even players.each_key would do it. and just p
<harly>
but presumably you'll want that player object for more stuff
<harly>
(the hash is essentially [p.name => p] )
<Organik>
Alright I'll stick with that. I didn't know I could use the each_value in the view.
<harly>
you can use anything from hash in the view
<harly>
that's the rb in .erb :)
<harly>
but really. i think the clenaer solution is to have the controller do @players = server.players.values
<harly>
otherwise, call it @players_hash, cos it's a bit confusing at first.
skammer2 has joined #ruby-lang
<harly>
did you find the source of that debugging output?
<Organik>
Strangely no... it's gone now though after toying with this a bit.
<Organik>
I've gone with this now.. controller: @players = server.players.values view: <% @players.each do |player| %> <%= player.name %> <% end %>
<Organik>
I like this solution, thank you!
Cakey has quit [Ping timeout: 240 seconds]
<harly>
you might have something generic in layouts/applicaiton for debugging.
<harly>
but yeah, just get on with whatever you're doing and worry about it later :)
Guest39626 has joined #ruby-lang
<Organik>
Yeah it's basically default rails. Albeit with foundation as well. But the application.rb is pretty standard. It was something with the original loop I guess.
<Organik>
Quick question, difference between .each_value and .values
<harly>
.each_values is a shortcut for .values.each i assume possibly with something optimised
<harly>
each is the looping part, expecting |blah| etc
skammer2 has quit [Ping timeout: 246 seconds]
<Organik>
Well I'm only using .values. @players = server.players.values
<harly>
yes. but in your template you do @players.each
<Organik>
Oh gotcha
<harly>
so really it's server.players.values.each |player| etc
<Organik>
I see
<Organik>
Thanks for your help harly & Hanmac
<Organik>
Much appreciated
<harly>
np have fun. also, there's #rubyonrails for rails help generally. more people willing to help there with rails specific stuff which this was.
gjaldon has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 260 seconds]
justinmburrous has quit [Remote host closed the connection]
lewix has quit [Read error: Connection reset by peer]
_ht has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
hakunin has joined #ruby-lang
<Hanmac>
harly: can you help with questions for the C-Api too?
gjaldon has quit [Remote host closed the connection]
<harly>
doubt it. know nothing about c-api. new to ruby myself.
JoL1hAHN has joined #ruby-lang
robbyoconnor has quit [Read error: No route to host]
robbyoconnor has joined #ruby-lang
stevenkuhn has joined #ruby-lang
mistym has quit [Ping timeout: 245 seconds]
mistym has joined #ruby-lang
stevenkuhn has quit [Quit: stevenkuhn]
relix has joined #ruby-lang
stevenkuhn has joined #ruby-lang
stevenkuhn has quit [Client Quit]
lun__ has quit [Read error: Connection reset by peer]
skammer2 has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
SuMo_D has quit [Remote host closed the connection]
aarellano has quit [Quit: Hasta la vista, baby]
skammer2 has quit [Ping timeout: 272 seconds]
ffmegama_ has quit [Remote host closed the connection]
ffmegaman has joined #ruby-lang
lun_ has joined #ruby-lang
ffmegaman has quit [Ping timeout: 258 seconds]
hellangel7 has joined #ruby-lang
lun__ has joined #ruby-lang
lun_ has quit [Ping timeout: 244 seconds]
sMecKs_ has quit [Read error: Connection reset by peer]
Guest39626 has quit [Quit: This computer has gone to sleep]
fusillicode1 has joined #ruby-lang
fusillicode has quit [Ping timeout: 244 seconds]
lun__ has quit [Ping timeout: 246 seconds]
kgrz has quit [Remote host closed the connection]
lun_ has joined #ruby-lang
kgrz has joined #ruby-lang
thomasxie has joined #ruby-lang
lele has quit [Ping timeout: 272 seconds]
ffmegaman has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kgrz has quit [Ping timeout: 260 seconds]
lele has joined #ruby-lang
Cakey has joined #ruby-lang
tectonic has quit []
ffmegaman has quit [Ping timeout: 250 seconds]
ta has joined #ruby-lang
justinmburrous has joined #ruby-lang
Cakey has quit [Ping timeout: 244 seconds]
ta___ has quit [Ping timeout: 260 seconds]
lun_ has quit [Ping timeout: 260 seconds]
lun_ has joined #ruby-lang
justinmburrous has quit [Ping timeout: 260 seconds]
lun_ has quit [Read error: Connection reset by peer]
bsvineeth has quit [Remote host closed the connection]
GBrawl has joined #ruby-lang
bsvineeth has joined #ruby-lang
lun_ has joined #ruby-lang
lun_ has quit [Read error: Connection reset by peer]
skammer2 has joined #ruby-lang
bsvineeth has quit [Ping timeout: 260 seconds]
lun_ has joined #ruby-lang
fusillicode has joined #ruby-lang
<fusillicode>
hi guys
<fusillicode>
is there a way to add a default model for an has_one relation with mongoid?
skammer2 has quit [Ping timeout: 250 seconds]
fusillicode1 has quit [Ping timeout: 250 seconds]
tbuehlmann has joined #ruby-lang
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AKASkip has joined #ruby-lang
lun__ has joined #ruby-lang
charliesome has quit [Quit: zzz]
lun_ has quit [Ping timeout: 258 seconds]
sarkyniin has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
marr has joined #ruby-lang
bsvineeth has joined #ruby-lang
konr has quit [Quit: Connection closed for inactivity]
bsvineeth has quit [Remote host closed the connection]
ffmegaman has joined #ruby-lang
ffmegaman has quit [Ping timeout: 240 seconds]
lun__ has quit [Ping timeout: 272 seconds]
justinmburrous has joined #ruby-lang
lun_ has joined #ruby-lang
skammer2 has joined #ruby-lang
charliesome has joined #ruby-lang
justinmburrous has quit [Ping timeout: 245 seconds]
lun_ has quit [Ping timeout: 244 seconds]
apt-get_ has joined #ruby-lang
arooni-mobile has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
sarkyniin has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 272 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
chills42 has joined #ruby-lang
lun_ has joined #ruby-lang
oleo__ has joined #ruby-lang
oleo is now known as Guest55852
arooni-mobile has quit [Ping timeout: 245 seconds]
chills42 has quit [Ping timeout: 244 seconds]
lun_ has quit [Read error: Connection reset by peer]
Guest55852 has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby-lang
bsvineeth has joined #ruby-lang
<Hanmac>
hey how does the mark function pointer works that can be used with Wrap_Struct? i never really understand how to use it ...
lun_ has joined #ruby-lang
dagda1_ has joined #ruby-lang
<Mon_Ouie>
If you have a struct that holds a direct reference to a Ruby object, you need to define the mark function and inside it you should call rb_gc_mark
gjaldon has joined #ruby-lang
koderok has joined #ruby-lang
koderok has quit [Remote host closed the connection]
Cakey has joined #ruby-lang
Cakey has quit [Ping timeout: 260 seconds]
faces has joined #ruby-lang
face has quit [Ping timeout: 245 seconds]
ffmegaman has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
<Hanmac>
Mon_Ouie: okay that is not the case ... the its only that my ruby object does have a struct ... that holds other structs and this other structs are in different ruby objects ... (the other struct may have access to that ruby object hm but i dont think mark would be able to solv that for me ...
ffmegaman has quit [Ping timeout: 260 seconds]
bsvineeth has quit [Ping timeout: 260 seconds]
justinmburrous has joined #ruby-lang
<Hanmac>
hm currently i get double-free errors but i dont know from wich class it does come from ...
bsvineeth has joined #ruby-lang
hellangel7 has quit [Max SendQ exceeded]
<Hanmac>
huch now the double frees are gone again ...
justinmburrous has quit [Ping timeout: 245 seconds]
Tab__ has joined #ruby-lang
thomasxie has quit [Quit: Leaving.]
marr has quit [Ping timeout: 244 seconds]
tdy has quit [Ping timeout: 245 seconds]
bsvineeth has quit [Remote host closed the connection]
shinnya has joined #ruby-lang
thomasxie has joined #ruby-lang
ffmegaman has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
matp has joined #ruby-lang
dagda1_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tdy has joined #ruby-lang
x0f_ has joined #ruby-lang
ffmegaman has quit [Ping timeout: 258 seconds]
gjaldon has quit [Remote host closed the connection]
justinmburrous has joined #ruby-lang
x0f has quit [Ping timeout: 260 seconds]
dagda1 has joined #ruby-lang
justinmburrous has quit [Ping timeout: 272 seconds]
pabs has quit [Ping timeout: 246 seconds]
pabs has joined #ruby-lang
cleopatra has quit [Ping timeout: 240 seconds]
arBmind has quit [Quit: Leaving.]
gjaldon has joined #ruby-lang
arBmind has joined #ruby-lang
thomasxie has quit [Quit: Leaving.]
bruno- has quit [Ping timeout: 246 seconds]
gjaldon has quit [Remote host closed the connection]
Cakey has joined #ruby-lang
Cakey has quit [Ping timeout: 244 seconds]
hellangel7 has joined #ruby-lang
tkuchiki has joined #ruby-lang
Hanmac has quit [Remote host closed the connection]
gjaldon has joined #ruby-lang
syva has joined #ruby-lang
apt-get_ has quit [Quit: Quitte]
gjaldon has quit [Remote host closed the connection]
gjaldon has joined #ruby-lang
gjaldon has quit [Client Quit]
emmesswhy has joined #ruby-lang
ffmegaman has joined #ruby-lang
ffmegaman has quit [Ping timeout: 244 seconds]
justinmburrous has joined #ruby-lang
symm- has joined #ruby-lang
cleopatra has joined #ruby-lang
bruno- has joined #ruby-lang
justinmburrous has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
emmesswhy has quit [Quit: This computer has gone to sleep]
hellangel7 has quit [Read error: Connection reset by peer]
migbar has joined #ruby-lang
chills42 has joined #ruby-lang
migbar_ has joined #ruby-lang
migbar has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 272 seconds]
Tab__ has quit [Quit: This computer has gone to sleep]
Tab__ has joined #ruby-lang
chills42 has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby-lang
Cakey has joined #ruby-lang
bruno- has quit [Ping timeout: 260 seconds]
ledestin_ has joined #ruby-lang
ledestin has quit [Ping timeout: 246 seconds]
ledestin_ is now known as ledestin
ffmegaman has joined #ruby-lang
FiXato has quit [Quit: maintenance]
houhoulis has quit [Remote host closed the connection]
syva has quit [Quit: syva]
ffmegaman has quit [Ping timeout: 260 seconds]
justinmburrous has joined #ruby-lang
elia has joined #ruby-lang
hellangel7 has joined #ruby-lang
hellangel7 has quit [Max SendQ exceeded]
justinmburrous has quit [Ping timeout: 244 seconds]
Tab__ has quit [Quit: This computer has gone to sleep]
hellangel7 has joined #ruby-lang
bruno- has joined #ruby-lang
yfeldblum has joined #ruby-lang
lun__ has joined #ruby-lang
lun_ has quit [Ping timeout: 244 seconds]
gianlucadv_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 244 seconds]
yatish27 has joined #ruby-lang
t_ has quit [Read error: Connection reset by peer]
koderok has joined #ruby-lang
koderok has quit [Remote host closed the connection]
t_ has joined #ruby-lang
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagda1 has joined #ruby-lang
hellangel7 has quit [Max SendQ exceeded]
Mon_Ouie has joined #ruby-lang
gjaldon has joined #ruby-lang
matp has quit [Ping timeout: 260 seconds]
akahn has joined #ruby-lang
Cakey has quit [Ping timeout: 272 seconds]
cleopatra has quit [Ping timeout: 245 seconds]
ffmegaman has joined #ruby-lang
nofxx has joined #ruby-lang
Miphix has quit [Quit: Leaving]
ffmegaman has quit [Ping timeout: 272 seconds]
moogs has joined #ruby-lang
justinmburrous has joined #ruby-lang
yfeldblum has joined #ruby-lang
matp has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
cleopatra has joined #ruby-lang
justinmburrous has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
syva has joined #ruby-lang
ledestin has quit [Read error: Connection reset by peer]
ledestin has joined #ruby-lang
Miphix has joined #ruby-lang
oleo__ has quit [Quit: Verlassend]
klmlfl has joined #ruby-lang
sarkyniin has joined #ruby-lang
oleo has joined #ruby-lang
houhoulis has joined #ruby-lang
dwknoxy has joined #ruby-lang
spastorino has joined #ruby-lang
kimegede has joined #ruby-lang
bantic has joined #ruby-lang
kimegede has quit [Quit: Leaving...]
bantic has quit [Quit: bantic]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
ffmegaman has joined #ruby-lang
cleopatra has quit [Ping timeout: 245 seconds]
klmlfl has joined #ruby-lang
yfeldblum has joined #ruby-lang
ffmegaman has quit [Ping timeout: 245 seconds]
cleopatra has joined #ruby-lang
Hanmac has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
justinmburrous has joined #ruby-lang
<Hanmac>
had a problem recently with TypedData ... the problem was that instances of the same ruby class does need to have different rb_data_type_t objects, because some objects can be freed, but some objects can not ... and that does depend on the object and not on he class itself ... hm currently i found no better way then define two rb_data_type_t objects for one ruby class ... or does have someone a better idea?
tdy has quit [Ping timeout: 272 seconds]
snsei has joined #ruby-lang
face has joined #ruby-lang
bsvineeth has joined #ruby-lang
faces has quit [Ping timeout: 260 seconds]
red_menace has joined #ruby-lang
justinmburrous has quit [Ping timeout: 272 seconds]
cleopatra has quit [Ping timeout: 272 seconds]
lun_ has joined #ruby-lang
cleopatra has joined #ruby-lang
kimegede has joined #ruby-lang
lun__ has quit [Ping timeout: 240 seconds]
chills42 has joined #ruby-lang
unlikely_monkey has joined #ruby-lang
snsei has quit [Remote host closed the connection]
bantic has joined #ruby-lang
syva has quit [Quit: syva]
klmlfl has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 250 seconds]
chills42 has quit [Ping timeout: 272 seconds]
jarto has joined #ruby-lang
snsei_ has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 260 seconds]
necro has quit [Quit: Page closed]
kimegede has quit [Quit: Leaving...]
syva has joined #ruby-lang
tdy has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 250 seconds]
mbr has quit [Quit: leaving]
mbr has joined #ruby-lang
cleopatra has quit [Ping timeout: 245 seconds]
cleopatra has joined #ruby-lang
tdy has quit [Ping timeout: 260 seconds]
bantic has quit [Quit: bantic]
cleopatra has quit [Ping timeout: 260 seconds]
snsei_ has quit [Remote host closed the connection]
snsei has joined #ruby-lang
cleopatra has joined #ruby-lang
snsei_ has joined #ruby-lang
snsei has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
skammer2 has quit [Ping timeout: 260 seconds]
cleopatra has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
ikrima has quit [Ping timeout: 260 seconds]
sarkyniin has quit [Quit: Quitte]
justinmburrous has joined #ruby-lang
gjaldon has quit []
charliesome has quit [Quit: zzz]
cleopatra has joined #ruby-lang
justinmburrous has quit [Ping timeout: 240 seconds]
Violentr has joined #ruby-lang
SuMo_D has joined #ruby-lang
tdy has joined #ruby-lang
cleopatra has quit [Ping timeout: 272 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
cleopatra has joined #ruby-lang
koderok has joined #ruby-lang
koderok has quit [Remote host closed the connection]
<tbuehlmann>
slimjims, in the file installer.rb on line 50 you call a method named split on an object. that object is nil (probably not what you expected) and nil does not respond to a method with the name split
GBrawl has quit [Ping timeout: 260 seconds]
chills42 has joined #ruby-lang
gix has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby-lang
tkuchiki has quit [Ping timeout: 272 seconds]
<slimjims>
tbuehlmann, my line 50 reads as follows:
<slimjims>
There's no split in it, though the error is in line 50
justinmburrous has joined #ruby-lang
<tbuehlmann>
right, but the parse method calls split on line 368 in /usr/lib/ruby/1.9.1/cgi/core.rb
<tbuehlmann>
can you check what URI.parse(app_url).query returns?
SloopJohnB has quit [Quit: Leaving...]
momomomomo has quit [Ping timeout: 272 seconds]
momomomomo has joined #ruby-lang
ledestin_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 250 seconds]
<slimjims>
tbuehlmann, gimme a sec
gix has joined #ruby-lang
webhat has quit [Quit: No Ping reply in 180 seconds.]
FiXato has joined #ruby-lang
ledestin has quit [Ping timeout: 272 seconds]
ledestin_ is now known as ledestin
justinmburrous has quit [Ping timeout: 260 seconds]
webhat has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
_ht has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
momomomomo has quit [Client Quit]
<slimjims>
tbuehlmann, so here's what I found: all this was in a while loop; I removed the loop and ran the parse statement on a single URL - which works
bruno- has quit [Ping timeout: 272 seconds]
<tbuehlmann>
you could output URI.parse(app_url).query inside the loop before you call CGI.parse
SuMo_D has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
GBrawl has joined #ruby-lang
SloopJohnB has joined #ruby-lang
<SloopJohnB>
oppy
<slimjims>
tbuehlmann, puts on that term gives the same error: undefined method split.....
<tbuehlmann>
output app_url then
Cakey has joined #ruby-lang
ikrima has joined #ruby-lang
<slimjims>
ok, I've hardcoded the input at the moment
havenwood has quit [Remote host closed the connection]
nofxx_ has joined #ruby-lang
havenwood has joined #ruby-lang
nofxx has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
GaelanAintAround is now known as Gaelan
necro has quit [Ping timeout: 246 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
havenwood has joined #ruby-lang
ngw_ has quit [Read error: Connection reset by peer]
elia has quit [Read error: Connection reset by peer]
elia has joined #ruby-lang
Phrogz_ has joined #ruby-lang
Phrogz_ has joined #ruby-lang
cleopatra has quit [Read error: Connection reset by peer]
Phrogz_ is now known as Phrogz
skammer3 has joined #ruby-lang
oleo__ has joined #ruby-lang
oleo is now known as Guest11597
Gaelan is now known as GaelanAintAround
skammer2 has quit [Ping timeout: 260 seconds]
humd1ng3r has joined #ruby-lang
humd1ng3r has quit [Remote host closed the connection]
Guest11597 has quit [Ping timeout: 260 seconds]
<Phrogz>
Repeat from #ruby, looking for resources: anyone here use QtRuby and understand it? I'm looking at examples on http://zetcode.com/gui/rubyqt/layoutmanagement/ and the code seems rather ugly.
<Phrogz>
For example, among other things, why would you create an `App` class and then force to wrap it in app = Qt::Application.new ARGV; QtApp.new; app.exec
Guest53163 has quit [Changing host]
Guest53163 has joined #ruby-lang
Guest53163 is now known as bougyman
bsvineeth has joined #ruby-lang
charliesome has joined #ruby-lang
bsvineeth has quit [Ping timeout: 250 seconds]
<womble>
Phrogz: Glad to see you qualified your question "and understand it". I used it a bit, and most definitely did *not* understand it.
charliesome has quit [Quit: zzz]
<Phrogz>
Hah :)
<Phrogz>
I understand with automated bindings to a CPP library you need to sort of adhere to whatever the underlying library does, but the code I'm seeing is so very, very procedural and un-ruby-esque.
<Phrogz>
I think if I continue on this route I'll have to create some sanity wrappers that allow blocks to scope related subsequent calls.
ta has quit [Read error: Connection reset by peer]
kimegede has quit [Quit: Leaving...]
ta has joined #ruby-lang
Miphix has joined #ruby-lang
Cakey has joined #ruby-lang
Cakey has quit [Ping timeout: 245 seconds]
SuMo_D has joined #ruby-lang
gix- has joined #ruby-lang
gix has quit [Disconnected by services]
banister has quit [Ping timeout: 260 seconds]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
ap4y has quit [Ping timeout: 258 seconds]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
Tab has joined #ruby-lang
Tab is now known as Guest34273
tectonic has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
konr has joined #ruby-lang
banister has joined #ruby-lang
moogs has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
seamon has joined #ruby-lang
migbar_ has quit [Remote host closed the connection]
banister has quit [Max SendQ exceeded]
moogs has quit [Ping timeout: 245 seconds]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
bnagy_ is now known as bnagy
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
<Phrogz>
Oh, look, they already did that. How nice :)
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
davispuh has quit [Ping timeout: 245 seconds]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
Guest34273 has quit [Read error: Connection reset by peer]
migbar has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
mistym has quit [Remote host closed the connection]
banister has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
migbar has quit [Read error: Connection reset by peer]
ikrima has quit [Ping timeout: 260 seconds]
bsvineeth has joined #ruby-lang
migbar has joined #ruby-lang
bsvineeth has quit [Ping timeout: 272 seconds]
bantic has joined #ruby-lang
bantic has quit [Client Quit]
bantic has joined #ruby-lang
micaeked has joined #ruby-lang
seamon has quit [Quit: Zzzzzzz]
joast has quit [Quit: Leaving.]
Phrogz has quit [Remote host closed the connection]