apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p362: http://ruby-lang.org (ruby-2.0.0-rc1) || Paste >3 lines of text on http://gist.github.com
kiyoura has joined #ruby
Asym has quit [Ping timeout: 252 seconds]
gridaphobe has quit [Ping timeout: 252 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
robert__ has quit [Ping timeout: 276 seconds]
juarlex has quit [Remote host closed the connection]
kil0byte has quit [Remote host closed the connection]
reppard has joined #ruby
pu22l3r has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
samuel02 has quit [Remote host closed the connection]
ndboost has quit [Remote host closed the connection]
kpwz has quit [Ping timeout: 264 seconds]
kpwz has joined #ruby
benlieb has joined #ruby
eykosioux has quit [Quit: eykosioux]
pu22l3r has quit [Remote host closed the connection]
theRoUS_ has quit [Ping timeout: 245 seconds]
evanx has quit [Quit: evanx]
ossareh has joined #ruby
mengu has quit [Quit: Leaving]
LittleFoot has joined #ruby
pcarrier has joined #ruby
kirun has quit [Quit: Client exiting]
workmad3 has quit [Ping timeout: 252 seconds]
FatBruno has joined #ruby
jonathanwallace has joined #ruby
Proshot has quit [Quit: Leaving]
gyre008 has joined #ruby
ner0x has quit [Quit: Leaving]
tomzx has joined #ruby
TomyLobo has quit [Quit: Standby mode...]
slainer68 has quit [Remote host closed the connection]
moos3 has quit [Quit: Computer has gone to sleep.]
pcarrier has quit []
ReiCat has joined #ruby
snearch has quit [Quit: Verlassend]
locriani has quit [Ping timeout: 272 seconds]
aeontech has joined #ruby
otherj has quit [Quit: otherj]
ReiCat has left #ruby [#ruby]
Michae___ has quit [Remote host closed the connection]
cableray has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
busybox42 has joined #ruby
slainer68 has joined #ruby
jacktrick has quit [Quit: Leaving]
jds_ has quit [Remote host closed the connection]
moos3 has joined #ruby
slainer68 has quit [Remote host closed the connection]
hackerdude has quit [Remote host closed the connection]
yaroslav has quit [Quit: yaroslav]
mascool has joined #ruby
Eiam has joined #ruby
piotr__ has quit [Ping timeout: 260 seconds]
robotmay has quit [Remote host closed the connection]
jfl0wers has joined #ruby
SCommette has quit [Quit: SCommette]
michaelaguiar has joined #ruby
michaelaguiar has quit [Quit: michaelaguiar]
hbpoison has quit [Ping timeout: 252 seconds]
SCommette has joined #ruby
locriani has joined #ruby
SCommette has quit [Client Quit]
hbpoison has joined #ruby
<lectrick> What causes a Test::Unit::TestCase class to run itself, just by being defined?
<lectrick> And how would I actually run the test programmatically on demand?
wargasm1 has quit [Ping timeout: 264 seconds]
benlieb has quit [Quit: benlieb]
dukedave has quit [Ping timeout: 248 seconds]
zastern has quit [Read error: Connection reset by peer]
drago757 has quit [Quit: drago757]
Targen has joined #ruby
aaronmacy has quit [Quit: Leaving.]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
FatBruno has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 252 seconds]
Ballresin has left #ruby [#ruby]
hbpoison has joined #ruby
jaequery has quit [Ping timeout: 260 seconds]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
jaequery has joined #ruby
alx- has quit [Ping timeout: 276 seconds]
joofsh has quit [Remote host closed the connection]
jmpf has quit [Quit: leaving]
pen has quit [Remote host closed the connection]
pskosinski has quit [Remote host closed the connection]
robert__ has joined #ruby
xclite has quit [Remote host closed the connection]
zastern has joined #ruby
joofsh has joined #ruby
karupanerura has quit [Excess Flood]
robert___ has quit [Ping timeout: 245 seconds]
bean has joined #ruby
[Neurotic] has quit [Ping timeout: 244 seconds]
adkron has joined #ruby
bean has quit [Client Quit]
karupanerura has joined #ruby
kenjiskywalker has joined #ruby
ddd has joined #ruby
SCommette has joined #ruby
SCommette has quit [Client Quit]
IceDragon has joined #ruby
ben___ has quit [Quit: ben___]
wallerdev has quit [Quit: wallerdev]
gyre007 has joined #ruby
generali_ has quit [Remote host closed the connection]
slainer68 has joined #ruby
amacgregor_osx has quit [Remote host closed the connection]
lkba has joined #ruby
nignaztic has joined #ruby
joofsh has quit [Remote host closed the connection]
benlieb has joined #ruby
krawchyk has joined #ruby
benlieb has quit [Client Quit]
gyre007 has quit [Ping timeout: 260 seconds]
kenjiskywalker has quit [Quit: ZNC - http://znc.in]
kenjiskywalker has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
joofsh has joined #ruby
<havenn> lectrick: Could put in its own file and require when you want it run?
havenn has quit [Remote host closed the connection]
wudofyr_ has joined #ruby
katherinem13_ has joined #ruby
bjeanes- has joined #ruby
kenjiskywalker has quit [Client Quit]
katherinem13 has quit [Disconnected by services]
katherinem13_ is now known as katherinem13
cableray has quit [Quit: cableray]
kenjiskywalker has joined #ruby
locriani_ has joined #ruby
dawkirst has joined #ruby
rakl_ has joined #ruby
mneorr_ has joined #ruby
Michael_ has joined #ruby
Coolhand has joined #ruby
haxrbyte_ has joined #ruby
slainer68 has quit [Ping timeout: 240 seconds]
jpfuentes2 has joined #ruby
nrt| has joined #ruby
jso_ has joined #ruby
FlyingFoXy has joined #ruby
dr_neek_ has joined #ruby
tommyvyo has joined #ruby
Raboo_ has joined #ruby
ninegrid_ has joined #ruby
ozzloy_ has joined #ruby
locriani has quit [*.net *.split]
rakl has quit [*.net *.split]
haxrbyte has quit [*.net *.split]
RagingDave has quit [*.net *.split]
emmanuelux has quit [*.net *.split]
dr_neek has quit [*.net *.split]
wudofyr has quit [*.net *.split]
X-Jester has quit [*.net *.split]
Coolhand_ has quit [*.net *.split]
ozzloy has quit [*.net *.split]
mneorr has quit [*.net *.split]
neersighted has quit [*.net *.split]
coaster has quit [*.net *.split]
nanothief has quit [*.net *.split]
JoeJulian has quit [*.net *.split]
ninegrid has quit [*.net *.split]
nrt- has quit [*.net *.split]
verma has quit [*.net *.split]
nazty has quit [*.net *.split]
FlyingFoX has quit [*.net *.split]
jso has quit [*.net *.split]
thomasfedb has quit [*.net *.split]
Raboo has quit [*.net *.split]
Mchl has quit [*.net *.split]
bjeanes has quit [*.net *.split]
beandip has quit [*.net *.split]
jso_ is now known as jso
dr_neek_ is now known as dr_neek
hybris` has joined #ruby
JoeJulian has joined #ruby
Mchl has joined #ruby
verma has joined #ruby
mfridh has quit [Ping timeout: 276 seconds]
X-Jester has joined #ruby
[Neurotic] has joined #ruby
aeontech has quit [Ping timeout: 245 seconds]
neersighted has joined #ruby
methoddk has joined #ruby
kenjiskywalker has quit [Client Quit]
verma has quit [Ping timeout: 244 seconds]
Mchl has quit [Ping timeout: 244 seconds]
benlieb has joined #ruby
nanothief has joined #ruby
verma has joined #ruby
Mchl has joined #ruby
X-Jester has quit [*.net *.split]
methoddk has quit [*.net *.split]
benlieb has quit [*.net *.split]
JoeJulian has quit [*.net *.split]
mahmoudi_ has joined #ruby
RagingDave has joined #ruby
artOfWar has quit [Remote host closed the connection]
thomasfedb has joined #ruby
benlieb has joined #ruby
methoddk has joined #ruby
X-Jester has joined #ruby
JoeJulian has joined #ruby
artOfWar has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
thomasfedb has quit [Changing host]
thomasfedb has joined #ruby
joofsh has quit [Remote host closed the connection]
artOfWar has quit [Read error: Connection reset by peer]
ckrailo has quit [Quit: Computer has gone to sleep.]
artOfWar has joined #ruby
benlieb has quit [Client Quit]
mahmoudimus has quit [Ping timeout: 255 seconds]
aeontech has joined #ruby
stopbit has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
Spooner has quit [Remote host closed the connection]
ner0x has joined #ruby
neersighted has quit [Ping timeout: 264 seconds]
neersighted has joined #ruby
etcetera has quit []
RagingDave has quit [Quit: Ex-Chat]
c0rn has joined #ruby
ebobby has joined #ruby
LouisGB has quit [Ping timeout: 252 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
artOfWar has quit [Ping timeout: 260 seconds]
etcetera has joined #ruby
jlast_ has quit [Remote host closed the connection]
c0rn has quit [Client Quit]
maletor has joined #ruby
jlast has joined #ruby
etcetera has quit [Client Quit]
dmerrick has quit [Quit: dmerrick]
DrCode has quit [Remote host closed the connection]
beneggett has quit [Quit: Computer has gone to sleep.]
icole has quit [Remote host closed the connection]
twoism has quit [Remote host closed the connection]
yshh has joined #ruby
sailias has quit [Ping timeout: 245 seconds]
c0rn has joined #ruby
mercwithamouth has joined #ruby
yxhuvud has quit [Ping timeout: 256 seconds]
zastern has quit [Remote host closed the connection]
pen has joined #ruby
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
dawkirst has quit [Read error: Connection reset by peer]
bricker is now known as bricker`away
yxhuvud has joined #ruby
taoru has joined #ruby
jpfuentes2 has quit [Quit: Textual IRC Client: www.textualapp.com]
etcetera has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
rakuN has joined #ruby
hbpoison has joined #ruby
jpfuentes2 has joined #ruby
centipedefarmer has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
beneggett has joined #ruby
<dimadima> `sudo gem install bundle` should provide `/usr/local/bin/bundle`, right? and that file should be 700?
DrCode has joined #ruby
<dimadima> `sudo gem contents blundler` doesn't list that binary :<
<dimadima> heh, bundler*
mayhew has joined #ruby
mfridh has joined #ruby
cableray has joined #ruby
CLUSTERfoo has quit [Ping timeout: 248 seconds]
moshee has quit [Ping timeout: 276 seconds]
moshee has joined #ruby
rads has joined #ruby
tangledhelix has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
yxhuvud2 has joined #ruby
mercwithamouth has joined #ruby
mfridh has quit [Client Quit]
yxhuvud has quit [Ping timeout: 252 seconds]
c0rn has quit [Read error: Connection reset by peer]
c0rn has joined #ruby
[Neurotic] has quit [Ping timeout: 260 seconds]
mfridh has joined #ruby
brianpWins has quit [Quit: brianpWins]
daniel_- has quit [Read error: Operation timed out]
mrsolo has quit [Quit: Leaving]
Rym has joined #ruby
TheFuzzball has quit [Quit: Computer has gone to sleep.]
horofox_ has quit [Quit: horofox_]
mmmmwww has quit [Ping timeout: 240 seconds]
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
chendo_ has quit [Quit: Computer has gone to sleep.]
Michael_ has quit [Remote host closed the connection]
[Neurotic] has joined #ruby
[Neurotic] has quit [Excess Flood]
chendo_ has joined #ruby
chendo_ has quit [Client Quit]
_veer has quit [Quit: Leaving]
baroquebobcat has joined #ruby
rads has quit []
_alejandro has quit [Remote host closed the connection]
[Neurotic] has joined #ruby
yxhuvud2 has quit [Ping timeout: 252 seconds]
main has quit [Ping timeout: 255 seconds]
otherj has joined #ruby
forced_request has joined #ruby
gnarmis has joined #ruby
yxhuvud has joined #ruby
mfridh has quit [Ping timeout: 276 seconds]
mfridh has joined #ruby
zeade has quit [Quit: Leaving.]
io_syl has quit [Ping timeout: 264 seconds]
benlieb has joined #ruby
benlieb has quit [Client Quit]
io_syl has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
b1rkh0ff has quit [Ping timeout: 255 seconds]
ner0x has quit [Quit: Leaving]
hbpoison has quit [Ping timeout: 246 seconds]
hbpoison has joined #ruby
ryanf has joined #ruby
<shevy2> guys am I getting insane slowly
baroquebobcat has quit [Quit: baroquebobcat]
tvw has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
shevy2 is now known as shevy
<shevy> is this normal???
<shevy> if @foo
<shevy> end unless @foo
baroquebobcat has quit [Client Quit]
Michael_ has joined #ruby
<blazes816> shevy: more common than it should be
mockra has joined #ruby
ebobby has quit [Quit: Lost terminal]
ryannielson has quit [Remote host closed the connection]
aaronmacy has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
c0rn has quit [Quit: Computer has gone to sleep.]
yxhuvud2 has joined #ruby
b1rkh0ff has joined #ruby
<shevy> blazes816 it is quite strange
<shevy> it allows for terseness, or you can save at least one more line
<shevy> but it kinda reads strange
yxhuvud has quit [Ping timeout: 252 seconds]
adkron has quit [Ping timeout: 256 seconds]
robert___ has joined #ruby
CamonZ has joined #ruby
nari has joined #ruby
mkillebrew has quit [Read error: Connection reset by peer]
joeycarmello has quit [Remote host closed the connection]
blazes816 has quit [Quit: blazes816]
robert__ has quit [Ping timeout: 276 seconds]
havenn has joined #ruby
bricker`LA is now known as bricker
joofsh has joined #ruby
mkillebrew has joined #ruby
rpminihan has quit [Ping timeout: 248 seconds]
Hanmac has joined #ruby
Virunga has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 240 seconds]
moos3 has quit [Quit: Computer has gone to sleep.]
zz_zz_pacbard is now known as zz_zz_zz_pacbard
yxhuvud2 has quit [Ping timeout: 264 seconds]
yxhuvud has joined #ruby
evanx has joined #ruby
mockra has quit [Remote host closed the connection]
Playground has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
Playground has joined #ruby
krawchyk_ has joined #ruby
CLUSTERfoo has joined #ruby
squidBits has quit [Quit: whoops]
krawchyk has quit [Ping timeout: 245 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby
yxhuvud has quit [Ping timeout: 248 seconds]
Pip has joined #ruby
yxhuvud has joined #ruby
<Pip> So Rubygems is a equivalent to Python pip, right?
sn0wb1rd has quit [Quit: sn0wb1rd]
Goles has quit [Ping timeout: 245 seconds]
chendo_ has joined #ruby
mikeg has joined #ruby
huoxito has joined #ruby
Goles has joined #ruby
Goles has quit [Max SendQ exceeded]
AndChat| has joined #ruby
Goles has joined #ruby
<Norrin> it's a code repository. no idea what pipis
aeontech has quit [Quit: aeontech]
Goles has quit [Max SendQ exceeded]
Goles has joined #ruby
Goles has quit [Max SendQ exceeded]
nari has quit [Quit: Ex-Chat]
Banistergalaxy has quit [Ping timeout: 252 seconds]
Goles has joined #ruby
workmad3 has joined #ruby
Goles has quit [Remote host closed the connection]
mascool has quit [Quit: WeeChat 0.3.9]
rakuN has quit [Remote host closed the connection]
Michael_ has quit [Remote host closed the connection]
etcetera has quit []
Michael_ has joined #ruby
fred909 has quit [Ping timeout: 276 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
nari has joined #ruby
xAndy is now known as xandy
etcetera has joined #ruby
Playground has quit [Ping timeout: 240 seconds]
fyolnish has joined #ruby
luckyruby has joined #ruby
tjbiddle_ has joined #ruby
jeffreybaird has joined #ruby
xandy is now known as xAndy
Michael_ has quit [Remote host closed the connection]
cobragoat has quit [Remote host closed the connection]
Michael_ has joined #ruby
yxhuvud2 has joined #ruby
<havenn> Pip: Similar in purpose.
yxhuvud has quit [Ping timeout: 248 seconds]
<Pip> okay
tjbiddle has quit [Ping timeout: 248 seconds]
<havenn> Pip: RubyGems implements update, list, etc.
sn0wb1rd has joined #ruby
<shevy> Pip probably some minor differences exist. what rubygems allows the user is to install ruby-addons fairly easily, and puts them into ruby's SITE_DIR path, wherever that is (`gem env`)
<havenn> Pip: imho, pip should be more like gem - would really benefit from same ideas
<havenn> pip update; pip list; etc would be hugely useful
tjbiddle_ has quit [Ping timeout: 245 seconds]
Michael_ has quit [Remote host closed the connection]
<havenn> Pip: I know there is a long-lived pull request for update/upgrade, but merge eet!!!
Michael_ has joined #ruby
anfield has joined #ruby
joeycarmello has joined #ruby
jaequery has quit [Quit: Computer has gone to sleep.]
<havenn> Does pip need a maintainer? NOT IT!
guns has quit [Quit: guns]
<shevy> hmm I have this... hash.sort_by {|key,value| key}, this gives me an array in an array
<shevy> like, ["ZhoI", "ATCGAT 2"], the original was { "ZhoI" => "ATCGAT 2" }
rakuN has joined #ruby
<Pip> havenn, What NOT IT?
<shevy> is there a way to chain that, and turn that array into a hash again?
<shevy> ah
<shevy> Hash[*] works
<Pip> Actually I know nothing about python-pip
<fyolnish> sorted hash?
<havenn> Pip: Oh, I was calling 'not it', never mind. My Python-fu isn't up-to-par...
<shevy> fyolnish hmmm not sure what I want is possible, I am on 1.8.7 again :(
<fyolnish> hashes do not have an order
<shevy> I think in 1.9.x the hashes are kept the way
<shevy> hmm not?
drago757 has joined #ruby
<fyolnish> at least it's not guaranteed afaik
<fyolnish> you might get lucky sometimes
<shevy> luck is bad for coding, I am way too unlucky too many times :D
<shevy> heisenbugs haunt me
evanx_ has joined #ruby
ner0x has joined #ruby
<fyolnish> activesupport has orderedhash (in case you're using rails)
mayhew has quit [Quit: leaving]
evanx has quit [Ping timeout: 276 seconds]
evanx_ is now known as evanx
<fyolnish> (and ruby 1.9 seems to preserve insertion order)
hbpoison has quit [Ping timeout: 246 seconds]
advorak has joined #ruby
aeontech has joined #ruby
hbpoison has joined #ruby
jbw has quit [Ping timeout: 240 seconds]
<yfeldblum> ruby 1.9 guarantees to iterate the keys of a hash in insertion order
hybris has quit [Quit: hybris]
<yfeldblum> ruby 1.8 happens to iterate the keys of a hash in bucket order
yxhuvud2 has quit [Ping timeout: 248 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
<havenn> I look forward to July, so we can just day 1.8 is deprecated!
<havenn> s/day/say
yxhuvud has joined #ruby
rakl_ has quit [Quit: sleeping]
<havenn> Love the simple data structure speed increase with 2.0.0, March ftw.
rakuN has quit [Quit: Saliendo]
macmartine has joined #ruby
Liothen has joined #ruby
dustint has joined #ruby
beneggett has joined #ruby
dustint has quit [Remote host closed the connection]
zph has joined #ruby
Playground has joined #ruby
dustint has joined #ruby
jonahR has joined #ruby
CLUSTERfoo has quit [Ping timeout: 260 seconds]
brianpWins has joined #ruby
daniel_hinojosa has joined #ruby
hackerdude has joined #ruby
robert__ has joined #ruby
anfield has quit [Ping timeout: 256 seconds]
Playground has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
jbw has joined #ruby
dustint has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
gyre007 has joined #ruby
beandip has joined #ruby
robert___ has quit [Ping timeout: 276 seconds]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
slainer68 has quit [Ping timeout: 245 seconds]
ffranz has quit [Quit: Leaving]
fyolnish has quit [Ping timeout: 260 seconds]
fyolnish has joined #ruby
headius has quit [Quit: headius]
Playground has joined #ruby
huoxito has quit [Ping timeout: 252 seconds]
hybris` has quit [Ping timeout: 260 seconds]
neurotech has joined #ruby
crackfu has joined #ruby
etcetera has quit []
havenn has quit [Remote host closed the connection]
bitcrave has quit [Ping timeout: 248 seconds]
cobragoat has joined #ruby
havenn has joined #ruby
headius has joined #ruby
jlwestsr has joined #ruby
havenn has quit [Ping timeout: 245 seconds]
joofsh has quit [Remote host closed the connection]
gnarmis has quit [Remote host closed the connection]
pen has quit [Read error: Connection reset by peer]
brianpWins has quit [Quit: brianpWins]
pen has joined #ruby
h4mz1d has quit [Ping timeout: 240 seconds]
dukedave has joined #ruby
dwu1 has joined #ruby
fyolnish has quit [Remote host closed the connection]
krawchyk_ has quit [Remote host closed the connection]
fyolnish has joined #ruby
fyolnish has quit [Remote host closed the connection]
fyolnish has joined #ruby
mockra has joined #ruby
gnarmis has joined #ruby
thufir_ has joined #ruby
Gooder has joined #ruby
Monie has quit [Quit: Quit]
daslicious has quit [Quit: daslicious]
macmartine has quit [Quit: Computer has gone to sleep.]
subbyyy has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
xnm has joined #ruby
niklasb has quit [Ping timeout: 276 seconds]
forced_request has quit [Read error: Connection reset by peer]
az7ar has joined #ruby
halph has joined #ruby
Fretta has quit [Quit: Fretta]
Gooder` has joined #ruby
<halph> i have a big giant json object. is there any smart way to go about making it more ruby accessible than just json.parse? basically i want to be able to get 10 levels deep into it without having to do one.two.three.four.five...
Gooder has quit [Read error: Connection reset by peer]
jlast has quit [Remote host closed the connection]
eka has joined #ruby
Cicloid has quit [Remote host closed the connection]
cobragoat has quit [Remote host closed the connection]
CLUSTERfoo has joined #ruby
andrewhl has joined #ruby
jaygen has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
c0rn has joined #ruby
c0rn has quit [Client Quit]
reppard has quit [Read error: Connection timed out]
cobragoat has joined #ruby
sn0wb1rd has joined #ruby
brianpWins has joined #ruby
<jblack> maybe it's silly, but maybe you could just store a series of smaller json objects instead
<LittleFoot> halph, BRO!
<LittleFoot> write your own parser bro
reset has quit [Ping timeout: 248 seconds]
<LittleFoot> lern C is a good way to start thinking parse mode
macmartine has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
frem has joined #ruby
Gooder`` has joined #ruby
LittleFoot has quit [Remote host closed the connection]
hemanth_ has quit [Ping timeout: 255 seconds]
_hemanth_ has quit [Ping timeout: 248 seconds]
rezzack has quit [Quit: Leaving.]
agarie has joined #ruby
Gooder` has quit [Ping timeout: 246 seconds]
zeade has joined #ruby
frem has quit [Client Quit]
jpfuentes2 has joined #ruby
<halph> haha
haxrbyte has joined #ruby
<halph> jblack: yeah i think that's probably what im gonna end up doing. been looking at other api helper plugins that access JSON and that seems to be what they do generally.
bitcrave has joined #ruby
erichmenge has quit [Quit: Arrivederci!]
haxrbyte_ has quit [Ping timeout: 256 seconds]
erichmenge has joined #ruby
ben_____ has joined #ruby
tomzx has quit [Quit: tomzx]
erichmenge has quit [Client Quit]
erichmenge has joined #ruby
alegacyreborn has joined #ruby
alegacyreborn has quit [Client Quit]
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
jeffreybaird has quit [Quit: jeffreybaird]
jxf has joined #ruby
havenn has joined #ruby
ner0x has quit [Remote host closed the connection]
daslicious has joined #ruby
havenn has quit [Ping timeout: 245 seconds]
Skylab has joined #ruby
gyre007 has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
uris has quit [Quit: Leaving]
<Skylab> been a couple years since I've been on IRC.
rippa has joined #ruby
Bonaparte has joined #ruby
xemu has quit [Ping timeout: 272 seconds]
pu22l3r has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
spinagon has joined #ruby
rippa has quit [Ping timeout: 260 seconds]
Pip has quit [Ping timeout: 246 seconds]
zph has quit [Quit: Computer has gone to sleep.]
gnarmis has quit [Remote host closed the connection]
<davidcelis> ok
Pip has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
spinagon has quit [Ping timeout: 260 seconds]
pzero has quit [Quit: pzero]
h4mz1d has joined #ruby
radic has joined #ruby
bhushan has quit [Remote host closed the connection]
tommyvyo has joined #ruby
dankest is now known as dankest|away
<otters> heh
dukedave has quit [Quit: Leaving.]
<otters> it's funny that TrueClass#| does the same as TrueClass#|| and yet nobody uses |
radic_ has quit [Ping timeout: 276 seconds]
robert__ is now known as robert_
toekutr has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
yshh has quit [Read error: No route to host]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
Playground has quit [Ping timeout: 256 seconds]
yshh has joined #ruby
mneorr_ has quit [Remote host closed the connection]
zeade has quit [Quit: Leaving.]
rippa has joined #ruby
jblack has quit [Ping timeout: 246 seconds]
cespare has quit [Quit: WeeChat 0.3.7]
cespare has joined #ruby
kenneth has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
kenneth has joined #ruby
ben_____ has quit [Quit: ben_____]
<shevy> I dont like them
Quadlex is now known as AwahyLex
Skylab has quit [Quit: Skylab]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
vinax has joined #ruby
joeycarmello has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 260 seconds]
mockra has quit [Remote host closed the connection]
vinax has quit []
gnarmis has joined #ruby
thufir_ has quit [Remote host closed the connection]
vinax has joined #ruby
katherinem13 is now known as katherinem13_bed
crackfu has quit [Remote host closed the connection]
sleetdrop has quit [Remote host closed the connection]
crackfu has joined #ruby
vinax has quit [Client Quit]
noyb has joined #ruby
vinax has joined #ruby
jlast has joined #ruby
aaronmacy has quit [Quit: Leaving.]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
sayan has joined #ruby
rezzack has joined #ruby
kenneth_ has joined #ruby
jblack has joined #ruby
burgestrand has joined #ruby
toekutr has joined #ruby
yakko has quit [Remote host closed the connection]
crackfu has quit [Ping timeout: 264 seconds]
kenneth has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
yacks has joined #ruby
maxmanders has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Read error: Operation timed out]
ben_____ has joined #ruby
ozzloy_ is now known as ozzloy
jaequery has joined #ruby
kenneth_ has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
aaronmacy has joined #ruby
rippa has quit [Ping timeout: 260 seconds]
Pip has quit [Ping timeout: 260 seconds]
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
kirotan has quit [Ping timeout: 255 seconds]
Onii-san has joined #ruby
Cicloid_ has joined #ruby
methoddk is now known as coaster
icole has joined #ruby
Cicloid_ has quit [Ping timeout: 248 seconds]
rippa has joined #ruby
Cicloid has joined #ruby
<shevy> focus focus focus
kirotan has joined #ruby
burgestrand has quit [Quit: Leaving.]
tommyvyo has joined #ruby
CLUSTERfoo has quit [Quit: Leaving]
rippa has quit [Ping timeout: 260 seconds]
Gooder`` has quit [Read error: Connection reset by peer]
c0rn has joined #ruby
Cicloid has quit [Ping timeout: 260 seconds]
vinax has quit []
joeycarmello has joined #ruby
io_syl has quit [Ping timeout: 252 seconds]
hackerdude has quit [Remote host closed the connection]
rakuN has joined #ruby
hackerdude has joined #ruby
maxmanders has quit [Ping timeout: 248 seconds]
twoism has joined #ruby
kenneth has joined #ruby
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
rippa has joined #ruby
<unstable> "raman".count("am")
jgrevich has quit [Quit: jgrevich]
<unstable> How can I have that return 1, instead of 3?
<unstable> It's counting each individual character, I want it to count the string occurence.
robbyoconnor has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
robbyoconnor has joined #ruby
drago757 has quit [Quit: drago757]
<rakuN> unstable: use regex
maletor has joined #ruby
jfl0wers has quit [Ping timeout: 245 seconds]
cbosh has quit [Ping timeout: 276 seconds]
joeycarmello has quit [Ping timeout: 246 seconds]
dwn has quit [Quit: u]
gyre007 has joined #ruby
Daman has joined #ruby
Daman has quit [Changing host]
Daman has joined #ruby
Daman has quit [Excess Flood]
<unstable> rakun: How do you mean?
ezkl has joined #ruby
mockra has joined #ruby
headius has quit [Quit: headius]
rippa has quit [Ping timeout: 260 seconds]
IceDragon has quit [Quit: Space~~~]
Bonaparte has quit [Read error: Connection timed out]
rippa has joined #ruby
subbyyy has quit [Ping timeout: 245 seconds]
pyro111 has joined #ruby
gyre007 has quit [Ping timeout: 256 seconds]
twoism has quit [Ping timeout: 255 seconds]
EPIK has quit [Ping timeout: 276 seconds]
dawkirst_ has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
rippa has quit [Ping timeout: 260 seconds]
diego has joined #ruby
<unstable> dict.each { |ss| (tmp_hash[ss] = self.scan(/ss/m).size) if self.include?(ss) }
diego is now known as diegoviola
<unstable> Something is wrong with my self.scan(/ss/m).size chunk
<unstable> Sublime isn't showing ss as a white variable
ttt has joined #ruby
<unstable> How do I use the variable ss as part of my regex?
<rakuN> unstable: mm, something like "Ama cama bama".split(/am/).count
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<unstable> rakun: .count doesn't work
jrist is now known as jrist-afk
<rakuN> split returns an array, so count should work
<unstable> I see
<unstable> That's clever
<unstable> That works
MrSamuel has joined #ruby
cbosh has joined #ruby
nomenkun has joined #ruby
MrSamuel has quit [Client Quit]
<rakuN> unstable: you should put - 1 to the end of that sentence
krz has joined #ruby
MrSamuel has joined #ruby
Daman has joined #ruby
Daman has quit [Remote host closed the connection]
dstarh has joined #ruby
dwn has joined #ruby
dwn has quit [Remote host closed the connection]
rippa has joined #ruby
gnarmis has quit [Remote host closed the connection]
dwn has joined #ruby
dwn has quit [Excess Flood]
<unstable> "raman".split('am').count
<unstable> rakun: That equals 2, when it should equal 1
<unstable> So it doesn't work
<dstarh> have a class A that has 3 mixins - need to call on all 3 modules - thoughts on best way to accomplish this
<unstable> "raman".scan(/am/m).size works fine in pry, though not in my code
<rakuN> unstable: and "raman".scan(/am/)
<unstable> I need to escape ss or something?
rpminihan has joined #ruby
<rakuN> undert: oh
sayan has quit [Read error: Connection reset by peer]
<unstable> "raman".split('an').count -1 == 0
<unstable> Which is also wrong.
icole has quit [Read error: Connection reset by peer]
Gooder has joined #ruby
chendo_ has quit [Quit: Computer has gone to sleep.]
icole has joined #ruby
kudos has quit [Ping timeout: 248 seconds]
<unstable> dict.each { |ss| (tmp_hash[ss] = self.scan(/#{ss}/m).size) if self.include?(ss) }
<unstable> ok, that works fine.
rippa has quit [Ping timeout: 260 seconds]
noyb has quit [Ping timeout: 252 seconds]
wargasm has joined #ruby
cobragoat has quit [Remote host closed the connection]
cobragoat has joined #ruby
<shevy> dstarh that was not very specific, you seem to have no problem. one class, three modules, problem solved
<dstarh> shevy: sorry each of my modules needs to provide some default values in and map them to instance vars from a hash
kudos has joined #ruby
kudos has quit [Changing host]
kudos has joined #ruby
v0n has joined #ruby
<shevy> aha
<shevy> just use a method as initializer in your class?
<dstarh> when A include x; include y; include z; it only calls the initialize of z
<shevy> well the module is included
<dstarh> we're trying to not have to call it
<shevy> what do you mean with "the initialize of z"
nignaztic has quit [Quit: Leaving]
<dstarh> shevy: it only calls initialize of module Z, but does not call the initialize of module X or Y
nazty has joined #ruby
icole has quit [Remote host closed the connection]
theRoUS_ has joined #ruby
<dstarh> initialize of A calls super
slainer68 has joined #ruby
<dimadima> anyone have any thoughts as to why /var/lib/gems would be 700 on ubuntu?
<shevy> dstarh that is the first time I heard that a module has an initialize method
<dimadima> is that necessary? desired?
<shevy> dimadima only the ubuntu folks really know, it's them who changed rubygems for their systems
<dimadima> shevy: is that a think? ubuntu folks changing rubygems for their systems?
<dimadima> a thing*
<shevy> they change everything that isn't dpkg/apt-get
graft has quit [Ping timeout: 260 seconds]
rezzack has quit [Quit: Leaving.]
<shevy> if you use "gem" to upgrade things outside ubuntu, you'll end up without their love and support
<dimadima> on your system, is /var/lib/gems 700 and owned by root?
<dstarh> shevy: if not initialize a way to mimic the behavior
<dimadima> that's stupid. some things are apt-get, some things are gem. should i not use ubuntu if i don't agree
<shevy> dimadima the first time, I compile ruby from source into /Programs/Ruby/VERSION_HERE, so I never have a /var/lib/gems
<dstarh> *any
<shevy> if I would use /usr as prefix, I'd have something... let me check...
<dimadima> shevy: i guess you can replace /var/lib with whatever your path to gems is
<shevy> /usr/lib/ruby/gems/1.9.1/
<dimadima> yeah
<dimadima> is it 700 and owned by root?
joeycarmello has joined #ruby
<shevy> it's some 755 I think
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
cobragoat has quit [Ping timeout: 245 seconds]
<shevy> dimadima when you use a distribution, the only real way is to stay within the world view of that distribution
macmartine has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
<dimadima> that sucks, because 700 on my gems file is way too constricted.
<shevy> until you take the blue pill and leave a distribution, but it's a painful road ;)
<dimadima> i guess i should compile from source
<shevy> have you tried RVM or rbenv yet?
<dimadima> shevy: have you left a distribution?
<dimadima> shevy: no, i'm unfamiliar with RVN/rbenv. is that like virutalenv for python?
<shevy> dimadima yeah. all of them. I compile everything from source via ruby scripts
<dimadima> shevy: heh. woah.
<shevy> dimadima, many people ended up using RVM because of distribution-related problems
sn0wb1rd has quit [Quit: I will be right back]
<dimadima> i've been wondering what the virtualenv ruby equiv was, and whether there is one
<shevy> you should give RVM a try, however it may be easier if you remove the ruby at /usr/bin/
<shevy> but first test it... https://rvm.io/
<dimadima> shevy: for now i'm just running redmine. but it was a drag to set up because of ubuntu peculiariaties. i'm not entirely ignorant, but i'm also kinda green
<shevy> well
<dimadima> yeah i'm checking that site out. thanks for the leads/advice shevy
<postmodern> dimadima, checkout chruby for a very simple switcher https://github.com/postmodern/chruby
<shevy> the other way is to struggle within ubuntu
<postmodern> dimadima, rvm should work just fine
<shevy> dimadima, Hanmac here is a die-hard ubuntu fan, you can ask him about debian/ubuntu (when he is awake... he is probably sleeping right now)
<dimadima> postmodern: cool, thanks
<shevy> so Hanmac is proof that one can use ruby on debian/ubuntu :)
c0rn has quit [Ping timeout: 256 seconds]
advorak has quit [Quit: Ex-Chat]
_alejandro has joined #ruby
aaronmacy has quit [Quit: Leaving.]
kiyoura has quit [Quit: Leaving]
noyb has joined #ruby
jaygen has quit [Remote host closed the connection]
havenn has joined #ruby
hbpoison has joined #ruby
a_a_g has joined #ruby
<pdtpatrick> dimadima: if ur using Rubymine - then RVM works just well with it. It detects your versions and gemsets
<pdtpatrick> gemsets are quite handy
Hanmac_ has joined #ruby
ryanf has quit [Quit: leaving]
a_a_g has quit [Read error: Connection reset by peer]
io_syl has joined #ruby
mercwithamouth has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby
a_a_g has joined #ruby
<RubyPanther> bundler mostly means not needing gemsets
arkiver has joined #ruby
JohnBat26 has joined #ruby
a_a_g has quit [Client Quit]
a_a_g has joined #ruby
aapzak has quit [Read error: Connection reset by peer]
sleetdrop has joined #ruby
Joe0 has joined #ruby
<Joe0> hello?
sayan has joined #ruby
<Joe0> can anyone help me?
<pdtpatrick> RubyPanther: is that true? Because with gemsets if i switch to another gemset or go back to global, i won't have the same gems whereas i believe bundler installs the gems and you'll have to remove the gems if u no longer needed
<yfeldblum> bundler means the resolved dependencies are either noted or vendored in the application's source control
<dimadima> gemsets, cool
<carlzulauf> pdtpatrick: I think RubyPanther mostly just means that bundler helps resolve issues and conflicts caused by multiple versions of various gems installed... it will make sure the right one is used and install any that aren't installed
<Joe0> how to make a code for this sample output?
<carlzulauf> it does something very very different than gemsets, but solves many of the same problems gemsets try to solve
mockra has quit [Remote host closed the connection]
<pdtpatrick> carlzulauf: that's what i thought but i figured i
mercwithamouth has joined #ruby
<pdtpatrick> i'd ask in case i've been using it wrong all this time
* Hanmac_ does not have problems with bundler and gem sets ... because he is using nothing of them
<pdtpatrick> splain yourself
<pdtpatrick> :)
a_a_g has quit [Quit: Leaving.]
<carlzulauf> i still like gemsets though... the help keep projects isolated. i know if there are 2 version of a gem installed in a gemset its probably because the Gemfile/Gemfile.lock was modified.
h4mz1d has quit [Ping timeout: 248 seconds]
<Joe0> how to make a code for the volume of a sphere and for the volume of a pyramid using if else conditional statement? plz help
<carlzulauf> not because a slightly different version is used by another app, since that app is in its own gemset
aapzak has joined #ruby
blazes816 has joined #ruby
<Joe0> how to make a code for the volume of a sphere and for the volume of a pyramid using if else conditional statement? plz help
<Mon_Ouie> No need to repeat that.
<Mon_Ouie> Why would you use conditionals for that? It's simply a matter of applying a math formula given the dimensions of your object
<Joe0> yea i have the formula but in this case
sleetdrop has quit [Remote host closed the connection]
<Joe0> i need to combined it using c function
dmerrick has joined #ruby
yacks has quit [Quit: Leaving]
<Joe0> #include<stdio.h> float sphere(){float A,r; printf("Input the radius of a sphere:"); scanf("%f",&r); A=4*3.1416*r*r; printf("\n The area of sphere is %.2f",A); return 0;
Joe0 has quit [Quit: Joe0]
cobragoat has joined #ruby
<Mon_Ouie> Well, you can write a C extension. That'd just be more work than simply rewriting the formula in Ruby
<Hanmac_> (but when you run it, an C ext is faster than pure ruby ... )
macmartine has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Read error: Connection reset by peer]
elico has joined #ruby
<yfeldblum> carlzulauf, meh, anywhere i can use bundler, i haven't got much use for gemsets
robbyoconnor has joined #ruby
hackerdude has quit [Remote host closed the connection]
mnaser has quit [Read error: Operation timed out]
<yfeldblum> carlzulauf, i mean, if you look at the gems in a gemset, you can see that some were updated ... but why not just look at the history of Gemfile.lock in git?
<carlzulauf> my favorite feature of RVM works well with gemsets, so that's why i've grown to use them... .rvmrc files
iamjarvo has quit [Quit: Leaving.]
timonv has joined #ruby
<carlzulauf> i love having project specific ruby versions. jruby for one project, 1.8 for the other, 1.9.2/1.9.3 for others. never have to type anything, the ruby and gemset is changed when I enter the project directory
dstarh has quit [Remote host closed the connection]
pyro111 has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 245 seconds]
jblack has quit [Ping timeout: 252 seconds]
mnaser has joined #ruby
bbunny has joined #ruby
pu22l3r has quit [Remote host closed the connection]
rezzack has joined #ruby
bhushan has joined #ruby
MissionCritical has quit [Ping timeout: 264 seconds]
* Hanmac_ loves to not supporting 1.8
cableray has quit [Quit: cableray]
apeiros|afk has quit [Remote host closed the connection]
elico has quit [Ping timeout: 264 seconds]
haxrbyte has joined #ruby
slainer68 has joined #ruby
cableray has joined #ruby
haxrbyte_ has quit [Ping timeout: 276 seconds]
v0n has quit [Ping timeout: 276 seconds]
ryanf has joined #ruby
slainer68 has quit [Ping timeout: 245 seconds]
Mission-Critical has joined #ruby
havenn has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
MrSamuel has left #ruby [#ruby]
havenn has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
io_syl has quit [Ping timeout: 240 seconds]
invariant has joined #ruby
icole has joined #ruby
tagrudev has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
io_syl has joined #ruby
zommi has joined #ruby
<invariant> If I run system("wget " + url) where url="http://" + couldbeanythingaslongas URI.parse accepts it, is that a security problem?
clocKwize has joined #ruby
aaronmacy has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<carlzulauf> invariant: hopefully not, but probably. I don't URI.parse was meant to be used for security like that
icole has quit [Ping timeout: 256 seconds]
Mission-Critical is now known as MissionCritical
ChampS666 has joined #ruby
<yfeldblum> invariant, yes
robustus has quit [Ping timeout: 276 seconds]
<invariant> carlzulauf, is there a version of system which just takes a list of arguments?
<carlzulauf> invariant: case in point: URI.parse("file:///home/carl/generated_addresses.txt")
<yfeldblum> invariant, always avoid interpolating system commands with user inputs
TomyLobo has joined #ruby
<invariant> carlzulauf, did you see the prepended http I added?
<invariant> carlzulauf, perhaps with an additional space your example would work.
<carlzulauf> the space should cause it to fail parsing
<invariant> yfeldblum, yes, but I still want to call wget in some way.
<yfeldblum> invariant, you *may* use `system("wget", url)`, since that doesn't do interpolation
<invariant> yfeldblum, ok, so in general system(command, arg1, arg2,arg3)
robustus has joined #ruby
<yfeldblum> invariant, however, you will want to take some precautions with the url (enforce http:// or https://, etc)
<carlzulauf> any reason why you don't want to use Net::HTTP?
<invariant> yfeldblum, is there also a version like system(command, [arg1, arg2])
<yfeldblum> invariant, yes to the first, no to the second
otherj has quit [Quit: otherj]
<yfeldblum> invariant, but if you have a list of args in the variable named `arguments`, then you can `system("wget", *arguments)`
<invariant> yfeldblum, ok, thanks.
<yfeldblum> invariant, also, why do you want to use wget?
codezombie has joined #ruby
<invariant> yfeldblum, because it works, but no other particular reason.
<invariant> yfeldblum, a pure Ruby suggestion is welcome.
<carlzulauf> it does give a nice progress bar if you're using ruby for some shell scripting... otherwise I'd recommend using URI.open/Net::HTTP
<invariant> yfeldblum, this is not for anything high-performance and starting a process is 10000 times faster than the work it needs to do.
<yfeldblum> invariant, net/http, httpclient, httparty, open-uri, etc... <--- pure-ruby solutions
rakuN has quit [Quit: Saliendo]
bhushan has quit [Remote host closed the connection]
Elhu has joined #ruby
<yfeldblum> invariant, also excon
<yfeldblum> invariant, there are quite a number of HTTP client libraries in rubyworld
<invariant> yfeldblum, what's the best documented of those?
<yfeldblum> invariant, i don't know about documented, but net/http ships as part of the ruby stdlib
<carlzulauf> so does open-uri, right?
vlad_starkov has joined #ruby
<yfeldblum> carlzulauf, yes
<carlzulauf> there are also gems to interface with curl
<carlzulauf> like curb
ben_____ has quit [Quit: ben_____]
mafolz has joined #ruby
<invariant> Is there some library which takes an url and return tar.gz if that's its suffix (and then that for other common suffices)?
<invariant> I think lots of libraries simply return .gz in that case.
icole has joined #ruby
cableray has quit [Quit: cableray]
jlwestsr has quit [Quit: Ex-Chat]
theRoUS_ has quit [Ping timeout: 276 seconds]
<carlzulauf> invariant: there are lots of ways you can look at the existing file extension and use that with pretty much any of the libraries
<invariant> carlzulauf, I am not asking for an algorithm.
<carlzulauf> you can also use the mime type if the extension isn't present, or even if it is
<invariant> carlzulauf, either there already is such a thing, or there isn't.
rezzack has quit [Quit: Leaving.]
<invariant> carlzulauf, if there isn't the answer is 'no', otherwise the answer is 'yes, for example Foo::fun'.
adkron has joined #ruby
katherinem13_bed has quit [Ping timeout: 246 seconds]
<carlzulauf> well, way to be a jerk while simultaneously pigeonholing the gems. none of the libs download anything without at least a few lines.
<carlzulauf> some of them might have a method that tries to guess the correct extension. i don't know
centipedefarmer has quit [Remote host closed the connection]
<carlzulauf> the answer isn't a simple yes or no. any of them can. i don't know which it would be easiest with
blazes816 has quit [Quit: blazes816]
<invariant> There is no reason to download anything to determine the extension of an url like I specified.
<carlzulauf> there is if it doesn't have one
<invariant> That would mean there would have to be a special value which indicates such absence.
<invariant> Different programming languages solve that differently.
katherinem13 has joined #ruby
cableray has joined #ruby
zodiak has quit [Ping timeout: 248 seconds]
<carlzulauf> i'm not sure what you mean, but given a url like http://example.com/doc/12345/ there is no way to know what kind of file it is until you request it and get the Content-Type header from the server
<carlzulauf> even if the file has an extension, you might not be able to trust it
agarie has quit [Remote host closed the connection]
piotr_ has joined #ruby
hemanth_ has joined #ruby
<carlzulauf> but parsing the extension from a URI is a different concern from downloading a URI, so those libraries may not have much to help... havne't used them all though
Bonaparte has joined #ruby
ngoldman has joined #ruby
pyro111 has joined #ruby
katherinem13 has quit [Ping timeout: 246 seconds]
<invariant> I got it to work (and some other stuff already)
<invariant> Is there something that returns 32 when this is a 32 bits systems and 64 when ... ?
<tobiasvl> >> ['foo'].pack('p').size * 8
<eval-in> tobiasvl: Output: "" (http://eval.in/6653)
<tobiasvl> grr
<tobiasvl> >> p ['foo'].pack('p').size * 8
<eval-in> tobiasvl: Output: "32\n" (http://eval.in/6654)
<tobiasvl> invariant: think that ought to do it ^
hamed_r has joined #ruby
nomenkun has quit [Remote host closed the connection]
<carlzulauf> nice
<tobiasvl> google seems to think so at least
workmad3 has quit [Ping timeout: 256 seconds]
thecreators has joined #ruby
a_a_g has joined #ruby
<Hanmac_> hm an bit more accurat is this:
<Hanmac_> >> p RbConfig::CONFIG["arch"]
<eval-in> Hanmac_: Output: "\"i686-linux\"\n" (http://eval.in/6655)
<invariant> Is there an actual good reason for the various alternative libraries for the same purpose?
<hemanth_> >> %i{this is a list of symbols}
<eval-in> hemanth_: Output: "/tmp/execpad-5fe5e4ae2ae1/source-5fe5e4ae2ae1:1: unknown type of %string\n%i{this is a list of symbols}\n ^\n" (http://eval.in/6656)
<hemanth_> that is from ruby 2.0 ;)
<invariant> It's not as bad as in some other languages and in general I haven't had much trouble with libraries not working in Ruby (just the way I like it).
delinquentme has quit [Ping timeout: 264 seconds]
noyb has quit [Ping timeout: 255 seconds]
grzywacz has joined #ruby
<carlzulauf> invariant: different libraries work differently and serve a different niche. httparty is great for interacting with http apis, net/http is just the basics, curb if you need full blown curl features and want your app to masquerade as a browser easily, etc.
<carlzulauf> its not like they are clones of each other. some are built for performance, others simplicity, others just because the author thought the existing interface was less than perfect
jaequery has quit [Quit: Computer has gone to sleep.]
<Hanmac_> ezkl & invariant: my system has also combinded content types ... (match from file name) so an ".tar" is "application/x-tar" and ".gz" is "application/x-gzip", but my system does recognise ".tar.gz" as "application/x-compressed-tar"
zodiak has joined #ruby
eldariof-office has joined #ruby
segv- has joined #ruby
segv- has quit [Client Quit]
razibog has joined #ruby
aganov has joined #ruby
<Hanmac_> invariant: other sample about different libraries: there is rexml in the stdlib, but nokogiri has nicer features
<invariant> Hanmac_, re is faster?
jaequery has joined #ruby
<Hanmac_> i did not say that because i did not know
<invariant> Hanmac_, nokogiri is great in my experience, but I haven't used it on big inputs.
<invariant> I would prefer it if it has xpath2.0 support.
<ezkl> Nokogiri is much, much faster
<invariant> I think xpath3 already is in the works, but nobody has properly implemented even xpath2.0.
<invariant> I think I tried libraries written in about 5 different languages and they all were not according to spec.
<invariant> Lots of libraries are also not robust to slightly broken input.
* Hanmac_ writes bindings itself ... with them ruby can be EXTREMLY fast ...
Elhu has quit [Quit: Computer has gone to sleep.]
<invariant> Hanmac_, are you an it?
<carlzulauf> nokogiri is also better at handling less-than-perfect documents
bigkevmcd has quit [Quit: outta here]
<ezkl> carlzulauf: Indeed.
ngoldman has quit [Remote host closed the connection]
<Hanmac_> invariant: i am not an nokogiri author, but i wrote other bindings
jds_ has joined #ruby
<invariant> Hanmac_, I mean that most people would refer to himself or herself. Only robots would perhaps be its.
pen has quit [Ping timeout: 252 seconds]
pencilcheck has joined #ruby
zodiak has quit [Ping timeout: 245 seconds]
<invariant> Hanmac_, yes, it's nice if you can write bindings, because then you can pick the best available in every language.
<invariant> Although, often there are copying costs involved.
bigkevmcd has joined #ruby
dankest|away has quit [Quit: Leaving...]
<invariant> E.g. to go from a Ruby string to a C string is probably going to need a copy?
<Hanmac_> invariant i also wrote them for others ... but because of the limited time per day (f**k you RL) they are mostly workign but unfinished
slainer68 has joined #ruby
filipe has joined #ruby
<Hanmac_> invariant: you CAN access the charPtr of the Ruby String, but i prefer not to change them directly (i used std::string or <Library>::String)
browndawg has quit [Ping timeout: 252 seconds]
TomyLobo has quit [Quit: Standby mode...]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 260 seconds]
alejandro_ has joined #ruby
bhushan has joined #ruby
ChampS666 has quit [Ping timeout: 248 seconds]
browndawg has joined #ruby
havenn has quit [Ping timeout: 276 seconds]
CamonZ has quit [Read error: Connection reset by peer]
<invariant> Is there also an equivalent of tar xzf for Ruby?
CamonZ has joined #ruby
AndChat| has quit [Ping timeout: 245 seconds]
thecreators has quit [Quit: thecreators]
AwahyLex is now known as Quadlex
<Hanmac_> invariant yes and no ... i have an binding for libarchive ... but the development is currrently frozen and it does currently not working :/ :(
codezombie has quit [Quit: Linkinus - http://linkinus.com]
_alejandro has quit [Ping timeout: 256 seconds]
Banistergalaxy has joined #ruby
cableray has quit [Quit: cableray]
Morkel has joined #ruby
cableray has joined #ruby
<Hanmac_> invariant: this is not mine, but it may work http://rubygems.org/gems/libarchive
pencilcheck has quit [Read error: Connection reset by peer]
tonini has joined #ruby
mneorr has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
shorts has joined #ruby
pen has joined #ruby
mikeg has quit [Ping timeout: 276 seconds]
jprovazn has joined #ruby
pen has quit [Ping timeout: 276 seconds]
toekutr has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
<shevy> hehe
<shevy> Hanmac, what are you coding these days?
codezombie has joined #ruby
clooth has joined #ruby
dawkirst_ has quit [Ping timeout: 276 seconds]
apeiros|afk has joined #ruby
[Neurotic] has quit [Remote host closed the connection]
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
<Hanmac_> shevy currently begining with the orr-gameengine so you could reguire them like a gem and then do: ORR::Engine.new(ARGV).start!
jds_ has quit [Remote host closed the connection]
<shevy> cool
_alejandro has joined #ruby
gyre008 has quit [Remote host closed the connection]
havenn has joined #ruby
maxmanders has joined #ruby
clooth has quit [Ping timeout: 260 seconds]
hotovson has joined #ruby
alejandro_ has quit [Ping timeout: 245 seconds]
ViPi has quit [Quit: Computer has gone to sleep.]
maxmanders has quit [Ping timeout: 252 seconds]
<Hanmac_> currently the only thing that it can do is to show a map, no less and no more
maxmanders has joined #ruby
jimeh has joined #ruby
havenn has quit [Read error: Connection reset by peer]
ping-pong has quit [Ping timeout: 264 seconds]
pen has joined #ruby
atmosx has joined #ruby
<carlzulauf> a game engine?
<carlzulauf> what are you using to talk to the hardware? java? native opengl? something else?
<carlzulauf> Hanmac_: ^
arturaz has joined #ruby
<Hanmac_> carlzulauf: currently i use gosu for it (so my engine is only an layer above gosu)
<carlzulauf> i keep meaning to learn more about game engines
<Hanmac_> carlzulauf but i have also an different project that is a binding for ogre3d
<carlzulauf> interesting
hoelzro|away is now known as hoelzro
robotmay has joined #ruby
<carlzulauf> are either of these on github?
<carlzulauf> or similary public?
pen has quit [Ping timeout: 255 seconds]
Elhu has joined #ruby
main has joined #ruby
aaronmacy has quit [Quit: Leaving.]
samuel02 has joined #ruby
francisfish has joined #ruby
<Hanmac_> https://github.com/Hanmac/libogre-ruby << there is one of the repos (it says 4month ago but i only didnt commited yet)
nomenkun has joined #ruby
dawkirst_ has joined #ruby
pen has joined #ruby
ping-pong has joined #ruby
mneorr has joined #ruby
LouisGB has joined #ruby
icole has quit [Remote host closed the connection]
gyre008 has joined #ruby
icole has joined #ruby
zigomir has joined #ruby
ViPi has joined #ruby
icole has quit [Remote host closed the connection]
aaronmacy has joined #ruby
<Hanmac_> carlzulauf i maybe make today an commit (to show activity) ... and i hope i did not scare you with my code :P
maycon_ has joined #ruby
<atmosx> my github account says that I contributed to "octopress" but I can't remember that happening.
<atmosx> I never issued a pull request hm
chussenot has joined #ruby
TheFuzzball has joined #ruby
<carlzulauf> Hanmac_: I'm still trying to wrap my head around gosu and the assortment of related tools I didn't know existed
<carlzulauf> haven't really looked at the code
nari has quit [Ping timeout: 260 seconds]
bhushan has quit [Remote host closed the connection]
maycon has quit [Ping timeout: 255 seconds]
elaptics`away is now known as elaptics
blacktulip has joined #ruby
TheFuzzball has quit [Client Quit]
noxoc has joined #ruby
dwu1 has quit [Quit: Leaving.]
<Hanmac_> carlzulauf: you should beware that i am an evil ruby coder ... and with C/C++ comined my code only gets more "Naughty" :P, so be not afraid when you see something like macro_attr(Text,String) in my bindings
<carlzulauf> mostly C code :-P the ruby code all looks pretty straight-forward
fjfish has joined #ruby
<carlzulauf> i'm guessing test/media/ files are in some Ogre specific DSL?
hbpoison has quit [Ping timeout: 248 seconds]
charliesome has joined #ruby
RagingDave has joined #ruby
<Hanmac_> yeah
<atmosx> bbl
atmosx has quit [Quit: And so the story goes…]
<carlzulauf> makes sense to use as much C as possible... i'm just not comfortable in C/C++ yet
moshee has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<Hanmac_> the methods of my binding are mostly C++ methods with C++ freatures (like exception handling) but i use C-Macros to generate them
rakl has joined #ruby
beliveyourdream has joined #ruby
osaut has joined #ruby
havenn has joined #ruby
francisfish has quit [Ping timeout: 260 seconds]
TheFuzzball has joined #ruby
<shevy> carlzulauf next language I will learn will be C
<shevy> I gave up on java, it bores me to no end
nari has joined #ruby
<arturaz> shevy, have you tried scala?
<Quadlex> now you have two problems
<shevy> hmm I think it is too similar to other scripting languages
<shevy> arturaz, my hope with C is that I can help out more in other areas, like ruby-gnome bindings
stonevil has quit [Read error: Connection reset by peer]
stonevil has joined #ruby
mercwithamouth has quit [Ping timeout: 276 seconds]
<hoelzro> C is definitely worth knowing
Vainoharhainen has joined #ruby
<hoelzro> both as a learning experience, and as a tool
buibex has joined #ruby
<Hanmac_> if you learned C, C++ is easy to learn too
buibex has quit [Client Quit]
cableray has quit [Quit: cableray]
haxrbyte has quit [Ping timeout: 260 seconds]
dmerrick has quit [Quit: dmerrick]
yacks has joined #ruby
Proshot has joined #ruby
mahmoudimus has joined #ruby
yacks has quit [Max SendQ exceeded]
reinaldob has joined #ruby
yacks has joined #ruby
pcarrier has joined #ruby
buscon has joined #ruby
beiter has joined #ruby
ephemerian has joined #ruby
slainer68 has joined #ruby
workmad3 has joined #ruby
sn0wb1rd has joined #ruby
matthewrobbins has joined #ruby
<rking> s/, /, much of/
elkclone has quit [Ping timeout: 264 seconds]
<rking> I doubt even Bjarne Stroustrup knows all of C++.
<rking> He probably picks up TC++PL and is like, "Huh, I didn't know that was in there."
<charliesome> rking: "what the fuck were you lot on?"
razibog has quit [Read error: Connection reset by peer]
<rking> LOL yeah
tekacs has quit [Quit: Disappearing... *poof*]
razibog has joined #ruby
<wildcard0> heyas
<workmad3> rking: Y U NO LIEK C++? :(
<rking> workmad3: Relative to what?
tekacs has joined #ruby
<workmad3> I dunno... java? :P
<wildcard0> oh i have things i dont like about c++
<rking> Now you've got me in a corner. At least Java has GC.
gyre008 has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
<wildcard0> but that can be said about most languages
elkclone has joined #ruby
<wildcard0> java has a GC, but that GC can cause huge problems
<rking> But Java is one of my favorite things to hate.
<workmad3> rking: and C++ has reference-counted smart-pointers
<charliesome> the problem with c++ is that you start using it thinking "yeah i'll just stick to a nice friendly subset"
<charliesome> then before you know it you've blown your foot off and half of your code is in header files
viario has joined #ruby
<workmad3> charliesome: nah, that's not really a problem unless you're a real newcomer to coding and can't keep your code organised
<workmad3> charliesome: the real problem is that you think 'I know, I can solve this with a 5 line template and some real genius' and introduce 2000 lines of error output
<rking> workmad3: Can you think of an OSS project that uses those to good effect?
<workmad3> rking: it's been ages since I've looked at any C++
hbpoison has joined #ruby
<rking> That just sounds too good to be true.
<workmad3> rking: I'm just acting as the troll here ;)
* wildcard0 feeds the troll
<workmad3> rking: what? reference-counted smart-pointers?
<wildcard0> java is designed that way so that mediocre people can write in it
<workmad3> rking: they've been in boost for yonks, they're now part of the stdlib, and the implementation is pretty damn solid I believe
carlzulauf has quit [Ping timeout: 264 seconds]
WilfredTheGreat has joined #ruby
<rking> workmad3: Yeah. I mean, you can do a bit with dtors and stuff, and it's an example of something that is better in C++ than C's equivalent of "manually check for exceptions, free(), then return", but it sounds like it'd be imperfect.
carlzulauf has joined #ruby
<rking> I mean, there's nothing that stops you from using a GC engine in C++
<wildcard0> or using free() in c++
<rking> Same as with regexps. You can just include pcre and you've got the same power as Ruby. But since you have to have another lib, and since the syntax is going to be suboptimal, people don't bother.
<workmad3> rking: it's building on the idea of RAII, smart use of copy-constructors, destructors and the automatic cleanup of stack objects when they move out of scope
<workmad3> rking: the book Modern C++ Design has a lot of detail on how to create smart pointers if you need your own custom versions too :)
<charliesome> workmad3: a language shouldn't make it *that* hard to keep your code organise
moshee has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<workmad3> rking: they aren't cycle-proof btw
<workmad3> rking: if you're looking for a flaw ;)
jds_ has joined #ruby
<rking> boost::shared_ptr doesn't handle cyclic references. =\
<rking> Oops, typed that before I read what you said. Yep.
<rking> Yeah, we're well into the Turing Tarpit, here.
<workmad3> it's not that surprising, if you think about it though
<workmad3> each smart pointer is simply a container, it knows nothing about other smart pointers
<rking> You "can" write code that gives you a decently high-level control in C++, but I've never yet seen anyone do it.
rdark has joined #ruby
pskosinski has joined #ruby
<rking> Yeah, it's not surprising. And there is boost::weak_ptr. It's just also 2012 and not the kind of thing I want to think about while writing code.
<rking> Urr, 2013. haha
<workmad3> yeah, it's not the sort of crap you want to think about in most applications :)
<invariant> Modern C++ can look a lot like Ruby.
<rking> Something that puzzles me, too, is how long it takes Boost to compile. Same with glibc. Why are these libs that provide one thousandth of the functionality of a HLL so enormous?
<rking> invariant: URL of a repo or it didn't happen.
<workmad3> rking: why do you think boost provides one thousandth of the functionality?
<invariant> rking, pretty much everything in boost is high-level, imho.
<workmad3> rking: have you actually looked at what is in boost?
jwang has quit [Quit: Leaving]
<rking> The Mozilla codebase is the biggest OSS C++ thing I know, and it's only getting stable in the last few years.
<invariant> Boost is high-level and extremely efficient.
<wildcard0> id love to see a c++ codebase that looks like ruby
<workmad3> rking: I mean, there's a goddamn python runtime in boost!
tatsuya_o has joined #ruby
<hoelzro> workmad3: is it a runtime? I thought it was an "easy Python binding generator"
<workmad3> hoelzro: ah, that could be it
razibog1 has joined #ruby
<invariant> Using a GC means that some systems cannot work on it efficiently.
jds_ has quit [Ping timeout: 276 seconds]
<hoelzro> I remember looking at it a while ago
<rking> invariant: What project makes good use of it, though?
<workmad3> either way... not some tiny, insignificant bit of functionality... and that's just one tiny bit of it
<invariant> rking, I imagine that every large company does internally.
<rking> workmad3: Yeah, I'm definitely exaggerating on that number. It's just a really really long compile, though.
<invariant> rking, you cannot not use C++ these days.
<rking> invariant: Why would there be no decent OSS C++ examples?
<workmad3> rking: yeah, the other thing to remember is that this sort of stuff is the foundation other things build on
stonevil has quit [Quit: stonevil]
<invariant> rking, I said that boost is OSS.
cdt has joined #ruby
<rking> I could paste links to Ruby repos for hours that are written well enough that reading its source has lessons to be learned.
<invariant> rking, and Boost also uses Boost sometimes.
<wildcard0> i work at a fairly large company. and our c++ looks nothing like ruby
<wildcard0> it looks more like c++
<workmad3> wildcard0: as it should ;)
<invariant> wildcard0, that's because at a large company there is an average low IQ.
horofox_ has joined #ruby
razibog2 has joined #ruby
<rking> invariant: That's too meta. If the idea is sound, there should be at least *one* OSS example that's not mangled.
<workmad3> what is this obsession that people have with making one language look like another?
reuven has joined #ruby
<invariant> rking, in my experience lots of OSS is of low-quality too.
<wildcard0> that's possible. i tend to believe it's the lowest IQ of the group divided by the number of people in the group
<charliesome> workmad3: btw i looked into it
<rking> workmad3: In this case "looks like Ruby" just means "Doesn't look like a giant pile of lines that aren't essential to the actual problem the code is trying to solve."
<charliesome> 20% of v8 by source lines is in header files
razibog has quit [Quit: Leaving.]
razibog1 has quit [Read error: Connection reset by peer]
<invariant> Also, you get more type-safety from C++.
<rking> invariant: No, that's what I'm saying, though. There is a lot of fun-to-read OSS code in HLLs.
<workmad3> invariant: seriously? you're trying to sell that pile of crap?
<workmad3> invariant: C++ allows C casting
<wildcard0> type safety is overhyped
<workmad3> invariant: the type system is therefore broken in C++
<invariant> wildcard0, that's why you don't use that.
mneorr has quit [Remote host closed the connection]
<wildcard0> i like duck typing
<invariant> I am not saying that C++ is a good language; it does however have a good RTS.
<invariant> Meaning, almost none :)
<wildcard0> heh
WilfredTheGreat has quit [Remote host closed the connection]
<invariant> You can always work around the stupid implementation errors, if any.
<invariant> In a language that's tied to an implementation or has some implementation choices set in stone for some reason, that's not going to happen.
<invariant> Also, C++ has a fairly formal specification.
havenn has quit [Read error: Connection timed out]
<invariant> Does Ruby have any standard specification with the same rigor?
<invariant> I don't think so.
<rking> Hahaha
<workmad3> invariant: what does that formal spec give C++ though?
<workmad3> invariant: it certainly doesn't give it implementation-independence
<rking> It took C++ *years* to get to where the most basic of new features was anything you could expect compilers to actually implement.
<invariant> workmad3, code that continues to work for decades.
<workmad3> invariant: bollocks it does
<invariant> c89 code still works in the case of C.
<workmad3> invariant: sure, assuming that the code was written as C89
<rking> It's better to not have a standard for things that move fast.
<invariant> C++ 98, same story.
<wildcard0> well the c++ committe grew faster than the standard
<wildcard0> that says something
<shevy> hehehe
<rking> Let it flourish, figure out what you really want, then go back and write the standard.
<invariant> That's about 15 years now.
<workmad3> invariant: again, assuming it's actually C++98 that you have
<invariant> workmad3, if you are not writing against a standard, you are not a programmer.
pcarrier has quit []
<workmad3> invariant: it took them until about 2008 to get the majority of implementations to be compliant against the C++98 standard
<invariant> workmad3, I know that.
<shevy> ack
<workmad3> invariant: if you didn't have a compliant implementation, you almost certainly had to work around that
<shevy> workmad3 is not a programmer :(
<rking> shevy: (?)
<shevy> rking I am just interpreting what invariant wrote
bbunny has quit [Ping timeout: 248 seconds]
<invariant> workmad3, yes, and you would isolate those pieces of the code.
<workmad3> invariant: and a huge swathe of code isn't compliant, is tied to specific compiler versions, etc. and breaks badly if compiled with a compliant compiler
<workmad3> invariant: so once again... what does that standard actually provide? other than a way to say 'this code isn't really C++'
<invariant> workmad3, for the latest standard, there are similar approaches already.
<invariant> workmad3, there are a lot of programs that can be written against the standard now. Pretty much everything I have ever written at least.
<workmad3> invariant: sure, because people now know how to isolate themselves from it
<wildcard0> i wonder what % of developers believe they're above average
<invariant> workmad3, this is software engineering 101.
<workmad3> invariant: again, it is *now*
<rking> invariant: It's just even more inessential problem-solving.
<invariant> If I would find that the APIs I am using in Ruby don't work anymore in 5 years, I will likely abandon Ruby.
<workmad3> invariant: but you're claiming this for code going back to the birth of the standard, which was different from C++ as it existed at the time, and took a lot of time to sort out
<invariant> Not that I have a lot of Ruby running.
<rking> When I see some code, I expect it to be 90% essential or else there should be a good reason why it isn't.
Bry8Star has quit [Ping timeout: 276 seconds]
<invariant> workmad3, I also use compilers that are closest to the standard.
daniel_- has joined #ruby
<workmad3> invariant: right, and what about when they *don't exist*
<workmad3> invariant: do you write one?
nkr has joined #ruby
<invariant> workmad3, I could certainly do that, but I probably won't.
Shrink has quit [Ping timeout: 248 seconds]
<invariant> It's not like writing a compiler is anything hard.
<shevy> rking my code is like that, I write only what I need!
<invariant> It's just a lot of work.
<workmad3> invariant: right, so what would you do in the case of C++98, new standard, new standard library, and no compilers or implementations that are standards compliant
<invariant> There are much more complex problems than compiler construction.
<invariant> workmad3, isolation.
<wildcard0> like compiler optimization
<workmad3> invariant: but you also have existing C++ code that came into being before the standard
<workmad3> invariant: you have entire systems that were written before the standard
<invariant> workmad3, then I would have such features isolated already.
<invariant> workmad3, isn't planning ahead great?
ezkl has quit [Ping timeout: 252 seconds]
<workmad3> invariant: and they were written without the benefit of knowing that isolation would even be *needed*
<workmad3> invariant: sure, if you've managed to isolate the right bits that aren't standards compliant in the absence of said standard
<workmad3> invariant: 'isolation' isn't a magical answer
<invariant> workmad3, if the function call syntax will change in ruby, I will just write a simple source to source transformation.
swex_ has quit [Ping timeout: 276 seconds]
baphled has joined #ruby
<invariant> It can't be that difficult, but I would probably try to abandon ruby as quickly as possible.
<invariant> I like stable languages.
<invariant> As in: backwards compatible.
<wildcard0> languages either come and go or change
<workmad3> invariant: you're actually wanting forwards compatible
<workmad3> invariant: which is a much bigger, harder problem
<wildcard0> workmad3: that's just perspective
<shevy> ruby changes all the time
slainer68 has quit [Remote host closed the connection]
<wildcard0> speaking of, has anyone played with ruby 2?
<shevy> invariant do you like Encoding module in ruby 1.9.x
<invariant> shevy, just because I use some modules, doesn't mean I am not a relative Ruby n00b.
<wildcard0> invariant: so basically you like langauges... invariant ?
<invariant> wildcard0, I like good libraries.
havenn has joined #ruby
<wildcard0> well ya
<invariant> wildcard0, if it so happens to be in a particular language, I will just use it regardless of the language.
<wildcard0> that's kinda a truism
<shevy> I want to create a scripting language with a high quality FAT library
ezkl has joined #ruby
<wildcard0> i mean who's like "i like bad libraries!"
Xeago has joined #ruby
<shevy> wildcard0 oh, most languages are... if you assume that bad libraries never make it into them :) and if every addition to the language must be reasoned for
<invariant> wildcard0, gluing together libraries from different languages with pipes creates nice simple utilities.
<shevy> ack please not
<shevy> awk/sed/perl/shell/what/not
<invariant> shevy, ?
<wildcard0> ah the unix design philosophy
<wildcard0> it's worked for 40-ish years
<shevy> wildcard0 except that, given a good language, you can avoid all of these and just use that one language
<invariant> wildcard0, yep. It doesn't work for 30000 requests/sec kind of things.
elkclone has quit [Ping timeout: 276 seconds]
jdripper has joined #ruby
<invariant> wildcard0, or rather, it will cost you 100 times the hardware.
timmow has joined #ruby
<wildcard0> shevy: that depends what you're doing. if you need flexibility, a bunch of smaller utilities is sane. a single program that incorporates every possible cross product of those really isn't
<invariant> I would also prefer to use one language.
<invariant> But if reality doesn't agree...
<shevy> pfft reality
<wildcard0> heh
<shevy> linux startup scripts are shell scripts
<invariant> shevy, what did you mean by ack not?
<shevy> invariant I like the core of the unix philosophy. I do not like perl/awk/sed syntax much at all, and I dont feel that linux as a whole is beautiful
<shevy> linux has the advantage of no real competition against it
<invariant> shevy, if you get sed, it's quite good, but otherwise I agree.
<shevy> they are all useful
<shevy> shell scripts too
dhruvasagar has quit [Ping timeout: 255 seconds]
<invariant> I think awk does too much.
<invariant> I also don't like first-order languages with lots of built-ins.
<shevy> perl's creator didn't think so :DDD
<wildcard0> linux used to have competition, but it kinda won
<shevy> I'd like to find beautiful programming languages
<wildcard0> it could use more probably
elkclone has joined #ruby
<shevy> I tried to befriend BSD
<invariant> shevy, and?
<hoelzro> wildcard0: I wish; I think the problem is momentum
<shevy> but their usability is significantly worse than linux :(
<wildcard0> possibly. i think that competition is good in general
dhruvasagar has joined #ruby
<ezkl> awk, see, et al are power tools; they create beauty through IO violence
<hoelzro> Linux has tons of momentum, and none of the competition really offers anything that blows Linux out of the water
<ezkl> *sed
<shevy> yeah hoelzro exactly
<wildcard0> awk is a programming language
<wildcard0> just an old one with really horrible syntax
<Hanmac_> shevy image how funny it would be if the startup scripts are in ruby :D
<invariant> There is only one reason why there is no competition.
<shevy> and there is so much fragmentation too... netbsd ... freebsd... pcbsd... openbsd... dragonflybsd... cant they all merge together...
<invariant> This is lack of hardware documentation.
<wildcard0> we're between competitiors?
<hoelzro> invariant: so true
<hoelzro> and kernels are hard.
icole has joined #ruby
<invariant> hoelzro, kernels can be written in 4000 lines of C.
mercwithamouth has joined #ruby
<shevy> Hanmac_ i tried too! but it is too much work... I think if I try it again, I'd write a tiny little domain language
<wildcard0> device drivers then all need to be ported
<hoelzro> invariant: are you talking about a microkernel?
<wildcard0> id suggest that it'd be easier to build a different userspace around the linux kernel
<invariant> hoelzro, that's a kernel, isn't it?
<shevy> the kernel is another thing, it's huge these days
slainer68 has joined #ruby
<shevy> it was fun to compile it from source 10 years ago
<wildcard0> it can be small. but you need to go shrink it
<shevy> it's just a hassle nowadays :(
<shevy> yeah wildcard0
<wildcard0> you can fit it on 100k embedded devices
<hoelzro> invariant: true, but I think that saying that the kernel is 4000 lines of a microkernel is kind of a loaded statement
<hoelzro> I can write a *really* stripped down kernel and ship everything out to userspace
Bry8Star has joined #ruby
<wildcard0> it'd be kinda cool to see beos userspace on top of a linux kernel
<hoelzro> but if I haven't written any userspace daemons to perform that functionality, can you really consider the kernel/OS "complete"?
<wildcard0> though i have no idea who has time to do that
<hoelzro> wildcard0: what's wrong with Haiku?
<invariant> If you want competition, you need to write a letter to some EU body explaining how more competition could be created.
<shevy> wildcard0 haiku can run beos binaries or? but they are so slow, in 1000 years they will give you hd-install options...
chussenot has quit [Ping timeout: 246 seconds]
<invariant> I am sure they are all ignorant of the issues involved.
gyre007 has joined #ruby
timonv has quit [Read error: Connection reset by peer]
<invariant> These are issues which are easy for us to understand and hard for them.
<wildcard0> hoelzro: it doen't have the variety of hardware support linux has. or im misinformed
timonv has joined #ruby
<hoelzro> shevy: iirc, haiku can already install to the HDD
<hoelzro> wildcard0: that's true
<hoelzro> apparently you can use encrypted wifi on it now, though?
<wildcard0> that's cool
<invariant> If an OS cannot run a modern graphics card, it already is useless.
<hoelzro> I've always been pretty impressed with Haiku
<hoelzro> considering how small their team is
<invariant> This is because the programmers will use such systems first.
<shevy> invariant hmm depends... if the rest of the code is high quality and bug free, then I would not entirely agree
<invariant> Then when they want to do server programming, they are already 'hooked'.
<shevy> yeah
<hoelzro> invariant: is that the fault of the developers developing that system, or the graphics card manufacturers who don't release specs?
<invariant> hoelzro, it's the fault of the legislators.
Shrink has joined #ruby
<wildcard0> a lot of those specs are available inside linux drivers
<shevy> just like the gamers are a big part of microsoft operating systems... young, smart guys, with money to buy things. so if win 8 fails to lure them, win 8 won't succeed much
<invariant> hoelzro, they should make documentation a law.
<wildcard0> heh a law
<wildcard0> that'd be interesting
<shevy> ohh
icole has quit [Ping timeout: 260 seconds]
<invariant> For hardware only, of course.
<shevy> make documentation a part of the program
<shevy> or make documentation the only way to add code
<wildcard0> win 8 will succeed the same way vista "succeeded". MS will just stop supporting older stuff
<hoelzro> invariant: that would be interesting indeed
<invariant> shevy, yes, I am sure there is a nice research project which could do that.
wf2f has quit [Ping timeout: 255 seconds]
<shevy> wildcard0 dunno if that will work forever for them
<invariant> shevy, these are the kinds of research projects that should be funded with EU money.
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
<invariant> (or no projects at all :P )
<wildcard0> shevy: maybe not. but that's kinda their plan from what i can see.
<wildcard0> i dont work for MS :)
<shevy> wildcard0, well, they still need people who use their software
<invariant> It's amazing that Linux developed in a system where there was no documentation.
jaequery has quit [Quit: Computer has gone to sleep.]
<shevy> I am on linux 99% of my time, I have one laptop with vista, only to test for compatibility stuff... like my ruby scripts and so forth
<wildcard0> shevy: they'll make it so that office requires windows 8 at some point. and people will ugrade. and everyone else will be forced to cause file formats. and then they'll upgrade the OS as well...also hardware manufs will ship windows 8 cause of the MS agreements
berserkr has joined #ruby
tatsuya_o has quit []
<shevy> but when I was a "gamer", I had no real alternative to windows
<wildcard0> it's not about good or bad tech. it's about the way the ecosystem works
<shevy> wildcard0 I never forgave them the ribbon-interface
<wildcard0> heh
<invariant> wildcard0, interesting to describe hell as an ecosystem.
<shevy> they killed my workflow and used propaganda to attempt convince me that this is a good thing
<wildcard0> im not defending them by any stretch. im just describing it
elkclone has quit [Quit: It's never too late to unplug and run.]
<wildcard0> i hardly ever use office. so it made no difference to me. having to look all over in one interface is the same as looking all over in another
<invariant> shevy, they should just have maintained both versions.
<shevy> ubuntu unity feels similar... it just interferes every time I wanna do something
<invariant> shevy, that's what people pay them for; to change as little as possible as to what they don't want.
<wildcard0> i really dislike unity. it doesn't work with what i want to do
<invariant> shevy, that's why you install KDE.
<wildcard0> or mint
<shevy> wildcard0 I kinda need a suite... libreoffice is ok, but I'd wish there was more competition here as well. or more choice
<invariant> shevy, that works on NixOS, doesn't it?
<wildcard0> shevy: totally agreed.
<shevy> dunno. been years since I tried nixos
<shevy> I liked its idea
<shevy> but my youth days are over, I dont experiment much anymore :(
<wildcard0> i wish i had time to play with some of these OS experiments
<shevy> hahaha yeah wildcard0 I can so relate to that
pen has quit [Remote host closed the connection]
dv_ has quit [Remote host closed the connection]
<shevy> invariant KDE is ok... but it took me many months before I could forgive them the transition from kde3 to kde4. they praised kde4 so much, then it was awfully buggy
tps_ has quit [Ping timeout: 248 seconds]
<shevy> awk '{ $1=NULL; t[$0]++; }
<invariant> shevy, another topic on which we agree.
<shevy> END { for (i in t) printf("%d\t%s\n", t[i], i); }
<shevy> hey...
<shevy> awk syntax almost reads like valid ruby syntax :)
<shevy> invariant, what terminal do you use?
<wildcard0> heh
<invariant> shevy, xterm
<shevy> hmm... without tabs? you have only one instance of xterm floating about?
mengu has joined #ruby
<invariant> shevy, tmux
<shevy> aha
<invariant> shevy, xterm is the only one that doesn't have really annoying bugs.
<shevy> hehehe
haxrbyte has joined #ruby
wallerdev has quit [Quit: wallerdev]
dawkirst_ has quit [Quit: Nettalk6 - www.ntalk.de]
<wildcard0> ugh. i wish i could run a decent terminal. work give us all macs
<shevy> wildcard0 you can use unicode characters in that mac terminal thingy!
<invariant> wildcard0, can't you compile it from source?
<wildcard0> oh yay!
gyre007 has quit [Read error: Connection reset by peer]
horofox_ has quit [Ping timeout: 276 seconds]
<wildcard0> invariant: ya, but then i have to run an x server on top of osx. and it's a mess
gyre007 has joined #ruby
<invariant> Lots of packages are not provided in any decent shape by my distribution, so I have to build it from source.
<wildcard0> i use iterm2 cause it's the least stupid
<invariant> wildcard0, aren't there any in the Mac App store? ;)
dv_ has joined #ruby
<wildcard0> wtf knows ;)
nmabry has joined #ruby
<wildcard0> i may even be convinced to write one at some point
<wildcard0> on my project time maybe. we'll see.
<invariant> I like that there are multiple implementations, because if some library call doesn't work, I don't need to debug it, I can just call some other language run-time + library.
<wildcard0> my current project time is a shared multiplayer code editor
<invariant> An extreme form of evolution, in some sense.
Neomex has joined #ruby
<invariant> wildcard0, what other features does it have besides that?
kjellski has joined #ruby
Neomex has quit [Client Quit]
<wildcard0> invariant: right now, that's all it does. i only get a little time on it and it's really for internal use. id like to be able to hook it up to the correct compiler/interpreter on the back end and be able to do git work as well
tonini has quit [Remote host closed the connection]
<invariant> wildcard0, how many hours did it take you to get to that point?
<wildcard0> heh about 10 maybe?
<shevy> awk '{s+=$1}END{print s}' <file>
fyolnish has quit [Ping timeout: 276 seconds]
<invariant> That's quite good, I think.
<wildcard0> it's more of an assembled set of open source projects with hacks right now
<wildcard0> but with a bunch of controls attached and stuff. my next step is making sure the controls are static across all the users. and then i think git after that
<wildcard0> so you can import code easily
bhushan has joined #ruby
havenn has quit [Ping timeout: 246 seconds]
Gooder has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
clocKwize has quit [Quit: clocKwize]
bhushan has quit [Remote host closed the connection]
Guedes_out is now known as Guedes
<invariant> wildcard0, can't you better make it such that it has an API such that every editor can use it?
<invariant> wildcard0, Emacs/Vim/etc.
<wildcard0> well it's designed to be shared inside a browser
clocKwize has joined #ruby
<wildcard0> it's the use case for it. i'd love to be able to change to vim/emacs bindings on it. but it's not a priority right now
adambeynon has joined #ruby
reinaldob has quit [Remote host closed the connection]
zodiak has joined #ruby
robotmay_ has joined #ruby
kjellski has quit [Quit: Leaving]
cha1tanya has joined #ruby
tatsuya_o has joined #ruby
robotmay has quit [Ping timeout: 276 seconds]
emergion has joined #ruby
Marius has joined #ruby
<Hanmac_> "EmacsOS - now with text editor"
grzywacz has quit [Remote host closed the connection]
pcarrier has joined #ruby
bhushan has joined #ruby
codezombie is now known as codezombie|away
az7ar has quit [Read error: Connection reset by peer]
<shevy> Hanmac_ lol
<shevy> "EmacsOS - now lisp free"
robotmay_ has quit [Ping timeout: 255 seconds]
<wildcard0> LISPOS - now emacs free?
Proshot has quit [Quit: Leaving]
nmabry has quit [Quit: nmabry]
pcarrier has quit [Ping timeout: 256 seconds]
buibex has joined #ruby
pcarrier has joined #ruby
mikecmpbll has joined #ruby
samuel02 has quit [Remote host closed the connection]
robotmay has joined #ruby
vlad_starkov has joined #ruby
fermion has joined #ruby
RagingDave has quit [Quit: Ex-Chat]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
rdark has quit [Ping timeout: 245 seconds]
reinaldob has joined #ruby
elico has joined #ruby
blaxter has quit [Ping timeout: 246 seconds]
rdark has joined #ruby
thisirs has joined #ruby
fyolnish has joined #ruby
_dr has joined #ruby
<_dr> hi, is there some sort of interface that allows me to call functions from C, C++, java, etc in ruby?
<_dr> i've been looking at SWIG, but that only connects to c and cpp
aaronmacy has quit [Quit: Leaving.]
<hoelzro> that's a pretty complicated problem
<hoelzro> interfacing between Java and Ruby itself is hard
<Hanmac_> _dr, with FFI you can call C- Frunctions in ruby, swig is for dynamic creation of extendions, what i do not recomend, java functions can be only called from jruby
stonevil has joined #ruby
<lupine> Gah. Set#delete and Array#delete are not compatible
<_dr> Hanmac_: okay thanks
pyro111 has quit [Ping timeout: 252 seconds]
<lupine> why would you do that?
<_dr> hoelzro: yeah, i thought so... i just thought since swig provides the possibility to call C/C++ from a whole lot of languages there may be some interface from ruby to a whole lot of languages :)
pyro111 has joined #ruby
krz has quit [Quit: krz]
<hoelzro> _dr: most languages have a way of interfacing with C
<hoelzro> SWIG just abstracts that away
<hoelzro> in some cases, poorly
<Hanmac_> (in general cases pooply)
haxrbyte_ has joined #ruby
osaut has quit [Quit: osaut]
nari has quit [Ping timeout: 245 seconds]
odyssey4me has joined #ruby
haxrbyte has quit [Ping timeout: 255 seconds]
alejandro_ has joined #ruby
Shrink has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
<Hanmac_> _dr i recommend not to use swig ... selfmade has often an higher quality than swiggenerated ...
slainer68 has quit [Remote host closed the connection]
_alejandro has quit [Ping timeout: 248 seconds]
lkba has quit [Ping timeout: 246 seconds]
tcurdt has joined #ruby
<_dr> Hanmac_: okay
rpminihan has quit [Ping timeout: 248 seconds]
fyolnish has quit [Ping timeout: 260 seconds]
blaxter has joined #ruby
Michael_ has quit [Remote host closed the connection]
Michael_ has joined #ruby
mklappstuhl has joined #ruby
<mklappstuhl> Hey
reppard has joined #ruby
baphled has quit [Ping timeout: 240 seconds]
<mklappstuhl> Running rake I keep getting an "invalid multibyte escape" without the actual escape
Michael_ has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
baphled has joined #ruby
chendo_ has joined #ruby
Michael_ has joined #ruby
Xeago has joined #ruby
Gajanan has joined #ruby
yfeldblum has joined #ruby
<charliesome> has anyone used net/imap before?
Proshot has joined #ruby
Targen has quit [Ping timeout: 248 seconds]
bhushan has quit [Read error: Connection reset by peer]
bhushan_ has joined #ruby
Shrink has joined #ruby
razibog has joined #ruby
subbyyy has joined #ruby
elico has quit [Read error: Connection reset by peer]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
elico has joined #ruby
tcurdt has quit [Quit: Computer has gone to sleep.]
ViPi has quit [Read error: Connection reset by peer]
clocKwize has quit [Quit: clocKwize]
razibog2 has quit [Ping timeout: 276 seconds]
reppard has quit [Ping timeout: 255 seconds]
clocKwize has joined #ruby
ViPi has joined #ruby
baphled has quit [Ping timeout: 252 seconds]
nwertman has quit [Read error: Connection reset by peer]
nwertman has joined #ruby
u- has joined #ruby
tatsuya_o has quit []
tcurdt has joined #ruby
tcurdt has quit [Client Quit]
atno has quit [Read error: No route to host]
atno has joined #ruby
huoxito has joined #ruby
radic has quit [Ping timeout: 256 seconds]
elico has quit [Remote host closed the connection]
radic has joined #ruby
elico has joined #ruby
Mon_Ouie has joined #ruby
chussenot has joined #ruby
nathancahill has joined #ruby
Gajanan has quit [Read error: Connection reset by peer]
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
shorts has quit [Quit: shorts]
Gajanan has joined #ruby
elico has quit [Quit: elico]
reppard has joined #ruby
znake has joined #ruby
kil0byte has joined #ruby
_dr has left #ruby [#ruby]
Mo0O has joined #ruby
DrShoggoth has quit [Quit: Leaving]
osaut has joined #ruby
hybris` has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
hybris` is now known as hybris
znake has quit [Client Quit]
slainer68 has joined #ruby
Pip has joined #ruby
<Mo0O> hello, I have install the pg gem using gem command, when I run : gem list --local | grep pg
haxrbyte_ has quit [Remote host closed the connection]
<Mo0O> it return me : pg (0.14.1)
nomenkun has quit [Ping timeout: 245 seconds]
<Mo0O> but when I run : bundle install
<Mo0O> to install a bundle ;)
<Mo0O> it return me the following error :
<Mo0O> An error occurred while installing pg (0.14.1), and Bundler cannot continue.
<Mo0O> Make sure that `gem install pg -v '0.14.1'` succeeds before bundling.
mafolz has quit [Ping timeout: 255 seconds]
<Mo0O> is there a way to handle that ?
borzoni has joined #ruby
S1kx has quit [Ping timeout: 255 seconds]
reppard has quit [Ping timeout: 255 seconds]
dhruvasagar has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
Gajanan has left #ruby [#ruby]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
mafolz has joined #ruby
mitchwd has joined #ruby
borzoni has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
bhushan_ has quit [Ping timeout: 246 seconds]
borzoni has joined #ruby
Marius has quit [Remote host closed the connection]
danieldocki has joined #ruby
mitchwd has left #ruby [#ruby]
<Xeago> I never knew
<Xeago> osx has an irbrc that autoloads rubygems
xemu has joined #ruby
* lupine wonders if def initialize(modules) ; modules.each {|m| extend m } ; end is always a bad idea
x0F has quit [Read error: Connection reset by peer]
x0F has joined #ruby
taoru has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
francisfish has joined #ruby
hamed_r has quit [Ping timeout: 264 seconds]
kil0byte_ has joined #ruby
subbyyy has quit [Ping timeout: 260 seconds]
nari has joined #ruby
nomenkun has joined #ruby
<Hanmac_> lupine: o dont think its bad ... i have seen more worse stuff ... (i also programmed more worse stuff :D)
fjfish has quit [Ping timeout: 245 seconds]
kil0byte has quit [Ping timeout: 260 seconds]
hamed_r has joined #ruby
Spooner has joined #ruby
<Hanmac_> lupine what kind of modules did you extend like that?
RonenCole has joined #ruby
buibex has quit [Remote host closed the connection]
nomenkun_ has joined #ruby
blaxter has quit [Quit: foo]
nomenkun_ has quit [Read error: Connection reset by peer]
ryanh has quit [Quit: Computer has gone to sleep.]
grzywacz has joined #ruby
kil0byte has joined #ruby
nomenkun_ has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
rippa has joined #ruby
amaya_the has joined #ruby
<amaya_the> :(
<RonenCole> Howdy folks. Having an issue with ruby throwing "ruby: No such file or directory -- п (LoadError)" every 24 hours unless reinstalled. not sure what's breaking at the exact same time every day to cause it. cPanel based system with ruby manually installed as cPanel hasn't pushed the patched version yet. Where would be the best place to start looking?
elico has joined #ruby
kil0byte_ has quit [Ping timeout: 276 seconds]
mercwithamouth has quit [Ping timeout: 252 seconds]
cha1tanya has quit [Quit: Leaving]
dustint has joined #ruby
banisterfiend has quit [Ping timeout: 264 seconds]
dustint has quit [Remote host closed the connection]
<Hanmac_> RonenCole it looks like an encoding problem, what is your ruby version?
slainer68 has quit [Remote host closed the connection]
a_a_g has quit [Quit: Leaving.]
<RonenCole> Hanmac_ 1.9.3.p362
matchaw_ has quit [Read error: Connection reset by peer]
wf2f has quit []
<Hanmac_> RonenCole: do you use rails or some kind of activerecord system?
rippa has quit [Ping timeout: 260 seconds]
_axx has left #ruby [#ruby]
iamjarvo has joined #ruby
<Hanmac_> RonenCole did the error also happen with older ruby versions? like 1.9.3p327?
<RonenCole> it didn't
<RonenCole> install the latest, runs fine, then at 1am it starts throwing that error
browndawg has quit [Quit: Leaving.]
<Hanmac_> hm it may 1. an enmcoding error, or 2. yet another error for p362 :/
matchaw has joined #ruby
rippa has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
<Hanmac_> http://lmgtfy.com/?q=ruby+1.9.3p362+rails << this shows you that p362 should not work well with rails
<lupine> Hanmac, the idea is that I've got a library that wants to support several different versions of an external process
<hyperboreean> hey guys, shouldn't rvm update the load path whenever I do rvm use <mygemset> ?
<RonenCole> well, that's fantastic =/
<lupine> implementation of features may change, new features may appear, and old features may be removed
chussenot has quit [Quit: chussenot]
stopbit has quit [Quit: Leaving]
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
Criztian has joined #ruby
chussenot has joined #ruby
<kapowaz> LOOKING FOR person who knows rake-pipeline to assist with an issue compiling assets (SASS/CSS). Please ping me if you can assist!
rippa has quit [Ping timeout: 260 seconds]
slainer68 has joined #ruby
<Hanmac_> lupine like Database.new(Database::Mysql) ?
rippa has joined #ruby
niklasb has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
_nitti has joined #ruby
jds_ has joined #ruby
Bonaparte has left #ruby ["Leaving"]
spinagon has joined #ruby
rippa has quit [Ping timeout: 260 seconds]
banisterfiend has joined #ruby
_nitti has quit [Remote host closed the connection]
filipe has quit [Remote host closed the connection]
slainer68 has quit [Remote host closed the connection]
filipe has joined #ruby
mark_locklear has joined #ruby
spinagon has quit [Ping timeout: 260 seconds]
slainer68 has joined #ruby
postmodern has quit [Quit: Leaving]
reuven has quit [Ping timeout: 260 seconds]
willob has joined #ruby
samuel02 has joined #ruby
odyssey4me has quit []
ttt has quit [Remote host closed the connection]
<Hanmac_> RonenCole: .. do you mean have files in russian chars?
krz has joined #ruby
<RonenCole> Hanmac_ nope. the encoding changes every time i run ruby, sometimes it doesn't even show funky characters, just LoadError.
<kapowaz> re: earlier questions with rake-pipeline — here is my Assetfile and a description of the problem: https://gist.github.com/761384bc120435ef2c6b
<Hanmac_> oO RonenCole, i think you need to infestigate which part of problem does make this problems with encoding ... (or maybe its an 362 bug)
<RonenCole> gonna deploy trunk and see if the issue happens again tomorrow, maybe it's been patched already
<Fuzai> Someone yesterday I thought showed me something like var_dump in perl called pp. Today when I try it in irb I get undefined method. Could someone explain to me whats going on please?
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
hbpoison has joined #ruby
sailias has joined #ruby
<Hanmac_> Fuzai: pp is the sister of p but its not in core ruby, but in stdlib ... you need to call require "pp"
<Fuzai> ohhhh
elico has quit [Quit: elico]
invisime has joined #ruby
osaut has quit [Quit: osaut]
jds_ has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 252 seconds]
hbpoison has joined #ruby
invisime has left #ruby [#ruby]
S1kx has quit [Quit: Leaving]
mmitchell has joined #ruby
dankest has joined #ruby
rippa has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
<Fuzai> is there a way to color stdout text output?
<hoelzro> Fuzai: there's probably a fancy library (like HighLine?), but you could also just use ANSI terminal codes
Bry8Star has quit [Ping timeout: 276 seconds]
<Fuzai> ok
<hoelzro> puts "\e[31mHello, World\e[0m"
rippa has quit [Read error: Connection reset by peer]
spinagon has joined #ruby
<Fuzai> theres something i haven't seen in 10 years
<Xeago> Fuzai: you could also configure your shell to always print stdout in red
<Fuzai> i'm trying to get it to stand out against the grey
<Fuzai> ty
s1n4 has joined #ruby
sailias has quit [Quit: Leaving.]
lkba has joined #ruby
dustint has joined #ruby
rippa has joined #ruby
arkiver has quit [Quit: Leaving]
spinagon has quit [Ping timeout: 260 seconds]
tommyvyo has joined #ruby
samphippen has joined #ruby
cjs226 has quit []
BizarreCake has joined #ruby
skaczor has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 260 seconds]
jfl0wers has joined #ruby
arturaz has quit [Remote host closed the connection]
_alejandro has joined #ruby
arturaz has joined #ruby
hamed_r has quit [Quit: Leaving]
<s1n4> hey, how do I print texts on an external frame?
<s1n4> I mean something like the less/more program
<arturaz> external frame?
<s1n4> yeah
<arturaz> what is that?
nomenkun_ has quit [Read error: No route to host]
alejandro_ has quit [Ping timeout: 245 seconds]
nomenkun has joined #ruby
buibex has joined #ruby
<s1n4> I mean someting like piping the output to the less program
<arturaz> just print to $stdout?
jeffreybaird has joined #ruby
<arturaz> that's how unix pipes work
<arturaz> stdin/stdout
<s1n4> dude, I said something like the less program
haxrbyte has joined #ruby
<Hanmac_> s1n4: ruby file.rb | less
<arturaz> dude, you have to be more specific.
skaczor has joined #ruby
<s1n4> Hanmac_: not bad idea, but not great at all
jtharris has joined #ruby
<s1n4> try $ bundle help
<s1n4> I want my program to act like it ^
<hoelzro> s1n4: you want to emulate less?
<arturaz> s1n4, bundle help actually invokes less
<s1n4> yeah
<arturaz> you could open less with popen and print to it
<s1n4> arturaz: I'm gonna check bundler code
<s1n4> arturaz: thanks, good idea
freeayu has joined #ruby
haxrbyte_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
baphled has joined #ruby
hemanth_ has joined #ruby
<arturaz> No problems. Just try explaining your problem better next time ;)
<Hanmac_> IO.popen("less","w") {|io| io.write("This is Text") }
osaut has joined #ruby
<s1n4> arturaz: sure, but this time I was just a little confused :)
<s1n4> Hanmac_: thanks :)
elico has joined #ruby
haxrbyte has quit [Ping timeout: 246 seconds]
reuven has joined #ruby
sayan_ has joined #ruby
jds_ has joined #ruby
cr3 has joined #ruby
kil0byte_ has joined #ruby
nomenkun has quit [Remote host closed the connection]
willob has quit [Quit: Leaving.]
kil0byte has quit [Ping timeout: 260 seconds]
sayan has quit [Ping timeout: 245 seconds]
nimred has quit [Quit: leaving]
moos3 has joined #ruby
jds_ has quit [Remote host closed the connection]
jds_ has joined #ruby
wchun has quit [Ping timeout: 260 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
hbpoison has joined #ruby
christor has joined #ruby
katherinem13 has joined #ruby
mmitchell has quit [Remote host closed the connection]
<cr3> if I run "HOME= irb" and then "ENV['HOME'] = File.expand_path('~')", I get: ArgumentError: non-absolute home
<christor> Hi , I m getting some problem to install pdf-extract ( make: *** [libsvm_wrap.o] Error 1) , any ideas?
ffranz has joined #ruby
slainer68 has quit [Remote host closed the connection]
buscon has quit [Quit: Leaving]
dankest has quit [Quit: Leaving...]
tatsuya_o has joined #ruby
<Hanmac_> cr3: if i say: goto PLACE A but i dont say where PLACE A is, how do you can goto them?
<cr3> Hanmac_: that's not true, "~user" works just fine, it's just that ruby takes a shortcut with "~" and goes to HOME instead of looking up the current user
<Spooner> cr3, Well, not sure why you'd want to say that "irb" was your home in the first place. Or why you'd set it externally to one thing then set it to something else inside your script.
<cr3> Spooner: there's a space between the equal sign and irb, meaning I'm just unsetting the HOME environment variable for the duration of the irb session
RonenCole has left #ruby [#ruby]
<Spooner> Oh, I see. Sorry.
<cr3> Hanmac_: in other words, ruby treats ~ differently from ~user, maybe for performance reasons
hbpoison has quit [Ping timeout: 255 seconds]
<Hanmac_> cr3 yeah, do you have a problem with that?
<Spooner> But still, I don't understand why you need to avoid HOME so much.
osaut has quit [Read error: Connection reset by peer]
osaut has joined #ruby
hbpoison has joined #ruby
mantas322 has joined #ruby
<mantas322> Hello!
<cr3> Spooner: daemons like puppet and others that I've seen like to clear the environment
neurotech has quit [Remote host closed the connection]
<grzywacz> Because HOME can be set to something different than user's real home directory.
<cr3> grzywacz raises another good reason
<mantas322> im new to ruby development, and im going to have to convert a c# program to a ruby website.
dhruvasagar has joined #ruby
<mantas322> is there some sort of IDE or engine i need to download in order to start a hello world ruby in windows?
<mantas322> or is it not recommended that I do ruby on windows at all
<mantas322> ?
<Spooner> Yes, but it is set to something else, shouldn't ~ reasonably fail, since that is what HOME represents?
<Spooner> mantas322, Nothing wrong with Ruby on Windows.
<mantas322> good.
joofsh has joined #ruby
jerius has joined #ruby
<Spooner> You want to download the Ruby installer for 1.9.3 and install the devkit: http://rubyinstaller.org/downloads/
<mantas322> tyty
v0n has joined #ruby
<Hanmac_> mantas322: please pick http://rubyinstaller.org/downloads/archives << 1.9.3p327 and not 1.9.3p362 ... 362 is a bit broken ...
<Spooner> Depending on the website you want to create, you will then need to look at the Rails or Sinatra gems or...well, something else ;)
nomenkun has joined #ruby
<cr3> Spooner: maybe that's how ~ should be handled, I'll see what can be done in a daemon context which probably shouldn't try to make assumptions about a user in the first place
<Hanmac_> mantas322 specialy when you want to use rails
enroxorz-work has joined #ruby
<mantas322> oh my coworkers have already begun on the website, and they are using tuby on rails
<mantas322> im only doing specific statistical analysis
Skylab has joined #ruby
<Spooner> Tubby on Rails ;)
<mantas322> another question... is there any warnings I need to know about floating data types within ruby
<Hanmac_> mantas322 can you tell them that they need to be careull with p362?
<mantas322> are their limits to a float or double equivelant
<Spooner> They are always doubles if that matters.
nomenkun has quit [Read error: Connection reset by peer]
<mantas322> will do
nomenkun has joined #ruby
buibex has quit []
<Hanmac_> mantas322 if you want more accurate float numbers (like for currency) checkout Rational and BigDecimal
<Spooner> Hanmac, They are probably using 1.8.7 - newbies love deprecated versions :D
breakingthings has joined #ruby
<mantas322> now in .net i've run into "zeroing out" explosions for example if you add "2.568" to "-2.568" instead of zero you get an explosion and you get some 8.8 quadrillion number cause of http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html
<mantas322> is this something I need to watch out for in ruby?
borzoni has quit [Remote host closed the connection]
<mantas322> oh their not noobies
<mantas322> im sure they are using appropriate versions
<Spooner> mantas322, Start up irb/pry (interactive shells) and find out ;)
<mantas322> I will I will. :D
<hoelzro> so one of my 2013 goals is to write more Ruby; I'm pretty used to doing things with Perl, so I was hoping to get some insights from the channel to see how I can get more comfortable writing Ruby
* mantas322 excited
<Spooner> Not aware of that though.
<mantas322> I'll find out and come complain about it here.
<mantas322> :)
<hoelzro> the main thing (so far) is viewing documentation; when I want to use a new Perl module, I open its page on CPAN, and read all of the examples and API; I haven't found the equivalent for Ruby yet
<hoelzro> also, when I'm working with a module, I occasionally have a split window in Vim with the module's documentation on top and my code on the bottom
<hoelzro> can anyone offer advice on how I can achieve a similar setup with Ruby?
dr_neek has quit [Quit: dr_neek]
Guest25886 has joined #ruby
<Spooner> hoelzro, Plenty of docs. You can use pry to look up docs in the REPL yardoc.org has docs for most if not all gems.
<hoelzro> Spooner: well, I tried looking at the docs for HighLine on yardoc
<hoelzro> and I was hard-pressed to find examples of how the library is actually *used*
zph has joined #ruby
<Spooner> That is a problem with the creator of the docs, not Ruby...
ezkl has quit [Quit: Textual IRC Client: www.textualapp.com]
<hoelzro> that's what I figured, but I wasn't sure if that was yardoc's fault or not
christor has left #ruby [#ruby]
<Spooner> It shows all the docs included in the gem. Nothing more.
<hoelzro> bummer
<hoelzro> I mean, that's not yardoc's fault
<hoelzro> it would be nice for HighLine to include examples is all
willob has joined #ruby
<Spooner> http://highline.rubyforge.org/doc/ some examples there.
<Hanmac_> mantas322 this is in ruby too: 0.1 + 0.2 == 0.3 #=> false
<cr3> is there a more efficient way to check if a variable is nil or empty instead of var.nil? or var.empty?
<hoelzro> see, that's better!
<hoelzro> wtf does the documentation link on rubygems link to yardoc?
<Spooner> hoelzro, Sometimes a gem will include an examples directory with more full examples.
sayan_ has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 245 seconds]
<mantas322> what the H is #=>
<mantas322> lol dont tell me
<mantas322> i need to learn this cryptic language
<Hanmac_> its the result
<mantas322> i come from a heavy .net / java background
hbpoison has joined #ruby
<mantas322> :P
<mantas322> :P
<Hanmac_> cr3 not without defining extra functions ... because nil and empty are totaly different things and only rails treat them equal
baphled has quit [Ping timeout: 264 seconds]
<cr3> Hanmac_: they are different, but I wouldn't mind if they were treated the same in a boolean context
<banisterfiend> Hanmac_: hello
<Spooner> cr3 They are very different and I'm glad they aren't considered the same except by PHP programmers ;D
baphled has joined #ruby
<hoelzro> so what's the recommended Vim plugin for viewing Ruby module docs from within Vim?
nomenkun has quit [Ping timeout: 245 seconds]
<Spooner> hoelzro, Seriously, I'd just use pry for docs - you need a REPL open anyway when you are coding.
<Pip> hoelzro, vim-rails
<banisterfiend> hoelzro: and with pry you can pull source too, in case the docs aren't enough
<Spooner> banisterfiend, But where is the pry vim plugin, eh?
<hoelzro> I usually just work within Vim
alejandro_ has joined #ruby
hynkle has joined #ruby
nomenkun has joined #ruby
<Hanmac_> cr3 in ruby each of them [],{},0,0.0,"" are treated as true in an if ... we are not php where you need to add an char to a string before comareation so php does not treat unequal strings equal
ttt has joined #ruby
adkron has quit [Ping timeout: 245 seconds]
<mantas322> :D... I just did hello world
<mantas322> too pro.
dukedave has joined #ruby
nwertman has quit [Read error: Connection reset by peer]
<mantas322> any windows users have a recommended IDE for writtting this stuff?
<cr3> Hanmac_: I don't know of any other language that treats 0 as true in an if context, do you?
<Spooner> mantas322, I use Rubymine on Windows and Linux, but it isn't free.
<mantas322> im just going to use eclipse for now
<Spooner> If you are used to it, I'm sure it is fine.
segv- has joined #ruby
_alejandro has quit [Ping timeout: 260 seconds]
<mantas322> Xeago, im on a webclient
<Xeago> I figured :)
<Xeago> still reveals your os tho
<mantas322> stop hacking me
yshh has quit [Remote host closed the connection]
<Xeago> CTCP's are not hacking..
<banisterfiend> mantas322: dont be an idiot, that information is publicly visible
<Spooner> That reminds me, I need to try out Aptana IDE again.
<Xeago> they are useful to find out information about you that might aid with helping
tvw has joined #ruby
Hanmac_ has quit [Ping timeout: 245 seconds]
ttt has quit [Ping timeout: 245 seconds]
sailias has joined #ruby
jpfuentes2 has joined #ruby
PragCypher has joined #ruby
browndawg has joined #ruby
Morkel has quit [Quit: Morkel]
<banisterfiend> hoelzro: anyway there are some kick-ass pry plugins for emacs, and i think there's some cool stuff for vim too
<banisterfiend> hoelzro: let me find you a link
iamjarvo has quit [Quit: Leaving.]
<hoelzro> ok
nwertman has joined #ruby
<hoelzro> but at the moment I just want to be able to view docs from within Vim...
d2dchat has joined #ruby
graspee_ has joined #ruby
hynkle has quit [Quit: hynkle]
dankest has joined #ruby
tomzx has joined #ruby
stonevil has quit [Quit: stonevil]
<mantas322> I dont have to declare datatypes
nga4 has joined #ruby
<mantas322> like in js?
tatsuya__ has joined #ruby
<banisterfiend> mantas322: buy a book, srsly
<mantas322> ok ok
<banisterfiend> mantas322: when you're asking that level of question, you really need to go somewhere else before you ask for help on irc :)
<mantas322> agreed.
<Spooner> mantas322, http://pine.fm/LearnToProgram/?Chapter=00 (kind of basic, but you can skim it quickly).
Fuzai has quit [Remote host closed the connection]
<Spooner> Play around in irb! Buy a book. Google ;) Then ask #ruby
nomenkun has quit [Read error: Connection reset by peer]
tatsuya_o has quit [Ping timeout: 248 seconds]
nomenkun_ has joined #ruby
arturaz has quit [Ping timeout: 245 seconds]
jeffreybaird has joined #ruby
interactionjaxsn has joined #ruby
jrist-afk is now known as jrist
Morkel has joined #ruby
philcrissman has joined #ruby
chridal has joined #ruby
stevechiagozie has joined #ruby
joofsh has quit [Remote host closed the connection]
cjs226 has joined #ruby
Fuzai has joined #ruby
osaut has quit [Quit: osaut]
Uranio has joined #ruby
joofsh has joined #ruby
Elhu has quit [Ping timeout: 245 seconds]
<invariant> Pry is likely better.
<Spooner> It is, but on day one, worrying about pry is probably a bit ahead.
blaxter has joined #ruby
Elhu has joined #ruby
slainer68 has joined #ruby
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
hybris has quit [Ping timeout: 245 seconds]
hybris has joined #ruby
dr_neek has joined #ruby
Cicloid has joined #ruby
stopbit has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
jpfuentes2 has joined #ruby
Morkel has quit [Quit: Morkel]
gyre007 has quit [Remote host closed the connection]
dmiller has joined #ruby
etcetera has joined #ruby
Morkel has joined #ruby
etcetera has quit [Client Quit]
mmitchell has joined #ruby
nkr has quit [Quit: Linkinus - http://linkinus.com]
krawchyk has joined #ruby
AlSquirrel has joined #ruby
hybris has quit [Quit: Leaving]
r0bby has joined #ruby
osaut has joined #ruby
etcetera has joined #ruby
roadt has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
krawchyk has quit [Remote host closed the connection]
gyre007 has joined #ruby
robbyoconnor has quit [Ping timeout: 255 seconds]
AlSquire has quit [Ping timeout: 252 seconds]
bean__ has joined #ruby
jlast has joined #ruby
AlSquirrel is now known as AlSquire
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
x82_nicole has joined #ruby
generali_ has joined #ruby
lateau has joined #ruby
tekacs has quit [Ping timeout: 256 seconds]
JonnieCache has joined #ruby
tommyvyo[cloud]_ has quit [Ping timeout: 256 seconds]
adamjleonard has joined #ruby
krawchyk has joined #ruby
dr_neek has quit [Quit: dr_neek]
parus has quit [Remote host closed the connection]
clocKwize has quit [Quit: clocKwize]
Morkel has quit [Quit: Morkel]
krawchyk has quit [Remote host closed the connection]
kapowaz has quit [Ping timeout: 256 seconds]
reuven has quit [Ping timeout: 276 seconds]
krawchyk has joined #ruby
Morkel has joined #ruby
joofsh has quit [Remote host closed the connection]
asteve has joined #ruby
headius has joined #ruby
Morkel has quit [Client Quit]
Morkel has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
obryan has joined #ruby
dankest has quit [Quit: Linkinus - http://linkinus.com]
tekacs has joined #ruby
Morkel has quit [Client Quit]
evanx_ has joined #ruby
evanx has quit [Ping timeout: 276 seconds]
evanx_ is now known as evanx
Composer has joined #ruby
nateberkopec has joined #ruby
jonahR has joined #ruby
Cicloid has quit [Remote host closed the connection]
alejandro_ has quit [Remote host closed the connection]
tommyvyo has joined #ruby
__BigO__ has joined #ruby
roadt has joined #ruby
Guest25886 has quit [Quit: Guest25886]
roadt has quit [Max SendQ exceeded]
Liothen has quit [Remote host closed the connection]
roadt has joined #ruby
thatguycraig has joined #ruby
razibog has quit [Ping timeout: 264 seconds]
thatguycraig has quit [Max SendQ exceeded]
thatguycraig has joined #ruby
kapowaz has joined #ruby
flip_digits has joined #ruby
iamjarvo has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
xAndy is now known as xandy
theRoUS_ has joined #ruby
cableray has joined #ruby
stonevil has joined #ruby
mikecmpbll has joined #ruby
dr_neek has joined #ruby
dr_neek has quit [Client Quit]
<Spaceghost|cloud> invariant: Use whatever you want. The point is use a REPL.
zastern has joined #ruby
alex__c2022 has joined #ruby
dr_neek has joined #ruby
cableray has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 245 seconds]
haxrbyte has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
dr_neek has quit [Client Quit]
krz has quit [Quit: krz]
beliveyourdream has quit [Read error: Connection reset by peer]
tagrudev has quit [Read error: Connection reset by peer]
krz has joined #ruby
zommi has quit [Quit: Leaving.]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
volk_ has joined #ruby
jaequery has joined #ruby
nari has joined #ruby
AlbireoX has joined #ruby
jaequery has quit [Max SendQ exceeded]
Virunga has joined #ruby
hybris has joined #ruby
jaequery has joined #ruby
jjbohn has joined #ruby
kil0byte has joined #ruby
philips_ has quit [Excess Flood]
yshh has joined #ruby
kil0byte_ has quit [Ping timeout: 276 seconds]
kil0byte_ has joined #ruby
yshh has quit [Ping timeout: 245 seconds]
DatumDrop has joined #ruby
s1n4 has quit [Quit: leaving]
Astralum has quit [Ping timeout: 252 seconds]
tommyvyo has joined #ruby
forest has joined #ruby
speakingcode has joined #ruby
freeayu has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 252 seconds]
<unstable> https://gist.github.com/4539615 ... I don't understand how to comply with the recursive requirements in an rspec. How is my method supposed to be executed to be run recursively?
Astralum has joined #ruby
vlad_starkov has joined #ruby
h4mz1d has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
grzywacz_ has joined #ruby
arin85 has joined #ruby
<volk_> unstable: what is your exact problem? you're just testing output, thats it
stonevil has quit [Quit: stonevil]
<arin85> Let's share our exps..................
mjolk has joined #ruby
mikecmpbll has quit [Quit: Computer has gone to sleep.]
uris has joined #ruby
arya has joined #ruby
binaryplease has joined #ruby
mikeg has joined #ruby
Morkel has joined #ruby
arin85 has left #ruby [#ruby]
reuven has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
grzywacz_ has quit [Quit: :wq]
Neomex has joined #ruby
Neomex has quit [Client Quit]
<Xeago> Well, my phone has awesome batteru
jds_ has quit [Remote host closed the connection]
<Xeago> been sitting on 18% since last night without a charge
vlad_starkov has joined #ruby
<matti> Xeago: Or, it lies very well ;]
<mantas322> that just means your not an NSA person of interest
dr_neek has joined #ruby
joofsh has joined #ruby
<mantas322> I finished my first ruby application btw!!!! it does this! http://www.rasch.org/rmt/rmt83g.htm
dr_neek has quit [Client Quit]
jds_ has joined #ruby
<mantas322> pretty easy to pick up on the syntax, i must say
<mantas322> unlike sparql
graspee_ has quit [Quit: Lost terminal]
zigomir has quit [Read error: Connection reset by peer]
binaryplease has quit [Quit: WeeChat 0.3.9.2]
joshman_ has joined #ruby
philips_ has joined #ruby
jprovazn is now known as jprovazn_away
Morkel has quit [Quit: Morkel]
havenn has joined #ruby
Morkel has joined #ruby
Astral_ has joined #ruby
Astralum has quit [Ping timeout: 248 seconds]
jprovazn_away has quit [Quit: Leaving]
nari has quit [Ping timeout: 246 seconds]
aganov has quit [Remote host closed the connection]
eldariof-office has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Quit: Leaving.]
<Spooner> mantas322, There is a lot of additional magic that is maths useful you can do in Ruby once you get the hang of it, like [1, 2, 3].reduce :+ #=> 6
cr3 has quit [Quit: leaving]
iamjarvo has joined #ruby
<Spooner> mantas322, If you pastie your code (e.g. at gist.github.com) I can probably simplify it for you or give pointers. Though maybe not that useful on day one learning :D
<mantas322> no its simple enough
<Spooner> It is Ruby; it can always be simpler :P
<mantas322> several nested loops
<mantas322> yeah but that makes it more complicated to read
<mantas322> for non ruby confidant people
<Spooner> No, simpler doesn't mean harder to read. I'm not writing Perl.
<mantas322> my one complaint is that I cant concat to "puts" outputs with +
<mantas322> and have to use "#(value)"
<Spooner> But yes, if you are writing Ruby in C# style, it will be a lot longer and harder to follow compared to pure Ruby.
<mantas322> I'm doing alot of math.pow's math.logs, and **
<Spooner> mantas322, You can do that, but it is usual to generate strings using interpolation #{}
<mantas322> and iterating over a matrix of stuff
<mantas322> im happy with my first program :)
<Xeago> mantas322: puts "a" + "b" ?
<Xeago> what is the problem?
Morkel has quit [Quit: Morkel]
<mantas322> cant puts "a" + number
a_a_g has joined #ruby
Astralum has joined #ruby
<mantas322> unless I do .to_s
<Spooner> mantas322, No, you'd have to do "a" + number.to_s - #{} has implicit to_s
<mantas322> right
Morkel has joined #ruby
<Xeago> I actually hate C#'s auto toString()
<Spooner> I admit that I'm not entirely sure why String#+ doesn't perform #to_s though.
tps_ has joined #ruby
h4mz1d has quit [Ping timeout: 260 seconds]
Astral_ has quit [Ping timeout: 246 seconds]
<Spooner> I very rarely use anything but interpolation.
woolite64_ is now known as woolite64
bitcrave has quit [Ping timeout: 248 seconds]
Apocalypse has quit [Read error: Connection reset by peer]
crank1 has joined #ruby
<Spooner> Or sprintf if I want certain types of number formatting.
ner0x has joined #ruby
<mantas322> also im not too sure when to end line with ;
<Spooner> mantas322, Never
<mantas322> sometimes i forget and it doesnt seem to care
<mantas322> never? so its like VB?
<Spooner> They are completely ignored.
<mantas322> Oh.
<Spooner> Well, not completely. You can have two statements on one line with them, but I never do.
kil0byte_ has quit [Remote host closed the connection]
graft has joined #ruby
hbpoison has joined #ruby
<Spooner> Does mean that you need to wrap sensibly. "x = y +\n2" works as though one line, but "x = y\n+ 2" doesn't wrap.
sepp2k has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
bricker has quit [Ping timeout: 240 seconds]
a_a_g has joined #ruby
crank1 has quit [Quit: Leaving.]
amaya_the has quit [Quit: ChatZilla 0.9.89 [Firefox 18.0/20130104151925]]
dhruvasagar has quit [Ping timeout: 276 seconds]
Umren has joined #ruby
crank1 has joined #ruby
graft has quit [Client Quit]
syamajala has joined #ruby
etcetera has quit []
r0bby is now known as robbyoconnor
mikeg has quit [Quit: Leaving]
joeycarmello has quit [Read error: Connection reset by peer]
joeycarmello has joined #ruby
madwilliamflint has joined #ruby
PragCypher has quit [Remote host closed the connection]
cakehero has joined #ruby
hackerdude has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
arya has quit [Ping timeout: 245 seconds]
a_a_g has joined #ruby
maxmanders has quit [Ping timeout: 252 seconds]
reuven has quit [Ping timeout: 255 seconds]
mikecmpbll has joined #ruby
carloslopes has joined #ruby
zigomir has joined #ruby
ben___ has joined #ruby
joeycarmello has quit [Ping timeout: 255 seconds]
baroquebobcat has joined #ruby
hbpoison has quit [Ping timeout: 264 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
cb0ss has joined #ruby
maxmanders has joined #ruby
syamajala has quit [Remote host closed the connection]
hoelzro is now known as hoelzro|away
arya has joined #ruby
stonevil has joined #ruby
Asym has joined #ruby
F1skr has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
i_s has joined #ruby
Asym has quit [Client Quit]
timonv_ has joined #ruby
cr3 has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
danneu has joined #ruby
noxoc has quit [Quit: noxoc]
syamajala has joined #ruby
blazes816 has joined #ruby
Astralum has quit [Ping timeout: 260 seconds]
geekbri has joined #ruby
bean__ is now known as bean_work
wallerdev has joined #ruby
fermion has quit [Ping timeout: 264 seconds]
arya_ has joined #ruby
Astralum has joined #ruby
arya_ has quit [Client Quit]
rakl has quit [Quit: sleeping]
zigomir has quit [Quit: zigomir]
arya has quit [Ping timeout: 255 seconds]
ViPi has quit [Quit: Computer has gone to sleep.]
dankest has joined #ruby
c0rn has joined #ruby
danieldocki has quit [Quit: Linkinus - http://linkinus.com]
arya has joined #ruby
malte_ has joined #ruby
maycon_ has quit [Read error: Connection reset by peer]
br4ndon has joined #ruby
nkr has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
c0rn has quit [Ping timeout: 248 seconds]
Drewch has quit [Excess Flood]
Drewch has joined #ruby
dr_neek has joined #ruby
br4ndon has quit [Client Quit]
dmiller has quit [Ping timeout: 252 seconds]
Astralum has quit [Ping timeout: 255 seconds]
mantas322 has quit [Quit: Page closed]
dukedave has quit [Ping timeout: 264 seconds]
c0rn has joined #ruby
arya_ has joined #ruby
haxrbyte_ has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has quit [Read error: Connection reset by peer]
Composer has quit [Remote host closed the connection]
xclite has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
rippa has joined #ruby
arya has quit [Ping timeout: 248 seconds]
Fretta has joined #ruby
apeiros|afk has quit [Remote host closed the connection]
alvaro_o has joined #ruby
ChampS666 has joined #ruby
<diegoviola> how do i access a variable that is defined in a rake task from another rake task?
<diegoviola> both task are in the same namespace, and they're calling via the cli, "rake ...'
<diegoviola> "*
a_a_g has joined #ruby
mockra has joined #ruby
inokenty has joined #ruby
jaequery has quit [Quit: Computer has gone to sleep.]
tjbiddle has joined #ruby
Pip has quit [Ping timeout: 255 seconds]
jekotia has joined #ruby
jlast_ has joined #ruby
bricker`1way has joined #ruby
jlast has quit [Ping timeout: 264 seconds]
a_a_g has quit [Read error: Connection reset by peer]
filipe has quit [Remote host closed the connection]
a_a_g has joined #ruby
dankest has quit [Quit: Linkinus - http://linkinus.com]
<Spooner> diegoviola, Unless the other task is called by the first one, then it will never actually define the variable. Can you give a pastie of the code you are talking about?
bricker`away has quit [Ping timeout: 264 seconds]
alvaro_o has quit [Remote host closed the connection]
nomenkun_ has quit [Remote host closed the connection]
baphled has quit [Ping timeout: 276 seconds]
alvaro_o has joined #ruby
wallerdev has quit [Quit: wallerdev]
tommyvyo[cloud]_ has joined #ruby
xandy is now known as xAndy
brianpWins has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
truent has joined #ruby
brianpWins has quit [Remote host closed the connection]
<diegoviola> Spooner: yeah, here: http://pastie.org/5689227
<diegoviola> Spooner: i'm trying to call @listener.stop in task :import
etcetera has joined #ruby
cobragoat has quit [Remote host closed the connection]
maxmanders has joined #ruby
tatsuya__ has quit [Read error: Connection reset by peer]
walbert has joined #ruby
tatsuya_o has joined #ruby
joeycarmello has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
pvh___ has joined #ruby
pvh___ is now known as pvh
dukedave has joined #ruby
<diegoviola> problem is if i move the content of task :listen in my rails app, the whole thing blocks and i don't want that, i'm not sure how to go on thsi
<diegoviola> this*
marr has joined #ruby
wallerdev has joined #ruby
kenneth has quit [Quit: kenneth]
daniel_- has quit [Quit: WeeChat 0.3.9.2]
alvaro_o_ has joined #ruby
kil0byte has joined #ruby
maletor has joined #ruby
rakl has joined #ruby
h4mz1d has joined #ruby
alvaro_o has quit [Ping timeout: 264 seconds]
generali_ has quit [Remote host closed the connection]
hbpoison has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
<Spooner> Well, by the time you import, you are running a new rake instance, so the @listener will not be accessible. It isn't so much that it is in another taks (unless listen and import are dependencies of another task so they get called after each other).
mklappstuhl has quit [Quit: WeeChat 0.3.7]
<diegoviola> right...
zommi has joined #ruby
<Spooner> So you need to turn the listener off and on again while importing?
arkiver has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
<diegoviola> Spooner: i'm trying to turn off the listener when it's done importing, otherwise i get lots of ruby processes
<diegoviola> after each import
arturaz has joined #ruby
n1x has joined #ruby
<diegoviola> Spooner: if i move this listener in the rails app, it blocks the rails app... this listen gem supposedly can be started with #start(false) and it won't block, but it's still blocking for some reason
<Spooner> Oh, I see. I thought you just needed to turn it off while importing, but I guess I'm not entirely sure what you are doing (because I don't use s3, not because you haven't explained it).
gyre007 has quit [Remote host closed the connection]
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
awarner has joined #ruby
RagingDave has joined #ruby
<diegoviola> is there a better way to approach this?
hybris has quit [Read error: Connection reset by peer]
jaequery has joined #ruby
hybris` has joined #ruby
hybris` has quit [Client Quit]
reuven has joined #ruby
gyre007 has joined #ruby
BadLarry has quit [Max SendQ exceeded]
<Spooner> You could try increasing the latency to make it poll less often, but if it is non-blocking even the default (0.25) should be enough not to stall you.
jonathanwallace has joined #ruby
<Spooner> (0.25s)
maxmanders has quit [Quit: Computer has gone to sleep.]
fourq has joined #ruby
BadLarry has joined #ruby
maxmanders has joined #ruby
<Spooner> diegoviola, You used a callback instead of a block when you used start(false)?
<diegoviola> i think i've used a block :x
<Spooner> I think using a block starts it, so it will never get to the start(false) if it is after the block.
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
artOfWar has joined #ruby
<Spooner> https://github.com/guard/listen "Changes callback" second example.
osaut has quit [Ping timeout: 246 seconds]
matthewrobbins has quit [Ping timeout: 252 seconds]
<Spooner> Note that if it doesn't block, then it won't work as the Rake task unless you sleep forever after it (Rake will finish and it will stop listening) ;)
<otters> is there some way to have multiple irbrcs
<diegoviola> Spooner: right
jxf has quit [Ping timeout: 248 seconds]
<diegoviola> Spooner: so if i add as a callback inside the rails app and call it with start(false), it shouldn't block in theory?
<diegoviola> Spooner: and it will run in the same rails process?
philips_ has quit [Excess Flood]
<Spooner> That is the theory, certainly.
<Spooner> It should, yes.
apeiros|afk has joined #ruby
<diegoviola> ok let's try
h4mz1d has quit [Ping timeout: 246 seconds]
jxf has joined #ruby
<Spooner> I'd try it in the rake first and put a "puts 'I didn't block'" after the #start(false)
<diegoviola> yep
<Spooner> Because I have little faith in my understanding of a gem I've never used.
* diegoviola trying that
<diegoviola> yeah
<diegoviola> same
haxrbyte has joined #ruby
perlsyntax has joined #ruby
Kuifje has joined #ruby
eldariof has joined #ruby
atno has quit [Read error: No route to host]
Apocalypse has joined #ruby
cobragoat has joined #ruby
jxf has quit [Read error: Connection reset by peer]
dmiller has joined #ruby
<diegoviola> Spooner: it doesn't block with the callback in the rake task ;)
atno has joined #ruby
<diegoviola> ty
<Spooner> Brill.
jxf has joined #ruby
jblack has joined #ruby
dougireton has joined #ruby
generalissimo has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
macmartine has joined #ruby
maxmanders has joined #ruby
<diegoviola> Spooner: yeah it's not blocking inside the rails app either, thanks a bunch
<diegoviola> ;)
dmiller has quit [Read error: Connection reset by peer]
maxmanders has quit [Client Quit]
<diegoviola> now i can pass listener to the rake task as a rake argument and just stop it in the rake task i guess?
jenrzzz has quit [Ping timeout: 255 seconds]
pcarrier has quit []
stetho_ has quit [Quit: stetho_]
<diegoviola> kinda pointless to stop it i guess, since it's not spawning any more processes, hmm
dmerrick has joined #ruby
<ruzu> is there any best-practice for rspec testing a range of input values? ie testing time inputs to a function with a couple nested (x..y).each iterations? i noticed that a failure is a bit opaque because the info rspec gives shows the block variables (as opposed to an explicit input)
c0rn has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
stonevil has quit [Quit: stonevil]
jgarvey has joined #ruby
mahmoudimus has joined #ruby
dormiens has joined #ruby
zeade has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
dormiens is now known as alanjc
twoism has joined #ruby
stonevil has joined #ruby
DrShoggoth has joined #ruby
<Spooner> Not sure what you mean, ruzu, but I often create many specs in that case, each having a label based on the data they use from the loop.
philips_ has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
philips_ has quit [Excess Flood]
reppard has joined #ruby
a_a_g has joined #ruby
thisirs has quit [Remote host closed the connection]
thisirs has joined #ruby
mneorr has joined #ruby
<ruzu> yea reading that back seemed a bit convoluted, heh... here's an example test i'm using: http://pastebin.com/aCuh44aB
PragCypher has joined #ruby
<ruzu> essentially the range of inputs is too large to manually test, but iteration is fast enough to use
buibex has joined #ruby
tenmilestereo has joined #ruby
tenmilestereo has quit [Max SendQ exceeded]
<ruzu> if match_time fails, rspec shows just the inner function call, but i don't know which values it was specifically testing. maybe i should just test a fixed set of inputs.
d2dchat has quit [Remote host closed the connection]
tenmilestereo has joined #ruby
bwwrd has joined #ruby
jblack_ has joined #ruby
shadow_fox has joined #ruby
jblack has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<Eiam> I have a data structure that is flat, but inside it has parent nodes defined. I also have a root node. I'd like to reconstruct the tree thats defined 'flatly'. I just looked at rubytree gem but that does't look like quite what I'm after
<Eiam> does what I want already exist, or do I need to write it?
reppard has quit [Ping timeout: 252 seconds]
jlast_ has quit [Remote host closed the connection]
<shadow_fox> hi , anyone knows why i am getting this when i run gem install. {~:$}gem install foreman
<shadow_fox> Fetching: foreman-0.61.0.gem (100%)
<shadow_fox> ERROR: While executing gem ... (Errno::EACCES)
<shadow_fox> Permission denied - /home/shadow/.rvm/gems/ruby-1.9.3-p362/cache/foreman-0.61.0.gem
<shadow_fox> {~:$}
<shadow_fox> i m on opensuse 12.2
philips_ has joined #ruby
volk_ has quit [Quit: volk_]
Xeago has quit [Ping timeout: 260 seconds]
icole has joined #ruby
breakingthings has quit []
jduan1981 has joined #ruby
mneorr has quit [Remote host closed the connection]
sn0wb1rd has joined #ruby
asarih has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
asarih has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
crank1 has quit [Ping timeout: 252 seconds]
a_a_g has quit [Quit: Leaving.]
dougireton has quit [Quit: Leaving.]
syamajala has quit [Remote host closed the connection]
<havenn> shadow_fox: Depending on how Ruby is installed, you may need to: sudo gem install
dougireton has joined #ruby
<shadow_fox> i installed through rvm
cdt has quit [Ping timeout: 256 seconds]
mrsolo has joined #ruby
dr_neek has left #ruby [#ruby]
<shadow_fox> havenn: i did su - gem install foreman but it said cannot find command gem
reppard has joined #ruby
<havenn> shadow_fox: have the .gem/ folder's permissions maybe been changed?
<havenn> shadow_fox: sudo chown -R `whoami` /home/`whoami`/.gem
dougireton has quit [Client Quit]
grzywacz has quit [Ping timeout: 245 seconds]
<shadow_fox> havenn: gem folder permission drwxr-xr-x
<havenn> shadow_fox: I mean ownership, sry
workmad3 has quit [Ping timeout: 252 seconds]
<shadow_fox> havenn: root root
icole has quit [Remote host closed the connection]
<ruzu> su - xx and sudo xx aren't the same afaik ... iirc sudo is elevated permissions and su actually changes credentials
Targen has joined #ruby
<havenn> shadow_fox: Yeah, I'd suggest: sudo chown -R `whoami` /home/`whoami`/.gem
<shadow_fox> in opensuse i guess su - is used ,
<havenn> shadow_fox: also, there is: rvmsudo
asteve has quit [Quit: Computer has gone to sleep.]
slainer68 has quit [Remote host closed the connection]
buibex has quit [Remote host closed the connection]
<shadow_fox> like everytime i want to install some gem then have to run it as rvmsudo ?
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<havenn> shadow_fox: oops, I meant: sudo chown -R shadow /home/shadow/.rvm/gems
<ruzu> if root owns your folder that's the issue :p if you chown like havenn said i suspect it would work
dougireton has joined #ruby
asteve has joined #ruby
<shadow_fox> ruzu: will give a try as havenn said
ephemerian has quit [Quit: Leaving.]
elaptics is now known as elaptics`away
<shadow_fox> ruzu, havenn it worked
* ruzu highfives everybody
<shadow_fox> this is by default or something changed in my system?/
<shadow_fox> how do you do that ? ruzu ?
JMcAfreak has joined #ruby
reppard has quit [Ping timeout: 252 seconds]
<ruzu> most irc clients you can do " /me highfives everybody "
tommyvyo has joined #ruby
<shadow_fox> ohhk
<shadow_fox> heroku gem is deprecated ?? how i am supposed to get it working then ?
bwwrd has quit [Quit: Textual IRC Client: www.textualapp.com]
timmow has quit [Quit: is having a nap]
<lectrick> If I open a class inside a block and add a method to it, and then call that block from the outside, should I expect anything unusual?
thisirs has quit [Remote host closed the connection]
pyro111 has quit [Quit: Leaving]
<ruzu> shadow_fox, check toolbelt.heroku.com it has the new stuff you should use
<shadow_fox> ruzu: there is none for non-debian os like mine opensuse
<ruzu> D:
<ruzu> not sure then, maybe ask in #heroku
shevy has quit [Ping timeout: 246 seconds]
_hemanth_ has joined #ruby
Squarepy has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
punkrawkR^Home has quit [Read error: Connection reset by peer]
punkrawkR^Home has joined #ruby
otherj has joined #ruby
allure has joined #ruby
allure has joined #ruby
yacks has quit [Remote host closed the connection]
biff_tannen has joined #ruby
perlsyntax has quit [Quit: Leaving]
jxf has quit [Ping timeout: 248 seconds]
jxf has joined #ruby
<shadow_fox> ok
artOfWar_ has joined #ruby
<havenn> lectrick: Will SyntaxError if you try to define a class in a method, but works fine in a proc or lambda.
<philcrissman> shadow_fox: for now, you could just keep using the heroku gem; it still works, it will just warn you that it's deprecated every time you use it. :-) But it looks like the standalone should for for non-ubuntu linuxes... https://github.com/heroku/heroku
<otherj> anyone here know jekyll?
cakehero has quit [Quit: Computer has gone to sleep.]
rdark has quit [Quit: leaving]
<havenn> lolroku
ddd has quit [Quit: Leaving.]
mdel has quit [Quit: Lost terminal]
<shadow_fox> philcrissman: but it isnt allowing me to import ssh keys
<shadow_fox> like in heroku tool belt site shows
<philcrissman> shadow_fox: 'it' being the deprecated gem?
artOfWar has quit [Ping timeout: 252 seconds]
<philcrissman> shadow_fox: then I guess get the tarball and just unpack it somewhere on your path. :)
grzywacz has joined #ruby
crank1 has joined #ruby
hotovson has quit [Remote host closed the connection]
h4mz1d has joined #ruby
<Spooner> ruzu I'd put the loop outside #it and change the description to "should match #{h.rjust 2, '0'}:#{m.rjust 2, '0'}"
Xeago has joined #ruby
b1rkh0ff has quit [Ping timeout: 252 seconds]
<Spooner> However, for data like that, I'd probably just pick a selection of edge case examples.
johnmilton has joined #ruby
volk_ has joined #ruby
jds_ has quit [Remote host closed the connection]
shevy has joined #ruby
<Spooner> Hmm, you need to use to_s on numbers to rjust. Easier to just sprintf it as you did in your test :D
jds_ has joined #ruby
Goles has joined #ruby
sepp2k1 has joined #ruby
dougireton has quit [Quit: Leaving.]
TomyLobo has joined #ruby
sepp2k has quit [Ping timeout: 245 seconds]
Michael_ has quit [Remote host closed the connection]
Michael_ has joined #ruby
otherj has quit [Quit: otherj]
mahmoudimus has quit [Ping timeout: 276 seconds]
browndawg has quit [Quit: Leaving.]
dougireton has joined #ruby
haxrbyte has quit [Remote host closed the connection]
<ruzu> good idea regarding the looping; i also think you're right about specific tests...i think testing at the input boundaries should work fine.
codezombie|away is now known as codezombie
<Hanmac> Spooner & ruzu why are you guys using rjust for formating numbers? did you guys forget what sprintf can do?
<Spooner> Hanmac, ruzu isn't using rjust. I just used it for random reasons :D
BSaboia has joined #ruby
maletor has quit [Ping timeout: 260 seconds]
<Banistergalaxy> Hanmac fren, equus?
mercwithamouth has joined #ruby
icco has quit [Quit: run away.]
<Hanmac> Spooner: "should match %0.2d:%0.2d" % [h,m]
icco has joined #ruby
b1rkh0ff has joined #ruby
jlast has joined #ruby
<Spooner> Hanmac, Just because I didn't do it that way doesn't mean I don't know :D For some reason I didn't like the idea of putting brackets around the should text :$
maletor has joined #ruby
pskosinski is now known as manishrvv
mahmoudimus has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
Paradox has quit [Ping timeout: 245 seconds]
manishrvv is now known as pskosinski
pvh has left #ruby [#ruby]
Paradox has joined #ruby
<lectrick> Man it would be awesome if I could have terminal output that defaulted to "collapsed" but that could be "expanded" or drilled into basically. Or like an HTML rollover tooltip.
<apeiros|afk> lectrick: funny, thought the same more than once…
hoelzro|away is now known as hoelzro
arietis has joined #ruby
hoelzro has quit [Quit: leaving]
<lectrick> apeiros|afk: I am not surprised. I think it will come eventually, somehow. sometimes you just want the 5000' view but you want to be able to get more detail on the fly, but perhaps without activating ENV switches or affecting the verbosity of other outputs
<apeiros|afk> gah, I hate that: 19:42 Error(435): apeiros #ruby-lang Cannot change nickname while banned on channel
apeiros|afk is now known as apeiros
philcrissman has quit [Remote host closed the connection]
<lectrick> apeiros: I wonder if it could be done by capturing certain Unix signals
etcetera has quit []
<lectrick> apeiros: like, the program making the output only outputs the non-detailed view but holds the detailed information internally... until you send a signal/interrupt of some sort, in which case maybe it dumps the detail on the most recent thing
<banisterfiend> apeiros: do u smoke cigarettes
maxmanders has joined #ruby
<apeiros> banisterfiend: nope
<banisterfiend> apeiros: hmmm, ok
albakry has joined #ruby
etcetera has joined #ruby
nomenkun has joined #ruby
<lectrick> apeiros: like, you could trap SIGINFO for example and just dump a verbose version of the last output if it's used
<apeiros> banisterfiend: y?
maxmanders has quit [Max SendQ exceeded]
<apeiros> lectrick: might be a way
<ruzu> lectrick, ever heard of xiki? it sounds vaguely similar to what you were saying about a more versatile terminal. (not very familiar with it though)
vlad_starkov has joined #ruby
crank1 has quit [Quit: Leaving.]
<lectrick> ruzu: Yeah, I've been watching xiki for a while.
<lectrick> ruzu: I tried to get it to work with Sublime and sort of failed, so I gave up for now
headius has quit [Quit: headius]
<lectrick> I think Xiki is a step in the right direction
<lectrick> But it is rather drastic
fred909 has joined #ruby
philcrissman has joined #ruby
<lectrick> Anyone know which signals you can send from the keyboard other than control-c? which signal is control-D and the others? is there a keyboard command for SIGINFO?
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
marr has quit [Ping timeout: 248 seconds]
IceD^ has quit [Ping timeout: 245 seconds]
crank1 has joined #ruby
io_syl has quit [Ping timeout: 260 seconds]
bricker`1way is now known as bricker
aaronmacy has joined #ruby
d2dchat has joined #ruby
<heftig> lectrick: stty -a
Xeago_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago_ is now known as Xeago
<heftig> you can see control key assignments like intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 = M-^?; swtch = M-^?; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V;
<banisterfiend> lectrick: i dont think the overarching idea of xiki
<banisterfiend> lectrick: i dont think "wiki" is a good model for "everything"
<banisterfiend> lectrick: but it does have some k00 features that could be pulled into a more sensible project :D
crank1 has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
<banisterfiend> can someon tell me how to get rid of this annoying 'less' behaviou? http://showterm.io/b0895c20f8b700f31b4c4
kyle__ has joined #ruby
melisaa has joined #ruby
<banisterfiend> it always pages *everything* (in git) and when i quit the pager it doesnt leave it on the screen
<banisterfiend> i want it left on the screen!!!!!!!!!!!
<banisterfiend> and, if possible, not to page things that dont need paging (i.e < 1 page)
<heftig> banisterfiend: less -X
<banisterfiend> heftig: so what environment variable do i add that to? :P
<heftig> if you want it to quit if < 1 page, less -FX
<heftig> LESS=FX
<banisterfiend> thanks dude
<banisterfiend> i'll try it
Zolo has joined #ruby
jds_ has quit [Remote host closed the connection]
<heftig> banisterfiend: LESS=SRiFX
<banisterfiend> heftig: wow, what do all those things do?
pskosinski has quit [Remote host closed the connection]
<heftig> S chops long lines instead of wrapping, R enables color output, i makes search case-insensitive by default
ebobby has joined #ruby
<banisterfiend> nice
<banisterfiend> thanks
<kyle__> I don't suppose there are any ruby vnc libaries that support SSL or usernames (instead of just passwords).
mrsolo has quit [Quit: This computer has gone to sleep]
beiter has quit [Quit: beiter]
_nitti has joined #ruby
<Zolo> I have a question regarding writing a service in Ruby... It was a while ago I wrote one but got stuck. Just curious if there is any way to generate a WSDL from exposed methods in the service? In C# when creating a webservice.asmx you can just get the wsdl from webservice.asmx?wsdl is there a simulare way to do it in Ruby?
crank1 has joined #ruby
<kyle__> Zolo: I'm sure you could do it. Don't know if tehre's an automated way of creating it.
<apeiros> Zolo: ta
<apeiros> gah
<biff_tannen> anyone heading to http://www.ancientcityruby.com/ ? wondering if the speakers are any good ...
<apeiros> Zolo: that question should more be like "is there a framework in ruby which makes that easy"
<Fuzai> Someone the other day suggested an alternative to Heroku called ruby something. Does anyone know the name of what i'm talking about?
<apeiros> because yes, of course, it's entirely possible to do it with ruby, but as kyle__ said, the real question is whether there's something pre-done, readily available
melisaa has quit [Ping timeout: 252 seconds]
<Zolo> apeiros: Well its more of a open question, There could also be a tool to invoke or anything. Like I said, I just wonder because its a crucial part in my opinion. But Do you have any framework to do it It would be great. :)
melisaa has joined #ruby
_nitti has quit [Ping timeout: 256 seconds]
<apeiros> Zolo: sorry, I'm usually at the other end of webservices
<apeiros> server side I far prefer REST over SOAP
<apeiros> (since you obviously mean SOAP…)
<Zolo> kyle__: Ok, do you know any way to just generate the file then (dose not need to be automated). More of tool perhaps.
<ruzu> biff_tannen, i'm not going but several of those speakers are pretty good imo
kmgroove has joined #ruby
<apeiros> Zolo: ruby-toolbox.com might be helpful to you
squidBits has joined #ruby
<Zolo> apeiros: Yeah, the reason I wonder is because I love to create a webservice providing JSON and client in javascript talking with it. :)
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
<Zolo> apeiros: Thanks! I look in to it!
<lectrick> heftig- i have the stty -a output but I'm not sure which of those map to signals that can be trapped by Ruby, other than control-C and perhaps control-D? or U? Not sure
<kyle__> Zolo: If you're already using the web service/applet class you can just make that a target. Trying to recall exactlyhow to do it, but tis' pretty easy. Maybe just a handler.
daniel_- has joined #ruby
<lectrick> for example the "stty -a" output says "status" is ^T, does that map to a signal at all?
klaas has joined #ruby
BizarreCake has quit [Remote host closed the connection]
<kyle__> So nobody has worked with a reasonable VNC class for ruby?
<lectrick> it says "kill" is control-U, but I thought SIGKILL was control-C? Etc.
melisaa has quit [Ping timeout: 255 seconds]
<Zolo> kyle__: I am not following. Could you please elaborate what you mean with "you can just make that a target. Trying to recall exactlyhow to do it, but tis' pretty easy."
<lectrick> Basically I want a POSIX signal I can trap which is triggerable on a standard Unix console with a control key but is not control-C or control-Z which I can trap
inokenty has quit [Quit: Leaving.]
<heftig> lectrick: that's "line kill", not SIGKILL
<lectrick> heftig: thanks for the clarification. Do you know of a keyboard-triggerable trappable signal that would mean something like "give me more info"?
<heftig> no
<kyle__> Zolo: you make a handler for each target. A method_missing type of thing if I recall (it's been several years).
<heftig> i think what you're supposed to do is turn off the terminal's handling of the key you want (if it's handled), then look up in terminfo what kind of character that combination produces
breakingthings has joined #ruby
<heftig> e.g. ctrl+k produces a \v here
<kyle__> Zolo: So is you had http://myserver/jpegs/ you would make a handler in your class that handled /jpegs/ and served up say, an index.html.
<carlzulauf> a more info signal is a fantastic concept though
<kyle__> I'm not describing this well.
reppard has joined #ruby
templaedhel has joined #ruby
<kyle__> And I kept saying applet, I meant sevelet, but you probably guessed that.
stkowski has joined #ruby
Pip has joined #ruby
melisaa has joined #ruby
<Zolo> kyle__: I see, well it dose not solve the problem if I would like to hook up the webservice with C#, Because I need the wsdl to get the correct hooks. But I also know its just a "nice-to-have" a wsdl and not a requirement for the webservice to work. But thanks anyway Now I learned something new. :)
jdripper has quit [Quit: Leaving.]
ChampS666 has quit [Ping timeout: 245 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
reppard has quit [Ping timeout: 240 seconds]
<lectrick> heftig/apeiros- lol I tossed this on IRB and then mashed keys: Signal.list.keys.each{|s| trap(s){ puts "Got signal #{s}"}}
c0rn has joined #ruby
hoelzro has joined #ruby
kmgroove has quit [Quit: Page closed]
Skylab has quit [Quit: Skylab]
speakingcode has quit [Quit: icestorm]
reppard has joined #ruby
osaut has joined #ruby
danneu has quit [Quit: WeeChat 0.3.8]
ChampS666 has joined #ruby
vlad_starkov has joined #ruby
hashpuppy has joined #ruby
d2dchat_ has joined #ruby
Xeago has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
Apocalypse has quit [Ping timeout: 245 seconds]
jjbohn has quit [Quit: Leaving...]
mrsolo has joined #ruby
jjbohn has joined #ruby
d2dchat has quit [Ping timeout: 245 seconds]
Skylab has joined #ruby
ryannielson has joined #ruby
joofsh has quit [Remote host closed the connection]
nathancahill has quit [Quit: nathancahill]
icole has joined #ruby
mafolz has quit [Remote host closed the connection]
dougireton has quit [Quit: Leaving.]
krz has quit [Quit: krz]
aeontech has left #ruby [#ruby]
rezzack has joined #ruby
fourq has quit [Quit: Lost terminal]
aaronmacy has quit [Quit: Leaving.]
jds_ has joined #ruby
bitcrave has joined #ruby
nkr has quit [Ping timeout: 260 seconds]
mneorr has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
fourq has joined #ruby
jblack_ is now known as jblack
viario has quit [Remote host closed the connection]
kirun has joined #ruby
nu7hatch has joined #ruby
reppard has quit [Ping timeout: 255 seconds]
headius has joined #ruby
aaronmacy has joined #ruby
ebouchut has joined #ruby
rpminihan has joined #ruby
karasawa has quit [Ping timeout: 264 seconds]
Markvilla has joined #ruby
karasawa has joined #ruby
horofox has quit [Quit: horofox]
ebouchut has quit [Client Quit]
nkr has joined #ruby
dougireton has joined #ruby
hoelzro is now known as hoelzro|away
pnkbst has joined #ruby
jacktrick has joined #ruby
dougireton has quit [Client Quit]
slainer68 has joined #ruby
osaut has quit [Quit: osaut]
piotr__ has joined #ruby
piotr_ has quit [Ping timeout: 245 seconds]
ebouchut has joined #ruby
zastern has quit [Remote host closed the connection]
ebouchut has quit [Client Quit]
enebo has joined #ruby
jds_ has quit [Ping timeout: 256 seconds]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
icole has quit [Remote host closed the connection]
pskosinski has joined #ruby
syamajala has joined #ruby
dmerrick_ has joined #ruby
drago757 has joined #ruby
nu7hatch has quit [Read error: Connection reset by peer]
icole has joined #ruby
icole has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
osaut has joined #ruby
dmerrick has quit [Ping timeout: 260 seconds]
dmerrick_ is now known as dmerrick
sayan has quit [Ping timeout: 246 seconds]
jpfuentes2 has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
joofsh has joined #ruby
kil0byte has quit [Remote host closed the connection]
maletor has joined #ruby
<lectrick> Is there any way to force a method in a module inclusion to overwrite an existing method, similar to "prepend" from Ruby 2.0, in Ruby 1.9?
<lectrick> Like can I use an included hook to undefine any methods that are already defined on the class, which are also defined in the module about to be included?
jrist is now known as jrist-afk
failshell has joined #ruby
arya_ has joined #ruby
<failshell> hello. by default, if i run gem install foo in a loop, gem will reinstall the gem every time. is it possible to tell gem to not install if the gem is already installed?
nazty has quit [Read error: Connection reset by peer]
shadow_fox has left #ruby [#ruby]
<hashpuppy> there's no way to get the requested path from a Net:HTTPBadRequest exception, huh? I've been looking through the docs and have come to the conclusion that you cna't
Morkel_ has joined #ruby
n1x has quit [Ping timeout: 260 seconds]
timonv_ has quit [Read error: Connection reset by peer]
timonv has joined #ruby
hackerdude has quit [Remote host closed the connection]
<carlzulauf> failshell: you can see if the gem is already installed first
Morkel has quit [Ping timeout: 276 seconds]
Morkel_ is now known as Morkel
<carlzulauf> run `gem list [gem name]` and parse the output
nazty has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
<graft> is there a better way to return an object from an array matching certain critera other than select { |o| ... }.first or some such?
<Mon_Ouie> Enumerable#find { … }
nazty has quit [Remote host closed the connection]
<bricker> Isn't there a better way? File.join(File.absolute_path(File.dirname(__FILE__)), "results", "hello.csv")
grzywacz has quit [Quit: :wq]
Asym has joined #ruby
<graft> ah, find, duh
<Mon_Ouie> You can drop the absolute_path unless you're going to be changing directory within your tests (or wherever you do this)
<Asym> can anyone think of a reason why invoking rake from cmd line would work but invoking it via Rake.app.init/Rake.app['target'].invoke would not?
<Mon_Ouie> One trick would be File.expand_path("../results/hello.csv", __FILE__)
PragCypher has quit [Remote host closed the connection]
marr has joined #ruby
nazty has joined #ruby
jds_ has joined #ruby
failshell has quit [Quit: Lost terminal]
toekutr has joined #ruby
<apeiros> bricker: expand_path '../results/hello.csv', __FILE__
<apeiros> meh, Mon_Ouie is faster again…
PragCypher has joined #ruby
<graft> would that work?
<graft> __FILE__ is not a directory
hackerdude has joined #ruby
<graft> you'd need File.expand_path("../results/hello.csv", File.dirname(__FILE__))
<Mon_Ouie> It doesn't matter, it's more like string processing
alexspeller has joined #ruby
<Mon_Ouie> That's why we have the ".." at the beginning: to go back to the directory
<Mon_Ouie> If you use File.dirname(…), the path to expand is results/hello.csv
etcetera has quit []
vlad_starkov has quit [Remote host closed the connection]
fred909 has quit [Ping timeout: 276 seconds]
kpshek has joined #ruby
<graft> no, it doesn't work without that
<graft> File.expand_path(".bashrc","/home/graft/test.rb") => /home/graft/test.rb/.bashrc
etcetera has joined #ruby
<bricker> apeiros: Mon_Ouie thanks!
<bricker> oh wait
<bricker> oh yes
<Mon_Ouie> graft: It should be ../.bashrc
<graft> oh, you're pre-pending the ../
<graft> eh, seems uglier to me
<Mon_Ouie> It may look weird because you're not expanding from a directory. I use it mostly because it's shorter.
headius has quit [Quit: headius]
macmartine has joined #ruby
<apeiros> graft: of course it works
<apeiros> same as Mon_Ouie
<apeiros> also I start to get hard-wired for less method calls
postmodern has joined #ruby
etcetera has quit [Client Quit]
reuven has quit [Ping timeout: 256 seconds]
icole has joined #ruby
arkiver has quit [Quit: Leaving]
jds_ has quit [Ping timeout: 246 seconds]
<tetsus> I'm trying to write an API wrapper that uses XML as it's request interface. I've got Builder generating XML, but it seems really template-y. Are there any conventions for templating for XML like this?
io_syl has joined #ruby
stonevil has quit [Quit: stonevil]
tjbiddle has quit [Quit: tjbiddle]
dr_neek has joined #ruby
Markvilla has quit [Quit: Computer has gone to sleep.]
cobragoa_ has joined #ruby
cobragoat has quit [Read error: Connection reset by peer]
dougireton has joined #ruby
jimmyy has quit [Remote host closed the connection]
jimmyy has joined #ruby
Azure is now known as Valkyrie^
emergion has joined #ruby
horofox has joined #ruby
fred909 has joined #ruby
MattRb has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9.2]
rippa has quit [Read error: Operation timed out]
melisaa has quit [Quit: © Www.Kelebek.Org Mutlaka Download Edin! Kelebek Final irc.kelebek.org ßy wToprak ®]
chridal has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 248 seconds]
AlbireoX has quit [Ping timeout: 256 seconds]
etcetera has joined #ruby
chridal has joined #ruby
Asym has quit [Ping timeout: 264 seconds]
jlast has joined #ruby
Markvilla has joined #ruby
yttiol has joined #ruby
jlast_ has joined #ruby
Asym has joined #ruby
jlast has quit [Read error: Connection reset by peer]
Osy has joined #ruby
Osy has left #ruby [#ruby]
h4mz1d has quit [Ping timeout: 256 seconds]
zigomir has joined #ruby
io_syl has quit [Ping timeout: 252 seconds]
jlast_ has quit [Ping timeout: 276 seconds]
Jackneill has joined #ruby
Jackneill has quit [Changing host]
Jackneill has joined #ruby
Playground has joined #ruby
io_syl has joined #ruby
nazty has quit [Ping timeout: 276 seconds]
karasawa has quit [Ping timeout: 260 seconds]
karasawa has joined #ruby
Jackneill has quit [Remote host closed the connection]
s0ber_ has joined #ruby
Uranio has quit [Quit: while you reading this, a kitty dies]
interactionjaxsn has quit [Remote host closed the connection]
s0ber has quit [Ping timeout: 272 seconds]
Zolo has quit [Remote host closed the connection]
s0ber_ is now known as s0ber
mercwithamouth has quit [Ping timeout: 245 seconds]
interactionjaxsn has joined #ruby
jrist-afk is now known as jrist
syamajala has quit [Ping timeout: 245 seconds]
interactionjaxsn has quit [Remote host closed the connection]
nazty has joined #ruby
theRoUS_ has quit [Ping timeout: 245 seconds]
rads has joined #ruby
etcetera has quit []
Unfortune has joined #ruby
jlast has joined #ruby
interactionjaxsn has joined #ruby
etcetera has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rmillerx has joined #ruby
interact_ has joined #ruby
end_guy has quit [Ping timeout: 276 seconds]
Jedi_SCT1 has quit [Quit: See ya]
zph has quit [Quit: Computer has gone to sleep.]
tvw has quit [Read error: Connection reset by peer]
interactionjaxsn has quit [Read error: Connection reset by peer]
interactionjaxsn has joined #ruby
<Fuzai> is there an easy way to escape single quotes in a text string?
<nga4> ""
Jedi_SCT1 has joined #ruby
osaut has quit [Quit: osaut]
<Pip> fuho, \'
<apeiros> %{foo'bar'baz}
end_guy has joined #ruby
Skylab has quit [Quit: Skylab]
tatsuya_o has joined #ruby
interact_ has quit [Ping timeout: 245 seconds]
hashpuppy has quit [Read error: Connection reset by peer]
hashpuppy has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
thatguycraig has quit [Quit: Leaving.]
tjbiddle has joined #ruby
mengu has quit [Quit: Konversation terminated!]
ryannielson has left #ruby [#ruby]
io_syl has quit [Ping timeout: 276 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
clocKwize has joined #ruby
miskander has joined #ruby
clocKwize has quit [Client Quit]
jkrall has joined #ruby
Michael_ has quit [Remote host closed the connection]
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Michael_ has joined #ruby
twoism has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
twoism_ has joined #ruby
<jkrall> hello all… I'm having a really hard time getting ruby 1.9.3 installed via rvm on mountain lion. Anyone around who might be able to help?
timonv has quit [Read error: Connection reset by peer]
tjbiddle_ has joined #ruby
io_syl has joined #ruby
<apeiros> jkrall: #rvm is usually very helpful
<bean_work> I have had 0 trouble getting it to work on ML
nathancahill has joined #ruby
<apeiros> it worked fine for me on mountain lion btw. (just to say that it is possible)
kpshek has quit []
<bean_work> fwiw
dougireton has quit [Quit: Leaving.]
<jkrall> thanks, I'll jump in there… yeah, I've installed it 3-4 times before, but I have a new hire and we've spent half the day so far trying to get it to build successfully. weird.
tjbiddle has quit [Ping timeout: 256 seconds]
tjbiddle_ is now known as tjbiddle
dougireton has joined #ruby
* Hanmac wonders when the days come when OSX ship a current ruby ... ;P
[Neurotic] has joined #ruby
<blazes816> if apple could only ship to that past
Michael_ has quit [Remote host closed the connection]
baphled has joined #ruby
dougireton has quit [Client Quit]
Asym has quit [Ping timeout: 260 seconds]
jkrall has left #ruby [#ruby]
kpshek has joined #ruby
AtoxIO has joined #ruby
syamajala has joined #ruby
Goles has quit [Quit: Computer has gone to sleep.]
nomenkun has quit [Remote host closed the connection]
atmosx has joined #ruby
<atmosx> hello
<atmosx> does anybody write HAML tests?
interactionjaxsn has quit [Remote host closed the connection]
dwn has joined #ruby
dwn has quit [Changing host]
dwn has joined #ruby
Asym has joined #ruby
<atmosx> I never used any test framework. I have a program that fails in some situations and I'd like to use it against minitest, but I need to see some code to understand how to assign results in haml files
<atmosx> otherwise I'll have to use hmm the sinatra app to puts all output
<atmosx> and use haml that way
<atmosx> err minitest
mark_locklear has quit [Remote host closed the connection]
Michael_ has joined #ruby
Kingy has joined #ruby
interactionjaxsn has joined #ruby
dougireton has joined #ruby
<breakingthings> atmosx uh, haml?
<atmosx> yeah
<breakingthings> don't you mean YAML?
<atmosx> I have a sinatra app, and the output is printed in HAML files
<atmosx> no no
<atmosx> I was wondering if minitest could read output from haml's
<breakingthings> oh
Glacer232 has joined #ruby
<breakingthings> I would think that's a BDD issue, not a TDD one.
<atmosx> BBD statnds for?
<breakingthings> Behavior
<breakingthings> eg, Capybara/Cukes
<breakingthings> but uh
dougireton has quit [Client Quit]
<breakingthings> I'm not sure about reading from files specifically
<Hanmac> does someone else think that Class.new(TrueClass) should raise an error?
whowantstolivef1 has joined #ruby
<breakingthings> you could probably set up some test function to trigger and then read the output files for what you're wanting...
* breakingthings shrugs
<breakingthings> Hanmac: Whattaheckisdat.
Asym has left #ruby [#ruby]
kpshek has quit []
<Hanmac> breakingthings it creates an new class with TrueClass as parent
zigomir has quit [Quit: zigomir]
nathancahill_ has joined #ruby
<apeiros> Hanmac: from your question I assume that `class Foo < TrueClass` raises?
jfl0wers has quit [Quit: jfl0wers]
nathancahill has quit [Ping timeout: 255 seconds]
nathancahill_ is now known as nathancahill
<Hanmac> apeiros: no, the problem is that it does not raise an error :D
<apeiros> Hanmac: hm, well, if the normal form works, I don't see why Class.new one shouldn't…
aapzak has quit [Ping timeout: 264 seconds]
<blazes816> they should both, is what I think he is saying
vonsar has joined #ruby
<blazes816> /should both/both should/
<Hanmac> apeiros IMO both versions should not work because it does not make sense to make an child class of TrueClass,FalseClass and NilClass (they should act more like singleton_classes)
nazty has quit [Ping timeout: 256 seconds]
dougireton has joined #ruby
joofsh has quit [Remote host closed the connection]
emocakes has joined #ruby
<heftig> I wonder why TrueClass, NilClass and FalseClass actually exist. why can't true, false and nil be instances of Object augmented with a metaclass?
jeremy``` has joined #ruby
aapzak has joined #ruby
<heftig> banisterfiend: any comment?
<jeremy```> Hello - Can anyone recommend a tool for static analysis of Ruby code?
<banisterfiend> heftig: they're immediates, which are more efficient i guess
<banisterfiend> Objects are slower
<heftig> jeremy```: ruby -c
<banisterfiend> theyre' on the heap
dougireton has quit [Client Quit]
<heftig> and immediates can't have singleton classes?
jerius has quit [Ping timeout: 256 seconds]
krawchyk has quit [Remote host closed the connection]
dougireton has joined #ruby
<heftig> and they're all still is_a? Object
ChampS666 has quit [Ping timeout: 256 seconds]
<Hanmac> heftig: this three objects are the only one there this is true: [true,false,nil].all? {|o| o.class == o.singleton_class}
nathancahill has quit [Ping timeout: 260 seconds]
jerius has joined #ruby
<heftig> ah, i see.
joofsh has joined #ruby
nathancahill has joined #ruby
Scriptonaut has joined #ruby
jerius has quit [Client Quit]
emmanuelux has joined #ruby
heftig has quit [Quit: leaving]
zommi has quit [Quit: Leaving.]
jerius has joined #ruby
joeycarmello has quit [Remote host closed the connection]
<Scriptonaut> guys, what is IO.readlines vs File.readlines?
breakingthings has quit []
aaronmacy has quit [Quit: Leaving.]
breakingthings has joined #ruby
nazty has joined #ruby
froy has quit [Quit: kablam!]
_hemanth_ has quit [Read error: Connection reset by peer]
_hemanth_ has joined #ruby
_hemanth_ has quit [Read error: Connection reset by peer]
<Hanmac> Scriptonaut: File.readlines is a classmethod
_hemanth_ has joined #ruby
_hemanth_ has quit [Read error: Connection reset by peer]
_hemanth_ has joined #ruby
<Scriptonaut> Is IO a class?
ChampS666 has joined #ruby
joeycarmello has joined #ruby
blaxter has quit [Quit: foo]
mockra has quit [Remote host closed the connection]
<Hanmac> IO is the parentclass, but you are right they both define them on class
jacktrick has quit [Quit: Leaving]
<Scriptonaut> Oh alright
Unfortune has left #ruby [#ruby]
<Scriptonaut> People were telling me I should use File.readlines rather than IO.readlines, is that true? Do they behave differently? Either way thanks for the help, it's not really a big deal
codezombie has quit [Quit: Linkinus - http://linkinus.com]
<Hanmac> hm no, readlines (class and instance) are both defined in IO, File only inherits from it
sepp2k1 has quit [Remote host closed the connection]
workmad3 has joined #ruby
<Scriptonaut> Ah, that makes sense. Thanks
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
stonevil has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
Michael_ has quit [Remote host closed the connection]
headius has joined #ruby
jlast_ has joined #ruby
jlast has quit [Ping timeout: 260 seconds]
Michael_ has joined #ruby
nathancahill has quit [Ping timeout: 276 seconds]
jblack has quit [Ping timeout: 256 seconds]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
agarie has joined #ruby
stevechiagozie has joined #ruby
aaronmacy has joined #ruby
geekbri has quit [Remote host closed the connection]
Squarepy has quit [Remote host closed the connection]
Skylab has joined #ruby
forced_request has joined #ruby
TheFuzzball has quit [Quit: Computer has gone to sleep.]
JarJar has joined #ruby
mmmmwww has joined #ruby
tatsuya_o has quit [Ping timeout: 245 seconds]
zigomir has joined #ruby
mockra has joined #ruby
twoism_ has quit [Read error: Connection reset by peer]
eldariof has quit []
twoism has joined #ruby
tatsuya_o has joined #ruby
vlad_starkov has joined #ruby
emergion has joined #ruby
dougireton has quit [Quit: Leaving.]
thone has joined #ruby
anonymuse has joined #ruby
heftig has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
anonymuse has quit [Client Quit]
diegoviola has joined #ruby
anonymuse has joined #ruby
thone_ has quit [Ping timeout: 256 seconds]
ffranz has quit [Quit: Leaving]
nga4 has quit [Ping timeout: 256 seconds]
Skylab has quit [Quit: Skylab]
Skylab has joined #ruby
tvw has joined #ruby
dougireton has joined #ruby
wchun has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
biff_tannen has quit [Read error: Connection reset by peer]
nkr has quit [Quit: Linkinus - http://linkinus.com]
vlad_starkov has quit [Ping timeout: 240 seconds]
xAndy is now known as xandy
nathancahill has joined #ruby
blacktulip has quit [Remote host closed the connection]
syamajala has quit [Remote host closed the connection]
aquaranto has quit []
reset has joined #ruby
reset has quit [Read error: Connection reset by peer]
reset has joined #ruby
_dnyy has quit [Remote host closed the connection]
joeycarmello has quit [Remote host closed the connection]
Glacer232 has quit [Quit: Textual IRC Client: www.textualapp.com]
dr_neek has quit [Quit: dr_neek]
jgrevich has joined #ruby
sailias has quit [Quit: Leaving.]
karasawa has quit [Ping timeout: 276 seconds]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
atmosx has quit [Quit: And so the story goes…]
karasawa has joined #ruby
twoism_ has joined #ruby
twoism has quit [Read error: Connection reset by peer]
tommyvyo has quit [Ping timeout: 252 seconds]
volte has quit [Ping timeout: 264 seconds]
matthewrobbins has joined #ruby
emergion has joined #ruby
jaequery has quit [Ping timeout: 264 seconds]
volte has joined #ruby
reuven has joined #ruby
cjs226 has quit []
burgestrand has joined #ruby
otters has quit [Ping timeout: 240 seconds]
jgrevich has quit [Ping timeout: 256 seconds]
jgrevich has joined #ruby
atmosx has joined #ruby
carloslopes has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
tenmilestereo has quit [Quit: Leaving]
kil0byte has joined #ruby
mercwithamouth has joined #ruby
jaequery has joined #ruby
froy has joined #ruby
carloslopes has joined #ruby
pcarrier has joined #ruby
emergion has quit [Ping timeout: 264 seconds]
ner0x has quit [Quit: Leaving]
matthewrobbins has quit [Quit: matthewrobbins]
atmosx has quit [Client Quit]
gyre007 has quit [Remote host closed the connection]
jtharris has quit [Quit: WeeChat 0.3.9.2]
horofox has quit [Quit: horofox]
icole has joined #ruby
jgrevich_ has joined #ruby
jgrevich has quit [Read error: Connection reset by peer]
jgrevich_ is now known as jgrevich
atma1 has joined #ruby
macmartine has joined #ruby
timonv has joined #ruby
powerplay has joined #ruby
powerplay has left #ruby [#ruby]
syamajala has joined #ruby
atma1 has quit [Client Quit]
jimeh has quit [Quit: Computer has gone to sleep.]
powerplay has joined #ruby
<powerplay> Hey everyone quick question about bundler/gems, I want to use a gem while in my rails console, but dont want to do it through Gemfile cause I wanna use it temporarly, is there any way to use a gem in rails console without doing bundle install?
timonv_ has quit [Read error: Connection reset by peer]
obryan has quit [Quit: Konversation terminated!]
<Hanmac> powerplay: #bundler & #rubyonrails
reppard has joined #ruby
<powerplay> thanks
<ericwood> #rubyonbundlerrails
<breakingthings> I'll bundle your rails, if you know what I mean
<breakingthings> And in the case that you do, please inform me, as I don't have the slightest clue.
jjbohn has quit [Quit: Leaving...]
otherj has joined #ruby
jaequery has quit [Ping timeout: 255 seconds]
atmosx has joined #ruby
<Hanmac> breakingthings i think he wants to be bundles on rails ... like in an old western movie
<breakingthings> Hanmac like, when an old timey western cartoon villian ties someone to train tracks?
elico has quit [Ping timeout: 248 seconds]
<Hanmac> yeah i think that he meens
katherinem13 is now known as katherinem13_afk
jaequery has joined #ruby
mmmmwww has quit [Ping timeout: 256 seconds]
<breakingthings> that's a pretty resonable request
<breakingthings> i wish more people volunteered for that
otters has joined #ruby
dougireton has quit [Quit: Leaving.]
Apocalypse has joined #ruby
robotmay has quit [Read error: No route to host]
robotmay has joined #ruby
chussenot has quit [Quit: chussenot]
Apocalypse has quit [Client Quit]
Criztian has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
yttiol has quit [Quit: Sto andando via]
workmad3 has quit [Ping timeout: 255 seconds]
ebobby has quit [Ping timeout: 276 seconds]
jxf has quit [Read error: Connection reset by peer]
kil0byte has quit [Remote host closed the connection]
iamjarvo has quit [Quit: Leaving.]
goraxe has quit [Ping timeout: 246 seconds]
dougireton has joined #ruby
Apocalypse has joined #ruby
timonv_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
c0rn has quit [Ping timeout: 240 seconds]
phantasm66 has quit [Quit: *sleeeep….]
c0rn has joined #ruby
_sillymarkets has joined #ruby
jerius has quit [Ping timeout: 276 seconds]
miphe has joined #ruby
elico has joined #ruby
LouisGB has quit [Ping timeout: 276 seconds]
elico has quit [Client Quit]
ndboost has joined #ruby
elux has quit [Quit: Leaving...]
<graft> is there a good way to search efficiently over a set of ranges?
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<graft> non-overlapping intervals, let's say
jenrzzz has joined #ruby
joofsh has quit [Read error: Connection reset by peer]
joofsh has joined #ruby
<arturaz> graft, besides linear search?
volk_ has quit [Quit: volk_]
<arturaz> if they're sorted you can always do binary search
albakry has quit [Quit: Leaving]
timonv_ has quit [Read error: Connection reset by peer]
timonv has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
chridal has quit [Quit: Lost terminal]
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
interactionjaxsn has quit [Remote host closed the connection]
rmillerx has quit [Quit: rmillerx]
Michael_ has quit [Remote host closed the connection]
dougireton has quit [Quit: Leaving.]
berserkr has quit [Quit: Leaving.]
breakingthings has quit []
bean_work has quit [Ping timeout: 252 seconds]
Kuifje has quit [Ping timeout: 245 seconds]
ninegrid_ has quit [Ping timeout: 260 seconds]
friskd has joined #ruby
cjs226 has joined #ruby
JarJar has quit [Quit: Leaving]
joeycarmello has joined #ruby
sailias has joined #ruby
nari has joined #ruby
zigomir has quit [Quit: zigomir]
bean_work has joined #ruby
joshman_ has quit [Ping timeout: 260 seconds]
asteve has quit [Quit: Computer has gone to sleep.]
andrewhl has quit [Remote host closed the connection]
Michael_ has joined #ruby
kirun has quit [Quit: Client exiting]
dougireton has joined #ruby
generalissimo has quit [Remote host closed the connection]
<graft> arturaz: i was hoping someone already wrote a gem for this
alanp_ has joined #ruby
stevechiagozie has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has quit [Ping timeout: 276 seconds]
dnyy has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
Kingy has quit [Quit: Leaving]
alanp has quit [Ping timeout: 264 seconds]
bricker_ has joined #ruby
ninegrid has joined #ruby
dummey has joined #ruby
chrismcg is now known as zz_chrismcg
RagingDave has quit [Quit: Ex-Chat]
<Xeago> aight some sysadmini guy here that can help?
<Xeago> bit off-topic
iamjarvo has joined #ruby
<Xeago> I have an ubuntu server
<Xeago> that I can access over lan
<Xeago> but not via wan
syamajala has quit [Remote host closed the connection]
<Xeago> ports are forwarded correctly
macmartine has quit [Quit: Computer has gone to sleep.]
<Xeago> I have not configured a firewall to limit to local network
<Xeago> what is going on?
ndboost has quit [Remote host closed the connection]
<Hanmac> Xeago with wan, do you mean wlan?
jenrzzz has joined #ruby
gyre008 has joined #ruby
bricker has quit [Ping timeout: 260 seconds]
huoxito has quit [Quit: Leaving]
RagingDave has joined #ruby
mmitchell has quit [Ping timeout: 245 seconds]
<Xeago> no wan
<Xeago> wide area network
<Xeago> the internet
bean_work has quit [Quit: Computer has gone to sleep.]
cascalheira has joined #ruby
<Hanmac> Xeago does maybe the router blocks something?
jds_ has joined #ruby
kpshek has joined #ruby
<Xeago> router doesn't do shit for other hosts on hte network
Umren has quit [Read error: Connection reset by peer]
<Xeago> port forwarding is done correctly
<Xeago> if I change the ip to another host, it works fine
<Xeago> if I connect to that host, and then connect to the lan address of the ubuntu-host
<Xeago> it works
alanp_ is now known as alanp
jgarvey has quit [Quit: Leaving]
<Xeago> however using that host when forwarding the port to it, time-out
i_s has quit [Quit: i_s]
EPIK has joined #ruby
Vert has quit [Read error: Connection reset by peer]
<Xeago> only thing that i can't rule out
parus has joined #ruby
<Xeago> is a firewall that limits connections to lan-source-ip's
arya_ has quit [Ping timeout: 248 seconds]
iamjarvo1 has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
jds_ has quit [Ping timeout: 240 seconds]
sc077 has joined #ruby
otters has quit [Ping timeout: 264 seconds]
_sillymarkets has quit [Quit: Page closed]
mercwithamouth has quit [Ping timeout: 276 seconds]
BSaboia has quit [Read error: Connection reset by peer]
<sc077> could someone kindly explain how the interpreter works this construct out?
<sc077> Class Foo
<sc077> Class Bar
<sc077> Class Green < Foo::Bar
dustint has quit [Quit: Leaving]
<banisterfiend> sc077: let me get a link for u
<Xeago> I disabled ufw, rebooted no succes
AtoxIO has quit [Remote host closed the connection]
F1skr has joined #ruby
stopbit has quit [Quit: Leaving]
<sc077> banisterfiend: thx!
Vert has joined #ruby
ninegrid has quit [Ping timeout: 248 seconds]
Skylab has quit [Quit: Skylab]
miskander has quit [Quit: miskander]
swex has joined #ruby
__BigO__ has quit [Remote host closed the connection]
cr3 has quit [Quit: leaving]
<Gate> Xeago: check iptables and sshd_config
<Xeago> check sshd_config for?
<Gate> Xeago: I believe that you can define where incoming ssh connections can connect from.
ner0x has joined #ruby
sailias has quit [Quit: Leaving.]
kpshek has quit []
otters has joined #ruby
maycon has joined #ruby
maycon has joined #ruby
maycon has quit [Changing host]
segv- has quit [Quit: segv-]
tps_ has quit [Read error: Connection reset by peer]
<Gate> Xeago: the AllowUsers DenyUsers AllowGroups DenyGroups, also /etc/hosts.deny /etc/hosts.allow
Skylab has joined #ruby
timonv_ has joined #ruby
ChampS666 has quit [Ping timeout: 252 seconds]
alex__c2022 has quit [Quit: alex__c2022]
arya_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
philcrissman has quit [Remote host closed the connection]
willob has quit [Quit: Leaving.]
<sc077> banisterfiend: so if Green is alreade a subclass of Foo::Bar by it's order in defined class hierarchy then what purpose does Green < Foo::Bar serve
<sc077> s/alreade/already/
phwd has joined #ruby
stonevil has quit [Quit: stonevil]
<heftig> it's not a subclass
joshman_ has joined #ruby
<phwd> Can I talk about the Faraday gem here?
<heftig> sc077: i.e. class Green wouldn't be a subclass of Bar, but class Green < Bar would be
<banisterfiend> sc077: as heftig says it's not a subclass
<banisterfiend> sc077: it's a "nested class" but in reality, it's not even that. It's just a nested constant :)
<banisterfiend> well, teh class name is a nested constant
<banisterfiend> the class itself couldn't give a fig what it's nested under
TomyLobo has quit [Quit: Standby mode...]
<sc077> ah ok. that makes more sense
gyre007 has quit [Ping timeout: 276 seconds]
arya_ has quit [Ping timeout: 276 seconds]
<banisterfiend> sc077: some of this stuff is a bit subtle
otherj has quit [Quit: otherj]
Banistergalaxy has joined #ruby
marr has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Read error: Connection reset by peer]
Chryson has joined #ruby
arturaz has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
main has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby
tps_ has joined #ruby
krawchyk has joined #ruby
v0n has quit [Read error: Operation timed out]
diegoviola has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
pcarrier has quit [Ping timeout: 245 seconds]
timonv_ has quit [Read error: Connection reset by peer]
nfk has quit [Quit: yawn]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
ruzu2 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
mercwithamouth has joined #ruby
<sc077> very true. thanks again!
jfl0wers has joined #ruby
<Gate> phwd: ask, if anyone caa answer they will :)
iamjarvo1 has quit [Quit: Leaving.]
whowantstolivef1 has quit [Remote host closed the connection]
ruzu has quit [Ping timeout: 255 seconds]
vonsar has quit [Quit: This computer has gone to sleep]
reppard has quit [Ping timeout: 255 seconds]
kiyoura has joined #ruby
i_s has joined #ruby
pcarrier has joined #ruby
stonevil has joined #ruby
timonv_ has joined #ruby
<Xeago> Gate: it is nothing in sshd_config
<Xeago> tried the same sshd_config on other servers, no change
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
<Xeago> how do I check iptables stuff?
timonv has quit [Read error: Connection reset by peer]
rmillerx has joined #ruby
rmillerx has quit [Client Quit]
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
<Xeago> iptables -L gives empty tables
Banistergalaxy has quit [Ping timeout: 264 seconds]
Banistergalaxy has joined #ruby
xandy is now known as xAndy
diegoviola has joined #ruby
<Gate> Xeago: iptables -L is exactly what I would do. Next step for me wouldbe to check the router