apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste >3 lines of text on gist.github.com || Rails is in #rubyonrails || Log: http://irclog.whitequark.org/ruby
ilyam has joined #ruby
TheFuzzball has quit [Ping timeout: 244 seconds]
t_j has joined #ruby
dnyy has quit [Remote host closed the connection]
<t_j> so i am using system() to start a daemon, but its not closing any of the parent processes sockets after the fork
<t_j> is there a way to fix this?
davidcelis has quit [Ping timeout: 255 seconds]
<ccooke> t_j: how are you making it a daemon?
andrewhl has joined #ruby
<t_j> ccooke: i'm starting a clamd daemon
<t_j> and that process ends up with the tcp socket for the MQ connection from the parent process
<t_j> system("/regressions/runs/17/engineA/sbin/clamd --config-file=/regressions/runs/17/etc/clamd.conf.A")
<t_j> clamregress clamd 6249 5 tcp4 10.7.5.189:43787 10.7.7.50:61612
<t_j> thats the socket from the parent
SegFaultAX|work2 has quit [Quit: Lost terminal]
<ccooke> you need to close the socket in the forked process before you exec clamd
ilyam has quit [Quit: ilyam]
r0bby is now known as robbyoconnor
<t_j> ccooke: i guess using Kernel.spawn with :close_others = true would fix this?
<ccooke> should do.
hemanth has quit [Read error: Connection reset by peer]
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
hemanth has joined #ruby
Yugo has quit [Excess Flood]
TheFuzzball has joined #ruby
<t_j> ccooke: thanks that worked
test__ has joined #ruby
ilyam has joined #ruby
QaDeS_ has joined #ruby
queequeg1 has left #ruby [#ruby]
queequeg1 has joined #ruby
macmartine has joined #ruby
<rking> atmosx: You can learn enough Gentoo stuff in about an hour to catch up to what you can do on Debian. Then all the hours after that are learning the awesome stuff you can't do on Debian.
<seanstickle> For instance, you can't really burn a lot of hours twiddling meaningless compilation settings in Debian.
<seanstickle> At least, not as easily as in Gentoo.
<seanstickle> :)
pecor has joined #ruby
ramblex has quit [Quit: ramblex]
QaDeS has quit [Ping timeout: 245 seconds]
Yugo has joined #ruby
ianbrandt has quit [Quit: ianbrandt]
havenn has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 260 seconds]
<rking> seanstickle: Plus you get to wait on compilation in between each twiddle.
<rking> Bonus.
<seanstickle> True
<rking> Extra bonus if twiddling with some Haskell thing (which for some reason takes 80 times longer to compile than C)
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
dnyy has joined #ruby
dnyy has quit [Remote host closed the connection]
matled has quit [Remote host closed the connection]
matled has joined #ruby
albemuth has quit [Quit: Computer has gone to sleep.]
pdtpatrick has quit [Quit: pdtpatrick]
klaas has quit [Ping timeout: 244 seconds]
yugui_zzz is now known as yugui
pecor has quit [Remote host closed the connection]
pecor has joined #ruby
pecor has quit [Remote host closed the connection]
test__ has quit [Remote host closed the connection]
macmartine has quit [Quit: macmartine]
igaiga has quit [Remote host closed the connection]
Ontolog has quit [Read error: No route to host]
yugui is now known as yugui_zzz
mengu has quit [Ping timeout: 276 seconds]
Ontolog has joined #ruby
keymone_ has joined #ruby
kenperkins has quit [Quit: Computer has gone to sleep.]
keymone has quit [Ping timeout: 264 seconds]
keymone_ is now known as keymone
klaas has joined #ruby
CheeToS has joined #ruby
jekhokie has joined #ruby
Sigma00 has quit [Ping timeout: 260 seconds]
kirun has quit [Read error: Connection reset by peer]
Sigma00 has joined #ruby
mpereira_ has quit [Ping timeout: 264 seconds]
perryh_away is now known as perryh
IrishGringo has joined #ruby
krz has joined #ruby
<t_j> next issue, how can i make mysql use a streaming result set rather than try to pull the whole result set into ram?
perryh is now known as perry
iocor has quit [Quit: Computer has gone to sleep.]
adeponte has quit [Remote host closed the connection]
KindOne has quit [Quit: ident]
Bosma has joined #ruby
bradhe has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
fowl has joined #ruby
nate76 has joined #ruby
yugui_zzz is now known as yugui
aantix has quit [Ping timeout: 240 seconds]
KindOne has joined #ruby
QaDeS_ has quit [Quit: Ex-Chat]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
blischalk has quit [Quit: blischalk]
mfridh has quit [Ping timeout: 256 seconds]
peterhil has joined #ruby
mockra has joined #ruby
pecor has joined #ruby
<pecor> test
pecor has left #ruby [#ruby]
<rking> Now I'll never know if the test passed. =(
blownapart has joined #ruby
<blownapart> hi friends I used to be varreli remember?
xnm has quit [Ping timeout: 260 seconds]
savage- has quit [Remote host closed the connection]
<offby1> you're in Witness Protection now?
<blownapart> offby1: nice ! no I did have some troubles though and quit ruby study. now I forget much of it...
<blownapart> offby1: thanks for writing I enjoyed this chatroom a lot.
`brendan has joined #ruby
aces1up has joined #ruby
<aces1up> anyone here familiar with uri?
<aces1up> I need some help with this paste bin.
tintin has joined #ruby
<tintin> zenspider?
bricker88 has quit [Quit: Leaving.]
kenperkins has joined #ruby
bricker88 has joined #ruby
<aces1up> tintin was that for me?
igotnolegs has joined #ruby
<tintin> zenspider ?
<tintin> I have a problem
blownapart has quit [Remote host closed the connection]
bricker88 has quit [Ping timeout: 245 seconds]
cgag has joined #ruby
Markvilla has quit [Quit: Markvilla]
thatRD has joined #ruby
<cgag> i just installed ruby via rbenv, then did gem install bundler, but when I try to run bundle i get "/usr/local/bin/bundle:9:in `require': no such file to load -- rubygems (LoadError)"
tymat has joined #ruby
<cgag> anyone dealt with this before?
tymat has left #ruby [#ruby]
wallerdev has quit [Quit: wallerdev]
Hanmac1 has joined #ruby
tintin has quit [Quit: tintin]
yugui is now known as yugui_zzz
Hanmac has quit [Ping timeout: 264 seconds]
albemuth has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
chriskk has joined #ruby
IrishGringo has quit [Ping timeout: 244 seconds]
benjammin891 has quit [Read error: Operation timed out]
apok has quit [Quit: apok]
havenn has joined #ruby
suborbital has joined #ruby
chriskk has left #ruby [#ruby]
jgrep has quit [Ping timeout: 255 seconds]
b26 has joined #ruby
mockra has quit [Remote host closed the connection]
adeponte has joined #ruby
mrsolo has quit [Quit: Leaving]
jgrep has joined #ruby
mockra has joined #ruby
IrishGringo has joined #ruby
Enekoos has quit [Remote host closed the connection]
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
chson has joined #ruby
havenn has quit [Remote host closed the connection]
sailias has joined #ruby
mockra has quit [Remote host closed the connection]
Ontolog has quit [Remote host closed the connection]
Ontolog has joined #ruby
shadoi has joined #ruby
jekhokie has quit [Ping timeout: 246 seconds]
adeponte has quit [Remote host closed the connection]
Ontolog has quit [Ping timeout: 240 seconds]
mockra has joined #ruby
ken_barber has quit [Ping timeout: 244 seconds]
thatRD has quit [Ping timeout: 252 seconds]
ken_barber has joined #ruby
havenn has joined #ruby
thatRD has joined #ruby
macmartine has joined #ruby
bradhe has joined #ruby
mockra has quit [Remote host closed the connection]
radic_ has joined #ruby
radic has quit [Disconnected by services]
radic_ is now known as radic
havenn has quit [Ping timeout: 245 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
igaiga has joined #ruby
perry is now known as perryh_away
chienpo has left #ruby [#ruby]
pu22l3r has joined #ruby
sailias has quit [Quit: Leaving.]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
igaiga_ has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
igaiga has quit [Ping timeout: 250 seconds]
macmartine has joined #ruby
ilyam has quit [Quit: ilyam]
Nisstyre has joined #ruby
igaiga has joined #ruby
pu22l3r has quit [Remote host closed the connection]
cbuxton has quit [Ping timeout: 272 seconds]
igaiga_ has quit [Ping timeout: 250 seconds]
eywu has quit [Ping timeout: 260 seconds]
werdnativ has quit [Ping timeout: 276 seconds]
c0rn_ has quit [Quit: Computer has gone to sleep.]
igaiga has quit [Ping timeout: 244 seconds]
igaiga has joined #ruby
mnaser has joined #ruby
iamlacroix has quit [Remote host closed the connection]
Yugo has quit [Ping timeout: 260 seconds]
maletor has joined #ruby
pecor has joined #ruby
ePirat- has joined #ruby
pecor has quit [Remote host closed the connection]
macmartine has quit [Read error: Connection reset by peer]
urbann has quit [Remote host closed the connection]
macmartine has joined #ruby
wpaulson has joined #ruby
hunglin has joined #ruby
tk___ has joined #ruby
pu22l3r has joined #ruby
jimeh has quit [Ping timeout: 260 seconds]
uris has joined #ruby
Gestahlt has quit [Remote host closed the connection]
jxf has joined #ruby
cout has quit [Ping timeout: 276 seconds]
ben_m has quit [Quit: Leaving]
techazard has quit [Quit: Leaving]
moura has joined #ruby
moura has quit [Client Quit]
Ontolog has joined #ruby
frishi has joined #ruby
mnaser has quit [Quit: Computer has gone to sleep.]
frishi has quit [Client Quit]
lobak has joined #ruby
Ontolog has quit [Remote host closed the connection]
benwoody has left #ruby [#ruby]
LowKey has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
noganex has quit [Ping timeout: 252 seconds]
xiaotian has joined #ruby
b26 has quit [Remote host closed the connection]
seanstickle has quit [Quit: Nihil sub sole novum]
noganex has joined #ruby
igaiga has quit [Remote host closed the connection]
linoj has joined #ruby
jalljo has joined #ruby
mvangal__ has quit [Remote host closed the connection]
wallerdev has joined #ruby
igaiga has joined #ruby
SiliconDon has quit [Quit: SiliconDon]
SeiZa has joined #ruby
SeiZa has left #ruby [#ruby]
Jackneill has joined #ruby
User_2012_irc has joined #ruby
igaiga has quit [Ping timeout: 244 seconds]
perryh_away is now known as perryh
quest88 has joined #ruby
User_2012_irc has quit [Quit: ChatZilla 0.9.88.2 [Firefox 13.0.1/20120614114901]]
macmartine has quit [Read error: Connection reset by peer]
igaiga has joined #ruby
macmartine has joined #ruby
thatRD has quit [Ping timeout: 260 seconds]
igaiga has quit [Remote host closed the connection]
albemuth has quit [Quit: Computer has gone to sleep.]
perryh is now known as perry
macmartine_ has joined #ruby
macmartine_ has quit [Read error: Connection reset by peer]
macmartine has quit [Ping timeout: 250 seconds]
artOfWar has quit [Remote host closed the connection]
perry is now known as perryh_away
wpaulson has joined #ruby
macmartine has joined #ruby
ipoval has joined #ruby
jamesaxl has quit [Ping timeout: 245 seconds]
Spooner has quit [Ping timeout: 276 seconds]
jamesaxl has joined #ruby
werdnativ has joined #ruby
cyong has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
wilmoore has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
hunglin1 has joined #ruby
hunglin has quit [Read error: Connection reset by peer]
ryan0x2_ has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
bambanx has joined #ruby
<bambanx> hey
kill-9_ has quit [Ping timeout: 244 seconds]
<bambanx> hi
td123 has quit [Read error: Connection reset by peer]
Nies has quit [Remote host closed the connection]
macmartine has joined #ruby
<offby1> nobody here but us zombie processes.
<bambanx> sup offby1
td123 has joined #ruby
krz has quit [Read error: Operation timed out]
<banisterfiend> offby1: hey eric
<banisterfiend> offby1: how is dat.
macmartine has quit [Read error: Connection reset by peer]
joast has quit [Quit: Leaving.]
<bambanx> hi banisterfiend
<banisterfiend> bambanx: you're not here, this isn't happening, go back to sleep
krz has joined #ruby
<bambanx> :/
<bambanx> why u say me that banisterfiend
macmartine has joined #ruby
<banisterfiend> bambanx: Has anyone really been far even as decided to use even go want to do look more like?
<bambanx> i dunno what the hell are you speaking but i dont care
<bambanx> go back to ruby
jcromartie has quit [Read error: Connection reset by peer]
jcromartie has joined #ruby
psmolen has joined #ruby
prometheus has quit [Ping timeout: 240 seconds]
macmartine has quit [Remote host closed the connection]
macmartine has joined #ruby
macmartine_ has joined #ruby
indian has joined #ruby
indian has quit [Changing host]
indian has joined #ruby
yannis has quit [Read error: Connection reset by peer]
yannis has joined #ruby
<offby1> how is dat? Dat is dat.
macmartine has quit [Ping timeout: 245 seconds]
macmartine_ is now known as macmartine
beilabs_ has quit [Ping timeout: 245 seconds]
td123 has quit [Quit: WeeChat 0.3.8]
beilabs has quit [Ping timeout: 272 seconds]
yannis has quit [Read error: Connection reset by peer]
yannis has joined #ruby
maahes has joined #ruby
yannis has quit [Read error: Connection reset by peer]
yannis has joined #ruby
yannis has quit [Remote host closed the connection]
RainbowDashh has joined #ruby
wpaulson has quit [Ping timeout: 245 seconds]
davidpk has joined #ruby
suborbital is now known as aokiorbital
beilabs_ has joined #ruby
beilabs has joined #ruby
aokiorbital has quit [Quit: to the batcave!]
yugui_zzz is now known as yugui
wpaulson has joined #ruby
bambanx has quit [Quit: Saliendo]
mobilegamelabs has joined #ruby
pu22l3r has quit [Remote host closed the connection]
thatRD has joined #ruby
fbernier has joined #ruby
prometheus has joined #ruby
perryh_away is now known as perryh
jgrevich has quit [Read error: Connection reset by peer]
fbernier has quit [Ping timeout: 272 seconds]
quest88 has quit [Quit: quest88]
banisterfiend` has joined #ruby
jgrevich has joined #ruby
nateberkopec has quit [Quit: Leaving...]
umttumt has joined #ruby
igaiga has joined #ruby
eywu has joined #ruby
eywu has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 245 seconds]
fbernier has joined #ruby
cesario has quit [Quit: Connection closed for inactivity]
wpaulson has quit [Ping timeout: 245 seconds]
jgrevich has quit [Quit: jgrevich]
niku4i has joined #ruby
niku4i has quit [Remote host closed the connection]
niku4i has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
macmartine_ has joined #ruby
mockra has joined #ruby
perryh is now known as perry
uc_ has joined #ruby
jxf has quit [Ping timeout: 245 seconds]
RudyValencia has joined #ruby
ilyam has joined #ruby
nate76 has quit [Ping timeout: 252 seconds]
ilyam has quit [Client Quit]
yugui is now known as yugui_zzz
cout has joined #ruby
cgag has quit [Quit: Leaving]
Boohbah has quit [Remote host closed the connection]
banisterfiend` has quit [Ping timeout: 255 seconds]
ryanf has joined #ruby
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
fbernier has quit [Ping timeout: 265 seconds]
Boohbah has joined #ruby
thatRD has quit [Ping timeout: 260 seconds]
jgrep has quit [Ping timeout: 245 seconds]
ABK has joined #ruby
Sheehan has joined #ruby
Sheehan has quit [Client Quit]
atmosx has quit [Ping timeout: 276 seconds]
subbyyy has joined #ruby
atmosx has joined #ruby
itnomad has joined #ruby
jgrep has joined #ruby
tomb_ has quit [Quit: Computer has gone to sleep.]
Hanmac1 is now known as Hanmac
rakunHo has joined #ruby
sillylogger has joined #ruby
krusty_ar has quit [Ping timeout: 245 seconds]
mayankkohaley has quit [Ping timeout: 244 seconds]
tomb_ has joined #ruby
brianpWins has joined #ruby
Yarou has quit [Quit: Leaving]
benjammin891 has joined #ruby
mayankkohaley has joined #ruby
project2501a has quit [Quit: Leaving]
uris has quit [Quit: leaving]
bambanx has joined #ruby
yannis has joined #ruby
niku4i has quit [Remote host closed the connection]
banghouse has quit [Remote host closed the connection]
bambanx has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
wvms has quit [Ping timeout: 240 seconds]
benjammin891 has quit [Ping timeout: 255 seconds]
mpereira has quit [Ping timeout: 248 seconds]
tommyvyo has joined #ruby
savage- has joined #ruby
freeayu has joined #ruby
liluo has joined #ruby
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
nikhil_ has joined #ruby
ABK has quit [Ping timeout: 260 seconds]
banisterfiend has joined #ruby
maletor has joined #ruby
nikhil___ has joined #ruby
nikhil___ has quit [Max SendQ exceeded]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
nikhil_ has quit [Read error: No route to host]
nikhil___ has joined #ruby
uc_ has quit [Quit: Page closed]
nikhil___ has quit [Read error: Connection reset by peer]
TheHunter_1039 has quit [Quit: TheHunter_1039]
linoj has quit [Quit: linoj]
macmartine_ has quit [Quit: macmartine_]
macmartine has joined #ruby
joast has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
akem has quit [Ping timeout: 264 seconds]
uc_ has joined #ruby
Faris1 has joined #ruby
Faris has quit [Read error: Connection reset by peer]
yannis has quit [Quit: yannis]
mockra has quit [Remote host closed the connection]
itnomad has quit [Quit: Leaving]
mockra has joined #ruby
trend has quit [Disconnected by services]
shadoi has quit [Quit: Leaving.]
akem has joined #ruby
raja has joined #ruby
raja is now known as Guest44010
ten00 has joined #ruby
Faris has joined #ruby
amh345 has joined #ruby
andrewhl has quit [Remote host closed the connection]
Faris1 has quit [Ping timeout: 260 seconds]
schovi has quit [Read error: Connection reset by peer]
eft has left #ruby [#ruby]
savage- has quit [Remote host closed the connection]
schovi has joined #ruby
ten00 has left #ruby ["Leaving..."]
ABK has joined #ruby
davidcelis has joined #ruby
mobilegamelabs has quit [Quit: http://www.MGGGGG.com/ap Angry Polygon - my first Android/iOS/Mac game!]
niku4i has joined #ruby
rippa has joined #ruby
nari has joined #ruby
jgrep has quit [Quit: Leaving.]
wilmoore has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
Faris has quit [Ping timeout: 244 seconds]
flak has joined #ruby
flak is now known as Guest83218
araujo has quit [Quit: Leaving]
rippa has quit [Ping timeout: 272 seconds]
beilabs_ has quit [Ping timeout: 252 seconds]
beilabs has quit [Ping timeout: 252 seconds]
ddv has quit [Ping timeout: 245 seconds]
ddv has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
uc__ has joined #ruby
uc_ has quit [Ping timeout: 246 seconds]
perry is now known as perryh_away
xiaotian has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
beilabs has joined #ruby
ebanoid has joined #ruby
beilabs_ has joined #ruby
uc_ has joined #ruby
uc__ has quit [Ping timeout: 265 seconds]
atmosx has quit [Ping timeout: 276 seconds]
atmosx has joined #ruby
subbyyy has quit [Quit: Leaving.]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
macmartine has quit [Quit: macmartine]
berkes has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
cesario has joined #ruby
beilabs_ has quit [Ping timeout: 260 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
berkes has quit [Client Quit]
beilabs has quit [Ping timeout: 260 seconds]
bambanx has joined #ruby
<bambanx> damn i cannot format my numbers well i waas finding in google but i can fix , how i can do for work with my numbers like this example: 2 millions = 2000.000,00 or 6,45 , always using two decimals after the comma
AlbireoX`Laptop has quit [Remote host closed the connection]
lonre has joined #ruby
bubu\a has quit [Ping timeout: 245 seconds]
imami|afk is now known as banseljaj
cantonic has quit [Quit: cantonic]
lonre has quit [Client Quit]
yugui_zzz is now known as yugui
RainbowDashh has quit [Quit: SLEEP MODE. <@suborbital> no i filtered out RainbowDashh join quit msgs - appearantly it filtered out everything]
QaDeS has joined #ruby
cantonic has joined #ruby
<Paradox> bambanx, use regex
mockra has quit [Remote host closed the connection]
LowKey has quit [Read error: Connection reset by peer]
<bambanx> i dont kknow how Paradox
<Paradox> and ActiveSupport has a lib for that too
hunglin1 has quit [Quit: Leaving.]
yaasii has quit [Quit: Leaving...]
ryanf has quit [Quit: leaving]
<Paradox> bambanx, ^
beilabs has joined #ruby
<bambanx> Paradox, where i shoud change the code for have my numbers with two decimals after the comma? like 2000,00
<Paradox> you just pass in a number
<Paradox> or you can monkeypatch that into Fixnum
<Paradox> it takes 2000 and turns it into 2,000
<Paradox> commify 2000 returns "2,000"
ananthakumaran has joined #ruby
beilabs_ has joined #ruby
<Paradox> if you mean converting numbers to human readable
<Paradox> you should use ActiveSupport
<bambanx> i need this 2000 = > 2000,00
<bambanx> using two float
<Paradox> oh you mean decimals
<bnagy> just format your numbers like normal human beings
Tick-Tock has quit [Ping timeout: 248 seconds]
<Hanmac> bambanx ... so you want format your numbers in an other locale? "2.000,00" looks like german :P
<bnagy> not some 1920s balkan finance magazine
thomasfedb has quit [Ping timeout: 272 seconds]
Chryson has quit [Ping timeout: 260 seconds]
<bambanx> :/
<Paradox> bambanx, to_f
RainbowDashh has joined #ruby
<Paradox> if you want localization
<Paradox> use activesupport
<Paradox> im going to bed
<Paradox> gnight
bubu\a has joined #ruby
<bambanx> thanks Paradox
tiripamwe has joined #ruby
Spooner has joined #ruby
schovi has quit [Remote host closed the connection]
werdnativ has quit [Quit: werdnativ]
igotnolegs has quit [Quit: Computer has gone to sleep.]
Spooner_ has joined #ruby
rakunHo has quit [Remote host closed the connection]
thomasfedb has joined #ruby
deryl has quit [Quit: deryl]
Tick-Tock has joined #ruby
Spooner has quit [Ping timeout: 260 seconds]
beilabs has quit [Ping timeout: 248 seconds]
wyanez has joined #ruby
beilabs_ has quit [Ping timeout: 264 seconds]
RainbowDashh has quit [Quit: SLEEP MODE. <@suborbital> no i filtered out RainbowDashh join quit msgs - appearantly it filtered out everything]
tewecske has joined #ruby
cherrypeel has quit [Quit: Leaving]
Faris has joined #ruby
workmad3 has joined #ruby
beilabs_ has joined #ruby
cjs has joined #ruby
freeayu has quit [Ping timeout: 260 seconds]
wpaulson_ has joined #ruby
randomautomator has joined #ruby
Shoobdidoo has joined #ruby
liluo has quit [Remote host closed the connection]
Niamkik has joined #ruby
Shoobdidoo has quit [Client Quit]
randomautomator has quit [Remote host closed the connection]
beilabs has joined #ruby
niku4i has quit [Remote host closed the connection]
beilabs_ has quit [Ping timeout: 260 seconds]
graspee has joined #ruby
freeayu has joined #ruby
tvw has joined #ruby
graspee has quit [Client Quit]
nari has quit [Ping timeout: 246 seconds]
rcs_ is now known as rcs
workmad3 has quit [Ping timeout: 245 seconds]
Bosma has quit [Ping timeout: 265 seconds]
beilabs_ has joined #ruby
Tick-Tock has quit [K-Lined]
thomasfedb has quit [K-Lined]
Faris has quit [Quit: Leaving.]
Guest44010 has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Faris has joined #ruby
qwerxy has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
Faris has quit [Ping timeout: 244 seconds]
krz has quit [Quit: krz]
Faris has joined #ruby
davidpk has quit [Quit: Computer has gone to sleep.]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
bubu\a has quit [Ping timeout: 252 seconds]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
cyong has quit [Quit: Leaving.]
krz has joined #ruby
timonv has joined #ruby
olrrai has quit [Ping timeout: 260 seconds]
apeiros_ has joined #ruby
Lupy has joined #ruby
<Lupy> does anyone know how to snap a 2d quad to mouse cursor position, I'm using WIN32, OpenGL 3.0
<Lupy> I've almost achieved this but having issues with the actual positioning of the mouse cursor to the quad
<Lupy> heres my code ->
bubu\a has joined #ruby
federic has joined #ruby
rippa has joined #ruby
yugui is now known as yugui_zzz
Guest83218 has quit [Ping timeout: 265 seconds]
igaiga has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
crazed has quit [K-Lined]
lteo has quit [K-Lined]
boredomist has quit [K-Lined]
qwerxy has joined #ruby
qwerxy has quit [Client Quit]
thomasfedb has joined #ruby
boredomist has joined #ruby
Tick-Tock has joined #ruby
monkegjinni has joined #ruby
TheHunter_1039 has joined #ruby
fayimora has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
fayimora has joined #ruby
rakm has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
abionic has joined #ruby
eurbach has joined #ruby
cantonic has quit [Quit: cantonic]
cantonic has joined #ruby
ABK has quit [Ping timeout: 246 seconds]
kaspernj has joined #ruby
<kaspernj> Is there a lib that can make [1, 2, 4, 5] become [[1, 2], [2, 4], [4, 5]] based on this yield: ... {|a, b| if (b - a) > 2; return false; else; true}
keymone has quit [Read error: Connection reset by peer]
keymone has joined #ruby
keanehsiao has joined #ruby
bambanx_ has joined #ruby
<keanehsiao> hi
<keanehsiao> anybody use dalli as cache client?
<apeiros_> kaspernj: each_cons + select
saschagehlich has joined #ruby
<keanehsiao> anybody use dalli as cache client? is that possible to store object directly into memcached? or other client support it??
<apeiros_> also, `if (b - a) > 2; return false; else; true end` --> `(b - a) > 2`
<kaspernj> apeiros_, thanks. I will read up on that :-)
tiripamwe has quit [Ping timeout: 245 seconds]
<apeiros_> actually, rather reject than select
<apeiros_> with select, you'd have to invert the condition :)
<kaspernj> apeiros_, would it also be possible to use that, if I wanted an additional result: [[1, 2], [2, 4], [4, 5]], disregarding the difference from the first and last element?
<keanehsiao> anybody use dalli as cache client? is that possible to store object directly into memcached? or other client support it??
<kaspernj> Oops
fayimora_ has joined #ruby
<apeiros_> kaspernj: I don't understand that question.
<kaspernj> I meant: [[1, 2], [2, 4], [4, 5], [1, 2, 4, 5]]
<apeiros_> …that last element makes no sense to me
<kaspernj> I will read up on "each_cons" and "select" to begin with then ;-) Thanks for your help
workmad3 has joined #ruby
bambanx has quit [Ping timeout: 255 seconds]
<apeiros_> kaspernj: reject, not select (they're essentially the same, reject simply uses the negated block expression)
<kaspernj> apeiros_, in an iteration, if you only looked at the previous and current element, 1, 2, 4 and 5 would all be grouped together.
blacktulip has joined #ruby
fayimora__ has joined #ruby
wyanez has quit [Quit: Saliendo]
<kaspernj> I want to use it, to limit the amount of elements to be used in a powerset.
jcromartie has quit [Read error: Connection reset by peer]
<apeiros_> kaspernj: still makes no sense to me how with that block and that data you'd end up with [[1, 2], [2, 4], [4, 5], [1, 2, 4, 5]]
<apeiros_> but maybe chunk is what you look for
jcromartie has joined #ruby
monkegjinni has quit [Remote host closed the connection]
fayimora has quit [Ping timeout: 264 seconds]
fayimora__ is now known as fayimora
<banisterfiend> ? Enumerable#cunk
jbw_ has left #ruby ["eeeeeeeeeeeeeeek"]
resure has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
swistak35 has joined #ruby
jhunter has quit [Ping timeout: 265 seconds]
<kaspernj> Okay. A more complicated example: [1, 2, 4, 5, 6, 9, 10, 11, 12, 13, 14] -> [[1, 2], [2, 4], [4, 5, 6], [9, 10, 11], [10, 11, 12], [11, 12, 13], [12, 13, 14]]
fayimora_ has quit [Ping timeout: 264 seconds]
<cjs> Can anybody tell me why this coredumps, apparently on the strcmp? http://codepad.org/UV7vwjPN
<kaspernj> As far as I can see, Enumerable#chunk only divides and doesnt do overlaps.
<apeiros_> kaspernj: it makes less and less sense… 4-2 > 2 # => false
<cjs> If I uncomment the commented-out code, it works.
<apeiros_> why'd you have a split there?
jhunter has joined #ruby
tiripamwe has joined #ruby
<apeiros_> kaspernj: or did you really mean b-a > 1 ?
<cjs> s/coredumps/segfaults/
<kaspernj> b would always be the current element in the array-iteration. a would be the previous (of the very first) element.
<keanehsiao> anybody use dalli as cache client? is that possible to store object directly into memcached? or other client support it??
<kaspernj> 4 - 1 > 2 # => false, which is why 1 and 4 isnt in a grouping togehter.
<kaspernj> Ooops I mean true
<kaspernj> 4 - 2 > 2 # => false, which is why there is a grouping of 2 and 4 (the second result).
<kaspernj> The important thing is that all elements can overlap. Like the two first results, where 2 is used in both of them. Or the second and third result, where 4 is used in both.
<workmad3> kaspernj: each_cons(2)
banseljaj is now known as imami|afk
<apeiros_> kaspernj: I guess it's too early in the morning. I really don't get when you compare what to what. but it seems unlikely that there's a method around for you to do what you want. you'll probably have to use a plain each (or each_with_index) and write the complete algorithm
<workmad3> oh, except you want to vary the length... that's odd
<apeiros_> workmad3: yeah, that's what I initially suggested. but he way of comparing seems not to be covered by that.
<apeiros_> and his explanations make less and less sense to me.
<kaspernj> I got it!
wallerdev has quit [Quit: wallerdev]
<workmad3> and pastebin? bleh
<workmad3> kaspernj: pastie or gist... pastebin is horrible, ad-loaded and slow
<kaspernj> workmad3, sry: https://gist.github.com/2977680
<workmad3> kaspernj: also, even after that code, I have no idea wth you're doing...
<workmad3> kaspernj: I suspect apeiros_ will be in the same position... but meh, if you're happy I guess :P
<apeiros_> workmad3: tl;dr :)
<apeiros_> gotta get something to eat first
<workmad3> apeiros_: reading it doesn't help ;)
<banisterfiend> any windows programmers here? how to write to the clipboard there?
<apeiros_> stupid body…why does it need food and sleep?
<kaspernj> workmad3, I am doing powersets. But I have to limit the amount of results, based on instead of one huge powerset I want to do multiple smaller ones grouped together by this principle.
<workmad3> it's doing *something*... but that's all I can determine from the code
<workmad3> powerset? isn't that the set of all subsets?
<kaspernj> I am not really awake either... Still drunk from Germany vs Greece yesterday :-)
<workmad3> that example, and that code, don't look like they do any form of powerset that I understand... :/
<kaspernj> workmad3, by example: [1, 2, 3] #=> [[], [1], [1, 2], [1, 3], [1, 2, 3], [2, 3] ...
<kaspernj> workmad3, this code is only to group array-elements together, and then do powersets based on them.
<workmad3> meh, it now sounds arbitrary and I've stopped caring :)
<cjs> So, any attempt to use STR2CSTR(interpreter_version) segfaults. I'm mystified. Help, anyone?
RainbowDashh has joined #ruby
dr0p has joined #ruby
<cjs> Well, not any attempt. I can print out, e.g., ptr[0] or ptr[5] from that struct.
RainbowDashh has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
<workmad3> cjs: heh, I searched for 'STR2CSTR ruby' and got a page of results saying it's been marked as obsolete since 1.8.4 or removed in 1.9.2 and replaced with StringValuePtr :)
<cjs> Oh, jeez. That never occurred to me.
tvw has quit [Remote host closed the connection]
maletor has joined #ruby
henn1nk has left #ruby ["WeeChat 0.3.6"]
<cjs> However, that also segfaults.
<workmad3> cjs: next question... what is interpreter_version? is it a string, or some struct?
<cjs> It's the result of rb_funcall(rb_cObject, const_get, 1, rb_str_new2("RUBY_VERSION"));.
<cjs> and I've checked the len and ptr values in that structure, and they make sense.
pk1001100011 has joined #ruby
<cjs> len is 5, and I can printf, with %c or %d, every ptr[0] through ptr[5].
Emmanuel_Chanel has quit [Quit: Leaving]
nflamel has joined #ruby
tiripamwe has quit [Ping timeout: 245 seconds]
igaiga has joined #ruby
<workmad3> cjs: just looking at code
<workmad3> cjs: try StringValuePtr(&interpreter_version)
prometheus has quit [Ping timeout: 240 seconds]
<workmad3> cjs: as rb_funcall gives you back a VALUE, and StringValuePtr is macro for a function that takes a volatile VALUE*
_md has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<workmad3> bleh, actually forget that... the macro should get the pointer
bigblack has joined #ruby
<workmad3> been a while since I properly looked at C code :)
hemanth has joined #ruby
<cjs> workmad3: So it works fine if I extract out a minimal test case. Must be something weird in my other code.
<cjs> Crap, so this is going to take hours to work out. I guess I'll do it on Monday.
<cjs> workmad3: Thanks for your help.
bigblack has quit [Killed (idoru (Spam is off topic on freenode.))]
<workmad3> cjs: heh, np
<workmad3> cjs: not that I was much help... I mostly just paddle in the ruby source :)
ipoval has quit [Quit: ipoval]
Emmanuel_Chanel has joined #ruby
<Hanmac> cjs is RUBY_API_VERSION_MAJOR not good enough?
freeayu has quit [Ping timeout: 245 seconds]
nflamel has quit [Quit: Leaving.]
<workmad3> gotta love segfaults... always willing to surprise you :)
maletor has quit [Quit: Computer has gone to sleep.]
tiripamwe has joined #ruby
CheeToS has quit [Ping timeout: 255 seconds]
cjs has quit [Ping timeout: 248 seconds]
<bambanx_> is possible pause a script and then continue ?
akem has quit [Ping timeout: 250 seconds]
freeayu has joined #ruby
rdg has joined #ruby
akem has joined #ruby
dekroning has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<dekroning> good morning
<bambanx_> hi
visof has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
fayimora has quit [Quit: Busy…..zzzzz]
freeayu has quit [Ping timeout: 245 seconds]
niku4i has joined #ruby
ramblex has joined #ruby
rdg has quit [Quit: ttfn]
hoelzro|away is now known as hoelzro
freeayu has joined #ruby
hoelzro is now known as hoelzro|away
hoelzro|away is now known as hoelzro
niku4i has quit [Ping timeout: 244 seconds]
hoelzro is now known as hoelzro|away
* shevy sends waves of segfaults over to workmad3
* shevy reconsiders
* shevy sends waves of segfaults over to EVERYONE!!!
jimeh has joined #ruby
hemanth has joined #ruby
* Hanmac cp /dev/zero shevy
<Hanmac> fear my Zero-Gun! XD
hemanth has quit [Read error: Connection reset by peer]
<banisterfiend> Hanmac: have you seen 'the comfort of strangers' ?
<shevy> oh no
<shevy> another pervert movie
<banisterfiend> Hanmac: or better yet, read the book?
<banisterfiend> shevy: you've seen it?
<shevy> no, but I also don't know what it is
<shevy> last movie I saw lately was "nightmare on elm street" :)
hemanth has joined #ruby
bosphorus has joined #ruby
<Hanmac> banisterfiend i readed >700p-books in less then 8h ... beat that
<banisterfiend> Hanmac: which book? a picture book?
<Hanmac> thats the only books you read, right?
hemanth has quit [Read error: Connection reset by peer]
callenb has joined #ruby
iocor has joined #ruby
<banisterfiend> Hanmac: Yeah
blacktulip has quit [Remote host closed the connection]
<banisterfiend> Hanmac: can i ask you a serious question now
* Hanmac is not serious on weekend
snearch has joined #ruby
indian has quit [Ping timeout: 265 seconds]
<banisterfiend> Hanmac: ok here's the question
<banisterfiend> Hanmac: will there be kisses, or will your love be *rough*?
hemanth has joined #ruby
<bambanx_> guys i have this in the begin of a while @text_venta_mia.label = "hola" and its work using wxruby , but if i move to the last of my while dont work , can be fo a garbage collector or some i dunno why
yugui_zzz is now known as yugui
banisterfiend has quit [Ping timeout: 244 seconds]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
<bambanx_> oh maybe can be cos i lost focus of my gui
banisterfiend has joined #ruby
<Hanmac> bambanx_ maybe wxruby is broken :P
<bambanx_> is weird
<bambanx_> is not the focus
<bambanx_> if i put on the begin of my while work but if i put below dont :/
<bambanx_> hanmac which gui library u recommend me ? qt?
<banisterfiend> bambanx_: what is your native language?
<bambanx_> spanish why banisterfiend ?
yugui has quit [Ping timeout: 245 seconds]
hemanth has quit [Read error: Connection reset by peer]
<bambanx_> you wanna send me take lesson of english before enter here? banisterfiend ?
<banisterfiend> bambanx_: no, im just curious
hemanth has joined #ruby
<Hanmac> bambanx_ rwx :P
<bambanx_> some people here are very egocentric
QaDeS has quit [Quit: Ex-Chat]
hemanth has quit [Read error: Connection reset by peer]
<banisterfiend> bambanx_: chile?
<bambanx_> why banisterfiend ? what is your point?
hemanth has joined #ruby
<banisterfiend> bambanx_: nothing, i was just curious
<bambanx_> o si quieres hablamos en mi lenguaje? banisterfiend ?
<bambanx_> es mas facil para mi
<bambanx_> :)
Foxandxss has joined #ruby
<shevy> @fw=@fwPt/@k
<shevy> that's code I am looking at right now
<bambanx_> lol
<bambanx_> looks nice
Foxandxss has quit [Client Quit]
Foxandxss has joined #ruby
<shevy> :(
<shevy> the whole code is such a spaghetti mess
<Hanmac> bambanx_ other people count?
<bambanx_> Hanmac, uh? what u mean?
<Hanmac> "some people here are very egocentric"
<bambanx_> yeah
<bambanx_> for m is very hard ask here sometimes in english , is should learn other language for study and speak here , and sometimes if i cannot talk my question very good or if is not a "advanced" question some people looks like mad
<bambanx_> or sarcastic
hemanth has quit [Ping timeout: 260 seconds]
<bambanx_> well it show his culture and education
freeayu has quit [Ping timeout: 246 seconds]
yugui has joined #ruby
<Hanmac> banister has education?
<Tasser> a little bit
Faris1 has joined #ruby
iamlacroix has joined #ruby
hemanth has joined #ruby
ABK_ has joined #ruby
Faris has quit [Ping timeout: 246 seconds]
Markvilla has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
freeayu has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
abionic has quit [Ping timeout: 244 seconds]
uc_ has quit [Ping timeout: 260 seconds]
hemanth has quit [Ping timeout: 260 seconds]
moosya has joined #ruby
bambanx_ has quit [Quit: Saliendo]
Faris1 has quit [Quit: Leaving.]
Faris has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Remote host closed the connection]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
beilabs has quit [Ping timeout: 240 seconds]
beilabs_ has quit [Ping timeout: 272 seconds]
tewecske has quit [Quit: Leaving.]
A124 has joined #ruby
lxsameer has quit [Ping timeout: 255 seconds]
keymone has quit [Read error: Connection reset by peer]
keymone has joined #ruby
punkrawkR has joined #ruby
nirakara has joined #ruby
circlicious1 has joined #ruby
beilabs_ has joined #ruby
n1x has joined #ruby
visof has quit [Ping timeout: 260 seconds]
beilabs has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
frishi has joined #ruby
freeayu has quit [Ping timeout: 246 seconds]
saschagehlich has quit [Quit: saschagehlich]
resure has quit [Remote host closed the connection]
<circlicious1> been comin back to ruby after quite sometime, got some questions, anyone awake?
resure has joined #ruby
bier has quit [Ping timeout: 265 seconds]
lxsameer has quit [Client Quit]
Faris1 has joined #ruby
hemanth has joined #ruby
Faris has quit [Read error: Connection reset by peer]
tiripamwe has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
<Tasser> nah, all zombified, better get your shotgun
write has joined #ruby
write has quit [Quit: write]
<circlicious1> what are the GEM_PATH used for ?
freeayu has joined #ruby
<shevy> circlicious1 only real way is to ask your question, then idle ;)
A124 has left #ruby [#ruby]
cjs226 has joined #ruby
<circlicious1> that i see in $ gem env
n1x has quit [Ping timeout: 245 seconds]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
<circlicious1> what does this code do - gem 'gem_name' ? :/
hemanth has quit [Read error: Connection reset by peer]
<shevy> circlicious1 I think this is bundler or something
<shevy> it tries to require a gem perhaps?
hemanth has joined #ruby
<Hanmac> shevy its when you want to say wich excactly version you want ... it does not replace require
<circlicious1> i saw this code in a file, which is not a gemfile
<circlicious1> um
<Hanmac> and it works without bundler
<circlicious1> i want to require this gem called 'slim'
<circlicious1> Hanmac: what does it do exactly?
<Hanmac> then you have the gem slim installed, require "slim" sould work
akem has quit [Ping timeout: 264 seconds]
akem has joined #ruby
<circlicious1> Hanmac: i installed the slim gem in a directory that i specified by -i during gem install slim
bier has joined #ruby
timonv has joined #ruby
<circlicious1> simply require 'slim' is not working, what should i do ?
hemanth has quit [Read error: Connection reset by peer]
umttumt has quit [Remote host closed the connection]
<shevy> what ruby version you use circlicious1
hemanth has joined #ruby
<circlicious1> 1.9.2
<circlicious1> but i guess server has 1.9.3
<Hanmac> its not a version problem ... when he install it at a path rubygems cant found, its his problem
<circlicious1> what should i be doing now?
tiripamwe has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<Hanmac> you have require "slim" in your file? add ENV["GEM_PATH"] += "YOURPATH" before it
hemanth has joined #ruby
<Hanmac> hm ok good idea but does not work
<circlicious1> seems like ENV['GEM_PATH'] is empty
<circlicious1> or nil
<shevy> I dont know what is gem path
Faris1 has quit [Ping timeout: 256 seconds]
<shevy> can you upload the result of "gem env"?
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
<circlicious1> shevy: http://pastie.org/4137349
francisfish has joined #ruby
linoj has joined #ruby
<shevy> oh interesting
<shevy> did you compile that ruby on your own?
akem has quit [Ping timeout: 240 seconds]
<circlicious1> shevy: i think yes, because 1.9.2 was not available in the repo at that time. how did you know ?
<shevy> the path to /usr/local is the default --prefix target when no specific --prefix target was given
<shevy> like you do run "./configure"
<shevy> if it would reside at /usr, it would have been "./configure --prefix=/usr" instead
<shevy> your gem path dir should be /usr/local/lib/ruby/gems/1.9.1 I think ?
<shevy> hmmmm wait
<circlicious1> lol?
<circlicious1> sorry i don't understand
<shevy> oh yes, seems to be fine
<shevy> I show you my paths
<Hanmac> circlicious1: Gem.path << "YourPath"
hemanth has quit [Ping timeout: 246 seconds]
hemanth has joined #ruby
pk1001100011 has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
<banisterfiend> apeiros_: hehe, someone wants to use pry as a pure command console, and not allow ruby code execution o_O: https://gist.github.com/0d56bcbf8f7eedd57634
<circlicious1> Hanmac: hm ,i use that, i can see it in Gem.path, but slim still doesnt load :/
gtuckerkellogg has joined #ruby
hemanth_ has joined #ruby
<banisterfiend> can someone name a gem that uses c extensions?
<banisterfiend> C first, also a C++ gem could be fun too
Faris has joined #ruby
<shevy> require 'slim'
<shevy> Gem::LoadError: Could not find temple (
<shevy> circlicious1 I did gem install slim
<shevy> slim*.gem was downloaded
<circlicious1> :S
hemanth has quit [Ping timeout: 265 seconds]
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
jamesaxl has quit [Ping timeout: 248 seconds]
Niamkik has quit [Remote host closed the connection]
<bnagy> anyone know where ruby -v gets its info?
<bnagy> jruby reportss blah blah [Windows 7-amd64-java]
<circlicious1> shevy: Hanmac : i am so confued, it doesnt work
<circlicious1> now i even created a .gemrc added paths, shows up in gem env, file doesnt load :/
<shevy> well Hanmac is the one who recommends gemrc perhaps, I dont
<shevy> I know that giving the path to gemrc is not needed
<circlicious1> i have a question actually, say a gem exists in /usr/local/lib/ruby/gems/1.9.1 how does require 'gem_name' load it ?
hemanth_ has quit [Read error: Connection reset by peer]
<circlicious1> cuz gem_name is not there in 1.9.1/gem_name, its usually something like 1.9.1/gem_name-1.0.2/lib/gem_name.rb
hemanth_ has joined #ruby
<atmosx> Good morning everyone
<sillylogger> hey i'm working on a plugin and i need to let people know what the extension of a file is...
<sillylogger> for example-2.1.3.tar.gz
<sillylogger> would the extension be .tar.gz
<sillylogger> or just .gz
dekroning has quit [Read error: Operation timed out]
pk1001100011 has joined #ruby
hunglin has joined #ruby
<circlicious1> i am sure its s amll preoblem, no one can solve?
<shevy> circlicious1 in 1.9.x yes
<shevy> if gem name is "foobar", then require 'foobar' alone will work
<shevy> you can test this in irb
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
<shevy> all installed gems are in the subdirectory cache/
jimeh has quit [Ping timeout: 248 seconds]
<shevy> perhaps /usr/local/lib/ruby/gems/1.9.1/cache or /usr/local/lib/ruby/gems/cache
<shevy> circlicious1 also try "gem install wirble". then load irb, then do:
<shevy> require 'wirble'
hemanth_ has quit [Read error: Connection reset by peer]
Faris has quit [Quit: Leaving.]
Faris has joined #ruby
wpaulson_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Spooner_ has quit [Ping timeout: 260 seconds]
keymone has quit [Read error: Connection reset by peer]
keymone has joined #ruby
nirakara has quit [Quit: This computer has gone to sleep]
monkegjinni has quit [Remote host closed the connection]
<circlicious1> shevy: so when i do require 'gem_name', the gem is looked up in gems/gem_name-some-version/lib/gem_name.rb of gem paths?
<shevy> circlicious1 not first
<shevy> in that example you gave
<shevy> gems/gem_name-some-version/lib/gem_name.rb
<shevy> this is required by another file usually
<shevy> gems/gem_name-some-version.rb
<shevy> this is the reason why this works btw:
<shevy> require 'gem_name-some-version'
<shevy> rubygems adds the gems/ subdir path to $: I think
<shevy> and require 'gem_name-some-version' first requires "gems/gem_name-some-version.rb", which then includes the rest of the files belonging to that gem
<shevy> circlicious1 did you install wirble yet?
<shevy> it's more a test to see if you can use gems
TaTonka has quit [Quit: ZNC - http://znc.sourceforge.net]
<circlicious1> there are no .rb files in my gems folder of any gem path shevy
<circlicious1> shevy: i can use gems because i am already used some before like bcrypt-ruby
<circlicious1> its just that i am coding ruby again after like 8 months, so i dont remember ,uch unfortunately
<circlicious1> i just used haml too
ghanima has quit [Quit: Leaving.]
akem has joined #ruby
monkegjinni has joined #ruby
dr0p has quit [Remote host closed the connection]
<shevy> ok but
<shevy> there is the cache/ subdirectory right?
<shevy> lib/ruby/gems/1.9.1/cache/
<circlicious1> yup
<shevy> and inside that directory you see .gem files?
<shevy> ok
<shevy> try to "gem unpack" one gem there
<circlicious1> that has all gem_name-version.gem files
<shevy> yeah
<shevy> this is copied to the SITE DIR path
<shevy> i.e. "gem unpack wirble*.gem"
<shevy> cd wirble*
<circlicious1> let me try
<shevy> hmmm
<shevy> wirble is a bad example actually
<shevy> anyway
<shevy> if you did "gem install slim", you will find slim there too
<circlicious1> it creates a folder with contents that i can see in gems/gems ,shevy
<shevy> yeah, it will make the subdirectory there
<shevy> cache/ is just the backup anyway
<circlicious1> ok, so how does loading work, which was my initial question :P
<shevy> if you want to keep those gem files you can copy them to another place too, I do that always for gems I want to keep
<shevy> as said
<shevy> if I install wirble
<shevy> require 'wirble' will work
sillylogger has quit [Quit: sillylogger]
<shevy> lib/ruby/site_ruby/1.9.1/
<circlicious1> but wirble or wirble.rb aint in the GEM PATH
<circlicious1> its in GEM_PATH/gems/lib/wirble.rb
<circlicious1> so thats how it wokrs? it looks in gems/lib/wirble.rb of all GEM_PATH ?
<circlicious1> looks for
<shevy> hmmm
<circlicious1> sorry,gems/wirble-version/lib/wirlbe.rb
<shevy> moment, I am trying to find all wirble.rb right now
<shevy> what I know is that rubygems modifies require
<circlicious1> ok fine
<circlicious1> i guess thats how it works
<circlicious1> anyway now, why cant it load slim :(
krusty_ar has joined #ruby
uc has joined #ruby
schovi has joined #ruby
fayimora has joined #ruby
<shevy> ok wirble.rb is here... /Programs/Ruby/1.9.3p194/lib/ruby/gems/1.9.1/cache/wirble-0.1.3/lib/wirble.rb /Programs/Ruby/1.9.3p194/lib/ruby/gems/1.9.1/gems/wirble-0.1.3/lib/wirble.rb
<shevy> lib/ruby/gems/1.9.1/gems/wirble-0.1.3/lib/wirble.rb
<circlicious1> yup
<shevy> and $: has those gems
<circlicious1> :)
<shevy> did you do pp $: ?
<shevy> in irb
<shevy> aha
<circlicious1> i just did $:
<shevy> all the gems are at: /Programs/Ruby/1.9.3p194/lib/ruby/gems/1.9.1/gems/
<circlicious1> it shows the $LOAD_PATH
<shevy> including slim
kaspernj_ has joined #ruby
TaTonka has joined #ruby
<shevy> so for you it should be at /usr/local/lib/ruby/gems/1.9.1/gems/
<shevy> and slim should be there too, extracted
<shevy> if you then cd into that slim directory
<shevy> and then into lib/ there
<shevy> you will see this:
saschagehlich has joined #ruby
frishi has quit [Quit: Leaving...]
<shevy> slim/ directory, and slim.rb file
<shevy> and when you do
<shevy> require 'slim'
<shevy> that slim.rb file will be required
<shevy> you see?
<shevy> this slim.rb file has lines like:
<shevy> require 'slim/parser'
<shevy> require 'slim/filter'
<shevy> so you can see that it requires the rest of slim .rb files
fayimora_ has joined #ruby
fayimora has quit [Read error: Connection reset by peer]
fayimora_ is now known as fayimora
kaspernj has quit [Ping timeout: 245 seconds]
cuppsy has quit [Read error: Operation timed out]
circlicious1 has quit [Ping timeout: 264 seconds]
circlicious1 has joined #ruby
<circlicious1> shevy: yep
<circlicious1> ok ,let me install slim globally
frishi has joined #ruby
<circlicious1> shevy: i have this /usr/local/lib/ruby/gems/1.9.1/gems/slim-1.2.2/lib/slim.rb
samuel02 has joined #ruby
tris has quit [Ping timeout: 252 seconds]
<shevy> well it should work already when it was installed like that
<shevy> what error do you get when you start irb and do
<shevy> require 'slim'
Morkel has joined #ruby
kaspernj_ has quit [Ping timeout: 246 seconds]
<circlicious1> ok shevy , it works
<circlicious1> when i installed them globally in /usr/local/lib...
linoj has quit [Quit: linoj]
wpaulson has joined #ruby
<circlicious1> but when i install in my own dir (which is there in GEM_PATH) - it doesnt :/
<shevy> ah
<shevy> it should work though
<shevy> hehe
jonathanwallace has quit [Remote host closed the connection]
Jake232 has joined #ruby
b26 has joined #ruby
schovi has quit [Remote host closed the connection]
pk1001100011 has quit [Ping timeout: 246 seconds]
Kartagis has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
linoj has joined #ruby
schovi has joined #ruby
<circlicious1> shevy: :P
<circlicious1> did you try ?
wpaulson_ has joined #ruby
subbyyy has joined #ruby
pk1001100011 has joined #ruby
<shevy> hmm no
daniel_hinojosa has quit [Ping timeout: 245 seconds]
<shevy> I always use ruby globally
cantonic has quit [Quit: cantonic]
jimeh has joined #ruby
<circlicious1> shevy: think that i dont have sudo acess on the hosting/server :D
lobak has quit [Quit: Leaving]
<circlicious1> also doing in the home is nto a cool option atm
ABK_ has quit [Ping timeout: 260 seconds]
<circlicious1> got so much work to do, but this little bitch has consumed a lot of time. i am really frustrated now
jimeh has quit [Client Quit]
wpaulson has quit [Ping timeout: 264 seconds]
wpaulson_ is now known as wpaulson
<shevy> aha
<circlicious1> i wrote most of the code in node.js, but now for some reason i have to port to ruby, and as i said havent coded it in a long time :/
dhodgkin has quit [Ping timeout: 252 seconds]
<shevy> the gurus hang out on #rubygems btw, perhaps someone knows why it does not work for you when it should
<circlicious1> but i am sure i am doing things right, just doesnt work
<b26> morning
<circlicious1> ok, lets see
<shevy> circlicious1 I am trying to port ruby-fpdf to 1.9.x right now
Altman has joined #ruby
<shevy> the code is dreadful
<shevy> I feel as if it's the first time I look at "ruby" code myself
<shevy> what is worse is that the style is inconsistent
<shevy> different people wrote different things
<shevy> that one guy used lots of "if foo then"
<shevy> another guy, uses completely different way to convey his ideas
<shevy> it's like a multilanguage platform
chessguy has joined #ruby
qwerxy has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<circlicious1> ya its sad :D
<shevy> this is amazing:
mvm3012 has joined #ruby
<shevy> module PDF_Bookmark; def self.extend_object(o); o.instance_eval('@outlines,@OutlineRoot=[],0'); super(o); end
<shevy> Hanmac, please look at this ^^^
<apeiros_> banisterfiend: wtf? :)
<shevy> I've never seen such use of instance_eval before
<circlicious1> pdf ...
sailias has joined #ruby
<circlicious1> well, i usually get those job done in PHP :D :P
<shevy> hehe
<shevy> hopefully I can stay way from PHP
<circlicious1> Ruby/node when i need to code for fun and good time
<circlicious1> or do something that might not be cool with PHP
<circlicious1> although i am kinda getting away from PHP these days
<circlicious1> just not coding it much
<Hanmac> shevy o.instance_variable_set ?
mvm3012 has left #ruby [#ruby]
<circlicious1> mostly Javascript
<circlicious1> Hanmac: do u think u could try quickly installing slim in a custom folder and not the global ones or home one and see whether rewuire works for you or not?
<Hanmac> i did not try it
<Altman> Hi, Does any one know why it takes so many memory while I deploy my rails app into tomcat using warbler?
<shevy> Hanmac hehehe
<circlicious1> Hanmac: i know its too much to ask probably but ust if you would like to try
<shevy> Hanmac yeah but that guy used instance_eval
<shevy> I swear, eval is the root of all evil
fayimora_ has joined #ruby
<circlicious1> cd some/path && gem instlal slim -i gems/ && export GEM_PATH... && irb -> require 'slim'
saschagehlich has quit [Quit: saschagehlich]
<circlicious1> although i have created a gemrc file that has my path, even then it doesnt work :/
<Hanmac> circlicious1: you could ask banisterfiend
<Hanmac> shevy: and he use the bad variant of instance_eval ... it has an second form too
callenb has quit [Ping timeout: 260 seconds]
callenb63 has joined #ruby
<banisterfiend> circlicious1: i take your use of irb as a personal insult, and refuse to help u :P
callenb63 has quit [Read error: Connection reset by peer]
<banisterfiend> (jk)
jimeh has joined #ruby
<banisterfiend> (but still not helping, but more out of laziness)
fayimora has quit [Ping timeout: 264 seconds]
fayimora_ is now known as fayimora
<circlicious1> banisterfiend: i said irb because tits q uicker wway compared to creating a file and writing the code out there
krusty_ar_ has joined #ruby
<circlicious1> if you could give my problem 2mins, i would really be obliged
krusty_ar has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
thatRD has joined #ruby
ABK_ has joined #ruby
KL-7 has joined #ruby
atmosx has quit [Remote host closed the connection]
RainbowDashh has joined #ruby
Eldariof-ru has joined #ruby
fayimora has quit [Ping timeout: 264 seconds]
benjammin891 has joined #ruby
atmosx has joined #ruby
Faris has quit [Quit: Leaving.]
amacgregor_osx has joined #ruby
Faris has joined #ruby
nwest has joined #ruby
ABK_ has quit [Ping timeout: 260 seconds]
<nwest> Is there a good workaround for require_relative type behavior on 1.8.7 in a nested folder? (I'm trying to get RSpec working)
<nwest> I'm trying to avoid messing with $LOAD_PATH
jgrevich has joined #ruby
<Hanmac> get rib of mostly dead software
charliesome has joined #ruby
<circlicious1> whats a good way to execute a command and pass some data to it's stdin in ruby ?
<banisterfiend> Hanmac: hey how do i extract "binding_of_caller.c" from this: "/Users/john/.rvm/gems/ruby-1.9.2-p180/gems/binding_of_caller-0.6.7/ext/binding_of_caller/binding_of_caller.c"
<banisterfiend> i just want the file name
<circlicious1> Pathname.new(path).basename ?
<circlicious1> maybe File.basename(path)
<circlicious1> nvm
<banisterfiend> ah yes, basename
<banisterfiend> thanks
<circlicious1> banisterfiend: now time to help me :D
ben_m has joined #ruby
thatRD has quit [Quit: leaving]
thatRD has joined #ruby
mpereira has joined #ruby
<banisterfiend> circlicious1: no deal :P
b26 has quit [Ping timeout: 240 seconds]
Guest33170 has joined #ruby
amacgregor_osx is now known as AllanMacGregor
Faris has quit [Read error: Connection reset by peer]
explody has quit [Remote host closed the connection]
Faris has joined #ruby
<circlicious1> :(
explody has joined #ruby
m_3 has quit [Quit: leaving]
sepp2k has quit [Remote host closed the connection]
m_3 has joined #ruby
m_3_ has joined #ruby
rakm has joined #ruby
fayimora has joined #ruby
SeySayux has quit [Ping timeout: 276 seconds]
shevy has quit [Ping timeout: 272 seconds]
samuel02 has quit [Remote host closed the connection]
SeySayux has joined #ruby
qwerxy has quit [Quit: offski]
ZachBeta has joined #ruby
SeySayux has quit [Read error: Operation timed out]
qwerxy has joined #ruby
schovi has quit [Remote host closed the connection]
nwest has quit [Quit: Computer has gone to sleep.]
Faris has quit [Quit: Leaving.]
Faris has joined #ruby
wallunit has joined #ruby
mickn has joined #ruby
krz has quit [Read error: Connection reset by peer]
Gavilan has quit [Ping timeout: 245 seconds]
nari has joined #ruby
uc has quit [Ping timeout: 246 seconds]
uc has joined #ruby
shevy has joined #ruby
Gavilan has joined #ruby
Guest33170 has quit [Ping timeout: 248 seconds]
SeySayux has joined #ruby
<circlicious1> how do you pipe data to a process's stdin?
Gavilan has quit [Ping timeout: 248 seconds]
uc_ has joined #ruby
uc has quit [Ping timeout: 260 seconds]
niklasb has joined #ruby
yugui is now known as yugui_zzz
tvw has joined #ruby
rdg has joined #ruby
Faris1 has joined #ruby
chessguy has quit [Remote host closed the connection]
iori has joined #ruby
Zespre has joined #ruby
thatRD has quit [Quit: leaving]
Faris has quit [Ping timeout: 248 seconds]
snearch has quit [Quit: Verlassend]
Gavilan has joined #ruby
deanh has joined #ruby
azm has joined #ruby
thatRD has joined #ruby
benjammin891 has quit [Remote host closed the connection]
neku has joined #ruby
Guest33170 has joined #ruby
thatRD has quit [Client Quit]
Zespre has left #ruby [#ruby]
luckman212 has joined #ruby
Gavilan has quit [Ping timeout: 264 seconds]
Gavilan has joined #ruby
thatRD has joined #ruby
<circlicious1> man
<circlicious1> shevy: there?
yeggeps has quit [Ping timeout: 250 seconds]
lkba has quit [Ping timeout: 245 seconds]
resure has quit [Remote host closed the connection]
subbyyy has quit [Quit: Leaving.]
resure has joined #ruby
rdg has quit [Quit: [quit]]
<bnagy> popen3 is the easiest way
fgwaegeawgfwa has joined #ruby
Guest33170 has quit [Ping timeout: 246 seconds]
qwerxy has quit [Quit: offski]
<circlicious1> bnagy: i am trying this, http://pastie.org/4137927 , but it hungs up
azm has quit [Quit: Leaving]
Gavilan has quit [Ping timeout: 245 seconds]
mnaser has joined #ruby
freeayu has quit [Quit: 离开]
tockitj has joined #ruby
<circlicious1> bnagy: any idea why?
<tockitj> how to init state of rails application ?
mpereira_ has joined #ruby
<banisterfiend> tockitj: join #rubyonrails
qwerxy has joined #ruby
<tockitj> banisterfiend, thank you
<Hanmac> tockitj ask in #rubyonrails
jonathanwallace has joined #ruby
seanstickle has joined #ruby
chessguy has joined #ruby
<tockitj> hanmac, i was in #rails for half-hour with no success, thanks for pointer
fayimora has quit [Quit: Busy…..zzzzz]
uris has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
Faris has joined #ruby
Niamkik has joined #ruby
tockitj was kicked from #ruby by apeiros_ [cross posting usual means kick, so here you go]
Altman has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Faris1 has quit [Ping timeout: 245 seconds]
td123 has joined #ruby
miho has joined #ruby
m_3_ is now known as m_3-backstage
FortyTwo42 has joined #ruby
Faris has quit [Ping timeout: 255 seconds]
mjb2k has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
Faris has joined #ruby
jonathanwallace has joined #ruby
resure is now known as resure_away
RainbowDashh has quit [Quit: SLEEP MODE. <REDACTED SUBORBITAL QUOTE HERE>]
Morkel has quit [Quit: Morkel]
iori has quit [Remote host closed the connection]
mickn has quit [Quit: Leaving]
Guest33170 has joined #ruby
fantazo has quit [Ping timeout: 244 seconds]
miho has quit []
qwerxy has quit [Quit: offski]
jonatha__ has joined #ruby
krz has joined #ruby
jonatha__ has quit [Read error: Connection reset by peer]
ZachBeta has quit [Quit: Computer has gone to sleep.]
deanh has quit [Quit: deanh]
jonathanwallace has quit [Ping timeout: 272 seconds]
bluenemo has quit [Remote host closed the connection]
Guest33170 has quit [Ping timeout: 244 seconds]
regularfry has joined #ruby
andrewhl has joined #ruby
fantazo has joined #ruby
baroquebobcat has joined #ruby
jeff_sebring has joined #ruby
jeff_sebring has quit [Client Quit]
jeff_sebring has joined #ruby
neku is now known as neku|away
workmad3 has joined #ruby
samuel02 has joined #ruby
<shevy> circlicious1 got disconnected... could not read the last things that were sent
KL-7 has quit [Quit: Leaving]
mnaser has quit [Ping timeout: 240 seconds]
SeanLazer has quit [Quit: SeanLazer]
<circlicious1> shevy: no worries
mnaser has joined #ruby
<circlicious1> thanks bnagy workin gr8, <3 ruby
n1x has joined #ruby
rmc3 has joined #ruby
keanehsiao has quit [Quit: keanehsiao]
k_89 has joined #ruby
<k_89> hey .. does $ have a special meaning in ruby ?
<k_89> can't really google that one up properly
yannis has joined #ruby
<Hanmac> k89 $variables are global variables
jonathanwallace has joined #ruby
<apeiros_> there's also a couple of special variables that partially behave like globals
deanh has joined #ruby
<k_89> k .. what would be the difference between a $var and a normal var ... if i just define one of each in a script, without any module, class and all ... will they behave similarily?
<circlicious1> if i define a variable and then call a class method to which i pass a block, is that var not going to be accessible insid ethe block?
<Hanmac> k_89 read a ruby beginner tutorial
<regularfry> They differ in scope, but are otherwise the same
workmad3 has quit [Ping timeout: 240 seconds]
<k_89> Hanmac, k .. ( have read a few but didn't find anything about $variables .. i think googling $ variables should do )
<k_89> thans i think it'd be better to try some stuff out in irb
ZachBeta has joined #ruby
<elektronaut> in practice you probably won't use global variables much if ever, apart from the system ones
<k_89> guess show but i should know about them at least :P
kirun has joined #ruby
EzeQL has quit []
neku|away is now known as neku
uc_ has quit [Ping timeout: 264 seconds]
<Hanmac> in my selfwritten scripts i never used any kind of global variable :P
uc has joined #ruby
mengu has quit [Quit: Konversation terminated!]
thone has joined #ruby
igaiga has quit [Remote host closed the connection]
kill-9_ has joined #ruby
jimeh has quit [Ping timeout: 265 seconds]
prometheus has joined #ruby
IrishGringo has quit [Remote host closed the connection]
<elektronaut> $0 is handy. i've used it to rewrite process names so it'll be easier to inspect what they are doing.
thone_ has quit [Ping timeout: 260 seconds]
mrgreenfur has joined #ruby
<mrgreenfur> Has anyone used Stalker with Beanstalkd?
RainbowDashh has joined #ruby
thecreators has joined #ruby
yeggeps has joined #ruby
nari has quit [Ping timeout: 252 seconds]
undeclaredx has joined #ruby
g0bl1n has joined #ruby
fantazo has quit [Remote host closed the connection]
n1x has quit [Quit: "hacking on some c0d3"]
prometheus has quit [Ping timeout: 260 seconds]
krz has quit [Read error: Connection reset by peer]
uc has quit [Ping timeout: 260 seconds]
uc has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
quest88 has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest33170 has joined #ruby
banghouse has joined #ruby
tiripamwe has quit [Ping timeout: 245 seconds]
resure_away is now known as resure
deryl has joined #ruby
Faris has quit [Ping timeout: 265 seconds]
<circlicious1> stdout.gets/read in popen3 does not preserve newlines?
deryl has quit [Read error: Connection reset by peer]
<apeiros_> circlicious1: should
nari has joined #ruby
deryl has joined #ruby
<circlicious1> apeiros_: this is my code - http://pastie.org/private/w5nbxsgizzqrixq0kyurw - the output does not have newlines
Foxandxss has joined #ruby
<circlicious1> i mean o.gets , while it should
<circlicious1> 1 more thing, when codez is a heredoc, it doesnt seems to work, thats why i used \n" + :/
Faris has joined #ruby
tiripamwe has joined #ruby
jonathanwallace has quit [Ping timeout: 272 seconds]
<regularfry> circlicious1: replace the call to slimrb with "cat", and see if you get newlines
<circlicious1> popen3("cat") hmm
<circlicious1> just givesme the first line
<circlicious1> hm, maybe it doesnt have newlines at all
<circlicious1> but when i execute the command and pipe in data via stdin, they do have newlines
<regularfry> oh, I see - it's gets. IO#gets splits on line boundaries.
<regularfry> You want #read.
<circlicious1> installing the gem is gem install slim if you would like to check
jonathanwallace has joined #ruby
<circlicious1> regularfry: cat has newlines yeh
tiripamwe has quit [Ping timeout: 245 seconds]
<circlicious1> ok, now my code has newlines too, the problem was passing the command as an array, weird
<circlicious1> why so?
uc has quit [Ping timeout: 264 seconds]
uc has joined #ruby
nateberkopec has joined #ruby
Guest33170 has quit [Ping timeout: 264 seconds]
Faris has quit [Ping timeout: 246 seconds]
cuppsy has joined #ruby
resure has quit [Read error: Connection reset by peer]
resure has joined #ruby
williamcotton has quit [Quit: williamcotton]
lkba has joined #ruby
deanh has quit [Quit: deanh]
workmad3 has joined #ruby
QaDeS has joined #ruby
deanh has joined #ruby
deanh has quit [Client Quit]
circlicious1 has quit [Quit: Lost terminal]
baroquebobcat has quit [Quit: baroquebobcat]
samuel02 has quit [Remote host closed the connection]
CoverSlide has quit [Ping timeout: 244 seconds]
mrgreenfur has quit [Quit: mrgreenfur]
CheeToS has joined #ruby
delinquentme has joined #ruby
fayimora has joined #ruby
<delinquentme> in the context of testing... whats the difference between failures and errors
liuchong has joined #ruby
<regularfry> A failure is what you're testing for. An error is when something went wrong you weren't expecting.
<delinquentme> noted.
mikeycgto has joined #ruby
wallerdev has joined #ruby
umttumt has joined #ruby
<delinquentme> ooc is it normal for tests needing to be run with permissions?
<delinquentme> Like i've got a number of failures based on permission access
<delinquentme> I've just never seen such a thing
<regularfry> Not if they're unit tests, that should be abstracted away
<regularfry> Depending on what you're testing, I could believe integration tests needing special permissions
Black-Heaven has joined #ruby
<Black-Heaven> Hi all
subr00t has joined #ruby
<regularfry> hi
<delinquentme> noted!
<delinquentme> thanks regularfry
atmosx has quit [Ping timeout: 276 seconds]
<offby1>  /whois largeshake
wallerdev has quit [Client Quit]
fayimora has quit [Quit: Be back in a gifii]
<regularfry> No worries :-)
atmosx has joined #ruby
seanstickle has quit [Quit: Nihil sub sole novum]
raikd has joined #ruby
AndChat| has joined #ruby
lkba has quit [Read error: Connection reset by peer]
<Black-Heaven> Is some of you use Ruby to do standalone GUI applications and / or multi-plateform applications? If yes, what tools do you use? For your help, in advane, thanks.
Guest33170 has joined #ruby
moshee has quit [Ping timeout: 245 seconds]
<delinquentme> Black-Heaven, sounds like .. rails
ipoval has joined #ruby
moshee has joined #ruby
<Hanmac> Black-Heaven: i use rwx, my own wxRuby port ... wx works on most every system
jakobus has joined #ruby
Faris has joined #ruby
macmartine has joined #ruby
yannis has quit [Quit: Bye!]
Guest33170 has quit [Ping timeout: 272 seconds]
pygospa has quit [Disconnected by services]
pygospa has joined #ruby
nari has quit [Ping timeout: 240 seconds]
cuppsy has quit [Read error: Operation timed out]
<Black-Heaven> delinquentme: rails... for GUI?
<Black-Heaven> Hanmac: ok, thanks
socomm has quit [Quit: WeeChat 0.3.7]
<delinquentme> Black-Heaven, so If you want an outstanding GUI HTML / CSS is a really solid option
<delinquentme> Im not sure how it works in objective - c thats used in the UIs for IOS but if you're looking at a GUI for ruby
framling has joined #ruby
<delinquentme> I'd say go with HTML and run rails
Guest33170 has joined #ruby
<Black-Heaven> In fact my users wants to have an executable file which work out of the box, with nno installation, etc.
Ste11a has quit [Quit: see you]
Faris1 has joined #ruby
Spooner has joined #ruby
Jackneill has quit [Ping timeout: 260 seconds]
<Paradox> loop { print "Look around you. " }
selvakumaran has joined #ruby
mikepack has joined #ruby
sam113101 has quit [Read error: Connection reset by peer]
Faris has quit [Ping timeout: 245 seconds]
g0bl1n has quit [Ping timeout: 264 seconds]
saschagehlich has joined #ruby
Jackneill has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
joch_n has joined #ruby
mneorr4 has joined #ruby
<delinquentme> document = LibXML::XML::Document.new
<delinquentme> this is .... the double ::
<delinquentme> or double :
tommyvyo has joined #ruby
<delinquentme> or :: ... that is method inheritance?
RainbowDashh has quit [Quit: SLEEP MODE. <REDACTED SUBORBITAL QUOTE HERE>]
<delinquentme> :: is basically a namespace resolution operator
oznek has joined #ruby
mneorr3 has quit [Ping timeout: 265 seconds]
Markvilla has quit [Quit: Markvilla]
samuel02 has joined #ruby
rippa has joined #ruby
mnaser has quit [Ping timeout: 264 seconds]
jonathancutrell has joined #ruby
<jonathancutrell> Hey Ruby folks. Is this a good room to talk about Datamapper?
jonathanwallace has quit [Read error: Connection reset by peer]
mnaser has joined #ruby
<Paradox> i dont see why it would be a bad room
<jonathancutrell> Paradox: Sometimes rooms get really specific about what you're allowed to talk about.
<jonathancutrell> Those #javascript folks get antsy when you talk too much #jQuery sometimes
<Paradox> well thats because they're sperglords, as opposed to us ruby "hipsters"
<Paradox> lol
<jonathancutrell> Paradox: I only half get that joke.
<jonathancutrell> Paradox: But, I do assume that you have a neck beard and a perpetual supply of PBR in your fridge.
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<jonathancutrell> So anyway. I am trying to set up a reciprocal relation table (think person "follows" many people) in datamapper.
<jonathancutrell> Not sure what the empirically "best" way to do that is.
mikepack has quit [Remote host closed the connection]
workmad3 has joined #ruby
Guest33170 has quit [Ping timeout: 240 seconds]
framling has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
CoverSlide has joined #ruby
daym0n has joined #ruby
olrrai has joined #ruby
r0bby has joined #ruby
Sheehan has joined #ruby
<delinquentme> so if im requiring a gem
olrrai has quit [Client Quit]
<delinquentme> and i've verified that the gem is in the bundle file
<delinquentme> however I get an error when I attempt to erquire it
<delinquentme> require **
<delinquentme> anyone have a guess what the issue miht be?
Sheehan has quit [Client Quit]
robbyoconnor has quit [Ping timeout: 260 seconds]
CoverSlide has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby
Sheehan has joined #ruby
<jonathancutrell> delinquentme: Are you using RVM?
<delinquentme> jonathancutrell, I am
prometheus has joined #ruby
<jonathancutrell> delinquentme: Probably something with that.
<jonathancutrell> delinquentme: Where is the gem installed?
<jonathancutrell> delinquentme: make sure your gem path that is loaded when you run rackup or whatever includes the gem you're requiring
<delinquentme> good call
<delinquentme> gem list doesnt show the mofoin gem
<delinquentme> why.
<workmad3> delinquentme: is it a git gem?
lxsameer has quit [Quit: Leaving]
<delinquentme> nope
<jonathancutrell> delinquentme: I've had issues like this before.
ZachBeta has quit [Quit: Computer has gone to sleep.]
<workmad3> delinquentme: did it install to a path?
<jonathancutrell> delinquentme: Make sure the ruby you are launching on has the right gemset.
<workmad3> delinquentme: rather than system?
<delinquentme> So it looks like whats happening is that...
<delinquentme> I've defined a non-standard Gemfile path
<jonathancutrell> delinquentme: Did you try doing a gem install again?
<delinquentme> assigned it with: export BUNDLE_GEMFILE=~/rails_projects/bioruby/gemfiles/Gemfile.travis-jruby1.9
<delinquentme> and it looks like bundle install
<delinquentme> was not installing the correct Gemfile
<jonathancutrell> makes sense.
<delinquentme> this looks hopeful
<jonathancutrell> delinquentme: There are some definite positives to using the default path for gem sets.
dkissell_ has joined #ruby
<jonathancutrell> delinquentme: but you can manually install gems to gem sets, I'm sure fairly easily.
<delinquentme> yeah im troubleshooting a particular continuous integration issue
<workmad3> delinquentme: ah, and you'd just updated your normal Gemfile, not the exported one? :)
<delinquentme> and whats busting is the travisci integration
Jake232 has quit [Quit: Computer has gone to sleep.]
<workmad3> delinquentme: or is it that bundle install ignored BUNDLE_GEMFILE?
ananthakumaran has joined #ruby
<delinquentme> IDK im totally new to the idea of setting a path for the gemfile like that
<delinquentme> I've always just used the defaults
dkissell has quit [Ping timeout: 272 seconds]
dkissell_ is now known as dkissell
vlad_starkov has joined #ruby
<workmad3> delinquentme: well, if it's not picking up the env variable, can you get travis to generate a .bundle/config file before doing a bundle install?
<workmad3> delinquentme: because you can put a BUNDLE_GEMFILE: key in there too
<delinquentme> so it seems that a particular file ( even w an explicit require 'rubygems' )
<delinquentme> fails to locate the libxml-jruby
ipoval has quit [Quit: ipoval]
<workmad3> delinquentme: have you tried doing a 'require "bundler/setup" ' before anything else in your script?
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
Guest33170 has joined #ruby
<delinquentme> trying now
<delinquentme> no such file to load
<delinquentme> so it cant get bundler either?
<workmad3> delinquentme: hmm, what happens if you do 'sudo gem list' ?
<workmad3> delinquentme: oh... are you using rvm?
<delinquentme> yeah
<workmad3> delinquentme: heh
<delinquentme> gem list shows it
<workmad3> delinquentme: don't use 'sudo'
<delinquentme> yeah :D
<workmad3> delinquentme: use 'rvmsudo'
<delinquentme> bundler (1.0.21 ruby)
<delinquentme> @_o
<workmad3> delinquentme: sudo cleans the environment
<workmad3> delinquentme: so all the RVM paths basically get thrown away... rvmsudo exists to keep the rvm environment intact
<delinquentme> semi-noted
<delinquentme> ok so i've got both bundler as well as libxml-jruby
<workmad3> delinquentme: that said... if you need to run your test scripts with sudo, I'd say you're doing something wrong :P
<delinquentme> perhaps theres an issue that I should be using a jruby specific bundler package?
<delinquentme> if there is such a thing
blacktulip has joined #ruby
<workmad3> delinquentme: bundler is pure-ruby, I believe
<workmad3> delinquentme: works across the board
<delinquentme> workmad3, yeah these are ... some kind of higher level tests
<delinquentme> noted.
<delinquentme> I guess yeah its just locating packages
<delinquentme> so yeah that shouldn't matter
daym0n has quit [Ping timeout: 244 seconds]
ph^ has joined #ruby
<delinquentme> FMA
<delinquentme> added a require 'rubygems' and the require 'bundler/setup'
<delinquentme> still breaks
CoverSlide has joined #ruby
Niamkik has quit [Remote host closed the connection]
selvakumaran has quit [Ping timeout: 250 seconds]
<deryl> why is anyone using rvmsudo anyways? or is this part of a wrappered job or something?
linoj has quit [Quit: linoj]
<daed> i don't recall ever having to use rvmsudo
<daed> for anything thus far
<deryl> using rvmsudo isn't needed for either multi-user installs or per-user installs as long as the user is in the rvm group and it shows in 'id' or 'groups' command
<daed> ^
<daed> that's usually my first step
<deryl> and using rvmsudo OR sudo during normal operations will screw up your install/permissions
<daed> add to rvm group
<deryl> especially sudo
<deryl> we CLEARLY delineate that on the website
joch_n has quit [Quit: Linkinus - http://linkinus.com]
uc has quit [Ping timeout: 260 seconds]
<deryl> rvmsudo usage is a very very very rare thing.
<daed> when would it be required? i haven't run into that case yet
<daed> and i've got tons of production boxes/apps out there
<daed> boxes that i don't even have sudo on
olrrai has joined #ruby
<deryl> sometimes if you're running from one rvm user and trying to run a script for another rvm'd user AS that user
<deryl> or trying to inject into a sudo session for something else
<daed> that sounds pretty crazy
<deryl> but those are EXTREMELY rare situations
CoverSlide has quit [Ping timeout: 245 seconds]
<jonathancutrell> using datamapper, is there an easy way to do validates_presence_of => [:field_one,:field_two] ?
<jonathancutrell> (where field one and field two are required)
<delinquentme> yeah I was about to say I've never used rvmsudo before
b26 has joined #ruby
<deryl> also hoping and praying he installed using our curl -L get.rvm.io | bash -s stable and NOT using the ruby-rvm package
TheBaptis has joined #ruby
<deryl> we don't support that in any way shape or form. no distribution's pacakges are supported. they break left and right
<deryl> classic signature is $rvm_path contains /usr/share/rvm
<deryl> err
<deryl> classic signature is $rvm_path contains /usr/share/ruby-rvm OR /usr/share/rvm
RainbowD_ has joined #ruby
<deryl> rvm project never installs under anything but /usr/local/rvm or $HOME/.rvm unless the user manually changes or sets the $rvm_path var before install
RainbowD_ is now known as it
<Paradox> rbenv > rvm (In my personal opinion)
it is now known as in
<deryl> as long as you state its personal opinion, i'm fine with that
<Paradox> i wont talk your ear off
<daed> i've used both, both seem to work fine for me
<Paradox> i feel everyone should chose the tool they prefer
<Hanmac> up-to-date system ruby > other
<Paradox> Hanmac, 1.9.3-p194 isnt up to date?
<deryl> Hanmac: again, personal opinion
<jonathancutrell> Perl beats all things everywhere, always.
<Paradox> ruby is perl++
<Paradox> lol
<deryl> jonathancutrell: woot!
<daed> perl makes me want to vomit.
<Hanmac> Paradox i have 1.9.3-p194 as system package
<Paradox> Hanmac, so do i
<Paradox> brew install ruby
<deryl> if you're running sid or packaged it yourself.
* Hanmac has quantal
<deryl> Paradox: well no, he means as in an OS packaged system ruby like /usr/bin/ruby
<Paradox> but i still use rbenv for the other shit it does right
<deryl> Paradox: i've been tending to stay out of the rbenv vs rvm fights as I work onthe rvm project.
<Paradox> deryl, both tools are very awesome
<Paradox> far better than python's counterparts
krusty_ar_ has quit [Read error: Connection reset by peer]
<deryl> hehe
<Paradox> i just prefer rbenv, doesn't mean rvm sucks
<Paradox> just like i prefer haml, doesn't mean erb sucks
<Paradox> but there is one case
<deryl> Paradox: unfortunately you're one of the few rbenv users that speaks up, that uses that common sense
<Paradox> sass is good, and less most definitely sucks
jonathancutrell_ has joined #ruby
<jonathancutrell_> Awful internet.
krusty_ar has joined #ruby
<jonathancutrell_> Hopefully I didn't miss anything fun.
<Paradox> nah
<deryl> most of the rbenv users we run into just regurgitate sstephenson's bullshit lies he spread when he started the project, can't put up when confronted with technical facts on implementation differences, and other bullshit. leaves a really bad taste in the mouth
<Paradox> we're just not-arguing about which isnt better, rbenv or rvm
<deryl> good to see at least one rbenv user using their grey matter for themselves :)
<deryl> hahahaha
<deryl> i just saw that
jonathancutrell has quit [Ping timeout: 260 seconds]
jonathancutrell_ is now known as jonathancutrell
<Paradox> oh i hate the "i read a blog that said 'derp' so thats now my opinion!" notion in sperglords
<jonathancutrell> Paradox: ha.
<Hanmac> cjs226 do you still have a problem with ruby version?
<Paradox> thats largely whats responsible for the "hurr ruby iz sloo" meme :(
<jonathancutrell> Paradox: indeed.
<deryl> yeah n shit :/
<Paradox> whats funny is how mad they get when i show them shootout.debian's programming language benchmarks
<jonathancutrell> deryl Paradox Unfortunately, JavaScript beats ruby with a stick.
chessguy has quit [Remote host closed the connection]
<Paradox> jonathancutrell, fortran beats all of them
<deryl> jonathancutrell: doh!
<deryl> COBOL!
<Paradox> doesn't mean i want to program in it
<jonathancutrell> Paradox: truth.
<Paradox> here's what my opinion is
<Paradox> you have a fixed amount of "speed"
<Paradox> you can either have that at runtime
<Paradox> or during coding
<Paradox> as one gets faster, the other gets slower
iocor has quit [Quit: Computer has gone to sleep.]
<jonathancutrell> Paradox: that's certainly an opinion.
<Paradox> now theres always room for optimization
<jonathancutrell> deryl: Cobol.
<Paradox> and yarv is amazing
<Paradox> but…
freezey has joined #ruby
<Paradox> i still prefer a language that doesn't derp
<jonathancutrell> Paradox: Well, if I don't know Ruby, and I started on CoffeeScript, then...
pk1001100011 has quit [Ping timeout: 255 seconds]
MrGando has joined #ruby
<jonathancutrell> Paradox: Node will win on both sides.
<Paradox> which is why i dont write node.js
<jonathancutrell> Paradox: fair.
<Paradox> node kind of derps
<Paradox> heh
<jonathancutrell> Paradox: really if we're doing web apps
<jonathancutrell> Paradox: The speed differences are negligible on modern servers.
<Paradox> exactly
<Paradox> everything is cached anyway
<jonathancutrell> Paradox: so who gives a crap. Run PHP for all I care. HTTP is your bottleneck.
<Paradox> fuck php
<Paradox> if node derps
<Paradox> php herpderpherpderpherpderpherpderpherpderpherpderpherpderpherpderpherpderps
<Paradox> lol
<daed> COBOL is the future of web 3.0
in has quit [Quit: SLEEP MODE. <REDACTED SUBORBITAL QUOTE HERE>]
<jonathancutrell> daed COBOL IS the web.
<daed> true
<Paradox> the thing that makes me chuckle is the sperglords in r/programming on reddit who will jizz themselves over anything haskell related
<jonathancutrell> Anything that doesn't run it is boring.
<daed> there's a lot of ruby hate on r/programming
<daed> i don't get it
<Hanmac> Paradox: and php "dont know whats wrong" :P
<jonathancutrell> Paradox: lisp dog. lisp.
<Paradox> jonathancutrell, which dialect?
<deryl> dawg!
<jonathancutrell> Paradox: exactly.
<daed> yeah boiii
kevinbond has joined #ruby
<jonathancutrell> deryl: daugh.
<deryl> hehe
<Paradox> the main reason r/programming hates ruby, is what i call the "success factor"
<Paradox> and thats not just limited to programming
<daed> haters gonna hate.
<daed> i guess
<Paradox> rubyists tend to be more outgoing, more friendly, and more well rounded
<Paradox> there are always sperglords
<Paradox> but the ruby community seems to have far fewer of them
<Paradox> regardless of what people like zed shaw say
<daed> and quite frankly every ruby project i've had to work on was infinitely more pleasant than acquiring old php code
<daed> or anything else really
liuchong has quit [Quit: Leaving]
<daed> rubyists tend to write cleaner code up front
<daed> in my experience
<Paradox> it really boils down to a difference between GIDSWAD and MINSWAN
<deryl> i'm totally for preferences. I think preferences keep us from being lemmings. I also think people need to use Critical Thinking when they make choices. Like I don't understand the people that won't do a damned thing unless Opra tells them to, like what books to read etc.
<deryl> they drive me nuts
<jonathancutrell> Paradox: To be fair, the main reason is probably because there's a ton of older folks who had jobs in PHP/Perl/Python, and when rails jobs came surfacing out the wazoo, they threw them under the bus with our Millenialist generational attitudes and every other piece of BS they could find.
CoverSlide has joined #ruby
<Paradox> jonathancutrell, that, and there is a notion of defending a technological priesthood
<Paradox> in the past year i went to 2 conferences
<Paradox> Mountain West PyCon and Mountain West Ruby con
<deryl> and i don't understand the people that figure If XYZ can't solve the problem get a different problem. They never bother to think that maybe its XYZ thats not cut out for the job.
<Paradox> guess which one i preferred
David_Mi1ler is now known as David_Miller
<jonathancutrell> Paradox: PyCon!
<jonathancutrell> ...
<Paradox> lol no
wallerdev has quit [Quit: wallerdev]
<deryl> hahahaha
<Paradox> pycon was full of asshats
selvakumaran has joined #ruby
<Paradox> "omg u dont kno list comprehensions! u r fail!"
<Paradox> "im 1337"
<Paradox> "epic win"
<deryl> there's an expression i haven't heard for awhile
naequs has joined #ruby
<deryl> asshat hah!
<Paradox> these are all things i heard at pycon
<jonathancutrell> At the end of the day, it's just a cultural thing anyway.
<Paradox> yup
<Paradox> and it even goes deeper than that
<Hanmac> i can do 3D gaming with ruby and ogre ... beat that php
<Paradox> python is a very…academic language
<deryl> use what does the job, provided it *actually* does the job
<Paradox> it enforces strict syntax and structure
<deryl> hell if its python for ya, good, use it. but don't trash everything else like its the panacea of the world
<Paradox> and bears a strong resemblance to "traditional" languages
<Paradox> its very good for teaching people to program
<Paradox> but…
<Paradox> its not aging well
<Paradox> TIOOWTDS is hurting it quite a bit
<deryl> i would argue that ruby is a better one. especially if you do use the {} and () in the places where they are implicit.
<Paradox> deryl, i'm getting to that
<deryl> then it looks more like C and i would argue wouild help to teach that language as well
<deryl> ahh got ya
<Paradox> also, its OO is horrifically bolted on
<deryl> jumped the gun :)
<Paradox> i submit that any language that requires you to do Math.abs or for x…
<Paradox> cannot claim to be fully object oriented
<Paradox> anyway
indian has joined #ruby
<Paradox> ruby, on the other hand, is a much more practical language
<Paradox> it, like smalltalk, is fully oo (wonder where it got that from)
<Paradox> and can do a lot of things very simply
<jonathancutrell> Paradox: I'd say the same about JavaScript, except as a functional language.
<jonathancutrell> Paradox: But, that's because I started on JavaScript.
<Paradox> if you've never programmed before, and don't have patterns grooved, then 10.times is far easier than for (i = 0, i < 10, i++)
<jonathancutrell> Paradox: which allows me to approach the idea of being "practical" from that specific paradigm.
<Paradox> and if you have programmed before and give ruby an honest look, you can appreciate the beauty of blocks
<jonathancutrell> definitely.
<Paradox> so…
savage- has joined #ruby
<daed> blocks were what drew me in initially
<daed> i haven't left ruby since
<daed> going back to other languages feels like a huge step back :/
<jonathancutrell> Well CofeeScript attempts to move in that direction.
Lupy has quit [Quit: Leaving]
<Paradox> ruby vs python is just another expression of practicality (i.e. real-world applications) vs academia (endless arguing over P=NP or O(log(n) )
<Paradox> coffeescript is nice
<jonathancutrell> Paradox: I have yet to pick it up. But what I've seen is cool.
linoj has joined #ruby
<Hanmac> P=NP does not care me until i can use it to generate energy from nothing :P
<workmad3> Hanmac: really? you don't fancy taking a stab at solving it one way or the other?
<workmad3> Hanmac: it is one of the $1000000 open questions after all
<Paradox> jonathancutrell, i've used it on a few sinatra projects
pyoor has quit [Quit: leaving]
<Paradox> anyway
<Paradox> also, part of the hate from other languages is
dkissell_ has joined #ruby
<Paradox> ruby does things differently
mnaser has quit [Ping timeout: 240 seconds]
<Paradox> people dont understand differently
<Paradox> people fear things they dont understand
iocor has joined #ruby
<Paradox> fear is a component of hate
<Hanmac> workmad3 i am not "math" enough to solv it, and currently i dont need that much money ...
<workmad3> Hanmac: :)
<workmad3> Hanmac: it being decided one way or the other would have pretty huge implications tbh...
pk1001100011 has joined #ruby
mnaser has joined #ruby
<Paradox> finally, ruby users tend to be friendlier, more social, and more outgoing
<Paradox> hence the labeling of "hipster"
<workmad3> Paradox: f*** you... I'm not social or outgoing :P
<Hanmac> "outgoing"? ... why should i go out? ... until i can go Photosyntesis i have no reason to go out
<workmad3> Paradox: is the fact I censored myself counted as friendly? :)
dkissell has quit [Ping timeout: 249 seconds]
dkissell_ is now known as dkissell
<jonathancutrell> Paradox: Eh, I think "different" is a bit relative. Sure, it does things differently from Python and Perl-esque languages. But look at, for instance, Haskell. Quite different from all of the above as well.
tvw has quit [Remote host closed the connection]
<jonathancutrell> Paradox: Also, the friendliness aspect may be a chicken and egg thing.
<Paradox> i just dont understand haskell
<Paradox> i think haskell comes out of math worship
<jonathancutrell> Paradox: Perhaps Lisp or another functional language is a better example.
m_3-backstage has quit [Quit: leaving]
<workmad3> Paradox: pfft, haskell is easy... you just need to understand category theory in depth and know wtf an endofunctor is
<Paradox> i dont mind lisp
<Paradox> lol
<workmad3> (so far, I think I've sort of grasped that an endofunctor is a functor that 'lifts' the domain, e.g. the way .map lets you 'lift' a function that applies to a value to a funtion that applies to a collection)
<workmad3> *function
<workmad3> still... ruby isn't different
m_3 has quit [Quit: leaving]
<Paradox> but really, what it boils down to is, ruby rocks
<workmad3> it's just the union of smalltalk with perl :)
<Paradox> with clu and lisp
<Paradox> its a big happy bigamy of programming languages
savage- has quit [Remote host closed the connection]
<Paradox> steve yegge puts it well
neku is now known as neku|away
<Paradox> and one of my friends put it in nice terms, comparing guido to matz
TheBaptis has quit [Ping timeout: 260 seconds]
imami|afk is now known as banseljaj
<Paradox> guido is the kid that would only play DnD if you let him be dungeon master
<Paradox> matz is the kid that laughed when he got eaten by a grue
<workmad3> matz is the kind that, if he was dungeon master, would let you fire magic missile at the darkness :)
wallunit has quit [Quit: Leaving.]
<Paradox> anyway
<Paradox> i've gotta go catch a bus to the airport
CoverSlide has quit [Ping timeout: 260 seconds]
<Paradox> bbl
<workmad3> hf
ElderFain has quit [Ping timeout: 272 seconds]
sailias has quit [Quit: Leaving.]
ElderFain has joined #ruby
wallerdev has joined #ruby
wallerdev has quit [Client Quit]
wallerdev has joined #ruby
neku|away is now known as neku
kpshek has joined #ruby
deanh has joined #ruby
examancer has quit [Ping timeout: 240 seconds]
kpshek has quit [Client Quit]
m_3 has joined #ruby
ZifreCL has joined #ruby
jimeh has joined #ruby
ElderFain has quit [Ping timeout: 272 seconds]
havenn has joined #ruby
ChampS666 has joined #ruby
* offby1 talks about mining
jameshyde has joined #ruby
<workmad3> data, text, coal or diamond?
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
<Hanmac> workmad3 "... in SPACE" :D
CoverSlide has joined #ruby
jimeh has quit [Ping timeout: 240 seconds]
Sheehan has quit [Quit: Sheehan]
qwerxy has joined #ruby
Sheehan has joined #ruby
RainbowDashh has joined #ruby
havenn has quit [Remote host closed the connection]
wmoxam has joined #ruby
ipoval has joined #ruby
ipoval has quit [Client Quit]
burgestrand has joined #ruby
bosphorus has quit [Remote host closed the connection]
pk1001100011 has quit [Ping timeout: 248 seconds]
k_89 has quit [Ping timeout: 265 seconds]
<shevy> ruby, perl and python are still a family
<shevy> php I include too, even though it sucks
<shevy> ...
<shevy> here comes haskell
<Boohbah> php was disowned
<shevy> hmm and what else? I dont know what is similar to haskell
<shevy> what php is doing is expand the www opportunities, for other languages too like ruby (with ruby on rails for instance) and python (django)
<wmoxam> shevy: ocaml is similar to haskell
<shevy> ok
<shevy> haskell, ocaml
<Boohbah> lisp, scheme, clojure, erlang, ocaml, scala, f#
Guest33170 has quit [Ping timeout: 255 seconds]
<shevy> hmmm
macmartine has quit [Quit: macmartine]
<shevy> erlang is similar to haskell???
<wmoxam> SML & Clojure too
<shevy> hmm
<shevy> didnt know erlang does that
saschagehlich has quit [Quit: saschagehlich]
tommyvyo has joined #ruby
Guest33170 has joined #ruby
<rking> Boohbah: Don't forget LiveScript!
jxf has joined #ruby
ZachBeta has joined #ruby
<Boohbah> oh, livescript is javascript :)
macmartine has joined #ruby
<wmoxam> oh, also, Mercury
resure has quit [Remote host closed the connection]
yeggeps has quit [Ping timeout: 272 seconds]
CoverSlide has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
<rking> Yep. I'd say CoffeeScript:Ruby :: LiveScript:Haskell.
<rking> wmoxam: Hrm. I'll have to look into SML vs ML.
k_89 has joined #ruby
<rking> Oh, "Standard" ML.
<rking> I still haven't taken the FP plunge. I'm actually in the middle of "Learn you a Haskell" at this very moment.
yeggeps has joined #ruby
b26 has quit [Ping timeout: 260 seconds]
<rking> I wonder which of the FP languages is the most pragmatic. E.g. I'm not at all excited about Haskells type system.
yeggeps has quit [Ping timeout: 246 seconds]
jxf has quit [Ping timeout: 264 seconds]
Sheehan has quit [Quit: Sheehan]
<shevy> heheeh
<shevy> AN UNBELIEVER!
<shevy> BURN RKING!
* rking gets caught up in the mob mentality and burns rking!
jonathancutrell has left #ruby [#ruby]
<Mon_Ouie> I heard OCaml being praised for being better suited for real world use
<Mon_Ouie> Although Haskell's type system is something I really loved
ipoval has joined #ruby
<rking> Actually, I'm thinking LiveScript is probably the topper, because then it ties into all the JS world.
<Mon_Ouie> Static, without being as restraining as C's type system
<Mon_Ouie> (where you can't do anything generic without hacking with void pointers)
<rking> And in fact a pretty beastly setup would be: Rails + parts CoffeeScript + parts LiveScript + Node.js (so the JS logic can run on both client and server sides. OAOO suckas!)
martinBauer has joined #ruby
qwerxy has quit [Quit: offski]
selvakumaran has quit [Quit: Leaving]
Chryson has joined #ruby
<rking> I think I got bit by Duck Typing /one time/ in the last 3 months. I accidentally passed in a single item to something I had made take arrays.
<rking> And I caught it before committing, realized that part didn't have automated tests, and fixed everything.
Foxandxss has joined #ruby
<workmad3> Mon_Ouie: OCaml is praised for being able to generate faster code than C :)
freezey has quit [Quit: freezey]
frishi has quit [Quit: Leaving...]
<rking> workmad3: What's the general idea on how it accomplishes that?
<workmad3> which it mostly does by having really strict type systems which lets the compiler do a massive amount of stuff in advance
<rking> Ahh.
martinBauer has quit [Quit: Leaving]
andrewhl has quit [Remote host closed the connection]
Guest33170 has quit [Ping timeout: 248 seconds]
macmartine has quit [Quit: macmartine]
akem has quit [Read error: Connection reset by peer]
olrrai has quit [Quit: Saliendo]
shadoi has joined #ruby
havenn has joined #ruby
Ethan has quit [Read error: Connection reset by peer]
emdub has quit [Ping timeout: 265 seconds]
Sheehan has joined #ruby
<shevy> I am feeling special tonight
<shevy> who wanna rock it baby!!!
<Spaceghostc2c> rking: That's because you forgot to make your method accept single objects in addition to collections.
<Spaceghostc2c> design flaw, not a duck typing flaw.
<rking> Spaceghostc2c: Good point.
<rking> So duck typing failed me zero times.
<Spaceghostc2c> :D
CoverSlide has joined #ruby
umttumt has quit [Remote host closed the connection]
<Spaceghostc2c> rking: You just wrap the single object in a collection and then proceed as normal. :D
<rking> Hrm. What do you check though? To ask it if it's not a collection already?
<Hanmac> or make the method accept (*args)
emdub has joined #ruby
perryh_away is now known as perryh
jameshyde has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
jcromartie has quit [Quit: jcromartie]
davidpk has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
akem has joined #ruby
<workmad3> rking: if it responds to .each, treat it like a collection
jamesaxl has joined #ruby
<rking> workmad3: Hrm, not bad. Good for us that there's no String#each
<workmad3> rking: well, not anymore
<rking> Interesting.
banisterfiend has joined #ruby
<rking> I did have to check it before I said that.
<workmad3> rking: you could also check if it is_a? Enumerable
<rking> Yeah. Probably any collection-like thing should inherit from that.
<workmad3> rking: 1.8, String was enumerable, they changed it in 1.9
<workmad3> rking: include, not inherit ;)
<rking> workmad3: For cases exactly like this?
<workmad3> rking: no, they changed it because with encodings built in, there isn't a sensible choice for what should be enumerated
<rking> Crud. I'm still not up to speed with that idea. What is the benefit of not-inheriting?
<workmad3> rking: it's not as meaningful, semantically
<workmad3> rking: and you can only inherit from one thing, you can include many things
<rking> Ahh, k.
<rking> So you still ask the IS-A vs HAS-A question then inherit or include, respectively?
<Hanmac> rking: there is each_line, each_char, each_byte and each_codepoint ... so its not clear, so String is not an enumerable anymore
jamesaxl has quit [Client Quit]
akem has quit [Read error: Connection reset by peer]
irmbrady has joined #ruby
irmbrady has quit [Client Quit]
deens has joined #ruby
CoverSlide has quit [Ping timeout: 248 seconds]
CoverSlide has joined #ruby
<rking> Coolness.
<rking> Thanks guys. Larnin much.
S2kx has joined #ruby
jonathanwallace has joined #ruby
S1kx has quit [Ping timeout: 240 seconds]
jonathanwallace has quit [Read error: Connection reset by peer]
KindOne has quit [Remote host closed the connection]
darkc0met has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
<Spaceghostc2c> Avdi Grimm has some talks on how to do that, rking.
carbncl has joined #ruby
<Spaceghostc2c> rking: Asking if it is from Enumerable is 'wrong'.
<Mon_Ouie> include isn't a has-a relationship
<Mon_Ouie> An array is enumerable, it doesn't have an attribute that is an enumerable object
MrGando has quit [Quit: Bye]
ZachBeta has joined #ruby
cherrypeel has joined #ruby
jakobus has quit [Quit: Leaving]
carbncl has quit [Client Quit]
<rking> Mon_Ouie: Yeah, you're right.
<rking> So I don't know what the question is.
andrewhl has joined #ruby
<rking> I guess it's if it's "mainly" that one superclass, because you can only inherit from one.
sailias has joined #ruby
<rking> Or are there other parts of the inheritance vs. include'sion mechanisms that make them different?
samuel02 has quit [Remote host closed the connection]
akem has joined #ruby
<Mon_Ouie> There are (no class methods when you include), but they're not that important for choosing between a class and a mixin
Faris has joined #ruby
<rking> Mon_Ouie: Because you can make the mixin do the metaprogramming trick where it stuffs them in on inclusion?
<workmad3> rking: no, because it's not generally particularly important
baroquebobcat has joined #ruby
<workmad3> rking: the choice is really down to semantics
<Hanmac> o = Object.new; o.extend(Enumerable) :P
<workmad3> rking: inheritance is a very strong relationship... you're declaring that A IS A B... it's about the strongest relationship you can declare
<Mon_Ouie> I can't seem to think of a rule of thumb to choose, only examples where I'd rather use one or the other
<rking> ♥ examples.
<workmad3> rking: while mixins and inclusions are really more about interfaces... including Enumerable is more declaring that your class can act like an enumerable
_br_ has quit [Read error: Connection reset by peer]
<Mon_Ouie> e.g. when you have a contract like, the including class implements a method (say #each), and the included module uses that method to implement its own methods (say map)
Faris1 has quit [Ping timeout: 260 seconds]
<workmad3> rking: it isn't an enumerable (which is quite abstract) but it can take the role of an enumerable... if that makes sense :)
stephenjudkins has joined #ruby
mwilson_ has quit [Excess Flood]
<workmad3> I guess in a way, it is an enumerable... but because enumerable isn't a thing, it's more a role... meh, it makes sense to me :)
mwilson_ has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
<workmad3> there isn't a rule of thumb though, because it's context-dependent
Guest33170 has joined #ruby
jimeh has joined #ruby
<workmad3> something that's a concrete class and makes sense to be modelled with inheritance in one app could make sense to be modelled as mixins and inclusions in another in a similar area...
jonathancutrell_ has joined #ruby
<workmad3> not saying I can think of an example where that's the case... but it's not beyond the realm of possibility to me :)
<rking> Hrm. =|
freezey has joined #ruby
<rking> Well at least I'm keyed into the idea that the topic deserves more serious thought.
<jonathancutrell_> so here's aquick question
<workmad3> rking: yeah... it's really to do with your domain design :)
<jonathancutrell_> I'm creating a user with params in sinatra
RainbowDashh is now known as in
<jonathancutrell_> I'd love to set certain params and ignore those that aren't in the model
<jonathancutrell_> like, for instance, "password" as a param obviously isn't being stored in clear text
freezey_ has joined #ruby
<jonathancutrell_> when I try to do it now, I'm getting an "attribute is not accessible" error
<jonathancutrell_> for password.
<jonathancutrell_> Of course, it's not on the model, so it wouldn't be accessible.
<jonathancutrell_> So how can I remove it from the params being passed to the new user instance that I subsequently save?
<jonathancutrell_> I tried params.delete(:password)
<jonathancutrell_> and params[:password] = nil
<jonathancutrell_> Perhaps my problem is different?
thmzlt has joined #ruby
deanh has quit [Remote host closed the connection]
deanh has joined #ruby
deanh_ has joined #ruby
havenn has quit [Remote host closed the connection]
freezey has quit [Ping timeout: 260 seconds]
freezey_ is now known as freezey
havenn has joined #ruby
<rking> jonathancutrell_: I don't know Sinatra at all, but I'd be hesitant to directly foo with any object that came from the framework like that.
deanh has quit [Read error: Operation timed out]
<rking> Better would be: props = params.clone
<jonathancutrell_> rking: what do you mean? it's just post params from the interface.
<rking> Then props.delete :password
in is now known as Ponies
Ponies is now known as Pony
Pony is now known as in
<jonathancutrell_> rking: interesting. I'll try that out.
<rking> Yeah, I donno, there's probably no real harm in it, but I wouldn't even consider directly dinkering with that hash, myself.
UNIXgod has joined #ruby
Ethan has joined #ruby
Ethan has quit [Changing host]
Ethan has joined #ruby
cbuxton has joined #ruby
thmzlt has quit [Remote host closed the connection]
darkc0met has joined #ruby
kevinbond has quit [Quit: kevinbond]
baroquebobcat has quit [Quit: baroquebobcat]
td123 has quit [Quit: WeeChat 0.3.8]
S2kx has quit [Quit: Leaving]
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
kevinbond has joined #ruby
linoj has quit [Quit: linoj]
qwerxy has joined #ruby
<jonathancutrell_> Ah here's another issue
<jonathancutrell_> apparently sinatra's params is actually passing things as strings
<jonathancutrell_> so, my next question
<jonathancutrell_> How to convert all keys to symbols?
<Hanmac> Hash[hash.map{|k,v| [k.to_sym,v]}]
<jonathancutrell_> Hanmac: where Hash is a new hash?
cbuxton has quit [Quit: Leaving.]
r0bby is now known as robbyoconnor
<shadoi> unless you want to handle deeply nested hashes or arrays, you need something sorta like: https://gist.github.com/b3799cd8557a6c07d49e
Sheehan has quit [Quit: Sheehan]
saschagehlich has joined #ruby
<Tasser> jonathancutrell_, why do you need symbols?
bearlulz has joined #ruby
<jonathancutrell_> Tasser: for DataMapper, I think. Although for whatever reason, it's hanging up currently.
Doppp has joined #ruby
<Tasser> jonathancutrell_, #datamapper
undeclaredx has quit [Read error: Connection reset by peer]
Doppp has quit [Client Quit]
<jonathancutrell_> I'm aware.
tewecske has joined #ruby
<shevy> #free-sex
ananthakumaran has quit [Quit: Leaving.]
Doppp has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<shevy> hmmm
<shevy> def foo-bar-bla
Doppp has quit [Client Quit]
Sheehan has joined #ruby
Faris1 has joined #ruby
jonathancutrell_ has quit [Quit: jonathancutrell_]
Faris has quit [Read error: Connection reset by peer]
prometheus has quit [Ping timeout: 260 seconds]
Doppp has joined #ruby
kevinbond has quit [Quit: kevinbond]
jamesaxl has joined #ruby
yugui_zzz is now known as yugui
kevinbond has joined #ruby
fantazo has joined #ruby
raz has left #ruby ["Leaving..."]
bosphorus has joined #ruby
federic has quit [Remote host closed the connection]
fantazo has quit [Remote host closed the connection]
fantazo has joined #ruby
KindTwo has joined #ruby
andrewhl has quit [Remote host closed the connection]
Sheehan has quit [Quit: Sheehan]
andrewhl has joined #ruby
schovi has joined #ruby
<andrewhl> what does the =~ operator mean?
<Mon_Ouie> Pattern matching
<andrewhl> ah
<Mon_Ouie> e.g. to check if a regular expression matches a string
tk___ has quit [Quit: ばいばい]
Sheehan has joined #ruby
pcboy_ has quit [Ping timeout: 240 seconds]
Faris1 has quit [Quit: Leaving.]
gilesw has quit [Ping timeout: 265 seconds]
<icy`> hi, is there a way to get rid of warnings "method redefined; discarding old response " and " <path> warning: previous definition of response was here " ?
<icy`> i'm consciously overriding... i dont need it to warn me about it as well ;P
Jake232 has joined #ruby
Sheehan has quit [Quit: Sheehan]
Eldariof-ru has quit []
Markvilla has joined #ruby
Markvilla has quit [Read error: Connection reset by peer]
<Mon_Ouie> Remove the method before redefining it
Markvilla_ has joined #ruby
bearlulz has quit [Quit: Computer has gone to sleep.]
dr_diamond has joined #ruby
prometheus has joined #ruby
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
Markvilla_ has quit [Read error: Connection reset by peer]
Markvilla has joined #ruby
raikd has quit [Ping timeout: 240 seconds]
saschagehlich has quit [Read error: Connection reset by peer]
saschagehlich has joined #ruby
etehtsea has joined #ruby
raikd has joined #ruby
Sheehan has joined #ruby
pk1001100011 has joined #ruby
subr00t has quit [Quit: subr00t]
ph^ has quit [Ping timeout: 246 seconds]
etehtsea has quit [Client Quit]
mpereira has quit [Ping timeout: 272 seconds]
Weems has quit [Ping timeout: 265 seconds]
Sheehan has quit [Client Quit]
havenn has quit [Remote host closed the connection]
Markvilla has quit [Ping timeout: 255 seconds]
Doppp has quit [Quit: leaving]
Jackneill has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
rippa has quit [Ping timeout: 246 seconds]
<novochar> will a return statement escape at similar to break statement and break the current iteration?
moshee has quit [Ping timeout: 244 seconds]
<novochar> also where is there more information on the functionality of return? i'm not seeing it at http://ruby-doc.org/stdlib-1.9.3/ or http://ruby-doc.org/core-1.9.3/
frishi has joined #ruby
havenn has joined #ruby
<Hanmac> novochar: return escape the entire function
Markvilla has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
KindTwo has quit [Changing host]
KindTwo has joined #ruby
KindTwo is now known as KindOne
qwerxy has quit [Quit: offski]
in has quit [Quit: SLEEP MODE. <REDACTED SUBORBITAL QUOTE HERE>]
saidin_ has quit [Quit: Connection closed for inactivity]
sbanwart has joined #ruby
mpereira has joined #ruby
andrewhl has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
framling has joined #ruby
seanstickle has joined #ruby
<shevy> when comes the rubyOS
yugui is now known as yugui_zzz
mikepack has quit [Remote host closed the connection]
<delinquentme> shevy, my first pull request was rejected =[
<delinquentme> i need to go cry about it a little later
gmci has quit [Read error: No route to host]
<shevy> delinquentme in bioruby?
<delinquentme> jar
<delinquentme> I think I need a solid use case for the kegg lib
<rking> delinquent: What request? URL?
<delinquentme> the feedback given was rather minimal
<delinquentme> so like im kinda in a holding pattern on what he means by "installed"
<delinquentme> and how it fails ( as it was failing before )
<delinquentme> ( the entire test suite didn't finish )
<delinquentme> at least now the tests run and give feedback
<delinquentme> however I think its just an issue about where to source the test files so that the file paths work
gmci has joined #ruby
<rking> Yeah. I wouldn't sweat this one.
deanh_ has quit [Quit: deanh_]
deanh has joined #ruby
<rking> You could turn your pull req into a simple issue, saying: Under x, y, z conditions, the tests fail.
<delinquentme> rking, are you a contrib?
<rking> It's not like one of those "Work of Art" Pull Reqs that gets thrown to the ground or anything. =)
<rking> Nah, I just know the feeling of getting my patches rejected. =D
<delinquentme> I mean I set out to see what was failing with the travisci
<delinquentme> but I know little about travisci so
<delinquentme> ahh ic ic
<delinquentme> yeah it was minimal
<delinquentme> it kinda surprises me how little recognition people give out
tommyvyo has joined #ruby
<delinquentme> like someone comes to your project and says " I want to contribute "
<delinquentme> ( shouldn't you throw them a little party ? )
<delinquentme> or at least say HEY THANKS FOR YOUR INTEREST!
eurbach has quit [Quit: Leaving.]
RainbowDashh has joined #ruby
dkissell_ has joined #ruby
hunglin has quit [Quit: Leaving.]
cpruitt has quit [Quit: cpruitt]
deanh has quit [Ping timeout: 260 seconds]
deanh has joined #ruby
dkissell has quit [Ping timeout: 246 seconds]
dkissell_ is now known as dkissell
jimeh has quit [Quit: bye]
<Hanmac> bioruby ... i dont get it ... i mean the idea is not SO bad, but the sample it is :P
ph^ has joined #ruby
ph^ has quit [Remote host closed the connection]
<rking> delinquent: Open source contributions require a quiet knowing of one's contributions' value.
ph^ has joined #ruby
punknology has joined #ruby
<rking> delinquent: Once in a blue moon you'll get some kind of thanks, but mostly you have to do stuff on the Golden Rule. Speaking of the Golden Rule, you can remember to be more effusive when it's you that is the project master and it's others with their nonsense patches. =)
ebanoid has quit []
ph^ has quit [Ping timeout: 260 seconds]
delinquentme has quit [Ping timeout: 260 seconds]
jgrevich has quit [Read error: Connection reset by peer]
jgrevich has joined #ruby
RainbowDashh has quit [Ping timeout: 245 seconds]
Jake232 has quit [Ping timeout: 255 seconds]
naequs has quit [Quit: Leaving]
andrewhl has joined #ruby
SegFaultAX has quit [Quit: Lost terminal]
RainbowDashh has joined #ruby
sbanwart has quit [Ping timeout: 248 seconds]
nateberkope has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
oznek has quit [Ping timeout: 252 seconds]
niklasb has quit [Ping timeout: 246 seconds]
RainbowDashh has quit [Ping timeout: 260 seconds]
<Paradox> bumbledore
nateberkope has quit [Read error: Connection reset by peer]
BRMatt|Laptop has joined #ruby
Jake232 has joined #ruby
BRMatt|Laptop has left #ruby [#ruby]
cjs226 has quit []
Vert has joined #ruby
cjs226 has joined #ruby
ChampS666 has quit [Ping timeout: 245 seconds]
stephenjudkins has joined #ruby
linoj has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
frogstarr78 has quit [Remote host closed the connection]
frogstarr78 has joined #ruby
atmosx has joined #ruby
oznek has joined #ruby
Weems has joined #ruby
neku has quit [Quit: Linkinus - http://linkinus.com]
mikepack has joined #ruby
mnaser has quit [Ping timeout: 260 seconds]
itnomad has joined #ruby
Boohbah has quit [Ping timeout: 276 seconds]
saschagehlich has quit [Quit: saschagehlich]
maletor has quit [Quit: Computer has gone to sleep.]
wilmoore has joined #ruby
Boohbah has joined #ruby
mnaser has joined #ruby
andrewhl has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
punknology has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Weems has quit [Ping timeout: 248 seconds]
andrewhl has joined #ruby
mikepack has quit [Remote host closed the connection]
gyre007 has joined #ruby
Karmaon has quit [Ping timeout: 272 seconds]
Spooner has quit [Ping timeout: 260 seconds]
Weems has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
stephenjudkins has quit [Quit: stephenjudkins]
justinmcp has quit [Ping timeout: 245 seconds]
fantazo has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
beneggett has joined #ruby
ryanf has joined #ruby
justinmcp has joined #ruby
berkes has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
Araxia_ has joined #ruby
atmosx has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
CheeToS has quit [Ping timeout: 260 seconds]
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lidenbrock has joined #ruby
<shevy> question
<shevy> def foo(input)
<shevy> bla input, :lala, :lele
<shevy> vs ...
<locriani> Answer
<shevy> def foo(input)
<shevy> bla(input, :lala, :lele)
lidenbrock has left #ruby [#ruby]
<shevy> what is better for you?
<locriani> Entirely personal preference
<shevy> ANYONE ELSE
<shevy> :P
<locriani> I like the first form for things that had a very delay needed inputs
<locriani> Add send this dictation is awful
stephenjudkins has joined #ruby
<locriani> I like the first form for things that have no defined output, as in they don't return anything or modify anything
<locriani> if it's more complex though, like passing a hash into the params, I prefer parens
<locriani> Of course my my opinion is worth that of a long
<locriani> Of course my opinion is only worth that if Obama here
<locriani> My opinion it's not worth much
<locriani> fuck it
akem has quit [Ping timeout: 240 seconds]
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
balki_ has joined #ruby
balki_ has quit [Read error: Connection reset by peer]
kenperkins has quit [Ping timeout: 246 seconds]
alanp_ has joined #ruby
balki_ has joined #ruby
balki has quit [Read error: Operation timed out]
alanp has quit [Read error: Operation timed out]
<shevy> hmm
<shevy> no... I need opinions
<seanstickle> YES!
<shevy> I used to prefer the first form, until just now. but that was because of my editor...
akem has joined #ruby
<shevy> it was harder to see at one glance
<shevy> :(
<seanstickle> shevy: first form is better
<seanstickle> shevy: Ruby is like the opposite of Lisp in one respect -- use as few parens as possible
Spooner has joined #ruby
FortyTwo42 has quit [Quit: Leaving]
Chryson has quit [Remote host closed the connection]
rgrinberg has quit [Ping timeout: 255 seconds]
havenn has joined #ruby
<locriani> List (() ()) ((open
RainbowDashh has joined #ruby
berkes has quit [Quit: Ex-Chat]
rgrinberg has joined #ruby
cakehero has joined #ruby
RainbowDashh is now known as in
<cakehero> Is the singleton library available by default or is it a gem I have to install?
<shevy> by default
<cakehero> but I need to require it?
<cakehero> I get require 'singleton' returning false, but I'm not sure if that's a problem or not (1.9.3)
<Spooner> Yes, it is in the standard library, like YAML and whatever else.
<cakehero> okay cool
<shevy> yes you must require it
<shevy> I get true in irb when doing the same
<shevy> perhaps you are on debian
<shevy> and they crippled it away ;P
<cakehero> I'm on Mac OS X
<Spooner> It should return true if it loads, false if it has already been loaded (so it doesn't load it again) and throws an exception if you made up a name for an imaginary library. Think it is that, anyway.
<cakehero> but I believe this might not be the problem
<shevy> k no idea about mac os x sorry
raikd has left #ruby [#ruby]
<cakehero> Spooner ahh ok, irb shows true
<shevy> require 'singleton' # => true; Singleton # => Singleton
<cakehero> shevy Spooner okay perfect, I think the singleton stuff is working
<shevy> in irb, when singleton was required, Singleton name will be known
<shevy> kk
havenn has quit [Ping timeout: 260 seconds]
mikepack has joined #ruby
<cakehero> Is there a simple way to figure out the path to a file that require is using when it's a relative path? $: shows many paths and it would take quite a bit to go through them manually
<cakehero> nvm
banseljaj is now known as imami|afk
ElderFain has joined #ruby
AlbireoX`Laptop has joined #ruby
AndChat| has quit [Quit: Bye]
wvms has joined #ruby
lkba has joined #ruby
<Spooner> Why would you need to know the path if you've required it?
<cakehero> Spooner because I'm trying to debug this program and I wanted to see what the file was actually doing
banisterfiend has quit [Remote host closed the connection]
<Spooner> Ah right. You can do it with gems (gem which <gemname>), but not sure about stdlib.
maletor has joined #ruby
Enekoos has joined #ruby
banisterfiend has joined #ruby
<cakehero> Spooner okay perfect, thank you
schovi has quit [Remote host closed the connection]
<Spooner> Oh right, you can use pry and "show-method singleton" - works very nicely.
<Paradox> cakehero, i think you can use something in File
<Paradox> or just use pry and _pwd_
<Paradox> if i understood right
<Spooner> cakehero: I mean "require 'singleton'; show-method Singleton"
<cakehero> okay perfect
<Spooner> pry is too clever for its own good :)
itnomad has quit [Ping timeout: 250 seconds]
<Paradox> it should be bundled
Black-Heaven has quit [Quit: You juste loose THE GAME]
QaDeS has quit [Quit: Ex-Chat]
deanh has quit [Quit: deanh]
ZachBeta has quit [Quit: Computer has gone to sleep.]
ZachBeta has joined #ruby
User_2012_irc has joined #ruby
davidw has joined #ruby
<shevy> we need to rubyify the world
davidw is now known as Guest61297
<shevy> I am going to spy on #python
sailias has joined #ruby
b26 has joined #ruby
yannis has joined #ruby
ZachBeta has quit [Client Quit]
Markvilla has quit [Quit: Markvilla]
kirun has quit [Quit: Client exiting]
Pimentel-ES has joined #ruby
<shevy> I am trying to speak to them in their native tongue now
<seanstickle> Condescending ass-hattery?
<seanstickle> I didn't know it could be learned by an outsider
blacktulip has quit [Remote host closed the connection]
dkissell_ has joined #ruby
gyre007 has quit [Quit: Ex-Chat]
<Boohbah> seanstickle: #haskell is a good place to practice
<seanstickle> Untrue
<seanstickle> #haskell is actually quite friendly
<seanstickle> #python is full of wankers
dkissell has quit [Ping timeout: 264 seconds]
dkissell_ is now known as dkissell
impirat has joined #ruby
impirat has quit [K-Lined]
<User_2012_irc> I'm making the following program.
jumpingcloud has joined #ruby
Tearan has joined #ruby
<seanstickle> User_2012_irc: homework help costs extra
<User_2012_irc> and this is the code that was doing
<User_2012_irc> the part I do not understand is how to keep the number of figurines that each student has.
<jumpingcloud> hey guys sorry to nub it up in here but i'm having a hard time installing the gem whm_xml
<jumpingcloud> it's a cpanel/whm wrapper gem, does anybody else get into that?
<seanstickle> cpanel has a gem?
musl has quit [Remote host closed the connection]
<jumpingcloud> seanstickle: there's actually a couple, this one looks the most polished
yannis has quit [Ping timeout: 246 seconds]
<seanstickle> HUh
<seanstickle> They scrape the page?
<jumpingcloud> seanstickle: You know i haven't gone through the code yet, was just hoping for an install, then play with it.
<jumpingcloud> it's like an XML wrapper with ruby syntax i think.
caveat- has quit [Read error: Operation timed out]
<jumpingcloud> seanstickle: can you install it? I tried in both my environments and i get the same error. Lemme pastebin it
Guest61297 is now known as davidw
davidw has quit [Changing host]
davidw has joined #ruby
<seanstickle> Never tried.
dr_diamond has quit [Quit: Bye !]
<davidw> radlers are just fucking gross
<davidw> oops
<davidw> wrong channel
<seanstickle> I stay away from cpanel, but I thought it was an interesting idea to control cpanel somehow with Ruby
<seanstickle> As I have other needs of controlling apps that lack APIs but do have web interfaces
<jumpingcloud> seanstickle: absolutely,
<jumpingcloud> seanstickle: they already have a descent api for XML and java (i think,) but i'm in love with ruby.
<User_2012_irc> how I can extract the value of the index of the vector when it finds a value of "true"?
<shevy> User_2012_irc what vector
<seanstickle> jumpingcloud: ah, so there is a cpanel api, well that answers that question
yannis has joined #ruby
uris has quit [Ping timeout: 240 seconds]
Vert has quit [Ping timeout: 252 seconds]
<shevy> User_2012_irc that code is more complicated than it should be
<seanstickle> User_2012_irc: why in the world as you using such a convoluted method called "figure"
<seanstickle> User_2012_irc: rand(2) does the same thing
<seanstickle> And if you are using index loops in Ruby, you are doing it wrong
<shevy> "def figure?()" should become "def figure?"
<seanstickle> As a general rule
<shevy> srand is not necessary
<shevy> User_2012_irc also do require 'pp', then pp your data structure
<shevy> all for loops can be replaced with range.each
dr_diamond has joined #ruby
<shevy> print "" <-- nonsenical
<jumpingcloud> sorry to be such a nub...
<User_2012_irc> Necessarily need to use array.
<seanstickle> jumpingcloud: looks like you're missing libcurl
<shevy> puts "The student #{i} has the figures: ","" <-- also no , in puts, also nonsenical btw, the ""
<shevy> User_2012_irc, try to be succint in ruby code like poetry
<seanstickle> jumpingcloud: and we prefer either "noob" ,"n00b", or "enthusiastic beginner"
<shevy> the less characters, the better, 90%
<jumpingcloud> seanstickle: ;) thanks i like "enthusiastic beginner"
andrewhl has quit [Remote host closed the connection]
<jumpingcloud> seanstickle: i'm have libcurl installed on my box, i'm thinking some path settings maybe? but could be totally wrong.
andrewhl has joined #ruby
<User_2012_irc> For example, the output of the program is this:
<User_2012_irc> What I need is to be alone with those who have "TRUE" to know that figures actually have each student.
<shevy> User_2012_irc again use pp
<shevy> it pretty prints your data structure
<shevy> pp a
<shevy> and make your code pleasant to look at
akem has quit [Read error: Connection reset by peer]
pk1001100011 has quit [Ping timeout: 248 seconds]
akem has joined #ruby
<User_2012_irc> It is not as pleasant, but not the main problem
ryanf has quit [Ping timeout: 260 seconds]
jxf has joined #ruby
andrewhl has quit [Ping timeout: 244 seconds]
<jumpingcloud> seanstickle: http://pastebin.com/XWTyCDbt
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
<jumpingcloud> seanstickle: curb is a requirement but it is also throwing errors.
ryanf has joined #ruby
<lupine_85> hi. I'm looking for a ruby library like chronic, but for weights. anyone know of one?
bradhe_ has joined #ruby
<lupine_85> (so it'd be able to parse "4st8lb" or "eight and a half kilograms" into a fixnum representing number of grams, say)
<seanstickle> 20.kilograms.in_ounces(:avoirdupois) ?
<seanstickle> Which weighs more, a ton of feathers, or a ton of gold?
<seanstickle> :D
<lupine_85> more MagicLibrary.parse("a tonne of feathers")
ken_barber has quit [Remote host closed the connection]
<lupine_85> it might be a bit of an ask
bradhe has quit [Ping timeout: 244 seconds]
Vert has joined #ruby
freezey has quit [Quit: freezey]
tewecske has quit [Quit: Leaving.]
User_2012_irc has quit [Quit: ChatZilla 0.9.88.2 [Firefox 13.0.1/20120614114901]]
Pimentel-ES has quit [Quit: Pimentel-ES]
stephenjudkins has quit [Quit: stephenjudkins]
ryan0x2 has quit [Ping timeout: 272 seconds]
andrewhl has joined #ruby
yoklov has joined #ruby
mnaser has quit [Ping timeout: 240 seconds]
mnaser has joined #ruby
mnaser has quit [Changing host]
mnaser has joined #ruby
luzeo has joined #ruby
in is now known as RainbowDashh
Karmaon has joined #ruby
* lupine_85 writes his own limited one that can understand kg, g, lb, st
mnaser has quit [Quit: Computer has gone to sleep.]
<workmad3> seanstickle: which weighs more, a ton of feathers or a tonne of gold? :P
<shevy> I TAKE THE GOLD
<cakehero> ^----
<workmad3> shevy: would you still take the gold if I said the feathers were worth their weight in gold?
<shevy> YES
Sheehan has joined #ruby
<shevy> KEEP YOUR LOUSY FEATHERS
<shevy> GIMME THE GOLD!!!
<shevy> from now on, I must get paid in gold
<shevy> screw euros
<workmad3> shevy: ok... take your 900kg of gold, I'll keep my 1000kg of feathers and trade them for the equivalent weight in gold...
<lupine_85> in that case, the gold does indeed weigh more
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
<workmad3> oh bugger, yes lupine_85 is right
<workmad3> tonne is metric, ton is short ton...
<lupine_85> ^^
<workmad3> argh,
<lupine_85> I had to check myself
<workmad3> :)
<seanstickle> workmad3: that was the question, yes
<seanstickle> workmad3: which weighs more, a ton of feathers or a ton of gold
<lupine_85> that's a different question
<workmad3> seanstickle: ton != tonne
<seanstickle> A short ton.
<seanstickle> Of each.
<workmad3> seanstickle: well in your case, they're the same
<workmad3> seanstickle: but that was a different one to my counter-question to you ;)
<seanstickle> Wrong
Guest65264 has quit [Quit: Leaving]
<seanstickle> A short ton of feathers weighs more
<workmad3> seanstickle: ah crap, do they use a different ton definition for gold?
<jumpingcloud> I cant figure this out. seanstickle ? you have any bright ideas?
<seanstickle> workmad3: gold is measured in troy ounces, of which there are 12 troy ounces to a troy pound
<lupine_85> seems there's 6kg in it
<seanstickle> feathers have 16 ounces per standard pound
<workmad3> seanstickle: bleh
yannis has quit [Quit: yannis]
<seanstickle> workmad3: heh
<lupine_85> there's a reason why we switched to SI units :)
<seanstickle> Don't tell the Mars expedition
<workmad3> seanstickle: which is heavier, a mole of gold, or a mole of plutonium? :P
stephenjudkins has joined #ruby
rgrinberg has quit [Ping timeout: 252 seconds]
<jumpingcloud> hah mars!
<workmad3> seanstickle: and which would you rather carry in your back pocket?
<jumpingcloud> metric vs imperial
Pimentel-ES has joined #ruby
freezey has joined #ruby
igotnolegs has joined #ruby
<seanstickle> workmad3: I would rather have a mole of plutonium in my back pocket
davidw has quit [Ping timeout: 264 seconds]
<workmad3> seanstickle: heh
Jake232 has quit [Quit: Computer has gone to sleep.]
<workmad3> seanstickle: let me guess, you also like to measure your car fuel consumption in rods per hogshead?
<seanstickle> I have no car, you heartless man!
chico_chicote has joined #ruby
freezey has quit [Quit: freezey]
<workmad3> seanstickle: me neither :(
<workmad3> seanstickle: but when I do, I want to make sure I get one that has a good rods per hogshead
yannis has joined #ruby
<workmad3> seanstickle: you know, > 600,000
mikepack has quit [Remote host closed the connection]
pcboy_ has joined #ruby
<seanstickle> I prefer my car to get good acres per hogshead myself
<seanstickle> But I'm a traditionalist
Sheehan has quit [Quit: Sheehan]
luzeo has quit [Quit: luzeo]
<workmad3> seanstickle: that's just mind-blowing
Pimentel-ES_ has joined #ruby
<workmad3> seanstickle: unless you're actually talking about a car with a plough attached to the back, then it makes perfect sense :)
<seanstickle> Well, duh
<seanstickle> What else is a car for?
Pimentel-ES has quit [Ping timeout: 245 seconds]
<workmad3> seanstickle: sitting on the driveway as a large umbrella for small mammals?
Pimentel-ES has joined #ruby
havenn has joined #ruby
banisterfiend has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 260 seconds]
Pimentel-ES_ has quit [Ping timeout: 244 seconds]
<offby1> I gotta say, I hate how picky ruby is about whitespace. I just typed ``User.new (:name => 'fred')'' and got a syntax error ... turns out the problem was the space before the left paren, but did the error message help me see that? Noooo ....
sbanwart has joined #ruby
* offby1 looks for the Unicode glyph that represents "fuming programmer"
iamlacroix has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 244 seconds]
<workmad3> offby1: hate to break it to ya, but most languages are picky about whitespace there