<jhass>
mwlang: it's probably less of an effort to rewrite the whole thing on rails 4.1 on ruby 2.1
<mwlang>
jhass: am going to.
<mwlang>
just got the contract, though.
<mwlang>
gotta get them stablized.
<zenspider>
jhass: that's laughable
hellome has joined #ruby
<jhass>
I run archlinux. My tolerance for stuff < 2010 is low :P
Spami has quit [Quit: This computer has gone to sleep]
<zenspider>
mwlang: do the tracer bit in rails console with chars undef'd
Phrogz_ has joined #ruby
<mwlang>
I’m actually impressed with this app though. Rails 1.2, a couple 100 model classes, several thousand views, 10 million products in their database and its going pretty strong.
<zenspider>
the problem is you're changing too many variables at once
freezey has quit [Ping timeout: 260 seconds]
chamblin has quit [Ping timeout: 245 seconds]
<zenspider>
windows -> linux + ruby 1.8.6 -> 1.8.7 = disaster
cndiv has quit [Ping timeout: 260 seconds]
<mwlang>
zenspider: yeah, true. I figured 1.8.7 was safe, but I may need to back up and get 1.8.6 environment working for real.
<zenspider>
but 1.8.6 was a pissy bitch when it came to compiling
<zenspider>
if you can get it compiled, great
<mwlang>
zenspider: I can get it compiled.
chiramiso has quit [Ping timeout: 272 seconds]
<zenspider>
but you might need an old linux :)
<mwlang>
I *can’t* get all the gems the app needs compiled.
Insanity133 has joined #ruby
<zenspider>
that too
<mwlang>
namely the odbc stuff.
Takle has joined #ruby
<mwlang>
I can get all the gems working on 1.8.7
<mwlang>
but, that’s a crapshoot as its turning out.
niklasb_ has joined #ruby
<mwlang>
oh, and phusion passenger only goes back to 1.8.7 and I really, really don’t want to get back into the mongrel/monit nightmare.
thejamespinto has quit [Read error: Connection reset by peer]
odlox has joined #ruby
odlox has quit [Max SendQ exceeded]
Insanity133 has quit [Ping timeout: 244 seconds]
kristofferR has joined #ruby
<zenspider>
that's in a rails console with bootstrap done?
thejamespinto has joined #ruby
odlox has joined #ruby
JoshGlzBrk has quit [Read error: Connection reset by peer]
<mwlang>
yup.
xuing has left #ruby [#ruby]
oso96_2000 is now known as oso|away
Takle has quit [Ping timeout: 250 seconds]
<zenspider>
huh. I'm a bit stumped then
<zenspider>
maybe the map(&:chr) is the best route?
<mwlang>
you know what, let me make sure the boot, environment, etc. scripts are solid.
<mwlang>
I still suspect everything’s not bootstrapped properly.
justinmburrous has joined #ruby
<zenspider>
*nod*
blackmesa has quit [Quit: WeeChat 1.0]
<mwlang>
Ok, reading 1.8.7 docs, it looks like String#chars actually does return Enumerable, but all the ActiveSupport code is expecting an array.
willgo has quit [Quit:]
<mwlang>
so I ought to be able to remap it like you showed above…. with real_char.to_a
overdamped has joined #ruby
tylersmith has quit [Remote host closed the connection]
RichardLitt has quit [Quit: RichardLitt]
<mwlang>
yeah, now that I’m in 1.8.7, class String; alias :real_chars :chars; def chars; bytes.map(&:chr); end; end; "blah".chars => ["b", "l", "a", "h"]
Ankhers has quit [Ping timeout: 264 seconds]
<mwlang>
if *only* I had a solid unit test suite on the app. :-p
hooper has quit [Ping timeout: 260 seconds]
jasooon has joined #ruby
jasooon_ has joined #ruby
Trynemjoel has joined #ruby
Trynemjoel has quit [Client Quit]
j_mcnally has quit [Ping timeout: 272 seconds]
lolmaus has quit [Ping timeout: 240 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thejamespinto has quit [Read error: Connection reset by peer]
thejamespinto has joined #ruby
havenwood has joined #ruby
solo_ has joined #ruby
Trynemjoel has joined #ruby
jasooon has quit [Ping timeout: 260 seconds]
jasooon_ has quit [Ping timeout: 245 seconds]
jamfade has joined #ruby
Spami has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
Georg3 has quit [Quit: Computer has gone to sleep.]
<havenwood>
overdamped: just a random selection, but maybe take a look at jeremyevans/roda, puma/puma, celluloid/reel, patriciomacadden/hobbit, postmodern/spidr
Georg3 has joined #ruby
kristofferR has quit [Read error: Connection reset by peer]
Georg3 has quit [Client Quit]
kristofferR has joined #ruby
<mwlang>
zenspider: LOL! I’ll send you 3 beers
<mwlang>
Terrapin Rye Cubed rocks, btw.
odlox has quit []
<overdamped>
havenwood: yeah., I figured, but one could hope right :)
<overdamped>
I'll take a look at those. '
charliesome has joined #ruby
<rubie>
hi all, is there anyway to evaluate only the letters in this array? ["+", "d", "+", "3", "+", "s", "+"]
fabrice31 has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
<havenwood>
rubie: letters like alpha?
<rubie>
like, if the letter has a + before and after it will return true
jehosogo has quit [Read error: Connection reset by peer]
klmlfl has joined #ruby
segmond has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
echevemaster has quit [Quit: Leaving]
Hobogrammer has quit [Ping timeout: 272 seconds]
jonmorehouse has quit [Ping timeout: 272 seconds]
fgo has quit [Remote host closed the connection]
jonmorehouse has joined #ruby
wjimenez5271 has quit [Ping timeout: 260 seconds]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor has joined #ruby
charliesome has joined #ruby
klmlfl has quit [Read error: Connection reset by peer]
klmlfl has joined #ruby
Georg3 has joined #ruby
awc737 has joined #ruby
awc737 has quit [Max SendQ exceeded]
hackeron has quit [Ping timeout: 245 seconds]
mferrier has joined #ruby
hackeron has joined #ruby
thomasxie has joined #ruby
gsd has joined #ruby
fabrice31 has joined #ruby
jasooon has joined #ruby
jasooon_ has joined #ruby
<rubie>
ran it threw my console and it worked, must be an issue with the iste
Georg3 has quit [Ping timeout: 260 seconds]
wallerdev has joined #ruby
gccostabr has joined #ruby
gsd has quit [Client Quit]
jasooon_ has quit [Client Quit]
nonmadden has joined #ruby
jonmorehouse has quit [Ping timeout: 244 seconds]
gsd has joined #ruby
ghr has joined #ruby
mikeg has quit [Ping timeout: 258 seconds]
jasooon has quit [Quit: leaving]
fabrice31 has quit [Ping timeout: 272 seconds]
yetanotherdave has joined #ruby
nonmadden has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 272 seconds]
bwilson has quit [Quit: bwilson]
jamz has quit []
thejamespinto has quit [Read error: Connection reset by peer]
thejamespinto has joined #ruby
awc737 has joined #ruby
krz has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
gccostabr has joined #ruby
icebourg has joined #ruby
icebourg has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gkra has quit [Remote host closed the connection]
icebourg_ has joined #ruby
icebourg has quit [Read error: Connection reset by peer]
fgo has joined #ruby
Killerkeksdose has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
Killerkeksdose has joined #ruby
comma8 has quit [Remote host closed the connection]
fgo has quit [Read error: No route to host]
fgo has joined #ruby
codeFiend has joined #ruby
codeFiend has quit [Client Quit]
klmlfl has quit [Read error: Connection reset by peer]
svexican has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
reset has quit [Ping timeout: 272 seconds]
klmlfl has joined #ruby
klmlfl has quit [Remote host closed the connection]
russt has joined #ruby
klmlfl has joined #ruby
RichardLitt has quit [Quit: RichardLitt]
skammer has joined #ruby
nhhagen has quit [Ping timeout: 244 seconds]
magic has joined #ruby
narcan has joined #ruby
solo_ has quit [Quit: Leaving...]
havenwood has quit [Remote host closed the connection]
svexican has left #ruby ["WeeChat 1.0.1"]
havenwood has joined #ruby
klmlfl has quit [Ping timeout: 272 seconds]
skammer has quit [Ping timeout: 260 seconds]
shinobi_one has joined #ruby
sevenseacat has joined #ruby
arescorpio has joined #ruby
emocakes has quit []
havenwood has quit [Ping timeout: 264 seconds]
chiramiso has joined #ruby
shinobi_one has quit [Ping timeout: 244 seconds]
braincra- has quit [Quit: bye bye]
gsd has joined #ruby
GluonQuark has quit [Quit: Leaving]
chiramiso has quit [Ping timeout: 260 seconds]
braincrash has joined #ruby
havenwood has joined #ruby
gsd has quit [Ping timeout: 272 seconds]
Phrogz_ has quit [Remote host closed the connection]
dnordstrom has joined #ruby
Phrogz_ has joined #ruby
zlude has joined #ruby
bmurt has quit []
<zlude>
Hello guys! I'm learning ruby on rails, and in my source of study i see using capyraba alto, its used in real world? Some projects uses just capybara or capybara + rspec for example?
<sevenseacat>
you cant use capybara by itself
krisquigley has joined #ruby
<sevenseacat>
most projects that do integration testing would use rspec and capybara both (or minitest and capybara)
<zlude>
and tests arw writen after or before code application?
<sevenseacat>
generally before is better.
<zlude>
Becauase i see more code of inregration test than ruby code in views, models and controllers
<zlude>
Its funny haha
<sevenseacat>
...okay?
mary5030 has joined #ruby
iamjarvo has joined #ruby
bbloom has quit [Quit: Computer has gone to sleep.]
<zlude>
Thank you! Recommend something for me? Im doing first contacts with rails. Im creating a todo list app with autentication, really trying, :)
krisquigley has quit [Ping timeout: 245 seconds]
jasooon has joined #ruby
simplyaubs has joined #ruby
mferrier has quit [Remote host closed the connection]
simplyaubs has quit [Client Quit]
mlm_ has joined #ruby
jobewan has joined #ruby
Cache_Money has joined #ruby
bmurt has joined #ruby
russt has quit [Quit: russt]
b00stfr3ak has quit [Ping timeout: 272 seconds]
russt has joined #ruby
justinmburrous has quit [Remote host closed the connection]
zlude has quit [Remote host closed the connection]
flowerhack has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thisislulu has quit [Ping timeout: 272 seconds]
mastr_bennett[x] has joined #ruby
justinmburrous has joined #ruby
j_mcnally has joined #ruby
mlm_ has left #ruby [#ruby]
patrick99e99 has joined #ruby
x1337807x has joined #ruby
gsd has joined #ruby
ghr has joined #ruby
segfalt has quit [Quit: Connection closed for inactivity]
jonr22 has joined #ruby
jonr22 has quit [Client Quit]
mikeg has joined #ruby
mary5030 has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 258 seconds]
<pontiki>
hey hi
sargas has quit [Quit: Leaving]
freerobby has quit [Quit: Leaving.]
aspires has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
thisislulu has joined #ruby
duncannz has quit [Remote host closed the connection]
Mia has joined #ruby
iamdoo2 has joined #ruby
duncannz has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thomasxie has quit [Remote host closed the connection]
goodenough has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
klmlfl has joined #ruby
Insanity133 has joined #ruby
flowerhack has quit [Read error: Connection reset by peer]
bmurt has quit []
flowerhack has joined #ruby
jasooon has quit [Ping timeout: 245 seconds]
flowerhack has quit [Read error: Connection reset by peer]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
flowerhack has joined #ruby
nonmadden has joined #ruby
Insanity133 has quit [Ping timeout: 272 seconds]
msmith_ has quit [Remote host closed the connection]
Akagi201 has quit [Read error: Connection reset by peer]
Akagi201 has joined #ruby
ghr has joined #ruby
sgen has quit [Quit: Leaving]
<robert_>
hm, so I'm trying to pass an arbitrary format/argument list pair to printf; only it doesn't want to use my *arg_list as the arguments list; it seems to only want to print the array itself and not use the contents of the array for arguments. :/
dawkirst has quit [Remote host closed the connection]
<robert_>
Hanmac: Uhhh.. I'm quite deep into this.. It involves several Thread::Queues and lots of marshaling data between threads so that it's picked up by a singular logging thread.. <_<
hmsimha_ has joined #ruby
mclosson has quit [Ping timeout: 272 seconds]
<Hanmac>
robert_: hm i am currently only interestend in the printf part
caveat- has joined #ruby
hmsimha has quit [Ping timeout: 240 seconds]
<robert_>
yeah. printf part gets called by the eventlog's.. event loop.. creative, I know. :P
hmsimha_ has quit [Read error: Connection reset by peer]
shinobi_one has joined #ruby
_KaszpiR_ has quit [Read error: Connection reset by peer]
_KaszpiR_ has joined #ruby
<robert_>
I should be able to extract it, though.
<Hanmac>
hey, better than with me where the most common variable name is tmp ,P
havenwood has quit [Remote host closed the connection]
Tiberias has joined #ruby
<robert_>
:p
havenwood has joined #ruby
<robert_>
actually, the thread is eventlog_thread :p
sinkensabe has quit [Remote host closed the connection]
Akuma has quit [Ping timeout: 245 seconds]
hiyosi has joined #ruby
tylersmith has quit [Remote host closed the connection]
Akuma has joined #ruby
shinobi_one has quit [Ping timeout: 244 seconds]
tylersmith has joined #ruby
jontmorehouse has quit [Ping timeout: 260 seconds]
havenwood has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
sprihodko has joined #ruby
abuzze has quit [Ping timeout: 245 seconds]
andikr has joined #ruby
tylersmith has quit [Ping timeout: 246 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
larsam has joined #ruby
Tiberias has quit [Quit: Tiberias]
Advocation has quit [Quit: Advocation]
<robert_>
Hanmac: It works on its own.. Hmm.
<Hanmac>
yeah ... you want to work on a problem ... and then it does disappear .. ;P
<Hanmac>
but beware, maybe it has "phasing" so it does appear again if you do not look at it ;P
<robert_>
Hanmac, "Hey.. My bug went away!" :p
caveat- has quit [Ping timeout: 272 seconds]
<robert_>
also, what's with all the winking at me? :p
nonmadden has quit [Read error: Connection reset by peer]
justinmburrous has quit [Remote host closed the connection]
duncannz has joined #ruby
nonmadden has joined #ruby
thisislulu has quit [Ping timeout: 272 seconds]
jottr_ has quit [Ping timeout: 260 seconds]
<Hanmac>
i thought you might get that "phasing" is a magic reference xD
apeiros has joined #ruby
<robert_>
I meant both times. :p
alem0lars has joined #ruby
<robert_>
anyway, yeah. "Scotty, very funny.. Now beam back my bug!"
<robert_>
:p
User458764 has quit [Ping timeout: 260 seconds]
<Hanmac>
we need to wait 20 minutes until wesley find be bug under his chair
abuzze has joined #ruby
mityaz has joined #ruby
caveat- has joined #ruby
sk87 has joined #ruby
justinmburrous has joined #ruby
mikeg has quit [Ping timeout: 260 seconds]
enali has joined #ruby
cndiv has joined #ruby
ghr has joined #ruby
patrick99e99 has joined #ruby
yetanotherdave has quit [Ping timeout: 260 seconds]
Axy has joined #ruby
mkaesz has joined #ruby
tectonic has quit []
Axy has left #ruby [#ruby]
noop has joined #ruby
davasaurous has quit [Ping timeout: 260 seconds]
tskogberg has quit [Ping timeout: 272 seconds]
wpp has joined #ruby
LekeFly has joined #ruby
dangerousdave has joined #ruby
Takle has joined #ruby
tskogberg has joined #ruby
yetanotherdave has joined #ruby
yetanotherdave has quit [Client Quit]
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
patrick99e99 has quit [Ping timeout: 258 seconds]
andrewlio has joined #ruby
jasooon has joined #ruby
bayed has joined #ruby
Wolland_ has quit [Remote host closed the connection]
<apeiros>
"ruby is process intensive" wrong. your program is process intensive.
skammer has quit [Ping timeout: 258 seconds]
<apeiros>
but yes, assuming sane code, a ruby implementation will use more resources than say a C implementation, for the same task
<hilake>
less efficient
<arcsky>
apeiros: i got problem with ruby in following programs , Snorby, Banyard2, Metasploit
<arcsky>
dont know why dont write in perl or python
caveat- has joined #ruby
<hilake>
metasploit may be very CPU intensive
<apeiros>
arcsky: the code is out there, go ahead and rewrite it in your favorite language
<arcsky>
apeiros: sorry im not any coder
<apeiros>
arcsky: then STFU?
<arcsky>
apeiros: ok
<Hanmac>
apeiros: hihi i heard the main reason why the new windows version is callled "windows 10" and not "windows 9" ;P because some programs still has version.begin_with?("windows 9") to check for 95 and 98 ;P
<apeiros>
Hanmac: yeah, heard that too
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<apeiros>
19 and 16 year old code interfering with your software release… not good :)
<Hanmac>
the other reason i heard is that "windows 9" spoken "windows Nine" does sound too much after german "Windows, Nein!" or in english: "Windows, No!" ;PP
Spami has quit [Quit: This computer has gone to sleep]
carraroj has joined #ruby
<sevenseacat>
self.class ?
<krz>
that retertns the class name
<sevenseacat>
what class name? youre not in a class
<krz>
twitter = Twitter.new(...)
<krz>
self.class.name in retweets, returns Twitter
havenwood has quit [Ping timeout: 264 seconds]
sinkensabe has joined #ruby
<sevenseacat>
but,,,, nvm
<sevenseacat>
forgot who was talking to
dumdedum has joined #ruby
enali has joined #ruby
akkad has quit [Quit: Emacs must have died]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Advocation has joined #ruby
jack_rabbit has joined #ruby
dx7 has joined #ruby
DaniG2k_ is now known as DaniG2k
Advocation has quit [Client Quit]
Morkel has quit [Quit: Morkel]
workmad3 has joined #ruby
charliesome has quit [Quit: zzz]
dx7 has quit [Ping timeout: 272 seconds]
hilake is now known as YOURNEWNICK
Deejay_ has joined #ruby
YOURNEWNICK is now known as hilake
jack_rabbit has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 272 seconds]
WormDr1nk has joined #ruby
tvw has joined #ruby
doev has joined #ruby
jontmorehouse has joined #ruby
sepp2k has joined #ruby
Mso150_a has quit [Ping timeout: 258 seconds]
abdulsattar has quit [Ping timeout: 246 seconds]
ephemerian has joined #ruby
joast has quit [Ping timeout: 258 seconds]
justinmburrous has quit [Remote host closed the connection]
jhass|off has quit [Ping timeout: 250 seconds]
jasooon has joined #ruby
Spami has joined #ruby
jontmorehouse has quit [Ping timeout: 260 seconds]
tylersmith has joined #ruby
mikepack has quit [Remote host closed the connection]
moritzs has joined #ruby
jobewan has quit [Quit: Leaving]
dawkirst has quit [Remote host closed the connection]
dawkirst has joined #ruby
mikepack has joined #ruby
dangerousdave has joined #ruby
jasooon has quit [Ping timeout: 245 seconds]
Aaaal has joined #ruby
pierre1_ has joined #ruby
caveat- has quit [Ping timeout: 260 seconds]
tylersmith has quit [Ping timeout: 240 seconds]
<krz>
what an odd response
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<krz>
must be high again
root3d has joined #ruby
root3d has joined #ruby
root3d has quit [Changing host]
mikepack has quit [Remote host closed the connection]
awc737 has joined #ruby
caveat- has joined #ruby
awc737 has quit [Max SendQ exceeded]
* apeiros
senses animosities
JCOLE has joined #ruby
* sevenseacat
goes back to poking at sybase
ndrei has joined #ruby
* apeiros
hands sevenseacat a stick
* apeiros
goes back at parsing gov healthcare data
Takle has quit [Remote host closed the connection]
jhass|off has joined #ruby
jhass|off is now known as jhass
noop has quit [Read error: Connection reset by peer]
enali has quit [Ping timeout: 260 seconds]
kaspertidemann has joined #ruby
msmith has joined #ruby
<shevy>
lol
<shevy>
tobiasvl I don't think the suggestion itself is real - that UK dude just runs an anti-EU campaign, so anything he can do to get away with super old nationalism he'll happily do
<tobiasvl>
david cameron runs an anti-EU campaign?
Suchit_ has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
alex88 has joined #ruby
<shevy>
yeah
<tobiasvl>
he's not a federalist for sure
<shevy>
"we'll leave the EU!"
<shevy>
he runs that loop {} all the time
nfk has quit [Ping timeout: 246 seconds]
<tobiasvl>
yeah maybe so
Takle has joined #ruby
<existensil>
Threats of succession and the undeserved belief they are better than others in the union. Sounds like UK is a lot like the Texas of EU.
msmith has quit [Ping timeout: 245 seconds]
<tobiasvl>
secession*
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tobiasvl>
existensil: haha yeah
<tobiasvl>
what do I know, I'm not even in the EU
skammer has joined #ruby
<tobiasvl>
we're like … the canada of the EU
workmad3 has quit [Ping timeout: 260 seconds]
<existensil>
where is that?
<tobiasvl>
Norway
enali has joined #ruby
emocakes has joined #ruby
Suchit_ has quit [Client Quit]
workmad3 has joined #ruby
<existensil>
ah, yeah, oil rich and above it all in in geography and geopolitics, and a government generally regarded as non-corrupt and fair. Does sound like Canada.
<Hanmac>
shevy & tobiasvl there was also a comment that the commiter says: "it it isnt that all conservatives are dumb in general, but it seems hat dumb persons are conservative in general" ;P
Suchit_ has joined #ruby
emocakes has quit [Client Quit]
<shevy>
existensil well the folks from norway speak better english than the french part of Canada does!
<tobiasvl>
existensil: exactly! and a lot of free space between people
<banister>
apeiros yeah it's a known bug, ryanf- pinge dhim about it
kyb3r_ has quit [Read error: Connection reset by peer]
stef_204 has joined #ruby
cherwin has quit [Ping timeout: 250 seconds]
lkba has quit [Ping timeout: 272 seconds]
sevenseacat has quit [Quit: Leaving.]
<banister>
apeiros he's trying to be too clever, he's doing an automatic 'next'
<banister>
which is't good IMO
emocakes has joined #ruby
enali has quit [Read error: Connection reset by peer]
LiohAu_ has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cherwin has joined #ruby
cherwin has quit [Max SendQ exceeded]
caveat- has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Quit: Lost terminal]
cherwin has joined #ruby
<pontiki>
is there a workaround for that?
AFKGeek has joined #ruby
<apeiros>
I threw byebug out of the gemfile
<workmad3>
heh
<apeiros>
I don't need a debugger much anyway.
<Hanmac>
most of my stuff cant be debugged anyway ;P
Suchit_ has joined #ruby
<flughafen>
why can't most stuff be debugged?
Suchit_ has quit [Client Quit]
LiohAu_ has quit [Ping timeout: 260 seconds]
<workmad3>
Hanmac: your stuff can't be debugged by internal ruby debuggers... I bet you could achieve breakpoint debuggers if you built your native extensions with debug symbols and attached something like gdb :P
<Hanmac>
if somesthing is wrong with my stuff its eigther a seqfault or a bad pointer or a "double free" ... that cant be easy debugged with a ruby debugger ...
caveat- has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
lkba has joined #ruby
<Hanmac>
workmad3: hm i do add debug symbols as far as i know (i can see nice backtraces ) but i dont work with breakpoints at that case, ... but last time i did worked well with gdb searching though the addresses of my stuff, searching for a doublefree ...
charliesome has joined #ruby
jontmorehouse has joined #ruby
sk87 has joined #ruby
deavid has joined #ruby
sandelius has joined #ruby
pgmcgee has quit [Ping timeout: 246 seconds]
jlebrech has joined #ruby
justinmburrous has quit [Remote host closed the connection]
<jlebrech>
is there a gem to convert ascii art boxes to ruby objects?
mercwithamouth has joined #ruby
pgmcgee has joined #ruby
jontmorehouse has quit [Ping timeout: 272 seconds]
root3d has quit [Ping timeout: 244 seconds]
gaussblurinc1 has joined #ruby
<shevy>
lol
<shevy>
I nominate this for the funniest question
<gregf_>
heh
caveat- has quit [Ping timeout: 260 seconds]
<wasamasa>
jlebrech: sounds like a xy problem
* wasamasa
decides to be serious
jasooon has joined #ruby
kaspertidemann has quit []
<jlebrech>
wasamasa: i was just thinking if ascii boxes could be used as template
cocotton has quit [Remote host closed the connection]
jespada has joined #ruby
cocotton has joined #ruby
<jlebrech>
wasamasa: ok, if I have rectangles made in ascii, i want to interpret the acsii rectangles as Rect objects with x,y,w,h
cocotton has quit [Remote host closed the connection]
jasooon has quit [Ping timeout: 272 seconds]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
dbugger has quit [Quit: Leaving]
<wasamasa>
why do you want to do that?
cocotton has joined #ruby
<jlebrech>
just for fun haha
<wasamasa>
why do you even have ascii rectangles that "need" to be turned into something different
ndrei has joined #ruby
ta has joined #ruby
tylersmith has quit [Ping timeout: 260 seconds]
kaspergrubbe has quit [Remote host closed the connection]
<wasamasa>
there are better exercises
<jlebrech>
the thought was for a template that works for both the terminal and html
justinmburrous has joined #ruby
<wasamasa>
wat
jontmorehouse has quit [Ping timeout: 272 seconds]
<jlebrech>
say you have a framework you can dev and test fully in the terminal, and you can spice it up later with css for the web but it's all fully functional beforehand
<wasamasa>
so you actually have a problem
<jlebrech>
just a thought really
<wasamasa>
why not just take a ruby object and either turn it into html+css or ascii graphics depending on the frontend?
caveat- has quit [Ping timeout: 260 seconds]
<jlebrech>
maybe you're right
<wasamasa>
this is how every framework does it
<wasamasa>
why would you convert between lossy representations if you can just take an object and create the representation from that?
AlSquire has joined #ruby
evrei has quit []
<jlebrech>
i was thinking of a way to split form and function
<jlebrech>
and still have a visual representation of function
alem0lars has quit [Ping timeout: 258 seconds]
<wasamasa>
let the code speak
alem0lars_ has joined #ruby
haukur has joined #ruby
voodoofish has quit [Read error: Connection reset by peer]
emocakes has quit [Ping timeout: 272 seconds]
emocakes__ has joined #ruby
caveat- has joined #ruby
dawkirst has quit [Remote host closed the connection]
msmith has joined #ruby
root3d has joined #ruby
voodoofish has joined #ruby
Akagi201 has quit [Read error: No route to host]
Akagi201 has joined #ruby
bluOxigen has joined #ruby
msmith has quit [Ping timeout: 260 seconds]
skammer has joined #ruby
blueOxigen has quit [Ping timeout: 272 seconds]
_lucid_ has quit [Quit: leaving]
User458764 has joined #ruby
skammer has quit [Ping timeout: 272 seconds]
kaspergrubbe has joined #ruby
dawkirst has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tessi is now known as tessi_zz
iamdoo2 has quit []
fabrice31 has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
jlebrech has quit [Remote host closed the connection]
dx7 has joined #ruby
kaspergrubbe has joined #ruby
mkaesz has quit [Ping timeout: 244 seconds]
dawkirst has quit [Remote host closed the connection]
dawkirst has joined #ruby
iinzg has joined #ruby
justinmburrous has quit [Remote host closed the connection]
xcv has joined #ruby
manzo has joined #ruby
dx7 has quit [Ping timeout: 260 seconds]
iinzng has quit [Ping timeout: 240 seconds]
dawkirst has quit [Read error: Connection reset by peer]
Takle has joined #ruby
roolo has quit [Remote host closed the connection]
nfk has joined #ruby
dawkirst has joined #ruby
roolo has joined #ruby
skammer has joined #ruby
coderhs has joined #ruby
root3d has quit [Quit: Leaving]
roolo has quit [Ping timeout: 245 seconds]
jontmorehouse has joined #ruby
sk87 has joined #ruby
dangerousdave has joined #ruby
Insanity133 has quit []
dawkirst has quit [Remote host closed the connection]
dawkirst has joined #ruby
jontmorehouse has quit [Ping timeout: 260 seconds]
ciampix has joined #ruby
doev has quit [Ping timeout: 245 seconds]
MCDev has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Remote host closed the connection]
ganjamanna has joined #ruby
ganjamanna has quit [Client Quit]
charliesome has quit [Quit: zzz]
dawkirst has quit [Ping timeout: 260 seconds]
GriffinHeart has joined #ruby
cocotton has quit [Remote host closed the connection]
<shevy>
I let my fists speak
shredding has joined #ruby
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alem0lars_ has quit [Quit: AFK..]
<shevy>
and my feet!
jasooon has joined #ruby
narcan has joined #ruby
xenomorph is now known as {xenomorph}
moritzs has quit [Remote host closed the connection]
roolo has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
cocotton has joined #ruby
shredding has quit [Client Quit]
tylersmith has joined #ruby
bricker`LA has quit [Ping timeout: 272 seconds]
coderhs has quit [Quit: Leaving]
dawkirst has joined #ruby
jasooon has quit [Ping timeout: 260 seconds]
kaspertidemann has joined #ruby
mercwithamouth has quit [Quit: leaving]
nhhagen has quit [Remote host closed the connection]
parduse has quit [Read error: Connection reset by peer]
parduse has joined #ruby
{xenomorph} is now known as xenomorph
tylersmith has quit [Ping timeout: 258 seconds]
mkaesz has joined #ruby
manzo has quit [Quit: Leaving]
GriffinHeart has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
bluOxigen has joined #ruby
charliesome has joined #ruby
jhass has quit [Ping timeout: 272 seconds]
haukur_ has joined #ruby
haukur has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
msmith has joined #ruby
noop has quit [Ping timeout: 260 seconds]
blueOxigen has joined #ruby
dawkirst has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 250 seconds]
abdulsattar has joined #ruby
jhass has joined #ruby
msmith has quit [Ping timeout: 250 seconds]
chipotle has quit [Ping timeout: 260 seconds]
doev has joined #ruby
MCDev has joined #ruby
xenomorph is now known as {xenomorph}
yfeldblum has joined #ruby
professor_soap has joined #ruby
clauswitt has joined #ruby
professor_soap has left #ruby [#ruby]
DaniG2k has quit [Quit: leaving]
justinmburrous has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
aleatorik has joined #ruby
yfeldblum has joined #ruby
tessi_zz is now known as tessi
roolo has quit [Remote host closed the connection]
<Bish>
is there some way to use ruby in the good old php manner? (without having to have a huge rails project)
<tobiasvl>
good old… php manner?
<Bish>
... i didn't know how to ask that question, i mean cgi. executing the script
<shevy>
Bish this is how I describe a .cgi page - nevermind that it has so much useless css, I just copy pasted it from a larger example (also, I wanted to write Hello World, not Hell World ... ) http://pastie.org/pastes/9613590/text
<mwlang>
I see plenty of relevant results for nginx, too.
<Bish>
okay, i might be an idiot then ;)
<workmad3>
Bish: btw, the normal way to have a ruby web-app-esque project would be to write it as a simple rack app or a sinatra app
<workmad3>
Bish: rather than trying to execute it as CGI scripts
<workmad3>
Bish: which wouldn't involve a 'huge rails project'
alem0lars has quit [Client Quit]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<workmad3>
Bish: it still wouldn't be the shitty old PHP 'URLs should expose our file organisation and force our projects to be badly structured' way though :P
clauswitt has joined #ruby
clauswitt has quit [Max SendQ exceeded]
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
clauswitt has joined #ruby
<railis>
anyway ruby doesn't fit to the description of optimized web-app
phutchin1 has joined #ruby
<mwlang>
the *only* thing I’ve ever used ruby + cgi with is a simple contact us form impelementation on an otherwise static site. I replaced a perl script I simply didn’t grok that was generating a crapload of spam with a ruby script that would weed out that spam and send only legit contact requests.
TorpedoSkyline has joined #ruby
fabrice31 has joined #ruby
<mwlang>
I can’t imagine using ruby + cgi for anything more than that. microframeworks (camping, ramaze, sinatra) and pre-compilers (middleman) are the way to go otherwise.
caveat- has quit [Ping timeout: 260 seconds]
justinmburrous has quit [Remote host closed the connection]
<mwlang>
(for the small stuff) If you gotta build something full-blown, then rails takes the cake.
TorpedoSkyline has quit [Client Quit]
Xeago has joined #ruby
duncannz has quit [Remote host closed the connection]
roolo has joined #ruby
caveat- has joined #ruby
<railis>
if you wanna build something full-blown: use grunt + yeoman + backbone, compiled do static site as frontend, and elixir + phoenix as a backend :)
<railis>
rendering templates on the server side is passe
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
nonmadden has quit [Remote host closed the connection]
jasooon has joined #ruby
lxsameer has quit [Quit: Leaving]
narcan has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
IrishGringo has quit [Ping timeout: 260 seconds]
emrox has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
<mwlang>
railis: or backbone + middleman talking to rails_api backend. :-)
<railis>
mwlang: unfortunatelly I have faced the problem with ruby being bottleneck twice already, and not only me :(
<banister>
zenspider yo can i ping u with a rails q?
<mwlang>
railis: same here.
basldex has left #ruby [#ruby]
douglasssssss has quit [Client Quit]
<banister>
mikecmpbll actually, you're a bit of a rails head ;) i have two scopes -- and i want to return everything that matches NEITHER of those scopes, i figured i could use where.not somehow, but i can't figure it out
IrishGringo has joined #ruby
narcan has joined #ruby
<mikecmpbll>
banister: you can probably do something like .where.not(id: Foo.scope)
emiemia has joined #ruby
emiemia is now known as marlonandrade
<mikecmpbll>
but you'll be doing subqueries
aclearman037 has joined #ruby
emocakes has joined #ruby
rkalfane has joined #ruby
shinobi_one has quit [Ping timeout: 244 seconds]
<banister>
mikecmpbll ah ok, that'll look pretty cray with two scopes negated too i guess? .where.not(id: Foo.scope1).where.not(id: Foo.scope2) ?
jontmorehouse has quit [Ping timeout: 272 seconds]
<mikecmpbll>
yeah, it's kinda crap. there's no logical way to negate a scope other than define a scope that does the opposite
<mikecmpbll>
afaik
<railis>
banister: de morgan law
<railis>
:)
phutchin1 has joined #ruby
interweb has quit [Quit: Leaving]
shachar has joined #ruby
banister has quit [Read error: Connection reset by peer]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
thejamespinto has quit [Read error: Connection reset by peer]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
thejamespinto has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Xeago has joined #ruby
banister has joined #ruby
dangerousdave has joined #ruby
gerep has quit [Ping timeout: 240 seconds]
bricker`LA has quit [Ping timeout: 245 seconds]
<wasamasa>
banister: noo
<banister>
wasamasa?
comma8 has joined #ruby
skammer has quit [Ping timeout: 260 seconds]
iiinzg has joined #ruby
<wasamasa>
banister: you flooded my scrollback with /quits :<
iinzg has quit [Ping timeout: 260 seconds]
xenomorph is now known as {xenomorph}
<banister>
wasamasa sry
jasooon has joined #ruby
paulfm has joined #ruby
startupality has quit [Quit: startupality]
Xeago has quit [Remote host closed the connection]
{xenomorph} is now known as xenomorph
banister is now known as banisterfiend
workmad3 has quit [Ping timeout: 272 seconds]
tylersmith has joined #ruby
<pagioss>
hi all, http://pastebin.com/5Y2ZfHV4 when trying to call /start the command fires up but i get a proxy error The proxy server received an invalid response from an upstream server.
<pagioss>
any idea?
jasooon has quit [Ping timeout: 244 seconds]
grzywacz has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
DaniG2k has quit [Ping timeout: 272 seconds]
gerep__ has joined #ruby
nerium has joined #ruby
<nerium>
How do I use the new Oniguruma engine with String#scan?
<nerium>
It works fine with String#match, but not #scan
Aaaal has quit [Quit: Aaaal]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
willgo has quit [Remote host closed the connection]
thejamespinto has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
nerium has joined #ruby
thejamespinto has joined #ruby
Channel6 has joined #ruby
b00stfr3ak has joined #ruby
crunk_bear has joined #ruby
pwh has joined #ruby
mclosson has joined #ruby
gerep_ has joined #ruby
jerius has joined #ruby
startupality has quit [Quit: startupality]
Boeing has joined #ruby
<Boeing>
Hello
noop has joined #ruby
jottr_ has quit [Ping timeout: 272 seconds]
<Boeing>
is someone have a benchmark between ruby, python and php, for a web crawler ?
Takle has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
jrhorn424 is now known as zz_jrhorn424
gerep__ has quit [Ping timeout: 272 seconds]
<ddv>
No
qmfnp has joined #ruby
mary5030 has joined #ruby
startupality has joined #ruby
webgen1 has joined #ruby
abdulsattar has joined #ruby
krz has joined #ruby
badhatter has quit [Read error: Connection reset by peer]
gerep__ has joined #ruby
russt_ has joined #ruby
nettoweb has joined #ruby
lkba has joined #ruby
deed02392 has joined #ruby
<wasamasa>
such a benchmark would reveal the differences to be negligible
justinmburrous has quit [Remote host closed the connection]
<wasamasa>
since the favoured solutions to parsing html all wrap libxml2
<wasamasa>
be it nokogiri for ruby, lxml for python or whatever the hell for php
webgen1 has quit [Read error: Connection reset by peer]
Takle has joined #ruby
<Boeing>
ok, so what is the difference between the 3 languages ?
webgen has quit [Ping timeout: 244 seconds]
<Boeing>
i mean, what would you recommend to use ?
<mikecmpbll>
surely 99
<Boeing>
iam not familiar with ruby and pyton
<mikecmpbll>
nvm.
<Boeing>
i work actually only on php
DaniG2k has joined #ruby
yakko_ has joined #ruby
jasooon has joined #ruby
<wasamasa>
that explains everything
<Hanmac>
its like the flavor between vanilla, cocolate and stawberry ... and then you get a sandwich ice ...
patrick99e99 has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
<wasamasa>
Boeing: do you realize what channel you're in?
<mikecmpbll>
USE RUBY.
zz_jrhorn424 is now known as jrhorn424
<workmad3>
Hanmac: neopolitan languages? :)
<Boeing>
yeah, i see :)
gerep_ has quit [Ping timeout: 245 seconds]
thejamespinto has quit [Ping timeout: 272 seconds]
<wasamasa>
anyways, everything will be a step-up from writing shitty php
<Boeing>
iam actualy seeing the rubycast#190
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gerep_ has joined #ruby
<Boeing>
and nokigiri seems to be interesting
<Hanmac>
workmad3: do you know that sandwich ice i mean? the one where chocolate vanilla and stawberry is together in one
<mikecmpbll>
...
<mikecmpbll>
ya neapolitan "D
mastr_bennett[x] has joined #ruby
<workmad3>
mikecmpbll: yes, neapolitan, not neo :)
dangerousdave has joined #ruby
* workmad3
made a mistake...
<mikecmpbll>
muahahaha.
<Scub>
any vagrant fans about?
<shevy>
they were all murdered
nonmadden has joined #ruby
gerep__ has quit [Ping timeout: 240 seconds]
jasooon has quit [Ping timeout: 272 seconds]
<shevy>
Boeing the difference is the philosophy
<shevy>
php philosophy is - we don't give a fuck
<shevy>
python philosophy is - there is only one way and guido decides which way it is
<shevy>
ruby philosophy is - there is more than one way, though most ways suck
comma8 has quit [Remote host closed the connection]
tylersmith has joined #ruby
cocotton has quit [Remote host closed the connection]
User458764 has joined #ruby
<Hanmac>
in ruby there is the bad way, the good way, and the hanmac way, which is like a mix between bad and good way, does makes twice that much fun ;P
slyslick has joined #ruby
<shevy>
the hanmac way is the path to madness
<workmad3>
shevy: the full python statement is 'there should be one and preferrable only one good way to do something'
<shevy>
and guido decides that way
<Hanmac>
shevy but we have cookies ;P
<shevy>
workmad3 I actually found one project that breaks that python philosophy
<shevy>
"One thing to note about Biopython is that it often provides multiple ways of ?doing the same thing.? Things have improved in recent releases, but this can still be frustrating as in Python there should ideally be one right way to do something."
<shevy>
:)
iamjarvo has joined #ruby
<shevy>
it's like a mantra they chant
germanstudent has quit [Quit: raus]
<shevy>
even when they break it hehehe
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beef-wellington has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tylersmith has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
roolo_ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
oleo has joined #ruby
jxf has joined #ruby
Takle has quit [Remote host closed the connection]
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
freerobby has quit [Quit: Leaving.]
gerep_ has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
aleatorik has quit [Read error: Connection reset by peer]
davispuh has joined #ruby
GinoMan has joined #ruby
snath has quit [Ping timeout: 272 seconds]
klaut has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bricker`LA has joined #ruby
labrah has joined #ruby
shinobi_one has joined #ruby
sanguisdex has joined #ruby
labrah has left #ruby [#ruby]
emrox has joined #ruby
justinmburrous has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 245 seconds]
<sanguisdex>
trying to do a chown with ruby, is there an example some on knows of where we can expect failure of the function and ask for a sudo password if it happens?
dawkirst has quit [Remote host closed the connection]
pgmcgee has quit [Ping timeout: 260 seconds]
<sarkis>
workmad3: thank you
xenomorph is now known as {xenomorph}
<sarkis>
wasamasa: thanks for sharing that you use archlinux - very helpful
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sarkis>
not.
mclosson has quit [Ping timeout: 245 seconds]
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex88 has quit [Quit: Leaving...]
HelperW has quit [Quit: Computer has gone to sleep.]
j2p2 has joined #ruby
HelperW has joined #ruby
sdwrage has joined #ruby
rkalfane has joined #ruby
tewlz has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
bricker`work has joined #ruby
benzrf|offline is now known as benzrf
bluehavana has quit [Quit: Connection closed for inactivity]
tokik has quit [Ping timeout: 250 seconds]
jheg_ has joined #ruby
lewix has quit [Remote host closed the connection]
baroquebobcat_ has joined #ruby
GinoMan has quit [Ping timeout: 260 seconds]
roolo_ has quit [Remote host closed the connection]
pgmcgee has joined #ruby
sepp2k has quit [Quit: Leaving.]
<tewlz>
I'm yielding a block to a method. I want to initialize an empty array in the method and then pass that empty array to to block I'm yielding to. I figured it would be as simple as `yield empty_array`, am I making a simple mistake or would you like to see the code?
<sarkis>
workmad3: that doesn't work :(
roolo has joined #ruby
iliketurtles has joined #ruby
sepp2k has joined #ruby
<sarkis>
workmad3: oh wait i lied, was trying it via rbenv install - trying ruby-build directly now
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aspires has quit []
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
HelperW has quit [Ping timeout: 245 seconds]
baroquebobcat has quit [Ping timeout: 244 seconds]
baroquebobcat_ is now known as baroquebobcat
michaeldeol has joined #ruby
<workmad3>
tewlz: code pls
kobain has joined #ruby
maletor has joined #ruby
alem0lars has quit [Quit: AFK..]
RichardLitt has joined #ruby
alem0lars has joined #ruby
<sarkis>
now i am curious, how would you get ubuntu 12.04 or even 14.04 installed with ruby 2.1 via package?
bluOxigen has quit [Read error: Connection reset by peer]
<sarkis>
i found a ppa - but is it ok to be messing with the system ruby version?
bluOxigen has joined #ruby
haukur_ has quit []
roolo has quit [Ping timeout: 244 seconds]
aspires has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
<rpag>
sarkis, ubuntu is usually slow to update ruby but there's a hella lot of options out there to build+manage ruby yourself usually from $HOME, so much that it probably deserves to be in the /topic :P
hellangel7 has quit [Remote host closed the connection]
mclosson has quit [Ping timeout: 272 seconds]
jasooon has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Remote host closed the connection]
xcv has quit []
bluOxigen has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
gerep__ has quit [Ping timeout: 260 seconds]
<tuelz>
I've always wondered. I use archlinux which keeps packages up to date typically the day after release. Is there a way to use my package manager to download the ruby and then have rbenv or rvm then manage it?
<tuelz>
I've always used the included installers, which build from source
mikecmpbll has joined #ruby
mikepack has joined #ruby
<tuelz>
never thought to try using a package manager until now
lsmola has quit [Ping timeout: 250 seconds]
pdais has joined #ruby
Wolland has quit [Ping timeout: 250 seconds]
ta has quit [Ping timeout: 246 seconds]
Synthead has quit [Quit: Leaving]
<rpag>
i think there is 'rvm use system' for that
kate_r_ has quit [Read error: Connection reset by peer]
boombadaroomba has joined #ruby
krisquigley has quit [Ping timeout: 246 seconds]
<rpag>
donno about rbenv
<workmad3>
tuelz: unlikely
<rpag>
i personally use chruby&ruby-install without a system ruby
mekhami has joined #ruby
tvw has quit []
<rpag>
it's probably a little daunting if youre new to ruby but often the best way to use ruby in my experience
chthon has quit [Ping timeout: 250 seconds]
gerep__ has joined #ruby
noop has quit [Read error: Connection reset by peer]
justinmburrous has quit [Remote host closed the connection]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
<User458764>
Hi, I try to serve a static site for heroku with a rack app like this one http://pastie.org/9614242#12 how do I do to serve multiple files and files in folder like /en/index.html or /es/index.html...?
iamjarvo has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
kate_r has joined #ruby
gerep_ has quit [Ping timeout: 245 seconds]
x1337807x has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
tuelz: chruby
<rpag>
User458764, you'd add "en" & "es" to urls
<rpag>
File.open() like that never closes the underlying filehandle btw
<rpag>
File.read() might be better
<havenwood>
tuelz: chruby can switch between arbitrary locations and is included in the AUR to boot :)
Xeago has quit [Remote host closed the connection]
<User458764>
rpag I see another problem I don't know if it is related but whatever I enter in the url like mysite.com/nonexistingfile.html or mysite.com/foo... the index.html is displayed is there a way to avoid this behavior and output a 404 error
stunder_ has joined #ruby
chipotle has joined #ruby
<rpag>
i think it does that because of your rack app (the File.open thing), if you just use the middleware then that problem shouldnt happen
gerep_ has joined #ruby
stunder has quit [Quit: Screw you guys I'm going home]
ta has joined #ruby
tjbiddle_ has joined #ruby
dopie has joined #ruby
spastorino has joined #ruby
rawc has joined #ruby
cerberblue has joined #ruby
tjbiddle has quit [Ping timeout: 245 seconds]
tjbiddle_ is now known as tjbiddle
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has quit [Read error: Connection reset by peer]
IceDragon has joined #ruby
gerep__ has quit [Ping timeout: 245 seconds]
<workmad3>
User458764: btw, it looks like you're re-implementing the behaviour of Rack::File
kaspertidemann has joined #ruby
wallerdev has joined #ruby
Suchit_ has joined #ruby
stunder_ has quit [Ping timeout: 260 seconds]
chipotle has quit [Ping timeout: 272 seconds]
russt has joined #ruby
twohlix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carlyle_ has joined #ruby
Aaaal has quit [Quit: Aaaal]
noop has joined #ruby
fabrice31 has joined #ruby
justinmburrous has joined #ruby
gerep__ has joined #ruby
HelperW has joined #ruby
Tiberias has joined #ruby
Jinkins has quit [Quit: This computer has gone to sleep]
iliketurtles has joined #ruby
carlyle_ has quit [Read error: Connection reset by peer]
carlyle_ has joined #ruby
ctp has joined #ruby
Jinkins has joined #ruby
Jinkins has quit [Client Quit]
failshell has joined #ruby
Tiberias has quit [Client Quit]
ctp has quit [Read error: Connection reset by peer]
ta has joined #ruby
ctp_ has joined #ruby
lkba has joined #ruby
Lily--- has joined #ruby
b1nd has quit [Ping timeout: 245 seconds]
jottr_ has joined #ruby
blahwoop has quit []
benzrf is now known as benzrf|offline
workmad3 has quit [Ping timeout: 245 seconds]
gerep_ has quit [Ping timeout: 258 seconds]
Nogbit has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
lmickh has quit [Remote host closed the connection]
ctp_ has quit [Client Quit]
mrsolo has joined #ruby
gregor3005 has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr_ has quit [Ping timeout: 272 seconds]
<gregor3005>
hi, i use rvm which work when i code in the shell. but now i try to use eclipse and configured the ruby interpreter it works but it didn't find the installed gems. is there any documentation (which work) how to use rvm and eclipse? i found so much results which doesn't solve my problem
b1nd has joined #ruby
iaj has joined #ruby
mr_dynamix has joined #ruby
havenwood has quit [Remote host closed the connection]
Tiberias has joined #ruby
yxhuvud has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 272 seconds]
slyslick has quit [Ping timeout: 260 seconds]
<rpag>
gregor3005, iirc that's an annoying problem because RVM depends on shell vars being set to pick up the right ruby
thejamespinto has quit [Read error: Connection reset by peer]
Tiberias has quit [Remote host closed the connection]
thejamespinto has joined #ruby
twohlix has joined #ruby
Xeago has joined #ruby
gerep_ has joined #ruby
stunder has joined #ruby
thisislulu has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
badhatter has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
RegulationD has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sevvie has joined #ruby
badhatter has joined #ruby
dangerousdave has joined #ruby
jontmorehouse has quit [Ping timeout: 260 seconds]
phutchins has joined #ruby
gerep__ has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
gerep__ has joined #ruby
Insanity133 has joined #ruby
<gregor3005>
rpag: yes thats true its annoying
ghr has quit [Ping timeout: 244 seconds]
mclosson has joined #ruby
jontmorehouse has joined #ruby
hamakn has quit [Remote host closed the connection]
b00stfr3ak has quit [Ping timeout: 258 seconds]
yfeldblum has joined #ruby
arup_r has quit [Ping timeout: 272 seconds]
rockosays has quit [Quit: Connection closed for inactivity]
hamakn has joined #ruby
jottr_ has joined #ruby
b00stfr3ak has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
cherwin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gerep__ has quit [Ping timeout: 245 seconds]
justinmburrous has quit [Remote host closed the connection]
jasooon has joined #ruby
thisislulu has quit [Ping timeout: 250 seconds]
ndrei has quit [Ping timeout: 245 seconds]
jonmorehouse has joined #ruby
alem0lars has quit [Quit: AFK..]
Seventoes has left #ruby [#ruby]
einarj_ has quit [Remote host closed the connection]
x1337807x has joined #ruby
omosoj has joined #ruby
jontmorehouse has quit [Ping timeout: 272 seconds]
<rpag>
lol
justinmburrous has joined #ruby
ferr has joined #ruby
Digital-Ghost has joined #ruby
<pagioss>
can i open the same file from 2 processes if it is in readonly mode?
momomomomo has joined #ruby
<jhass>
even in write mode, you might just get silly results ;)
jasooon has quit [Ping timeout: 260 seconds]
<ferr>
Hello, empty line left with Sublime is not shown at github, any ideas?
zy has joined #ruby
<rpag>
sure you can, you can put a lock on it so the other process has to wait tho
slester1 has joined #ruby
<rpag>
by using flock()
<zy>
is there any way to make the sublime text autocompletion not suck for ruby mode?
<zy>
when i type "do" i have to press enter just to get the autocomplete to go away -- and it doesnt even add anything, it just completes "do" by itself!
carraroj has joined #ruby
<pagioss>
rpag: jhass Failed to load resource: the server responded with a status of 500 (Internal Server Error)
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pagioss>
i get this error if both are trying to read the same file
<pagioss>
using sinatra
Soda has joined #ruby
<jhass>
common
<jhass>
look into the logs
icarus has quit [Ping timeout: 272 seconds]
<tuelz>
how can I create a csvIO object without putting anything in it on creation? I'm trying to create an IO object, then use net/sftp to download a csv file into that io object
slester has quit [Ping timeout: 272 seconds]
GinoMan has joined #ruby
gerep__ has joined #ruby
ta has quit [Remote host closed the connection]
<pagioss>
does this open in readonly by default ? YAML.load(File.open('/var/profile.yml'))
Sht0 has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
niklasb has joined #ruby
<jhass>
yes but you leak fds that way
dangerousdave has joined #ruby
<jhass>
use YAML.load_file
gregor3005 has quit [Ping timeout: 250 seconds]
<tuelz>
CSV.new requires at least one argument, which is the data you want to put inside the io object, but my .download requires an io object in it's params
<pagioss>
what is FDS?
ffranz has quit [Ping timeout: 245 seconds]
<jhass>
file descriptors
davispuh has quit [Remote host closed the connection]
icarus has joined #ruby
<pagioss>
i didnt get it
<jhass>
did you google it?
Macaveli has quit [Read error: Connection reset by peer]
<pagioss>
i didnt understand what you meant to google it
<jhass>
the thing you don't understand?
ffranz has joined #ruby
WormDr1nk has quit [Ping timeout: 246 seconds]
alem0lars has joined #ruby
gerep_ has quit [Ping timeout: 258 seconds]
carlyle_ has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
JBreit has joined #ruby
davispuh has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
phutchins has quit [Read error: Connection reset by peer]
phutchins has joined #ruby
JBreit has left #ruby [#ruby]
gerep_ has joined #ruby
grzywacz has joined #ruby
cocotton has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
Hobogrammer has joined #ruby
alem0lars has quit [Ping timeout: 260 seconds]
gregor3005 has joined #ruby
bwilson has joined #ruby
davispuh has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
cocotton has joined #ruby
paulfm has quit []
<epitron>
tuelz: maybe you need a pipe
paulfm has joined #ruby
thisislulu has joined #ruby
<epitron>
r, w = IO.pipe
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gerep has joined #ruby
<epitron>
then you can pass w to the SFTP thing and r to the CSV thing
gerep__ has quit [Ping timeout: 272 seconds]
cocotton_ has joined #ruby
<epitron>
(you'll probably have to make one run in a thread)
comma8 has quit [Ping timeout: 260 seconds]
<epitron>
for convention's sake, i'd make the SFTP thing the thread :)
nfk has joined #ruby
aclearman037 has quit [Ping timeout: 250 seconds]
pietr0 has joined #ruby
yetanotherdave has joined #ruby
gerep_ has quit [Ping timeout: 258 seconds]
spyderman4g63 has quit [Remote host closed the connection]
hellangel7 has joined #ruby
gerep_ has joined #ruby
cocotton has quit [Ping timeout: 244 seconds]
ctp has joined #ruby
spyderman4g63 has joined #ruby
Xeago has joined #ruby
zz_jrhorn424 is now known as jrhorn424
djstorm has joined #ruby
jonmorehouse has quit [Ping timeout: 272 seconds]
skammer has quit [Ping timeout: 272 seconds]
aclearman037 has joined #ruby
zy has left #ruby ["Leaving..."]
klaut has joined #ruby
aspires has quit []
Mso150_a has joined #ruby
akkad has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
aspires has joined #ruby
spyderma_ has joined #ruby
thejamespinto has joined #ruby
spyderma_ has quit [Remote host closed the connection]
carlyle_ has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
gerep has quit [Ping timeout: 272 seconds]
gerep__ has joined #ruby
choke has quit [Remote host closed the connection]
bsdbofh has joined #ruby
bwilson has quit [Ping timeout: 250 seconds]
bsdbofh is now known as bwilson
treehug88 has joined #ruby
jrhorn424 is now known as zz_jrhorn424
<tuelz>
thanks, I'll read into that, I kinda sorta know what a pipe and thread are, but I've never invoked them in code knowingly :p
kriskrop1 is now known as kriskropd
kriskropd has quit [Changing host]
kriskropd has joined #ruby
<tuelz>
best I've done is pipe stuff to grep and cat :/
Xeago has quit [Remote host closed the connection]
jonmorehouse has joined #ruby
carraroj has quit [Ping timeout: 258 seconds]
spyderman4g63 has quit [Ping timeout: 245 seconds]
gerep_ has quit [Ping timeout: 260 seconds]
IceDragon has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
IceDragon has joined #ruby
mclosson has quit [Read error: Connection reset by peer]
ctp_ has joined #ruby
freezey has quit [Remote host closed the connection]
pagioss has quit [Ping timeout: 272 seconds]
tyll_ has quit [Ping timeout: 272 seconds]
ivmx has joined #ruby
awestroke has joined #ruby
justinmburrous has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ctp has quit [Ping timeout: 272 seconds]
tyll has joined #ruby
mclosson has joined #ruby
jheg has joined #ruby
dp_ has joined #ruby
supersym has quit [Ping timeout: 246 seconds]
mr_dynamix_ has joined #ruby
<dp_>
as a non-rubyist, what does #intern() actually do?
mclosson has left #ruby [#ruby]
Xeago has joined #ruby
bobishh has quit [Ping timeout: 272 seconds]
<jhass>
I think it's an alias for .to_sym ?
<apeiros>
it is
mike32 has quit [Ping timeout: 245 seconds]
freezey has joined #ruby
<apeiros>
dp_: it returns a Symbol representation of a String
<wmoxam>
dp_: it fetches coffees
cocotton_ has quit [Remote host closed the connection]
<wmoxam>
My.intern(:fetch_a_coffee)
reset has joined #ruby
fmcgeough has joined #ruby
<rpag>
hrhr
Jinkins has joined #ruby
<existensil>
symbols are sorta like strings, except they are immutable and only one instance of a symbol ever exists, so :foo.object_id == :foo.object_id
<apeiros>
symbols are sorta like integers, except they have an attached string
spyderman4g63 has joined #ruby
<existensil>
so they are more efficient and a better choice when you need literals
<rpag>
im not sure if 'one instance ever exists' is true anymore since they can be garbage collected now apparently
<Hanmac>
i use symbols like Enum stuff from C/C++
thejamespinto has quit [Read error: Connection reset by peer]
gerep_ has joined #ruby
elaptics is now known as elaptics`away
<existensil>
well, in the sense that if you compare two identical symbols they will always be the same object
<existensil>
in that sense, only one exists
mr_dynamix has quit [Ping timeout: 240 seconds]
mr_dynamix_ is now known as mr_dynamix
<Hanmac>
rpag: even if they are garbage collected they still the same object as long as they live
yfeldblum has joined #ruby
<existensil>
if you still have a reference to the first one it won't be GC'd
<rpag>
Hanmac, so if i create :foo twice, it'd have same object id the second time? (after GC)
thejamespinto has joined #ruby
User458764 has joined #ruby
TorpedoSkyline has joined #ruby
<rpag>
that didnt seem likely
LesZedCB has joined #ruby
aclearman037 has quit [Remote host closed the connection]
jheg has left #ruby [#ruby]
reset has quit [Ping timeout: 258 seconds]
iamjarvo has joined #ruby
gerep__ has quit [Ping timeout: 272 seconds]
chrishough has joined #ruby
<dp_>
so essentially, they're a string singleton
ctp has joined #ruby
<existensil>
sure, that's an ok way to think of them
<dp_>
k
shosti has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
<existensil>
the have a few special properties, but, in practice that mental model will probably work
aclearman037 has joined #ruby
<dp_>
thanks much
dp_ has left #ruby [#ruby]
gerep__ has joined #ruby
User458764 has quit [Ping timeout: 245 seconds]
spyderman4g63 has quit [Remote host closed the connection]
coderdad_ has joined #ruby
spyderman4g63 has joined #ruby
reset has joined #ruby
ctp_ has quit [Ping timeout: 272 seconds]
spyderma_ has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
paulfm has quit []
gerep_ has quit [Ping timeout: 245 seconds]
coderdad has quit [Ping timeout: 246 seconds]
Tarential has quit [Quit: Terminated with extreme prejudice - dircproxy 1.0.5]
rawc has quit [Quit: derp]
justinmburrous has joined #ruby
davispuh has joined #ruby
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
LesZedCB has left #ruby [#ruby]
ocx has joined #ruby
<ocx>
i am reading continously from a file using 2 clients using xhr, will reading issue a block on the file? i am using ruby on the server side to read the files
krisquigley has joined #ruby
agjacome has quit [Quit: leaving]
shevy has quit [Ping timeout: 245 seconds]
nonmadden has quit [Remote host closed the connection]
paulfm has joined #ruby
<rpag>
ocx, no it won't unless you setup a lock
gerep_ has joined #ruby
<ocx>
rpag: does it mean i can have 10 processes opening the same file at the same time?
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jay__ has joined #ruby
<gizmore>
do i need to use result = `cowsay moo` or can i execute cowsay directly somehow?
sinkensabe has quit [Remote host closed the connection]
rpag has quit [Quit: Leaving]
shevy has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
<maasha>
ah, cowsay :o) a fav of mine for many many years
<soahccc>
gizmore: I'm not sure but that seems like a good place for shellshock :D
<gizmore>
lol
<maasha>
I always install cowsay and sl first on new systems.
<gizmore>
[20:39:12] <@Hirsch> ist das moo plugin afällig für shellshock?
carlyle_ has quit [Remote host closed the connection]
<gizmore>
soahccc: ecaxtly what my friend asked too!
nonmadden has joined #ruby
<gizmore>
is it vuln to shellshock? Oo
chrishou_ has joined #ruby
chrishough has quit [Read error: Connection reset by peer]
<gizmore>
i use cowsay with -- param
Jinkins has joined #ruby
<wasamasa>
sarkis: I'm sorry for living in bleeding edge land
<sarkis>
nothing wrong with it... just that it had nothing to do with the question asked :)
postmodern has joined #ruby
<wasamasa>
you didn't specify what distro you're on, therefore
jhass is now known as jhass|off
<wasamasa>
anyways, now that 2.1 is slowly, but surely becoming a standard and future releases will break pretty much nothing, I do no longer need to futz around with rvm, rbenv and so on
<wasamasa>
which is good
b00stfr3ak has quit [Remote host closed the connection]
<twohlix>
ocx: that is a technique used to lock threads
ciampix has joined #ruby
<twohlix>
threads/processes.
nonmadden has quit [Remote host closed the connection]
<ocx>
twohlix: why?
apeiros has quit [Remote host closed the connection]
justinmburrous has joined #ruby
<ocx>
i dont want to lock threads twohlix
<ocx>
i want to allow them to read all at the sme time
apeiros has joined #ruby
<twohlix>
right, I'm just pointing out that yes you can, because its a useful thing to lock threads with
<twohlix>
its not blocking them
<twohlix>
but its like an easily shared piece of data between threads/processes
AlexRussia has joined #ruby
ivmx has left #ruby [#ruby]
<twohlix>
ocx: if you dont write to the file, you shouldn't run into any issues, if multiple threads/processes start writing to a file it gets funky fast.
ciampix has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 245 seconds]
Insanity133 has quit [Ping timeout: 260 seconds]
lolmaus has joined #ruby
lewix has joined #ruby
jokke has quit [Quit: WeeChat 1.0.1]
flughafen_ has quit [Ping timeout: 258 seconds]
Wolland has joined #ruby
jokke has joined #ruby
entrenad_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pdais has joined #ruby
carlyle_ has joined #ruby
ghr has joined #ruby
dopie has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
aspires has joined #ruby
_maes_ has quit [Ping timeout: 244 seconds]
awestroke has quit [Remote host closed the connection]
freezey has quit []
Wolland_ has quit [Ping timeout: 240 seconds]
carlyle_ has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
carlyle_ has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
Hobogrammer_ has joined #ruby
Xeago has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
kobain has quit [Read error: Connection timed out]
troulouliou_dev has joined #ruby
kobain has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
Mso150_a_u_v has joined #ruby
iliketurtles has joined #ruby
Xeago_ has joined #ruby
kobain has quit [Max SendQ exceeded]
tonini has quit [Remote host closed the connection]
kobain has joined #ruby
Mso150_a_u has quit [Ping timeout: 260 seconds]
kobain has quit [Max SendQ exceeded]
arthurvr has joined #ruby
kobain has joined #ruby
<arthurvr>
Hi guys!
Jinkins has quit [Quit: This computer has gone to sleep]
<arthurvr>
What are you guys thinking is the best way to learn ruby this times?
spider-mario has joined #ruby
kobain has quit [Max SendQ exceeded]
<existensil>
arthurvr: depends on where you are starting from
<existensil>
arthurvr: do you know any existing programming languages?
Xeago has quit [Ping timeout: 260 seconds]
<arthurvr>
javascript (including Node), PHP and C
gsd has joined #ruby
tonini has joined #ruby
abdulsattar has joined #ruby
<wasamasa>
well, uh, forget PHP entirely if you can afford that
robertt_dex has quit [Remote host closed the connection]
<arthurvr>
Haha, I'il think about that ;-)
robertt_dex has joined #ruby
<existensil>
Then I'd just find a project and dive in, aided by a good book or two, like the ruby pickaxe book
<existensil>
or just keep the docs up. they are pretty good.
mityaz_ has joined #ruby
nhhagen has quit [Remote host closed the connection]
IrishGringo has joined #ruby
<eam>
best way to learn a new language is to write an irc bot in it
<existensil>
also, Why's Poignant Guide is both free and worthy of a read. It will help understand ruby a little, but is mostly entertaining and will help introduce you to how fun and weird the community tries to be
<freeone3000>
I'm trying to run a rails serve on windows, but when running `rails s`, execjs complains there's no runtimes available, despite one being present in the gemfile. https://gist.github.com/freeone3000/60f23b1d091e669ec873 is my gemfile and log. What's wrong?
manzo has quit [Ping timeout: 258 seconds]
<existensil>
freeone3000: are you trying to use a platform other than MRI?
<existensil>
that gem is tied to C-ruby
<existensil>
so if you are on jruby, you still haven't specified a JS runtime
abdulsattar has quit [Ping timeout: 272 seconds]
alexherbo2 has quit [Read error: Connection reset by peer]
<existensil>
therubyrhino I think is the populare jruby option
<freeone3000>
existensil: No, C:\Ruby200 has a ruby.exe
jasooon has joined #ruby
<existensil>
and you've bundle install'ed ?
<freeone3000>
existensil: Yes.
<mary5030>
any advise for me here, this doesn't work:
<mary5030>
freeone3000: yes but i need something more flexible that would;t not return nil on case sensitive
iamvery has joined #ruby
<existensil>
freeone3000: ok, clearly not installed. maybe add another gem line, like: gem "therubyracer", platform: "x86-mingw32"
<existensil>
I'm really not sure what the platform string should look like on windows
jasooon has quit [Ping timeout: 246 seconds]
<freeone3000>
existensil: Now, that's odd. It's using C-Ruby but the list of extensions I'm getting includes jdbc-* which should only be grabbed under :jruby
nfk has quit [Quit: yawn]
<existensil>
but it is not including things in the "ruby" platform
omosoj has quit [Quit: leaving]
<existensil>
freeone3000: I don't see any jruby stuff actually being installed
gerep_ has quit [Ping timeout: 272 seconds]
ta has joined #ruby
ldnunes has quit [Ping timeout: 240 seconds]
<existensil>
its just installing neither platform
<existensil>
its only installing the gems that don't have a platform specified
<TieSoul>
erm, can anyone help me? STDIN#ready? errors saying it's an undefined method.
Pumukel has joined #ruby
niklasb has quit [Quit: WeeChat 1.0.1]
<TieSoul>
And I don't know why
amil has joined #ruby
<freeone3000>
existensil: Ah. Platform is :mri
gerep_ has joined #ruby
niklasb has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
spyderma_ has joined #ruby
kamilc__ has quit [Ping timeout: 245 seconds]
justinmburrous has quit [Remote host closed the connection]
Jackneill has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
iamvery has quit [Client Quit]
ciampix has quit [Ping timeout: 260 seconds]
<existensil>
TieSoul: require 'io/wait'
<existensil>
you'll get your ready? back
<TieSoul>
oh
<TieSoul>
okay
drbrule has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
Advocation has quit [Quit: Advocation]
dopie has joined #ruby
gerep has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gerep__ has quit [Ping timeout: 272 seconds]
<freeone3000>
existensil: Yep, adding another line with an :mri platform on therubyracer fixed it. Thanks.
<TieSoul>
erm, so now #ready? does exist but it always returns nil.
<TieSoul>
I'm using raw input
cpruitt has quit [Quit: cpruitt]
spyderma_ has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
sinkensa_ has joined #ruby
<existensil>
returns boolean for me
epochwolf has quit [Quit: Uh no...]
gerep_ has quit [Ping timeout: 245 seconds]
amil has quit [Quit: Leaving...]
<TieSoul>
and nread always returns 0
bobishh has joined #ruby
pietr0 has joined #ruby
ldnunes has joined #ruby
kobain has joined #ruby
sinkensabe has quit [Ping timeout: 260 seconds]
justinmburrous has joined #ruby
drbrule has quit [Quit: Lost terminal]
Takle has quit [Read error: Connection reset by peer]
jds has quit [Quit: Connection closed for inactivity]
Takle has joined #ruby
buub has quit [Ping timeout: 260 seconds]
Seventoes has joined #ruby
sanguisdex has joined #ruby
jack_rabbit has joined #ruby
Seventoes has left #ruby [#ruby]
maasha has quit [Quit: Page closed]
GinoMan has joined #ruby
gregor3005 has quit [Quit: Leaving.]
spyderman4g63 has quit [Ping timeout: 246 seconds]
pietr0 has quit [Client Quit]
kobain has quit [Client Quit]
AlexRussia has quit [Remote host closed the connection]
pietr0 has joined #ruby
momomomomo has joined #ruby
epochwolf has joined #ruby
kobain has joined #ruby
wallerdev has joined #ruby
kobain has quit [Max SendQ exceeded]
silkfox has joined #ruby
beef-wellington has quit [Read error: Connection reset by peer]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
kobain has quit [Changing host]
kobain has joined #ruby
Fabioagain has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Fabioagain has quit [Max SendQ exceeded]
ciampix has joined #ruby
Sawbones has joined #ruby
Fabioagain has joined #ruby
AlexRussia has joined #ruby
kobain has quit [Max SendQ exceeded]
Mso150 has joined #ruby
kobain has joined #ruby
Ulrike_Rayne is now known as Ulibot
maestrojed has joined #ruby
kobain has quit [Read error: Connection reset by peer]
jay__ is now known as rubyonrailed
Mso150_a_u_v has quit [Ping timeout: 272 seconds]
skammer has joined #ruby
Ulibot is now known as Ulrike_Rayne
benzrf|offline is now known as benzrf
alvaro_o has joined #ruby
RichardLitt has quit [Quit: RichardLitt]
oponder has joined #ruby
michaeldeol has joined #ruby
janmuffino has quit [Ping timeout: 246 seconds]
<shevy>
give a full code example TieSoul
gerep_ has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
Takle has quit [Remote host closed the connection]
<apeiros>
same thing still applies - optimal solution is O(n)
<Sou|cutter>
I would just return [1,4,5] and be O(1)
<Sou|cutter>
a broken clock is right twice/day, as they say
<Sou|cutter>
(ok, I'm not funny, sorry)
<j2p2>
I'll break it down a little bit - basically when you use your solution, it runs through the whole list counting the elements for every element
freerobby has quit [Quit: Leaving.]
<j2p2>
you want to find one where you only have to go through the list once
<ferr>
Yes
fsapo has quit [Remote host closed the connection]
<heftig>
apeiros: make a hash of counts and then filter, I guess?
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
sinkensa_ has quit [Remote host closed the connection]
<heftig>
one pass over the array to build the hash, one pass to filter the hash
iamjarvo has joined #ruby
paulfm has quit []
<heftig>
If the array is sorted you don't even need the hash and can do it in one pass, I think
mikepack has joined #ruby
akitada__ has quit [Ping timeout: 240 seconds]
HashNuke has quit [Ping timeout: 272 seconds]
mattyohe has quit [Ping timeout: 272 seconds]
incomprehensibly has quit [Ping timeout: 272 seconds]
aclearman037 has quit []
<apeiros>
heftig: that's one way, yes
bigmac has joined #ruby
pietr0 has quit [Quit: pietr0]
ggherdov has quit [Ping timeout: 272 seconds]
machty has quit [Ping timeout: 272 seconds]
<apeiros>
and yes, if it is guaranteed to be sorted, you can reduce the constant factor/summand (which is removed in O notation)
bigmac has quit [Read error: Connection reset by peer]
<heftig>
just keep count of how many times you've seen the last item, and if you get a new item that's different from the last and the count is 1, output the last
yetanotherdave has joined #ruby
HashNuke has joined #ruby
Digital-Ghost has joined #ruby
<j2p2>
in any case ferr your solution works and you're definitely thinking about it the right way, these are just performance tips :)
<cr3>
when I have two versions of ruby installed from debian package, what environment variables should I set to install an application using the non-default version?
jonmorehouse has joined #ruby
<havenwood>
cr3: update-alternatives
<apeiros>
cr3: sounds more like a debian question to me…
<Daemonik>
I want to deploy a Ruby app. Say this Ruby app depends on a gem named foo, how may I have gem foo version 2.0.1 and version 2.0.2 installed on the same system? There are quite a handful of Ruby gem management systems out there and they all seem overly complex. At this point I feel like I just want to do /opt/ruby-2.0p480 (or whatever) and /opt/ruby-2.0p480/foo-2.0.1 and /opt/ruby-2.0p480/foo-2.0.2 and explicitly point Ruby apps to specific Ruby/Gem
<Daemonik>
versions.
Digital-Ghost has joined #ruby
mrsolo has quit [Quit: Leaving]
sanguisdex has quit [Ping timeout: 246 seconds]
<weaksauce>
Daemonik use bundler. write a gemfile that specifies the version and then bundle exec ruby ./your_scirpt.rb
hiyosi has joined #ruby
patrick99e99 has quit [Quit: Lost terminal]
mikepack has joined #ruby
narcan has joined #ruby
<weaksauce>
Daemonik it takes care of all your worries and works well... it was a really enticing feature that, in part, got me to try out rails
<weaksauce>
and ruby
afhammad has quit [Remote host closed the connection]
afhammad has joined #ruby
lewix has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
<Daemonik>
weaksauce, Yeah I don't want to do that, because while it's supposed to take care of all my worries it doesn't. The platform I'm using is SmartOS base64 14.2.0 and I want to separate the Ruby/Gems deployment process from the application(s) then have the applications be explicitly pointed to the Ruby/Gem versions.
hiyosi has quit [Ping timeout: 244 seconds]
lewix has joined #ruby
<Daemonik>
weaksauce, I need to be able to support arbitrary applications with arbitrary dependencies -- so, I have to cover all dependencies and the Ruby/Gem versions have to be read-only to the apps.
thomasxie has joined #ruby
marr has quit [Ping timeout: 260 seconds]
<jhass>
Daemonik: still sounds like a valid job for bundler, chance is you're just using it wrong. Anyway, RubyGems can do this, simply call gem 'foo', '2.0.1' before requiring it
<Daemonik>
jhass, Using Bundler wrong is probably what I'm doing. =) What would be the authoritative and most helpful resource on Bundler?
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
benzrf is now known as benzrf|offline
<weaksauce>
Daemonik if you want to post a gemfile that you are having problems with we could take a look
thumpba has quit [Remote host closed the connection]
msmith has quit [Remote host closed the connection]
echevemaster has joined #ruby
icebourg_ has quit []
stunder has quit [Remote host closed the connection]
ghr has joined #ruby
<Daemonik>
jhass + weaksauce Is there a public-facing Jenkins server that builds Ruby and arbitrary Ruby Gems on popular OSes like CentOS-6, CentOS-7, and SmartOS Base64 14.2.0 ?
gregf has quit [Quit: WeeChat 1.0]
<jhass>
not that I know of
<jhass>
smartos is popular? had to google it tbh
ghostmoth has quit [Quit: ghostmoth]
gregf has joined #ruby
cndiv has joined #ruby
Takle has joined #ruby
mordof has joined #ruby
davasaurous has joined #ruby
aspires has joined #ruby
jasooon has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
<weaksauce>
bundler is happy to look in your local paths that you specify for gems
justinmburrous has quit [Remote host closed the connection]
thomasxie has left #ruby [#ruby]
oleo__ is now known as oleo
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
carlyle_ has joined #ruby
<weaksauce>
you may need to compile them yourself if there is a problem with them. a bundle install will either succeed or not but it will show you what's wrong. If I had to guess, most gems are not compiled and you shouldn't have too much of an issue with a stock gemfile
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
<weaksauce>
Daemonik some are though like nokogiri
iamjarvo has joined #ruby
Takle has quit [Ping timeout: 260 seconds]
jasooon has quit [Ping timeout: 258 seconds]
magic has quit [Ping timeout: 260 seconds]
slester has joined #ruby
ghostmoth has joined #ruby
carlyle_ has quit [Ping timeout: 244 seconds]
magic_ has joined #ruby
blackdev1l has joined #ruby
afhammad has joined #ruby
Lily--- is now known as viv
viv is now known as viv-
mutenewt has quit [Quit: Leaving]
afhammad has quit [Client Quit]
<weaksauce>
Daemonik check #bundler out... they will know more
charliesome has joined #ruby
lewix has quit [Remote host closed the connection]
<jhass>
well, he didn't even properly describe his problem with bundler yet
jcdesimp has quit [Remote host closed the connection]
duncannz has quit [Remote host closed the connection]
pdais has quit [Quit: Leaving.]
thisislulu has quit [Ping timeout: 260 seconds]
<Daemonik>
I'm gonna read up on Bundler and I'll ask #bundler from there.