pu22l3r has quit [Remote host closed the connection]
johnkary has joined #ruby
josephndenton has joined #ruby
adriancb has quit [Remote host closed the connection]
aboudreault has quit [Ping timeout: 255 seconds]
Spami has joined #ruby
beef-wellington has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
startupality has joined #ruby
checkit has joined #ruby
jenrzzz has quit [Quit: Lost terminal]
startupality has quit [Client Quit]
karmatr0_ has joined #ruby
karmatr0n has quit [Ping timeout: 264 seconds]
MartynKeigher has joined #ruby
aboudreault has joined #ruby
gwn has quit [Remote host closed the connection]
ta has joined #ruby
rubyonrailed has quit []
jenrzzz has joined #ruby
spyderma_ has quit [Remote host closed the connection]
sargas has joined #ruby
ta has quit [Ping timeout: 258 seconds]
x1337807_ has joined #ruby
_mtr has joined #ruby
Beoran has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
djdarkbeat has quit [Quit: djdarkbeat]
aspires has quit []
ezio has quit [Read error: Connection reset by peer]
tvw has quit []
lucyinthesky has joined #ruby
Beoran_ has quit [Ping timeout: 250 seconds]
TehStig_ has joined #ruby
x1337807x has quit [Ping timeout: 260 seconds]
IrishGringo has quit [Ping timeout: 265 seconds]
chrisja has quit [Quit: leaving]
phutchins has joined #ruby
_mtr has quit [Ping timeout: 256 seconds]
TehStig has quit [Ping timeout: 260 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
Scriptonaut has joined #ruby
TehStig_ has quit [Ping timeout: 245 seconds]
<Scriptonaut>
hey guys, I'm reading in this csv file, I read it (into a string of chars), then call .encode("UTF-8") on it, and get: Encoding::UndefinedConversionError: "\xCC" from ASCII-8BIT to UTF-8. Any idea what this is? My error only resulted in 3 google results
mary5030 has joined #ruby
phutchins has quit [Remote host closed the connection]
mloveless has quit [Ping timeout: 255 seconds]
ghostmoth has quit [Quit: ghostmoth]
kinseapo has joined #ruby
davedev2_ has joined #ruby
kinseapo is now known as Guest88499
davedev24_ has quit [Ping timeout: 265 seconds]
<claf>
Scriptonaut: use iconv
Ludicrou_ has joined #ruby
Pupeno_ has joined #ruby
MartynKeigher is now known as MartynKeigher-AW
<Scriptonaut>
isn't iconv deprecated?
<Scriptonaut>
(though I should mention I'm on 1.9.3
echevemaster has quit [Ping timeout: 240 seconds]
djdarkbeat has joined #ruby
LudicrousMango has quit [Ping timeout: 244 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 260 seconds]
Pupeno has quit [Ping timeout: 244 seconds]
LudicrousMango has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Stalkr_ has quit [Quit: Leaving...]
fgo has quit [Ping timeout: 264 seconds]
<claf>
Scriptonaut: ah, of course, sorry, 2AM half-wit
o0oo0o has joined #ruby
baweaver has quit [Remote host closed the connection]
aZaFred has joined #ruby
<shevy>
godd2 good!
<shevy>
godd2 by the way do you know gamebox?
Spami has joined #ruby
Ludicrou_ has quit [Ping timeout: 260 seconds]
lucyinthesky has left #ruby ["Leaving"]
<shevy>
<shevy> hey shawn42
<shevy>
<shevy> did you have a look at Opal? like ruby rather than javascript and combine this with gamebox
<shevy>
hawn42> shevy: I have, I actually wrote a dirty wrapper around pixi.js to use it from opal ;)
<shevy>
<shawn42> just a prototype though
<shevy>
there!
<shevy>
you guys need to get together one day
<shevy>
(when any of you actually finishes a prototype that is ...)
stunder has quit [Quit: Screw you guys I'm going home]
Nodeist has joined #ruby
<godd2>
shevy yea shawn42 submitted an issue on my gem! he's looked at it
<claf>
Scriptonaut: first, have you ensured your internal encoding is set, and the file encoding is detected correctly
<shevy>
*get together means work on something... not make out or something, just to clarify
econerd4ever has quit [Remote host closed the connection]
<shevy>
"gem list" also shows it
Mothore has joined #ruby
econerd4ever has joined #ruby
<shevy>
does your "gem list" show it?
<Nodeist>
didnt ry
<Nodeist>
try
DLSteve has quit [Quit: Leaving]
<shevy>
try!
klmlfl has joined #ruby
<Nodeist>
yup, its in my gem list shevy
<shevy>
ok
<shevy>
so now we know that gem can find it
<shevy>
but for some reason, /usr/local/rvm/rubies/ruby-2.1.4/ can not find it
<Nodeist>
yes
x1337807x has joined #ruby
<shevy>
where does "gem" reside, do you know?
LudicrousMango has quit []
<shevy>
the command itself
<Nodeist>
Nope, I haveno control over that
<shevy>
huh?
<soahccc>
which gem
<soahccc>
I call this "hampered by security" btw :D
echevemaster has joined #ruby
davedev2_ has quit [Ping timeout: 255 seconds]
<shevy>
ah - well whether you can control it or not, that is a secondary question; the first question is to find out where it is anyway. Surely you must have at least read access if you can invoke "gem list", so you ought to be able to find out where it resides
<Nodeist>
shevy, dont have access to that folder
<shevy>
hmmm
ninjazach has quit [Read error: Connection reset by peer]
Shazaum has quit [Quit: This computer has gone to sleep]
klmlfl has quit [Remote host closed the connection]
rshetty has joined #ruby
<shevy>
can you install stuff into your workspace?
<Nodeist>
thats why i wanted to show you a join.me session
F__i__L has quit [Remote host closed the connection]
<Nodeist>
idk how to install to a specific folder
davedev24_ has joined #ruby
<shevy>
where is the "ruby" binary by the way?
baweaver has joined #ruby
Joufflu has joined #ruby
<shevy>
nodeist you must find out man
<claf>
its jeez and chill time again
triple_b has joined #ruby
Areessell has joined #ruby
ob has joined #ruby
<crome>
-not
<shevy>
though it's a lot of work
<shevy>
nodeist but you managed to install rvm?
<crome>
online ide lol
procat has joined #ruby
eighthbit has joined #ruby
<Nodeist>
shevy, Im am using an online IDE
<Nodeist>
Shevy, IDK!!!
<claf>
$ which ruby
<Nodeist>
ruby sucks on windows
<shevy>
and some booze
<shevy>
you somehow installed rvm
<shevy>
as for windows sucks - sure, but you can use all of ruby, and with ruby-gnome you can also build up your own IDE
<shevy>
well, install linux man
<claf>
yea
<claf>
install linux in a vbox
<crome>
nodeist: for the sake of everything that is not just a little bit lovable, install linux in vbox or something
<shevy>
take a coffee, take your time
<shevy>
there is no impossible
<claf>
install on a usb drive and boot there
<Nodeist>
sigh
<Nodeist>
shevy, its impossible!
<Nodeist>
MY computer also sucks
jenrzzz has quit [Ping timeout: 272 seconds]
rshetty has quit [Remote host closed the connection]
ob has quit [Max SendQ exceeded]
ob has quit [Max SendQ exceeded]
<claf>
external usb 3 ssd for rubydev linuxz
jcdesimp has joined #ruby
<soahccc>
nodeist: If that what you said is true there is nothing worse than your current environment, even windows would be better
<crome>
also, ruby on windows sort of works until you want to use some gems that actually break horribly
<crome>
it might not be the case for you
ob has joined #ruby
pauly_oc has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno_ has quit [Remote host closed the connection]
beef-wellington has quit [Ping timeout: 244 seconds]
procat has quit [Ping timeout: 252 seconds]
sargas has quit [Quit: This computer has gone to sleep]
klmlfl has joined #ruby
mjuszczak has quit []
mjuszczak has joined #ruby
<Nodeist>
what do you guys think about Golang?
baweaver has quit [Remote host closed the connection]
<godd2>
I develop ruby on windows. it forces me to make my code robust :P
Nodeist has quit [Quit: Page closed]
Tranquility has quit [Quit: Connection closed for inactivity]
<crome>
I'm more than happy to exchange some flexibility (quite a bit of it, actually) in ruby to type safety and performance but I would never pick go to prototype a webapp
<claf>
naw
<godd2>
the heroku CLI is written in Go
<crome>
or to build a webapp in general
<claf>
ruby will never have to exchange
<crome>
it's awesome for apis though
johnkary has quit [Ping timeout: 244 seconds]
<claf>
just use scala if you want that
<epitron>
rust
<crome>
why would I prefer scala over go?
fgo has joined #ruby
* epitron
fades into the shadows
devoldmx33 has quit [Ping timeout: 272 seconds]
<claf>
jvm
larissa has quit [Quit: Leaving]
pu22l3r has quit [Remote host closed the connection]
mjuszczak has quit []
<claf>
I dont even remember what go runs, actually
<crome>
programs
<claf>
made no impression on me so far
<crome>
"jvm" as an argument is pretty moot
<shevy>
godd2 how does that work? `#{@sound}.play()` did you redefine `
lukeholder has joined #ruby
<godd2>
Opal uses the backtick to pass raw javascript
thomasfedb has quit [Ping timeout: 256 seconds]
babykosh has joined #ruby
lukehold_ has joined #ruby
djbkd has quit [Remote host closed the connection]
tokik has joined #ruby
klmlfl has quit [Remote host closed the connection]
thomasfedb has joined #ruby
narcan has joined #ruby
pu22l3r has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<claf>
crome: its not if you're silly
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has joined #ruby
<crome>
okay
maletor has quit [Quit: Computer has gone to sleep.]
charliesome has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
oleo__ has joined #ruby
oleo is now known as Guest31229
<godd2>
shevy you can also just use %x{ ... } to write multiple lines at once. but for one-liners I just use the backtick
<godd2>
crome that's to store the state of each keyboard key
robustus has joined #ruby
<godd2>
in the V8 engine, if you specify the size of an array, it will help you out and keep it as a C-like array in the background
<claf>
jabbascripp
Guest31229 has quit [Ping timeout: 252 seconds]
jgrevich has joined #ruby
<godd2>
instead of using a fully qualified dictionary
duncannz has quit [Ping timeout: 250 seconds]
<godd2>
gotta go fast
babykosh has quit [Quit: babykosh]
jherbst has joined #ruby
snath has quit [Ping timeout: 260 seconds]
sargas has joined #ruby
hmsimha has joined #ruby
goodenough has quit [Remote host closed the connection]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kiki_lamb has joined #ruby
kiki_lamb has quit [Quit: leaving]
jlast has quit [Ping timeout: 258 seconds]
mnemon has quit [Quit: No Ping reply in 180 seconds.]
grassdog has joined #ruby
_mtr has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
godd2 has quit [Remote host closed the connection]
mnemon has joined #ruby
tkuchiki has joined #ruby
fabrice31 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<Areessell>
Wait, so Dare is a webgl gaming library that you build with Ruby?
sargas has quit [Quit: This computer has gone to sleep]
aspires has joined #ruby
wjimenez5271 has joined #ruby
aspires has quit [Client Quit]
djdarkbeat has joined #ruby
snath has joined #ruby
_mtr has quit [Ping timeout: 244 seconds]
marr has quit [Ping timeout: 258 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
boombadaroomba has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
mikepack has joined #ruby
Kricir has joined #ruby
yetanotherdave has quit [Ping timeout: 258 seconds]
bricker`work has quit [Quit: leaving]
salmonax has joined #ruby
rj46 has quit [Quit: Konversation terminated!]
dc has joined #ruby
rshetty has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 244 seconds]
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dh64 has joined #ruby
gsd has joined #ruby
charliesome has quit [Quit: zzz]
gsd has quit [Client Quit]
fandi has quit [Quit: Leaving]
dc has quit [Disconnected by services]
dc_ has joined #ruby
kl has quit [Ping timeout: 245 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
crdpink2 has quit [Quit: q term]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Scriptonaut has quit [Quit: leaving]
crdpink has joined #ruby
roolo has joined #ruby
mgberlin has joined #ruby
graydot has joined #ruby
jlast has joined #ruby
pedahzur has joined #ruby
BigRonnieRon has joined #ruby
<pedahzur>
Howdy! I am trying to install Redmine on a system that doesn't have development tools (because it's a production server). is there a way to tell it to fall back to using the pure-Ruby json module so it doesn't try (and fail) to compile the C module? Or, alternately, is there a way to package up the whole thing on a dev server, and drop it on the production server ready to go? (maybe a subdirectory I could copy over)
<Yottabyte>
hi guys, on windows here, just installed ruby, trying gem install sass and got: ERROR: Could not find a valid gem 'sass' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/latest_specs.4.8.gz)
checkit has quit [Ping timeout: 250 seconds]
seamon has joined #ruby
lucyinthesky has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
tejas-manohar has quit [Ping timeout: 246 seconds]
wsmoak has quit [Quit: wsmoak]
linojon has quit [Quit: linojon]
<seamon>
anyone know what’s going on with rubygems.org, can’t seem to log in?
Spami has quit [Quit: This computer has gone to sleep]
Takle has joined #ruby
TgMts has joined #ruby
tejas-manohar has joined #ruby
echooo1 has quit [Remote host closed the connection]
cashnguns has joined #ruby
diegoviola has quit [Remote host closed the connection]
rshetty has joined #ruby
Xiti has quit [Ping timeout: 244 seconds]
linojon has joined #ruby
linojon has quit [Client Quit]
Takle has quit [Ping timeout: 272 seconds]
ta has joined #ruby
<Yottabyte>
seamon i think it's broken
ob has quit [Max SendQ exceeded]
ob has joined #ruby
_mtr has joined #ruby
<seamon>
yottabyte: So long I am not the only one, ok. Thanks
linojon has joined #ruby
<Yottabyte>
seamon nvm
<Yottabyte>
I think it's ifne
<seamon>
yottabyte were you able to log in?
rylev has quit [Remote host closed the connection]
jenrzzz has joined #ruby
ta has quit [Ping timeout: 260 seconds]
babykosh has joined #ruby
mnemon has quit [Quit: No Ping reply in 180 seconds.]
<linocisco>
what is power of ruby? some said Ruby is for small development
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework>
Ruby is a powerful general purpose programming language.
<pipework>
The language is more powerful than python, but the implementations of those languages all bring great things to the table.
<linocisco>
is there any website written in ruby only? I have never seen
<pedahzur>
linocisco: There are many web apps written in Ruby.
<pipework>
linocisco: How can a website be written only in ruby?
<linocisco>
pedahzur, we could not know if it is written in Ruby
<dts|pokeball>
my dads company is written in rails
<pipework>
They surely must deliver some kind of payload, and since web browsers can't run ruby, they must be sending something else.
parduse has joined #ruby
<dts|pokeball>
**companie's site
<Areessell>
No web app is written in just one language
<Areessell>
A ruby-based server sends HTML & CSS
<Areessell>
in response to HTTP requests
<pipework>
Areessell: Or something else.
b3itz has joined #ruby
<pipework>
Lots of things are written using ruby, though some use it primarily, others don't.
adriancb has joined #ruby
Lucky__ has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
<linocisco>
I agree HTML, CSS , flash are just markup like makeup styling. Actually langauge should be soemthing else to interact with Database. That language of website shoud be Ruby. where can I find that website?
<b3itz>
hey guys! i have a string such as "2014-11-26 08:35:36" and i need to just extract the "2014-11-26".. how do i go about that?
<dts|pokeball>
uhhh
<Areessell>
O_o
<dts|pokeball>
i think flash is a bit more that that
jlast has joined #ruby
<pipework>
linocisco: lol flash.
pu22l3r has quit [Remote host closed the connection]
<Areessell>
b3itz: "this that".split.first
<pipework>
linocisco: They're all over the internet. What are you hoping to see?
evanjs has joined #ruby
<Areessell>
er I think you might have to pass a ' ' to the split method
<b3itz>
Areessell: thanks dude
Kricir has quit [Remote host closed the connection]
<pipework>
Areessell: Actually, by default the split is space.
<aewffwea>
parabolize: part of that, but I have one hash with keys and values... and I want to have another hash, to apply transformations to the values based on the key of the first hash
giuseppesolinas has quit [Quit: This computer has gone to sleep]
mnemon has quit [Quit: No Ping reply in 180 seconds.]
mnemon has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
<parabolize>
ah, by key not value >.<
<parabolize>
use Hash#replace
pu22l3r has joined #ruby
pwnz0r has quit [Remote host closed the connection]
dseitz has quit [Ping timeout: 265 seconds]
kenneth has joined #ruby
procat has joined #ruby
sevenseacat has quit [Ping timeout: 244 seconds]
<parabolize>
nevermind that replaces the entire hash..
sinequanon has quit [Remote host closed the connection]
devoldmx33 has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 265 seconds]
Nameo0 has joined #ruby
last_staff has joined #ruby
lukeholder has joined #ruby
Macaveli has joined #ruby
sinequanon has joined #ruby
sigurding has joined #ruby
pu22l3r has quit [Remote host closed the connection]
ramfjord has quit [Quit: leaving]
SOLDIERz has joined #ruby
_mtr has joined #ruby
fawefeawfewa has joined #ruby
apeiros__ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
aewffwea has quit [Ping timeout: 255 seconds]
pedahzur has joined #ruby
agit0 has quit [Quit: This computer has gone to sleep]
rshetty has quit [Remote host closed the connection]
aewffwea has joined #ruby
lukeholder has quit [Ping timeout: 272 seconds]
pedahzur has quit [Client Quit]
<Nameo0>
Hello! =) I have having trouble with my code. The issue is that the aray somehow duplicates the second item that is pushed into it and one of hte duplicates overwrites the initial item.
<Nameo0>
The issue with nokorigi that I had was that I could not find any documentation on how to go to a select element. (There are no IDs or Names on the website)
TgMts has quit [Read error: Connection reset by peer]
tgandrews has joined #ruby
DrCode has quit [Ping timeout: 250 seconds]
LouisRoR has joined #ruby
grn_ has quit [Client Quit]
<avril14th>
+1
timonv_ has quit [Read error: Connection reset by peer]
jlast has joined #ruby
lemur has quit [Remote host closed the connection]
arquebus has joined #ruby
rdark has quit [Quit: leaving]
lemur has joined #ruby
anarang is now known as anisha
grn_ has joined #ruby
DrCode has joined #ruby
renderful has joined #ruby
Xeago has quit [Remote host closed the connection]
grn_ has quit [Client Quit]
lemur has quit [Ping timeout: 258 seconds]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
renderful has quit [Ping timeout: 272 seconds]
livathinos has joined #ruby
LouisRoR has quit []
LouisRoR has joined #ruby
fandi has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
vasilakisfil has joined #ruby
<vasilakisfil>
hey guyzzz
LouisRoR has quit [Client Quit]
<vasilakisfil>
is it possible to throw an exception without the trace ?
LouisRoR has joined #ruby
Flcn has joined #ruby
grn_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<tobiasvl>
vasilakisfil: first of all: why do you want to do that?
<tobiasvl>
maybe rescuing it is the right way?
AxonetBE has quit [Quit: AxonetBE]
<vasilakisfil>
well the trace wouldn't be helpful in my case.. it checks if you have set some env variables and throws an exception if you haven't
reinaldob has joined #ruby
<vasilakisfil>
but instead of the whole trace, I would like to throw a redish message without the trace
rshetty has joined #ruby
<tobiasvl>
rescue the exception and print out what you'd like then?
grn_ is now known as grn
sevenseacat has quit [Quit: Leaving.]
georgesmith has joined #ruby
jenrzzz has joined #ruby
sigurding has joined #ruby
<vasilakisfil>
hmm ok but I want to stop the program unless someone else rescues the exception
LouisRoR has quit []
<vasilakisfil>
does abort raises an exception ?
emmesswhy has joined #ruby
LouisRoR has joined #ruby
emmesswhy has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
rshetty has quit [Ping timeout: 245 seconds]
<tobiasvl>
no
timonv_ has joined #ruby
RitterJack has quit [Ping timeout: 250 seconds]
<vasilakisfil>
ok.. is it possible to hide the trace when raising an exception somehow ?
<avril14th>
hide?
<avril14th>
what does that mean?
<tobiasvl>
vasilakisfil: rescue it?
<tobiasvl>
I still don't understand the problem
jeanlinux has joined #ruby
timonv_ has quit [Remote host closed the connection]
<vasilakisfil>
but if I rescue the exception
<vasilakisfil>
then the exception won't happen
fandi has joined #ruby
<tobiasvl>
won't happen?
arup_r has joined #ruby
<vasilakisfil>
I mean the program won't stop
<vasilakisfil>
it will continue running
<tobiasvl>
you can stop it?
<kuda>
isn't that a good thing?
<vasilakisfil>
with abort you mean?
kl__ has joined #ruby
<vasilakisfil>
kuda no it's not in my case
Takle has quit [Remote host closed the connection]
<tobiasvl>
yes for example with abort
<vasilakisfil>
[10:52] <vasilakisfil> hmm ok but I want to stop the program unless someone else rescues the exception <----
rshetty has joined #ruby
procat has joined #ruby
<vasilakisfil>
so here we go again.. is it possible to hide the trace when raising an exception somehow ?
<tobiasvl>
vasilakisfil: can you just explain your use case please
<tobiasvl>
"I want to stop the program unless someone else rescues the exception" doesn't make sense to me
<vasilakisfil>
I have a part of code that checks if you have set some keys (that will be used later)
<vasilakisfil>
if you haven't set the keys then it raises an exception
lolmaus_ has joined #ruby
startupality has joined #ruby
<vasilakisfil>
MissingKeysError
emmesswhy has joined #ruby
<vasilakisfil>
the thing is that I want to beautify the exception.. I don't want the trace in there (cause it doesn't make much sense, you know what you have to do) and instead print a redish message
<tobiasvl>
so far, the answer is still "rescue the exception and do what you want"
jeanlinux has quit [Remote host closed the connection]
<tobiasvl>
now explain the "I want to stop the program unless someone else rescues the exception" part
<vasilakisfil>
yes
<vasilakisfil>
this part means that I want to rescue the MissingKeysError exception if I want to
Xeago has quit [Remote host closed the connection]
<vasilakisfil>
so abort wouldn't help me
Takle has joined #ruby
jeanlinux has joined #ruby
<tobiasvl>
you want to rescue it if you want to?
<tobiasvl>
do you want to or not?
procat has quit [Ping timeout: 264 seconds]
<vasilakisfil>
the code that checks the keys and throws the exception is in another gem (a very simple one)
<vasilakisfil>
so the program that includes that gem should be able to bypass the exception
<vasilakisfil>
it's not what I want, the user will decide
apeiros_ has joined #ruby
<vasilakisfil>
for instance I might raise different exceptions for different key types.. the user might wanted to rescue only 1 of those types
jlast has quit [Ping timeout: 258 seconds]
<vasilakisfil>
so it's regular exceptions with propagation etc only that I want to remove the trace
nclbr has joined #ruby
emmesswhy has quit [Ping timeout: 245 seconds]
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sindork has joined #ruby
RitterJack has joined #ruby
timonv_ has joined #ruby
emmesswhy has joined #ruby
porfa has joined #ruby
<vasilakisfil>
so is there a way to achieve that ?
<vasilakisfil>
and you can still rescue it if you want ^_^
uber_hulk has quit [Client Quit]
jlast has quit [Ping timeout: 258 seconds]
Akuma has joined #ruby
_mtr has joined #ruby
<gregf_>
vasilakisfil: whats it that youre trying to achieve? throw an exception in a method/function and let the call handle that exception?
<gregf_>
s/call/caller/
<gregf_>
or are you trolling :/
Aswebb_ has joined #ruby
<vasilakisfil>
gregf_ I think you are trolling :P
<vasilakisfil>
I want to throw regular exception from my gem
<vasilakisfil>
that's all actually
Musashi007 has joined #ruby
<vasilakisfil>
oh, and I want to remove the exception trace, but that's a minor
_mtr has quit [Ping timeout: 244 seconds]
joonty has quit [Ping timeout: 244 seconds]
joonty1 has joined #ruby
<avril14th>
throw exception, catch it
<avril14th>
just like baseball
elcheckito has joined #ruby
<vasilakisfil>
exactly... I didn't get why gregf_ thinks that I am trolling -_-
<elcheckito>
i need ruby2.1, and that very version for now, on debian wheezy. production system. ideas?
<avril14th>
elcheckito: rvm?
rdark has joined #ruby
jdj_dk_ has joined #ruby
apoorvparijat has quit [Remote host closed the connection]
<elcheckito>
avril14th: don't know. first time i am not using the repos directly on a prod system (with the repos i just pull the upgrades as part of my OS maint.)
jdj_dk_ has quit [Remote host closed the connection]
arquebus has quit [Quit: Konversation terminated!]
Kabaka has joined #ruby
<avril14th>
so yes, rvm.io
<gregf_>
vasilakisfil: class ExOne < StandardError;end;class ExTwo < StandardError;end;class ExThree < StandardError;end;class Foo; def bar; begin; self.baz();rescue => e; puts e.message;end ; end ; def baz; for i in 1..3 do; case i; when 1; raise ExOne, "Exception One"; when 2; raise ExTwo, "Exception Two"; else; raise ExThree, "Exception Three";end end; end; end; Foo.new().bar(); <== like that?
Stalkr_ has joined #ruby
hgl has quit [Ping timeout: 244 seconds]
rodfersou has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<gregf_>
well, that wont have an exception trace
chinmay_dd has joined #ruby
lukeholder has joined #ruby
<workmad3>
elcheckito: you could probably use the brightbox ppa too, if you would rather use a package repo
Akuma has quit [Read error: Connection reset by peer]
Akuma has joined #ruby
lukeholder has quit [Max SendQ exceeded]
hgl has joined #ruby
Takle has quit [Remote host closed the connection]
joonty has joined #ruby
lukeholder has joined #ruby
<vasilakisfil>
gregf_ imagine that Foo.new().bar(); is called from the user that uses your code
tkuchiki has quit [Ping timeout: 252 seconds]
<vasilakisfil>
how can she rescue the exception ?
oo_ has quit [Remote host closed the connection]
<vasilakisfil>
since you rescue everything in there
<workmad3>
vasilakisfil: out of curiosity, why do you want to remove the exception trace?
<vasilakisfil>
yeap
<gregf_>
vasilakisfil: thats how exception throwing an handling works. unless you've got a newer better way than the standard way?
startupality has quit [Quit: startupality]
<gregf_>
s/an/and/
<workmad3>
vasilakisfil: you missed answering the *why* there
<vasilakisfil>
haha
<vasilakisfil>
sorry
<workmad3>
vasilakisfil: and what you want to do is really, really easy ;)
lukeholder has quit [Max SendQ exceeded]
<vasilakisfil>
well to beautify the message
<workmad3>
vasilakisfil: no... don't mess with backtraces
Takle has joined #ruby
<workmad3>
vasilakisfil: at least not without some way to remove the messing around
<vasilakisfil>
workmad3 the trace in my case is not helpfull at all
lukeholder has joined #ruby
<workmad3>
vasilakisfil: to you, in the circumstances you're testing
Xeago has quit [Remote host closed the connection]
<vasilakisfil>
when you start the program I throw an exception if some keys are not set
joonty1 has quit [Ping timeout: 260 seconds]
<workmad3>
vasilakisfil: ok... then just do 'def backtrace; []; end' in your exception class
<vasilakisfil>
yeah I am playing with that atm
Juanchito has joined #ruby
<workmad3>
vasilakisfil: just be very, very careful with that ;)
lukeholder has quit [Max SendQ exceeded]
<workmad3>
(although someone could always do a monkey-patch of 'def backtrace; super; end' to get back original behaviour if they know what they're doing)
DrCode has quit [Ping timeout: 250 seconds]
lukeholder has joined #ruby
lukeholder has quit [Client Quit]
Calmoto1 has joined #ruby
<vasilakisfil>
hehe
<vasilakisfil>
I think most people here take things very seriously
<gregf_>
vasilakisfil: ah - ok. i get what you mean ;)
<vasilakisfil>
I just wanted to play around with ruby :)
<gregf_>
class Hrm < Exception; def backtrace; []; end;end; def foo; bar(); end; def bar; raise Hrm, "do ruby or die"; end;foo() <== what workmad3 said :)
fandi has quit [Quit: Leaving]
ta has quit [Remote host closed the connection]
<vasilakisfil>
yeah that seems to be working atm
AFKGeek has joined #ruby
<workmad3>
vasilakisfil: I take things seriously when people start talking about things that appear, on the surface, to be along the lines of crippling error reporting inside gems
DrCode has joined #ruby
Calmoto has quit [Ping timeout: 252 seconds]
<workmad3>
vasilakisfil: I don't care if you do it in your app, that's your lookout... do it in a published gem, and suddenly you're making very large assumptions about what arbitrary people will find useful/necessary... and when that involves error traces and debugging info (which are pretty vital things to have), it's serious ;)
Kabaka has quit [Ping timeout: 250 seconds]
grn has quit [Ping timeout: 250 seconds]
<workmad3>
vasilakisfil: so I'll be serious with you, so that we don't have to deal with the fallout of randomNewGuyX saying "HALP, I'm using vasilakisfilAwesomeGem1 and getting an error but the backtrace is missing! HALP!"
lifenoodles has quit [Ping timeout: 260 seconds]
joonty1 has joined #ruby
<vasilakisfil>
haha ok
Jake232 has joined #ruby
Jake232 has quit [Max SendQ exceeded]
<certainty>
workmad3: i remember when that happened because one of your gems xD
* certainty
lies
<workmad3>
certainty: yeah, I know you're lying... I don't have any gems :P
joonty has quit [Ping timeout: 272 seconds]
<certainty>
workmad3: i know you know. i also wanted the others to know
<certainty>
didn't want to give you bad reputation or something (on accident)
Spami has joined #ruby
<workmad3>
certainty: reputation is serious business! ;)
<TheColonial>
i want that in cases where some other shitty services requires it
<teotwaki>
regexp it
<TheColonial>
valid or not valid, the point is i need to do it.
<workmad3>
teotwaki: <foo></foo> is as valid as <foo/>
<TheColonial>
ugh :)
<teotwaki>
workmad3: oh, my bad then.
<workmad3>
(I think)
<TheColonial>
and yes, it is valid XML.. ;)
Aswebb_ has joined #ruby
<TheColonial>
I was just hoping that REXML had something in the context hash that would make it happen
Grumelo has quit [Remote host closed the connection]
rodfersou has quit [Quit: Lost terminal]
<TheColonial>
but i cant' find any decent documentatio on that context object
rodfersou has joined #ruby
Takle has quit [Ping timeout: 255 seconds]
joonty has quit [Ping timeout: 244 seconds]
joonty has joined #ruby
Takle has joined #ruby
<workmad3>
TheColonial: output is done by formatters in rexml, I believe
Peterman_ has joined #ruby
<workmad3>
TheColonial: but I can't see any way to configure the standard formatters to output like you want
<TheColonial>
workmad3: ok mate, thanks for the response.
Aswebb_ has quit [Remote host closed the connection]
TheColonial has left #ruby [#ruby]
<shevy>
long live ruby!
Xeago has joined #ruby
<certainty>
yay!
<certainty>
why?
xymbol__ has joined #ruby
<workmad3>
certainty: why not?
<apeiros_>
because otherwise we're all very sad
<certainty>
nope
<certainty>
then again
<certainty>
maybe yes
mengu has quit []
<apeiros_>
ok, because otherwise all people in here who matter are all very sad :-p
<certainty>
hehe
Aswebb_ has joined #ruby
<elcheckito>
well i don't see how i can use brightbox for debian wheezy.. seems to be for ubuntu only? can you recommend a command line to run to add that ppa correctly?
<elcheckito>
also.. how does brightbox compare/relate to
<elcheckito>
Phusion?
<zenspider>
nobody told him NOT to use rexml? really?
VictorBjelkholm has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
procat has joined #ruby
arturhoo has joined #ruby
freerobby has joined #ruby
arturhoo has quit [Client Quit]
<apeiros_>
zenspider: I would have, if I'd known how to do what he asked with nokogiri :-/
<jhass>
what's your favorite?
<zenspider>
anything _emaintained_
<zenspider>
-e :P
<zenspider>
stupid pinky
<jhass>
so no nokogiri hater? \o/
<jhass>
:P
arturhoo has joined #ruby
<zenspider>
I might even have commit bit , tho I've been avoiding that
<zenspider>
hopefully not
arup_r has quit [Remote host closed the connection]
<zenspider>
I help out with the osx build issues
joonty1 has joined #ruby
procat has quit [Ping timeout: 245 seconds]
joonty has quit [Ping timeout: 250 seconds]
rylev has quit [Remote host closed the connection]
<apeiros_>
oh btw. zenspider - do you happen to know how tenderlove made his "find(id) cost" graphs? i.e., how he counted the total number of object allocations? did he just tap into the new GC stats or did he use something else?
arturhoo has quit [Client Quit]
rylev has joined #ruby
jlast has joined #ruby
livathin_ has joined #ruby
rylev has quit [Remote host closed the connection]
livathinos has quit [Ping timeout: 240 seconds]
dc_ has joined #ruby
tokik has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
rylev has joined #ruby
joonty has joined #ruby
n1lo has joined #ruby
joonty1 has quit [Ping timeout: 244 seconds]
uber_hulk has joined #ruby
Xeago has quit [Remote host closed the connection]
himsin has quit [Quit: himsin]
Peterman_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dc_ has quit [Ping timeout: 264 seconds]
rylev has quit [Ping timeout: 245 seconds]
Calmoto1 has quit [Ping timeout: 258 seconds]
Xeago has joined #ruby
yeticry has joined #ruby
wookiehangover has joined #ruby
SOLDIERz has joined #ruby
AlbertoCG has joined #ruby
arup_r has joined #ruby
chinmay_dd has quit [Ping timeout: 240 seconds]
joonty1 has joined #ruby
Soda has joined #ruby
anaeem1_ has joined #ruby
joonty has quit [Ping timeout: 245 seconds]
arturhoo has joined #ruby
wsmoak has joined #ruby
wsmoak has joined #ruby
jeff-ooh has joined #ruby
Musashi007 has quit [Quit: Musashi007]
apoorvparijat has joined #ruby
joonty2 has joined #ruby
Peterman_ has joined #ruby
n3phos has joined #ruby
arturhoo has quit [Client Quit]
jlast has quit [Ping timeout: 258 seconds]
joonty1 has quit [Ping timeout: 256 seconds]
_mtr has joined #ruby
joonty2 has quit [Quit: Leaving]
_mtr has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
jeff-ooh has quit []
startupality has joined #ruby
psy_ has quit [Ping timeout: 260 seconds]
chthon has joined #ruby
lessless has joined #ruby
ebbflowgo has joined #ruby
jack_rabbit has quit [Quit: Leaving]
Stoge88 has joined #ruby
<shevy>
in a regex, a preceding ? makes what follows after it optional, right?
AFKGeek has quit [Ping timeout: 252 seconds]
psy_ has joined #ruby
jheg has quit [Quit: jheg]
vyorkin has joined #ruby
<apeiros_>
shevy: wrong
Shazaum has joined #ruby
sigurding has quit [Quit: sigurding]
<apeiros_>
quantifiers are suffixes, not prefixes
<apeiros_>
<thing><quantifier>. e.g. /foo?/, the last o is optional.
<shevy>
hmm
marcules has joined #ruby
marcules has quit [Changing host]
marcules has joined #ruby
marcules has joined #ruby
<apeiros_>
/fo{2,}/ matches f followed by two or more o's
giuseppesolinas has joined #ruby
<marcules>
hi
<apeiros_>
hi marcules
troulouliou_dev has joined #ruby
AmirolAhmad has joined #ruby
<marcules>
hi apeiros_ :)
kobain has joined #ruby
spyderman4g63 has joined #ruby
<shevy>
hercules!
jeff-ooh has joined #ruby
<shevy>
in new york
bal has quit [Quit: bal]
giuseppesolinas has quit [Client Quit]
sigurding has joined #ruby
dumdedum has quit [Quit: foo]
Aswebb_ has joined #ruby
bal has joined #ruby
jlast has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
justinmcp has joined #ruby
jlast_ has joined #ruby
vyorkin has quit [Quit: WeeChat 1.0.1]
AFKGeek has joined #ruby
AFKGeek has quit [Read error: Connection reset by peer]
rodfersou has quit [Quit: Lost terminal]
vyorkin has joined #ruby
rodfersou has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
vyorkin has quit [Client Quit]
vyorkin has joined #ruby
sailias has joined #ruby
aclearman037 has joined #ruby
apoorvpa_ has joined #ruby
adriancb has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has quit [Remote host closed the connection]
lolmaus has quit [Remote host closed the connection]
Xeago has joined #ruby
lolmaus has joined #ruby
kl__ has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
apoorvparijat has quit [Ping timeout: 255 seconds]
hanmac1 has joined #ruby
vyorkin has quit [Client Quit]
jheg has joined #ruby
hiyosi has joined #ruby
jusmyth has joined #ruby
asmodlol has joined #ruby
triple_b has joined #ruby
apoorvpa_ has quit [Remote host closed the connection]
rylev has joined #ruby
jlast_ has quit [Remote host closed the connection]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has joined #ruby
iwishiwerearobot has quit [Quit: Be back later ...]
Flcn has quit [Quit: Be back later ...]
timonv_ has joined #ruby
mengu has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
startupality has quit [Quit: startupality]
Akuma has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
rylev has quit [Ping timeout: 245 seconds]
paulfm has joined #ruby
tristanp has joined #ruby
chinmay_dd has joined #ruby
vyorkin has joined #ruby
sk87 has joined #ruby
asmodlol has quit [Ping timeout: 256 seconds]
IrishGringo has joined #ruby
chinmay_dd has quit [Client Quit]
claptor has quit [Quit: this channel is bakas]
asmodlol has joined #ruby
AFKGeek has joined #ruby
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
rshetty has quit [Remote host closed the connection]
RealMarc has joined #ruby
giuseppesolinas has joined #ruby
freerobby has joined #ruby
fabrice31 has quit []
AlSquirrel has joined #ruby
rshetty has joined #ruby
Akuma has joined #ruby
Takle has quit [Remote host closed the connection]
russt has joined #ruby
yfeldblum has quit [Remote host closed the connection]
tgandrews has quit [Ping timeout: 256 seconds]
rshetty has quit [Remote host closed the connection]
<eguneys>
avril14th: thanks, so it's ok to delegate author methods to user right
lw has quit [Quit: s]
<avril14th>
it's even better
<avril14th>
just make sure to specify what to do when relation is nil though (read doc)
Mothore has joined #ruby
noop has quit [Ping timeout: 244 seconds]
procat has joined #ruby
<avril14th>
but your thing looks like Author should inherit User though
workmad3 has joined #ruby
<eguneys>
avril14th: do you have a example/blogpost explaining how to deal with similar kind of relationship
<avril14th>
it depends what you want to do
<eguneys>
I don't know just something generic, fundamental
jlast has joined #ruby
jlast has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
Aswebb_ has quit [Remote host closed the connection]
<dreinull>
has anybody done templating in connection with Latex and come up with some nice solution? Like haml or slim for html?
Aova has joined #ruby
marens has quit [Ping timeout: 256 seconds]
eguneys has quit [Quit: ERC (IRC client for Emacs 25.0.50.1)]
_mtr has joined #ruby
kobain has quit [Ping timeout: 240 seconds]
<ddv>
other public logging is prohibited <- I wonder how this can be enforced
AmirolAhmad has joined #ruby
Hanmac has joined #ruby
<workmad3>
ddv: kickbans on users found to be publishing a public log? :)
<ddv>
but how do you find out who does the logging :p
agit0 has quit [Quit: This computer has gone to sleep]
johnkary has joined #ruby
<ddv>
I guess you could kick people one by one
evanjs_ has joined #ruby
<workmad3>
ddv: check the starting point of the log against the 'official' log and see who joined at exactly that time? :)
adriancb has quit [Remote host closed the connection]
<workmad3>
ddv: I think it's mostly just a 'please don't publish a second public log that will just confuse the issue of where this channel logs to' :)
lw has joined #ruby
<ddv>
I know but it says 'PROHIBITED'
<ddv>
what are you going to do apeiros?
_mtr has quit [Ping timeout: 245 seconds]
<workmad3>
ddv: he's done it... he's formally made the statement that other logging is disallowed
<workmad3>
ddv: that's a valid meaning of 'prohibit' ;)
Spami has quit [Quit: This computer has gone to sleep]
evanjs has quit [Ping timeout: 244 seconds]
IrishGringo has quit [Ping timeout: 258 seconds]
<shevy>
let's torture ddv!
<shevy>
if the CIA can, so can we
<shevy>
yes we can!
it0a has joined #ruby
<workmad3>
can we waterboard him? yes we can!
<shevy>
that is so old school
godd2 has joined #ruby
<shevy>
we need brain bugs
<shevy>
like in that old movie ... beastmaster
<claf>
People who torture people, must be tried and imprisoned.
<claf>
Dont just stand idly by
<shevy>
but I also think in one of the Star Trek movies
<ddv>
apeiros is going to waterboard me
<claf>
as they destroy our human rights
<shevy>
claf but IRC is all about idling :(
<workmad3>
shevy: nah, old school would be using pliers to pull out his fingernails, or drilling holes in his teeth...
<shevy>
drilling holes in teeth
<shevy>
bacteria can do that!
lmickh has joined #ruby
<shevy>
claf how can you ensure that any government won't ignore human rights?
robertt_dex has joined #ruby
<workmad3>
ddv: yes, apeiros will waterboard you to find out who is logging :P
<workmad3>
shevy: pfft, easy... nukes
<claf>
shevy: well, for *any* government, that is not known
<claf>
shevy: for a *democracy* -- you need the 5 pillars
<claf>
shevy: the public, the journos, the police, the justice and the legislators
<shevy>
so a democracy won't condone torture
<claf>
they all must be awake
<claf>
shevy: All democracies have woved to respect the declaration of human rights
Aova has joined #ruby
Aova has quit [Remote host closed the connection]
<claf>
a government that does that, is probably no longer a functional democracy
chinmay_dd has joined #ruby
<shevy>
how about the death penalty against proven innocents
AlbertoCG has joined #ruby
Aova has joined #ruby
<workmad3>
claf: it could be a functional democracy, just the cultural values are such that the majority of people really like to torture people, and so vote to do so
<claf>
naw
<shevy>
hey pontiki I am doing it like you now and listening (and watching) old audio clips - I have just noticed that both Blondie and Kim Wilde had blond hair!
<claf>
people who love and live in freedom, do not like torture
<workmad3>
claf: that's a rather bold, unilateral statement... got any evidence to back it up? :P
maestrojed has joined #ruby
Aova has quit [Client Quit]
<shevy>
workmad3 well that is provided that, the way you vote has an actual impact on what is going to happen (or not happen)
Aswebb_ has joined #ruby
<claf>
workmad3: besides, who gets to decide who tortures, and what for? Same as with death penalty. Foolish to give humans that power. When system fails, its *you* who is next!
Aswebb_ has quit [Remote host closed the connection]
<workmad3>
claf: it's a democracy, so it's obviously the majority who decides all of that
<shevy>
:)
xymbol__ has quit [Quit: Be back later ...]
Aova has joined #ruby
<claf>
workmad3: it being?
evanjs_ has quit [Remote host closed the connection]
rylev has joined #ruby
<claf>
USA? Nope, the public did not decide, they decided to sheeple and let the military industrial complex run the show
<workmad3>
claf: you know, like with athenian democracy, where there were majority votes to kill people with publically painful methods that would be described as torture nowadays, or majority votes to go to war based on insults
<workmad3>
claf: etc.
<workmad3>
claf: ah, see now you're confusing a democratically elected republic with a democracpy
devoldmx33 has joined #ruby
evanjs has joined #ruby
<workmad3>
*democracy
tagrudev has quit [Remote host closed the connection]
mary5030 has joined #ruby
<claf>
yeah well
mary5030 has quit [Remote host closed the connection]
tgandrews has quit [Quit: This computer has gone to sleep]
<claf>
or parlamentarist democracy, and so on
ccal has left #ruby [#ruby]
evanjs_ has joined #ruby
mary5030 has joined #ruby
apoorvpa_ has quit [Remote host closed the connection]
<claf>
Sure, there are cultures that have corrupt value systems when viewed from your value system
Aswebb_ has joined #ruby
<claf>
ecmascript truthiness makes rubys seem solid
Aova has quit [Client Quit]
<shevy>
haha
<workmad3>
claf: yes... and you claimed that such alternate value systems couldn't have a 'functional democracy' based on a unilateral declaration that people who 'love freedom' 'can't tolerate torture'...
sargas has quit [Quit: This computer has gone to sleep]
chipotle has quit [Quit: cheerio]
evanjs has quit [Ping timeout: 244 seconds]
<claf>
workmad3: my argument was, that a functional democratic society would by virtue make its citizens value life, freedom and such "good" values
zybi1 has joined #ruby
<claf>
and abhorr unnecessary violence, torture
sailias has quit [Quit: Leaving.]
jeanlinux has quit [Remote host closed the connection]
<shevy>
claf well you could always use propaganda to influence the general public
<claf>
workmad3: and in fact, you can see the evidence in said USA. They love freedom and peace so much, they export their wars and violence to ensure that.
<shevy>
claf they have internal violence too, like shoot first then ask
<claf>
shevy: yeah, and all the other manipulations by those greedy for power
<shevy>
they think that their values are sane; even Al Capone said he was a nice guy :)
<workmad3>
claf: I love the inconsistency in your statement there btw ;)
<olivier_bK>
how can i get with web crawler a js web site ?
<claf>
well
<workmad3>
claf: 'a functional democratic society would *make* it's citizens value freedom'
<workmad3>
*its
<claf>
workmad3: once your understanding reaches a certain level, the only understanding you have certainty of, is that there is no absolute certainty
<workmad3>
claf: mmm, that's a nice, deep-sounding meaningless statement ;)
spicerack has joined #ruby
<workmad3>
claf: care to roll out some more?
snath has joined #ruby
<workmad3>
claf: maybe go back to the original form of it - 'Wisest is he who knows that he knows nothing'?
adac has quit [Ping timeout: 256 seconds]
<shevy>
certainty you have been quoted ^^^
hs366 has quit [Quit: Leaving]
Takle has quit [Remote host closed the connection]
<claf>
propaganda is creating ideas that seduce you into forgetting that you can not know the truth
<workmad3>
claf: or maybe you'd like to address the inconsistency of a statement that imposes a love of freedom by dictatorial decree? ;)
<shevy>
as long as you see that 2 + 2 = 5 we won't have any problem
<claf>
workmad3: fantasy? why address a fantasy
sailias has joined #ruby
qwerqwerqwer1 has joined #ruby
<workmad3>
claf: again, it's your statement
<shevy>
(in php it might be valid!)
<qwerqwerqwer1>
Ip
<qwerqwerqwer1>
Ip
<shevy>
yeah
<shevy>
Ip man
<workmad3>
claf: so you admit that your statement is pure fantasy?
qwerqwerqwer1 has left #ruby [#ruby]
<workmad3>
claf: reducing your entire argument to idealistic mumblings?
<claf>
shevys last video link seems to demonstrate a dysfunctional pillar of democracy
<claf>
workmad3: I mean, "love of freedom by dictatorial decree" is fantasy
<claf>
I've never heard of such
<workmad3>
claf: you're the one who made the statement :P
renderful has joined #ruby
adriancb has joined #ruby
<workmad3>
claf: your statement - 'a functional democratic society would by virtue make its citizens value life, freedom, ...'
<workmad3>
claf: *make*
<workmad3>
claf: as in impose
<claf>
workmad3: by "make" I don't mean actively make
troyready has joined #ruby
<workmad3>
claf: so under your democratic society, I'm free to believe that people shouldn't be free?L
dfinninger has joined #ruby
<claf>
workmad3: I mean, it would come as a result of their freedom, and the understanding that this works for people
hanmac1 has quit [Quit: Leaving.]
<claf>
workmad3: no, there is no 'my' democratic society
troyready has quit [Max SendQ exceeded]
<workmad3>
claf: so I'm *not* free to believe that?
goodenough has joined #ruby
kobain has joined #ruby
<claf>
workmad3: I think *you* are only living in your society, and having accepted that it tortures and incarcerates people as a necessity, you see that as 'normal
<workmad3>
claf: so the society imposes its values on me, forcing me to agree to them and subsuming my own personal freedom?
ferr has joined #ruby
<workmad3>
claf: I've made no claims about my own beliefs here
<claf>
workmad3: well a non-democratic society would impose values
<workmad3>
claf: I'm merely poking holes in your statements :P
<workmad3>
claf: so don't go trying to force your viewpoint onto me
rippa has joined #ruby
<shevy>
claf well that video is of course not representative. I mean for a complete representation you'd need to collect all interactions with police, and I guess the big majority will be uneventful
Takle has joined #ruby
<claf>
workmad3: to understand my statement about 'democratic society' 'making' citizens value life, one would need a better definition for 'democratic' -- and since by definition democratic society does not mean dictating citizens value system....
renderful has quit [Ping timeout: 245 seconds]
<workmad3>
claf: I understand it very well, thanks
Aova has quit [Remote host closed the connection]
<shevy>
workmad3 is totally worked up now!
<shevy>
time for a fish slapping duel
<workmad3>
claf: it's the classic dichotomy of trading off personal freedom for societal norms
<shevy>
with monty python quotes
<claf>
and of course society *does* impose norms on you
<claf>
even if confucian tribe
<shevy>
you could try to ignore society
<workmad3>
claf: right... so I'm trying to point out the inconsistency of a society that imposes the norm of loving the lack of imposing stuff on you :P
<claf>
well whats the prob?
<workmad3>
claf: i.e. 'a functional democratic society would make/impose its values of loving freedom on its citizens'
Aova has joined #ruby
econerd4ever has joined #ruby
<claf>
well I think it is something these citizens can experience and understand, and like
<workmad3>
claf: or, in other terms, it would subsume your individual values into a set of social values, one of which is valuing individual freedom
adriancb has quit [Remote host closed the connection]
<claf>
well in this case that is not quite the case
<workmad3>
claf: which is rather inconsistent... and also not something I'd suggest was a necessary aspect of 'functional democracy'
hamakn has quit [Remote host closed the connection]
<claf>
phenomenology is needed as well as inductive logic
<claf>
or you end up with funny statements that are true
<claf>
yep - human thinking!
zarubin has joined #ruby
plukevdh has joined #ruby
<workmad3>
claf: so, in the end, it seems your conclusion is that your 'ideal democratic society' is non-democratic by definition
<claf>
again, not at all
<workmad3>
claf: good times :)
<workmad3>
claf: ok... restate it so that your democratic society doesn't impose value systems which you yourself pointed out are undemocratic by definition
krz has quit [Quit: WeeChat 1.0.1]
adac has joined #ruby
<workmad3>
claf: and while you're doing that, I'm going to get on with more interesting stuff ;)
<claf>
workmad3: this democratic society that I speak of, causes value systems to *emerge*
confucius has joined #ruby
<workmad3>
claf: great... where do they emerge from?
<claf>
it might even have a built-in value, that value systems are set of unknowns
<workmad3>
claf: and what happens to the value systems of people that disagree with them
<claf>
ie. the people are *free* to select their value system
<claf>
hows that for a promise
<workmad3>
claf: and what would you say if the emerging overarching value system was tolerant of torture of 'outsiders' if it was seen by the majority as necessary to preserve their democracy and freedoms?
<claf>
workmad3: what happens when communist or fascists want to hang all the fascists and communists? nothing, cause the legislators have put up a law to protect their freedom, and the police are there to ensure
<claf>
or, thats the general idea in a democracy
<workmad3>
claf: how about if the democracy votes to remove those laws?
mengu has quit [Remote host closed the connection]
<claf>
workmad3: and that torture is nothing but violence, in case of USA, by those who have nominated themselves to be *better than the public and the legislators*
agit0 has joined #ruby
adriancb has joined #ruby
marens has joined #ruby
<claf>
workmad3: the laws should apply to everyone
<claf>
the tortured, the public, the torturers, even
Peterman_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mjuszczak has joined #ruby
<workmad3>
claf: right... but who decides them? and if they're seen as wrong by society as a whole, who changes them?
econerd4ever has quit [Remote host closed the connection]
<claf>
the public
<claf>
they should
<claf>
if they dont, democracy fails
<claf>
as can be seen
<workmad3>
claf: right... so what if the *public* votes to do away with those laws and allow torture?
<workmad3>
claf: which is just me restating - 'what happens if the democracy votes to remove those laws'
<claf>
then that democracy will be destroyed
agjacome has quit [Quit: leaving]
<claf>
by the usurpers that the stupid sheeple let into power by allowing them the means of violence
sinkensabe has quit [Remote host closed the connection]
<claf>
and the sheeple can only blame themselves
<claf>
Hows the CIA coke traffic these days, btw, still in rise?
<workmad3>
claf: how about if the public voted to remove those laws against torture and then voted to torture all the previously elected representatives and have a completely open democratic forum to make all decisions?
<workmad3>
claf: no idea, as a person who doesn't live in the US, I don't pay much attention to it :P
confucius has left #ruby [#ruby]
<claf>
well as you know thats not really how practical democracy works
<workmad3>
claf: I'm not arguing practical democracy, I'm exploring the extent of where your definition of 'democracy' stretches to
<claf>
but afaics torture is not a valid means among most democratic values
<workmad3>
claf: what are 'democratic values'?
aganov has quit [Remote host closed the connection]
lw has quit [Quit: s]
<claf>
workmad3: now theres quite a pile of books written on that
<claf>
workmad3: I think its life, love and freedom
<workmad3>
claf: I'm asking for what it means to you in this context ;)
<claf>
everything else comes from those three and valuing them
adriancb has quit [Remote host closed the connection]
<workmad3>
claf: ok... so you think that it's impossible for a society to form that doesn't value those, and yet still operates with some form of democratically elected representatives or even goes whole-hog and has a democratic public forum deciding all matters?
<workmad3>
claf: or do you merely see it as unlikely?
<claf>
well
adriancb has joined #ruby
econerd4ever has joined #ruby
<claf>
different cultures have different traditions and histories, and that largely dictates how they organize
Peterman_ has joined #ruby
troyready has joined #ruby
<workmad3>
claf: that doesn't answer the question I put forward :P
<claf>
cultures that have little responsibility on the people, seem to have "less" democracy that those where people have had to fend for themselves
<workmad3>
claf: impossible or unlikely... which do you go for?
adriancb has quit [Remote host closed the connection]
<claf>
I think democracy in its core is an extension of human biology
<claf>
you have a curious mind, empathy and hunger
<workmad3>
claf: ok... so biased, irrational, inconsistent and evolved in a somewhat random manner over long periods of time?
<claf>
no I dont think you can have a society that doesn't organize according to its values
Xeago has joined #ruby
<workmad3>
claf: you can have humans that don't organise according to their own values
<shevy>
let's face it
<shevy>
humans are corrupt
louism2wash has joined #ruby
<workmad3>
claf: is it really such a stretch to think societies couldn't be just as actively harmful to themselves?
mjuszczak has quit []
wsmoak has quit [Ping timeout: 252 seconds]
bkolden has joined #ruby
adriancb has joined #ruby
<claf>
workmad3: I also think Hegel had a great insight. It goes something like: the problem of being human is winning the man that puts you down. But by the act of winning, you become the man.
rimantas has quit [Quit: rimantas]
IrishGringo has joined #ruby
<workmad3>
claf: heh :) while I see the problem of being human is that our only tools for comprehending reality are hardwired to act in ways that divorce from reality in multiple ways
<claf>
workmad3: and yes, you can have some people who are not involved in society at all. But you cant have societal organization that is in conflict with its peoples values. It will either become divided or torn down.
<workmad3>
claf: namely, our brains are hardwired in lots of respects to act against rational/sane purposes :)
<claf>
or is it the other way around?
ghostbox has quit [Remote host closed the connection]
<workmad3>
claf: anyway, good chat, must go do work now though :)
Peterman_ has quit [Remote host closed the connection]
<claf>
thanks workmad3
Peterman_ has joined #ruby
<claf>
yep, time to go code (ecma)
adriancb has quit [Ping timeout: 244 seconds]
<claf>
And Fight Against Torture!
wsmoak has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
sargas has joined #ruby
rshetty has joined #ruby
kamil has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
TehStig has joined #ruby
rylev has quit [Remote host closed the connection]
_maes_ has joined #ruby
Xeago has quit [Remote host closed the connection]
Daniel__^_^ has joined #ruby
mengu has joined #ruby
jobewan has joined #ruby
mengu has quit [Remote host closed the connection]
mjuszczak has joined #ruby
surs_ has joined #ruby
surs_ has quit [Client Quit]
ghostbox has joined #ruby
himsin has joined #ruby
<shevy>
with ECMA
<shevy>
and YMCA
Tranquility has joined #ruby
<Daniel__^_^>
I'm just learning ruby, this is great
<j2p2>
:)
diegoviola has joined #ruby
VictorBjelkholm has quit [Ping timeout: 252 seconds]
uber_hulk has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
surs has quit [Quit: leaving]
surs has joined #ruby
IrishGringo has quit [Ping timeout: 272 seconds]
neoxquick has joined #ruby
<pontiki>
(it's fun to say at the..)
AFKGeek has quit [Quit: Fades into the shadows]
klmlfl has joined #ruby
hamakn has joined #ruby
william3 has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has quit [Remote host closed the connection]
aspires has joined #ruby
jlast has joined #ruby
jlast_ has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
shazaum_ has joined #ruby
Shazaum has quit [Ping timeout: 272 seconds]
xymbol__ has joined #ruby
sailias has quit [Quit: Leaving.]
jlast has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
pwh has joined #ruby
adriancb has joined #ruby
gener1c has quit [Ping timeout: 255 seconds]
valeriansaliou has joined #ruby
jlast_ has quit [Ping timeout: 245 seconds]
terlar has joined #ruby
iamninja has joined #ruby
goodenough has quit [Remote host closed the connection]
xymbol__ has quit [Client Quit]
VictorBjelkholm has joined #ruby
iwishiwerearobot has joined #ruby
xymbol__ has joined #ruby
tessi_zz has joined #ruby
asuka has joined #ruby
musicmatze has joined #ruby
l3kn has joined #ruby
yeticry has quit [Ping timeout: 258 seconds]
pu22l3r has quit []
djbkd has joined #ruby
chinmay_dd has quit [Ping timeout: 272 seconds]
yeticry has joined #ruby
coderhs has quit [Quit: Leaving]
gener1c has joined #ruby
djbkd has quit [Remote host closed the connection]
iwishiwerearobot has quit [Ping timeout: 272 seconds]
Morkel has quit [Quit: Morkel]
asmodlol has quit [Ping timeout: 264 seconds]
ta has joined #ruby
mjuszczak has joined #ruby
asmodlol has joined #ruby
_beechnut has quit [Quit: Leaving.]
rshetty has quit [Remote host closed the connection]
goodenough has joined #ruby
ghostmoth has joined #ruby
gsd has joined #ruby
ghostbox has quit []
SOLDIERz has quit [Quit: Be back later ...]
michaeldeol has joined #ruby
olivier_bK has quit [Ping timeout: 265 seconds]
conniemj has joined #ruby
Stoge88 has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
maestrojed has quit [Ping timeout: 245 seconds]
sambao21 has quit [Client Quit]
arietis has joined #ruby
fgo_ has quit [Ping timeout: 256 seconds]
sambao21 has joined #ruby
<jheg>
So when writing classes that inherit
<jheg>
lets say the programis quite complex and the inheritance stack is 10 deep
lkba has joined #ruby
mondongo has quit [Quit: mondongo]
<jheg>
does that mean the the lowest subclass has to initialize every inherited instance veriable?
triple_b has joined #ruby
mondongo has joined #ruby
<jheg>
I think this is my main area of confusion regarding inheritance
icbm has joined #ruby
<canton7>
the derived class initializer will typically call the base class initializer
kl__ has quit [Ping timeout: 255 seconds]
andikr has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
<jheg>
the base class being the uppermost superclass?
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atomical has joined #ruby
j_mcnally has joined #ruby
momomomomo has joined #ruby
Stoge88 has joined #ruby
alex88 has quit []
<j2p2>
it'll go up the chain til it finds what it needs
mjuszczak has quit []
pushpak has joined #ruby
<pontiki>
canton7: when you say "typically" under what circumstances do you mean "typical"
<pontiki>
?
<jheg>
but the subclass has to initialize its superclasses IV to pass up the chain right?
dc has joined #ruby
mjuszczak has joined #ruby
JokerDoom has joined #ruby
mjuszczak has quit [Client Quit]
<pontiki>
unless the author of the subclass either leaves out the method initialize, or explicitly calls super within it, superclasses' initialize method does not get called
lessless has quit [Ping timeout: 265 seconds]
kapil__ has quit [Quit: Connection closed for inactivity]
drkyro has joined #ruby
Hijiri has quit [Ping timeout: 272 seconds]
<jheg>
Ah I didnt realize that the superclass initialize method didnt get called when the subclass is instantiated
rbennacer has quit [Remote host closed the connection]
econerd4ever has joined #ruby
timonv_ has quit [Remote host closed the connection]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jheg>
So why do you use inheritance over modules - doesnt that keep it a lot cleaner
<jheg>
?
dc_ has quit [Ping timeout: 252 seconds]
rylev has joined #ruby
<claf>
well
<claf>
many dont
<workmad3>
jheg: I don't use inheritance over modules
<claf>
mix-ins baby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<j2p2>
jheg, ruby's pretty flexible too and doesn't care that much about instance variables
<pontiki>
generally speaking, composition is valued over inheritance. however, inheritance most definitely has it's place at the table as well.
fgo_ has joined #ruby
<canton7>
people - particularly beginnners - tend to over-use inheritance. inheritance is a particularly specific tool which can be abused to solve a wide range of stuff
momomomomo has quit [Ping timeout: 240 seconds]
treehug88 has joined #ruby
<canton7>
inheritance is about *specialisation*. Is your (proposed) subclass a specialised sort of whatever the superclass is? if it isn't, inheritance probably isn't the right tool
<jheg>
j2p2: that is an example of where inheritance is flawed yes?
aZaFred has joined #ruby
havenwood has joined #ruby
<j2p2>
i was more trying to show you that you don't have to worry about instance variables in subclasses so much if you're not going to use them
<j2p2>
if you never needed name in the subclass, you can just ignore it
bricker`work has joined #ruby
rylev has quit [Remote host closed the connection]
<j2p2>
but yeah, what everyone else said - mixins are pretty handy
chinmay_dd has joined #ruby
Spami has joined #ruby
sanguisdex has joined #ruby
j_mcnally has quit [Ping timeout: 245 seconds]
<jheg>
yeah good stuff
rbennacer has joined #ruby
<jheg>
thanks guys really usefull
rbennacer has quit [Remote host closed the connection]
magoo has joined #ruby
rbennacer has joined #ruby
<j2p2>
np
procat has quit [Ping timeout: 245 seconds]
<jheg>
would I be right in thinking that inheritance is a good choice if the subclass needs to inherit the superclasses instance variables otherwise look at mixins?
tvw has quit []
zybi1 has quit [Quit: Leaving]
djbkd has joined #ruby
<jheg>
sorry if noob questions I just feel this is really important stuff to know
<workmad3>
jheg: but it's not a good idea to rely on instance variables in either subclasses or mixins, IMO
adriancb has quit [Remote host closed the connection]
vyorkin has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
<workmad3>
jheg: instance variables are, IMO, a private implementation detail of a class, not something you should depend on
aclearman037 has joined #ruby
mjuszczak has joined #ruby
<pontiki>
indeed; objects respond to messages, which classes implement as methods; do not assume any particular implementation *inside* the class
TomyWork has joined #ruby
<jheg>
OK so if I had a Person class which had subclasses of male and female I would store iv’s name, age and im’s like speak, run, walk, jump
pu22l3r has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
AlbertoCG has quit [Ping timeout: 255 seconds]
<j2p2>
that is one option yes
<workmad3>
jheg: well, I'd personally start by asking if you really needed Male and Female as subclasses, or if you just wanted 'Person.new(gender: :male)' ;)
<j2p2>
or you could have a mixin "Jumpable" which gave it the methods to jump for example
<jheg>
and in the subclasses I’d have say in Female iv’s girl things and in the Male iv’s boy things and im’s like you know has_mood_swings etc :)
stunder has joined #ruby
<pontiki>
*sigh*
<pontiki>
this is why we can't have nice things
<jheg>
yeah so I could resue on my Dog class yes? @j2p2
<workmad3>
pontiki: oh, you mean the casual, implicit sexism in examples?
<j2p2>
yeah sure
<jheg>
it was a joke guys
<workmad3>
jheg: * & gals
<jheg>
It was either that or going into far too much detail
<pontiki>
does not make it funny or welcome
<jheg>
a gal can be a guy
Crazy_Atheist has joined #ruby
<jheg>
oh come on pontiki seriously?
<workmad3>
pontiki: as a gal, what's your opinion on being able to 'be a guy'? :)
mikecmpbll has quit [Quit: ciao.]
geggam has joined #ruby
<pontiki>
death by a thousand cuts
<workmad3>
pontiki: or would you prefer a different, masculine-oriented new-age gender-neutral term... like 'dude'? :)
<shevy>
I am sorry jheg, pontiki has spoken
<shevy>
you will have to be punished
<pontiki>
i have no problem with "guy" or "dude" or even "man"
<Daniel__^_^>
oh hermano
<shevy>
oh mi gato
<shevy>
hombres!
<Daniel__^_^>
shevy: I don't think rdoc requires two ##, I think it's just a stylistic thing
<shevy>
ok
<workmad3>
pontiki: fun linguistic history time - 'man' used to be the gender-neutral term for 'person' :)
rbennacer has quit [Remote host closed the connection]
<workmad3>
pontiki: with 'were' being 'male' :)
<shevy>
it's a bit weird because rdoc makes crazy things when I use ASCII adornment like: '# =========== #'
<jheg>
soz pontiki I’m so not sexist i’ve got a girlfriend and a daughter ;)
<shevy>
ok now we understand why he is such a sexist
<workmad3>
jheg: having a girlfriend and a daughter does not mean you can't be sexist ;)
georgesmith has quit [Quit: georgesmith]
<havenwood>
^
<workmad3>
jheg: otherwise there wouldn't be a problem with sexist people reproducing....
<shevy>
jheg have you finally understood subclassing or will your daughter pick up ruby before you
patrick99e99 has joined #ruby
<pontiki>
just drop it
<jheg>
oh i so need to give up on jokes with you folks
<workmad3>
pontiki: aww, I'm having fun teasing him :(
<jheg>
jheg: soz pontiki I’m so not sexist i’ve got a girlfriend and a daughter
<shevy>
we haven't quite started yet!
beneggett has joined #ruby
<jheg>
^ was so a joke surely you know this
bahamas has joined #ruby
deric_skibotn has joined #ruby
<shevy>
pontiki is not amused at all
<bahamas>
hello. does this error say I need to install net-ssh NameError: uninitialized constant Net::SSH? I don't know much about ruby
<shevy>
bahamas that means you must require it first
<bahamas>
or can I require it somewhere outside the plugin?
spyderman4g63 has quit [Read error: Connection reset by peer]
<havenwood>
bahamas: require 'net/ssh'
<shevy>
you can require it before you load up that plugin
<bahamas>
in Vagrantfile then
<shevy>
:)
adriancb has joined #ruby
spyderman4g63 has joined #ruby
<pontiki>
bahamas: however, you are correct, that is indeed broken
anaeem1_ has joined #ruby
codezomb has joined #ruby
<shevy>
file a bug!
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
let them know that their software is broken!!!
<workmad3>
jheg: btw, as you probably realised, jokes don't always come across well in IRC... seeing as you couldn't tell a lot of the response you got was *also* jokes ;)
<pontiki>
that particular plug in is using things that need to be required but aren't explicitly required; they assume something else will do so
<Daniel__^_^>
it mentions placing the requires in spec_helper in the readme
<shevy>
jheg you'll just have to find a new joke
<jheg>
v true workmad3 hopefully in time we’ll understand each other better
<bahamas>
I will. thanks, guys!
<shevy>
jheg as long as you find your own jokes funny, how bad can it be?
lolmaus has quit [Quit: Konversation terminated!]
AlSquirrel has quit [Quit: This computer has gone to sleep]
<pontiki>
what's the cost of a require if something is already required?
<jheg>
my naming conventions are terrible though
timonv_ has joined #ruby
<shevy>
I think it won't require again
Takle has quit [Remote host closed the connection]
Techguy305 has joined #ruby
<pontiki>
it was a slightly rhetorical, shevy
<workmad3>
shevy: yes, but what's the cost of the check? :)
_mtr has joined #ruby
<pontiki>
point being, it wastes much less time requiring it where needed than having people chase down problems with using your library
<shevy>
workmad3 ah hmm
<shevy>
workmad3 very very very low cost
jheg has left #ruby [#ruby]
<workmad3>
yeah, having the require in the plugin would be correct, rather than assuming it's loaded
_beechnut has joined #ruby
jheg has joined #ruby
<workmad3>
shevy: a lot of the load-time issues with rails are due to that check not being very low cost, I believe (and a lot of load-time speedups revolved around making it quicker)
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pontiki>
(just had this go-round at work, too)
allcentury has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
<workmad3>
shevy: but yeah, it's an ignorable cost unless you're pulling files in during normal running of your program :)
sambao21 has quit [Quit: Computer has gone to sleep.]
troulouliou_dev has quit [Quit: Leaving]
arup_r has quit [Quit: Leaving.]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adriancb has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
kenneth has joined #ruby
<shevy>
rails must be the snail among the webframeworks
ghr has quit [Ping timeout: 258 seconds]
<shevy>
DAMN IT
<shevy>
I KNEW IT
<shevy>
matz will get bored with ruby
<pontiki>
rails has many checks to see if something needs to be required automatically
rbennacer has joined #ruby
<shevy>
though actually, I like that he takes ideas from erlang
<shevy>
if I could code, I would write a programming language inspired based on reallife biological objects
<pontiki>
yeah, but you'd have to change your name to Conroy
<shevy>
Copyright (c) 2015 Yukihiro Matsumoto
<shevy>
wtf
yetanotherdave has joined #ruby
spyderma_ has joined #ruby
gsd has joined #ruby
<shevy>
ok
<havenwood>
shevy: Matz is in the future.
<shevy>
yeah I was about to say
<shevy>
matz can time travel
<workmad3>
shevy: just fork erlang and rename it shevylang
<havenwood>
er
<shevy>
workmad3 I find erlang's syntax unusable
<pontiki>
ershevy
<havenwood>
they should drop the lang
<havenwood>
just be "er"
<shevy>
how about err?
<pontiki>
to err is shevy
<workmad3>
shevy: how about elixir? :)
<shevy>
err
sargas has joined #ruby
<bahamas>
what defines the 'set' method? I'm getting this error in a file: undefined method `set' for main:Object (NoMethodError)
Hijiri has joined #ruby
LouisRoR has quit [Ping timeout: 255 seconds]
Peterman_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
spyderman4g63 has quit [Ping timeout: 245 seconds]
Aswebb_ has joined #ruby
<havenwood>
bahamas: i'll wildly guess: sinatra
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_beechnut has quit [Ping timeout: 244 seconds]
hamakn has joined #ruby
Kricir has quit [Remote host closed the connection]
<shevy>
sounds correct
<shevy>
you seem to have some chaos there bahamas
lw has joined #ruby
tubuliferous has joined #ruby
Kricir has joined #ruby
himsin has left #ruby [#ruby]
<Daniel__^_^>
the Object class, has no set method haha
<tubuliferous>
Hey folks, how do I add a directory to $LOAD_PATH in my .bash_profile file in OS X?
yfeldblum has joined #ruby
Photism has joined #ruby
<bahamas>
havenwood: no. I'm trying to have Vagrant run some serverspec specs
<bahamas>
shevy: ^^
wjimenez5271 has joined #ruby
<bahamas>
ups. I meant arrow pointing up
<havenwood>
my wild guess is wrong? impossible!
hamakn has quit [Ping timeout: 264 seconds]
<shevy>
hehe
asmodlol has quit [Ping timeout: 256 seconds]
<havenwood>
tubuliferous: $LOAD_PATH is a Ruby global variable. It's Bash that goes in a .bash_profile.
bmichelsen has joined #ruby
<havenwood>
tubuliferous: The question doesn't make much sense. Whatcha trying to do?
pedahzur has joined #ruby
<tubuliferous>
Ah...
<pedahzur>
Howdy! I am trying to install Redmine on a system that doesn't have development tools (because it's a production server). is there a way to tell it to fall back to using the pure-Ruby json module so it doesn't try (and fail) to compile the C module? Or, alternately, is there a way to package up the whole thing on a dev server, and drop it on the production server ready to go? (maybe a subdirectory I could copy over)
nclbr has quit [Quit: Leaving...]
<bahamas>
can anyone give me some tips about how this 'set' works. I want to have Vagrant working with serverspec, but my knowledge of Ruby is minimal
<tubuliferous>
havenwood: all I'm trying to do is add a directory to the default set of directories Ruby searches for source files
bmichelsen has quit [Client Quit]
yfeldblum has quit [Ping timeout: 244 seconds]
ringarin has joined #ruby
dh64 has joined #ruby
zarubin has quit [Quit: Leaving.]
<havenwood>
tubuliferous: alias ruby="ruby -r gem_name_here"
<tubuliferous>
cool
<tubuliferous>
Thanks, havenwood!
asmodlol has joined #ruby
<shevy>
sweet sweet aliases
magoo has quit [Quit: WeeChat 1.0.1]
agit0 has quit [Quit: This computer has gone to sleep]
<tubuliferous>
like God's own mercy
rylev has joined #ruby
<havenwood>
tubuliferous: You're welcome. Though I'd hesitate to do such a thing. If you can just use -r where you need it it'd be better! :)
chinmay_dd_ has joined #ruby
VictorBjelkholm has quit [Remote host closed the connection]
<tubuliferous>
well, I'm not doing anything fancy with Ruby...
tristanp has quit [Remote host closed the connection]
<tubuliferous>
I mean, I just use it for an occasional one-off script, so I'm not too worried about really borking anything
roolo has quit [Remote host closed the connection]
<shevy>
you could alias it to ruby1 !
roolo has joined #ruby
jordsmi has joined #ruby
<havenwood>
bahamas: Where'd the `set` outside any namespace come from? Did you write it?
chinmay_dd has quit [Ping timeout: 258 seconds]
_beechnut has joined #ruby
tristanp has joined #ruby
<workmad3>
tubuliferous: there's also 'ruby -I other/path/for/searching'
<tubuliferous>
ah...sweet
<tubuliferous>
thanks, workmad3
Photism has quit [Read error: Connection reset by peer]
Photism has joined #ruby
<workmad3>
tubuliferous: -r for require, -I for adding to the load path, and set RUBY_OPTS for 'defaults' :)
Peterman_ has joined #ruby
agit0 has joined #ruby
<havenwood>
workmad3: ah, right - that's what was asked for - much better!
<tubuliferous>
RUBY_OPTS is really what I was looking for
<tubuliferous>
=)
<workmad3>
havenwood: yeah, I'm not forgetting about RUBY_OPTS since I delved in and discovered it's how 'bundle exec' works :)
sambao21 has joined #ruby
lele has joined #ruby
Kricir has quit [Remote host closed the connection]
goodenough has quit [Remote host closed the connection]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
kenneth has joined #ruby
x1337807x has joined #ruby
apeiros_ has joined #ruby
psmolen has joined #ruby
rkday has joined #ruby
tristanp has quit [Remote host closed the connection]
fgo_ has joined #ruby
vasilakisfil has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 255 seconds]
studiotate has quit [Ping timeout: 244 seconds]
bahamas has joined #ruby
r0bby_ has joined #ruby
drdanmaku has joined #ruby
bahamas has quit [Client Quit]
fargas has quit [Read error: Connection reset by peer]
<axilla>
havenwood: child creates a child, but if the folder name already exists it won't create it, i want to use the existing folder if it exists, otherwise just continue along as normal.
robbyoconnor has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
giuseppesolinas has joined #ruby
wjimenez5271 has joined #ruby
mjuszczak has quit []
kirun has joined #ruby
russt has joined #ruby
jenrzzz has joined #ruby
mjuszczak has joined #ruby
chinmay_dd_ has quit [Quit: Leaving]
rylev has quit [Remote host closed the connection]
timonv_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
whoisjake has joined #ruby
iwishiwerearobot has joined #ruby
startupality has joined #ruby
Takle has joined #ruby
sarmiena_ has joined #ruby
tgandrews has joined #ruby
lkba has joined #ruby
Peterman_ has quit [Remote host closed the connection]
startupality has quit [Client Quit]
Peterman_ has joined #ruby
<havenwood>
axilla: so would that mean?: child = current_user.catalogs.find_by_name(folder.name) || catalog.create_child(folder.name, user)
cleopatra has joined #ruby
iwishiwerearobot has quit [Ping timeout: 245 seconds]
adriancb has joined #ruby
timonv_ has quit [Remote host closed the connection]
Techguy305 has quit [Ping timeout: 250 seconds]
timonv_ has joined #ruby
allcentury has quit [Ping timeout: 265 seconds]
<terrellt>
Or child = current_user.catalogs.where(:name => folder.name).first_or_create
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<terrellt>
axilla: ^
allcentury has joined #ruby
kenneth has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
dts|pokeball has joined #ruby
econerd4ever has quit [Read error: Connection reset by peer]
sanguisdex has joined #ruby
econerd4ever has joined #ruby
dfinninger has quit [Remote host closed the connection]
adriancb has quit [Ping timeout: 264 seconds]
<louism2wash>
hey guys, I am wondering what the terminology for "__FILE__" is? Is it a constant? Thanks.
jenrzzz has joined #ruby
timonv_ has quit [Ping timeout: 256 seconds]
<apeiros_>
louism2wash: constants start with A-Z, so no, not a constant
<apeiros_>
magic/pseudo string literal maybe.
rdark has quit [Quit: leaving]
paulfm has quit [Remote host closed the connection]
<eindoofus>
does anyone else get an "invite-only" error message when joining #rails ?
<shevy>
adding a dependency on a gem makes it too inflexible :(
<eindoofus>
i've identified myself with freenode so i don't know what the problem is
<shevy>
I dont know rails, are you not on #rubyonrails?
<eindoofus>
oh
<eindoofus>
that's where i went wrong. thanks
timonv_ has joined #ruby
dfinninger has joined #ruby
<Daniel__^_^>
#rails is probably about trains or something
louism2wash has quit [Quit: This computer has gone to sleep]
mozzarella has joined #ruby
pu22l3r has quit [Remote host closed the connection]
LouisRoR has joined #ruby
tristanp has joined #ruby
pu22l3r has joined #ruby
fgo_ has quit [Ping timeout: 258 seconds]
sambao21 has joined #ruby
<eindoofus>
how do you deal with being rejected? i went through two phone interviews, one in-person interview, and was supposed to have a second interview either yesterday or today but there hasn't been a beep out of their recruiter. he hasn't even responded to my email since yesterday afternoon.
<eindoofus>
am i wrong to feel disrespected? i thought it's common courtsey to reply and update, even if they aren't interested anymore
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RitterJack has quit [Remote host closed the connection]
<shevy>
eindoofus sometimes people are too lazy or too busy to respond
<pontiki>
whether you feel disrespected or not is entirely up to you. but you should push back on the recruiter if they're the one managing this process
<pontiki>
they may have had something come up, family emergency, who knows
<pontiki>
or they may be a total putz
yfeldblum has joined #ruby
<pontiki>
regardless, email, phone, text, as many ways as you have to contact them, do so
<pontiki>
it shows that *you* are not letting this drop
<pontiki>
if you have contact with the actual employers, also contact them
rylev has quit [Remote host closed the connection]
<pontiki>
in all this, though, keep an up-beat and positive attitude
dc_ has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
<pontiki>
eindoofus: all that was directed at you, sorry
chrishou_ has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
pu22l3r has quit [Read error: Connection reset by peer]
dc has quit [Ping timeout: 258 seconds]
pu22l3r has joined #ruby
chrishough has quit [Read error: Connection reset by peer]
baweaver has quit [Read error: Connection reset by peer]
fgo_ has joined #ruby
hfp_ has joined #ruby
chrishou_ has quit [Client Quit]
DLSteve has joined #ruby
chrishough has joined #ruby
hfp_ is now known as hfp
rylev has joined #ruby
klmlfl has quit [Remote host closed the connection]
ohaibbq has joined #ruby
timonv_ has quit [Remote host closed the connection]
econerd4ever has quit [Remote host closed the connection]
klmlfl has joined #ruby
timonv_ has joined #ruby
jenrzzz has joined #ruby
econerd4ever has joined #ruby
econerd4ever has quit [Remote host closed the connection]
lw has quit [Quit: s]
econerd4ever has joined #ruby
hfp_work has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
mjuszczak has quit []
Pnderer has joined #ruby
<Pnderer>
hello!
rylev has quit [Remote host closed the connection]
_JokerDoom has joined #ruby
<Pnderer>
Im trying to learn a secondary language(primaray is JS) and I was wondering if I can get your opinion if I should use Ruby over Go
<Pnderer>
ik this is subjective, Im only looking for opinions
<shevy>
dunno
<shevy>
go and ruby do not fill the same niche
timonv_ has quit [Ping timeout: 256 seconds]
<havenwood>
Pnderer: I vote Ruby.
<havenwood>
This is #ruby after all.
<Pnderer>
havenwood, can you explain?
jenrzzz has quit [Ping timeout: 265 seconds]
<Pnderer>
Ik this is why Im trying to find bias opinions
jheg has joined #ruby
<wasamasa>
Pnderer: we're in #ruby, there's no explanation necessary for recommending it
rkday has quit [Ping timeout: 252 seconds]
TehStig has quit [Remote host closed the connection]
JokerDoom has quit [Ping timeout: 250 seconds]
<Pnderer>
wasamasa, Why not? You chose Ruby for a reason. Get a reason that applies with Go
<shevy>
Pnderer we even think that ruby is superior to javascript
<wasamasa>
Pnderer: my reason was work
<shevy>
[x] because you like google
<Daniel__^_^>
go is compiled
<wasamasa>
Pnderer: people used ruby at work, I learned ruby
<shevy>
[x] because go makes you super productive
<wasamasa>
Pnderer: simple as that
<Pnderer>
shevy, Im not looking for Ruby and Js since I have my reasons why JS is superior IMO
<shevy>
shall I link the watman video
studiotate has quit [Quit: Computer has gone to sleep.]
<wallerdev>
haha i think the real issue preventing elegant oneliners is browser support
<shevy>
that is why Pnderer ought to go with Go
jcdesimp has joined #ruby
<claf>
but ATM io/node.js gives me "grr, this would be so simple in ruby" about once an hour
rodfersou has quit [Quit: leaving]
<shevy>
hehehe
<Pnderer>
Meteor does a lot of stuff for you, and is really fast
beneggett has quit [Ping timeout: 256 seconds]
<shevy>
you and your continued speed reference
<shevy>
Go is faster than Ruby
<shevy>
there you go
<wasamasa>
speed is all you need
<Pnderer>
Ik Ruby has better syntax style than Go and JS
shazaum_ has quit [Quit: This computer has gone to sleep]
<shevy>
but speed is more important
sinkensabe has joined #ruby
marr has joined #ruby
<claf>
and core, and packaging, facilities
b4rbz has quit [Ping timeout: 256 seconds]
<claf>
but speed is more important
pu22l3r has quit [Ping timeout: 240 seconds]
<shevy>
hehe
beneggett has joined #ruby
<claf>
so use ruby to build it, because it is 4 times faster than your node
<claf>
(to build)
<Pnderer>
You sure that applies to Meteor.js?
momomomomo has quit [Ping timeout: 272 seconds]
<workmad3>
can't quite use ruby to replace meteor, tbh
<workmad3>
unless you fancied using opalrb and then building out a similar solid comms & multi-client synchronisation framework with opalrb and a ruby backend
<workmad3>
havenwood: how's the multi-client synchronisation in volt?
* StoneCypher
is currently semi-in-love with react.js
<claf>
ok, I put all of these under "the frameworks that break the semantic web in favour of vaporware"
<claf>
whats the point
<StoneCypher>
but it's not ruby specific and it doesn't do magic glue
agit0 has quit [Client Quit]
<claf>
like http is going to run faster if its a single page app
<workmad3>
StoneCypher: hah, I'm doing a project with react.js atm too, quite enjoying it :)
<StoneCypher>
workmad3: good stuff :)
pu22l3r has joined #ruby
<StoneCypher>
workmad3: i'm the author of (various garbage you've never heard of)
<workmad3>
StoneCypher: you never know ;)
<StoneCypher>
workmad3: in the react space, there's only one thing - a flux conceptual replacement called flocks
<workmad3>
StoneCypher: well, my exposure to react is about 2 weeks old :P
<havenwood>
workmad3: i dunno, haven't had a chance to actually look at internals yet
<havenwood>
or use it for that matter
spyderma_ has quit []
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
Kricir has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<workmad3>
claf: no, but it could easily run faster when it's a single persistant websocket connection rather than a separate request on each single interaction :P
baweaver has joined #ruby
<havenwood>
it looks like Confreaks hasn't posted the RubyConf Volt talk yet
lolmaus has quit [Quit: Konversation terminated!]
beef-wellington has quit [Ping timeout: 244 seconds]
rkday has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
<workmad3>
havenwood: ah, shame
bwr has joined #ruby
agit0 has joined #ruby
r0bby_ has joined #ruby
geggam__ has joined #ruby
geggam has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
<StoneCypher>
workmad3: react's a bunch of fun, especially after one gets to the point of centralizing stuff at the top and letting it push itself down
Fire-Dragon-DoL has joined #ruby
<StoneCypher>
you get rid of a huge amount of updating work
Fire-Dragon-DoL has quit [Max SendQ exceeded]
<workmad3>
StoneCypher: yeah, that's nice
<workmad3>
StoneCypher: I also like the component-based approach it encourages
Fire-Dragon-DoL has joined #ruby
Megtastique has joined #ruby
beef-wellington has joined #ruby
momomomomo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
iceden has joined #ruby
wallerdev has quit [Quit: wallerdev]
sargas has quit [Quit: This computer has gone to sleep]
<StoneCypher>
workmad3: yeah it seems like a really comfortable scale of reuse and modularity
<Fire-Dragon-DoL>
Mhhh guys I have a doubt about correct way to handle a test. Suppose I have a method that generate a has like { 20: true, 15: false } (ids with success/fail data), in my test, should I actually generate the hash manually (assert method_result == { 20: true, 15: false }) or should I generate it through code? Like records.inject({}) { |hash, record| hash[record.id] = true/false; hash } ?
<havenwood>
waxjar: Matz said he preferred Go to Rust.
tristanp has joined #ruby
timonv_ has joined #ruby
atomical has joined #ruby
adriancb has quit [Ping timeout: 250 seconds]
econerd4ever has quit [Read error: Connection reset by peer]
<havenwood>
waxjar: Some Rubyists certainly seem to like Rust.
<vvivv>
scala the best
<havenwood>
vvivv: clojure > scala
econerd4ever has joined #ruby
<havenwood>
vvivv: jruby \o/
kobain has quit [Ping timeout: 250 seconds]
johnkary has quit [Ping timeout: 240 seconds]
Pupeno has quit [Quit: Leaving...]
<waxjar>
i'm quite interested in rust, but its p hard to get started with for me.
<waxjar>
never did something with low-level languages
ferr has quit [Ping timeout: 255 seconds]
agit0 has joined #ruby
agit0 has quit [Client Quit]
rkday has quit [Ping timeout: 265 seconds]
Takle has quit [Remote host closed the connection]
wjimenez5271 has quit [Remote host closed the connection]
Takle has joined #ruby
wjimenez5271 has joined #ruby
ramfjord has joined #ruby
jvrmn has joined #ruby
<sweeper>
eh, once it gets better for embedded devices, I'll be more interested in rust
rubie has joined #ruby
rylev has joined #ruby
rylev has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
rylev has joined #ruby
greenbagels has joined #ruby
<rubie>
hi all: general question, if you were making a game of checkers. how would you create new "checker" objects. would you create them iteratively or just type them all out yourself, or does this not really even matter?
diegoviola has joined #ruby
<j2p2>
like to initialize the board?
<rubie>
no
<rubie>
so there are 16 peices
<rubie>
per team
pietr0 has quit [Ping timeout: 244 seconds]
<rubie>
so 16 red 16 black
Mekkis has joined #ruby
<havenwood>
rubie: :black and :red
<banister>
rubie i'd do none of that and just go watch anime instead, speficially rosario vs vampire
pietr0 has joined #ruby
agjacome has joined #ruby
tejas-manohar has joined #ruby
<rubie>
dont you want each red piece and each black piece to be its own object?
rylev_ has joined #ruby
<havenwood>
rubie: a Symbol is an Object
robertt_dex has quit [Remote host closed the connection]
<jvrmn>
I think he is asking if you would create all 16 instances separately or generate them dynamically.
<rubie>
yes!
claymore has quit [Quit: Leaving]
agjacome has joined #ruby
<rubie>
instances
rylev has quit [Ping timeout: 255 seconds]
x1337807x has joined #ruby
dts|pokeball has quit [Quit: Leaving]
dts|pokeball has joined #ruby
<Hijiri>
what happens if I collect all 16 pieces
rylev has joined #ruby
ht__th has quit [Read error: Connection reset by peer]
rylev has quit [Remote host closed the connection]
<Hijiri>
oh, this is checkers
<jvrmn>
rubie: In some way you will need an instance for every piece so I am not sure it matters. Declaring them each individually sounds really sloppy but they each have their own state you have to assign so I don't think it seems innappropriate. I'm sure there must be a better way though.
<rubie>
right now i have a hash with --- board[board_coordinate] = color
rylev has joined #ruby
<havenwood>
benzrf: hehe, true!
rylev has quit [Remote host closed the connection]
wjimenez_ has joined #ruby
<frem>
I have some code that only fails in prod with `can't convert Symbol into String`. It happens in external gems few different places and the stack traces don't have much overlap. Is there a way to monkey patch Symbol so that when the error occurs, I can at least see what is in the object that is failing to convert?
conniemj_ has joined #ruby
ghostmoth has joined #ruby
surial has joined #ruby
<frem>
I suspect the error is "masking" what is actually failing.
<elvis4526>
does this make the gem in question, stuck at the same major version ?
evanjs_ has quit [Remote host closed the connection]
stunder has quit [Remote host closed the connection]
<jhass>
depends
_mtr has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
maletor has quit [Ping timeout: 258 seconds]
valeriansaliou has joined #ruby
AlbertoCG has joined #ruby
fabrice31 has joined #ruby
Takle has quit [Remote host closed the connection]
<nateberkopec>
What would be the most elegant way to do a time comparison between two times that might be nil?
stunder has joined #ruby
<nateberkopec>
Time.now.between?(start_date, end_date) where start_date or end_date might be nil
paulfm has quit [Quit: Goodbye]
<jhass>
what would be the outcome if it is nil?
lele has quit [Quit: Coyote finally caught me]
<elvis4526>
if I say something like: coffee-script ~> 2.2.0
<elvis4526>
it means coffee-script > 2.2.0 and coffee-script <= 2.2.9 ?
<nateberkopec>
jhass: if start_date was nil, we should say that Time.now is "between?" that time.
razieliyo has joined #ruby
<jhass>
elvis4526: "Had we said ~> 2.2.0, that would have been equivalent to ['>= 2.2.0', '< 2.3.0']" Did you even read my link?
razieliyo has quit [Changing host]
razieliyo has joined #ruby
rkday has joined #ruby
jfo has quit [Remote host closed the connection]
<jhass>
nateberkopec: I'd hide it in a method with return true unless start_date
<jhass>
as the first line
<elvis4526>
Yes I read it. Okay thanks, I just wanted to be sure.
reinaldob has joined #ruby
<tejas-manohar>
there's no rails g command for making the home/root view, controller etc right?
<tejas-manohar>
like on '/'
<jhass>
tejas-manohar: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
<nateberkopec>
jhass: either could be nil. So if start_date is 50 years ago, and end_date is nil, Time.zone.between?(start_date, end_date) needs to also return false.
<tejas-manohar>
whoops wrong tab
Jackneill has quit [Read error: Connection reset by peer]
valeriansaliou has quit [Ping timeout: 256 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
<jhass>
nateberkopec: return false unless end_date as second line in that method then
roolo has joined #ruby
dts|pokeball has quit [Read error: Connection reset by peer]
boombadaroomba has quit [Remote host closed the connection]
<jhass>
nateberkopec: btw between? is an ActiveSupport method, if you want to know if AS provides a nice helper for this, ask #RubyOnRails
livingstn has quit []
dts|pokeball has joined #ruby
boombadaroomba has joined #ruby
michaeldeol has joined #ruby
jvrmn has quit [Ping timeout: 250 seconds]
<jhass>
oh
<jhass>
nvm
<jhass>
it's Comparable
<jhass>
didn't realize
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roolo has quit [Ping timeout: 244 seconds]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wsmoak has quit [Quit: wsmoak]
sambao21 has joined #ruby
sanguisdex has quit [Quit: Leaving.]
reinaldob has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
AlbertoCG has quit [Ping timeout: 255 seconds]
apeiros_ has joined #ruby
djbkd has quit [Remote host closed the connection]
Kaakyy has joined #ruby
<Kaakyy>
hi
iwishiwerearobot has joined #ruby
mjuszczak has quit []
it0a has quit [Ping timeout: 250 seconds]
framling has quit [Quit: dead]
<havenwood>
Kaakyy: hi
<Kaakyy>
userip kaakyy
<Kaakyy>
welp
<Daniel__^_^>
hehe
<Daniel__^_^>
it's ok friend
<Kaakyy>
I have not used irc in many many years
parabolize has joined #ruby
<Kaakyy>
Learning Ruby now in Codemy
codecop has quit [Remote host closed the connection]
mbff has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
<mbff>
Hello! I am trying to use rvm with cron and I can't get the working/home dir to be the directory the file is being run from
<mbff>
Any ideas?
Spami has joined #ruby
iwishiwerearobot has quit [Ping timeout: 256 seconds]
jheg has joined #ruby
startupality has joined #ruby
alekst has quit [Quit: Computer has gone to sleep.]
Kaakyy has quit [Quit: Page closed]
patrick99e99 has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
yfeldblu_ has joined #ruby
<wallerdev>
cd to it
conniemj_ has quit [Quit: (null)]
josephndenton has quit [Ping timeout: 260 seconds]
<havenwood>
mbff: just for future reference but #rvm is an active and helpful channel
<jhass>
ice9: no, it's part of the gem bundler
<havenwood>
ice9: it's a gem, Bundler
<Areessell>
ice9: the `bundle` executable is packaged with the "bundler" gem
<havenwood>
ice9: gem install bundler
<Areessell>
"gem install bundler"
<Areessell>
Ha
<mbff>
havenwood, it doesn't set the home/working directory. if I write a file test.txt it will write to /usr/local/wrappers
<mbff>
err /usr/local/rvm/wrapps
philwantsfish has joined #ruby
<ice9>
I installed it via gem but it's not in the PATH so I can't run it
<havenwood>
ice9: OS/distro?
<ice9>
havenwood: Archlinux
philwantsfish has quit [Client Quit]
<jhass>
ruby package?
yfeldblu_ has quit [Ping timeout: 240 seconds]
<ice9>
I'm trying to run "snorby"
philwantsfish has joined #ruby
<jhass>
I would recommend the ruby-bundler AUR package for such an essential gem
mary5030 has quit [Remote host closed the connection]
rylev has joined #ruby
<ice9>
ok I'll try it thanks
<tejas-manohar>
in an mvc layout
<tejas-manohar>
which controller do you associate index action with
<havenwood>
tejas-manohar: wrong tab? :P
<ice9>
jhass: now it's working after I installed it via the AUR, is the gem broken?
<tejas-manohar>
shit
AlbertoCG has joined #ruby
<tejas-manohar>
lol
<jhass>
ice9: no, arch just put --user-install in the global gemrc
startupality has quit [Quit: startupality]
devoldmx33 has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 272 seconds]
<jhass>
ice9: which installs the bin/ script to a location that's not in your PATH by default
<jhass>
I think that's explained in the wiki
<ice9>
jhass: thanks a lot
perturbation has joined #ruby
uber_hulk has quit [Quit: leaving]
timonv_ has quit [Remote host closed the connection]
philwantsfish has quit [Client Quit]
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
philwantsfish has joined #ruby
rylev has quit [Ping timeout: 264 seconds]
gf3 has joined #ruby
sailias has quit [Quit: Leaving.]
dfinninger has quit [Remote host closed the connection]
LouisRoR has joined #ruby
startupality has joined #ruby
Shazaum has joined #ruby
yetanotherdave has quit [Quit: Lost terminal]
mbff has quit [Quit: Leaving]
Flcn has quit [Quit: Be back later ...]
yetanotherdave has joined #ruby
Flcn has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
econerd4ever has quit [Remote host closed the connection]
tristanp has quit [Remote host closed the connection]
econerd4ever has joined #ruby
<jheg>
o/
<jheg>
so been reading up on inheritance some and take this example
<jheg>
I have an Animal superclass and subclasses of that like Human, Dog, Cat etc
lele has joined #ruby
tristanp has joined #ruby
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
<jheg>
When I create a new instance of Human I want to set instance variables for it’s name and gender
<jheg>
but when I create instance of other Animal subclasses I also want to name and gender
sambao21 has joined #ruby
<jheg>
so I’m thinking these instance variables should be stored in the superclass?
jeff-ooh has joined #ruby
lele has quit [Client Quit]
agit0 has joined #ruby
agit0 has quit [Client Quit]
n_blownapart has joined #ruby
<jheg>
So assuming I moved those instance vars to the Animal class and I also wanted to add a specific instance var to my Human class of @job_title for example
tristanp has quit [Remote host closed the connection]
allcentury has joined #ruby
econerd4ever has quit [Ping timeout: 265 seconds]
eindoofus has quit [Ping timeout: 250 seconds]
<jheg>
when I then created a new instance of Human class I would only need to pass in 1 arg (job_title) and although my Human object would have access to the getter and setter instance vars they would be set when I created the object
lele has joined #ruby
alekst has quit [Quit: Computer has gone to sleep.]
dseitz has joined #ruby
<jheg>
Is there a point where the DRY principle and class dependencies conflict?
Stoge88 has joined #ruby
<Daniel__^_^>
is there a way to run `puts` or another method on a bunch of consecutive method calls without having to call puts?
diegoviola has quit [Quit: WeeChat 1.0.1]
<jheg>
for example if I move those instance vars to the superclass its following the DRY principle but it makes my Human class very dependent on the Animal class
lele has quit [Client Quit]
<jheg>
What you mean Daniel__^_^ ? Like puts objectname.method1.mthod2 without the puts?
<Daniel__^_^>
jheg: yeah
mjuszczak has joined #ruby
<jheg>
I guess it depends what the method returns and how it returns it
<jhass>
jheg: it is by definition since inheritance is a specialization
<jheg>
but might be wrong
djbkd has joined #ruby
Stoge88 has quit [Client Quit]
<Daniel__^_^>
but like in a block where everything in the block would have puts called on it
duncannz has joined #ruby
<jhass>
inheritance already strongly couples the child class to the parent, no need to worry about adding to that really
_mtr has quit [Ping timeout: 245 seconds]
<jhass>
it's part of the reason many people prefer flat hierarchies and composition instead
<jheg>
jhass: I’m beginning to get that a child class should be a specialization of the parent
<jhass>
yes, under all circumstances it should
<jheg>
composition with modules?
<ramfjord>
Daniel__^_^: do you have an example you could show us?
jenrzzz has joined #ruby
vvivv has quit [Quit: Leaving]
<jhass>
modules/mixins are just another form of inheritance really, a less strong one but still
<jheg>
its the instance variables the the initialization that is causing me great confusion
<jhass>
composition is class Human; def initialize; @animal = Animal.new; end; end;
Hijiri has quit [Quit: WeeChat 1.0.1]
m8 has quit [Quit: Sto andando via]
Flcn has quit [Ping timeout: 265 seconds]
<jheg>
would you say that in my Animal Human model there should be no instance variables in the Animal class?
agjacome has quit [Ping timeout: 245 seconds]
<jhass>
jheg: you would call the parent constructor likely
lele has joined #ruby
<Daniel__^_^>
ramfjord: like puts.call_all { x; y; 'test' } => 1, 2, test
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
<ramfjord>
=> x,y = 1,2 ; puts [x,y,'test']
<jheg>
^ you’d have that in the child class yeah?
<jhass>
yeah
<Daniel__^_^>
ramfjord: oh ok
<Daniel__^_^>
ramfjord: that's cool
<jheg>
So I suppose there is no getting away from having to pass those variable up the inheritance chain is there?
<jheg>
*variables
bwr has quit [Ping timeout: 244 seconds]
<jhass>
ramfjord: Daniel__^_^ no need for the [ ] iirc
<ramfjord>
jhass: yeah, you're right
<ramfjord>
how do you eval code in here again?
<ramfjord>
?
<jhass>
jheg: if it's an attribute of the parent you should pass it
<jhass>
ramfjord: >>
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
only do it to demo ;)
iamninja has quit [Quit: ZZZzzz…]
<jheg>
ok thanks jhass
<n_blownapart>
in a hash, are the keys implicitly stored in an array, or do you need to define the array separately? i.e. , I cannot do this : my_hash[0] and get the first key in the hash returned..
<jhass>
also {a: 'b', b: 'c'} would be != {b: 'c', a: 'b'}
lele has joined #ruby
<Areessell>
Perhaps tehre should be an OrderedHash where that would be the case
<jhass>
I think Array#assoc/#rassoc is fine for those usecases
plukevdh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
dc has joined #ruby
mjuszczak has joined #ruby
unclouded has joined #ruby
snath has quit [Ping timeout: 255 seconds]
veduardo has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<bradland>
no need for OrderedHash because Hash is ordered
<jhass>
read up
<bradland>
we have Hash#sort via Enumerable
sambao21 has joined #ruby
ringarin has quit [Ping timeout: 255 seconds]
<bradland>
yes, i know you consider it a smell
<bradland>
but pragmatically, they’re ordered
mikepack has quit [Remote host closed the connection]
<bradland>
and you can use sort and sort_by on a hash
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
smells rarely are about what you can do
<jhass>
ruby has many many many ways to shoot yourself into the foot
davedev24_ has joined #ruby
aspires has quit []
startupality has quit [Quit: startupality]
blizzy is now known as BlizzyStacks
<n_blownapart>
sorry not clear, jhass what is the reason for ordering *anything* non-sequentially ? what is the engineering reason to require methods in order to get the original sequence?
<bradland>
if i wanted a pendantic map, i’d use haskell :)
wjimenez_ is now known as wjimenez5271
michaeldeol has joined #ruby
aspires has joined #ruby
BlizzyStacks is now known as blizzy
<jhass>
n_blownapart: I'm sorry but I don't think I understand your question
<bradland>
n_blownapart: it’s a matter of opinion on the basis of a hash map
<bradland>
it’s meta
<bradland>
“what should a hash map be or not be?”
rkday has quit [Ping timeout: 256 seconds]
<n_blownapart>
well, with an array you have push / pop to modify it. noob question...
<bradland>
“should it be ordered?” is one of the many questions a language designer must answer when building their implementation
<bradland>
arrays are ordered
<bradland>
traditionally, hash maps are not
brandon_ has joined #ruby
<bradland>
or rather, traditionally, arrays are ordered
<bradland>
the purpose of a hash map is to say “let’s reference this value: foo, using the key: bar”
<bradland>
that functionality doesn’t specify order
snath has joined #ruby
<bradland>
so many languages don’t bother to order hash maps
<jhass>
and I think ruby only does because Hash includes Enumerable and there's Enumerable#first and inconsistencies like that
rbennace_ has joined #ruby
<bradland>
i think ruby orders hashes because it’s pragmatic
<bradland>
and because it’s easier to mix in Enumerable when everything works
goodenough has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland>
if you _need_ to reference by key or by order, it is certainly convenient that ruby hashes are ordered
<n_blownapart>
it seems that if order doesn't matter, why not just order it?
<bradland>
but jhass is right, by the canonical definition, a hash map isn’t ordered
<n_blownapart>
cool something to ponder. thanks all.
yetanotherdave has quit [Ping timeout: 264 seconds]