apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
quazimodo has quit [Ping timeout: 264 seconds]
JesseH has joined #ruby
digitalcake has joined #ruby
Andrevan has joined #ruby
wesside has joined #ruby
alekst has quit [Quit: Leaving...]
Davey has joined #ruby
|jemc| has quit [Ping timeout: 264 seconds]
kpshek has joined #ruby
pothibo has quit [Quit: pothibo]
devoldmx3 has joined #ruby
ics has quit [Ping timeout: 264 seconds]
coaster has joined #ruby
digitalcake has left #ruby [#ruby]
devoldmx has quit [Ping timeout: 264 seconds]
yekta has quit [Quit: yekta]
ianclarksmith has joined #ruby
ianclarksmith is now known as ics
blackmesa has quit [Remote host closed the connection]
h4mz1d has joined #ruby
zarubin has quit [Read error: Operation timed out]
gyre007 has quit [Remote host closed the connection]
yekta has joined #ruby
adkron has joined #ruby
quazimodo has joined #ruby
adkron_ has quit [Ping timeout: 260 seconds]
Xaitec has joined #ruby
cads has joined #ruby
snovak has joined #ruby
allaire has quit []
mansi has joined #ruby
quoin has joined #ruby
quazimodo has quit [Ping timeout: 264 seconds]
m00nlight has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
snovak has quit [Ping timeout: 276 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
bugsinlights has quit [Ping timeout: 246 seconds]
Lewix has quit [Remote host closed the connection]
Ripp__ has quit []
rcosta_ has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
pwh has joined #ruby
quoin has quit [Ping timeout: 276 seconds]
DanKnox is now known as DanKnox_away
pwh has quit [Client Quit]
gimpygoo has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
mrsolo has joined #ruby
rcosta has quit [Ping timeout: 264 seconds]
bricker`LA has quit [Ping timeout: 246 seconds]
volty has quit [Quit: Konversation terminated!]
optimusprimem has quit [Ping timeout: 245 seconds]
cody-- has quit [Quit: derp]
nisstyre has joined #ruby
apeiros has quit [Remote host closed the connection]
emergion has joined #ruby
apeiros has joined #ruby
emergion has quit [Max SendQ exceeded]
emergion has joined #ruby
quazimodo has joined #ruby
pikapp has joined #ruby
dodosan has joined #ruby
Xaitec has quit [Remote host closed the connection]
kayloos has quit [Remote host closed the connection]
visof has joined #ruby
visof has joined #ruby
linux_noob_666 has quit [Remote host closed the connection]
swordsmanz has quit [Quit: swordsmanz]
cads has quit [Ping timeout: 264 seconds]
mikeric has quit []
cody-- has joined #ruby
emergion has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
h4mz1d has quit [Ping timeout: 260 seconds]
quazimodo has quit [Ping timeout: 245 seconds]
gstamp has quit [Read error: Connection reset by peer]
MrZYX is now known as MrZYX|off
oliver__ has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
gstamp has joined #ruby
end_guy has quit [Remote host closed the connection]
zets has joined #ruby
Breadcrumbs has joined #ruby
kayloos has joined #ruby
bobdobbs has joined #ruby
endash has joined #ruby
mpereira has quit [Ping timeout: 260 seconds]
cads has joined #ruby
end_guy has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
awkisopen has joined #ruby
siwica has quit [Ping timeout: 264 seconds]
<awkisopen> anybody know of a gem that works essentially like distance_of_time_in_words in rails, but does not require rails (and, preferably, doesn't give any of that 'about' nonsense)?
RichardBaker has joined #ruby
siwica has joined #ruby
DonRichie has quit [Ping timeout: 264 seconds]
DonRichie has joined #ruby
chrishough has quit [Quit: chrishough]
bricker`LA has joined #ruby
sarlalian has joined #ruby
dhruvasagar has joined #ruby
tkuchiki has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
mercwithamouth has joined #ruby
sarlalian has quit [Ping timeout: 276 seconds]
kayloos has quit [Remote host closed the connection]
chrishough has joined #ruby
Davey has joined #ruby
BillCriswell has quit [Quit: night!]
tkuchiki has quit [Ping timeout: 264 seconds]
chrishough has quit [Client Quit]
sevenseacat has joined #ruby
butblack has joined #ruby
cody-- has quit [Quit: derp]
Cyrus has joined #ruby
snovak has joined #ruby
dagnachew has quit [Quit: Leaving]
quoin has joined #ruby
gr33n7007h has joined #ruby
snovak has quit [Ping timeout: 248 seconds]
gyre007 has joined #ruby
vlad_starkov has joined #ruby
cromagnon_ has joined #ruby
quoin has quit [Ping timeout: 264 seconds]
gyre007 has quit [Read error: Operation timed out]
nisstyre has quit [Read error: Operation timed out]
cromagnon_ has left #ruby [#ruby]
kaspergr_ has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
xjiujiu has joined #ruby
mansi has joined #ruby
machuga|away is now known as machuga
kaspergrubbe has quit [Read error: Operation timed out]
DanKnox_away is now known as DanKnox
butblack has left #ruby [#ruby]
mansi has quit [Ping timeout: 245 seconds]
Domon has joined #ruby
bricker`LA has quit [Ping timeout: 264 seconds]
Astralum has quit [Ping timeout: 246 seconds]
bricker`LA has joined #ruby
pwh has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
mercwithamouth has joined #ruby
siwica has quit [Ping timeout: 260 seconds]
eka has joined #ruby
dkamioka has joined #ruby
r0bglees0n has joined #ruby
xjiujiu_ has joined #ruby
<Boohbah> hi, i am spawning a process using PTY#spawn and saving its r, w, and pid so i can do some interactive i/o using expect. How can i reattach STDIN and STDOUT of my ruby process to that process after some condition is met?
mwlang has joined #ruby
bricker`LA has quit [Ping timeout: 245 seconds]
<mwlang> Is there an intelligent way (in Linux) to read files in /proc folder with Ruby without running my Ruby script as a super user (i.e. root)?
baroquebobcat has quit [Quit: baroquebobcat]
mercwithamouth has quit [Ping timeout: 240 seconds]
xjiujiu has quit [Ping timeout: 245 seconds]
kobain_ has quit [Remote host closed the connection]
<Boohbah> mwlang: most of the files in my /proc are world-readable... are yours not?
kobain has joined #ruby
kobain has quit [Excess Flood]
kobain has joined #ruby
yaymukund has joined #ruby
DanKnox is now known as DanKnox_away
ksh has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
<Boohbah> mwlang: you need root priveleges to read files that are only root-readable. in that case you could use sudo
siwica has joined #ruby
ksh has joined #ruby
m00nlight has quit [Quit: Konversation terminated!]
tjbiddle has quit [Quit: tjbiddle]
Hanmac1 has joined #ruby
jprovazn has quit [Quit: Leaving]
hanmac has quit [Ping timeout: 264 seconds]
bricker`LA has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Domon has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
Domon has joined #ruby
<mwlang> Boohbah: I guess what I'm asking is there a special group just for this purpose of reading the proc files that would enable the l-user account to read these files. maybe this is better asked in a Linux forum than here….
linduxed has joined #ruby
jetblack has quit [Quit: leaving]
<mwlang> Boohbah: strange, most of mine are world-readable, too! Not sure why I'm getting permission denied.
gimpygoo has quit [Ping timeout: 245 seconds]
<mwlang> time to investigate!
butblack has joined #ruby
krz has joined #ruby
<mwlang> ah-ha -- the one specific file I want to read isn't world readable…. /proc/net/ip_conntrack
DanKnox_away is now known as DanKnox
Domon has quit [Ping timeout: 245 seconds]
Breadcrumbs has quit [Ping timeout: 276 seconds]
alexju has joined #ruby
Nanuq has quit [Ping timeout: 245 seconds]
echevemaster has quit [Remote host closed the connection]
haxrbyte has joined #ruby
baroquebobcat has joined #ruby
tabolario has joined #ruby
alexju has quit [Read error: Connection reset by peer]
alexju has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
tonni_ has joined #ruby
devoldmx3 has quit [Quit: Shutting down]
devoldmx has joined #ruby
pwh has quit [Quit: pwh]
randomautomator has quit [Ping timeout: 264 seconds]
agent_white has joined #ruby
tonni has quit [Ping timeout: 264 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
Davey has quit [Quit: Computer has gone to sleep.]
Breadcrumbs has joined #ruby
snovak has joined #ruby
bricker`LA has quit [Ping timeout: 276 seconds]
quoin has joined #ruby
radic_ has joined #ruby
siwica has quit [Ping timeout: 260 seconds]
<agent_white> So I work at a helpdesk/callcenter, and I'm looking to automate grabbing customer information. I know our 'portal' uses session based logins (open new browser prompts username&pass), so what terms should I be Googling to gain more insight on this?
sarkis has joined #ruby
<agent_white> Essentially, I want to parse data on multiple pages, but don't want to re-login for each request
CpuID2 has joined #ruby
siwica has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
cfi30 has joined #ruby
<CpuID2> hey ppls? what scenarios would cause something like "undefined method `join' for nil:NilClass (NoMethodError)" when using ruby Thread objects?
radic__ has quit [Ping timeout: 240 seconds]
<CpuID2> basically just creating some threads, doing some puts lines during, putting all the threads in an array, and doing array.each do |t| t.join
nanoxd has quit [Ping timeout: 260 seconds]
<CpuID2> cant seem to pinpoint whats causing join to not exist
<daveops> CpuID2: link to code snippet
<sevenseacat> t is nil, obviously.
quoin has quit [Ping timeout: 260 seconds]
<CpuID2> sec
<CpuID2> this code snippet is rather massive
alexju_ has joined #ruby
alexju has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
Clooth has quit [Quit: Leaving...]
nanoxd has joined #ruby
Splourian has joined #ruby
<CpuID2> daveops: your right, some thread is nil for some reason
<CpuID2> just doing some digging now from here
<daveops> I can't take credit for sevenseacat's work :P
<sevenseacat> all good :P
simoz has joined #ruby
tonni has joined #ruby
<CpuID2> hehe
mansi has joined #ruby
<CpuID2> sorry my bad, sevenseacat :)
BadQuanta has joined #ruby
zorg24 has joined #ruby
nanothief_ has quit [Ping timeout: 240 seconds]
tonni_ has quit [Read error: Connection reset by peer]
alexju_ has quit [Ping timeout: 264 seconds]
nanothief has joined #ruby
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
Karu has joined #ruby
nisstyre has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
<Karu> Greetings and quick question: I'm trying to randomize an array loaded from a file in one shot doing something like file.read.split("\n").sample - is there a way to pass the array's length to sample as an arugment without creating a temporary object?
Es0teric has joined #ruby
kaspergrubbe has quit [Ping timeout: 245 seconds]
Ripp__ has joined #ruby
cooldman224 has quit [Remote host closed the connection]
polaco_zZz is now known as polaco
optimusprimem has joined #ruby
optimusprimem has joined #ruby
peregrine81 has joined #ruby
<r0bglees0n> karu: .sample should be fine, you could try: index = arr.size; random = SecureRandom.random_number(index+1); arr[index]
<r0bglees0n> id use sample though
cfi30 has quit [Quit: weechat]
varfoo has joined #ruby
randomautomator has joined #ruby
<Karu> r0bglees0n: cool, that works. I ended up just monkey patching Array with a .randomize method (self.sample(self.length)). Feels icky though :P
<mwlang> agent_white: is the login prompt the browser's or is the login part of the web app itself? If its the browser, looking for digest and basic login info for apache should lead you down the right path.
<mwlang> and I believe both of those set the REMOTE_USER header
cfi30 has joined #ruby
endash has quit [Quit: endash]
<r0bglees0n> karu: off-by-one error in my logic, dont need +1
randomau_ has joined #ruby
<agent_white> mwlang: It is the browser (asks for it everytime I login), though I do have certificates I had to install for accessing the vpn/sites/etc. Would those interfere with that?
yekta has quit [Quit: yekta]
decoponio has joined #ruby
dziga has joined #ruby
Lindrian has quit [Ping timeout: 256 seconds]
yekta has joined #ruby
<Karu> r0bglees0n: Out of curiosity, I take it SecureRandom uses the system /dev/random while sample just uses /dev/urandom since there's no need to block?
<mwlang> not sure about what would cause continuous prompting unless sessions are somehow disabled.
<mwlang> actually, it may be cookies.
IceDragon has quit [Quit: Space~~~]
mengu has quit [Quit: This computer has gone to sleep]
<agent_white> mwlang: Alright, so doing some digging into cookies and headers would be a good idea?
Lindrian has joined #ruby
<mwlang> agent_white: yeah, this may be a good start: http://www.apacheweek.com/features/userauth
randomautomator has quit [Ping timeout: 248 seconds]
xxpor_ has joined #ruby
T_T has quit [Remote host closed the connection]
<mwlang> old page, but still good info. Current docs here if you're using Apache 2.2: http://httpd.apache.org/docs/2.2/howto/auth.html
<agent_white> mwlang: Perfect, thank you!
<r0bglees0n> karu: i dont know how either is implemented
<Karu> r0bglees0n: heh, okay. Thank you!
Gooder has joined #ruby
xxpor has quit [Ping timeout: 256 seconds]
forced_request has quit [Read error: Connection reset by peer]
breadcrumb5 has joined #ruby
Davey has joined #ruby
alexju has joined #ruby
gmacc has joined #ruby
gmacc has left #ruby [#ruby]
Breadcrumbs has quit [Ping timeout: 264 seconds]
Splourian has quit [Quit: Leaving]
cfi30 has quit [Quit: WeeChat 0.4.1]
bricker`LA has joined #ruby
mansi has joined #ruby
Lindrian has quit [Ping timeout: 240 seconds]
rcosta_ has quit [Remote host closed the connection]
cfi30 has joined #ruby
funburn has quit [Quit: funburn]
machuga is now known as machuga|away
Aryasam has joined #ruby
dodosan has quit [Remote host closed the connection]
Lindrian has joined #ruby
ryanw has joined #ruby
<ryanw> Hi. I'm encountering a bug in webmock and getting the error "can't add a new key into hash during iteration". Is there any way to find where the interation starts?
okinomo has joined #ruby
Aryasam has quit [Ping timeout: 264 seconds]
hogeo has joined #ruby
Aryasam has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
Splourian has joined #ruby
mikepack has joined #ruby
mwlang has quit [Quit: mwlang]
<r0bglees0n> ryanw: the backtrace should have a hint
xjiujiu_ has quit [Ping timeout: 245 seconds]
<ryanw> I thought so... I can't see any obvious loops though.
<ryanw> It uses Mutex#synchronize. Maybe that does something odd.
dhruvasagar has quit [Ping timeout: 264 seconds]
peregrine81 has quit []
<ryanw> Just grepped for loops, first one I found seems to be the cause :) I'll monkey patch the bugger.
snovak has joined #ruby
quoin has joined #ruby
splittingred has joined #ruby
vlad_starkov has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
Aryasam has quit [Ping timeout: 264 seconds]
quoin has quit [Ping timeout: 260 seconds]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
<r0bglees0n> ryanw: maybe open a pull request on github as well, other people might run into it
Xaitec has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
mansi has quit [Ping timeout: 264 seconds]
jefflyne3 has quit [Ping timeout: 264 seconds]
|jemc| has joined #ruby
kevinykchan has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
love_color_text has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
alexju has quit [Remote host closed the connection]
alexju has joined #ruby
Domon has joined #ruby
baroquebobcat has joined #ruby
Hanmac1 has quit [Quit: Leaving.]
simoz has quit [Ping timeout: 241 seconds]
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Davey has joined #ruby
yekta has quit [Quit: yekta]
yekta has joined #ruby
alexju has quit [Ping timeout: 248 seconds]
alexju has joined #ruby
simoz has joined #ruby
diegoviola has joined #ruby
nanoxd has joined #ruby
mikepack has quit [Remote host closed the connection]
polaco is now known as polaco_zZz
jds_ has quit [Ping timeout: 260 seconds]
sayan has joined #ruby
joast has quit [Quit: Leaving.]
babykosh has quit [Ping timeout: 245 seconds]
simoz2 has joined #ruby
simoz has quit [Ping timeout: 264 seconds]
yacks has quit [Quit: Leaving]
Karu has quit [Ping timeout: 250 seconds]
love_color_text has quit [Ping timeout: 264 seconds]
Teddy2steper has joined #ruby
Deele has joined #ruby
osvico has quit []
love_color_text has joined #ruby
dankest has quit [Quit: Peace]
browndawg has joined #ruby
butblack has quit [Quit: butblack]
babykosh has joined #ruby
funburn has joined #ruby
babykosh has quit [Client Quit]
brum has quit [Remote host closed the connection]
sayan has quit [Read error: Connection reset by peer]
Xaitec has quit [Ping timeout: 240 seconds]
alexju has quit [Remote host closed the connection]
alexju has joined #ruby
love_color_text has quit [Ping timeout: 264 seconds]
love_color_text has joined #ruby
devoldmx3 has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
saarinen has joined #ruby
saarinen has quit [Ping timeout: 245 seconds]
byprdct has joined #ruby
T_T has joined #ruby
<byprdct> Hey guys I was hoping to get a little advice on the gem rubber or maybe some advice from someone that has had experience using EC2 for apps. I've been looking into heroku and other services and it's great that you don't have to manage anything but many of the things Im building or want to build receive zero income and I was hoping to maybe find a different alternative
quoin has joined #ruby
snovak has joined #ruby
<byprdct> besides building apps that recieve income :)
<byprdct> lol
<byprdct> although I wouldnt mind making money :)
love_color_text has quit [Ping timeout: 245 seconds]
penzur has joined #ruby
<|jemc|> I don't mean to come across snide, but wouldn't the free alternative to a service that manages your system for you just be hosting and managing it yourself?
<|jemc|> Maybe I'm missing the point of the question, though
<sevenseacat> i dont get the question
jamesaanderson has joined #ruby
quoin has quit [Ping timeout: 245 seconds]
Aryasam has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
jamesaanderson has quit [Client Quit]
mansi has joined #ruby
Aryasam has quit [Client Quit]
aryaching has joined #ruby
ssvo has joined #ruby
yaymukund has quit [Ping timeout: 260 seconds]
mansi has quit [Ping timeout: 245 seconds]
intuxicated has joined #ruby
intuxicated has quit [Changing host]
intuxicated has joined #ruby
<jrobeson> byprdct, you pay for a cheap vps like digital ocean
<jrobeson> and manage deployment and service setup yourself
EIAC has joined #ruby
EIA has joined #ruby
dmiller_ has quit [Remote host closed the connection]
Senjai has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
<byprdct> sorry guys didnt see the responses until jrobeson. |jemc| sevenseacat jrobeson that is precisely what I'm trying to figure out, is rubber the way to go? I don't have expereince deploying servers capable of running rails but I was reading and watching how to deploy with rubber and it looked extremely easy but it from what I saw it showed looked as if I would need to fire up a new instance for each app… is that right? or have any of
<byprdct> you experience with rubber and can tell me if thats not the case?
tacit7 has joined #ruby
<jrobeson> never used rubber, but it's not free either
<jrobeson> i mean ews isn't
<jrobeson> aws*
mrsolo has joined #ruby
<jrobeson> once you go for a year
<jrobeson> or so i remember :(
ItSANgo has joined #ruby
<sevenseacat> aws definitely not free
<byprdct> :)
<byprdct> not necessarily looking totally free sevenseacat just something not so Herokuish
dhruvasagar has joined #ruby
s2013 has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
<s2013> stupid question but i want to build something that checks how often you press a key. no idea what library or where to look for in the documetnation
<sevenseacat> well yes, then the alternative is to spin up your own servers and manage them yourself. no experience with rubber but i presume its not going to be as easy as 123
<byprdct> understood :)
<s2013> benchmark?
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baroquebobcat has quit [Quit: baroquebobcat]
ananthakumaran has joined #ruby
xxpor__ has joined #ruby
simoz2 has quit [Ping timeout: 276 seconds]
cfi30 has quit [Quit: ~]
sayan has joined #ruby
xxpor_ has quit [Ping timeout: 276 seconds]
parzo has joined #ruby
evelyette_ has quit [Quit: Leaving]
jds_ has joined #ruby
splittingred has quit [Quit: splittingred]
siwica has quit [Ping timeout: 276 seconds]
kobain has quit []
rippa has joined #ruby
byprdct has quit [Ping timeout: 276 seconds]
gr33n7007h has quit [Remote host closed the connection]
randomau_ has quit [Read error: Connection reset by peer]
mrsolo has quit [Quit: This computer has gone to sleep]
Al has joined #ruby
tacit7 has left #ruby [#ruby]
agent_white has quit [Quit: leaving]
yaymukund has joined #ruby
mrsolo has joined #ruby
JaTochNietDan has quit [Ping timeout: 245 seconds]
chihhsin has quit [Quit: leaving]
Teddy2steper has quit [Remote host closed the connection]
xxpor__ has quit [Quit: Leaving]
xxpor__ has joined #ruby
girija has joined #ruby
yaymukund has quit [Ping timeout: 245 seconds]
xxpor__ is now known as xxpor
dmiller has joined #ruby
codecop has joined #ruby
JaTochNietDan has joined #ruby
aagdbl has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
SeySayux_ has quit [Ping timeout: 264 seconds]
SeySayux has joined #ruby
intuxicated has quit [Ping timeout: 245 seconds]
chihhsin has joined #ruby
browndawg has quit [Read error: Connection timed out]
browndawg has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
girija has quit [Ping timeout: 264 seconds]
visof has quit [Remote host closed the connection]
zarubin has joined #ruby
Maokomioko has joined #ruby
saarinen has joined #ruby
Maokomioko is now known as maoko
quoin has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
snovak has joined #ruby
intuxicated has joined #ruby
kaspergrubbe has joined #ruby
quoin has quit [Ping timeout: 264 seconds]
tacos1de has quit [Ping timeout: 240 seconds]
snovak has quit [Ping timeout: 264 seconds]
girija has joined #ruby
jefflyne3 has joined #ruby
kaspergrubbe has quit [Ping timeout: 260 seconds]
coderhs has joined #ruby
girija has left #ruby [#ruby]
tomzx_mac has quit [Ping timeout: 240 seconds]
girija has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
relix has joined #ruby
yekta has quit [Quit: yekta]
tacos1de has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
zarubin has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
fridim__ has quit [Ping timeout: 246 seconds]
apeiros has quit [Remote host closed the connection]
dmiller has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
ics has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
sarkis has quit [Ping timeout: 245 seconds]
nanoxd has joined #ruby
devoldmx has joined #ruby
<awkisopen> is there a gem equivalent of distance_of_time_in_words for non-rails applications?
dmiller has quit [Ping timeout: 264 seconds]
ananthakumaran has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx3 has quit [Ping timeout: 260 seconds]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
quarks has quit [Ping timeout: 260 seconds]
browndawg has left #ruby [#ruby]
Al has quit [Quit: Al]
sarkis has joined #ruby
browndawg has joined #ruby
browndawg has quit [Client Quit]
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brianpWins has quit [Quit: brianpWins]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
adkron_ has joined #ruby
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
adkron has quit [Ping timeout: 264 seconds]
zarubin has joined #ruby
jonahR has quit [Quit: jonahR]
parzo has quit [Ping timeout: 240 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
justforfun has quit [Ping timeout: 240 seconds]
mrsolo has joined #ruby
kiri has joined #ruby
tagrudev has joined #ruby
intuxicated has quit [Remote host closed the connection]
randomautomator has joined #ruby
intuxicated has joined #ruby
intuxicated has quit [Remote host closed the connection]
Maokomioko has joined #ruby
diegoviola has quit [Ping timeout: 260 seconds]
randomautomator has quit [Ping timeout: 264 seconds]
sayan has joined #ruby
penzur has quit [Quit: reboot]
braincra- has joined #ruby
Maokomioko has quit [Client Quit]
kil0byte has quit [Remote host closed the connection]
braincrash has quit [Ping timeout: 264 seconds]
xk_id has quit [Ping timeout: 264 seconds]
Bosox20051 has joined #ruby
zarubin has quit [Ping timeout: 245 seconds]
dkamioka has quit [Remote host closed the connection]
zarubin has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
zoee has joined #ruby
kevind has quit [Quit: kevind]
quoin has joined #ruby
mrsolo has quit [Quit: Leaving]
Apocalypse has quit [Ping timeout: 260 seconds]
xk_id has joined #ruby
justforfun has joined #ruby
snovak has joined #ruby
Apocalypse has joined #ruby
adeponte has joined #ruby
quoin has quit [Ping timeout: 245 seconds]
parzo has joined #ruby
snovak has quit [Ping timeout: 248 seconds]
dagobah has joined #ruby
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
siwica has joined #ruby
kizzx2 has joined #ruby
jbpros has joined #ruby
jefflyne3 has quit [Ping timeout: 264 seconds]
zorg24 has quit [Ping timeout: 260 seconds]
corpuscle has joined #ruby
andikr has joined #ruby
mansi has joined #ruby
bubbajones has quit [Ping timeout: 246 seconds]
adkron has joined #ruby
bigkevmcd has joined #ruby
adkron_ has quit [Ping timeout: 260 seconds]
zeropx has joined #ruby
kaspergrubbe has joined #ruby
threeturn has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
adkron has quit [Ping timeout: 264 seconds]
adkron_ has joined #ruby
kaspergrubbe has joined #ruby
bubbajones has joined #ruby
aganov has joined #ruby
pranny has joined #ruby
sarkis has quit [Ping timeout: 245 seconds]
aryaching has quit [Ping timeout: 248 seconds]
zorg24 has joined #ruby
DonRichie has quit [Read error: Connection reset by peer]
adkron has joined #ruby
_maes_ has joined #ruby
kaspergrubbe has quit [Ping timeout: 260 seconds]
DonRichie has joined #ruby
adkron_ has quit [Ping timeout: 264 seconds]
filipe has joined #ruby
bubbajones has quit [Ping timeout: 264 seconds]
bubbajones has joined #ruby
kaspergrubbe has joined #ruby
allsystemsarego has joined #ruby
zarul has joined #ruby
Maokomioko has joined #ruby
saarinen has quit [Quit: saarinen]
Maokomioko is now known as maoko
T_T has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 264 seconds]
ssvo has quit [Ping timeout: 276 seconds]
ayaz has joined #ruby
funburn has quit [Quit: funburn]
adeponte has quit [Remote host closed the connection]
wchun has joined #ruby
adeponte has joined #ruby
blaxter_ has joined #ruby
<jmaister> "…that above code will works without rails, after installing action pack(gem install actionpack)"
DanKnox is now known as DanKnox_away
<awkisopen> yeah I'm leaning towards just using actionview
<awkisopen> seems overkill but if it works it works
aryaching has joined #ruby
<jmaister> The world doesn't seem to be as ideal as I once thought
funburn has joined #ruby
wallerdev has quit [Quit: wallerdev]
ekarlso- has quit [Read error: Connection reset by peer]
adeponte has quit [Ping timeout: 276 seconds]
wchun has quit [Quit: Leaving]
|jemc| has quit [Ping timeout: 264 seconds]
siwica has quit [Ping timeout: 264 seconds]
sr78ger has joined #ruby
callenb has joined #ruby
sr78ger has quit [Max SendQ exceeded]
oliver_ has joined #ruby
sr78ger has joined #ruby
tjad has quit [Ping timeout: 256 seconds]
siwica has joined #ruby
sr78ger has quit [Max SendQ exceeded]
zorg24 has quit [Ping timeout: 245 seconds]
persand has joined #ruby
wallerdev has joined #ruby
sr78ger has joined #ruby
browndawg has joined #ruby
funburn has quit [Quit: funburn]
jds_ has quit [Remote host closed the connection]
jds_ has joined #ruby
zorg24 has joined #ruby
kil0byte has joined #ruby
camilasan has joined #ruby
adkron_ has joined #ruby
JBek has left #ruby [#ruby]
alup has joined #ruby
Bosox20051 has quit [Quit: Leaving]
quoin has joined #ruby
adkron has quit [Ping timeout: 245 seconds]
snovak has joined #ruby
alexju has quit [Remote host closed the connection]
alexju has joined #ruby
relix has joined #ruby
claymore has joined #ruby
zarul has quit [Remote host closed the connection]
alup has quit [Client Quit]
beilabs has quit [Ping timeout: 256 seconds]
siwica has quit [Ping timeout: 264 seconds]
jbpros has quit [Quit: jbpros]
quoin has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
nhhagen has quit [Read error: Connection reset by peer]
snovak has quit [Ping timeout: 264 seconds]
adkron has joined #ruby
maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
alexju has quit [Ping timeout: 264 seconds]
kevinykchan has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
fryguy- has joined #ruby
wmoxam has joined #ruby
elektronaut has quit [Ping timeout: 245 seconds]
adkron_ has quit [Ping timeout: 264 seconds]
fryguy has quit [Ping timeout: 245 seconds]
jmaister has quit [Ping timeout: 245 seconds]
slash_nick has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
Apocalypse has quit [Ping timeout: 260 seconds]
troessner has joined #ruby
three18ti has quit [Ping timeout: 245 seconds]
emergion has joined #ruby
three18ti has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
rtl has quit [Ping timeout: 245 seconds]
slash_nick has joined #ruby
kilophoton has quit [Ping timeout: 264 seconds]
jmaister has joined #ruby
rtl has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
tjad has joined #ruby
elektronaut has joined #ruby
alup has joined #ruby
Ripp__ has quit []
wallerdev has quit [Quit: wallerdev]
Apocalypse has joined #ruby
mansi has joined #ruby
funburn has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
tommyvyo has joined #ruby
schaerli has joined #ruby
Splourian has left #ruby ["Leaving"]
beilabs_ has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
mansi has quit [Ping timeout: 245 seconds]
coderhs has quit [Ping timeout: 245 seconds]
dmiller has joined #ruby
vmoravec has joined #ruby
vlad_starkov has joined #ruby
parzo has quit [Ping timeout: 245 seconds]
akemrir has joined #ruby
avril14th has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
breadcrumb5 has quit [Quit: HydraIRC -> http://www.hydrairc.com <- In tests, 0x09 out of 0x0A l33t h4x0rz prefer it :)]
Coffers has joined #ruby
marcgg has joined #ruby
lkba has joined #ruby
skaflem has joined #ruby
tjad has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 245 seconds]
nazty has joined #ruby
intuxicated has joined #ruby
stefunel has left #ruby [#ruby]
thoraxe has quit [Ping timeout: 264 seconds]
oliver_ has quit [Remote host closed the connection]
BadQuanta has quit [Remote host closed the connection]
oliver_ has joined #ruby
browndawg has quit [Read error: Connection timed out]
joshwines has joined #ruby
browndawg has joined #ruby
sayan has quit [Read error: Connection reset by peer]
Criztian has joined #ruby
Al_ has joined #ruby
Al_ has quit [Client Quit]
kaspergrubbe has quit [Remote host closed the connection]
eloquent_mute has joined #ruby
fixl has joined #ruby
elaptics`away is now known as elaptics
BadQuanta has joined #ruby
siwica has joined #ruby
kaspergrubbe has joined #ruby
jds_ has quit [Remote host closed the connection]
jds_ has joined #ruby
s2013 has quit [Quit: Leaving]
tesuji has joined #ruby
corpuscle has quit [Quit: WeeChat 0.4.1]
razi has joined #ruby
jds_ has quit [Ping timeout: 240 seconds]
razi has quit [Client Quit]
Criztian has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
adkron_ has joined #ruby
Kneferilis has quit [Quit: Leaving]
buibex has joined #ruby
Kneferilis has joined #ruby
BrianJ has quit [Quit: Computer has gone to sleep.]
ehaliewicz has quit [Remote host closed the connection]
multiHYP has joined #ruby
<multiHYP> hi
ehaliewicz has joined #ruby
ephemerian has joined #ruby
kil0byte has quit [Ping timeout: 240 seconds]
blaxter_ has quit [Ping timeout: 245 seconds]
<multiHYP> how can I add category tags to my RSS items?
adkron has quit [Ping timeout: 264 seconds]
jbpros has joined #ruby
blaxter_ has joined #ruby
quoin has joined #ruby
arbes has quit [Ping timeout: 264 seconds]
browndawg has quit [Read error: Connection timed out]
<pontiki> awkisopen: try ChronicDuration
Xeago has joined #ruby
workmad3 has joined #ruby
siwica has quit [Ping timeout: 245 seconds]
arbes has joined #ruby
rippa has joined #ruby
snovak has joined #ruby
siwica has joined #ruby
ehaliewicz has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
tjad has joined #ruby
adkron_ has quit [Ping timeout: 264 seconds]
quoin has quit [Ping timeout: 245 seconds]
brisbin has quit [Read error: Connection reset by peer]
adkron has joined #ruby
brisbin has joined #ruby
funburn has quit [Quit: funburn]
jbpros has quit [Ping timeout: 264 seconds]
snovak has quit [Ping timeout: 245 seconds]
eloquent_mute has quit [Ping timeout: 264 seconds]
sayan has joined #ruby
jefflyne3 has joined #ruby
CpuID2 has quit [Ping timeout: 264 seconds]
siwica has quit [Quit: siwica]
adkron has quit [Ping timeout: 264 seconds]
adkron has joined #ruby
siwica has joined #ruby
shaunbaker has joined #ruby
gaussius_ has joined #ruby
gaussius_ has quit [Client Quit]
gr33n7007h has joined #ruby
noname001 has joined #ruby
mansi has joined #ruby
fgo has joined #ruby
tjad has quit [Ping timeout: 245 seconds]
coderhs has joined #ruby
tatsuya_o has joined #ruby
adkron has quit [Ping timeout: 245 seconds]
blaxter_ has quit [Ping timeout: 245 seconds]
multiHYP has left #ruby [#ruby]
jds_ has joined #ruby
kilophoton has joined #ruby
seich- has quit [Ping timeout: 240 seconds]
joshu has quit [Quit: Bye.]
Xeago_ has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
eloquent_mute has joined #ruby
dmiller has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
kilophoton has quit [Ping timeout: 264 seconds]
Xeago has quit [Ping timeout: 264 seconds]
oliver_ has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 276 seconds]
zarubin has quit [Ping timeout: 264 seconds]
joshu has joined #ruby
m8 has joined #ruby
seich- has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
<gr33n7007h> why as COLUMNS disappeared from ENV
tjad has joined #ruby
<gr33n7007h> it's just vanished
parzo has joined #ruby
oliver_ has joined #ruby
blaxter_ has joined #ruby
callenb has left #ruby [#ruby]
dhruvasagar has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
timonv has quit [Remote host closed the connection]
parzo has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
MissionCritical has quit [Ping timeout: 268 seconds]
adkron has joined #ruby
funburn has joined #ruby
gyre007 has joined #ruby
wildroman has joined #ruby
dawkirst has joined #ruby
adkron has quit [Ping timeout: 245 seconds]
wildroman has quit [Remote host closed the connection]
adkron has joined #ruby
khushildep has joined #ruby
okinomo has quit [Quit: Lost terminal]
Astralum has joined #ruby
tonni is now known as ta
noop has joined #ruby
haxrbyte_ has joined #ruby
buibex has quit [Remote host closed the connection]
Zai00 has joined #ruby
Lindrian has quit [Changing host]
Lindrian has joined #ruby
haxrbyte has quit [Ping timeout: 248 seconds]
buibex has joined #ruby
rdark has joined #ruby
shredding has joined #ruby
funburn has quit [Quit: funburn]
adkron_ has joined #ruby
aaronmcadam has joined #ruby
MissionCritical has joined #ruby
adkron has quit [Ping timeout: 245 seconds]
DrCode has quit [Remote host closed the connection]
dangerousdave has joined #ruby
adkron has joined #ruby
adkron_ has quit [Ping timeout: 248 seconds]
Maokomioko has joined #ruby
Maokomioko is now known as maoko
hogeo has quit [Remote host closed the connection]
crus has quit [Remote host closed the connection]
funburn has joined #ruby
crus has joined #ruby
vikhyat has joined #ruby
jds_ has quit [Ping timeout: 240 seconds]
aagdbl has quit [Ping timeout: 276 seconds]
aagdbl has joined #ruby
quoin has joined #ruby
lupine has left #ruby ["Leaving"]
lupine has joined #ruby
eldariof has joined #ruby
aryaching_ has joined #ruby
snovak has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
EIAC has quit [Read error: Connection reset by peer]
coaster has quit [Ping timeout: 276 seconds]
EIA has quit [Quit: Page closed]
vlad_starkov has quit [Remote host closed the connection]
quoin has quit [Ping timeout: 264 seconds]
kaspergrubbe has quit [Ping timeout: 248 seconds]
Xeago_ has quit [Remote host closed the connection]
ferdev has quit [Quit: ferdev]
sevenseacat has quit [Quit: Leaving.]
Stygia has joined #ruby
kayloos has joined #ruby
dawkirst has quit [Quit: Leaving]
snovak has quit [Ping timeout: 245 seconds]
dawkirst has joined #ruby
Aryasam has joined #ruby
aryaching_ has quit [Ping timeout: 276 seconds]
eldariof has quit [Ping timeout: 245 seconds]
Splourian has joined #ruby
buibex has quit [Remote host closed the connection]
jefflyne3 has quit [Ping timeout: 245 seconds]
tjad_ has joined #ruby
buibex has joined #ruby
tjad has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
shaunbak_ has joined #ruby
Elhu has joined #ruby
shaunbaker has quit [Ping timeout: 260 seconds]
mansi has quit [Ping timeout: 240 seconds]
jibi has joined #ruby
Nenor has joined #ruby
_tockitj has joined #ruby
jds_ has joined #ruby
DrCode has joined #ruby
Aryasam has quit [Quit: Bye]
emergion has quit [Quit: Computer has gone to sleep.]
aryaching has joined #ruby
MrZYX|off is now known as MrZYX
Kar- has joined #ruby
DrCode has quit [Remote host closed the connection]
seich- has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
buibex has quit [Remote host closed the connection]
wildroman has joined #ruby
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
nisstyre has quit [Read error: Connection timed out]
beilabs_ has quit [Ping timeout: 245 seconds]
oliver_ has quit [Remote host closed the connection]
seich- has joined #ruby
Clooth has joined #ruby
pushpak has joined #ruby
Mephisto4 has joined #ruby
oliver_ has joined #ruby
adambeynon has joined #ruby
jds_ has quit [Ping timeout: 245 seconds]
buibex has joined #ruby
Stalkr_ has joined #ruby
persand has quit [Quit: persand]
browndawg has quit [Read error: Connection reset by peer]
choobie has quit [Remote host closed the connection]
gr33n7007h has quit [Read error: No route to host]
mklappstuhl has joined #ruby
gr33n7007h has joined #ruby
bluenemo has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Client Quit]
aryaching has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
artmann has joined #ruby
aryaching has joined #ruby
<artmann> Hi I'm using the SSL socket and I'm trying to send a timestamp to the server using socket.write Time.now.to_i but I get "out of char range (RangeError)". How do I send an integer of this length over the socket?
JoeHazzers has left #ruby [#ruby]
kreisys has joined #ruby
beilabs_ has joined #ruby
kaspergrubbe has joined #ruby
eloquent_mute has quit [Ping timeout: 245 seconds]
schaerli has quit [Remote host closed the connection]
Kar- has quit [Quit: leaving]
butblack has joined #ruby
aagdbl1 has joined #ruby
eightbitraptor has joined #ruby
ferdev has joined #ruby
Kar- has joined #ruby
blaxter_ has quit [Quit: foo]
Kar- has quit [Client Quit]
DrCode has joined #ruby
aagdbl has quit [Ping timeout: 240 seconds]
Kar- has joined #ruby
kayloos has quit [Remote host closed the connection]
blaxter_ has joined #ruby
nhhagen has joined #ruby
aryaching has quit [Ping timeout: 276 seconds]
nerdy has joined #ruby
kayloos has joined #ruby
Kar- has quit [Client Quit]
wildroman has quit [Remote host closed the connection]
<xybre> artmann: Don't you need to send a serialized version?
aagdbl1 is now known as aagdbl
Kar- has joined #ruby
intuxicated has quit [Ping timeout: 248 seconds]
kil0byte has joined #ruby
<artmann> A serialized version?
NealJ has joined #ruby
aryaching has joined #ruby
quoin has joined #ruby
coaster has joined #ruby
<artmann> xybre: I have some java code I want to convert to ruby http://pastebin.com/aYKkNSLB
wildroman has joined #ruby
butblack has quit [Quit: butblack]
crunch-choco has joined #ruby
siwica has quit [Quit: siwica]
nerdy has quit [Quit: Computer has gone to sleep.]
jds_ has joined #ruby
snovak has joined #ruby
mercwithamouth has joined #ruby
quoin has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
kayloos has quit [Remote host closed the connection]
kizzx2 has quit [Quit: Leaving.]
<canton7> artmann, socket.write expects a string. you're passing it an int
snovak has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 276 seconds]
<canton7> you probably want socket.write([Time.now.to_i].pack('N')]), or maybe 'V', depending on the endianness you want
vlad_starkov has joined #ruby
vlad_sta_ has joined #ruby
blackmesa has joined #ruby
rickmasta has quit [Quit: Leaving...]
aryaching has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
<artmann> That makes sense
<artmann> mondays...
pushpak has quit [Ping timeout: 256 seconds]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
mansi has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
intuxicated has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
<krz> if i got a array of hashes. i.e. [{geo: 'foo', baz: 'baz'}, {geo: 'bar', foobar: 'foobar', extra: 'extra'}] whats the best way to parse through each hash and extract the value of :geo?
AndChat| has joined #ruby
<canton7> array_of_hashes.map{ |x| h[:geo] }
<krz> oh
<canton7> oops x[:geo]
siwica has joined #ruby
threeturn has quit [Quit: threeturn]
jibi has quit [Quit: .]
schaerli has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
tacos1de has quit [Ping timeout: 240 seconds]
EIAC has joined #ruby
EIA has joined #ruby
Banistergalaxy has quit [Ping timeout: 256 seconds]
solars has joined #ruby
quoin has joined #ruby
<solars> hey, does anyone know why I get this error when installing gems? https://gist.github.com/solars/ed1f747fc96c02a9962d
tacos1de has joined #ruby
<workmad3> solars: could be because the git repo for activeldap is currently @ 4.0.2
<krz> consider the following hash: ["Singapore", "Singapore", "Singapore", "Singapore", "Singapore", "Singapore", "US", "GB", "US", "Singapore"]
<workmad3> krz: that's an array, not a hash
<solars> workmad3, I'm not sure, I thought it choses the version automatically?
<workmad3> solars: your bundle is trying to install 3.1.2
<krz> how can i order by the number of occurences? so basically want to return ['Singapore', 'US', 'GB']
<krz> array/hash/g
blackmesa has quit [Ping timeout: 240 seconds]
<krz> er hash/array/g
<tobiasvl> krz: uniq
<tobiasvl> >> ["Singapore", "Singapore", "Singapore", "Singapore", "Singapore", "Singapore", "US", "GB", "US", "Singapore"].uniq
<eval-in> tobiasvl => ["Singapore", "US", "GB"] (https://eval.in/48702)
<workmad3> tobiasvl: sneaky ;)
<krz> ya unique gets it done. but how bout ranking by the number of occurences
Clooth has quit [Ping timeout: 245 seconds]
<solars> workmad3, yes but that versoin is also included in the repo
<krz> ["US", "Singapore", "Singapore", "Singapore", "Singapore", "Singapore", "Singapore", "US", "GB", "US", "Singapore"]
<krz> uniq will return US first
<workmad3> solars: bundler doesn't go back through a git repos history to find the version
<workmad3> solars: if you haven't specified a tag, branch or ref, it'll just look at HEAD... if that doesn't point to the version you've requested, it'll just fail
<workmad3> solars: which is sensible, when you consider that there could be lots of commits with the same version number in a repo, and no way to tell which one to use ;)
<tobiasvl> krz: i like the group_by solution best
cek has joined #ruby
Clooth has joined #ruby
<cek> hey. how do I use factorygirl sequences factory-wide? i'd like to use the same sequencial number in different attributes of factorized object.
Criztian has joined #ruby
<solars> workmad3, ah, I didn't know this
AndChat| has quit [Ping timeout: 245 seconds]
<solars> workmad3, how would I specify 3.1.2 for activeldap then correctly?
dangerousdave has quit [Quit: Leaving...]
Nenor has quit [Quit: Nenor]
<workmad3> solars: any reason you aren't using it from rubygems?
<solars> there probably was, but I guess now there isn't anymore
<workmad3> oh, 3.1.2 isn't on rubygems.org
<solars> oh
Banistergalaxy has joined #ruby
<solars> then I have no choice anyway
<workmad3> solars: err... it looks like 3.1.2 doesn't exist
<solars> hm
<solars> but it's on github, right?
<workmad3> nope
<workmad3> or at least, there's no tag for it
<solars> damn youre right
<solars> I confused it when looking with 3.2.1
<solars> wtf
<workmad3> hehe
aryaching has joined #ruby
camilasa_ has joined #ruby
wildroman has quit [Remote host closed the connection]
<workmad3> if you want to use the gem from github, add 'tag: "3.2.1" ' to it though ;)
<solars> ah I didn't even specify it in the Gemfile
<solars> it's from Gemfile.lock
echevemaster has joined #ruby
<workmad3> ok
<solars> I will specify 3.2.1 there and see if it works
<solars> thanks a lot :)
Clooth has quit [Ping timeout: 245 seconds]
Clooth has joined #ruby
<workmad3> could be it's not been updated for a while, and they'd bumped version to 3.1.2 after 3.1.1s release, then decided the next version would be 3.2.0, making your Gemfile bad :)
dignitas71 has quit [Ping timeout: 276 seconds]
<solars> yeah..
camilasan has quit [Ping timeout: 264 seconds]
ferdev has quit [Quit: ferdev]
kirun has joined #ruby
dignitas71 has joined #ruby
ferdev has joined #ruby
EIAC has quit [Remote host closed the connection]
kayloos has joined #ruby
<krz> given: a.uniq.map { |e| [a.count(e), e] }.select { |c, _| c > 1 }#.sort.reverse
<krz> what is _ in the select block?
<workmad3> krz: essentially 'ignore this, it's not used'
Domon has quit [Remote host closed the connection]
<krz> ah
Domon has joined #ruby
SHyx0rmZ has joined #ruby
abstractj has quit [Changing host]
abstractj has joined #ruby
justforfun has quit [Ping timeout: 240 seconds]
browndawg has quit [Read error: Connection timed out]
browndawg has joined #ruby
eightbitraptor has quit [Read error: Connection reset by peer]
<krz> a = %w(b b a a a a x k k k)
<krz> a.uniq.map { |e| [a.count(e), e] }.select { |c, _| c > 1 }.sort.reverse#.map { |sorted| sorted[1] }
<krz> what happened to x?
aryaching has quit [Read error: Connection reset by peer]
Criztian has quit [Remote host closed the connection]
Domon has quit [Ping timeout: 264 seconds]
persand has joined #ruby
aryaching has joined #ruby
KobraKao has joined #ruby
<krz> oh nevermind
kayloos has quit [Ping timeout: 264 seconds]
gyre007 has quit [Remote host closed the connection]
gyre007 has joined #ruby
kayloos has joined #ruby
Kneferilis2 has joined #ruby
Kneferilis has quit [Ping timeout: 240 seconds]
Criztian has joined #ruby
sevenseacat has joined #ruby
siwica has quit [Quit: siwica]
emergion has joined #ruby
kil0byte has quit [Remote host closed the connection]
kil0byte has joined #ruby
seich- has quit [Ping timeout: 240 seconds]
Clooth has quit [Remote host closed the connection]
Clooth has joined #ruby
nerdy has joined #ruby
ewnd9 has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
tkuchiki has joined #ruby
azcodex has joined #ruby
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvirani_ has quit [Remote host closed the connection]
kvirani has joined #ruby
siwica has joined #ruby
seich- has joined #ruby
tvw has joined #ruby
mikecmpbll has joined #ruby
kvirani has quit [Ping timeout: 276 seconds]
nanothief_ has joined #ruby
nanothief has quit [Read error: Connection reset by peer]
solars has quit [Ping timeout: 245 seconds]
sayan has quit [Ping timeout: 240 seconds]
shaunbak_ has quit [Remote host closed the connection]
vikhyat has quit [Ping timeout: 245 seconds]
<mikecmpbll> are there any articles looking at the internal implementation of ".." and "…" operators/method/whatever (dunno what to call them!)
<mikecmpbll> for ranges, i should add.
beilabs_ has quit [Ping timeout: 260 seconds]
nerdy has quit [Quit: Computer has gone to sleep.]
nerdy has joined #ruby
adambeynon has joined #ruby
angusiguess has joined #ruby
Criztian has quit [Remote host closed the connection]
chairabanta has joined #ruby
jefflyne3 has joined #ruby
chairabanta has quit [Client Quit]
nanothief_ has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
vlad_sta_ has quit [Remote host closed the connection]
blackmesa has joined #ruby
coaster has quit [Ping timeout: 276 seconds]
ldnunes has joined #ruby
eka has joined #ruby
mansi has joined #ruby
cads has quit [Read error: Operation timed out]
razi has joined #ruby
jonkri has joined #ruby
gr33n7007h has quit [Quit: Where's John Conner]
beilabs_ has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
zorg24 has quit [Read error: Connection reset by peer]
asterite has joined #ruby
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sayan has joined #ruby
kil0byte_ has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
mklappstuhl has joined #ruby
Splourian has quit [Quit: Leaving]
asterite has left #ruby [#ruby]
buibex has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 276 seconds]
pranny1 has joined #ruby
pranny has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 240 seconds]
tagrudev has quit [Remote host closed the connection]
m8 has quit [Read error: Connection reset by peer]
colonolGron has joined #ruby
threesome has joined #ruby
m8 has joined #ruby
anonymuse has joined #ruby
rcosta has joined #ruby
mklappstuhl has quit [Ping timeout: 245 seconds]
snovak has joined #ruby
kayloos has quit [Remote host closed the connection]
kil0byte has joined #ruby
eloquent_mute has joined #ruby
jonkri has quit [Ping timeout: 240 seconds]
kil0byte_ has quit [Ping timeout: 248 seconds]
snovak has quit [Ping timeout: 245 seconds]
kvirani has joined #ruby
Bish has quit [Excess Flood]
Bish has joined #ruby
gchaturvedi has joined #ruby
Stygia has quit [Remote host closed the connection]
pranny1 has quit [Quit: Leaving.]
gchaturvedi has quit [Client Quit]
lkba has quit [Ping timeout: 240 seconds]
arvindravi has joined #ruby
fixl has quit [Remote host closed the connection]
kayloos has joined #ruby
buibex has joined #ruby
mklappstuhl has joined #ruby
yaymukund has joined #ruby
jonkri has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
shredding has quit [Quit: shredding]
shaunbaker has joined #ruby
shaunbak_ has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
sumark has quit [Quit: Lost terminal]
breakingthings has joined #ruby
sumark has joined #ruby
<MrZYX> mikecmpbll: as in enabling that for your own objects?
shaunbaker has quit [Ping timeout: 260 seconds]
fgo has quit [Remote host closed the connection]
beilabs_ has quit [Remote host closed the connection]
shredding has joined #ruby
aryaching has joined #ruby
shredding has quit [Client Quit]
mark_locklear has joined #ruby
RDash[AW] is now known as RDash
spacebug has quit [Read error: Connection reset by peer]
funburn has quit [Quit: funburn]
dAnjou has left #ruby ["WeeChat 0.4.1"]
VTLob has joined #ruby
nerdy has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
kaldrenon has joined #ruby
GeissT has joined #ruby
Inoperable has quit [Quit: Rectified]
kpshek has quit []
xjiujiu has joined #ruby
spacebug has joined #ruby
jefflyne3 has quit [Ping timeout: 240 seconds]
<mikecmpbll> MrZYX: just out of interest tbh
justforfun has joined #ruby
<MrZYX> http://rubydoc.info/stdlib/core/Range explains how to implement that for your own objects
<mikecmpbll> yeah, i saw that much, but cheers.
<mikecmpbll> just wondered literally how it was implemented, as most things in ruby that i've ever come across are essentially methods
seich- has quit [Ping timeout: 240 seconds]
gyre007 has quit [Remote host closed the connection]
gyre007 has joined #ruby
seich- has joined #ruby
spacebug has quit [Read error: Connection reset by peer]
gyre007 has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
mansi has joined #ruby
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
spacebug has joined #ruby
Gooder` has joined #ruby
Gooder has quit [Ping timeout: 240 seconds]
coderhs has quit [Ping timeout: 264 seconds]
geekbri has joined #ruby
_tockitj has quit [Ping timeout: 260 seconds]
jp- has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jrobeson has quit [Ping timeout: 264 seconds]
mansi has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
persand has quit [Quit: persand]
_tockitj has joined #ruby
lucazi has joined #ruby
sjltaylor has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
rickmasta has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
persand has joined #ruby
nomenkun has joined #ruby
ewnd9 has quit [Read error: Connection reset by peer]
mansi has quit [Ping timeout: 264 seconds]
eloquent_mute has quit [Ping timeout: 264 seconds]
arvindravi has quit [Ping timeout: 260 seconds]
ewnd9 has joined #ruby
KobraKao has quit [Ping timeout: 245 seconds]
jaynewstrom has joined #ruby
yfeldblum has quit [Read error: Operation timed out]
fgo has joined #ruby
colonolGron has quit [Quit: Lost terminal]
yekta has joined #ruby
coderhs has joined #ruby
shredding has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
JPascal has joined #ruby
lfox has joined #ruby
intuxicated has quit [Ping timeout: 245 seconds]
mlpinit has joined #ruby
shredding has quit [Client Quit]
gimpygoo has joined #ruby
kil0byte_ has joined #ruby
classix has quit [Ping timeout: 264 seconds]
gimpygoo has quit [Max SendQ exceeded]
shredding has joined #ruby
spacebug has quit [Read error: Connection reset by peer]
cody-- has joined #ruby
snovak has joined #ruby
shredding has quit [Client Quit]
threeturn has joined #ruby
kayloos_ has joined #ruby
dsathe has joined #ruby
platzhirsch has joined #ruby
kayloos has quit [Read error: Connection reset by peer]
tjad has joined #ruby
kil0byte has quit [Ping timeout: 245 seconds]
endash has joined #ruby
tomzx_mac has joined #ruby
kaspergrubbe has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
arvindravi has joined #ruby
spacebug has joined #ruby
karlfreeman has joined #ruby
tjad_ has quit [Ping timeout: 245 seconds]
johnjohnson has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
rickmasta has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
aryaching has quit [Read error: Connection reset by peer]
KobraKao has joined #ruby
aryaching has joined #ruby
polaco_zZz is now known as polaco
gr33n7007h has joined #ruby
jonkri has quit [Quit: jonkri]
Criztian has joined #ruby
xcfox has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
jdeeburke has joined #ruby
Naoe-Kanno has joined #ruby
brbcoding has joined #ruby
jp- has quit [Read error: Connection reset by peer]
SHyx0rmZ has quit [Ping timeout: 276 seconds]
xjiujiu has joined #ruby
adambeynon has joined #ruby
Stygia has joined #ruby
vikhyat has joined #ruby
KobraKao has quit [Ping timeout: 276 seconds]
<dsathe> i am loading a bunch of files in some code , is there anyway to reaload them if the source changes ?
wildroman has joined #ruby
<banisterfiend> dsathe look into Guard
KobraKao has joined #ruby
dmiller has joined #ruby
asobrasil has joined #ruby
jkamenik has joined #ruby
<mikecmpbll> dsathe: try the load method.
<wuest> dsathe: load will always read in your file, even if it's been previously loaded, unlike require
snovak has joined #ruby
intuxicated has joined #ruby
<wuest> If you want to load it UPON file change, you might look into inotify on Unixy systems. Unsure what to do on Windows.
jprovazn has joined #ruby
jamesaanderson has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
<dsathe> so the idea is this script gets events form activemq everytime a new event comes in
jdeeburke has left #ruby [#ruby]
<dsathe> what i would want is keep these in ram and load only if they change
zarubin has joined #ruby
allaire has joined #ruby
jp- has joined #ruby
<dsathe> the load access the disk everytime
<dsathe> this wouldn't be a good idea right ?
vikhyat has quit [Ping timeout: 240 seconds]
dmiller has quit [Ping timeout: 245 seconds]
<mikecmpbll> dsathe: how does it get events from activemq? i don't know anything about activemq.
<mikecmpbll> are they files on disk, or something.
andikr has quit [Remote host closed the connection]
<MrZYX> there are quite some sideeffects to just calling load on an already loaded file, good article: http://rkh.im/code-reloading
<mikecmpbll> i have a feeling he's not loading ruby code anyway
vikhyat has joined #ruby
threeturn has quit [Quit: threeturn]
krz has quit [Quit: krz]
tjad has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
tjad has joined #ruby
rickmasta has joined #ruby
shredding has joined #ruby
intuxicated has quit [Read error: Connection reset by peer]
<wuest> MrZYX: good read, indeed.
jds_ has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
wildroman has quit [Remote host closed the connection]
grzywacz has joined #ruby
Coolhand has quit [Remote host closed the connection]
fredjean has quit [Quit: Computer has gone to sleep.]
jibi has joined #ruby
bmn has quit [Ping timeout: 245 seconds]
mengu has joined #ruby
sailias has joined #ruby
dignitas71 has quit [Ping timeout: 264 seconds]
kpshek has joined #ruby
granticus has joined #ruby
okinomo has joined #ruby
freerobby has joined #ruby
fgo has joined #ruby
okinomo has quit [Client Quit]
bmn has joined #ruby
okinomo has joined #ruby
Coolhand has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
JoeHazzers has joined #ruby
burlyscudd has joined #ruby
RDash has quit [Ping timeout: 260 seconds]
<JoeHazzers> i'm doing .map on an array. is it possible within the block to access the "result"/output from the previous iteration of that loop?
RDash has joined #ruby
<MrZYX> use .inject
duggiefresh has joined #ruby
eloquent_mute has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
dhruvasagar has joined #ruby
snath has quit [Ping timeout: 264 seconds]
pushpak has joined #ruby
dignitas71 has joined #ruby
ntus1017 has joined #ruby
ta has quit [Remote host closed the connection]
jerius has joined #ruby
toddWork_ has joined #ruby
mmitchell has joined #ruby
shredding_ has joined #ruby
jlebrech has joined #ruby
shredding_ has quit [Client Quit]
shredding has quit [Ping timeout: 264 seconds]
vikhyat has quit [Read error: Connection reset by peer]
shredding has joined #ruby
fmcgeough has joined #ruby
alexju has joined #ruby
ananthakumaran has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
KobraKao has quit [Ping timeout: 264 seconds]
sayan has quit [Ping timeout: 245 seconds]
ffranz has joined #ruby
ananthakumaran has joined #ruby
ejnahc has quit [Remote host closed the connection]
ejnahc has joined #ruby
<JoeHazzers> MrZYX: the problem with that is next returns nil
<JoeHazzers> never mind
<MrZYX> show your code or at least sample input and expected output
<JoeHazzers> long day; need coffee
deception has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
RicFlair has joined #ruby
<JoeHazzers> MrZYX: i was doing a conditional which might cause `next`, meaning my "memo" for the next loop was nil
mikepack has joined #ruby
cody-- has quit [Quit: derp]
<RicFlair> hey guys, is there any way i can kick off bundle install every time my application starts? it's a stupid thing for me to ask, but i want to make sure that when the server starts it has the latest gems during development (afterwards, in prod, i would turn it off of course...)_
<waxjar> do a #select or #reject before you #map :)
BillCriswell has joined #ruby
chadoh has joined #ruby
xjiujiu has quit [Ping timeout: 245 seconds]
kayloos_ has quit [Remote host closed the connection]
wmoxam_ has joined #ruby
jlast has joined #ruby
cpruitt has joined #ruby
wmoxam has quit [Disconnected by services]
quoin has quit [Remote host closed the connection]
kayloos has joined #ruby
wmoxam_ is now known as wmoxam
yaymukund has quit [Ping timeout: 245 seconds]
wmoxam has joined #ruby
wmoxam has quit [Changing host]
devdazed has quit [Quit: Bye]
quoin has joined #ruby
tomzx_mac has quit [Ping timeout: 264 seconds]
xjiujiu has joined #ruby
zarul has joined #ruby
shredding has quit [Quit: shredding]
thebastl has joined #ruby
threeturn has joined #ruby
codecop has quit [Remote host closed the connection]
mklappst_ has joined #ruby
mdst3 has joined #ruby
sr78ger has quit [Ping timeout: 276 seconds]
joast has joined #ruby
devdazed has joined #ruby
quoin has quit [Ping timeout: 245 seconds]
dumdedum has joined #ruby
mklappstuhl has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 248 seconds]
<chadoh> Howdy. Here's the mess I'm in: We've got hundreds of GB & 7 years of customer data in a Latin1 mysql db. We're still on Rails 2.3. We're hoping to get to Rails 4 by the end of the year. We're kicking it off by updating to Ruby 1.9 and trying to fix all of our encoding headaches, of which there are many.
zoee has quit [Quit: zoee]
* JesseH shrieks
<shevy> guys
<chadoh> yep.
jkamenik has quit [Quit: Leaving.]
<chadoh> Ruby 1.8, of course, stored utf8 bytes in the latin1 database, as well as a variety of other encodings.
<shevy> I am playing a browser game... in firefox ... what would be an easy way to do a mouse-click event on a specific button, or perform a specific action, through ruby?
<shevy> like "do this in 1 hour from now"
blaxter_ has quit [Ping timeout: 248 seconds]
<shevy> ruby 1.8 was sweet
<JesseH> shevy, Wouldnt you do that with Javascript?
<MrZYX> shevy: I'd say shelling out to xdotools
<shevy> JesseH :(
<JesseH> :P
johnjohnson has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> JesseH please don't send me to JS, I want to stay in ruby!
<shevy> ok thanks MrZYX, will google
* JesseH isn't familiar with doing web stuff with Ruby yet.
<zets> shevy: yeah, you can automate that with selenium
<chadoh> So, we want the encoding-smarts of 1.9, but for now we'd really prefer it to not do any transcoding when things come out of the db.
<zets> actually, idk what you're trying to do
<MrZYX> chadoh: how about sanitizing the database first
<shevy> zets right now I am clicking on something in a browser tab, but I have to leave here in less than an hour and will be gone for about 6 hours, I would like to do something in a bit more than ~1 hour though
theRoUS has joined #ruby
theRoUS has joined #ruby
coderhs has quit [Ping timeout: 245 seconds]
<chadoh> MrZYX expound.
<shevy> like to click on a few browser windows hehe
<chadoh> You mean go through all 200+GB, analyze what encoding it is, and transcode to proper Latin1?
aryaching has joined #ruby
<MrZYX> well, same and sane (utf8) encoding and collation to everything and everywhere and converting the data as needed
<chadoh> We'd love to get there, MrZYX, but right now we've still got data coming in from emails and csv imports & shit that's not necessarily UTF8.
GeissT has quit [Ping timeout: 248 seconds]
<chadoh> To fix that, we'd like the help of a smart language like Ruby 1.9.
<chadoh> Setting `encoding: binary` in database.yml *kind of* does what we need, but there's a big problem: data with bytecodes higher than 127 comes out ASCII-8bit, but data safely in ASCII bounds is set to encoding UTF8. So when we concat fields from the two, we get errors.
wildroman has joined #ruby
<chadoh> Where & why does ascii-only data get set to utf8? If I could find & patch that, we'd be on our way.
andikr has joined #ruby
wildroman has quit [Remote host closed the connection]
Banistergalaxy has quit [Remote host closed the connection]
wildroman has joined #ruby
<MrZYX> don't you have a testsystem where you can convert the db and then change all the incoming parts to transcode to utf8 and only ever store utf8 in the db?
<MrZYX> when that's working you can schedule maintenance on the production system, do the conversation and deploy the new code
platzhirsch has left #ruby [#ruby]
KobraKao has joined #ruby
khushildep has quit [Quit: khushildep]
thebastl has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
huoxito has joined #ruby
mansi has joined #ruby
Kar- has quit [Ping timeout: 245 seconds]
<shevy> know what would be cool?
<shevy> require 'compatibility'
<shevy> to obtain the old ruby 1.8.x behaviour in regards to encoding
<pontiki> how about require 'doonlywhatiwantwheniwantit' ?
<chadoh> MrZYX How does one even crawl through a database field by field, analyze what encoding the data even is, and then transcode to utf8? How does one do this on a database that's actively serving thousands of customers that already has hundreds of GBs of data?
mardin is now known as mardinoff
<chadoh> It just doesn't seem practical.
jamesaanderson has joined #ruby
zephdev has joined #ruby
<chadoh> shevy: that would be nice.
<pontiki> chadoh: automated
awarner has joined #ruby
<MrZYX> you seem to have an application that can handle that data, thus you should know what is stored where and how
<shevy> pontiki that would be kinda cool, to be able to fine tune what one wants. all of standard library to become a gem, all of encoding behaviour to match a range from "default behaviour" back to "retain old behaviour".
<MrZYX> write a script that does the conversion
<MrZYX> do it on a testsystem
shredding has joined #ruby
xeon has joined #ruby
<MrZYX> change your application work on the converted db, on that testsystem
rhys_ has joined #ruby
<pontiki> i think , though, first you want to fix things so that new and updated data from users is always in the correct and wanted encoding
colonolGron has joined #ruby
<MrZYX> when that's done, schedule maintenance on the production system, deploy the new app and do the conversion
KobraKao has quit [Ping timeout: 248 seconds]
<MrZYX> to then store it in the broken database?
<MrZYX> pontiki: ^
mansi has quit [Remote host closed the connection]
<MrZYX> I think the conversion and fixing the input paths needs to happen at the same time
mansi has joined #ruby
<MrZYX> thus has to be developed on a test system
<pontiki> i don't think it has to be
elux has joined #ruby
<pontiki> if the current mixed encoding it giving errors, at least getting things so that new data does not generate errors is plus. then as you run the check+convert on old data, your not eating your tail
fridim__ has joined #ruby
eloquent_mute has quit [Disconnected by services]
eloquent_mute has joined #ruby
user258467 has joined #ruby
<chadoh> yes, that's what we want to do, pontiki.
varfoo has quit [Quit: WeeChat 0.4.0]
<pontiki> OTOH, if there are a lot of patches and workaround to keep from producing errors, that will have to be looked at as well, and may bind you to doing it all-at-once
kayloos has quit [Remote host closed the connection]
kevind has joined #ruby
<pontiki> however, MrZYX is *so very right* that you develop and test all of this on the test system *first*
KobraKao has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baordog_ has joined #ruby
<pontiki> regardless of doing it all at once or in a couple stages
acrussell has joined #ruby
maroloccio has quit [Ping timeout: 256 seconds]
endash has quit [Quit: endash]
xjiujiu_ has joined #ruby
clocKwize has joined #ruby
dhruvasagar has joined #ruby
okinomo has quit [Quit: Lost terminal]
lewiz has quit [Ping timeout: 245 seconds]
okinomo has joined #ruby
gimpygoo has joined #ruby
xjiujiu has quit [Ping timeout: 245 seconds]
v0n has joined #ruby
rcosta_ has joined #ruby
KobraKao has quit [Ping timeout: 248 seconds]
zephdev has quit [Remote host closed the connection]
RORgasm has joined #ruby
seich- has quit [Ping timeout: 240 seconds]
_tockitj has quit [Remote host closed the connection]
quoin has joined #ruby
KobraKao has joined #ruby
lewiz has joined #ruby
okinomo has quit [Client Quit]
okinomo has joined #ruby
gimpygoo has quit [Client Quit]
shaunbak_ has quit [Remote host closed the connection]
gimpygoo has joined #ruby
<shevy> huh
<shevy> %s() is for symbols
<shevy> %i() is for symbols
<Sou|cutter> I thought that wa %i
burlyscudd has quit [Quit: Leaving.]
bean has joined #ruby
<shevy> !!!
RicFlair is now known as ArchBeOS
dignitas71 has quit [Quit: dignitas71]
rcosta has quit [Ping timeout: 264 seconds]
goshakkk has joined #ruby
<shevy> haha this is funny though
<shevy> "Unused variables can start with _"
<shevy> my favourite variable name :)
kayloos has joined #ruby
seich- has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
xjiujiu_ has quit [Ping timeout: 245 seconds]
<Morrolan> It has its uses. :)
rickmasta has quit [Quit: Leaving...]
<shevy> what is this:
<shevy> if value.is_a?(::Range)
<shevy> I never saw that before
<shevy> should this not be:
<shevy> if value.is_a? Range
<shevy> ?
ntus1017 has quit [Remote host closed the connection]
fgo has joined #ruby
<chadoh> shevy `::Range` just means top-level Range.
kil0byte has joined #ruby
<Sou|cutter> Depends if you're in a namespace that has a Range class?
<shevy> hmm
<MrZYX> ::Range escapes the local scope, i.e if you're inside module Foo; class Range; end; class Bar; here; end; end;
<shevy> aha
<shevy> Sou|cutter true, that makes sense, in the next example about refinements, he does: refine Range do
fredjean has joined #ruby
bline79_2 has quit [Ping timeout: 276 seconds]
piny26 has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
adac has joined #ruby
eloquent_mute has quit [Ping timeout: 245 seconds]
okinomo has quit [Quit: Lost terminal]
okinomo has joined #ruby
kil0byte_ has quit [Ping timeout: 245 seconds]
shredding has quit [Quit: shredding]
okinomo has quit [Client Quit]
dawkirst has quit [Remote host closed the connection]
okinomo has joined #ruby
justforfun has quit [Remote host closed the connection]
siwica has quit [Quit: siwica]
sevenseacat has quit [Quit: Leaving.]
mikepack has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 245 seconds]
Cyrus has quit [Quit: Cyrus.sleep()]
Nenor has joined #ruby
bline79_2 has joined #ruby
Xeago has joined #ruby
jdeeburke has joined #ruby
thebastl has joined #ruby
jdeeburke has quit [Max SendQ exceeded]
LMolr has joined #ruby
jdeeburke has joined #ruby
okinomo has quit [Client Quit]
ewag has joined #ruby
jdeeburke has left #ruby [#ruby]
okinomo has joined #ruby
Suit_Of_Sables has joined #ruby
shaunbaker has joined #ruby
mrsolo has joined #ruby
Es0teric has joined #ruby
kayloos has quit [Remote host closed the connection]
fgo has joined #ruby
<Suit_Of_Sables> wow, my ruby programs for the simple probelms on codechef far outperform my java programs for the same problems. Conclusion: I suck at Java even more than I do at Ruby
yaymukund has joined #ruby
Gooder has joined #ruby
shredding has joined #ruby
<shevy> lol
okinomo has quit [Client Quit]
<Morrolan> Suit_Of_Sables: Heh.
<shevy> Suit_Of_Sables that is better than saying "java sucks more than ruby", for if java loses the speed advantage, what else does it really have left
okinomo has joined #ruby
<Morrolan> Well, there's people who like books with detailed descriptions of the characters and landscapes.
<Morrolan> People who love poems with three layers of indirection.
<ericwood> the JVM is great. Java as a language sucks
<Morrolan> So maybe some coders like Java's "oop" and verbosity. :P
alexju has quit [Remote host closed the connection]
<ericwood> nobody likes that shit
pskosinski has joined #ruby
DanKnox_away is now known as DanKnox
Loaft has joined #ruby
KobraKao has quit [Read error: Connection timed out]
<shevy> hehehe
aagdbl has quit [Quit: Leaving.]
taion809 is now known as zzz_taion809
Coolhand has quit [Remote host closed the connection]
sloucher has quit [Quit: sloucher]
sayan has joined #ruby
Xeago has quit [Remote host closed the connection]
camilasa_ has quit [Remote host closed the connection]
lucazi has quit [Quit: lucazi]
cascalheira has joined #ruby
thebastl has quit [Remote host closed the connection]
camilasan has joined #ruby
shredding has quit [Quit: shredding]
siwica has joined #ruby
rins has joined #ruby
<Suit_Of_Sables> shevy: True. I think the performance loss we see from interpereted langauges will stop being such a big deal as computers keep getting faster. That's why I want to make ruby my primary language even if people think I'm crazy.
machuga|away is now known as machuga
coderhs has joined #ruby
alex__c2022 has joined #ruby
pentameter has joined #ruby
siwica has quit [Client Quit]
bookmage has joined #ruby
geekbri has quit [Remote host closed the connection]
siwica has joined #ruby
noop has quit [Ping timeout: 245 seconds]
okinomo has quit [Ping timeout: 245 seconds]
Davey has joined #ruby
Coolhand has joined #ruby
optimusprimem has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
dsathe has quit [Quit: Page closed]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
quoin has quit [Ping timeout: 245 seconds]
snovak_ has joined #ruby
persand has quit [Quit: persand]
Coolhand has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
adac has quit [Quit: Leaving]
Seich has joined #ruby
bigoldrock has joined #ruby
snovak has quit [Ping timeout: 264 seconds]
visof has joined #ruby
dallasm has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
Loaft has quit [Ping timeout: 276 seconds]
robbyoconnor has joined #ruby
okinomo has joined #ruby
dangerousdave has joined #ruby
sleetdrop has joined #ruby
shaunbaker has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 245 seconds]
shredding has joined #ruby
fmcgeough has quit [Ping timeout: 264 seconds]
Clooth has quit [Quit: Leaving...]
clocKwize has quit [Quit: clocKwize]
pskosinski has quit [Quit: Til rivido Idisti!]
JPascal has quit [Quit: Textual IRC Client: www.textualapp.com]
Coolhand has joined #ruby
cody-- has joined #ruby
Xeago has joined #ruby
burlyscudd has joined #ruby
Seich has quit [Quit: Lingo - http://www.lingoirc.com]
d2dchat has joined #ruby
evenix has joined #ruby
dawkirst has joined #ruby
okinomo has quit [Ping timeout: 264 seconds]
arvindravi has quit [Ping timeout: 264 seconds]
BraddBitt has joined #ruby
vlad_starkov has joined #ruby
shaunbaker has joined #ruby
Trazira has joined #ruby
kaldreno_ has joined #ruby
goshakkk has quit [Remote host closed the connection]
bwwrd has joined #ruby
breaking_ has joined #ruby
snovak_ has quit [Remote host closed the connection]
Scorchin has quit [Ping timeout: 240 seconds]
Paradox has quit [Ping timeout: 240 seconds]
goshakkk has joined #ruby
breakingthings has quit [Ping timeout: 240 seconds]
Dwarf has quit [Ping timeout: 240 seconds]
AllStruck has quit [Ping timeout: 240 seconds]
bobdobbs` has joined #ruby
snovak has joined #ruby
BraddPitt has quit [Ping timeout: 240 seconds]
jso has quit [Ping timeout: 240 seconds]
arusso has quit [Ping timeout: 240 seconds]
premera_j has joined #ruby
arvindravi has joined #ruby
ArchBeOS has quit [Quit: Peace Out, jerks!]
tesuji has quit [Ping timeout: 248 seconds]
Galgorth has quit [Ping timeout: 240 seconds]
ShapeShifter499 has quit [Ping timeout: 240 seconds]
optimusprimem has joined #ruby
kaldrenon has quit [Ping timeout: 240 seconds]
adeponte has joined #ruby
sebastianb has quit [Ping timeout: 240 seconds]
aetaric has quit [Ping timeout: 240 seconds]
zaltekk has quit [Ping timeout: 240 seconds]
Buuyo has quit [Ping timeout: 240 seconds]
jso has joined #ruby
jnix_ has joined #ruby
hogeo has joined #ruby
schaerli has quit [Remote host closed the connection]
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
taion809 has joined #ruby
seich- has quit [Ping timeout: 240 seconds]
BadQuanta has quit [Ping timeout: 240 seconds]
bobdobbs has quit [Ping timeout: 240 seconds]
premera has quit [Ping timeout: 240 seconds]
jnix has quit [Ping timeout: 240 seconds]
lunarjar has quit [Ping timeout: 240 seconds]
zzz_taion809 has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
arvindravi has quit [Client Quit]
AllStruck has joined #ruby
Buuyo has joined #ruby
siwica has quit [Read error: Connection reset by peer]
shredding has quit [Quit: shredding]
vlad_starkov has joined #ruby
shredding has joined #ruby
ta has joined #ruby
|jemc| has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
akemrir has quit [Quit: WeeChat 0.4.1]
colonolGron has quit [Quit: Lost terminal]
jprovazn has quit [Ping timeout: 264 seconds]
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
Kruppe has quit [Quit: ZNC - http://znc.in]
tylersmith has quit [Remote host closed the connection]
peregrine81 has joined #ruby
tylersmith has joined #ruby
peregrine81 has quit [Read error: Connection reset by peer]
peregrine81 has joined #ruby
enebo has joined #ruby
Kruppe has joined #ruby
denysonique has quit [Ping timeout: 256 seconds]
xcfox has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
ShapeShifter499 has joined #ruby
okinomo has joined #ruby
adeponte has quit [Ping timeout: 264 seconds]
sebastianb has joined #ruby
denysonique has joined #ruby
dallasm has quit [Remote host closed the connection]
ewnd9 has quit [Read error: Connection reset by peer]
ewnd9 has joined #ruby
tylersmith has quit [Ping timeout: 276 seconds]
senayar_ has joined #ruby
rtl has quit [Quit: leaving]
tyman has joined #ruby
rtl has joined #ruby
staafl has joined #ruby
breaking_ is now known as breakingthings
Scorchin has joined #ruby
failshell has joined #ruby
baordog_ has quit [Ping timeout: 276 seconds]
rtl has quit [Client Quit]
senayar has quit [Ping timeout: 264 seconds]
alekst has joined #ruby
rtl has joined #ruby
senayar_ has quit [Remote host closed the connection]
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
MrThePlague has joined #ruby
ixti has joined #ruby
senayar has joined #ruby
alexju has joined #ruby
BadQuanta has joined #ruby
swordsmanz has joined #ruby
TJNII_ has quit [Remote host closed the connection]
Kar- has joined #ruby
baordog_ has joined #ruby
girija has quit [Ping timeout: 264 seconds]
DanKnox is now known as DanKnox_away
kil0byte has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
nowthatsamatt has quit [Quit: nowthatsamatt]
dkamioka has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rtl has quit [Quit: leaving]
rtl has joined #ruby
Xaitec_______ has joined #ruby
shredding has left #ruby [#ruby]
baroquebobcat has joined #ruby
mikecmpbll has joined #ruby
nemesit|znc has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
timonv has joined #ruby
wallerdev has joined #ruby
BraddBitt has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
cfi30 has joined #ruby
BraddBitt has joined #ruby
burlyscudd has quit [Quit: Leaving.]
mikepack has joined #ruby
Tuxist has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
alup has quit [Quit: Leaving]
banisterfiend has joined #ruby
mdst2 has joined #ruby
utkarsh has quit [Changing host]
utkarsh has joined #ruby
endash has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
EIAC has joined #ruby
endash has quit [Client Quit]
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
sjltaylor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
endash has joined #ruby
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrsolo has joined #ruby
Urizen has joined #ruby
bwwrd has quit [Quit: Textual IRC Client: www.textualapp.com]
Gooder has quit [Ping timeout: 248 seconds]
ssvo has joined #ruby
kaldreno_ is now known as kaldrenon
lkba has joined #ruby
tjad has quit [Ping timeout: 245 seconds]
JumpMast3r has quit [Quit: JumpMast3r]
jds_ has joined #ruby
quoin has joined #ruby
nowthatsamatt has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
burlyscudd has joined #ruby
mardinoff has quit [Quit: Hacker Community - www.hacker-community.org]
jds_ has quit [Ping timeout: 245 seconds]
kreisys has quit [Quit: Computer has gone to sleep.]
mrsolo has quit [Quit: This computer has gone to sleep]
nemesit|znc has joined #ruby
sarlalian has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
geggam has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
goshakkk has joined #ruby
siwica has joined #ruby
deception is now known as deception-lunch
ta_ has joined #ruby
vmoravec has quit [Quit: Leaving]
rcosta_ has quit [Remote host closed the connection]
ta has quit [Ping timeout: 264 seconds]
EIAC has quit [Remote host closed the connection]
mark| has joined #ruby
ephemerian has quit [Quit: Leaving.]
<C0C0> Suit_Of_Sables: ruby is my primary language for quite some years now and I'm always using a small netbook but performance was nearly never a problem
EIAC has joined #ruby
<C0C0> At the few times it was I switched over to some bigger machine
v0n has quit [Ping timeout: 245 seconds]
TheMoonMaster has joined #ruby
chadoh has quit [Quit: Leaving.]
Targen has quit [Ping timeout: 240 seconds]
EIAC has quit [Remote host closed the connection]
EIAC has joined #ruby
Ripp__ has joined #ruby
Xeago has quit [Remote host closed the connection]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
aryaching_ has joined #ruby
razi has quit [Quit: Leaving.]
razi1 has joined #ruby
BraddBitt has quit [Read error: Connection reset by peer]
filipe has quit [Remote host closed the connection]
BraddBitt has joined #ruby
dumdedum is now known as blaxter
thebastl has joined #ruby
thebastl has quit [Remote host closed the connection]
jnix_ has quit [Changing host]
jnix_ has joined #ruby
kobain has joined #ruby
lfox has quit [Quit: ZZZzzz…]
CCI has joined #ruby
jnix_ is now known as jnix
aryaching has quit [Ping timeout: 276 seconds]
dankest has joined #ruby
sambao21 has joined #ruby
buibex has quit [Remote host closed the connection]
dangerousdave has quit [Quit: Leaving...]
sarlalian has quit [Quit: WeeChat 0.4.1]
khushildep has joined #ruby
Criztian has quit [Remote host closed the connection]
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chadoh has joined #ruby
T_T has joined #ruby
sarlalian has joined #ruby
maletor has joined #ruby
adambeynon has joined #ruby
chadoh has left #ruby [#ruby]
RichardBaker has joined #ruby
dmiller_ has joined #ruby
<rdark> Anyone give me some pointers on getting a return value from Shell.system?
EIAC has quit [Remote host closed the connection]
<rdark> the method list/docs aren't giving me much in the way of help
<_br_> system only gives you exit codes if I remember correctly.
thebastl has joined #ruby
ferdev has quit [Quit: ferdev]
Kar- has quit [Quit: leaving]
Xaitec_______ has quit [Remote host closed the connection]
Seich has joined #ruby
<rdark> _br_: exit code would be fine :)
<rdark> just can't see what method to call
noname001 has quit [Ping timeout: 245 seconds]
dagobah has quit [Remote host closed the connection]
false_economy has joined #ruby
kindjal has joined #ruby
dmiller_ has quit [Ping timeout: 248 seconds]
<rdark> nope, I need shell (or possibly could do this with popen3) as I need to pipe a variable into a shell command using what it sees as stdin
<rdark> backticks doesn't allow for pipes :(
threeturn has quit [Quit: threeturn]
thebastl has quit [Remote host closed the connection]
Voodoofish430 has joined #ruby
xeon has quit [Ping timeout: 260 seconds]
Splourian has joined #ruby
<_br_> Very similar in sprit to expect scripts.
<rdark> want to avoid external deps if possible as this is just a git pre-receive hook
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
senayar has quit [Ping timeout: 246 seconds]
<MrZYX> still not sure what you want, capture stdout or do you need the exit code?
quoin has quit [Ping timeout: 264 seconds]
<_br_> puzzled too. hello = "pwd" ; system "#{hello}" ?
predator117 has quit [Ping timeout: 260 seconds]
JMcAfreak has joined #ruby
cascalheira has joined #ruby
<rdark> MrZYX: exit code primarily, stdout just a bonus
sarkis has joined #ruby
txdv_ has quit [Ping timeout: 264 seconds]
<MrZYX> and what are you using right now? Do you need to know whether zero or non zero or the specific code?
predator117 has joined #ruby
<rdark> just non-zero
fgo has quit [Remote host closed the connection]
<canton7> rdark, I'd just use Open3.popen3
ta_ has quit [Remote host closed the connection]
<canton7> takes care of the piping for you, as well
<MrZYX> I'd just read the docs http://rubydoc.info/stdlib/core/Kernel:system
<rdark> i.e $?.success? equiv, but that supports pipes within the command
ewag_ has joined #ruby
tylersmith has joined #ruby
jprovazn has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
JohnBat26 has joined #ruby
cody-- has quit [Quit: derp]
vlad_starkov has quit [Read error: Connection reset by peer]
bline79_2 has quit [Remote host closed the connection]
fantazo has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
_maes_ has joined #ruby
<rdark> canton7: yeah, think open3 is going to have to be the way. I can do it with Shell, but just can't figure out how to get an exit code
burlyscudd has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
txdv has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
blackmesa has joined #ruby
burlyscudd has joined #ruby
kil0byte has joined #ruby
LMolr has quit [Remote host closed the connection]
EIAC has joined #ruby
cascalheira has quit [Quit: Leaving...]
ewag has quit [Ping timeout: 264 seconds]
mrsolo has joined #ruby
buibex has joined #ruby
fgo has joined #ruby
spider-mario has joined #ruby
ta has joined #ruby
kayloos has joined #ruby
BraddBitt has quit [Read error: Connection reset by peer]
ewag_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
machuga is now known as machuga|away
BraddBitt has joined #ruby
moted has quit [Quit: moted]
zets has quit []
ewag has joined #ruby
moted has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
bean has quit [Quit: Computer has gone to sleep.]
noop has joined #ruby
m0s has joined #ruby
EIAC has joined #ruby
buibex has quit [Remote host closed the connection]
Splourian has quit [Quit: Leaving]
seich- has joined #ruby
EIAC has quit [Remote host closed the connection]
arusso_znc has joined #ruby
aetaric has joined #ruby
Paradox has joined #ruby
zaltekk has joined #ruby
Dwarf has joined #ruby
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
kevinykchan has joined #ruby
Targen has joined #ruby
randomautomator has joined #ruby
adeponte has joined #ruby
kevinykchan has quit [Client Quit]
nomenkun has quit [Read error: Operation timed out]
digital-ghost has joined #ruby
ekarlso has joined #ruby
maletor has joined #ruby
maroloccio has joined #ruby
EIAC has joined #ruby
BadQuanta has quit [Ping timeout: 260 seconds]
EIAC has quit [Read error: Connection reset by peer]
crazedpsyc has quit [Ping timeout: 256 seconds]
zeade has joined #ruby
IceDragon has joined #ruby
lfox has joined #ruby
EIAC has joined #ruby
crazedpsyc has joined #ruby
EIAC has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
EIAC has joined #ruby
razi1 has quit [Quit: Leaving.]
Es0teric has quit [Quit: Computer has gone to sleep.]
jds_ has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
chrisja has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
wildroman has quit [Remote host closed the connection]
CCI has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
EIA has quit [Quit: Page closed]
EIAC has quit [Remote host closed the connection]
duggiefresh has quit [Remote host closed the connection]
ferdev has joined #ruby
jds_ has quit [Ping timeout: 248 seconds]
Stalkr_ has joined #ruby
kilophoton has joined #ruby
carraroj has joined #ruby
kaldrenon has quit [Remote host closed the connection]
fmcgeough has joined #ruby
cascalheira has joined #ruby
kaldrenon has joined #ruby
siwica has quit [Read error: Connection reset by peer]
shaunbaker has quit [Remote host closed the connection]
kevinykchan has joined #ruby
troessner has quit [Quit: Leaving]
schaerli has joined #ruby
shadoi has joined #ruby
Lewix has joined #ruby
machuga|away is now known as machuga
kaldrenon has quit [Ping timeout: 246 seconds]
Guru has quit [Ping timeout: 245 seconds]
kidoz has joined #ruby
predator117 has quit [Ping timeout: 245 seconds]
alexju has quit [Remote host closed the connection]
jlebrech has quit [Quit: Konversation terminated!]
alexju has joined #ruby
schaerli has quit [Remote host closed the connection]
aboudreault has quit [Ping timeout: 248 seconds]
zephdev_ has joined #ruby
IceDragon has quit [Ping timeout: 241 seconds]
alexju_ has joined #ruby
alexju_ has quit [Read error: Connection reset by peer]
alexju_ has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
alexju has quit [Read error: Connection reset by peer]
endash has quit [Quit: endash]
vlad_starkov has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
sleetdrop has quit [Quit: Computer has gone to sleep.]
duggiefresh has joined #ruby
jprovazn has quit [Ping timeout: 264 seconds]
alexju_ has quit [Read error: Connection reset by peer]
alexju has joined #ruby
neo7 has joined #ruby
rezzack has joined #ruby
fgo has quit [Remote host closed the connection]
mrsolo has joined #ruby
predator117 has joined #ruby
Sourceless has joined #ruby
<neo7> anyone with knowledge on rails
<neo7> _
kaldrenon has joined #ruby
<neo7> ?
<MrZYX> #rubyonrails should have quite some people
Bry8Star{T2 has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
<havenwood> neo7: i think most channels on irc prolly have someone with Rails knowledge, but yeah #RubyOnRails is the best place to ask :P
noop is now known as noopq
sleetdrop has joined #ruby
<neo7> havenwood: thanks
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sleetdrop has quit [Max SendQ exceeded]
sepp2k has joined #ruby
allaire has quit []
sleetdrop has joined #ruby
sleetdrop has quit [Max SendQ exceeded]
mklappst_ has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
banghouse2 has joined #ruby
sleetdrop has joined #ruby
sleetdrop has quit [Max SendQ exceeded]
kreisys has joined #ruby
sleetdrop has joined #ruby
peregrine81 has quit []
allaire has joined #ruby
DanKnox_away is now known as DanKnox
alexju_ has joined #ruby
dmiller_ has joined #ruby
mansi has quit [Remote host closed the connection]
alexju has quit [Ping timeout: 245 seconds]
cody-- has joined #ruby
mansi has joined #ruby
peregrine81 has joined #ruby
allaire has quit [Client Quit]
tjbiddle has joined #ruby
Guru has joined #ruby
IceDragon has joined #ruby
rezzack has quit [Quit: Leaving.]
jefflyne3 has joined #ruby
dmiller_ has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
workmad3 has quit [Read error: Operation timed out]
jprovazn has joined #ruby
azcodex- has joined #ruby
azcodex- has quit [Read error: Connection reset by peer]
quoin has joined #ruby
mansi has quit [Ping timeout: 276 seconds]
neo7 has quit [Ping timeout: 250 seconds]
Collin has joined #ruby
Ripp__ has quit []
elaptics is now known as elaptics`away
siwica has joined #ruby
azcodex has quit [Ping timeout: 240 seconds]
geekbri has joined #ruby
wildroman has joined #ruby
thebastl has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
Ripp__ has joined #ruby
tvw has quit []
kindjal has quit [Quit: Computer has gone to sleep.]
kayloos has quit [Remote host closed the connection]
nowthatsamatt has quit [Quit: nowthatsamatt]
azcodex has joined #ruby
kayloos has joined #ruby
kindjal has joined #ruby
c0rn has quit [Ping timeout: 246 seconds]
Soda has joined #ruby
kvirani has quit [Remote host closed the connection]
kvirani has joined #ruby
thebastl has quit [Remote host closed the connection]
Ripp__ has quit [Client Quit]
Zai00 has quit [Quit: Zai00]
sleetdrop has quit [Remote host closed the connection]
[MAN] has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
Guru 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"]
rupee has joined #ruby
kvirani has quit [Ping timeout: 276 seconds]
shadoi has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
dankest has quit [Quit: Peace]
dankest has joined #ruby
rcosta has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
c0rn has joined #ruby
bigoldrock has quit [Ping timeout: 245 seconds]
shadoi has quit [Client Quit]
[MAN] has quit [Quit: Leaving...]
robscomputer has joined #ruby
brianpWins has joined #ruby
shadoi has joined #ruby
v0n has joined #ruby
<cek> javascript sucks
false_economy has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 264 seconds]
aboudreault has joined #ruby
camilasan has quit [Remote host closed the connection]
<Urizen> set activity_hide_level parts joins quits nicks modes
<Urizen> mistype
sambao21 has quit [Quit: Computer has gone to sleep.]
nowthatsamatt has joined #ruby
<cek> no, why
arusso_znc has quit [Quit: Adios Amigos!]
mengu has quit [Quit: This computer has gone to sleep]
arusso has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
macmartine has joined #ruby
[MAN] has joined #ruby
[MAN] has quit [Client Quit]
allaire has joined #ruby
[MAN] has joined #ruby
sloucher has joined #ruby
gimpygoo has quit [Read error: Connection reset by peer]
ewnd9 has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
havenwood has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
havenwood has joined #ruby
RichardBaker has joined #ruby
sloucher has quit [Client Quit]
sloucher has joined #ruby
quoin has quit [Ping timeout: 276 seconds]
Ripp__ has joined #ruby
Ripp__ has quit [Client Quit]
solars has joined #ruby
Ripp__ has joined #ruby
leex has quit [Ping timeout: 256 seconds]
sarkis has quit [Quit: leaving]
havenwood has quit [Read error: Connection reset by peer]
Coolhand has quit [Ping timeout: 245 seconds]
[MAN] has quit [Quit: Linkinus - http://linkinus.com]
[MAN] has joined #ruby
jaimef_ has quit [Excess Flood]
false_economy has joined #ruby
shadoi1 has joined #ruby
mansi has joined #ruby
localredhead has joined #ruby
rdark has quit [Quit: leaving]
shadoi has quit [Read error: Connection reset by peer]
kvirani has joined #ruby
deception-lunch is now known as deception
jaimef has joined #ruby
ebobby has joined #ruby
tjad has joined #ruby
dankest has quit [Ping timeout: 240 seconds]
shadoi1 is now known as shadoi
dankest has joined #ruby
Trudko has joined #ruby
mmitchell has quit [Remote host closed the connection]
ebobby has left #ruby [#ruby]
Blaster has left #ruby [#ruby]
Dreamer3 has joined #ruby
mmitchell has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
pentameter has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
bean has joined #ruby
baroquebobcat_ has joined #ruby
[MAN] has quit [Quit: Linkinus - http://linkinus.com]
baroquebobcat has quit [Read error: Connection reset by peer]
baroquebobcat_ is now known as baroquebobcat
ryannielson has joined #ruby
codecop has joined #ruby
[MAN] has joined #ruby
burlyscudd has joined #ruby
hamakn has quit [Ping timeout: 260 seconds]
paolooo has joined #ruby
shadoi has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
<ryannielson> I have a model with two image fields using carrierwave. Is there a way to use carrierwave_direct to add the two image upload fields right in the model form so I can use it on a normal new/edit action? I can't find many resources on this.
<ryannielson> Sorry wrong place
optimusprimem has quit [Ping timeout: 245 seconds]
a1ph4g33k has joined #ruby
kaspergrubbe has joined #ruby
platzhirsch1 has joined #ruby
<platzhirsch1> What is more idiomatic? if value ... or unless value.nil?
<platzhirsch1> as a null check
tabolario has joined #ruby
<|jemc|> they evaluate differently if value==false
michaellynch has joined #ruby
Ox6abe has joined #ruby
paolooo has quit [Quit: Page closed]
<platzhirsch1> |jemc|: ah right, of course, so for non-boolean values :)
a1ph4g33k has quit [Quit: leaving]
[MAN] has quit [Quit: Linkinus - http://linkinus.com]
saarinen has joined #ruby
dmiller_ has joined #ruby
chrishough has joined #ruby
neo7 has joined #ruby
<|jemc|> well, I would just ask myself how I'd want the logic to behave if value somehow ended up as false
optimusprimem has joined #ruby
<|jemc|> you shouldn't evaluate by aesthetic if the two act differently
[MAN] has joined #ruby
<platzhirsch1> |jemc|: if it ends up as false then the interface has done a bad job :P Although you make a good point, it seems to be a common way of writing this conditional statement in Python
Stalkr_ has joined #ruby
mrsolo has quit [Ping timeout: 264 seconds]
dmiller_ has quit [Ping timeout: 276 seconds]
<|jemc|> if you're convinced at that point in the program that it isn't false, I guess I'd use 'if value'
corpuscle has joined #ruby
gyre007 has quit [Remote host closed the connection]
yacks has joined #ruby
kilophoton has quit [Ping timeout: 245 seconds]
jonathanwallace has joined #ruby
carlyle has joined #ruby
postmodern has joined #ruby
iamjarvo has joined #ruby
simoz has joined #ruby
zarul has quit [Read error: Connection reset by peer]
smlgs has quit [Ping timeout: 246 seconds]
zarul has joined #ruby
endash has joined #ruby
paolooo has joined #ruby
a1ph4g33k has joined #ruby
saarinen has quit [Quit: saarinen]
stkowski has joined #ruby
mdst2 has quit [Remote host closed the connection]
[MAN] has quit [Quit: Linkinus - http://linkinus.com]
iamjarvo_ has joined #ruby
ewag has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
saarinen has joined #ruby
ewag has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
paolooo has quit [Client Quit]
tylersmith has joined #ruby
a1ph4g33k has quit [Quit: leaving]
iamjarvo has quit [Ping timeout: 246 seconds]
cascalheira has quit [Quit: Leaving...]
hamakn has joined #ruby
a1ph4g33k has joined #ruby
<Eiam> I don't like unless very often
<Eiam> especially as a starting statement
<Eiam> I prefer to only use it during value assignments
<Eiam> x = "hello" unless something
<platzhirsch1> Eiam: at least I stopped to use it in the construct unless ... else ... :P
<platzhirsch1> seems just wrong afterwards
<Eiam> ugh
* Eiam stabs platzhirsch1
<Eiam> the reason I don't use it there is its basically not idiomatic every other language ever
<platzhirsch1> CS has it
<Eiam> no need to give anecdotal evidence I know plenty of languages have it
michaellynch has quit [Quit: michaellynch]
zarul has quit [Read error: Connection reset by peer]
<Eiam> I already have a hard enough time moving back & forth between JS & ruby every 20 minutes, forgetting one uses if() and the other doesn't, or that one has a select that works a little differently and so on
<a1ph4g33k> Eiam: you mean other than perl ... which is where it came from ...
<Urizen> I use it when I find it makes code more readable
<Eiam> a1ph4g33k: ? doing an "if" statement that starts with "unless" is not idiomatic at all
senayar has joined #ruby
<Eiam> its very contrarian
stkowski has quit [Ping timeout: 246 seconds]
<Eiam> its not C, its not C++, its not Python
zarul has joined #ruby
<a1ph4g33k> you have while & do:until ... so you have if & unless
<Eiam> I didn't say there was something *wrong* with unless, or that it shouldn't exist
<Eiam> I just don't like using it as a starting statement in if statements
senayar has quit [Remote host closed the connection]
<a1ph4g33k> I use it when I want to be sure something isn't nil ... that's about it ...
breakingthings has quit []
<a1ph4g33k> unless( blah.nil? )
<platzhirsch1> Well, I guess everyone has something that makes him/her a bad person
<a1ph4g33k> otherwise it's if( blah.nil? == false ) or if( ! blah.nil? ) # I'm not a fan of the not operator...
<a1ph4g33k> for me.
<a1ph4g33k> I don't know what is common convention.
<Eiam> Alasdairrr: uh..
<Eiam> Alasdairrr: how about if not blah.nil?
<Eiam> reads cleaner than !
<a1ph4g33k> same ... if not ... to me is "unless"
<a1ph4g33k> same number of chars and auto-completes faster.
<Eiam> ah well, to each their own. unless blah.nil? requires more effort for me to mentally parse
<Eiam> whatever works for you, I wasn't recommending anything in particular to people just stating what works for me
<platzhirsch1> it's really marginal, having a language giving you this freedom induces such discussion... maybe I shouldn't have asked :P
<a1ph4g33k> nope ... it's one of those half glass full half glass empty ... things ...
<a1ph4g33k> some people thing of exceptions and other conditions.
<platzhirsch1> no no... no the war is on, do you have public repositories Eiam? I am preparing pull requests to update your if not code statements **
dangerousdave has joined #ruby
visof has quit [Ping timeout: 240 seconds]
<Eiam> platzhirsch1: sorry all my code is corporate and under NDA
<a1ph4g33k> ;)
<Eiam> therefore not on github
<platzhirsch1> aw :(
<Eiam> bummer I know.
hamakn has quit [Ping timeout: 264 seconds]
<Eiam> It bums me out some days too!
<Eiam> especially when i fix bugs in peoples code
* Eiam stares at Rickshaw.d3
mrsolo has joined #ruby
* Eiam stares hard at flotr2
yaymukund has quit [Ping timeout: 240 seconds]
<platzhirsch1> I guess better NDA than NSA
Teddy2steper has joined #ruby
<Eiam> so thats why I hang out on IRC instead =)
<platzhirsch1> Eiam: cool point
platzhirsch1 is now known as platzhirsch
chairabanta has joined #ruby
geekbri has quit [Remote host closed the connection]
wildroman has quit [Remote host closed the connection]
peregrine81 has quit []
breakingthings has joined #ruby
peregrine81 has joined #ruby
peregrine81 has quit [Client Quit]
Elhu has joined #ruby
quoin has joined #ruby
<bricker> In a simple example like this: https://gist.github.com/bricker/6584782 is `self.name` completely ignored, or is there some under-the-hood stuff going on that places that method in Person somewhere, but it's just hidden somehow?
zephdev_ has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
RichardBaker has joined #ruby
yaymukund has joined #ruby
kilophoton has joined #ruby
<Eiam> ignored how?
<bricker> Eiam: maybe it will help if I explain why I'm asking
<Eiam> you've set a class method on Mammal
<Eiam> Mammal.name says "Mammal!!!"
siwica has quit [Ping timeout: 264 seconds]
<Eiam> Person.name doesn't have a class method
<Eiam> it'll say ""Person""
<bricker> Eiam: thank you, I know that.
<Eiam> bricker: you want to access Mammal's self.name from Person?
<bricker> Eiam: I am using `def self.included` to add some class and instance methods into the base module - but outside of that, I also have some methods defined on the module that are just internal utility methods for that module. I don't want those to be anywhere inside of the base module.
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
simoz has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
<bricker> gisting now...
siwica has joined #ruby
sloucher has quit [Ping timeout: 240 seconds]
cascalheira has joined #ruby
<bricker> This uses ActiveSupport::Concern, but the question still stands: https://gist.github.com/bricker/6584891
<a1ph4g33k> include adds the given module into the function search tree ... but it's only going to hit instance methods ... so, yes, name is hidden from that. Defined with self, it's only available when called from the Module directly.
<bricker> I just don't want to muddy up the base module with those top two methods when I say `include CommentMethods`
coderhs has quit [Ping timeout: 248 seconds]
<Eiam> right, extend would make it available
gyre007 has joined #ruby
<Eiam> a1ph4g33k
<a1ph4g33k> yes/
<a1ph4g33k> yes?
<Eiam> a1ph4g33k: I was adding onto your statement
jds_ has joined #ruby
<a1ph4g33k> Eiam: gotcha
Senjai has joined #ruby
Senjai has joined #ruby
Rym has joined #ruby
<bricker> a1ph4g33k: that's what I'm asking - so Ruby *specifically* only grabs instance methods when you use `include`? Where in the MRI source would I look to see that?
<bricker> I looked, but couldn't find it :(
<Eiam> bricker: so you don't want self.obj_by_identifier to be available somewhere you've included CommentMethods ?
<banisterfiend> bricker look at the source for Module#include
chrishough has quit [Ping timeout: 246 seconds]
<bricker> correct - that's a utility method that should only be available via CommentMethods.obj_by_identifier
<banisterfiend> it specifically inserts the methods into the class chain, not the class's singleton chain
<platzhirsch> |jemc|: okay, funny thing is... I thought value can never become a boolean value, but actually that is the case ;) my code failed
<banisterfiend> well it inserts the module into the class chain ;)
io_syl has joined #ruby
dankest has quit [Quit: dankest]
<platzhirsch> |jemc|: no, not correct. I did in fact use value.nil? just sticked to my old habit, but noticed anyway
siwica has quit [Ping timeout: 245 seconds]
<a1ph4g33k> bricker: looking it up for you.
<a1ph4g33k> cd RubyPanther
<a1ph4g33k> s
<a1ph4g33k> ... erg.
Banistergalaxy has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
jds_ has quit [Ping timeout: 240 seconds]
<banisterfiend> bricker basically all that 'include' does it mixes the module into the class's inheritance hierarchy
sloucher has joined #ruby
<bricker> banisterfiend: okay - so those class methods are still there, just inaccessible
deception has quit [Ping timeout: 264 seconds]
chrishough has joined #ruby
<bricker> banisterfiend: or something like that
<banisterfiend> bricker what class methods? you mean you're defining class methods on a module that you're mixing in, and wanting to invoke those class methods on the class you call include on?
<bricker> no, sorry
Cyrus has joined #ruby
<bricker> banisterfiend: The module is meant to be included into other classes, however, the module also contains some methods that should only be called on the module directly
skaflem has quit [Quit: Leaving]
<bricker> and I don't want to dirty up the other classes that have the module included
<banisterfiend> bricker then define them as class methods on the module, they won't be imported into classes when you mix the module in
<a1ph4g33k> bricker: using self. on the module is doing exactly that ...
Ripp__ has quit []
<bricker> banisterfiend: yeah, I guess I'm just trying to figure out the specifics of where/why that happens
Seich has quit [Quit: Computer has gone to sleep.]
<bricker> you know, "learning" and stuff :)
<Eiam> nonsense!
<banisterfiend> bricker because class methods on the module are defined on the *singleton class* of the module
Underbyte has joined #ruby
<Eiam> I told a room full of people that my code was "Magic, but directed magic that you mostly control!"
|jemc| has quit [Ping timeout: 240 seconds]
<Eiam> ;)
bigoldrock has joined #ruby
<banisterfiend> bricker but when you mix in a module the class only gets the instance methods defined on the *module itself* (not on the singleton class of the module)
dankest has joined #ruby
<Underbyte> question -- does anyone know if RubyCocoa is being updated to work with Ruby 2.0 (aka the ruby in 10.9) yet?
hackingoff has joined #ruby
<a1ph4g33k> self methods are defined on the object being defined ... in this case .. the instance of Module named Mammal ...
<bricker> banisterfiend: ah-hah - so it doesn't target the instance methods specifically, rather it just *leaves off* the singleton class
<a1ph4g33k> methods not defined that way are put into the collect of methods to be used during method resolution.
gyre007 has quit [Ping timeout: 264 seconds]
Guest57797 has quit [Ping timeout: 260 seconds]
Collin has quit [Ping timeout: 248 seconds]
<a1ph4g33k> bricker: "Metaprogramming in Ruby" has a great explanation of how method lookup works in Ruby ...
<banisterfiend> bricker Yeah, a few years ago i wrote this thing: https://github.com/banister/include_complete does mixes in module singleton methods too :)
<banisterfiend> bricker but, for better or worse, (probably for better), ruby ignores the singleton class of the module
<banisterfiend> bricker interestingly, this is different to the case of class inheritance
aaronmcadam has quit [Quit: Leaving...]
bio has joined #ruby
noopq has quit [Ping timeout: 264 seconds]
bio is now known as Guest19599
<banisterfiend> bricker in the case of class inheritance, the singleton methods from the superclass are inserted into the subclass's singleton's inheritance chain
Ripp__ has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
piny26 has quit [Ping timeout: 264 seconds]
gyre007 has joined #ruby
<banisterfiend> >> class A; def self.a; "boo"; end; end; class B < A;end; B.a
<eval-in> banisterfiend => "boo" (https://eval.in/48798)
<banisterfiend> bricker compare above to this:
zarul has quit [Ping timeout: 245 seconds]
<banisterfiend> >> module M; def self.m; "boo"; end; end; class C; include M; end; C.m
<eval-in> banisterfiend => undefined method `m' for C:Class (NoMethodError) ... (https://eval.in/48799)
<banisterfiend> bricker :)
gchaturvedi has joined #ruby
<bricker> yes
zarul has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
<a1ph4g33k> bricker: the code you are looking for is mostly in class.c
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
<gchaturvedi> Hello guys..I had a quick question. When I'm in a writing inside an instance method in a particular class…to set my instance variable to something can be done in two ways: @blah = blah, or self.blah = blah..these are equivalent right?
danshultz has joined #ruby
apeiros has joined #ruby
|jemc| has joined #ruby
upttore43 has joined #ruby
<a1ph4g33k> gchaturvedi: not quite equivalent ... the first is setting a variable, the second invoking a method.
<bricker> gchaturvedi: if you have `attr_writer :blah`, or `attr_accessor :blah`, or if you have defined the writer method to set that instance variable, then yes they are essentially the same.
<gchaturvedi> Ohh ok..so if I didn't have attr_writer :blah..the only way to set the instance variable would be @blah = blah..since there would be no method definition of def blah= right?
gyre008 has joined #ruby
sambao21 has joined #ruby
cfi30 has quit [Quit: -]
<a1ph4g33k> gchaturvedi: or if you defined your own.
<gchaturvedi> Ok cool thanks.
cfi30 has joined #ruby
snath has joined #ruby
coderhs has joined #ruby
rcosta_ has joined #ruby
ixti has quit [Read error: Connection reset by peer]
ixti has joined #ruby
<a1ph4g33k> >> class Foo ; def set_foo( value ) ; @foo = foo ; end ; def get_foo() ; @foo ; end ; alias :set_foo :foo= ; end ; a = Foo.new ; puts a.get_foo ; a.foo = :bar ; puts a.get_foo ; a.set_foo :blam ; puts a.get_foo
<eval-in> a1ph4g33k => undefined method `foo=' for class `Foo' (NameError) ... (https://eval.in/48809)
rezzack has joined #ruby
hackingoff has quit [Ping timeout: 245 seconds]
<a1ph4g33k> >> class Foo ; def set_foo( value ) ; @foo = foo ; end ; def get_foo() ; @foo ; end ; alias :foo= :set_foo ; end ; a = Foo.new ; puts a.get_foo ; a.foo = :bar ; puts a.get_foo ; a.set_foo :blam ; puts a.get_foo
<eval-in> a1ph4g33k => ... (https://eval.in/48810)
chrishough has quit [Quit: chrishough]
apeiros has quit [Ping timeout: 264 seconds]
<a1ph4g33k> ... first time trying to use the bot.
vlad_starkov has joined #ruby
marius has joined #ruby
gyre007 has quit [Ping timeout: 248 seconds]
Tuxist_ has joined #ruby
goshakkk has joined #ruby
rcosta has quit [Ping timeout: 276 seconds]
rcosta_ has quit [Remote host closed the connection]
<Urizen> I'm new here... There's a ruby eval bot?
Quashie_ has joined #ruby
Tuxist has quit [Ping timeout: 264 seconds]
<a1ph4g33k> >> class Foo ; def set_foo( value ) ; @foo = foo ; end ; def get_foo() ; @foo ; end ; alias :foo= :set_foo ; end ; a = Foo.new ; a.get_foo
<eval-in> a1ph4g33k => nil (https://eval.in/48811)
<Urizen> >> puts 'testing...'
<eval-in> Urizen => testing... ... (https://eval.in/48812)
d2dchat has quit [Remote host closed the connection]
<Urizen> very cool
<a1ph4g33k> >> class Foo ; def set_foo( value ) ; @foo = foo ; end ; def get_foo() ; @foo ; end ; alias :foo= :set_foo ; end ; a = Foo.new ; a.set_foo :bar ; a.get_foo
<eval-in> a1ph4g33k => undefined local variable or method `foo' for #<Foo:0x40614d70> (NameError) ... (https://eval.in/48813)
<a1ph4g33k> >> class Foo ; def set_foo( value ) ; @foo = value ; end ; def get_foo() ; @foo ; end ; alias :foo= :set_foo ; end ; a = Foo.new ; a.set_foo :bar ; a.get_foo
<eval-in> a1ph4g33k => :bar (https://eval.in/48814)
<a1ph4g33k> >> class Foo ; def set_foo( value ) ; @foo = value ; end ; def get_foo() ; @foo ; end ; alias :foo= :set_foo ; end ; a = Foo.new ; a.foo = :blam ; a.get_foo
<eval-in> a1ph4g33k => :blam (https://eval.in/48815)
Lewix has quit [Remote host closed the connection]
<a1ph4g33k> gchaturvedi: ... there ya go.
<gchaturvedi> cool thanks man.
<a1ph4g33k> you don't have to use attr_* methods ... they just save a bit of code.
<Urizen> will it eval anything? no security concerns?
netQT has joined #ruby
<a1ph4g33k> you can always define a value=( new_value ) method for yourself ...
<gchaturvedi> Okay
<a1ph4g33k> Urizen: no idea. I would expect the hosts expect responsible behavior.
netQT has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
Quashie has quit [Ping timeout: 264 seconds]
<Urizen> Will I get banned from this channel if I responsibly test its capabilities? :)
cmarques has joined #ruby
burlyscudd1 has joined #ruby
burlyscudd has quit [Read error: Connection reset by peer]
<MrZYX> it starts a new interpreter in a jail, different temporary directory everytime, it also has networking disabled
<Urizen> >> `uname -a`
<eval-in> Urizen => (https://eval.in/48817)
<a1ph4g33k> bricker: static int include_modules_at on line 724 of class.c ... shows you how modules are added into the superclass tree.
deception has joined #ruby
<gchaturvedi> I'm guessing ` lets you run C stuff?
<gchaturvedi> or operating system cmdx rather
<Urizen> just evals in the shell
<gchaturvedi> kk
<Urizen> if anyone was curious it didnt work
Coolhand has joined #ruby
<Urizen> Forbidden access to file `/usr/local/bin/uname'
<gchaturvedi> Do you guys know any good open source pure Ruby projects that are in need of contributors? I feel like a lot of the stuff is already super fleshed out already and not great for beginners.
<gchaturvedi> I'm really looking to stop reading and start coding now to get a grasp of things.
burlyscudd1 has quit [Client Quit]
Stygia has quit [Ping timeout: 264 seconds]
rcosta has joined #ruby
marius has quit [Ping timeout: 260 seconds]
deetah has quit [Quit: leaving]
simoz has joined #ruby
upttore43 has quit [Quit: upttore43]
blackratdog1 has quit [Quit: Leaving]
puffed26 has joined #ruby
gyre008 has quit [Remote host closed the connection]
<gchaturvedi> anybody? :)
sayan has quit [Ping timeout: 240 seconds]
gyre007 has joined #ruby
saarinen has quit [Quit: saarinen]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<platzhirsch> ok just kidding,.. it depends, what are you interested in?
Cyrus has quit [Quit: Cyrus.sleep()]
<gchaturvedi> lol
hackingoff has joined #ruby
<gchaturvedi> that's a good question..I guess every idea I've thought of already has a gem for it hah!
<a1ph4g33k> gchaturvedi: I know of a bit of work I want done on a gem ... but not of any projects looking for help.
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Banistergalaxy> Hello men
<platzhirsch> gchaturvedi: well, but you said you want to contribute, gems are not final
<gchaturvedi> what's the gem?
<a1ph4g33k> Gruff.
<a1ph4g33k> I want multiple marker line support added.
<a1ph4g33k> I just haven't taken the time to do it myself.
dgfdgf has joined #ruby
<gchaturvedi> lemme take a look
<gchaturvedi> platzhirsch: good point
<a1ph4g33k> ( they support a single horizontal marker line they refer to as "baseline" ) ... I want the ability to define multiple ... and on both axes. )
JumpMast3r has joined #ruby
<platzhirsch> I have a gem in version 0.0.1 :P
<a1ph4g33k> s/)$//
vlad_sta_ has joined #ruby
mengu has joined #ruby
simoz has quit [Ping timeout: 245 seconds]
puffed26 has quit [Ping timeout: 240 seconds]
obs has joined #ruby
NealJ has quit [Quit: :c]
nikeita has joined #ruby
marius has joined #ruby
`MArceLL` has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Ping timeout: 246 seconds]
neo7 has quit [Quit: Page closed]
NealJ has joined #ruby
robscomputer has quit [Remote host closed the connection]
iamjarvo_ has quit [Ping timeout: 240 seconds]
robscomputer has joined #ruby
cj3kim has joined #ruby
goshakkk has quit [Quit: Textual IRC Client: www.textualapp.com]
enebo has quit [Read error: Connection reset by peer]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
fantazo has quit [Ping timeout: 245 seconds]
puffed26 has joined #ruby
Stygia has joined #ruby
robscomputer_ has joined #ruby
Elhu has joined #ruby
robscomputer_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
enebo has joined #ruby
robscomputer has quit [Ping timeout: 276 seconds]
elaptics`away is now known as elaptics
blackmesa has joined #ruby
shredding has joined #ruby
marius has quit [Ping timeout: 248 seconds]
decoponio has quit [Quit: Leaving...]
DrCode has quit [Remote host closed the connection]
RichardBaker has joined #ruby
Stygia has quit [Max SendQ exceeded]
Stygia has joined #ruby
mikeric has joined #ruby
osvico has joined #ruby
Stygia has quit [Read error: Connection reset by peer]
robustus has quit [Ping timeout: 245 seconds]
DrCode has joined #ruby
Senjai has quit [Ping timeout: 276 seconds]
peregrine81 has joined #ruby
cj3kim_ has joined #ruby
Stygia has joined #ruby
visof has joined #ruby
browndawg has left #ruby [#ruby]
robustus has joined #ruby
MrThePlague has quit [Remote host closed the connection]
acrussell has quit [Quit: Leaving.]
cj3kim has quit [Ping timeout: 240 seconds]
dgfdgf is now known as `MArceLL`
Elhu has quit [Quit: Computer has gone to sleep.]
Mephisto4 has quit [Ping timeout: 248 seconds]
MrThePlague has joined #ruby
cfi30 has quit [Quit: WeeChat 0.4.1]
cfi30 has joined #ruby
blackmesa has quit [Remote host closed the connection]
Tuxist_ has quit [Remote host closed the connection]
burlyscudd has joined #ruby
cfi30 has quit [Client Quit]
cfi30 has joined #ruby
zarubin has quit [Ping timeout: 276 seconds]
burlyscudd has quit [Client Quit]
siwica has joined #ruby
wudofyr has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
fcahoon has joined #ruby
danshultz has quit [Remote host closed the connection]
blackmesa has joined #ruby
false_economy has quit [Remote host closed the connection]
robscomputer has joined #ruby
brbcoding has quit []
robscomputer_ has joined #ruby
visof has quit [Ping timeout: 248 seconds]
robscomputer_ has quit [Read error: Connection reset by peer]
robscomputer_ has joined #ruby
<shevy> platzhirsch I got a few of these
robscomputer_ has quit [Remote host closed the connection]
<shevy> mostly it takes me a while before I can make it really a "good" gem
<shevy> and for large projects... that is just hopeless ...
angusiguess has quit [Ping timeout: 245 seconds]
robscomputer_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
robscomputer has quit [Ping timeout: 260 seconds]
<shevy> hmm I got a question for you guys
mando has joined #ruby
Astral_ has joined #ruby
<shevy> I have three tarballs... ignoring the version, the names are: libxml, libxml++, and gtk+
<shevy> I want to store them all in a separate directory
Aristata has joined #ruby
<shevy> what name would you give them? libxml/ ... libxml++/ ? the ++ disturbs me ...
Rym has quit [Ping timeout: 264 seconds]
Trudko has quit [Ping timeout: 245 seconds]
<Aristata> If I have an array of ids [3, 5, 1, 2, 4, 5], and an array of objects that each have an id, what is the most efficient way to order the objects based on the order of the array of ids?
DrShoggoth has joined #ruby
robscomputer_ has quit [Ping timeout: 248 seconds]
<matled> Aristata: objects.sort_by { |o| ids.index(o.id) }
iamjarvo has quit [Remote host closed the connection]
<a1ph4g33k> Aristata: Do you mean to have id 5 included twice ?
ewag has quit [Remote host closed the connection]
robscomputer has joined #ruby
quoin has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
Astralum has quit [Ping timeout: 264 seconds]
<Aristata> a1ph4g33k: no i did not
iamjarvo has quit [Read error: Connection reset by peer]
<Aristata> matled: That is a nice approach, thank you
iamjarvo has joined #ruby
carraroj has joined #ruby
gchaturvedi has quit [Quit: gchaturvedi]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
false_economy has joined #ruby
<Eiam> shevy: libxmlplusplus =)
<shevy> Eiam hah ... that is actually what I came up with too!
<Eiam> or libxmlpp
<Eiam> like .cpp
siwica has quit [Quit: siwica]
<shevy> yeah
<Eiam> woo virtual high five
<shevy> '+' and '-' in project names, as part of the name, is really odd
<shevy> what I don't get ... gtk is written in C, I think, but the name includes a + :(
siwica has joined #ruby
chairabanta has quit [Quit: Leaving...]
<shevy> what I hate even more than that are things like
visof has joined #ruby
Collin has joined #ruby
<shevy> then you extract it
<shevy> and it turns out the name is apt-0.9.11.2 :\
solars has quit [Ping timeout: 243 seconds]
<platzhirsch> shevy: yeah, I mean that's natural :) it's a better attitude than dropping dozens of 0.0.2 gems over the world
<shevy> hmm
<shevy> yeah
<shevy> platzhirsch well, I think up until a 1.0 version, things shouldn't be taken too seriously
<platzhirsch> heh, some people might think they have to create the next wonder tool before a 1.0 is appropriate
dangerousdave has quit [Quit: Leaving...]
* Eiam looks at all his internal gems
<Eiam> less than 1.0 for sure =)
azcodex has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
<shevy> hehe
<shevy> well, there was a rails time before 1.0
burlyscudd has quit [Quit: Leaving.]
<Eiam> ones out in like .6.3.8
carraroj has quit [Remote host closed the connection]
saarinen has joined #ruby
<shevy> rake: rake, version 0.9.3.beta.1
cj3kim_ has quit [Remote host closed the connection]
<Eiam> woo!
<shevy> platzhirsch some projects are shy to match 1.0
havenwood has joined #ruby
rupee has quit [Quit: Leaving]
<Eiam> 1.0 implies I'm going to support you
<Eiam> pass!
<Eiam> =)
<shevy> pry 0.9.12.2
<platzhirsch> hehe
<shevy> ohhhh... ramaze has a curious way to version
<shevy> ramaze (2012.12.08)
jaimef has quit [Excess Flood]
<shevy> I wonder if that is the better approach
<platzhirsch> if you hit 1.0 they all come out lurking and drop issue bombs on you: there is this, that and that bug WHY THE HELL IS THAT A 1.0 ??
<Eiam> what if they have two builds on that day, one for master and one for feature B?
deception has quit [Quit: Goodbye]
cj3kim has joined #ruby
mark_locklear has quit [Ping timeout: 264 seconds]
cj3kim has quit [Remote host closed the connection]
<platzhirsch> I wonder when Chrome hits v100
Lewix has joined #ruby
<shevy> Eiam good question... I always wondered about that... once I said to myself "if I ever make my own program language, I am gonna to permanently rolling releases"... so possible "versions" based on time stamps of any given release
<shevy> *programming language
<shevy> hmm let's see to chrome
cody-- has quit [Quit: derp]
<shevy> "google chrome current stable.deb" hehe
<shevy> aha
<shevy> Stable release 29.0.1547.66 (September 2, 2013; 13 days ago)
ephemerian has joined #ruby
<shevy> version 29 ... whatever that means
<shevy> I guess it must be "super stable"
allsystemsarego has quit [Quit: Leaving]
<Banistergalaxy> Platzhirsch that's my view on pry, it's not hitting 1.0 until it gleams
<platzhirsch> It means, we are a far stretch away from the time when Chrome was being highly questioned due to privacy issues :P
<platzhirsch> Banistergalaxy: so you are banisterfiend?
sambao21 has joined #ruby
staafl has quit [Ping timeout: 240 seconds]
azcodex has joined #ruby
<platzhirsch> too many banisters..
<platzhirsch> Banistergalaxy: yeah I mean why not, it's all definition in the end
marius has joined #ruby
<Banistergalaxy> Galaxy is phone banister
<Banistergalaxy> Samsung galaxy ;)
jaimef has joined #ruby
<shevy> platzhirsch I wonder if chrome had a version below 1.0 ever
marius has quit [Read error: Connection reset by peer]
<shevy> platzhirsch but I think I just realized why debian uses _ underscore ... I may be wrong, but it seems to be their delimiter in use ... project name could be: foo-bar-bla_1.0.0 so when you use _ it is instantly obvious when the version name starts
fmcgeough has quit [Quit: fmcgeough]
jdeeburke has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
jdeeburke has left #ruby [#ruby]
<platzhirsch> shevy: it was indeed version 1 that was released in 2008
<platzhirsch> looks like before the version was "Beta" ...
eloquent_mute has joined #ruby
gchaturvedi has joined #ruby
d2dchat has joined #ruby
duggiefresh has quit [Ping timeout: 248 seconds]
RDash is now known as RDash[AW]
shredding has quit [Quit: shredding]
<shevy> cool
<shevy> 2008 ...
<shevy> I was almost not even born then
bricker_ has joined #ruby
cfi30 has quit [Quit: --]
kindjal has joined #ruby
Deele has quit [Ping timeout: 240 seconds]
cfi30 has joined #ruby
<platzhirsch> shevy: that sounds a bit awkward :P
<platzhirsch> I mean I have the feeling I get reborn every 5 years,.. but I don't know what you are aiming at
rcosta has quit [Ping timeout: 245 seconds]
<shevy> platzhirsch eh... can you remember much what happened in your life 15 years ago?
carlyle has quit [Remote host closed the connection]
eloquent_mute has quit [Ping timeout: 240 seconds]
<platzhirsch> shevy: no
x1337807x has joined #ruby
bricker has quit [Ping timeout: 264 seconds]
saarinen has quit [Quit: saarinen]
<platzhirsch> I would have to look up, in which class I was, etc. to catch some memories
<shevy> platzhirsch that's only 3x 5 years! I was not even using ruby ...
funburn has joined #ruby
<platzhirsch> good thing I started to make more photos lately
adeponte has quit [Remote host closed the connection]
saarinen has joined #ruby
adeponte has joined #ruby
<shevy> hehehe
<platzhirsch> I even archived so rock old programming projects, these are kind of photos, too..
Monie has joined #ruby
<platzhirsch> s/so/som
<platzhirsch> e
kirun has quit [Quit: Client exiting]
claymore has quit [Quit: Leaving]
devoldmx3 has joined #ruby
azcodex has quit [Read error: Connection reset by peer]
gchaturvedi has quit [Quit: gchaturvedi]
Trudko has joined #ruby
apeiros has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
rcosta has joined #ruby
azcodex has joined #ruby
azcodex has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 276 seconds]
Rym has joined #ruby
gemmy has joined #ruby
shoepie has joined #ruby
kil0byte has quit [Remote host closed the connection]
<shoepie> looking for a easy way to start a ruby daemon at system startup, on debian
<Urizen> >> puts RUBY_VERSION
<eval-in> Urizen => 2.0.0 ... (https://eval.in/48823)
Dreamer3 has quit [Ping timeout: 260 seconds]
<Urizen> the latest episode of ruby rogues was dedicated to writing daemons in ruby: http://rubyrogues.com/122-rr-daemons-with-kenneth-kalmer/
warefare has joined #ruby
QQQ has joined #ruby
<Underbyte> hmm
<Underbyte> >> loop { fork }
<eval-in> Underbyte => (https://eval.in/48824)
evenix has quit [Remote host closed the connection]
idoru has quit [Quit: Working as programmed]
cek has quit [Quit: жопа диридай диридиридай]
<apeiros> Underbyte: the bot is for demonstration purposes only. please don't play around with it. thanks.
<Underbyte> heh, lol
workmad3 has joined #ruby
Trudko has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 1.9.0.17/2009122204]]
idoru has joined #ruby
c0rn has joined #ruby
jonathanwallace has quit [Read error: Operation timed out]
cody-- has joined #ruby
carlyle has joined #ruby
tatsuya_o has joined #ruby
nikeita has quit [Quit: bye bye]
Quashie_ has quit [Ping timeout: 246 seconds]
<warefare> when I run rake db:migrate is it creating a database? Getting could not find expected ':' while scanning
<warefare> probably permission issue huh?
<Urizen> does the db already exist? if not try rake db:create
<warefare> the database.yml should use the full path for databases, it's way too confusing
<warefare> I have this database: db/dv_dev_db.sqlite3
<warefare> sqlite should work out of the box right? Let me see
<warefare> yea, still getting could not find expected ':' while scanning a simple key at line 9
<warefare> when running rake db:create
<Urizen> run the rake task with --trace
<Urizen> and where is the problem?
ldnunes has quit [Quit: Leaving]
tziOm has joined #ruby
shaunbaker has joined #ruby
Suit_Of_Sables has quit [Quit: WeeChat 0.4.0]
<warefare> rake aborted right after executing the db:load_config
<tziOm> What is the preferred way running ruby/web? passenger?
<havenwood> tziOm: One of the good Rack webservers (Passenger, Unicorn, Reel-Rack, Puma or Thin) behind a reverse proxy (Nginx or Apache).
wudofyr has joined #ruby
siwica has quit [Quit: siwica]
dorei has joined #ruby
<slash_nick> havenwood: does torquebox qualify?
<havenwood> tziOm: Depends in large part on what you're doing. There are multiple good option.
<tziOm> havenwood, Can you say anything about the preferred way?
shaunbaker has quit [Remote host closed the connection]
<havenwood> slash_nick: For sure! If we're talking JRuby there are another handful of top notch options.
<havenwood> tziOm: Depends what you're doing. First off, Ruby or JRuby is definitely going to be a big factor.
<havenwood> tziOm: Trinidad, TorqueBox, and Puma are all pretty sick options on JRuby.
<havenwood> tziOm: A popular route on Ruby is Unicorn behind Nginx.
<tziOm> I am working in hosting, and we are considering offering ruby hosting solutions
<tziOm> So trying to get some input on what the community likes.
volty has joined #ruby
<tziOm> Could ofcorse do more than one setup
agent_white has joined #ruby
Quashie_ has joined #ruby
<havenwood> Yeah, might be nice to have a JVM (JRuby) and a Unix (Ruby) route. Could even have a configurable fallback on which Rack webserver. Might want to look at Sinatra's code for trying to pick the ideal webserver out of those installed.
Quashie_ has quit [Max SendQ exceeded]
quoin has joined #ruby
danshultz has joined #ruby
QQQ has quit [Ping timeout: 245 seconds]
tjad has quit [Ping timeout: 276 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
codecop has quit [Remote host closed the connection]
Aristata has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
<havenwood> tziOm: Hrm, Sinatra just uses "Thin, Puma, Mongrel, or WEBrick (in that order)": Thin, Puma, Mongrel, or WEBrick (in that order)
<tziOm> havenwood, sinatra as in http://www.sinatrarb.com/ ?
Aristata has joined #ruby
vlad_starkov has joined #ruby
<xybre> Sinatra works great with Unicorn too.
danshultz has quit [Ping timeout: 248 seconds]
<havenwood> tziOm: Ya, linked to the code I was thinking above. But it doesn't work as I imagined. :P Just was trying to think of something that worked well with many Rack webservers and had config for which one to use.
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
<havenwood> tziOm: Unicorn behind Nginx just for reverse proxy would be a totally sane and battle-tested setup.
jrobeson has joined #ruby
<tziOm> Why do I need it behind nginx it its a full fledged?
<havenwood> tziOm: Or Thin behind Nginx. Passenger Apache or Nginx module. Etc.
freerobby1 has quit [Ping timeout: 245 seconds]
<havenwood> tziOm: Just for load balancing.
sambao21 has joined #ruby
Aristata has quit [Client Quit]
ta has joined #ruby
<havenwood> tziOm: If its a single server, you can use something like Rainbows! and not use a reverse proxy.
<havenwood> tziOm: But that is a little bit more of an exotic setup.
elaptics is now known as elaptics`away
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Es0teric has joined #ruby
<havenwood> tziOm: And isn't as performant.
maroloccio has quit [Quit: WeeChat 0.4.0]
<tziOm> havenwood, Ok, so unicorn might be a good option in addition to perhaps passenger
jds_ has joined #ruby
<havenwood> tziOm: If you want, you can just point Unicorn at port 80. But its going to perform poorly/not-at-all for slow responses.
<xybre> Yeah thats what I use (Unicorn + Nginx). I don't think anyone would seriously recommend Mongrel anymore. Passenger isn't as loved as it once was, but it is a pretty quick out of the box experience.
<tziOm> havenwood, dont see how it works if I set nginx in front (with single backend)
<havenwood> tziOm: Rainbows! uses Unicorn internally, but puts it behind a thread pool, evented-io, etc so it handles slow responses too. Or the conventional route is use Apache or Nginx as a reverse proxy for slow requests and load balancing.
dmiller_ has joined #ruby
devoldmx has joined #ruby
<tziOm> I mean, I use nginx alot for multiple backends and exotic lua trickery.. but
<havenwood> tziOm: You basically just run the Ruby webserver on a socket or port, and proxy to it from your Nginx conf.
<xybre> Unicorn spawns multiple workers (preforking strategy) to handle requests, Nginx just handles the incoming requests.
<tziOm> xybre, but unicorn would still spawn processes if it handled connections directly.. I mean, its http, not fcgi or something?
<havenwood> tziOm: This seems like a reasonable example: http://sirupsen.com/setting-up-unicorn-with-nginx/
<tziOm> Im not trying to be difficult here, I just dont see the reason why I would like nginx in front..
pragmaticivan has joined #ruby
<havenwood> tziOm: Yeah, it just doesn't have a process pool or evented io behind it to handle slow connections and load balancing.
nfk has quit [Quit: yawn]
devoldmx3 has quit [Ping timeout: 245 seconds]
aryaching_ has quit [Ping timeout: 276 seconds]
<havenwood> tziOm: Unicorn is intentionally minimally designed around process pre-forking. It responds to signals elegantly. Does one thing, does it well.
<havenwood> tziOm: Rainbows! adds on those missing features but Nginx is generally preferred since is fast as heck and works well.
<xybre> tziOm: If you run it on a TCP port and not a unix socket, and tell it to take over port 80 then yes, it'll work directly. And it should be fine for small applications.
vlad_starkov has quit [Ping timeout: 245 seconds]
dmiller_ has quit [Ping timeout: 240 seconds]
<tziOm> xybre, I will have to do some testing..
<tziOm> thing is I have a pool of nginx reverse proxies in the very front of my webfarm
alex__c2022 has quit [Quit: alex__c2022]
rehat has joined #ruby
iamjarvo has quit [Remote host closed the connection]
<tziOm> and requests will allways go through these, and be balanced out to whatever backend servers,.
sailias has quit [Quit: Leaving.]
mansi has quit [Remote host closed the connection]
<xybre> "You can still use nginx to route certain requests to Unicorn and others to Rainbows! nginx will always outperform Rainbows! in both pure reverse proxy applications and for serving static files"
<havenwood> tziOm: Unicorn can handle a good bit just pointed at port 80. Just for a robust and flexible setup putting it behind Nginx or using a Rainbows! setup like Rainbows::XEpollThreadPool.
<xybre> (from the Rainbows! website)
iamjarvo has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<tziOm> xybre, why do they write rainbows if they say it sucks? :)
<havenwood> tziOm: Always outperform isn't the same as suck. :P
<xybre> tziOm: Where do they say that it sucks?
<havenwood> tziOm: C always outperforms Ruby.
cj3kim has joined #ruby
machuga is now known as machuga|away
<tziOm> Ok, but I see you guys like the unicorn approach, so I will atleast offer that alternative.
<tziOm> Got any approx numbers for me on memory usage of "typical" 10 worker ruby app?
ZoanthusR has joined #ruby
funburn has quit [Quit: funburn]
<havenwood> tziOm: It takes a bit more memory but you don't get bitten by the occasional thread safety issue like you might in the younger Puma.
maroloccio has joined #ruby
tvw has joined #ruby
<tziOm> Are you guys happy with 256MB memory for unicorn?
<xybre> Unicorn is an application server, nginx is a reverse proxy and static file server, they serve difference purposes. Rainbows! tries to do all the things, and its going to be easier to set up, administer, and maintain then Nginx but for high demand applications nginx still has its uses.
JohnBat26 has quit [Ping timeout: 264 seconds]
<tziOm> xybre, ok, so unicorn does not do the static file serving? So I need an additional nginx layer then
<havenwood> tziOm: Puma (threading) or Thin (evented) would use less memory than Unicorn (forking).
<xybre> Everyone thinks their app is "high demand" and "needs to work at scale", but most people seem to forget that they are not FB or google. Easier to set up and use is a much bigger win for 98% of companies.
iamjarvo has quit [Ping timeout: 245 seconds]
<xybre> tziOm: it does, its just not as fast :)
<shevy> hmm
<shevy> I am experimentally doing:
<shevy> def foo
<shevy> bla; end
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xybre> lol
mmitchell has quit [Ping timeout: 240 seconds]
dodosan has joined #ruby
<havenwood> shevy: And what is your hypothesis?
tatsuya_o has quit [Read error: Connection reset by peer]
spider-mario has quit [Read error: Connection reset by peer]
<shevy> havenwood not sure yet... I am just getting annoyed about some of the "end"s right now
<shevy> I seem to focus mostly on the left side of my screen first
<havenwood> shevy: Oooh, you mean you're not putting returns before your ends?
<shevy> hmm or perhaps I need an editor that can not show certain "end"
<tziOm> How about running the application? Do the user always have to specify what application I should run (unicorn_rails -c /var/www/unicorn/config/unicorn.rb -D) or is it some defacto standard you go by?
<shevy> nah... but right now I only do so for tiny methods
<havenwood> shevy: you can usually remove the semi-colon
<xybre> shevy: you can configure vim to hide the ends
<shevy> havenwood ah good catch, have not thought about that yet
browndawg has left #ruby [#ruby]
<xybre> tziOm: you can just use "rackup" if your config.ru is set up correctly, or just write a little shell script to do it for you.
<havenwood> >> 'a'.upto('c') do |l| puts l end
<eval-in> havenwood => a ... (https://eval.in/48828)
ffranz has quit [Quit: Leaving]
<havenwood> shevy: ^ but why not use {} for a one-liner?
nisstyre has joined #ruby
<waxjar> i sometimes put reallly short / repetitive methods on a single line def foo; @bar.baz; end
<havenwood> shevy: oh, nvm, i see
<xybre> waxjar: yeah me too, I feel like there should be a cleaner way to do that
bricker_ is now known as bricker
<shevy> havenwood oh, I do that too, I just mean for something like: def foo; bar(5); end
<tziOm> xybre, I mean.. a script will start the user unicorn server, but do I need the user to specify what file to run, is will this always be config.ru ?
gyre007 has quit [Ping timeout: 259 seconds]
<havenwood> shevy: right, yeah it'd make more sense if Ruby hadn't dropped the explicit "do" following def shuga.
<shevy> waxjar yeah... I am thinking of that as well, it's strange how many ways one has to arrange code in ruby
<havenwood> `def foo do bar end` could be written `def foo { bar }` but the 'do' is implicit.
<xybre> tziOm: if you're using rackup then you don't need to specify anything, but you can set up unicorn to use the unicorn.rb configuration of your choice. Its actually helpful because different environments (CI/dev/prod/stage) could have different server configurations.
<shevy> perhaps for my next iteration test, I should not be allowed to write large methods anymore :D
yfeldblum has quit [Ping timeout: 245 seconds]
fcahoon has quit [Quit: Leaving]
<xybre> shevy: 10 lines is my limit for "good" code :)
<slash_nick> that'd be a fun code quality spec... it "has no methods longer than ten lines" do; ... ; end
Rym has left #ruby [#ruby]
rcosta_ has joined #ruby
<shevy> hmm
<shevy> 10 lines
<havenwood> ^ heh, that pseudo code does look like Elixir
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<shevy> xybre, you mean inside the method? def foo; bar; end <--- is one line? or is that 3
<xybre> slash_nick: Thats what CodeClimate is for :D
ryanw has left #ruby ["Proudly baked in NZ"]
<xybre> shevy: I count the contents, that that'd be one
<shevy> ok
kilophoton has quit [Ping timeout: 245 seconds]
<slash_nick> xybre: though I do also appreciate code quality
<slash_nick> err, code climate
<xybre> I use this as a basis, but my standards a little more relaxed: http://www.markhneedham.com/blog/2008/11/06/object-calisthenics-first-thoughts/
<waxjar> havenwood, the curly braces throw an error for me in 1.9.3?
<havenwood> waxjar: yeah, doesn't run - sry, i was unclear
kaldrenon has quit [Remote host closed the connection]
<xybre> slash_nick: nice :D
<havenwood> waxjar: I was just saying **if** Ruby had gone with explicit rather than implicit `do` you could.
<havenwood> waxjar: But it didn't and you can't. >.>
<waxjar> ah, i misunderstood
kaldrenon has joined #ruby
<xybre> You *could* use define_method to do that, but define_method is SUPER SLOW for some reason.
s0ber_ has joined #ruby
<havenwood> waxjar: I wonder if Ruby might actually be able to support explicit `{}` with def, that does seem parsable to me but i dunno.
<waxjar> and the doc generator might not pick it up
<platzhirsch> handling huge JSONs is a pain in the %$#@
<xybre> In fact it'd be fast to create your own method and have it dump the contents into an eval :/
<havenwood> waxjar: i mean if support might be addable
Stygia has quit [Quit: Leaving]
<havenwood> waxjar: Ruby 2.2 :P
rcosta has quit [Ping timeout: 276 seconds]
nomenkun has joined #ruby
<xybre> platzhirsch: I know, I wrote a bunch of tools around just digging through big API structures :/
<waxjar> havenwood, it sure would look prettier than the semicolons :P
<havenwood> waxjar: I think it is actually reasonable. Dunno if it would cause unforeseen parsing problems.
nomenkun has quit [Remote host closed the connection]
s0ber has quit [Read error: Operation timed out]
<waxjar> i agree
s0ber_ is now known as s0ber
tatsuya_o has joined #ruby
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
<platzhirsch> xybre: so far I have stumbled on json-stream and yajl-ruby for streamed JSON processing,.. the first hits of Google actually
mikeric has quit []
<havenwood> waxjar: you see folks equivocate between implicit and explicit `do` elsewhere, like both `while true do;` and `while true;` work just fine.
<havenwood> would be particularly nice with def
<havenwood> and class for that matter
kaldrenon has quit [Ping timeout: 245 seconds]
<tziOm> Its much harder to do some standardization of hosting of ruby applications than say php, where you upload your files to a folder and off you go..
d2dchat has quit [Remote host closed the connection]
<waxjar> indeed. no more Foo = Class.new Bar :D
<waxjar> although i kinda like that
<xybre> platzhirsch: thats pretty cool, streamed parsing is super useful
<shevy> that so reminds me of
<shevy> (1) have a good idea
<xybre> havenwood: the problem is that def and class are syntax, not methods with sugar :/
<shevy> (2) ???
<shevy> (3) profit!
kayloos has quit [Remote host closed the connection]
pragmaticivan has left #ruby ["Leaving..."]
<platzhirsch> xybre: I will use json-stream at least for my case now. I somehow intelligently thought I should store the metadata along with my 100MB JSON dump files and they are at the beginning of the JSON, so instead of consuming all the time to parse the object only to read 3 values at the beginning I can stop the parsing after I get these
Underbyte has quit [Quit: Leaving...]
<platzhirsch> shevy: ah from the StackExchange turned 5 blog post :)
asobrasil has left #ruby [#ruby]
KobraKao has joined #ruby
butblack has joined #ruby
<havenwood> xybre: yeah, i wouldn't know it would entail to structure syntax to accommodate, not easy like a method
<shevy> yeah
artmann_ has joined #ruby
<shevy> I like that picture... it's how I feel right now...
eliasp has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
forced_request has joined #ruby
<shevy> good idea... know where to stop... a million years work in between those steps before I can profit
artmann has quit [Quit: No Ping reply in 180 seconds.]
cody-- has quit [Quit: derp]
eliasp has joined #ruby
rehat has quit [Remote host closed the connection]
<xybre> havenwood: ruby's parser is nightmarish
kaspergrubbe has joined #ruby
tziOm has quit [Remote host closed the connection]
cody-- has joined #ruby
mikeric has joined #ruby
theRoUS has quit [Ping timeout: 260 seconds]
yekta has quit [Quit: yekta]
<platzhirsch> xybre: I have heard that, but besides its slow, anything else?
burlyscudd has joined #ruby
cj3kim has quit [Remote host closed the connection]
kilophoton has joined #ruby
baordog_ has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130814063812]]
<xybre> platzhirsch: the problem is that its so large and poorly defined that its difficult to make changes to it.
kayloos has joined #ruby
mayday_jay has joined #ruby
ryannielson has quit [Quit: ryannielson]
_maes_ has joined #ruby
alex__c2022 has joined #ruby
Timmy_ has joined #ruby
x1337807x has joined #ruby
wmoxam has quit [Ping timeout: 245 seconds]
siwica has joined #ruby
Zai00 has joined #ruby
siwica has quit [Client Quit]
devoldmx3 has joined #ruby
BillCriswell has quit [Remote host closed the connection]
linduxed has quit [Ping timeout: 248 seconds]
yfeldblum has joined #ruby
failshell has quit [Ping timeout: 248 seconds]
bean has quit [Quit: Textual IRC Client: www.textualapp.com]
Rym_ has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
devoldmx has quit [Ping timeout: 264 seconds]
jaimef has quit [Excess Flood]
<platzhirsch> a shame :-/
sailias has joined #ruby
kpshek has quit []
Dreamer3 has joined #ruby
quoin has quit [Remote host closed the connection]
jmccune has quit [Ping timeout: 245 seconds]
elux has quit [Quit: Leaving...]
jaimef has joined #ruby
rhys_ has quit [Quit: Leaving]
quoin has joined #ruby
peregrine81 has quit [Ping timeout: 260 seconds]
rins has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
Zai00 has quit [Quit: Zai00]
Naoe-Kanno has quit [Ping timeout: 245 seconds]
Teddy2steper has quit [Remote host closed the connection]
Criztian has joined #ruby
sailias has quit [Ping timeout: 245 seconds]
coaster has joined #ruby
SHyx0rmZ has joined #ruby
TheRealPygo is now known as pygospa
<platzhirsch> xybre: have you ever used json-stream?
m8 has quit [Quit: Sto andando via]
jmccune has joined #ruby
jmccune has quit [Changing host]
jmccune has joined #ruby
kindjal has quit [Quit: Computer has gone to sleep.]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
dmiller_ has joined #ruby
Rym has joined #ruby
Rym_ has quit [Ping timeout: 240 seconds]
pygospa has quit [Disconnected by services]
pygospa has joined #ruby
dmiller_ has quit [Ping timeout: 248 seconds]
jerius has quit [Ping timeout: 245 seconds]
<a1ph4g33k> woot! pull request for my gruff patch submitted.
gemmy has quit [Quit: Lost terminal]
localredhead has quit [Ping timeout: 245 seconds]
DefV has quit [Ping timeout: 248 seconds]
cody-- has quit [Quit: derp]
maletor has quit [Quit: Computer has gone to sleep.]
jefflyne3 has quit [Ping timeout: 245 seconds]
DefV has joined #ruby
danshultz has joined #ruby
Timmy_ has left #ruby [#ruby]
allaire has quit []
<xybre> platzhirsch: I don't recall, tbh :)
jds_ has quit [Remote host closed the connection]
<platzhirsch> So I wonder how to serve such a stream based JSON parser, I can define what happens if you hit the start of an object, the end, a key, a value etc.
jibi has quit [Quit: .]
<platzhirsch> I would like to stop the parsing after I get this and that value, but it seems that does not work with this parser, as there is no close method or something alike that could be called inside an event
kaspergrubbe has quit [Remote host closed the connection]
__main__ has quit [Ping timeout: 246 seconds]
danshultz has quit [Remote host closed the connection]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 245 seconds]
__main__ has joined #ruby
maletor has joined #ruby
ewnd9 has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
alexju_ has quit [Remote host closed the connection]
dagnachew has joined #ruby
x1337807x has joined #ruby
<agent_white> If I have an 2d array (3x3 grid) of nil values, why calling does calling 'any?' return false?
sloucher has quit [Quit: sloucher]
workmad3 has quit [Ping timeout: 246 seconds]
threesome has quit [Ping timeout: 264 seconds]
Astral_ has quit [Ping timeout: 276 seconds]
<bnagy> on the outer array? It doesn't
<agent_white> [[nil,nil,nil],[nil,nil,nil],[nil,nil,nil]].empty? returns false
<bnagy> sure, it's not empty
<agent_white> Because it is full of arrays?
<bnagy> yep
<agent_white> Ahhh I see... so I need to iterate through them to compare the entire outer array?
blackmesa has quit [Ping timeout: 240 seconds]
kvirani has quit [Remote host closed the connection]
dodosan has quit [Remote host closed the connection]
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kvirani has joined #ruby
<bnagy> yeah, there's a matrix class as well
<agent_white> Don't tell me this now... :( I used Array.new(3) { Array.new(3) }
<bnagy> :>
sambao21 has quit [Quit: Computer has gone to sleep.]
obs has quit [Quit: Konversation terminated!]
<agent_white> Damn, well at least this tic-tac-toe is teaching quite a bit. Thanks for help!
butblack has quit [Quit: butblack]
Bira has joined #ruby
breakingthings has quit []
MrThePlague has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
kvirani has quit [Ping timeout: 276 seconds]
warefare22 has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
blueredturtle has joined #ruby
<platzhirsch> so this is how I stream parse my JSON to get my data https://gist.github.com/platzhirsch/929d94c2e21d298f113f this is everything but robust.. just works for now, I don't like it
sepp2k has joined #ruby
warefare has quit [Ping timeout: 264 seconds]
volty has quit [Quit: Konversation terminated!]
elux has joined #ruby
prime has quit [Quit: ZNC - http://znc.in]
jbpros has joined #ruby
prime has joined #ruby
nomenkun has joined #ruby
jlast has quit [Remote host closed the connection]
threesome has joined #ruby
carlyle has quit [Remote host closed the connection]
Cyrus has joined #ruby
jbpros has quit [Client Quit]
coderhs has quit [Ping timeout: 246 seconds]
m00nlight has joined #ruby
emergion has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
<xybre> platzhirsch: can you just call break?
CpuID2 has joined #ruby
<xybre> In the parse loop, I mean
<platzhirsch> xybre: at least now it's a bit more robust with preserving a pick state https://gist.github.com/platzhirsch/929d94c2e21d298f113f
<CpuID2> hey ppls - http://pastebin.com/cy7cp5SF
<CpuID2> can anyone give me any suggestions to where i went wrong? error at the bottom
<platzhirsch> xybre: that would be the natural choice, unfortunately there is no such method in the "API" :D
<xybre> platzhirsch: its not a method, its Ruby syntax
<platzhirsch> oh
<platzhirsch> xybre: you mean inside the block?
<xybre> platzhirsch: yep
<platzhirsch> ah I was looking for this before
alekst has quit [Quit: Computer has gone to sleep.]
<platzhirsch> so break is the keywod to break out of blocks, I forgot that
* xybre nods
nomenkun has quit [Ping timeout: 268 seconds]
wmoxam has joined #ruby
devoldmx has joined #ruby
<platzhirsch> xybre: so the difference would be that I let the Parser parse the file instead of manually pushing chars into it
puffed26 has quit [Quit: puffed26]
emergion has quit [Client Quit]
inverting12 has joined #ruby
cody-- has joined #ruby
devoldmx3 has quit [Ping timeout: 248 seconds]
visof has quit [Ping timeout: 246 seconds]
cody-- has quit [Client Quit]
<xybre> platzhirsch: ideally :)
geggam has quit [Remote host closed the connection]
kindjal has joined #ruby
<platzhirsch> haha that is not even possible, the moment where I decide to instantiate the parser for defining custom event handlers I can only serve the parser by using the << method, just great :P
kindjal has quit [Client Quit]
VTLob has quit [Quit: VTLob]
burlyscudd has quit [Quit: Leaving.]
kaspergrubbe has joined #ruby
yaymukund has quit [Ping timeout: 276 seconds]
inverting12 has quit [Ping timeout: 268 seconds]
funburn has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
bjhaid has joined #ruby
greenrose has quit []
<CpuID2> no one? :) http://pastebin.com/cy7cp5SF
<bjhaid> Hi all, is it possible to use FIT (the framework that parses the type of tables used in cucumber scenarios) along with rspec
gstamp has joined #ruby
cj3kim has joined #ruby
anonymuse has quit [Remote host closed the connection]
butblack has joined #ruby
<CpuID2> ok i think ive deduced part of my issue
bookmage has quit [Remote host closed the connection]
<shevy> hmmm
<shevy> when I include a module... is it possible to have this module change some instance variables on the class that it is included, upon it being included? let me write a quick example...
oliver_ has quit [Remote host closed the connection]
<bnagy> that's what included is for, isn't it?
devoldmx3 has joined #ruby
inverting12 has joined #ruby
Criztian has quit [Remote host closed the connection]
<bjhaid> @CpuID2: rye_set.mkdir mkdir_restore_command
<bjhaid> that line
<bjhaid> rye_set is an integer
<bjhaid> and not whatever object you think it is
coderhs has joined #ruby
<CpuID2> yep just noticed that
<CpuID2> i just tried changing each_with_index to each
greenrose has joined #ruby
<CpuID2> and got rid of rye_set_instance_name
<shevy> bnagy hmm perhaps I am using include wrong, I never thought I could change an instance variable upon an include event
<CpuID2> turns out rye_set is now an array
cj3kim has quit [Ping timeout: 245 seconds]
<CpuID2> first index is the name, second index is the Rye::Set object itself
devoldmx has quit [Ping timeout: 240 seconds]
T_T has quit [Remote host closed the connection]
<CpuID2> just confirmed it by going rye_set[1].mkdir
<CpuID2> and it works
<CpuID2> :P
<CpuID2> i think theres some scoping issues there with my hash of sets etc, going to dig deeper
RORgasm has quit [Remote host closed the connection]
nisstyre has quit [Quit: Leaving]
<CpuID2> thanks bjhaid
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elux has quit [Quit: Leaving...]
ewnd9 has quit [Ping timeout: 264 seconds]
prime has quit [Remote host closed the connection]
<bjhaid> CpuID2: I don't know much about what you are doing but from each_with_index documentation http://apidock.com/ruby/Enumerable/each_with_index rye_set should be the index
corpuscle has quit [Quit: WeeChat 0.4.1]
zeade has quit [Quit: Leaving.]
mando has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
emergion has joined #ruby
julweber has joined #ruby
mlpinit has quit [Remote host closed the connection]
Nenor has quit [Quit: Nenor]
carlyle has joined #ruby
fredjean has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
vlad_starkov has quit [Ping timeout: 264 seconds]
snovak has quit [Remote host closed the connection]
Trazira is now known as Galgorth
rcosta_ has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
T_T has joined #ruby
Spami has joined #ruby
tvw has quit []
ismlages has quit [Read error: Connection reset by peer]
wmoxam has quit [Ping timeout: 245 seconds]
alexju has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
jp- has joined #ruby
mando has joined #ruby
x1337807x has joined #ruby
DonRichie has quit [Quit: Verlassend]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
carlyle has quit [Ping timeout: 245 seconds]
KobraKao has quit [Quit: Saindo]
d2dchat has joined #ruby
zeade has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
rcosta has joined #ruby
io_syl has quit [Ping timeout: 246 seconds]
dankest has quit [Read error: Connection reset by peer]
dankest has joined #ruby
mdst_ has joined #ruby
kindjal has joined #ruby
bean has joined #ruby
Dan_ has joined #ruby
mando has quit [Ping timeout: 246 seconds]
Dan_ is now known as Guest93954
x1337807x has quit [Client Quit]
lfox has quit [Quit: ZZZzzz…]
yekta has joined #ruby
mdst has quit [Ping timeout: 264 seconds]
yekta has quit [Client Quit]
dankest has quit [Ping timeout: 245 seconds]
enebo has quit [Quit: enebo]
Guest93954 has quit [Quit: Peace]
kayloos has quit [Remote host closed the connection]
<shevy> hmm so we have Module#inherited
<shevy> nope
<shevy> Module#included
threesome has quit [Ping timeout: 264 seconds]
MrZYX is now known as MrZYX|off
dankest has joined #ruby
DrShoggoth has quit [Ping timeout: 260 seconds]
Tuxist has joined #ruby
nadirvardar has joined #ruby
predator117 has quit [Ping timeout: 246 seconds]
reset has joined #ruby
clov3r has joined #ruby
danshultz has joined #ruby
deception has joined #ruby
Teddy2steper has joined #ruby
predator117 has joined #ruby
dkamioka has quit [Remote host closed the connection]
zarubin has joined #ruby
cody-- has joined #ruby
<Ox6abe> ok guys, i need a quick run down on ||= operator
rcosta has quit [Remote host closed the connection]
linduxed has joined #ruby
danshultz has quit [Ping timeout: 264 seconds]
wmoxam has joined #ruby
dmiller_ has joined #ruby
<bnagy> >> @a ||= 2; p @a; @a ||= 3; p @a
<eval-in> bnagy => 2 ... (https://eval.in/48829)
<Ox6abe> I am trying to clean this up a bit
<Ox6abe> if letters[char.to_sym].nil?
<Ox6abe> letters[char.to_sym] = 1
<Ox6abe> else
wmoxam has quit [Client Quit]
<Ox6abe> letters[char.to_sym] += 1
<Ox6abe> end
<havenwood> Ox6abe: Think of it as: a || a = b
<a1ph4g33k> is letters a hash ?
<Ox6abe> yes
platzhirsch has left #ruby [#ruby]
mikeric has quit []
dodosan has joined #ruby
<clov3r> hey #ruby, point me towards a good library for building HTML (DOM) with ruby?
<clov3r> i've got all my data in JSON, currently injecting it into the page with clientside js
<clov3r> but what i'd rather do is output to a static file
<a1ph4g33k> Ox6abe: define letters as Hash.new( 0 )
<a1ph4g33k> then you only have to deal with += 1
deception has quit [Remote host closed the connection]
<Ox6abe> ahh yes, very nice
Teddy2steper has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
alexju has joined #ruby
<shevy> cool... I got it to work with object.extend MyModule
butblack has left #ruby [#ruby]
<havenwood> clov3r: Like Nokogiri?
kaspergrubbe has quit [Remote host closed the connection]
<a1ph4g33k> but ... to answer the original question ... you could define your own equal_or function ... it basically says ... if .nil? assign value else, leave it alone.
kindjal has quit [Quit: Computer has gone to sleep.]
snovak has joined #ruby
<shevy> anyone could look at http://pastie.org/pastes/8331680/text ? the .extend functionality works... I wonder if include could offer the same functionality
<bnagy> if falsey, not if nil?
<shevy> the output of that code is:
<shevy> #<Foo:0xa004e20 @test="test 1">
<shevy> #<Foo:0xa004e20 @test="test 2">
<Ox6abe> a1ph4g33k: I like the original better, thank you
<a1ph4g33k> bnagy: true ... thank you for the correction.