bzalasky has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
_ht has joined #ruby-lang
_ht has quit [Remote host closed the connection]
_ht has joined #ruby-lang
_ht has quit [Read error: Connection reset by peer]
_ht has joined #ruby-lang
robbyoconnor has joined #ruby-lang
banister has joined #ruby-lang
dachi has joined #ruby-lang
sdouglas_ has quit [Remote host closed the connection]
tbuehlmann has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
karamazov has quit [Remote host closed the connection]
dc5ala has joined #ruby-lang
rahul_j has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 240 seconds]
Varun_krishna has left #ruby-lang [#ruby-lang]
robbyoconnor has joined #ruby-lang
phansch has quit [Quit: WeeChat 0.4.2]
lolmaus has quit [Remote host closed the connection]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
emaxi has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
relix has joined #ruby-lang
yubrew has joined #ruby-lang
dachi has quit [Quit: ...]
emaxi has quit [Ping timeout: 245 seconds]
mistym has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 250 seconds]
mannyt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karamazov has joined #ruby-lang
|jemc| has quit [Ping timeout: 240 seconds]
GBrawl has joined #ruby-lang
GBrawl has quit [Client Quit]
knu has joined #ruby-lang
lolmaus has joined #ruby-lang
michd is now known as MichD
marr has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
banister has joined #ruby-lang
ikrima has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
danijoo has joined #ruby-lang
rahul_j has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emaxi has joined #ruby-lang
yubrew has joined #ruby-lang
emaxi has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
vlad_starkov has quit []
vlad_starkov has joined #ruby-lang
karamazov has joined #ruby-lang
karamazov has quit [Client Quit]
charliesome has joined #ruby-lang
Bwild has joined #ruby-lang
lolmaus has quit [Remote host closed the connection]
Cakey has quit [Ping timeout: 240 seconds]
Thanatermesis has quit [Ping timeout: 276 seconds]
sdouglas has joined #ruby-lang
emaxi has joined #ruby-lang
sdouglas has quit [Ping timeout: 240 seconds]
Guest49142 has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
lolmaus has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
Speed has joined #ruby-lang
trias has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
postmodern has quit [Quit: Leaving]
yubrew has joined #ruby-lang
vlad_starkov has joined #ruby-lang
yubrew has quit [Ping timeout: 276 seconds]
banister has joined #ruby-lang
karamazov has joined #ruby-lang
marr has quit []
mikecmpbll has joined #ruby-lang
rofel has joined #ruby-lang
alex-quiterio has joined #ruby-lang
rahul_j has quit [Ping timeout: 252 seconds]
rahul_j has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
Speed has quit [Ping timeout: 250 seconds]
danijoo has quit [Quit: Leaving...]
diegoviola has quit [Quit: WeeChat 0.4.3]
mikecmpbll has quit [Quit: i've nodded off.]
yfeldblum has quit [Remote host closed the connection]
mikecmpbll has joined #ruby-lang
sarkyniin has joined #ruby-lang
jsutt has joined #ruby-lang
rofel has quit [Remote host closed the connection]
rahul_j has quit [Quit: rahul_j]
rahul_j has joined #ruby-lang
kitak_ has quit [Remote host closed the connection]
jsutt has quit [Ping timeout: 252 seconds]
Lewix has joined #ruby-lang
karamazov has quit []
trias has left #ruby-lang [#ruby-lang]
stamina has joined #ruby-lang
yubrew has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
mbj has joined #ruby-lang
Pupeno has joined #ruby-lang
yubrew has quit [Ping timeout: 240 seconds]
Speed has joined #ruby-lang
mehlah has joined #ruby-lang
automationaddict has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
LMity has joined #ruby-lang
kyb3r_ has quit [Read error: Connection reset by peer]
vlad_starkov has quit []
LMity has quit [Ping timeout: 250 seconds]
hahuang65 has joined #ruby-lang
hahuang65 has quit [Ping timeout: 246 seconds]
araujo has joined #ruby-lang
araujo has quit [Changing host]
araujo has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
emaxi has quit [Remote host closed the connection]
emaxi has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.3]
Cakey has joined #ruby-lang
emaxi has quit [Ping timeout: 240 seconds]
sarkyniin has quit [Ping timeout: 250 seconds]
rahul_j has joined #ruby-lang
yubrew has joined #ruby-lang
mehlah_ has joined #ruby-lang
mehlah has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 240 seconds]
rahul_j has quit [Quit: rahul_j]
rahul_j has joined #ruby-lang
sarkyniin has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 245 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki_ has quit [Ping timeout: 276 seconds]
sbnnrd has joined #ruby-lang
rofel has joined #ruby-lang
yalue has joined #ruby-lang
Mon_Ouie has quit [Remote host closed the connection]
danijoo has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
frobrob has joined #ruby-lang
simono has joined #ruby-lang
yfeldblum has joined #ruby-lang
tkuchiki has joined #ruby-lang
dingus_khan has joined #ruby-lang
yfeldblum has quit [Ping timeout: 252 seconds]
Speed has quit [Ping timeout: 245 seconds]
DEac-_ has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby-lang
dingus_khan has quit []
DEac- has joined #ruby-lang
yfeldblum has joined #ruby-lang
metamaterial has quit [Quit: Leaving.]
yubrew has quit [Ping timeout: 276 seconds]
matp has quit [Quit: ZZZzzz…]
yfeldblum has quit [Ping timeout: 252 seconds]
charlies_ has joined #ruby-lang
charliesome has quit [Ping timeout: 276 seconds]
Pupeno has quit [Remote host closed the connection]
emaxi has joined #ruby-lang
Pupeno has joined #ruby-lang
developerjustin has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
<headius>
ddfreyne: I wasn't aware there were many open issues for jruby nokogiri
<headius>
and if there's a marshal bug in jruby I hope you have reported it
emaxi_ has joined #ruby-lang
miqui has joined #ruby-lang
emaxi has quit [Read error: Connection reset by peer]
stamina has quit [Quit: WeeChat 0.4.3]
faces has joined #ruby-lang
face has quit [Ping timeout: 240 seconds]
bkether has joined #ruby-lang
banister has joined #ruby-lang
mbj has left #ruby-lang [#ruby-lang]
suujeet has joined #ruby-lang
dorei has joined #ruby-lang
mehlah_ is now known as mehlah
kukyakya has joined #ruby-lang
matp has joined #ruby-lang
studentz has joined #ruby-lang
<studentz>
is this place for newbies ?
vpretzel has joined #ruby-lang
enebo has joined #ruby-lang
malconis has joined #ruby-lang
<gnufied>
usually don't ask to ask. just ask away your questions.
<gnufied>
if someone can answer, they will
emaxi_ has quit [Read error: Connection reset by peer]
emaxi has joined #ruby-lang
yubrew has joined #ruby-lang
SilkFox has quit [Ping timeout: 252 seconds]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yubrew has quit [Ping timeout: 276 seconds]
emaxi has quit [Ping timeout: 255 seconds]
metamaterial has joined #ruby-lang
relix has joined #ruby-lang
jgpawletko has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
metamaterial has quit [Ping timeout: 272 seconds]
emaxi has joined #ruby-lang
symm- has joined #ruby-lang
shinnya has joined #ruby-lang
<studentz>
I have a Class node with the attributes value, up(Node), down(Node). I'm trying to make a list using functional ruby, and I always end modifying the up and down Node. This make my list imperative not functional. Any help is more than welcome. Thanks
<gnufied>
then have your list operations return new list when adding something to it
<gnufied>
that should let you keep your code functional
simono has joined #ruby-lang
emaxi_ has joined #ruby-lang
emaxi has quit [Ping timeout: 264 seconds]
<studentz>
I know the level of the list(binomial tree), should I start from the last element and add the new list or from the first element? thanks
AncientAmateur has joined #ruby-lang
Letopanyu has joined #ruby-lang
studentz has quit [Quit: Leaving]
emaxi_ has quit [Read error: Connection reset by peer]
nathanstitt has joined #ruby-lang
bzalasky has joined #ruby-lang
omosoj has joined #ruby-lang
JohnBat26 has quit [Ping timeout: 240 seconds]
SilkFox has joined #ruby-lang
omosoj has quit [Client Quit]
omosoj has joined #ruby-lang
Lewix has joined #ruby-lang
arooni-mobile has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
herpless has joined #ruby-lang
yatish27 has joined #ruby-lang
loincloth has joined #ruby-lang
lolmaus has quit [Ping timeout: 245 seconds]
emaxi has joined #ruby-lang
lolmaus has joined #ruby-lang
sarkyniin has quit [Ping timeout: 265 seconds]
vpretzel has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
vpretzel has joined #ruby-lang
kitak has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
sdouglas has joined #ruby-lang
Letopanyu has quit [Read error: Connection reset by peer]
ssb123 has joined #ruby-lang
yfeldblum has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
suujeet has quit []
sdouglas has quit [Ping timeout: 240 seconds]
ssb123 has joined #ruby-lang
dik_dak has joined #ruby-lang
mykoweb has joined #ruby-lang
yfeldblum has quit [Ping timeout: 252 seconds]
yatish27 has quit [Remote host closed the connection]
mykoweb has quit [Ping timeout: 240 seconds]
yatish27 has joined #ruby-lang
yatish27 has quit [Ping timeout: 252 seconds]
veryrandomname has joined #ruby-lang
mykoweb has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
mykoweb has quit [Read error: Connection reset by peer]
<veryrandomname>
how can I parse json objects to ruby objects in a big json object? like: {a: JSONobject1, b: JSONobject2, JSONfatjoe: object3} Json.parse just returns one ruby hash! But I want a ruby hash populated with Ruby objects
mykoweb has joined #ruby-lang
<apeiros>
veryrandomname: json doesn't have such a thing
nathanstitt has quit [Quit: I growing sleepy]
<apeiros>
json only knows about 5 or 6 types. arrays, objects/hashes, floats, strings, booleans and null
<apeiros>
may have missed one, but that's about it.
omosoj has quit [Ping timeout: 240 seconds]
<veryrandomname>
the problem isn't about writing to json, its about parsing json! the json file is alright
<apeiros>
*sob*
<veryrandomname>
I only need json objects
<veryrandomname>
but I want these objects to be parsed to Ruby objects
<apeiros>
a hash is a ruby object
<veryrandomname>
custom Ruby objects!
<apeiros>
and how'd it know *which*?
<apeiros>
magic?
<apeiros>
as said, json only codifies above types.
<veryrandomname>
maybe
<veryrandomname>
in typed languages the type would tell
<apeiros>
dude, *use your brain*
<apeiros>
the json does not include any information for that.
<dvorak>
json doesn't have types, other tan the 5-6 that apeiros mentioned
<veryrandomname>
I know json doesn't have types
<veryrandomname>
json doens't neet to have types
* apeiros
is not up for this
<dvorak>
sounds like you need to post process the results of the json parse to instantiate some custom objects
<veryrandomname>
you could parse like "dear json please turn this Json object into a hash with objects of type X in it" you can do that in haskell
<veryrandomname>
just wondering if ruby has some magic too
<veryrandomname>
dvorak: oh, I could use a different class than the hash class to parse hashes, right? that could be fun
<dvorak>
well, it's just going to pass the values into your initialize method
<dvorak>
if your class can already handle that, then it'll be no problem
benlovell has joined #ruby-lang
karamazov has joined #ruby-lang
agrinb has joined #ruby-lang
<veryrandomname>
it doesn't really help me though, because I have a hash of hashes, so I can't use just one replacement for the hash class
metamaterial has quit [Ping timeout: 272 seconds]
<veryrandomname>
but thats ok. I can figure out something myself, was just wondering if you had some magic wisdom for me.
jsullivandigs has joined #ruby-lang
sepp2k has joined #ruby-lang
agrinb has quit [Ping timeout: 264 seconds]
yatish27 has joined #ruby-lang
omosoj has joined #ruby-lang
developerjustin has quit [Quit: Leaving...]
tbuehlmann has quit [Remote host closed the connection]
veryrandomname has left #ruby-lang [#ruby-lang]
Cakey has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby-lang
simono has quit [Ping timeout: 264 seconds]
ssb123_ has joined #ruby-lang
centrx has joined #ruby-lang
yubrew has quit [Ping timeout: 264 seconds]
ssb123 has quit [Ping timeout: 252 seconds]
mistym has joined #ruby-lang
ssb123_ has quit [Ping timeout: 240 seconds]
vpretzel is now known as vpretzel|1332
|jemc| has joined #ruby-lang
mistym has quit [Remote host closed the connection]
charlies_ is now known as charliesome
jsutt has joined #ruby-lang
Fretta has joined #ruby-lang
sdouglas has joined #ruby-lang
_dabradley has joined #ruby-lang
achal has quit [Quit: Connection closed for inactivity]
karamazov has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 240 seconds]
dabradley has quit [Ping timeout: 250 seconds]
Cakey has joined #ruby-lang
jsutt has quit [Ping timeout: 252 seconds]
bkether has quit [Ping timeout: 252 seconds]
AncientAmateur has quit [Remote host closed the connection]
dachi has joined #ruby-lang
DEac-_ has joined #ruby-lang
t4nk520 has joined #ruby-lang
DEac- has quit [Read error: Connection reset by peer]
dwknoxy has joined #ruby-lang
nathanstitt has joined #ruby-lang
mistym has joined #ruby-lang
toastynerd has joined #ruby-lang
ssb123 has joined #ruby-lang
<t4nk520>
I'm trying to simplify a program that has multiple, identical structure methods, but another program I can't edit calls those methods. Is there any way to create one simple method that will respond to the calls of the other program?
Cakey has quit [Ping timeout: 264 seconds]
mattsp1290 has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
t4nk520 has quit [Quit: Page closed]
AncientAmateur has joined #ruby-lang
lolmaus has quit [Ping timeout: 240 seconds]
mykoweb has quit [Ping timeout: 252 seconds]
metamaterial has joined #ruby-lang
lolmaus has joined #ruby-lang
vlad_starkov has joined #ruby-lang
retro|cz has joined #ruby-lang
metamaterial has quit [Client Quit]
enebo_ has joined #ruby-lang
Pupeno has quit [Remote host closed the connection]
enebo has quit [Ping timeout: 240 seconds]
enebo_ is now known as enebo
sdouglas has joined #ruby-lang
havenwood has joined #ruby-lang
dachi has quit [Quit: ...]
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
yatish27_ has joined #ruby-lang
yubrew has joined #ruby-lang
elia has joined #ruby-lang
Pupeno has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
yatish27 has quit [Ping timeout: 276 seconds]
vpretzel_ has joined #ruby-lang
yubrew has quit [Ping timeout: 265 seconds]
dachi has joined #ruby-lang
rahul_j has joined #ruby-lang
fragamus has joined #ruby-lang
rahul_j has quit [Client Quit]
vpretzel|1332 has quit [Ping timeout: 265 seconds]
enebo has quit [Quit: enebo]
dachi has quit [Quit: ...]
toastynerd has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
Pupeno has quit [Remote host closed the connection]
elliotec has joined #ruby-lang
yfeldblum has joined #ruby-lang
heftig has quit [Quit: Quitting]
shinnya has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crudson has quit [Ping timeout: 240 seconds]
heftig has joined #ruby-lang
chibob has joined #ruby-lang
sarkyniin has joined #ruby-lang
charliesome has joined #ruby-lang
charliesome has quit [Client Quit]
yatish27_ has quit [Remote host closed the connection]
apt-get_ has joined #ruby-lang
x0f_ has joined #ruby-lang
Mon_Ouie has quit [Read error: Operation timed out]
marcdel has quit []
dachi has joined #ruby-lang
crudson has joined #ruby-lang
crudson has quit [Max SendQ exceeded]
crudson has joined #ruby-lang
x0f has quit [Ping timeout: 252 seconds]
sarkyniin has quit [Ping timeout: 276 seconds]
amsi has joined #ruby-lang
rahul_j has joined #ruby-lang
vpretzel_ is now known as vpretzel|566
Speed has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
arooni-mobile has quit [Ping timeout: 252 seconds]
agrinb has joined #ruby-lang
benlovell has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby-lang
mistym has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
elia has joined #ruby-lang
mehlah has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
workmad3 has joined #ruby-lang
jsullivandigs has quit [Read error: Connection reset by peer]
jsullivandigs has joined #ruby-lang
relix has quit [Read error: Connection reset by peer]
<headius>
ddfreyne: I looked into the Nokogiri issues you reported
vjacob_ is now known as vjacob
yubrew has joined #ruby-lang
symm- has quit [Ping timeout: 265 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
yfeldblum has quit [Ping timeout: 252 seconds]
<headius>
ddfreyne: one trivial fix, one where your XSL doesn't appear to be compilable, one where doc rendering after transform is not implemented the same as C-Nokogiri, and the others are either fixed or I can't reproduce them
<headius>
ddfreyne: none of the issues are more than 7 days old...two were fixed within a day
elliotec has quit [Remote host closed the connection]
metamaterial has quit [Ping timeout: 272 seconds]
yubrew has quit [Ping timeout: 252 seconds]
michaeldeol has joined #ruby-lang
yubrew has joined #ruby-lang
vjacob has quit [Quit: This computer has gone to sleep]
vjacob has joined #ruby-lang
relix has quit [Read error: Connection reset by peer]
relix has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
agrinb has quit [Quit: Leaving...]
<headius>
ddfreyne: I updated your root issue in nanoc with status of those bugs.
havenwood has quit [Remote host closed the connection]
vlad_starkov has quit []
vlad_starkov has joined #ruby-lang
elliotec has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
flip_digits has joined #ruby-lang
flip_digits has quit [Client Quit]
flip_digits has joined #ruby-lang
manny_ has joined #ruby-lang
tris has quit [Read error: Connection reset by peer]
face has joined #ruby-lang
faces has quit [Ping timeout: 240 seconds]
rahul_j has quit [Quit: rahul_j]
havenwood has joined #ruby-lang
matp has quit [Ping timeout: 252 seconds]
loincloth has quit [Remote host closed the connection]
rippa has joined #ruby-lang
vjacob has quit [Quit: This computer has gone to sleep]
metamaterial has joined #ruby-lang
Speed has quit [Ping timeout: 240 seconds]
rahul_j has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 252 seconds]
vjacob has joined #ruby-lang
<ddfreyne>
headius: Thanks for checking out my problems
manny_ is now known as mannyt
flip_digits has quit []
<ddfreyne>
headius: I may have overreacted. I had a hard time getting Nokogiri to behave on JRuby, and I was unsettled by the fact that JRuby-Nokogiri behaves sometimes wildly different from C-Nokogiri
lowch has joined #ruby-lang
metamaterial has quit [Quit: Leaving.]
metamaterial has joined #ruby-lang
lowch has quit [Client Quit]
<ddfreyne>
win 3
vjacob has quit [Quit: This computer has gone to sleep]
sepp2k has quit [Quit: Leaving.]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whitecrow1 has joined #ruby-lang
whitecrow1 has quit [Changing host]
whitecrow1 has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
michaeldeol has joined #ruby-lang
vlad_starkov has quit []
emaxi has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
sdouglas has quit [Remote host closed the connection]
VTLob has joined #ruby-lang
metamaterial has quit [Quit: Leaving.]
jsutt has joined #ruby-lang
RobertBirnie has joined #ruby-lang
sdouglas_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
jsutt has quit [Ping timeout: 252 seconds]
emaxi has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
elliotec has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
pixelhandler has joined #ruby-lang
Coincidental has joined #ruby-lang
elliotec has joined #ruby-lang
developerjustin has quit [Quit: Leaving...]
rofel has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
thrillagorilla has joined #ruby-lang
omosoj has quit [Ping timeout: 252 seconds]
sdouglas_ has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
angelko has joined #ruby-lang
CaptainJet has joined #ruby-lang
robbyoconnor has quit [Read error: Operation timed out]
rahul_j has joined #ruby-lang
loincloth has joined #ruby-lang
benlovell has joined #ruby-lang
toastyne_ has joined #ruby-lang
toastynerd has quit [Ping timeout: 276 seconds]
danguita has quit [Remote host closed the connection]
danguita has joined #ruby-lang
toastynerd has joined #ruby-lang
simono has joined #ruby-lang
toastyne_ has quit [Ping timeout: 276 seconds]
tommylommykins has quit [Quit: leaving]
tommylommykins has joined #ruby-lang
saarinen has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
fragamus has quit [Quit: Computer has gone to sleep.]
metamaterial has joined #ruby-lang
robbyoconnor has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
whitecrow1 has quit [Quit: Leaving]
marcdel has joined #ruby-lang
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
VTLob has quit [Quit: VTLob]
thrillagorilla has quit []
elliotec has quit [Remote host closed the connection]
crudson has quit [Ping timeout: 240 seconds]
marcdel has quit [Ping timeout: 265 seconds]
achal has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 252 seconds]
crudson has joined #ruby-lang
crudson has quit [Max SendQ exceeded]
angelko has quit [Ping timeout: 240 seconds]
omosoj has joined #ruby-lang
crudson has joined #ruby-lang
simono is now known as simon-away
simon-away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has quit [Quit: All this computer hacking is making me thirsty]
havenwood has joined #ruby-lang
marcdel has joined #ruby-lang
fragamus has joined #ruby-lang
t4nk831 has joined #ruby-lang
postmodern has joined #ruby-lang
<Shoffner>
I'm writing a ruby extension for SketchUp. So, I'm in a ruby environment where I don't have control over what other programs are being run and how they behave. My program needs to parse some json, I have access to the standard library, but there is another program that I know will be in the environment that has created it's own JSON class that does not
<Shoffner>
behave the same as the standard library. When I require 'json' I break that other program which isn't acceptable. So, trying to come up with a way to have access to standard library, but only within my module / namespace in order to avoid the problem. I'm not sure that this is possible, so hoping somebody here can point me in the right direction or tell me
<Shoffner>
why this is a stupid idea.
elliotec has joined #ruby-lang
t4nk831 has quit [Ping timeout: 240 seconds]
benlovell has quit [Ping timeout: 276 seconds]
vjacob has joined #ruby-lang
vjacob has quit [Client Quit]
apt-get_ has quit [Remote host closed the connection]
toastynerd has quit []
sarkyniin has joined #ruby-lang
ssb123_ has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
ssb123 has quit [Ping timeout: 240 seconds]
elliotec has joined #ruby-lang
ssb123_ has quit [Ping timeout: 265 seconds]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
Pupeno has joined #ruby-lang
Pupeno has quit [Client Quit]
elliotec has quit [Remote host closed the connection]
sepp2k has joined #ruby-lang
jsutt has joined #ruby-lang
simono has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 255 seconds]
elia has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
apt-get_ has joined #ruby-lang
jsullivandigs has joined #ruby-lang
ssb123 has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sarkyniin has quit [Ping timeout: 252 seconds]
mr_rogerz has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
kukyakya has quit [Remote host closed the connection]
CaptainJet has quit []
_ht has quit [Remote host closed the connection]
fragamus has quit [Quit: Computer has gone to sleep.]
simono has quit [Read error: Connection reset by peer]
simono_ has joined #ruby-lang
metamaterial has quit [Quit: Leaving.]
saarinen has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby-lang
<heftig>
Shoffner: can you patch the other program?
lolmaus has quit [Read error: Operation timed out]
<Shoffner>
no, unfortunately. It's not something I control.
__butch__ has joined #ruby-lang
__butch__ has quit [Client Quit]
saarinen has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
rahul_j has quit [Quit: rahul_j]
t4nk585 has joined #ruby-lang
banister is now known as banisterfiend
simono_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby-lang
ssb123 has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
Thanatermesis has joined #ruby-lang
Thanatermesis has quit [Changing host]
Thanatermesis has joined #ruby-lang
t4nk585 has quit [Ping timeout: 240 seconds]
mentero has joined #ruby-lang
elia has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
arooni-mobile has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ssb123 has joined #ruby-lang
yfeldblum has joined #ruby-lang
symm- has joined #ruby-lang
simono has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 255 seconds]
<matled>
doesn't rails do some magic like this in the dev environment to allow reloading different with another version of a classes on each request?
<matled>
I'm not sure about the details, but might be worth a look.
<Senjai>
matled: wat
<Senjai>
matled: Dont think that'd be desired behavior
davispuh has joined #ruby-lang
matp has joined #ruby-lang
<matled>
just saying they did some magic to put load'ed classes into special modules for each request IIRC, which sounds like it could help here.
alex-quiterio has quit [Quit: Leaving.]
<Senjai>
What's your use case
<matled>
Senjai: oh, this was directed to Shoffner's question earlier. gotta go now.
ikrima has quit [Ping timeout: 245 seconds]
btiefert2 has joined #ruby-lang
marcdel has quit []
amsi has quit [Ping timeout: 264 seconds]
mentero has quit [Quit: Leaving]
hahuang65 has quit [Ping timeout: 252 seconds]
arooni-mobile has joined #ruby-lang
thrillagorilla has joined #ruby-lang
ssb123 has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
shinnya has joined #ruby-lang
ssb123 has joined #ruby-lang
metamaterial has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
davispuh has quit [Ping timeout: 240 seconds]
btiefert2 has quit [Quit: Leaving]
metamaterial has quit [Remote host closed the connection]
yalue has quit [Quit: Leaving]
yatish27 has quit []
workmad3 has joined #ruby-lang
<Shoffner>
I'm still here. didn't realize that was directed to me.
<Shoffner>
I'll look into that.
metamaterial has joined #ruby-lang
davispuh has joined #ruby-lang
|jemc| has quit [Quit: WeeChat 0.4.1]
|jemc| has joined #ruby-lang
hahuang65 has joined #ruby-lang
momomomomo has joined #ruby-lang
thrillagorilla has quit []
Coincidental has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
<Senjai>
Shoffner: Dont use that solution
<Senjai>
its hackyt
<Senjai>
hacky*
<Senjai>
Shoffner: You can use apartment for a multitenanted solution if thats your use case.
<Senjai>
and if you use postgresql, they work perfectly together
<Shoffner>
what is apartment?
AncientAmateur has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
<Shoffner>
also are you calling my solution hacky or matled's suggestion to investigate rails dev environment loading magic?
<Senjai>
Shoffner: matled's solution
<Senjai>
Shoffner: What's your use case?
danijoo has joined #ruby-lang
enebo has joined #ruby-lang
enebo has quit [Client Quit]
<Shoffner>
I'm writing a plugin that runs inside of another application. Ruby 2.0, standarda library available, but there are other plugins in the environment written by other authors.
enebo has joined #ruby-lang
<Senjai>
Shoffner: Okay, so whats your use case.
robbyoconnor has joined #ruby-lang
<Shoffner>
I know that one plugin will definitely be there. And it is creating a problem because they wrote their own version of JSON
<Shoffner>
and when I require 'json'
<Senjai>
Shoffner:What are you trying to do, what is your plugin trying to do
<Shoffner>
I break their tool.
<Senjai>
Shoffner: What error do you get
enebo has quit [Read error: Connection reset by peer]
<Shoffner>
It's definitely their bad, but I can't change their code.
<Senjai>
Shoffner: Err.. what
<Senjai>
they wrote their own version of JSON?
<Senjai>
Dafuq
<Senjai>
like.. dafuq
<Shoffner>
yes, because SketchUp's ruby environment used to not have access to ruby standard library.
<Senjai>
Shoffner: In your plugin, just bring in your own json.rb from the stdliub
<Shoffner>
so it's a legacy issue...
<Senjai>
Shoffner: I have no idea
<Senjai>
it sounds like whoever did the original system is an idiot
<Shoffner>
I AGREE.
<Senjai>
Shoffner: I've been there, we once had a client that the previous programmers wrote a PHP ssh implimentation, and a mail server implimentation
<Senjai>
from scratch
<Senjai>
for no reason
<Senjai>
Ofc, the CPU of the servers were pegged at 100% because of their shitty mail implimentation and the sites shutdown
<Senjai>
yeah
arooni-mobile has quit [Ping timeout: 276 seconds]
<Senjai>
..
<Shoffner>
yeah, these guys had a reason, but the solution was stupid.
<Senjai>
Bring in JSON from the stdlib
<Senjai>
There is no reason
<Senjai>
at the worst, you can just monkeypatch your changes in
<Senjai>
and even then, you shouldn't do that
<Senjai>
Or you know, you could write a json parser with a different name
jgpawletko has quit [Quit: jgpawletko]
<Shoffner>
it's good to hear others having the same thoughts I had about this.
<Senjai>
Shoffner: You need to say that this is bad
<Shoffner>
yeah, that's what I'm planning on doing. I've got a parser I wrote for an old SketchUp plugin that I'm going to pull in as a backup option.
<Senjai>
Shoffner: You need to push, and call people idiots when things like things like this happen.
<Senjai>
No, just pull in the JSON impl from stdlib
<Senjai>
you can just copy the ruby file over
<Shoffner>
I have pushed. They are fixing, but they aren't fixing till August, and my client wants their tool to work now.
<Senjai>
Shoffner: Yeaugh
<Senjai>
lame
<Shoffner>
So, I'm stuck dealing with the problem in the short term which is part of why I'm hesitant to invest a lot of time.
ssb123 has quit [Remote host closed the connection]
<Shoffner>
sorry to waste your guys time even talking about it.
michaeldeol has joined #ruby-lang
robbyoconnor has quit [Quit: Konversation terminated!]
<Shoffner>
So, if I'm pulling in from standard lib, I think I missing something obvious, but how would you go about doing that? I think I'm having trouble wrapping my head around how to pull that out of stdlib... just go into gems directory, grab a copy of json.rb and then namespace it?
<Shoffner>
Worried I don't know what I don't know...
<momomomomo>
Senjai: pretty fun stuff - getting up and running with torquebox was a little annoying in some areas, but they always have people in #torquebox
<Senjai>
I have no idea what torquebox is
<Senjai>
momomomomo: It sounds promissing
danijoo has quit [Read error: Connection reset by peer]
<Senjai>
but thats a lot of managed service for an app
<apt-get_>
ugh
<Senjai>
I'd like to see how it goes
apt-get_ is now known as apt-get
apt-get is now known as sarkyniin
<sarkyniin>
I hate this. ;_;
danijoo has joined #ruby-lang
<sarkyniin>
I don't know how I'm gonna make my battling system in my ruby rpg.
<momomomomo>
Senjai: it’s not good if you’ve just got one or two background services; if you’ve got a lot of background apps to run, it’s great
<Senjai>
momomomomo: We just use delayed job mostly
<Senjai>
We have job servers that run them
<momomomomo>
Senjai: Redhat builds and pays for its development; the commiters are almost all employees of redhat
<momomomomo>
Senjai: Ah, I’m not talking about single job servers like that; but you can link torquebox boxes together
<Senjai>
momomomomo: Right, but its lik eone stack on one server.
emaxi has quit [Remote host closed the connection]
<Senjai>
Ahh
SilkFox has quit [Ping timeout: 240 seconds]
<Senjai>
Still, I'll wait till it gets a little more traction
<momomomomo>
Senjai: It’s been out for a long time, don’t hold your breath :P
<Senjai>
the forced jruby is another thing
<momomomomo>
Senjai: I chose it because I needed jruby :p
<Senjai>
makes sense
<Senjai>
Threading right?
mr_rogerz has quit []
<momomomomo>
and distribution
<momomomomo>
right
<Senjai>
You could do the same thing without threading
<Senjai>
One process or job fetches and updates the database, a polling rails app, or streaming app will push new data as it is available
Cakey has joined #ruby-lang
<momomomomo>
Senjai: lol
<Senjai>
what?
<momomomomo>
Senjai: I don’t think that’ll work for 20+gb of flat files being dumped in an hour
<momomomomo>
then splitting, reading, parsing
<momomomomo>
then distributing them onto my cassandra stack
<momomomomo>
just wouldn’t be a good time; especially when each fetch system is treated as its own app
<momomomomo>
torquebox fit my use case nicely - it might not fit yours
nathanstitt has quit [Quit: I growing sleepy]
kavinder has joined #ruby-lang
omosoj has quit [Ping timeout: 240 seconds]
<momomomomo>
though I could just have dipped into straight java
<momomomomo>
which i’m doing for another project
<momomomomo>
gotta run to a mtg
momomomomo has quit [Quit: momomomomo]
havenwood has quit [Remote host closed the connection]
ssb123 has joined #ruby-lang
vjacob has joined #ruby-lang
kyb3r_ has joined #ruby-lang
elia has quit [Ping timeout: 252 seconds]
dstynchula has joined #ruby-lang
dstynchu_ has joined #ruby-lang
<sarkyniin>
Anyone knows how to build a simple HP/Attack/Defense/Special Attack/Special Defense battle system?
Cakey has quit [Ping timeout: 265 seconds]
<sarkyniin>
I've already implemented the damage-dealing function, but now I don't know what to do...
vjacob has quit [Client Quit]
Cakey has joined #ruby-lang
elia has joined #ruby-lang
dstynchu_ has quit [Read error: Connection reset by peer]
dstynchu_ has joined #ruby-lang
AncientA_ has joined #ruby-lang
dstynchula has quit [Ping timeout: 265 seconds]
<Senjai>
sarkyniin: Totally not relevant to ruby
<Senjai>
might want to search for a game dev channel or the like
<sarkyniin>
yeah, I guess
rofel has joined #ruby-lang
<sarkyniin>
I'll ask on /g/ or something
AncientAmateur has quit [Ping timeout: 255 seconds]
yubrew has quit [Remote host closed the connection]
<momomomomo>
Senjai: sorry to cut that chat short - but anyhow, i’ve used sidekiq & resque before in various apps; even daemonizing sidekiq because I was lazy but wanted workers running background jobs as a service to other apps etc. didn’t fit my case this time
<Senjai>
momomomomo: That's cool :P
<Senjai>
momomomomo: Any excuse to use new tools is good
<momomomomo>
yea… it was more out of necessity :p
<momomomomo>
pragmatism is the best way to go about using new tools
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
retro|cz has quit [Ping timeout: 264 seconds]
MichD is now known as michd
<Senjai>
momomomomo: I need an excuse to dive into java if you have any suggestions
<momomomomo>
Senjai: Libgdx
arooni-mobile has quit [Ping timeout: 252 seconds]
<Senjai>
Reminds me of phonegab
<Senjai>
interesting though
<momomomomo>
Senjai: Or, if you just want a good book to read, pick up Core Java vol 1 - i’m just about done with it; cracked it open on Saturday morning. It’s ~1k pages, but there are 300 pages you can skip that are all about Swing (GUI stuff)
<momomomomo>
lots of good code examples to follow and mess around with
<Senjai>
Is that the go-to book of the industry or something?
<Senjai>
I just need a faster language under my belt besides ruby and python
<momomomomo>
Senjai: ruby’s fast enough for most things; i’m using Go for the web service in another project
<momomomomo>
Go is really quick :p and the net/http library in go-lang core is really good
<Senjai>
Go is another one I'd like to look into
<Senjai>
I just cant think of things that I would need something other than ruby for
<momomomomo>
then you might not need somethign else at this point; but the best way to learn is by doing… think of some trivial project that could be done in something else, but you implement in another language / framework etc. like my StackExchange api poll