Daniel__^_^ has quit [Remote host closed the connection]
<shevy>
perhaps ruby became too static!
<sargas>
shevy: interesting idea. Why so much focus on input/output handling?
b3itz has joined #ruby
<shevy>
I have no idea
<shevy>
the syntax example was weird
<shevy>
input | output ?
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<b3itz>
hey guys.. so i have a string such as "2014-11-26|192.168.220.048|192.168.240.011" and i need to extract (split) out of it the date, svrip, srcip and name them accordingly.. how do i do that? I'm assuming i need to use the split with a "|" delimiter
<shevy>
that's like in a pipe right
<shevy>
b3itz ok now you have an Array with 3 members
<sargas>
Ruby is a kid that matured and took off... I guess Matz wanted to have a "new" child?
<shevy>
dunno
<shevy>
there is the path to ruby 3.0 still
<b3itz>
shevy: no, a String
<jhass>
b3itz: looks like CSV with a | as separator
<pontiki>
hey, folks
<sargas>
some people already tried adding type annotations to Ruby AFAIK... I don't know if that would be a good idea?
<b3itz>
jhass: essentially is.
<b3itz>
theyre iis logs
<jhass>
sargas: it's a different language
<jhass>
sargas: have a look at crystal
<jhass>
b3itz: String#split then
<shevy>
b3itz well when you applied .split you have it as Array
<shevy>
sargas if it would be optional then it's no problem right? because people who won't need it could ignore it. others could do typecasts early and guarantee a desired target format without having to maintain it on their own
SCHAAP137 has joined #ruby
<sargas>
jhass: Crystal doesn't seem to have type annotation... in fact, it states that you never have to do it again!
<shevy>
I haven't tried crystal yet. I have tried nimrod ... it's ok but I personally found the docs not excellent, which is similar to ruby but somehow the ruby syntax was much easier for my brain to handle than nimrod
<sargas>
jhass: so it figures the type when you define a variable/method, then it sticks with that type?
<shevy>
case user_input
<shevy>
of "":
<shevy>
:)
<jhass>
sargas: sort of
<shevy>
while not eof(stdin): var line = stdin.readline
<zenspider>
nimrod? a religious gem?
<jhass>
it knows union types, so a variable can have more than one type
<jhass>
and you can only call methods common to those types until you do a check for which type it actually has right now
<sargas>
shevy: him (former nimrod) seems very different
StoneCypher has quit [Ping timeout: 260 seconds]
vroomanj_ has joined #ruby
lele has quit [Quit: Coyote finally caught me]
<sargas>
jhass: smart, I will take a deeper look into it after I figure Ruby out
<jhass>
it's still in early development anyway ;)
<jhass>
lot's of things will probably still change
<sargas>
Ruby is just too sexy for me to not use it
<jhass>
yeah, I hope I can use crystal as an extension language for things that are just not efficient enough in ruby
<zenspider>
is this the ruby-esque one or is that crystal?
<jhass>
but a compiled language does have to give up a lot of ruby's dynamism
<sargas>
jhass: man... being able to have Crystal extensions in Ruby. Does that sound cool?
<jhass>
zenspider: crystal is the one with ruby-like syntax
apoorvparijat has joined #ruby
<zenspider>
ah. no. nim looks kinda like ML... ish
econerd4ever has quit [Remote host closed the connection]
<sargas>
jhass: thanks for the resource, much appreciated
<jhass>
probably achievable dream-goal is to have a crystal macro that's a Ruby class that generates a crystal class that automatically defines the bindings
Soda has quit [Remote host closed the connection]
<jhass>
currently that repo is more a PoC
<jhass>
that you can write extensions for ruby in crystal at all
centrx has joined #ruby
<sargas>
jhass: I'll look more into it...
<sargas>
but 1st I need to understand Procs
oleo__ has joined #ruby
oleo is now known as Guest70108
chipotle has joined #ruby
pwnz0r has quit [Remote host closed the connection]
<jhass>
chunks of code that save the context they're defined in and that you can pass around
patrick99e99 has joined #ruby
apoorvparijat has quit [Ping timeout: 256 seconds]
<jhass>
there's not much more to them
<sargas>
jhass: I'm liking where Rust is going though, no GC, lifetimes and stuff... but it is still a moving target...
<sargas>
code I wrote last month doesn't compile today
tjsousa has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
it0a has quit [Quit: WeeChat 1.0.1]
<jhass>
dunno, I think I actually like GC
Vile` has joined #ruby
<sargas>
and LLVMs are still above my level of comprehension
<sargas>
GC is fine for interpreted languages imo
AmirolAhmad has quit [Ping timeout: 265 seconds]
Guest70108 has quit [Ping timeout: 258 seconds]
AmirolAhmad has joined #ruby
djbkd has joined #ruby
<sargas>
but having the full control of memory usage usually means more freedom
valeriansaliou has joined #ruby
fabrice31 has joined #ruby
<sargas>
and more shooting yourself in the foot
<jhass>
I'm willing to trade a little bit of freedom if it saves me from ^ and doesn't annoy me with memory leaks and free'ing stuff too early
<jhass>
and doing that all the time manually really
<jhass>
in the general case of course
anibara has quit [Quit: anibara]
Shazaum has quit [Quit: This computer has gone to sleep]
<jhass>
programming languages are tools, no tools serves all usecases
bwr has quit [Quit: :q]
wjimenez5271 has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 258 seconds]
gsd has joined #ruby
lele has joined #ruby
x1337807x has quit [Ping timeout: 244 seconds]
hamakn has joined #ruby
apoorvparijat has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
reset has joined #ruby
valeriansaliou has quit [Ping timeout: 272 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
econerd4ever has joined #ruby
aspires has joined #ruby
cantonic has joined #ruby
aspires has quit [Client Quit]
<XxionxX>
banister That looks cool, I'll have to give it a try
<pontiki>
make it a way of life
mjuszczak has joined #ruby
<pontiki>
#pryeverywhere
AlSquire has quit [Quit: This computer has gone to sleep]
tier has joined #ruby
spicerack has joined #ruby
<XxionxX>
so much information @_@ overload
claptor has joined #ruby
alekst has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
ylluminarious has joined #ruby
<zenspider>
eh. ruby's learning curve is pretty gentle, overall. I like that most of the time, the answer is in the question already
<zenspider>
eg: Q:"how do I split a string into words?" A:"String#split"
<zenspider>
it's pretty intuitive. I've found a LOT of my students and mentees just needed to learn to try it out and usually already had the answer in their head... or were very close
avrc has joined #ruby
<zenspider>
other programming languages train you to go research ad nauseum before you try anytihng out. not so in ruby and other repl-strong languages
<zenspider>
(like racket, my current fav)
chipotle has joined #ruby
koglinjg has joined #ruby
pedahzur has quit []
veduardo has quit [Ping timeout: 244 seconds]
<XxionxX>
zenspider thanks for the tip! That Q&A thing is going to come in handy.
Kricir has quit [Remote host closed the connection]
<XxionxX>
My brain has a tiny amount of RAM so lots of things tend to overwhelm me at first :P I just keep learning and soon it's all in my long term memory and I don't even think about it
Megtastique has quit []
<Hijiri>
how much swap?
tokik has quit [Ping timeout: 260 seconds]
<XxionxX>
LOTS, once I learn things I can access them quickly.
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hijiri>
but swap is slow
<Hijiri>
swap is like notebooks or something
allcentury has joined #ruby
<Hijiri>
I don't think anyone uses notebooks to code
<Hijiri>
I guess the internet is the internet
<XxionxX>
Not for me, my brain treats everything like an SSD
rshetty has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
<Hijiri>
RAM is still much faster than an SSD
deric_skibotn has quit [Ping timeout: 258 seconds]
gsd has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
<XxionxX>
Yes, I agree the analogy is flawed
hmsimha has quit [Ping timeout: 252 seconds]
gsd has joined #ruby
narcan has joined #ruby
narcan has quit [Max SendQ exceeded]
<koglinjg>
I have an object that sometimes responds to the "owner" method and I want to use respond_to to check if it does and do something, otherwise do something else. The problem is respond_to?(:owner) always returns false even when I have an object that I can call owner on
<pontiki>
no model is perfect; some models are sometimes useful
b3itz has quit [Ping timeout: 246 seconds]
Kricir has joined #ruby
Mia has quit [Read error: Connection reset by peer]
<zenspider>
koglinjg: then either you're not talking to what you think you are or the object is implemented poorly
AmirolAhmad has quit []
alekst has joined #ruby
econerd4ever has quit [Remote host closed the connection]
perturbation has quit [Quit: Leaving]
<zenspider>
eg, if you implement method_missing, you should implement respond_to or respond_to_missing accordingly
econerd4ever has joined #ruby
gsd has quit [Client Quit]
brandon_ has quit [Ping timeout: 245 seconds]
<koglinjg>
zenspider, I am doing this in irb, and I can run project.owner (which returns an owner id) and then project.respond_to?(:owner) and it returns false
ninjazach has quit [Ping timeout: 258 seconds]
<pontiki>
is this in rails?
brandon_ has joined #ruby
conniemj_ has quit [Quit: (null)]
Megtastique has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
<XxionxX>
I like vim, it's hard at first but it gets easier the longer you use it
jenrzzz has quit [Ping timeout: 245 seconds]
<linocisco>
jerrett_, there is more choice using linux
jlast has quit [Remote host closed the connection]
<jerrett_>
indeed
<XxionxX>
Come to the linux side...
jlast has joined #ruby
<linocisco>
XxionxX, because vim has two complicated mode. edit mode and command mode. it is confusing. Most normal editing is easier with nano. but it has no colors
econerd4ever has quit [Ping timeout: 240 seconds]
duncannz has quit [Ping timeout: 240 seconds]
<linocisco>
XxionxX, i wish I could. I was ubuntu guy. but here at work, windows 7 is office standard
<jerrett_>
"complicated" mode
<jerrett_>
seriously, checkout cream, i wasn't being sarcastic
<jerrett_>
it's good
<XxionxX>
linocisco I use a livecd or liveusb at my work
tokik has joined #ruby
<XxionxX>
not that everyone can do that
<jerrett_>
i'm confused, your work standard is windows 7, but it's a ruby shop?
tier has quit [Remote host closed the connection]
<linocisco>
jerrett_, ruby is for personal career deveolopment for future.
<jerrett_>
ah-ha
<XxionxX>
you get used to the two modes of editing vim though
valeriansaliou has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 258 seconds]
radic has joined #ruby
<havenwood>
mahtennek: seems you could, dunno. this does look interesting, if you haven't looked at it yet: https://github.com/cerner/scrimp
jlast has joined #ruby
<mahtennek>
havenwood: i have looked at scrimp too. but have yet to figure how does the sinatra dsl route come in?
<mahtennek>
for instance, if i would want to do a simple login. I have the authentication of users with thrift service, looking at how i can bind that to sinatra
<mahtennek>
havenwood: okay i am looking at it now. so i have to configure the hook_path?
<linocisco>
atom is found nicer IDE
<linocisco>
how to run ruby file?
<linocisco>
how to run ruby file on Atom IDE?
studiotate has quit [Quit: Computer has gone to sleep.]
CrazyM4n has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<havenwood>
linocisco: atom-runner or execute-as-ruby plugins
<havenwood>
mahtennek: seems like it
jenrzzz has joined #ruby
<linocisco>
havenwood, i can't find that option
<mahtennek>
havenwood: there aren't any much examples out there besides the basic usage to thrift...
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood>
linocisco: Preferences > Packages
<shevy>
godd2 yeah, rubydoc confuses me as well that's why my documentation looks weird. one day I'll master it though
<shevy>
linocisco use notepad!
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iwishiwerearobot has joined #ruby
Lewix has joined #ruby
ghostmoth has joined #ruby
<linocisco>
may be command line is the only option. edit and compose program using IDE editor for readility and run on command prompt will be easier. I can't find option to run inside IDE
<havenwood>
linocisco: or Script looks like another plugin option that supports Ruby
<havenwood>
linocisco: Atom has a ton of plugins. You can find the plugins tab in the preferences.
<havenwood>
linocisco: but sure, use Pry
diegoviola has quit [Quit: WeeChat 1.0.1]
<havenwood>
linocisco: you can go back and forth between Atom and Pry easily
escapement has quit [Read error: Connection reset by peer]
<linocisco>
havenwood, thanks for your generous support. let me check
beef-wellington has quit [Ping timeout: 258 seconds]
ohaibbq has quit [Remote host closed the connection]
Lucky__ has joined #ruby
ohaibbq has joined #ruby
<benzrf>
use vim as editor
<benzrf>
atom is bullshit
<benzrf>
if you want supreme programmability just use Emacs
<benzrf>
no need to reinvent the OS
jlast has joined #ruby
<mahtennek>
havenwood: have you tried Thrift::ThinHttpServer before? I am getting a `<main>': uninitialized constant Thrift::ThinHTTPServer (NameError)
oo_ has quit [Remote host closed the connection]
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
braincrash has quit [Quit: bye bye]
<havenwood>
mahtennek: no i haven't. did you `require` it?
<mahtennek>
havenwood: i require 'thrift' i tried to require 'thin' & 'rack' but both i am getting the same error
sea_local has quit [Remote host closed the connection]
oo_ has joined #ruby
ringarin has quit [Ping timeout: 258 seconds]
sea_local has joined #ruby
Mothore has quit [Quit: Be back later ...]
ylluminarious has quit [Ping timeout: 245 seconds]
russt has quit [Quit: russt]
kish has quit [Read error: Connection reset by peer]
ylluminarious_ has quit [Ping timeout: 245 seconds]
kish has joined #ruby
bluenemo has joined #ruby
tobago has joined #ruby
oo_ has quit [Ping timeout: 258 seconds]
sea_local has quit [Ping timeout: 265 seconds]
studiotate has joined #ruby
russt has joined #ruby
mjuszczak has quit []
sea_local has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
AmirolAhmad has joined #ruby
jlast has joined #ruby
<unholycrab>
thanks Areessell
<unholycrab>
i may slopify my ruby script
goodenough has quit []
SCHAAP137 has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
kapil__ has quit [Quit: Connection closed for inactivity]
jlast has quit [Ping timeout: 258 seconds]
elvis452` has joined #ruby
kenneth has joined #ruby
lifenoodles has quit [Ping timeout: 244 seconds]
elvis4526 has quit [Remote host closed the connection]
lampd1 has joined #ruby
pu22l3r has joined #ruby
bluenemo has quit [Quit: Verlassend]
vinleod has joined #ruby
mahtennek has quit [Remote host closed the connection]
himsin has joined #ruby
jenrzzz has joined #ruby
mahtennek has joined #ruby
mjuszczak has joined #ruby
lw has quit [Quit: s]
mjuszczak has quit [Max SendQ exceeded]
yokel has joined #ruby
mjuszczak has joined #ruby
CrazyM4n has quit [Quit: Leaving]
oo_ has joined #ruby
lifenoodles has joined #ruby
Mongey has joined #ruby
ramfjord has joined #ruby
<shevy>
I am contemplating subclassing from OpenStruct, as in "class Foo < OpenStruct", but somehow in the back of my mind, I remember that this may have disadvantages. I am unsure why. Speed penalty perhaps?
<waxjar>
subclassing from Struct creates an extra class unnecessarily, don't know about OpenStruct though
Photism has joined #ruby
Channel6 has quit [Quit: Leaving]
IrishGringo has joined #ruby
o0oo0o has quit [Ping timeout: 250 seconds]
porfa has quit [Quit: porfa]
valeriansaliou has joined #ruby
fabrice31 has joined #ruby
<shevy>
subclassing from Struct creates an unnecessary extra class?
ghr has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
mjuszczak has quit [Ping timeout: 260 seconds]
<waxjar>
Struct.new returns a Class, which you immediately inherit from and never use
econerd4ever has joined #ruby
<waxjar>
NewClass = Struct.new(:a,:b,:c) { def cool_method; end } is preferred
<XxionxX>
heavenwood: Would you happen to know if that would fix the old version and keep all of my gems?
econerd4ever has quit [Remote host closed the connection]
iwishiwerearobot has quit [Ping timeout: 265 seconds]
Morkel has joined #ruby
econerd4ever has joined #ruby
<shevy>
default ruby on ubuntu does weird things with your gems; do a "gem env"
<havenwood>
XxionxX: you can have multiple ruby versions installed with apt and switch between them with update-alternatives. like: sudo update-alternatives --config ruby
<shevy>
the old gem directory will stay in place. you can backup it before you change version too, but I am quite sure it will remain the same
<shevy>
does update-alternatives also work on ruby.h ?
bluehavana has joined #ruby
Musashi007 has joined #ruby
econerd4ever has quit [Ping timeout: 258 seconds]
<XxionxX>
gem env? Is that a bash command? How do you switch between ruby versions? Is that the '--config ruby' you mentioned?
sigurding has joined #ruby
mjuszczak has quit [Ping timeout: 245 seconds]
AlexRussia has quit [Ping timeout: 264 seconds]
<havenwood>
XxionxX: `gem` is the RubyGems executable that ships with Ruby. yeah, you can switch with update-alternatives.
kiyote23 has quit [Remote host closed the connection]
bansalakhil has quit [Quit: bansalakhil]
kiyote23 has joined #ruby
konsolebox has quit [Remote host closed the connection]
kiyote23 has quit [Remote host closed the connection]
bansalakhil has joined #ruby
bansalakhil has quit [Client Quit]
<XxionxX>
Would anyone happen to know how to create an alternative link to the old ruby1.9.1 in ubuntu?
sigurding has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
<XxionxX>
I need to be able to switch back for my old gems to work
<pontiki>
sorry, XxionxX, i'm late to the convo; are you currently using a ruby version manager?
bansalakhil has joined #ruby
mroach has joined #ruby
jgrevich has quit [Quit: jgrevich]
<pontiki>
ah, i see you are not
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
<XxionxX>
I updated to ruby 2.1 and I'm not sure how to switch back when I need to
russt has quit [Quit: russt]
<pontiki>
XxionxX: havenwood has given the answer, using update-alternatives
AmirolAhmad has joined #ruby
bansalakhil has left #ruby [#ruby]
<XxionxX>
yes but when I 'update-alternatives --query ruby' it only displays ruby 2.1
procat has joined #ruby
<XxionxX>
and 'sudo update-alternatives --config ruby' produces a 'warning: forcing reinstallation of alternative /usr/bin/ruby2.1 because link group ruby is broken'
mahtennek has joined #ruby
<XxionxX>
I think I am missing something simple
<pontiki>
ah, hmm. i fear i am not familiar enough with it
<XxionxX>
From what I gather I need to make a link to the old ruby but I do not know how
djbkd has quit [Remote host closed the connection]
<XxionxX>
The closest I've got so far is 'update-alternatives --set ruby /usr/bin/ruby1.9.1' but it also throws an error :(
russt has joined #ruby
procat has quit [Ping timeout: 258 seconds]
sevenseacat has quit [Ping timeout: 240 seconds]
<XxionxX>
wow, this update-alternatives requires me to know what files to slave to the ruby1.9.1 for me to set it
valeriansaliou has joined #ruby
<XxionxX>
I have no idea what those files are
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
koglinjg has quit [Ping timeout: 246 seconds]
<pontiki>
i wonder if the old ruby version was not part of the alternatives
<pontiki>
it seems that update-alternatives is supposed to be run as part of an installation
<pontiki>
part of the post-install hooks
chinmay_dd has joined #ruby
Kricir has quit [Remote host closed the connection]
Techguy305 has quit [Ping timeout: 255 seconds]
<havenwood>
XxionxX: do you really need 1.9.3 at all? mind uninstalling and reinstalling brightbox 1.9.3 package?: http://brightbox.com/docs/ruby/ubuntu/
<havenwood>
XxionxX: 2.1.5 can do everything 1.9.3 can, just better. :)
craigp has joined #ruby
<XxionxX>
Well I was using the gosu and gosu tiled gem but I can't get it to install with 2.1
<XxionxX>
I updated all of my other gems but those aren't working :/
<XxionxX>
I would like to use the most up to date software but I'm suddenly having trouble all over
Megtastique has quit []
<XxionxX>
and I was trying to be able to switch back and forth so I could bridge the problems in the interim
Megtastique has joined #ruby
CustosL1men has joined #ruby
<havenwood>
XxionxX: i don't know why update-alternatives isn't working, i haven't run into that. i'm guessing if you reinstalled 1.9 from the brightbox package it'd start working, but maybe that defeats your purpose of gradual migration.
AlbertoCG has quit [Ping timeout: 256 seconds]
tagrudev has joined #ruby
oo_ has quit [Remote host closed the connection]
boombadaroomba has joined #ruby
AlexRussia has joined #ruby
klmlfl has quit [Remote host closed the connection]
<havenwood>
XxionxX: usually update-alternatives suffices to switch between apt ruby packages. in any case, chruby is a nice, simple Ruby version switcher: https://github.com/postmodern/chruby#readme
kenneth has joined #ruby
oo_ has joined #ruby
last_staff has joined #ruby
valeriansaliou has quit [Quit: Be back later ...]
kenneth has quit [Client Quit]
boombadaroomba has quit [Ping timeout: 244 seconds]
sinkensabe has quit [Remote host closed the connection]
<certainty>
:D
_mtr has quit [Ping timeout: 245 seconds]
apeiros_ has quit [Ping timeout: 260 seconds]
<XxionxX>
That did the trick!
surs has joined #ruby
aZaFred has quit [Quit: Leaving]
econerd4_ has joined #ruby
AmirolAhmad has joined #ruby
<XxionxX>
havenwood: Sweet! Full migration complete!
Musashi007 has quit [Quit: Musashi007]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
mloveless has quit []
fabrice31 has quit [Ping timeout: 265 seconds]
econerd4ever has quit [Ping timeout: 258 seconds]
kenneth has joined #ruby
valeriansaliou has joined #ruby
<certainty>
does ruby 2.1 still have memory leaks?
AmirolAhmad has quit [Remote host closed the connection]
<godd2>
certainty does ruby 2.0 have memory leaks?
anarang has joined #ruby
<certainty>
godd2: not that i know of
JohnBat26 has joined #ruby
<certainty>
i'm talking about mri here
<godd2>
oh by still you meant that 2.1 had memory leaks before
<certainty>
yeah
AmirolAhmad has joined #ruby
econerd4_ has quit [Remote host closed the connection]
kenneth has quit [Client Quit]
valeriansaliou has quit [Ping timeout: 244 seconds]
kenneth has joined #ruby
chrishough has joined #ruby
<havenwood>
certainty: i think they fixed the GC stuff a few versions back. i'm looking forward to the new GC we get for Christmas.
iwishiwerearobot has joined #ruby
amclain_ has quit [Quit: Leaving]
<certainty>
havenwood: ah ok thanks for the heads up. I'll keep an eye on it
agjacome has joined #ruby
kiyote23 has joined #ruby
aganov has joined #ruby
dc has joined #ruby
codecop has joined #ruby
nickjj has joined #ruby
kamil has joined #ruby
iwishiwerearobot has quit [Ping timeout: 245 seconds]
ht__th has joined #ruby
lemur has quit [Remote host closed the connection]
mistergibson has quit [Quit: Quitting ... be good to each other :)]
lemur has joined #ruby
<Fire-Dragon-DoL>
oh, my nemesis is still online, are you a night own IceDragon?
kiyote23 has quit [Ping timeout: 252 seconds]
Megtastique has quit []
dc has quit [Ping timeout: 258 seconds]
sinkensabe has joined #ruby
ebbflowgo has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ebbflowgo has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
<zenspider>
certainty: memory leaks?
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
ebbflowgo has joined #ruby
lemur has quit [Ping timeout: 258 seconds]
adac has joined #ruby
jlast has quit [Ping timeout: 264 seconds]
himsin has quit [Quit: himsin]
anaeem1_ has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
lemur has joined #ruby
Takle has joined #ruby
<certainty>
zenspider: i probably should've quoted the word memory leak. I was talking about the higher memory consumption that was interpreted as a leak when it was experienced. I was referring to: https://bugs.ruby-lang.org/issues/9607
<havenwood>
certainty: yeah, i was assuming you meant the short-lived objects accidental promotion to old-gen
wjimenez5271 has quit [Remote host closed the connection]
<havenwood>
thingy
maasha has quit [Ping timeout: 246 seconds]
AmirolAhmad has joined #ruby
Spami has joined #ruby
konsolebox has joined #ruby
Takle has quit [Ping timeout: 250 seconds]
uber_hulk has quit [Quit: leaving]
ebbflowgo has quit [Read error: Connection reset by peer]
AlbertoCG has joined #ruby
ebbflowgo has joined #ruby
fabrice31 has joined #ruby
bal has quit [Quit: bal]
Xeago has joined #ruby
bal has joined #ruby
ebbflowgo has quit [Client Quit]
Areessell has quit [Ping timeout: 264 seconds]
Musashi007 has joined #ruby
bal has quit [Client Quit]
lele has quit [Quit: Coyote finally caught me]
renderful has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
bal has joined #ruby
lele has joined #ruby
kish has quit [Read error: Connection reset by peer]
jnollette has joined #ruby
kish has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
bal has quit [Quit: bal]
lampd1 has quit []
agit0 has joined #ruby
Lewix has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 250 seconds]
rkday has joined #ruby
uber_hulk has joined #ruby
jlast has joined #ruby
AlbertoCG has quit [Ping timeout: 252 seconds]
mikepack has quit [Remote host closed the connection]
Sgeo has joined #ruby
charliesome has quit [Quit: zzz]
charliesome has joined #ruby
Snarkz has joined #ruby
charliesome has quit [Client Quit]
msgodf has quit [Remote host closed the connection]
sevenseacat has joined #ruby
msgodf has joined #ruby
himsin has joined #ruby
craigp has quit [Remote host closed the connection]
rkday has quit [Ping timeout: 250 seconds]
godd2 has quit [Remote host closed the connection]
cvtsx has joined #ruby
TgMts_ has joined #ruby
matled- has joined #ruby
anaeem1__ has joined #ruby
eka_ has joined #ruby
keen____________ has joined #ruby
evenh has joined #ruby
craigp has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
shortCircuit__ has quit [Ping timeout: 244 seconds]
codeitagile has joined #ruby
doritostains has quit [Ping timeout: 258 seconds]
workmad3 has joined #ruby
mikecmpbll has joined #ruby
Soda has joined #ruby
oo_ has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
oo_ has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
elcheckito has quit [Quit: WeeChat 1.0.1]
hs366 has quit [Ping timeout: 245 seconds]
ohaibbq_ has quit [Quit: Leaving...]
jarred has quit [Quit: jarred]
Stoge88 has joined #ruby
dc has joined #ruby
ghr has joined #ruby
kiyote23 has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
bahamas has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
rurban_ has left #ruby ["Leaving"]
dc has quit [Ping timeout: 240 seconds]
iwishiwerearobot has joined #ruby
ChoiKyuSang has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
<lupine>
hmm, upgrading a rails application, I'm getting 'invalid byte sequence in UTF-8 (ArgumentError)' moving from cukes 0.300ish to latest
<lupine>
(and rails2.3 to 3.2)
<sevenseacat>
thats a hell of a jump.
<lupine>
there's a lot of jumps going on all at the same time
<lupine>
I at least did the ruby1.8.7->1.9.3 separately
<sevenseacat>
thats a really bad idea.
ChoiKyuSang has joined #ruby
<lupine>
*shrug* the degree of coupling in rspec and cukes (especially early espec and cukes) to rails versions kind of makes it inevitable. I guess I could be more careful
<lupine>
rspec1 -> rspec3 went alright, at least
shortCircuit__ has joined #ruby
kiyote23 has quit [Ping timeout: 272 seconds]
<bahamas>
hello. what's a good ruby primer for someone with programming experience? (I've used Python, JavaScript, Lua, etc.) in the past
postmodern has quit [Quit: Leaving]
anaeem1__ has quit [Ping timeout: 264 seconds]
theotherstupidgu has quit [Ping timeout: 260 seconds]
<jheg>
bahamas The Programming Ruby book - DaveThomas is a good read
<jheg>
I’m reading it from novice but it seems to target novice and people with programming experience too
shortCircuit__ has joined #ruby
<bahamas>
jheg: I didn't mention this, but I'd prefer something shorter. I don't need hand holding. the Python tutorial is a good example of what I'm looking for, if you know it
boombadaroomba has quit [Ping timeout: 264 seconds]
Xeago has quit [Remote host closed the connection]
joonty has quit [Ping timeout: 256 seconds]
<bahamas>
eka_: not yet
<eka_>
bahamas: it's quite enjoyable
tkuchiki has quit [Remote host closed the connection]
anaeem1 has quit [Ping timeout: 264 seconds]
<bahamas>
I'll have to download it. the browser player isn't working for me
tkuchiki has joined #ruby
joonty1 is now known as joonty
webgen has joined #ruby
wjimenez5271 has joined #ruby
olivier_bK has quit [Ping timeout: 265 seconds]
mikecmpbll has quit [Quit: ciao.]
shortCircuit__ has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
agjacome_ has joined #ruby
agjacome_ has quit [Client Quit]
l3kn has quit [Ping timeout: 272 seconds]
tessi_zz has quit [Ping timeout: 272 seconds]
musicmatze has quit [Ping timeout: 260 seconds]
wjimenez5271 has quit [Ping timeout: 255 seconds]
asuka has quit [Ping timeout: 265 seconds]
<Kamuela>
say you wanted to use cinch to make an IRC bot. the typical development cycle would be connect, test rules, stop execution, reconnect, etc. if you wanted to connect but somehow separate the rules execution from the basic bits of the bot, how would you approach that?
Juanchito has joined #ruby
jlast has joined #ruby
VictorBjelkholm has joined #ruby
<Kamuela>
can you make ruby dynamically load ruby code from another source?
rylev has quit [Remote host closed the connection]
<avril14th>
well
<avril14th>
you can have ruby downloadfiles from somewhere
<avril14th>
and you can have ruby load code dynamically
agjacome has quit [Ping timeout: 265 seconds]
fabrice31 has quit [Remote host closed the connection]
tgandrews has quit [Quit: This computer has gone to sleep]
tokik has joined #ruby
Timgauthier has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
webgen has quit [Quit: ChatZilla 0.9.91 [Firefox 34.0.5/20141126041045]]
webgen has joined #ruby
shortCircuit__ has quit [Ping timeout: 250 seconds]
AugustoC has joined #ruby
startupality has joined #ruby
tessi_zz has joined #ruby
asuka has joined #ruby
l3kn has joined #ruby
<eka_>
Kamuela: you want to build an IRC bot from scratch? there are some ruby frameworks available for that though
musicmatze has joined #ruby
<Kamuela>
eka_: using cinch
himsin has quit [Quit: himsin]
<eka_>
Kamuela: right :D
tgandrews has joined #ruby
ringarin has joined #ruby
georgesmith has joined #ruby
kiyote23 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
fabrice31 has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
webgen has quit [Ping timeout: 244 seconds]
rylev has joined #ruby
ajaiswal has joined #ruby
ajaiswal has quit [Client Quit]
webgen has joined #ruby
Macaveli has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
mikepack has joined #ruby
kiyote23 has quit [Ping timeout: 264 seconds]
arclitgold has joined #ruby
duncannz has quit [Remote host closed the connection]
nasta has quit [Read error: Connection reset by peer]
<maasha>
I don't dare ask in C - they always despise me
<canton7>
I can see why ;) there's almost no information in that gist
jlast has quit [Ping timeout: 258 seconds]
<maasha>
I thing that decreasing loops are faster than increasing (allows compiler to look into the future). Pointer magic might be better?
<apeiros_>
you increment the bytes of a string?
<apeiros_>
i.e. "abc" -> "bcd"?
<apeiros_>
I see how this can go wrong with "\xff"
<canton7>
maasha, the compiler is *significantly* smarter than you
<canton7>
I cna almost guarentee that any sort of little micro-optimizations you try and make, the compiler's already thought of it
<maasha>
canton7: *sigh* are you from #c as well ? ;o/
<canton7>
nope, never been there
<maasha>
apeiros_: I am incrementing values in an integer array.
TPBallbag has joined #ruby
<apeiros_>
integer array? then why `StringValuePtr`?
<maasha>
apeiros_: it works with type conversions. Are there other ways?
<apeiros_>
I somewhat doubt it does what you expect from it in the first place…
shortCircuit__ has quit [Ping timeout: 255 seconds]
codeitagile has quit [Quit: Leaving.]
<apeiros_>
my C ruby is not strong, though. so I doubt I can be of help. (that is - with reasonable effort on my part)
<claf>
how about, stackoverflow
<maasha>
apeiros_: but it does. I create a null string in ruby for use as a memory buffer (so that it gets allocated and GC'ed) and then I use it as a integer array in C.
SOLDIERz has joined #ruby
<maasha>
it is a bit crufty but is really amazingly handy.
procat has joined #ruby
<apeiros_>
maasha: when you said "integer array" I assumed "integer array in the ruby space"
<apeiros_>
maasha: but in that case, "\xff" is on the table again
<maasha>
apeiros_: no, in C space :o(
rshetty has joined #ruby
<maasha>
in Ruby it is a string of "\0". In C it is what I make of it.
GeorgesLeYeti has joined #ruby
kish has quit [Read error: Connection reset by peer]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kish has joined #ruby
timonv^ has joined #ruby
livathin_ has joined #ruby
mikecmpbll has joined #ruby
procat has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
Mon_Ouie has joined #ruby
rshetty_ has quit [Ping timeout: 258 seconds]
livathinos has quit [Ping timeout: 255 seconds]
ghr has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
<maasha>
It is way faster than NArrays
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mikepack has quit [Ping timeout: 244 seconds]
blizzy has quit [Ping timeout: 258 seconds]
asmodlol has joined #ruby
shortCircuit__ has joined #ruby
JBreit has quit [Ping timeout: 264 seconds]
wjimenez5271 has joined #ruby
grn has joined #ruby
DaniG2k has joined #ruby
AlbertoCG has joined #ruby
AlSquire has joined #ruby
<DaniG2k>
hey guys, I'm trying to write a regex that matches quotation marks but ignores them if they're inside an HTML element
<DaniG2k>
so
<DaniG2k>
<a href="some url">Some text with a "quote" in here</a>
Tranquility has quit [Quit: Connection closed for inactivity]
jlast has quit [Ping timeout: 258 seconds]
<apeiros_>
crome: isn't that the same canton7 linked to?
<crome>
apparently it is
<apeiros_>
I really wish there was `gem install-debs some.gemspec`
<crome>
I haven't checked his link
<ddv>
crome: then we don't check your link
* apeiros_
loses since they checked both links
<ddv>
yep :)
<crome>
ddv: oh no, don't do that to me :'(
<ddv>
(:
shredding has quit [Quit: shredding]
red_horned_rihno has quit [Ping timeout: 258 seconds]
<DaniG2k>
I learned about define_method recently, ghost methods, eval and all sorts of class method stuff
<DaniG2k>
metaprogramming is cool :D
shortCircuit__ has quit [Ping timeout: 265 seconds]
<ddv>
just don't do something weird in your gems that effect my project
<DaniG2k>
hahah
phutchins has joined #ruby
<crome>
metaprogramming is what got me into ruby in the first place. and then when it was my job to code in ruby it became the feature of the language I tried to avoid using the most
konsolebox has quit [Remote host closed the connection]
<apeiros_>
yeah, == 0
<apeiros_>
ruby does not include the program name in ARGV
<apeiros_>
so: ARGV.empty?
Flcn has quit [Read error: Connection reset by peer]
<eka_>
aswen: ^^^ that is better :D
hamakn has joined #ruby
<aswen>
yeah, but i want to print the options helpteksts by doing opts in opt_parser
Flcn has joined #ruby
<eka_>
apeiros_: I come from python and always forget about things like empty? nil? etc... :P
<aswen>
I do have that now (if args.empty?
<aswen>
opts
<aswen>
end
<aswen>
)
<aswen>
oh crap
<aswen>
puts opts
<aswen>
ha!
<aswen>
works
enebo has joined #ruby
Abhijit has quit [Remote host closed the connection]
sprihodko has joined #ruby
hdrv has quit [Client Quit]
<Ionian>
shevy, do you know of any language translator module?
<aswen>
thanks for helping me!
<eka_>
anyone here uses Ohm? what to use for fixtures? pure ruby?
<jhass>
p opts if ARGV.empty? # Long live the modifier-if!
<claf>
ruby is like, a real languaeg
<workmad3>
aswen: don't forget to 'exit' or 'exit!' in that case too ;)
<workmad3>
aswen: unless it's valid to have no options... at which point, why are you printing out usage? :)
<aswen>
yeah I hvae that, left it away in my paste to be quick ;-)
sailias has joined #ruby
tristanp has joined #ruby
<workmad3>
aswen: :)
<aswen>
it's not valid (in this case) to give no options
atomical has quit [Ping timeout: 258 seconds]
<shevy>
Ionian not really. I use a custom german-english yaml file
sailias has quit [Client Quit]
hamakn has quit [Ping timeout: 265 seconds]
sailias has joined #ruby
<shevy>
I once even had about 40 chinese/singaporean words
Techguy305 has joined #ruby
atomical has joined #ruby
<apeiros_>
oh dear. Bundler.setup docs are outstanding.
<workmad3>
apeiros_: I'm sensing some friday sarcasm there:P
<workmad3>
bah, stupid flakey space bar
<shevy>
I don't think it is sarcasm!
<shevy>
he just loves bundler very much
<mbeasley>
anyone have an idea why calling `file -Lb` on a file from a background worker using resque would cause a "Failed with exception of Interrupted system call" error *some* of the time?
<eka_>
\msg frodsan hola
<shevy>
though I concur with your workmad3, he just did not use enough !!! either way
<eka_>
:P
<shevy>
I'll give it a whip ...
<shevy>
oh dear!!!!! Bundler.setup docs are outstanding!!!!!!!!!!!
<jhass>
mbeasley: out of file descriptors maybe?
<sevenseacat>
lol
<shevy>
whatcha say workmad3
<jhass>
mbeasley: underlying message would be interesting
<Ionian>
Does anyone know any language translator?!!?
rdark has quit [Quit: leaving]
<jhass>
Ionian: yes, opal for example
<workmad3>
shevy: that many !s is obviously only possible when you're being absolutely sincere...
<Ionian>
ok..
<workmad3>
Ionian: translate.google.com ? :P
<jhass>
he never specified human language ;)
<Ionian>
Does anyone know any language(Not programming ones) translator?!!?
<shevy>
hmm what ways do we have to keep data in a specific module (e.g. pertaining to that module)? constants defined in a module is one way ... can you access and manipulate instance variables defined in a module directly?
<shevy>
and don't forget the outstanding babelfish
kobain has joined #ruby
<Ionian>
sigh
<mbeasley>
jhass: it was extremely unverbose (is that a word?).
<Ionian>
I want a ruby gem that you can translate from engligh to any language
<shevy>
for sure it is now a real word
<Ionian>
a ruby gem to do that
<shevy>
if George Bush can coin new words, so can you
<Ionian>
and none of you guys are helping ;-;
anaeem1 has joined #ruby
<jhass>
mbeasley: my try to catch it and make it more verbose?
<shevy>
Ionian and what if such a gem does not exist
<bhaak>
what for? the translation will most likely be wrong
<workmad3>
Ionian: that's because you're asking for stuff that doesn't really exist
<apeiros_>
workmad3: why sarcasm? it's literally outstanding. in that it's not existent. puns… so nice :)
<apeiros_>
(yes of course sarcasm)
<shevy>
aha!!!!!!!!!
<mbeasley>
jhass: alright. give me a bit. it's a very long running job.
<jhass>
Ionian: would it wrap an API of something?
<workmad3>
apeiros_: ah, it stands out due to its absence... I get ya
anaeem1 has quit [Read error: Connection reset by peer]
<apeiros_>
workmad3: afaik outstanding can mean both, excellent and absent
jY has joined #ruby
<Ionian>
jhass, yes
<jhass>
apeiros_: but don't you just know what it does? :P
<Ionian>
workmad3, Why wouldnt it?
tgandrews has joined #ruby
<workmad3>
apeiros_: it can mean 'not done' more than 'absent'
<apeiros_>
jhass: I do. I'm interested in what I don't know about it.
<jY>
i have "web10-eu.manage.com"=>{"fqdn"=>"web10-eu.manage.com"}} how can i get the value out without knowing the key.. its always a single key/val in the array
<jhass>
Ionian: did you decide on which something that would be?
<apeiros_>
jhass: especially how require 'bundler/setup' and Bundler.setup relate to each other. I suspect the former is just Bundler.setup without arguments.
<jhass>
I think so, yes
<jhass>
let's just look at the code!
<workmad3>
Ionian: because machine language translation is still an active research area, and solutions in the area are, on the whole, proprietary and shit
<shevy>
and when you make like massive changes to code, documentation can become outdated, so you have to keep track of what changed
Kricir has joined #ruby
_maes_ has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
anaeem1_ has joined #ruby
sevenseacat has quit [Remote host closed the connection]
<certainty>
Ionian: and? :D
<shevy>
workmad3, yeah, the bundler example above by jhass showed that
sinkensabe has quit [Remote host closed the connection]
<Ionian>
I catn comprehend
<shevy>
<jhass> let's just look at the code!
{xenomorph} has joined #ruby
<Ionian>
gives me errors
mjuszczak has joined #ruby
Kricir has quit [Remote host closed the connection]
<shevy>
and what are you doing
<shevy>
what is: require 't2etranslator' giving you
<certainty>
head ache
<shevy>
lol
<Ionian>
it gives me
{xenomorph} is now known as xenomorph
<shevy>
yes?
<certainty>
ui, stormy outside
<shevy>
certainty well normal weather in germany!
<Ionian>
Nothing
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lessless has joined #ruby
<workmad3>
hahaha
<shevy>
Ionian start irb; do it again
<Ionian>
What should be the puts string?
<workmad3>
just looked at the source for that t2etranslate
Takle has quit [Ping timeout: 258 seconds]
anaeem1 has quit [Ping timeout: 240 seconds]
<shevy>
Ionian what puts string, who mentioned that
<Ionian>
hold up
<workmad3>
it constructs a google-translate URI with the text to translate and then parses the resulting HTML through nokogiri to pull out the translation
<shevy>
I tell you two possibilities of outcomes
<shevy>
(1) LoadError: cannot load such file -- t2etranslator
<shevy>
(2) true
<workmad3>
(assuming it all still works... hasn't been updated for a while)
<shevy>
Nothing is not in the possible options unless I really forgot something
einarj has quit [Remote host closed the connection]
<Ionian>
I got ture
<Ionian>
true
<shevy>
ture
<shevy>
ok
<workmad3>
Ionian: 'true' == 'required'
<shevy>
let's try in irb the example
<shevy>
T2etranslator.translate('love')
<shevy>
that's a really strange API btw
valeriansaliou has quit [Ping timeout: 272 seconds]
<jhass>
just don't use that gem, it should be yanked
<shevy>
and btw if he uses translate.google.com anyway, you could just rewrite that thing in like 10 minutes or so
<Ionian>
loooool
<Ionian>
I cant though
<Ionian>
im a noob
sigurding has quit [Quit: sigurding]
<shevy>
nah
<shevy>
it's just a matter of how much time spent
<jhass>
Ionian: click on the source code link
tier has quit [Remote host closed the connection]
<jhass>
tell me which gem that repository is for
icbm has joined #ruby
Takle has joined #ruby
<Ionian>
source code link on the website?
surs has quit [Quit: leaving]
sigurding has joined #ruby
<workmad3>
Ionian: on the rubygems page for the gem
<jhass>
on rubygems.org
<Ionian>
ok
<workmad3>
(the gem got renamed, by the looks of things... new version is still broken though)
cassianoleal has joined #ruby
<Ionian>
if this gem uses open_uri
<Ionian>
I have the open-uri-redirection gem to fix
kamilc__ has joined #ruby
<shevy>
workmad3 hehe
boombadaroomba has quit [Ping timeout: 272 seconds]
<Ionian>
ok
<Ionian>
im at github src
ndrei has joined #ruby
kish has quit [Read error: Connection reset by peer]
tier has joined #ruby
josephndenton has joined #ruby
Pupeno has quit [Remote host closed the connection]
kish has joined #ruby
Channel6 has joined #ruby
dfinninger has quit [Remote host closed the connection]
<Ionian>
now wut
iwishiwerearobot has quit [Quit: >:(]
arietis has joined #ruby
dfinninger has joined #ruby
mjuszczak has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<bankair>
Hi guys
Hanmac has quit [Ping timeout: 265 seconds]
<workmad3>
Ionian: you read
<bankair>
I'm encoutering a small rack middleware issue
bahamas has joined #ruby
<bankair>
I swapped the web server of my application from thin to unicorn
mjuszczak has quit [Client Quit]
<bankair>
An ActionDispatch:::ParamsParser#call exec time increased from 0.5 ms to 25 ms
mary5030 has joined #ruby
anarang has quit [Quit: Leaving]
<bankair>
Any idea on that ? :)
dfinninger has quit [Ping timeout: 255 seconds]
<bankair>
(I also changed my controllers to metal
<bankair>
)
Ionian has quit [Ping timeout: 246 seconds]
bahamas has quit [Client Quit]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
startupality has joined #ruby
procat has joined #ruby
AmirolAhmad has joined #ruby
skrite has joined #ruby
<shevy>
hmm... can "var" be made optional in javascript?
<certainty>
shevy: it changes meaning
<shevy>
I find it quite distracting... var element = document.getElementById("header");
<ericwood>
wait for ES6
<certainty>
my js is rusty but i think without var you create a global
<ericwood>
correct
<shevy>
certainty ack
<tristanp>
there's no real way around var, but it is helpful imo
<ericwood>
you can put 'use strict' inside your closures to force a stricter mode that ignores all variable declarations without var
<tristanp>
easier to read someone's code when you know where they're creating the variables
<ericwood>
I typically do this...if you want to make something global you have to explicitly say "window.foo"
<ericwood>
it's ES5's transitional stuff
<certainty>
in which case it only works in browsers?
<shevy>
tristanp but I already know; the = assignment gives me as a human being enough information for that
<certainty>
or is that available even when not evaled in the browser?
<ericwood>
idk how node, etc. handle it
<ericwood>
if you're working with those you can just go ahead and use most ES6 features though
Kricir has joined #ruby
<shevy>
in window.foo, window is a global?
<tristanp>
shevy: '=' gets used when you change variables too
<tristanp>
in node.js there is a global rather than window
rshetty has joined #ruby
<ericwood>
in the browser window is the global "scope" (it's actually an object)
<skrite>
hey all, i have rvm with two versions of ruby installed. Most of my code uses 1.8.7, but i have a need to run some scripts as 1.9. Is there a way in the script to select the ruby version?
rbennacer has joined #ruby
<ericwood>
skrite: "rvm use 1.9"
Guest47224 has quit [Ping timeout: 265 seconds]
Hanmac has joined #ruby
<hanmac1>
skrite: drop 1.8.7
it0a has joined #ruby
rbennacer has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
tier has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
kedare has quit [Quit: WeeChat 1.0.1]
Mothore has joined #ruby
rbennacer has joined #ruby
<skrite>
ericwood: thanks, hanmac1 dropping 1.8.7 will break a lot, a lot, a lot of website code.
<certainty>
it's worth the hassle. we've went through that as well
DaniG2k has quit [Quit: leaving]
coreyfinley has joined #ruby
<hanmac1>
skrite: do you still use Win95 or do did you manage to drop that too?
_mtr has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jshultz has joined #ruby
Spami has joined #ruby
<skrite>
hanmac1: i am not writing anything new with 1.8.7 (just maintaining what exists), but there are three very large websites that i dont want to rewrite just to run a newer version of ruby. One of those "it isn't broken" kinda things
nasta has joined #ruby
tier has joined #ruby
davedev24_ has quit [Ping timeout: 258 seconds]
<skrite>
so if i dont say rvm use 1.9 or somesuch, the version that is default will still be default, right?
<apeiros_>
yes
<hanmac1>
skrite: ruby1.8.7 is very much broken and will not get any updates
valeriansaliou has joined #ruby
apeiros_ has quit [Remote host closed the connection]
<skrite>
hanmac1: ah
cantonic has quit [Ping timeout: 264 seconds]
chinmay_dd has quit [Quit: Leaving]
<skrite>
apeiros: thanks !
apeiros_ has joined #ruby
_mtr has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
einarj has joined #ruby
davedev24_ has joined #ruby
Pupeno has joined #ruby
einarj has quit [Remote host closed the connection]
<eka_>
can I use vcr without webmock?
vinleod has joined #ruby
nrsk has joined #ruby
Takle has quit [Remote host closed the connection]
jeanlinux has joined #ruby
Takle has joined #ruby
coderhs has joined #ruby
rippa has joined #ruby
russt has quit [Quit: russt]
<coreyfinley>
eka_: I believe it depends on your usage. I use it with out webmock when spec'ing API wrappers
Takle_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
apeiros_ has quit [Ping timeout: 272 seconds]
hornairs has joined #ruby
dfinninger has joined #ruby
<eka_>
coreyfinley: will try just now... but I do a very simple test, that don't need mock... so I was wondering if I can left out the hook_into
<shevy>
you can omit the --ignore-dependencies perhaps
oleo__ is now known as oleo
ndrei has joined #ruby
Photism has quit [Quit: Leaving]
Takle has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
_mtr has joined #ruby
<linocisco>
shevy, and then where should I put that .gem file?
tier has quit [Remote host closed the connection]
sambao21 has joined #ruby
diegovio1 has quit [Changing host]
diegovio1 has joined #ruby
diegovio1 is now known as diegoviola
<shevy>
linocisco did you install it via gem install yet
<shevy>
if you did, you have it in your base gem directory
<shevy>
then you can start irb; and do require 'rake' and it will return true
<shevy>
try that
linocisco has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
<shevy>
btw I have tried it on a win 8.1 box about 5 days ago and gem install worked perfectly well there
allcentury has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
dfinning_ has joined #ruby
hanmac1 has quit [Quit: Leaving.]
red_horned_rihno has joined #ruby
rpag has joined #ruby
_mtr has quit [Ping timeout: 244 seconds]
dh64 has quit [Quit: Konversation terminated!]
jaequery has joined #ruby
hyperdrive has joined #ruby
dfinnin__ has joined #ruby
dfinning_ has quit [Read error: Connection reset by peer]
rshetty has quit [Ping timeout: 272 seconds]
rshetty_ has joined #ruby
oleo has quit [Quit: Verlassend]
hyperdrive is now known as hdrv
hdrv has quit [Changing host]
hdrv has joined #ruby
oleo has joined #ruby
jdripper has quit [Quit: Leaving.]
allcentury has quit [Ping timeout: 244 seconds]
samuel02 has quit [Remote host closed the connection]
rubynewby has joined #ruby
allcentury has joined #ruby
bahamas has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ninjazach has joined #ruby
troyready has quit [Remote host closed the connection]
Techguy305 has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
msgodf has quit [Ping timeout: 258 seconds]
Daniel__^_^ has joined #ruby
<rubynewby>
I'm trying to understand what the '&' means here https://paste.fedoraproject.org/159177/40255614/ and why I need it for the even? method but not the addition '+' method? Any tips appreciated
lw has quit [Quit: s]
jfran has joined #ruby
<canton7>
rubynewby, look up Symbol.to_proc
Danishman has joined #ruby
<shevy>
.reduce has one argument there, the symbol :+
<canton7>
the & is taking the symbol :even?, and turning it into a proc which accepts and object, calls .even? on it, and returns the result
<coreyfinley>
#map(&:even?) is the same as #map{|x| x.even?}
fmcgeough has quit [Quit: fmcgeough]
<canton7>
#reduce and #inject were around before the Symbol.to_proc stuff was introduced - so they can accept some stuff as just a plain symbol
<canton7>
they provide a bit of special extra behaviour, if you like, for historical reasons
<droidburgundy>
ruby newb here... what should I look at first if I getting OptionParser::InvalidOption errors when running a rby script from a bash script but not if I run it from cli myself
<agent_white>
I think the mission today is to try to sandbawks rubee.
GeorgesLeYeti has quit [Quit: Leaving]
kish has quit [Read error: Connection reset by peer]
kish has joined #ruby
rylev has quit [Remote host closed the connection]
DLSteve_ has joined #ruby
aarwine has joined #ruby
wolf4ood has quit [Quit: (null)]
<aarwine>
rbenv during install hardcodes #! lines with the path that the rbenv install went to. Is anyone familiar with a way to define that path?
DLSteve has quit [Ping timeout: 258 seconds]
IrishGringo has joined #ruby
bahamas has joined #ruby
Klumben has joined #ruby
triple_b has joined #ruby
wallerdev has joined #ruby
baroquebobcat has joined #ruby
samuel02 has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
peterhu_ is now known as peterhu
fandi has joined #ruby
Flcn has quit [Quit: Be back later ...]
sailias has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
<havenwood>
aarwine: I'd suggest just switching from rbenv/ruby-build to chruby/ruby-install, which support switching to Rubies in arbitrary places and installing Rubies wherever you'd like.
karmatr0n has joined #ruby
jcutrell has joined #ruby
dfinnin__ has quit [Remote host closed the connection]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
Guest86742 has quit [Remote host closed the connection]
lw has joined #ruby
<bahamas>
havenwood: hey. do you want to help me with that issue from yesterday regarding vagrant and serverspec?
<havenwood>
aarwine: Also you can install Rubies before their definitions are added securely by providing an MD5 or SHA1/256/512. Package manager packages are used instead of shipping them separately like ruby-build does, a potential security nightmare since most are unaware they're doing it. The code is simpler. There are more considerations paid to security. No rehash. Etcetera.
<aarwine>
havenwood: does it define a function over my cd?
<aarwine>
:(
ebbflowgo has quit [Quit: ebbflowgo]
<havenwood>
aarwine: no
<havenwood>
aarwine: it does not hook cd
jakobhans has joined #ruby
bigkevmcd has joined #ruby
aspires has quit []
jakobhans has quit [Read error: Connection reset by peer]
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
fabrice31 has joined #ruby
<bradland>
aarwine: ruby-build (which I use to install single-versions of ruby on servers) accepts a path
pietr0 has joined #ruby
Megtastique has joined #ruby
<pipework>
ruby-install is much nicer.
allcentury has quit [Ping timeout: 255 seconds]
<pipework>
aarwine: I don't know why people think the overriding of cd is as big a deal as they say.
<pipework>
You're probably not reading the open source software you use anyways, who cares whether code you never inspect does things on cd as opposed to anything else it can do.
<aarwine>
pipework: because i'm an ops guy not a batshit crazy ruby guy
wald0 has joined #ruby
<pipework>
aarwine: That has nothing to do with it.
<aarwine>
we don't need monkey patching posix utilties
<havenwood>
aarwine: It just properly sets env vars. There's optional .ruby-version auto-switching support which uses zsh preexec_functions or bash trap DEBUG (too bad bash doesn't have preexec_functions and chpwd_functions...): https://github.com/postmodern/chruby#auto-switching
<bradland>
that’s dogma, not a reason
<pipework>
If you aren't reading the software you're using, an argument against overriding cd is about philosophy, not security.
<aarwine>
bradland: taht's the problem with overriding cd; it's dogma, it's doing something I don't expect
<aarwine>
I'd like it to cd
<pipework>
It does cd.
<aarwine>
I didn't come here for a religious flame war.
<bradland>
dogma is not associated with expectations
fabrice31 has quit [Ping timeout: 258 seconds]
<bradland>
but yeah, try not to evangelize tools
<pipework>
I don't think he meant that overriding cd is dogma. I think he meant that your distaste for it is dogma.
<bradland>
use what you like, but the “it hooks cd and that’s bad mkay” stuff is toxic
Stalkr_ has joined #ruby
<aarwine>
rbenv, chruby, rvm all try to seperate system rubies from app rubies. Why would we then put something that fucks with the system if our goal was seperation?
rjc_ has quit [Quit: Konversation terminated!]
ghr has quit [Ping timeout: 272 seconds]
<shevy>
man
<bradland>
“fucks with the system” is not a technical argument
<pipework>
aarwine: Are you reading the source of the ruby manager's your running or anything else?
<shevy>
reading the source code sometimes is much better than reading the documentation
<aarwine>
Why do we need the app then to muddle with the system cd? It doesn't make any sense.
<pipework>
aarwine: It's not a system cd.
<bradland>
for convenience
<pipework>
It's overriding a builtin for the shell as a function.
tristanp has quit [Remote host closed the connection]
<pipework>
The 'system cd' is fine.
<bradland>
if you do not like that trade-off, use something else
jakobhans has joined #ruby
<havenwood>
pick your poison
<aarwine>
Ok, let me rephrase, I'm not using rvm and you wont' convince me otherwise
<aarwine>
So if you want to keep typing that's fine, I'll *plonk*
<bradland>
super
Areessell has joined #ruby
_beechnut1 has joined #ruby
<pipework>
At least that's an argument that doesn't pretend to be cogent and technical.
<aarwine>
I'll likely be happy to debate it at home when I've had some drinks :X
<pipework>
aarwine: Come back, it's a fun argument. I'm not firmly in the camp that overriding cd is perfectly always good, but the general opinion that it's bad is also bad.
<havenwood>
aarwine: it's near the simplest thing that can possibly work, and it works great.
<pipework>
Mmm, chruby and ruby-install. Small, simple, tested, clean.
<havenwood>
:)
_beechnut2 has joined #ruby
_beechnut has quit [Ping timeout: 244 seconds]
<bradland>
i will vouch for chruby. postmodern (the author) is a great rubyist
klmlfl has quit [Remote host closed the connection]
kenneth has joined #ruby
<bahamas>
in a 'normal' serverspec directory layout, there is a file that contains 'set :backend, :ssh'. if I put that in a file, I get an error about undefined 'set'.
DrCode has quit [Ping timeout: 250 seconds]
klmlfl has joined #ruby
<bahamas>
someone mentioned yesterday something about namespaces. I don't have a namespace, probably because I'm not using rake
<havenwood>
shevy: it will return `false` and not reload the code
<shevy>
ah ok
<havenwood>
bahamas: but you're having new errors now, yeah?
<bahamas>
because I removed the 'set'.
_beechnut2 has quit [Ping timeout: 258 seconds]
<havenwood>
it didn't belong where you had it
<bahamas>
in the original layout, it was in a file. but the original layout is ran with rake
CustosL1men has joined #ruby
<bahamas>
I hoped I would be able to use this plugin before becoming proficient in ruby
<havenwood>
bahamas: I'd vote first getting the dependency and symlink Failures resolved. I think #vagrant will probably be the most adept at helping there.
<bradland>
aarwine: have a look in to RBENV_ROOT
<havenwood>
bahamas: We can halp with the Ruby part but #vagrant is probably best for their DSL.
mesamoo has joined #ruby
<bradland>
it’s an environment variable which lets you set the install location for rbenv
DrCode has joined #ruby
<bradland>
rbenv appears to work relative to that location in pretty much all cases
<bahamas>
havenwood: which dependency failure?
<bradland>
i can’t find any support for installing rubies to different locations
bmichelsen has joined #ruby
<aarwine>
bradland: Yea, but I'm actually trying to build an artifact on a build server, so if I change that it will no longer be built int the workspace
andll has joined #ruby
<havenwood>
bradland: Package XXX should be installed.
<havenwood>
bradland: oops, sry - bahamas ^
<aarwine>
I think my actual problem is with ruby-build because that's the piece that is hardcoding shebangs to versions
<bradland>
aarwine: in that case, i’d probably hit ruby-build directly
klmlfl has quit [Remote host closed the connection]
jordsmi has joined #ruby
<aarwine>
bradland: ^5
<bradland>
you can pass a path to ruby-build
klmlfl has joined #ruby
<aarwine>
OH GOSH
* havenwood
coughs, **ruby-install**
max96at|off is now known as max96at
<bahamas>
havenwood: that's serverspec DSL testing that the package should be installed
<bahamas>
the actual problems are at the NameError line
Val__113 has joined #ruby
damic has joined #ruby
<bahamas>
havenwood: btw, can you recommend a good intro to ruby for programmers? I don't need handholding
<bahamas>
pipework: true. I take as a reference the python tutorial, which is not for beginner programmers. it's for people with programming experience
craigp has joined #ruby
<bahamas>
I was hoping there was something like that for Ruby
Megtastique has quit []
Shazaum has joined #ruby
<bahamas>
j2p2: that looks useful. thanks!
<j2p2>
np!
Spami has quit [Client Quit]
rshetty has quit [Ping timeout: 244 seconds]
<havenwood>
bahamas: for example, The Ruby Programming Language starts with a Sudoku solver implementation
Spami has joined #ruby
<bahamas>
one question. is there a function that returns an object's attributes?
<pipework>
bahamas: You'd have to write it. Also, they're called methods.
<havenwood>
ls
Spami has quit [Client Quit]
<bahamas>
pipework: I was referring to actual attributes that hold values. these don't exist in ruby?
Spami has joined #ruby
<havenwood>
in the Pry REPL the `ls` command is handy for looking at objects
<bahamas>
oh
LouisRoR1 has quit [Ping timeout: 272 seconds]
<bradland>
bahamas: look in to Ruby’s reflection features
<pipework>
bahamas: There's nothing really like 'attributes', there's instance variables. But yeah, pry has `ls`
<havenwood>
bahamas: everything is accessible, just depends on what you mean
allcentury has joined #ruby
<bahamas>
havenwood: I'm usually looking at an object to remember what methods it has
<bahamas>
then I do help(obj.method)
<bradland>
pry is great for that
<bahamas>
I don't know if the latter is possible in ruby
Pupeno has quit [Ping timeout: 265 seconds]
<shevy>
you can define a help method
<shevy>
that should do that
<shevy>
ironically I am now working on a class that will give me the comments of a method
AmirolAhmad has quit [Ping timeout: 265 seconds]
<bahamas>
shevy: do ruby functions have docstrings?
econerd4ever has quit [Read error: Connection reset by peer]
econerd4ever has joined #ruby
<havenwood>
bahamas: gem install pry pry-doc
maletor has joined #ruby
<havenwood>
bahamas: then inside `pry`, check out `help`.
<havenwood>
bahamas: then docs for each command, like: help gist
econerd4ever has quit [Read error: Connection reset by peer]
boombadaroomba has joined #ruby
econerd4ever has joined #ruby
mary5030 has quit [Remote host closed the connection]
<bahamas>
btw, the page above says that 'require' is the equivalent of python's 'import'. my impression is that it's not exactly true. require imports all names in a module, no?
Rodya_ has quit [Read error: No route to host]
Megtastique has joined #ruby
mary5030 has joined #ruby
kenneth has joined #ruby
existensil has joined #ruby
IrishGringo has quit [Ping timeout: 258 seconds]
chthon has quit [Ping timeout: 244 seconds]
spacemud has joined #ruby
AmirolAhmad has quit []
ndrei has joined #ruby
boombadaroomba has quit [Ping timeout: 265 seconds]
hdrv has quit [Ping timeout: 244 seconds]
mary5030 has quit [Ping timeout: 255 seconds]
yetanotherdave has joined #ruby
<bahamas>
pry is nice. it has tab completion as well
<bradland>
love pry
kenneth has quit [Ping timeout: 245 seconds]
kish has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
<wasamasa>
bahamas: yes, ruby's module system is less well thought through
econerd4ever has quit [Read error: Connection reset by peer]
kalusn has joined #ruby
<wasamasa>
bahamas: you can require something absolutely or relatively and that's pretty much it
kish has joined #ruby
econerd4ever has joined #ruby
sambao21 has joined #ruby
<bahamas>
I see. so you bring all the names into the new namespace
<godd2>
but shevy, ecma6 is getting keyword args. so its pretty much ruby now
<pipework>
godd2: Sometimes I even use #to_sym on strings with spaces just to duck-type and intern instead of sometimes. I'm not sure if that's the best way to make sure that what I'm getting can be interned because I want it to be, and still behave like a symbol or string.
_beechnut1 has quit [Ping timeout: 245 seconds]
<godd2>
pipework well you can always roll your own Flywheel pattern
<eam>
are there any string values which cannot become symbols?
<godd2>
bahamas of course! if you want to know more about ruby's object model, I highly recommend Metaprogramming Ruby
<godd2>
it's not as advanced of a book as it looks
samuel02 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
econerd4ever has joined #ruby
o0oo0o has quit [Ping timeout: 250 seconds]
<bahamas>
godd2: thanks. for now I don't feel like diving too deep, but at least I know it exists. I don't know how far I'll go with ruby
Hobogrammer has joined #ruby
fabrice31 has joined #ruby
kish has joined #ruby
jeff-ooh has joined #ruby
lw has quit [Read error: Connection reset by peer]
rpag is now known as lol
<pipework>
godd2: Mmm, I love that book. I suggest it to new people after the first books to just learn the language, and tell them to just read the first half to learn the object model because actual metaprogramming stuff shows up in the second half.
wjimenez5271 has quit [Remote host closed the connection]
sailias has joined #ruby
lol is now known as Guest95964
sambao21 has joined #ruby
wjimenez5271 has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
yfeldblu_ has joined #ruby
<pipework>
I find it a little sad that not many resources teaching ruby teach the object model and leave it for 'metaprogramming' to explain this very important thing about ruby.
momomomomo has quit [Quit: momomomomo]
fmcgeough has quit [Quit: fmcgeough]
yfeldblu_ has quit [Remote host closed the connection]
econerd4ever has quit [Ping timeout: 264 seconds]
renderful has joined #ruby
rodfersou has quit [Quit: leaving]
kenneth has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lw has joined #ruby
axilla has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 250 seconds]
kalusn has quit [Remote host closed the connection]
craigp has quit [Remote host closed the connection]
diegovio1 is now known as diegoviola
<j2p2>
looks right
xymbol_ has joined #ruby
iamninja has joined #ruby
baweaver has joined #ruby
yfeldblum has joined #ruby
sk87 has quit [Client Quit]
baweaver_ has quit [Remote host closed the connection]
<shevy>
yeah
<shevy>
simply wrap the ugly erb tags before and after it
<shevy>
it will return that result though
<shevy>
j2p2's example used puts
sk87 has joined #ruby
ndrei has quit [Read error: No route to host]
ndrei has joined #ruby
tristanp has quit [Remote host closed the connection]
xymbol_ has quit [Ping timeout: 250 seconds]
tristanp has joined #ruby
claudio_ has joined #ruby
blasius has joined #ruby
<maxd>
thanks
kedibasi has quit [Remote host closed the connection]
jimms has quit [Ping timeout: 272 seconds]
<claudio_>
Someone using Capistrano?
adac has quit [Ping timeout: 255 seconds]
<agent_white>
!ask
<agent_white>
D:
<agent_white>
claudio_: "Don't ask if anyone uses it. Just ask your question about it."
<jhass>
there's #capistrano
jamgood96 has joined #ruby
tristanp has quit [Ping timeout: 245 seconds]
<agent_white>
^ better answer
treehug88 has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
craigp has joined #ruby
yalue has quit [Quit: return 0;]
jheg has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
<claudio_>
But Capistrano is developed in Ruby
<jhass>
Linux is developed in C
<jhass>
do you ask ##c for your linux questions?
sigurding has quit [Quit: sigurding]
<shevy>
YES
<jhass>
and do you want to be like shevy?
<shevy>
YES!
duncannz has quit [Read error: Connection reset by peer]
<shevy>
well actually
<shevy>
I don't use capistrano
djbkd has quit [Remote host closed the connection]
<shevy>
claudio_ I guess nobody here uses capistrano
codecop has quit [Remote host closed the connection]
<waxjar>
capistrano sounds like an overpriced fancy coffee
<shevy>
hehe
<shevy>
how about chocolino
<claudio_>
Sorry friend, but there is not exactly one espefico group for my doubts. here has programmers who know many things. I believe you can have someone you know here. I need to know if you need to change the Capifile file for use by capistrano with prestashop. if someone can answer me I thank.
sankaber has joined #ruby
lw has quit [Read error: Connection reset by peer]
<L8D>
No I mean Macbooks have good displays, keyboards and OS X is unix
<jhass>
and?
<jhass>
none of that is exclusive to them
<L8D>
and hardware-wise they're really good for development. And OS X is incredibly common in the ruby world
fabrice31 has joined #ruby
<jhass>
I always wondered what makes hardware "really good for development"
<jhass>
what properties are that? and why?
<L8D>
it's a combination of the fact that OS X is popular, and the hardware is good
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
lessless has joined #ruby
<jhass>
Linux is popular on servers
<eam>
jhass: cpu support for VT-x?
BTRE has quit [Quit: Leaving]
<L8D>
jhass: there's no stupid shit going and no proprietary hard-to-get-to stuff underneath
<L8D>
going on*
allcentury has quit [Ping timeout: 250 seconds]
<jhass>
lol
<eam>
L8D: apple isn't a good choice if you don't want hard-to-get-to stuff underneath
sk87 has joined #ruby
<L8D>
eam: not phsyically
<jhass>
I'd say apple stuff is exactly that
<waxjar>
you're all biting :P
<eam>
waxjar: it's delicious
<L8D>
physically*
sankaber has quit [Ping timeout: 256 seconds]
<jhass>
anyway, I see no reason for that $100-$200 extra, but it's your choice
<L8D>
$100-$200 extra of what?
<jhass>
compared to other vendors for the same hardware
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
Hijiri has quit [Ping timeout: 245 seconds]
<L8D>
like what other vendors?
<eam>
alienware
<wallerdev>
alienware lol
<jhass>
anything really
mjuszczak has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
<havenwood>
L8D: sure. get a rMBP, they're lovely.
diegoviola has joined #ruby
iamninja has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 256 seconds]
<L8D>
alienware has a bunch of overpriced shit gaming laptops
<L8D>
according to amazon
<frem>
The Apple Tax (tm) mostly applies if you're buying a high specced machine. Otherwise, no, the price is pretty similar to other machines with the same grade of components in them.
aclearman037 has quit [Quit: I'm out!]
iamninja has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
<frem>
At least, that's what it looked like a year ago when I priced things out.
<wallerdev>
yeah apple makes good quality laptops
yetanotherdave has joined #ruby
<wallerdev>
but any laptop that runs linux or os x is great for ruby development
<wallerdev>
only thing i wouldnt recommend is windows for ruby dev
<frem>
I started ruby dev on windows. it's not that bad if you get a nice vagrant setup going.
<L8D>
$900 for a 13 inch retina display, weighing like 2 pounds and a clean+usable keyboard and trackpad
<wallerdev>
if youre running vagrant youre basically doing your ruby dev in linux arent you lol
<L8D>
are there cheaper laptops that probide those features?
tejas-manohar has joined #ruby
<pipework>
I like using vagrant via boot2docker and do my development inside docker.
<pipework>
Faster stuff to work with.
<eam>
well, not all portable computers are good for ruby development. I wouldn't recommend attempting it on a Compaq Portable II for example
kish has quit [Read error: Connection reset by peer]
<pipework>
Actually, it's true. They aren't required.
<pipework>
They're optional and probably shipped with the system though...
<jhass>
they aim for that, but you can only so far
<eam>
pipework: it ships with an nvidia card
<pipework>
I wonder if firmware is software to them.
<havenwood>
^ and totoally out of stock >.>
<pipework>
eam: Hardware is not software.
<jhass>
pipework: it is
<eam>
so sure, you can like not use the hardware you bought
sea_local has quit [Remote host closed the connection]
<eam>
pipework: yeah but you can't use the gpu without binary blob drivers
<eam>
(use properly)
<pipework>
eam: Yes you can.
<eam>
nuh huh
lektrik has quit [Quit: Leaving]
<pipework>
It's not required to use the proprietary ones though.
<pipework>
There's open source but not awesome drivers for nvidia.
hornairs has quit [Quit: hornairs]
lolmaus has quit [Ping timeout: 240 seconds]
<eam>
pipework: I said gpu, not "can display non accelerated video"
Dopagod has quit [Ping timeout: 250 seconds]
wjimenez5271 has quit [Ping timeout: 258 seconds]
lemur has joined #ruby
<pipework>
eam: I wonder if you're upset that it probably ships with those proprietary bits, when I see that they're saying that they aren't required for the computer to be used.
<pipework>
It's like saying something's optional, but there.
<eam>
pipework: I wonder why you think anyone's upset. Are you?
<zenspider>
no! emacs!!!
<eam>
zenspider: emacs will run great on the Portable III
<zenspider>
or we could talk about... I dunno... ruby
<havenwood>
The One True Editor.
<pipework>
eam: You're not unhappy, disappointed, or worried?
<eam>
(assuming you like, configure swap)
<pipework>
You sound disappointed or unhappy about the claim.
maxd has left #ruby [#ruby]
reinaldob has joined #ruby
<eam>
pipework: merely observing it as false
<zenspider>
eam: dude. the portable was fantastic. at the time.
<jhass>
maybe it's time shevy explains what he's actually needing that for ;)
<havenwood>
dts|pokeball: yup
<icbm>
shevy: Exact number depends on crazy lots of things. For an estimate just do 50 * 365.25 and round it.
<dts|pokeball>
ty
<eam>
what could possibly happen in 50 years
<jhass>
two world wars?
<eam>
time might end, you never know
kapil__ has quit [Quit: Connection closed for inactivity]
<shevy>
icbm hmm yeah that seems at least simple
<pipework>
Also, you'll have to nail down exactly how this time measurement has to work, because sometimes timezones change stuff and so their year on the calendar is different in calculation across the before and after change.
<eam>
prepend every string representation of time with "like "
chrishough has joined #ruby
CpuID has joined #ruby
doritostains has quit [Quit: doritostains]
<pipework>
'approximately`
<zenspider>
365.242
davedev24_ has quit [Ping timeout: 258 seconds]
<wallerdev>
honestly it all depends if an asteroid hits us or not
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
aswen has joined #ruby
<wallerdev>
imagine how many calendars would have to change if that happened
tier has quit [Remote host closed the connection]
valeriansaliou has quit [Ping timeout: 265 seconds]
Megtastique has joined #ruby
<icbm>
Exact number of seconds: you'll need as inputs the calendar system (e.g. gregorian), a start date and time, a geopolitical location, the time-zone rules for that location, and a list of leap seconds.
Megtastique has quit [Max SendQ exceeded]
<zenspider>
if we have a calendar changing event, we won't have calendars
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
* pipework
would consider the use of tzinfo
Megtastique has joined #ruby
<zenspider>
icbm: geopolitical _time_ and location. they change over time.
klmlfl has quit [Remote host closed the connection]
jerius has quit []
sk87 has joined #ruby
CpuID has quit [Client Quit]
<eam>
problem with future times is we can't know how we'll represent time at that time
Kamuela has quit [Remote host closed the connection]
<eam>
TAI++
<eam>
but even TAI is defined by the space-time location of present day earth
lolmaus has joined #ruby
baweaver has quit [Remote host closed the connection]
<eam>
can you imagine being a satellite with a 30 year mission and having to translate between time skew caused by earthquakes on a planet a million miles away
<wallerdev>
ooh have you guys seen interstellar
<wallerdev>
it deals with time stuff
jheg has quit [Quit: jheg]
<godd2>
how much research has been done on the time dilation experienced by getting into a programming zone?
Soda has quit [Remote host closed the connection]
kenneth has joined #ruby
jakobhans has joined #ruby
<pipework>
godd2: See Ballmer Peak
charliesome has joined #ruby
jakobhans has quit [Client Quit]
enebo has quit [Quit: enebo]
tgandrews has quit [Quit: This computer has gone to sleep]
<godd2>
haha maybe that's just time dilation due to inebriation
Xiti` has joined #ruby
econerd4ever has quit [Remote host closed the connection]
rylev has joined #ruby
econerd4ever has joined #ruby
tejas-manohar has quit [Ping timeout: 246 seconds]
Xiti has quit [Ping timeout: 245 seconds]
doritostains has joined #ruby
timonv_ has quit [Remote host closed the connection]