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?
<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
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]
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?
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]
<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 :)
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?
<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]
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]
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]
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 :)
<|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]
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.
<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 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
<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
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
<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
<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]
<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]
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]
<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
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)
<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?
<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>
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
<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
<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...
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]
<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
<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]
<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.