casadei has quit [Remote host closed the connection]
yfeldblum has joined #ruby
wookiehangover has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
TomyLobo has quit [Ping timeout: 255 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
redondo has quit [Ping timeout: 250 seconds]
towski__ has quit [Remote host closed the connection]
rrichard_ has joined #ruby
rrichardsr3 has quit [Read error: Connection reset by peer]
ngscheurich has joined #ruby
weemsledeux has joined #ruby
sysx1000 has quit [Ping timeout: 264 seconds]
redondo has joined #ruby
rrichard_ has quit [Read error: Connection reset by peer]
rrichardsr3 has joined #ruby
NeverDie has joined #ruby
pwnd_nsfw has joined #ruby
ebragaparah has joined #ruby
maikowblue has joined #ruby
wookiehangover has joined #ruby
rrichardsr3 has quit [Max SendQ exceeded]
rrichardsr3 has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
bricker has quit [Ping timeout: 250 seconds]
allcentury has joined #ruby
otacon- has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 250 seconds]
allcentury has quit [Ping timeout: 264 seconds]
sameerynho has quit [Quit: Leaving]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 240 seconds]
flavouredfags has joined #ruby
bronson has quit [Remote host closed the connection]
maikowblue has quit [Quit: .]
stamina has quit [Ping timeout: 256 seconds]
Musashi007 has quit [Quit: Musashi007]
gustav_ has joined #ruby
tenderlove has quit [Quit: Leaving...]
bkulbida has joined #ruby
gustav_ has quit [Ping timeout: 264 seconds]
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tsujp has quit [Quit: tsujp is snoozing]
bluntman has quit [Ping timeout: 246 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
bluntman has joined #ruby
ddarkpassenger has joined #ruby
v4n has quit []
Rodya_ has joined #ruby
sp4rrow has joined #ruby
liquidmetal has joined #ruby
<liquidmetal>
http://pastebin.com/PMwjRdir - running into errors when running rake. I'm trying to build Sass from scratch - any help would be appreciated :)
<ruboto>
liquidmetal, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<helpa-bot>
Hi liquidmetal. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa-bot>
Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<pontiki>
or do you mean generating a compressed css file from a collection of .sass files?
n_blownapart has quit [Remote host closed the connection]
Xeago has joined #ruby
Beoran has joined #ruby
mrtomme has quit [Ping timeout: 264 seconds]
brendan- has joined #ruby
r0bby_ is now known as robbyoconnor
devoldmx has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
mrtomme has joined #ruby
gener1c has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
alakra has quit [Quit: WeeChat 1.0.1]
darkxploit has joined #ruby
gener1c_ has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 250 seconds]
RobertBirnie has joined #ruby
Musashi007 has joined #ruby
braincrash has quit [Quit: bye bye]
Pathfinder has quit [Ping timeout: 246 seconds]
aaeron1 has quit [Ping timeout: 246 seconds]
bmurt has joined #ruby
rrichardsr3 has quit [Quit: The road to hell is paved with good intentions...]
braincrash has joined #ruby
redondo has quit [Ping timeout: 240 seconds]
redondo has joined #ruby
Contigi has joined #ruby
hod0r has quit [Read error: Connection reset by peer]
otacon- has joined #ruby
elton_ has quit [Read error: Connection reset by peer]
elton has joined #ruby
AccordLTN has quit [Read error: Connection reset by peer]
drewvanstone has joined #ruby
AccordLTN has joined #ruby
hod0r has joined #ruby
bentanweihao has quit [Remote host closed the connection]
banjara has joined #ruby
<Ebok>
Thanks for earlier Hanmak. Seeing differing results for those methods helps to showcase that they in fact do different things. Although I'm not quite read up enough to tell why yet. I'll look into it more.
casadei has quit [Remote host closed the connection]
EXID123 has quit [Remote host closed the connection]
chipotle has joined #ruby
EXID123 has joined #ruby
ebragaparah has quit [Remote host closed the connection]
gix has quit [Ping timeout: 265 seconds]
amclain has quit [Quit: Leaving]
EXID123 has quit [Remote host closed the connection]
EXID123 has joined #ruby
ramfjord has joined #ruby
gix has joined #ruby
EXID123 has quit [Read error: Connection reset by peer]
rrichardsr3 has quit [Quit: The road to hell is paved with good intentions...]
drewvanstone has joined #ruby
arescorpio has joined #ruby
kellabyte has joined #ruby
EXID123 has joined #ruby
<kellabyte>
bundle isn't picking up a gem for some reason, $GEM_HOME doesn't match what "bundle show <package>" reports, aren't those supposed to match?
phutchins has joined #ruby
EXID123 has quit [Read error: Connection reset by peer]
EXID123 has joined #ruby
drewvanstone has quit [Ping timeout: 240 seconds]
roxtrong_ has quit [Remote host closed the connection]
EXID123 has quit [Remote host closed the connection]
icarus has quit [Ping timeout: 250 seconds]
EXID123 has joined #ruby
phutchins has quit [Ping timeout: 260 seconds]
moeabdol has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
<liquidmetal>
Is the #ruby channel usually this slow?
<go|dfish>
liquidmetal: yes
<liquidmetal>
go|dfish, where do rubyists congregate?
<Ebok>
It helps when people do have questions.
SOLDIERz has joined #ruby
<Ebok>
Because lots read the chatter, less respond
<liquidmetal>
Ebok, suuuuure
EXID123 has quit [Remote host closed the connection]
<Ebok>
I've never had a question go unheeded, but that could be luck
<go|dfish>
liquidmetal: starbucks
<nofxx>
liquidmetal, if you like to go fast try ##motorcycle
EXID123 has joined #ruby
<liquidmetal>
go|dfish, haha
weemsledeux has joined #ruby
<liquidmetal>
nofxx, try #spacex
<nofxx>
liquidmetal, that's also nice. There's #ruby-offtopic too.
EXID123 has quit [Remote host closed the connection]
havenwood has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
<baweaver>
We pay attention
Xeago has joined #ruby
<baweaver>
kellabyte: what's your setup like?
EXID123 has joined #ruby
<baweaver>
RVM, RBEnv, etc
<baweaver>
might be something with RVM hotwiring cd to check for a .ruby-version in certain directories or something to that note.
stardiviner has joined #ruby
Oka has quit [Quit: o/]
<havenwood>
kellabyte: Are you using Bundler's --path option? How is it different?
EXID123 has quit [Remote host closed the connection]
EXID123 has joined #ruby
EXID123 has quit [Remote host closed the connection]
drewvanstone has joined #ruby
kp666 has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
aaeron has joined #ruby
EXID123 has joined #ruby
banjara has quit [Quit: Leaving.]
<kellabyte>
havenwood: no not setting anything, it's weird, if I do bundle install in this project, this dependency ends up in .bundler/ instead of .rvm/ and that deps deps don't get picked up
<kellabyte>
but why is this one gem going somewhere else? its weird
<kellabyte>
does bundler use $GEM_ENV?
jenrzzz has joined #ruby
zapata has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood>
kellabyte: The Bundler default is supposedly to install gems to $GEM_HOME. Or ./vendor/bundle if you use --deployoment.
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
kellabyte: If it's not a Rails app you might consider resolving your Gemfile dependencies and creating a Gemfile.lock with: gem install -g
EXID123 has quit [Remote host closed the connection]
<havenwood>
kellabyte: Maybe check that no wonky settings got "remembered": bundle config
Azure|dc has joined #ruby
grekko has joined #ruby
grekko has quit [Client Quit]
luckyruby has quit [Quit: Leaving...]
EXID123 has joined #ruby
<havenwood>
kellabyte: Is it a Rails app?
Laaw[WAS] is now known as Laaw
Azure has quit [Ping timeout: 240 seconds]
grekko has joined #ruby
fedexo has joined #ruby
Rodya_ has quit [Quit: Leaving...]
EXID123 has quit [Remote host closed the connection]
Kallis has quit [Read error: Connection reset by peer]
<kellabyte>
havenwood: no not rails
havenwood has quit [Remote host closed the connection]
devoldmx has joined #ruby
havenwood has joined #ruby
<kellabyte>
havenwood: its weird, if I do bundle show X then I cd to X and do bundle show rest-client, it comes from an entirely different place than X does
<kellabyte>
you'd think both dependencies would be from the same location
bkulbida has quit [Ping timeout: 250 seconds]
<kellabyte>
rest-client won't be picked up by the root application though that's using X which uses rest-client
icarus has joined #ruby
EXID123 has joined #ruby
<havenwood>
kellabyte: You can just use RubyGems if you prefer. Run `gem i -g` to resolve dependencies and create a Gemfile.lock and set RUBYGEMS_GEMDEPS environment variable to the location of the Gemfile you'd like to use. Or for automatic discovery of the current dir: RUBYGEMS_GEMDEPS=~
aaeron has quit [Ping timeout: 246 seconds]
devoldmx has quit [Ping timeout: 240 seconds]
tmtwd has joined #ruby
joufflu has joined #ruby
<havenwood>
Oops, I meant: RUBYGEMS_GEMDEPS=-
aaeron has joined #ruby
<havenwood>
"Use - as the path to autodetect (current and parent directories are searched)."
<havenwood>
kellabyte: RubyGems has supported gem dependency resolution for a while now. Works well these days.
<kellabyte>
I don't want to change how someone elses project is working
<havenwood>
kellabyte: Check that you don't have per-project Bundler-remembered settings then.
<havenwood>
kellabyte: You might ask the #bundler channel.
<kellabyte>
but something is seriously screwy if you cd projA bundle install which installs projB into ~/.bundler but then you cd ~/.bundler/blahblah/projB and do a bundle show rest-client and its in ~/.rvm
<kellabyte>
like nothing is matching or something
<kellabyte>
how do per-project bundler work? does it store something in the projects directory?
<havenwood>
kellabyte: Like I've mentioned, Bundler remembers settings.
<kellabyte>
where does it remember settings?
tkuchiki has quit [Remote host closed the connection]
<havenwood>
kellabyte: Like I suggested, check: bundle config
EXID123 has quit [Remote host closed the connection]
iamninja has joined #ruby
EXID123 has joined #ruby
<havenwood>
kellabyte: Did that lead you to the Bundler config file with the issue?
bronson has quit [Ping timeout: 268 seconds]
iamninja has quit [Ping timeout: 252 seconds]
<kellabyte>
well I'm not sure which is the issue, projA or projB
CloCkWeRX has quit [Ping timeout: 255 seconds]
<baweaver>
Is it possible bundler is out of date, or the ruby version is old?
krz has joined #ruby
krz is now known as Guest45029
j4cknewt has quit [Remote host closed the connection]
sdwrage has quit [Quit: Leaving]
darkxploit has quit [Ping timeout: 255 seconds]
[k- has joined #ruby
EXID123_ has joined #ruby
bentanweihao has joined #ruby
breadmonster has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jenrzzz has quit [Ping timeout: 256 seconds]
<breadmonster>
Hey guys.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lucky__ has joined #ruby
BTRE has joined #ruby
<havenwood>
breadmonster: good evenin
jenrzzz has joined #ruby
<breadmonster>
I'm trying to pick up Ruby.
<kellabyte>
baweaver: I don't see why that would be putting this 1 dependency in an entirely different place?
<breadmonster>
It's not easy, because my only experience has been with functional programming.
<baweaver>
yeah, me either honestly.
<baweaver>
trying to think of why it would and not thinking of anything
<baweaver>
sorry, back and forth, tutoring another person on ruby through skype.
<kellabyte>
no problem, thanks for the help, much appreciated
<kellabyte>
I just wanted to write some ruby but I've spent 5 hours with bundler not resolving this dependency lol
davedev24 has quit [Remote host closed the connection]
<havenwood>
kellabyte: Does it just work if you `gem i -g` and set?: RUBYGEMS_GEMDEPS=-
davedev24 has joined #ruby
youngbaks has quit [Ping timeout: 256 seconds]
yitsushi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood>
kellabyte: Try backing up and removing any Bundler config files if you're dead-set on using the Bundler gem.
<kellabyte>
havenwood: where are bundler config files stored?
<havenwood>
kellabyte: Using the latest Bundler would hopefully result in the fewest bugs.
<havenwood>
kellabyte: The `bundle config` command didn't tell you?
<havenwood>
kellabyte: You might ask in the #bundler channel if you haven't already.
darkxploit has joined #ruby
<kellabyte>
bundle config reports nothing
davedev24 has quit [Ping timeout: 240 seconds]
<kellabyte>
like absolutely nothing lol
<havenwood>
kellabyte: And does that app install gems to $GEM_HOME?
ndrei has quit [Ping timeout: 264 seconds]
<kellabyte>
bundler version 1.10.6
<kellabyte>
yeah $GEM_HOME matches other bundle show depC
<kellabyte>
but bundle show depB is in an entirely different location than depC
<kellabyte>
depC works depB does not
failshell has joined #ruby
Wolland has joined #ruby
<kellabyte>
maybe I should rm -rf ~/.bundler or something
<kellabyte>
nuke all caches all configs? lol
allcentury has joined #ruby
<kellabyte>
nope that didn't work either, it still put depB into ~/.bundler/ all by itself
<havenwood>
Betcha `gem i -g` installs to $GEM_HOME. :P
<havenwood>
breadmonster: Exploring in the REPL is an interesting way to learn some Ruby.
<havenwood>
?pry
<ruboto>
Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
allcentury has quit [Ping timeout: 264 seconds]
<havenwood>
breadmonster: The irb REPl ships with Ruby but the Pry gem is an alternative REPL that is quite popular and good for exploring.
<breadmonster>
havenwood: What's a gem?
<havenwood>
breadmonster: It's a Ruby package. They're often just libraries but can also have executables.
<kellabyte>
havenwood: I'm not sure what you mean, what do I do with gem i -g?
<havenwood>
breadmonster: Ruby ships with RubyGems, which includes the `gem` executable for installing packages like: gem install roda
Xeago has joined #ruby
<havenwood>
kellabyte: It's a RubyGem command. Like in a directory where there's a Gemfile: gem install -g
vjdhama has joined #ruby
<havenwood>
breadmonster: You can cut a gem and push it to RubyGems to share with the world or just install it locally.
<kellabyte>
havenwood: oh, that installs from the local path you mean?
karapetyan has quit [Read error: Connection reset by peer]
<kellabyte>
no clue why its a problem
Rickmasta has joined #ruby
<kellabyte>
verifying..
karapetyan has joined #ruby
<havenwood>
breadmonster: tryruby.org is very basic but is a fun run-through. rubykoans.com is an interesting introduction to testing in Ruby. excersim.io has fun exercises and is a good way to get peer review of basic code.
<breadmonster>
havenwood: Umm, the other thing is that I don't have any OOP experience, will that hold me back?
<havenwood>
breadmonster: The Well-Grounded Rubyist, Second Edition is a good book to get up to speed quickly.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Feyn has quit [Ping timeout: 250 seconds]
quiez has joined #ruby
iamninja has joined #ruby
terlar has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
SOLDIERz has joined #ruby
banjara has quit [Quit: Leaving.]
nym has quit [Quit: Connection closed for inactivity]
vjdhama has quit [Ping timeout: 244 seconds]
vjdhama_ has joined #ruby
tagrudev has joined #ruby
allomov has quit [Remote host closed the connection]
howdoi has joined #ruby
shoutsid06 has joined #ruby
shoutsid has quit [Read error: Connection reset by peer]
jgt2 has joined #ruby
yfeldblum has joined #ruby
keen________ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
anisha has joined #ruby
yfeldblum has joined #ruby
DoubleMalt has joined #ruby
keen_______ has quit [Ping timeout: 260 seconds]
slayerjain has joined #ruby
beast has joined #ruby
shoutsid has joined #ruby
theRoUS has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
quiez has quit [Quit: leaving]
BaroMeter has joined #ruby
shoutsid06 has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
icarus has quit [Ping timeout: 252 seconds]
<[k->
haha dam
<[k->
i see what you did there
<[k->
(one hour later)
grekko has joined #ruby
Burgestrand has joined #ruby
BaroMeter has quit [Client Quit]
icarus has joined #ruby
j4cknewt has quit [Remote host closed the connection]
vjdhama_ has quit [Ping timeout: 272 seconds]
bruno- has quit [Ping timeout: 255 seconds]
leafybasil has quit [Remote host closed the connection]
devoldmx has joined #ruby
favadi has joined #ruby
leafybasil has joined #ruby
<[k->
haha wood
favadi has quit [Max SendQ exceeded]
<[k->
i see what you did there
SCHAAP137 has joined #ruby
theRoUS has joined #ruby
vjdhama has joined #ruby
Antiarc has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 264 seconds]
leafybasil has quit [Ping timeout: 268 seconds]
Antiarc has joined #ruby
vjdhama_ has joined #ruby
j4cknewt has joined #ruby
vjdhama has quit [Ping timeout: 246 seconds]
jxv has quit [Quit: Leaving]
Xeago has joined #ruby
c0m0 has joined #ruby
slucx has joined #ruby
slucx has left #ruby [#ruby]
anisha has quit [Quit: Leaving]
soc42 has quit [Remote host closed the connection]
gurix has quit [Quit: gurix]
startupality has joined #ruby
amystephen has joined #ruby
tesuji has joined #ruby
PlasmaStar has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
beast has quit [Quit: Leaving]
bb010g has quit [Quit: Connection closed for inactivity]
krisquigley has joined #ruby
gurix has joined #ruby
<arup_r>
One topic I got today to discuss here - I was reading Proxy Pattern, and it seems like it basically used to implemen lazy loading like we do using ||= in Ruby. Is my understanding correct ? ( ref - http://www.tutorialspoint.com/design_pattern/proxy_pattern.htm )
grekko has quit [Read error: Connection reset by peer]
Antiarc has quit [Ping timeout: 246 seconds]
tockitj has quit [Ping timeout: 264 seconds]
Antiarc has joined #ruby
TakumoKatekari is now known as Takumo
nolic has joined #ruby
Zackio has quit [Ping timeout: 244 seconds]
jayne_ is now known as jayne
stan has quit [Ping timeout: 272 seconds]
Zackio has joined #ruby
felixr has joined #ruby
Kendos-Kenlen has joined #ruby
jgt3 has joined #ruby
<certainty>
arup_r: that's the specifics of the proxy given there
poguez_ has quit [Quit: Connection closed for inactivity]
<certainty>
it needs not to be that way
<certainty>
the point is that you have a thing that implements the same interface (or parts of it) as the real thing
<certainty>
but is not the real thing
herbst has joined #ruby
breadmonster has quit [Quit: Page closed]
jgt2 has quit [Ping timeout: 240 seconds]
gustav_ has joined #ruby
casadei has joined #ruby
vjdhama_ has quit [Remote host closed the connection]
UtkarshRay has quit [Ping timeout: 240 seconds]
youngbaks has joined #ruby
reprazent has quit [Quit: Bye]
araujo has joined #ruby
<arup_r>
certainty: thanks. I think i got it ..
tockitj has joined #ruby
reprazent has joined #ruby
<certainty>
arup_r: of course it differs from the real thing in it's implementation. Otherwise there would be no point in having a proxy :)
<certainty>
but i guess that was clear from the context
<certainty>
its
bronson has joined #ruby
casadei has quit [Ping timeout: 240 seconds]
<arup_r>
Basically Proxy is helping the Real one not to get get instantiated for every requests from the same client, rather re using the first created real object..
reprazent has quit [Client Quit]
dmolina has joined #ruby
gustav_ has quit [Remote host closed the connection]
ndrei has joined #ruby
<yorickpeterse>
morning
quazimodo has quit [Ping timeout: 240 seconds]
vjdhama has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
bronson has quit [Ping timeout: 255 seconds]
favadi has joined #ruby
dionysus69 has joined #ruby
favadi has quit [Max SendQ exceeded]
stan has joined #ruby
peteykun has joined #ruby
Kendos-Kenlen has quit [Quit: Konversation terminated!]
<certainty>
arup_r: as i said, that's true only for that example. There are other examples where proxies do something else. But what stays the same is that they're used instead of the real thing, because they use the service of the real thing but want others to present a slightly different implementation
sanjayu has quit [Ping timeout: 256 seconds]
<certainty>
in the example you linked it's the loading of the image that's expensive
marr has joined #ruby
<certainty>
and a proxy is used to mitigate that
<arup_r>
humm... true
voxxit has joined #ruby
CloCkWeRX has joined #ruby
<maloik>
ljarvis: if someone replies to someone and says "lmao. have a word" what does that even mean?
<maloik>
I'm pretty sure it's not "we need to have a chat" in this case
VeryBewitching has quit [Quit: Konversation terminated!]
<maloik>
(asking cause I think it's a british thing to say?)
<canton7>
"have a word" == "have a chat", but sometimes more serious. to have a word with someone might mean telling them off
drptbl has joined #ruby
<maloik>
much confuse
<maloik>
thx :)
Antiarc has quit [Read error: Connection reset by peer]
drewvanstone has joined #ruby
einarj has joined #ruby
Antiarc has joined #ruby
slayerja_ has joined #ruby
Hounddog has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
slayerjain has quit [Ping timeout: 265 seconds]
drewvanstone has quit [Ping timeout: 268 seconds]
absklb has joined #ruby
<absklb>
hi
arup_r has quit [Remote host closed the connection]
<absklb>
there is bundler in my /usr/local/bin/bundler how do i uninstall it so that i can install one required?
pontiki has joined #ruby
yitsushi has quit [Max SendQ exceeded]
felixrsmith has joined #ruby
nofxx has quit [Ping timeout: 246 seconds]
UtkarshRay has joined #ruby
Kendos-Kenlen has quit [Quit: Konversation terminated!]
reprazent has joined #ruby
<maloik>
is updating it not an option?
CloCkWeRX has joined #ruby
<maloik>
otherwise, I'd look at tools like chruby, rbenv, rvm
konsolebox has joined #ruby
konsolebox has quit [Max SendQ exceeded]
devoldmx has joined #ruby
konsolebox has joined #ruby
konsolebox has quit [Max SendQ exceeded]
felixr has quit [Ping timeout: 264 seconds]
pontiki has quit [Ping timeout: 240 seconds]
Kendos-Kenlen has joined #ruby
j4cknewt has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 246 seconds]
<absklb>
there are conflict of diffferent versions. how update will solve it? maloik
CloCkWeRX has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
<maloik>
you mention that you want to uninstall "it", that implies only one has been installed
<maloik>
what do you mean by conflict of different versions
<maloik>
either way, again, look at chruby, rbenv or rvm
favadi has joined #ruby
devbug has quit [Read error: Connection reset by peer]
<absklb>
maloik: i have it in rvm also and installed by apt-get also and in local vendor/bundel lso
<absklb>
maloik: how can i get rid of all and every bundler so that it will be like i never installed any ruby thing at all
decoponio has joined #ruby
Xeago has quit [Remote host closed the connection]
Igorshp has joined #ruby
Xeago has joined #ruby
Musashi007 has joined #ruby
<maloik>
"gem uninstall bundler" should work
<absklb>
maloik: that removed it from my ~/.rvm but its still there is bundler: /usr/local/bin/bundler
scripore has joined #ruby
<maloik>
I'm honestly not all that good resolving issues like this, but if `which bundler` points you to /usr/local/bin/bundler then there's probably an issue with your $PATH
<maloik>
and then you need to check out the rvm readme to get it set up the way it should be
<absklb>
whereis bundler gives me this path
felixrsmith has quit [Ping timeout: 240 seconds]
<absklb>
maloik: why user local bin should not be in path?
gustav_ has joined #ruby
scripore has quit [Client Quit]
<maloik>
it should be, but it's supposed to use the rvm one first before looking there
<absklb>
yeah
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<absklb>
maloik: shall manually rm that bundler?
dhjondoh has quit [Remote host closed the connection]
<maloik>
not sure, sorry
<absklb>
ok
vjdhama has quit [Ping timeout: 244 seconds]
renderful has joined #ruby
vjdhama has joined #ruby
lsmola has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
dhjondoh has joined #ruby
Antiarc has quit [Ping timeout: 255 seconds]
Antiarc has joined #ruby
solocshaw has joined #ruby
Musashi007 has quit [Quit: Musashi007]
renderful has quit [Ping timeout: 250 seconds]
drptbl has joined #ruby
slayerjain has joined #ruby
<absklb>
maloik: now i have onlly one bundler 1.7.10 and still my Canvas LMS script complainss that i dont have 1.7.10 and something else
<absklb>
how can i chheck which version is tis gem?
<absklb>
but i just did gem install bundler -v 1.7.10
slayerja_ has quit [Ping timeout: 255 seconds]
bronson has joined #ruby
vjdhama has quit [Remote host closed the connection]
favadi has quit [Ping timeout: 255 seconds]
quazimodo has joined #ruby
TheWhip has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 240 seconds]
lsmola has joined #ruby
reprazent has quit [Quit: Bye]
ndrei has joined #ruby
icarus has quit [Quit: Lost terminal]
reprazent has joined #ruby
Burgestrand has quit []
TheWhip has quit []
TheWhip has joined #ruby
leafybasil has joined #ruby
casadei has joined #ruby
<TheWhip>
Hey wattsup!!
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
bruno- has joined #ruby
<absklb>
errors....
shredding has joined #ruby
Worf has joined #ruby
youngbaks has quit [Ping timeout: 272 seconds]
casadei has quit [Ping timeout: 250 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 260 seconds]
reprazent has quit [Quit: Bye]
favadi has joined #ruby
charliesome has joined #ruby
reprazent has joined #ruby
<jhass>
absklb: what's the exact error message? what exact command does produce it? what's your output to gem env? put everything into a gist, help people to help you
<jhass>
*of gem env
diegoviola has joined #ruby
<Worf>
is this a place where someone without rubly knowledge may ask for help debugging some ruby app? :) I try to use saml auhtentication for a webservice. i identified the problem being some attributes not being matched. i think this is the file in question: https://github.com/PracticallyGreen/omniauth-saml/blob/master/lib/omniauth/strategies/saml.rb (near the end, where name, email, ... get matched). how could i dump the whole attributes structure to some
<Worf>
log or so, so i see what is wrong?
emilkarl has quit [Quit: emilkarl]
<maloik>
Worf: look at the remote-pry gem, and just open the pry console right where you think the problem is so you can inspect the attributes
reprazent has quit [Client Quit]
<maloik>
that is, if you can reproduce the problem in development as well
<maloik>
wouldnt recommend doing this in production ;)
platzhirsch has joined #ruby
reprazent has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Worf>
maloik: that sounds impressive, but i fear that is way above me
lxsameer has joined #ruby
<maloik>
...what? what part is "impressive"?
Kendos-Kenlen has quit [Quit: Konversation terminated!]
<Worf>
well, the workflow you described .. pry, etc ...
tawaffan has quit [Ping timeout: 255 seconds]
<maloik>
have you looked at the readme?
ramfjord has joined #ruby
drptbl has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<maloik>
there's nothing impressive about it... you add the gem, add `binding.remote_pry` or whatever it is to your code, then run `pry-remote` in your terminal
tkuchiki has joined #ruby
<maloik>
anyway, lunch time
jas02 has joined #ruby
nfk|laptop has quit [Ping timeout: 240 seconds]
Kendos-Kenlen has joined #ruby
davedev24 has joined #ruby
devoldmx has joined #ruby
quazimodo has quit [Ping timeout: 246 seconds]
<[k->
ha! another lunchtime added to my list
<[k->
apeiros - maloik -------- adaedra
ramfjord has quit [Ping timeout: 260 seconds]
<[k->
key: one - represents 15 min
<absklb>
jhass: ok
blaxter has joined #ruby
TheWhip has quit [Remote host closed the connection]
RegulationD has joined #ruby
<bougyman>
anyone have a better way to get the default: stanza from http://sprunge.us/aMDN than File.read("sample.txt").match(/^default:.*\n\n/m)?
<bougyman>
it's _almost_ ymlish
<bougyman>
but not yml enough.
jas02 has quit [Quit: jas02]
radgeRayden has quit [Ping timeout: 244 seconds]
Antiarc has quit [Quit: No Ping reply in 180 seconds.]
RobertBirnie has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
<darix>
bougyman: isnt it kinda late for you? o.O
<bougyman>
darix: no, early.
Antiarc has joined #ruby
<adaedra>
hi
<bougyman>
6 a.m. on the east coast.
<bougyman>
hi adaedra
decoponio has quit [Ping timeout: 240 seconds]
astrobunny has quit [Remote host closed the connection]
<adaedra>
do you run your things with `bundle exec`?
Xeago has quit [Remote host closed the connection]
<musicmatze>
well, when browsing the vendor/bundle directory I installed it to, it is in vendor/bundle/ruby/2.2.0/bundler/gems/jekyll-toc-generator but when doing bundle exec irb and then require it I get an error because it cannot be found
<musicmatze>
yes, I use bundle exec.
rodfersou has joined #ruby
TheWhip has joined #ruby
tockitj has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
linc01n has joined #ruby
blackjid has joined #ruby
wookiehangover has joined #ruby
waxjar has joined #ruby
bf4 has joined #ruby
astrobunny has quit [Remote host closed the connection]
rodfersou has quit [Client Quit]
<[k->
hi adaedra
<[k->
did you like the ping?
<bougyman>
i feel so dirty: stanza_data = Hash[default_stanza[0].each_line.map { |n| var,val = n.split(/\s*=\s*/); [var.strip,val.strip] if val }.compact]
<bougyman>
times like this i wish ruby had an embedded awk
Rickmasta has joined #ruby
rodfersou has joined #ruby
tkiel_ has joined #ruby
tkiel has quit [Ping timeout: 255 seconds]
<yorickpeterse>
`awk ....`
* yorickpeterse
runs
linc01n has quit [Ping timeout: 240 seconds]
waxjar has quit [Ping timeout: 240 seconds]
bf4 has quit [Ping timeout: 240 seconds]
wookiehangover has quit [Ping timeout: 240 seconds]
blackjid has quit [Ping timeout: 240 seconds]
rodfersou has quit [Client Quit]
rodfersou has joined #ruby
rodfersou has quit [Client Quit]
Voker57 has joined #ruby
TheWhip has quit [Remote host closed the connection]
darkf has quit [Read error: Connection reset by peer]
nfk|laptop has joined #ruby
darkf has joined #ruby
tkiel_ has quit [Ping timeout: 255 seconds]
allezbluez has quit [Ping timeout: 265 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
<darix>
bougyman: why awk?
TheWhip has joined #ruby
<bougyman>
darix: because awk is built for this.
<darix>
bougyman: how would you write it in awk?
tockitj has joined #ruby
Pathfinder_ has joined #ruby
reprazent has quit [Quit: Bye]
Balzrael has joined #ruby
vjdhama has joined #ruby
codenapper has quit [Ping timeout: 240 seconds]
psycho_one has joined #ruby
codenapper has joined #ruby
reprazent has joined #ruby
<bougyman>
awk '/^default:/{defstanza=1}/^$/{defstanza=0}defstanza==1{vars[$1] = $3}END{stuff with vars}'
<bougyman>
they key there is the auto field splitting.
tkiel_ has joined #ruby
<bougyman>
which I know ruby _can_ do.
<bougyman>
but it's ugly with $F (iirc?)
bronson has joined #ruby
phutchins has joined #ruby
<darix>
$IF probably
<darix>
$IFS i mean
<darix>
so
<bougyman>
no.
<darix>
no?
decoponio has joined #ruby
<bougyman>
lessee
dhjondoh has joined #ruby
<darix>
ah you mean ruby -a
<bougyman>
I mean you can run ruby in 'awk mode'
<bougyman>
yeah
<bougyman>
and you get this $F array of the fields.
<darix>
but the only thing is ... it does $F = $_.split
<darix>
and the stuff it splits on should be set with IFS
stamina has joined #ruby
zapata has quit [Ping timeout: 240 seconds]
<darix>
google IFS is useless
<darix>
anyway
dhjondoh has quit [Client Quit]
<bougyman>
you even get BEGIN and END blocks in ruby in that mode
<bougyman>
not just field splitting
<bougyman>
what's lacking, though is the pattern { action } thing that makes awk purpose built for this stuff.
phutchins has quit [Ping timeout: 265 seconds]
bronson has quit [Ping timeout: 265 seconds]
face has quit [Ping timeout: 265 seconds]
faces has joined #ruby
Worf has left #ruby ["Konversation terminated!"]
j4cknewt has joined #ruby
roxtrongo has quit [Remote host closed the connection]
apt-get has joined #ruby
kith_ is now known as kith
tkiel_ has quit [Ping timeout: 246 seconds]
bw has joined #ruby
sanjayu has joined #ruby
herbst has quit [Remote host closed the connection]
<gregf_>
oops. was wondering where my chat disappeared :/
bw is now known as bw_
dhjondoh has joined #ruby
akemrir has joined #ruby
<akemrir>
hi, is there possibility to talk to hid devices from ruby?
slackbotgz has joined #ruby
dhjondoh has quit [Client Quit]
Coldblackice has quit [Ping timeout: 246 seconds]
tkiel_ has joined #ruby
<arup_r>
gregf_: thanks :)
pontiki has joined #ruby
dhjondoh has joined #ruby
pandaant has joined #ruby
lolmaus_ has quit [Ping timeout: 240 seconds]
bentanweihao has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krzkrz has quit [Quit: WeeChat 1.2]
zapata has joined #ruby
apt-get has quit [Read error: No route to host]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
apt-get has joined #ruby
apt-get has quit [Remote host closed the connection]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
linc01n has joined #ruby
wookiehangover has joined #ruby
waxjar has joined #ruby
blackjid has joined #ruby
bf4 has joined #ruby
emilkarl has joined #ruby
arup_r has quit [Ping timeout: 250 seconds]
bentanweihao has quit [Remote host closed the connection]
jmignault has joined #ruby
bentanweihao has joined #ruby
Xeago has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
<certainty>
[k-: you're counting lunchtimes?
Kendos-Kenlen has quit [Remote host closed the connection]
dhjondoh has quit [Quit: dhjondoh]
bf4 has quit [Ping timeout: 240 seconds]
skade has joined #ruby
Xeago has quit [Remote host closed the connection]
tkiel_ has quit [Read error: Connection reset by peer]
gurix has quit [Quit: gurix]
tkiel_ has joined #ruby
linc01n has quit [Ping timeout: 240 seconds]
blackjid has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
waxjar has quit [Ping timeout: 240 seconds]
wookiehangover has quit [Ping timeout: 240 seconds]
UtkarshRay has quit [Remote host closed the connection]
tvw has joined #ruby
<[k->
yes
joncol has joined #ruby
<joncol>
Hi, I've created a minimal test app using Sinatra, and a Rakefile. A call to "development?" returns true. How can I change to "production" mode?
Kendos-Kenlen has joined #ruby
allezbluez has joined #ruby
Xeago has joined #ruby
allezbluez has quit [Read error: Connection reset by peer]
allezbluez has joined #ruby
phutchins has joined #ruby
allezbluez has quit [Read error: Connection reset by peer]
rodfersou has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
reprazent has quit [Quit: Bye]
<canton7>
joncol, how are you starting sinatra?
tkuchiki has quit [Remote host closed the connection]
drptbl has joined #ruby
arup_r has joined #ruby
vjdhama has quit [Remote host closed the connection]
iamninja has quit [Read error: Connection reset by peer]
jgt3 has quit [Ping timeout: 246 seconds]
Igorshp has quit [Remote host closed the connection]
drewvanstone has joined #ruby
iamninja has joined #ruby
slackbotgz has quit [Remote host closed the connection]
slackbotgz has joined #ruby
rodfersou has quit [Quit: leaving]
DexterLB has joined #ruby
rodfersou has joined #ruby
platzhirsch has quit [Ping timeout: 240 seconds]
drewvanstone has quit [Ping timeout: 268 seconds]
rodfersou has quit [Client Quit]
rodfersou has joined #ruby
reprazent has joined #ruby
slayerja_ has joined #ruby
tomphp has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
shlomo has quit [Quit: WeeChat 1.3]
suchness has joined #ruby
slayerjain has quit [Ping timeout: 256 seconds]
<suchness>
I have a method, :restrictions, and I want to create a variable in there called :restrictions, I feel like somewhere I saw a weird variable prefix that made the difference clear, does anyone know what I am talking about?
casadei has joined #ruby
bronson has joined #ruby
<jhass>
no
<suchness>
I am not sure I know what I am talking about either.
<suchness>
That restrictions method returns an array, the items are stored in a database, but they have an object representation in the code. I am just wondering how to remain clear, without prepending a '_' to the restrictions variable because I think that's ugly.
felixrsmith has joined #ruby
<suchness>
Additionally, :restrictions= is also a setter in the class, so this restrictions variable makes it all the more confusing.
Spami has quit [Client Quit]
encoded73 has joined #ruby
<joncol>
ghr, thanks for the link
<jhass>
suchness: that's a quite horrible approach tbh
Meow-J has quit [Quit: Connection closed for inactivity]
<suchness>
The issue with that is, I don't want this to occur every time I access restrictions
Igorshp has joined #ruby
<suchness>
The object representation is really only for the views, basically restrictions.objects.first.message == "You may not accept this because user3 did'
mary5030 has quit [Remote host closed the connection]
<suchness>
The rest of the code relys on the raw representation with no objects.
bmurt has quit []
krisquigley has quit [Remote host closed the connection]
mary5030 has joined #ruby
devoldmx has joined #ruby
<suchness>
But I see what you are getting at, I will have to look it over again and see how I can improve it with your concerns in mind.
<suchness>
Thanks!
krisquigley has joined #ruby
Burgestrand has joined #ruby
mary5030_ has joined #ruby
yitsushi has joined #ruby
slackbotgz has quit [Remote host closed the connection]
joncol has quit [Quit: leaving]
<suchness>
I suppose I could just write a new restriction_objects method. But it seems redundant somehow.
oddmunds1 is now known as oddmunds
mary5030 has quit [Ping timeout: 240 seconds]
UtkarshRay has joined #ruby
Timba-as has joined #ruby
<maloik>
[k-: lunchtime list? wat?
krisquigley has quit [Ping timeout: 246 seconds]
<suchness>
Or just create a presenter for the views...
<suchness>
Bleh
Xeago has quit [Remote host closed the connection]
ldnunes has joined #ruby
gurix has quit [Quit: gurix]
Xeago has joined #ruby
bentanweihao has quit [Remote host closed the connection]
<jhass>
suchness: check the presenter pattern
bentanweihao has joined #ruby
<jhass>
oh, too slow :D
kraljev11 has joined #ruby
<jhass>
didn't fully read up, sorry
devoldmx has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<suchness>
haha, no worries!
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
<izzol>
I have a simply sinatra API, so far only something like '/all' (GET) which is calling my method. I have a result in json but it's in one line. I mean there is no new line there so it's hard to see the output.
<izzol>
There is a simply way to have the output with new lines?
<jhass>
izzol: there are browser plugins to prettify it
<izzol>
maybe I'm doing something wrong
<jhass>
no, you should keep it that way, get a better viewer
<izzol>
jhass: I was thinking to just use curl
lolmaus_ has joined #ruby
<jhass>
pipe it to json_pp or whatever then
<jhass>
or get httpie
<izzol>
ok
<izzol>
thanks
beauby has joined #ruby
yitsushi is now known as yitsushi^away
tomphp has quit [Client Quit]
yitsushi^away is now known as yitsushi
<izzol>
works fine with JSON.pretty_generate() :-)
Anti-Pizza has left #ruby ["Leaving"]
<jhass>
but don't do it
<jhass>
you waste bytes
<jhass>
besides the conceptual issues of caring about visual presentation in an API route, ugh
RegulationD has joined #ruby
nzst has joined #ruby
sgambino has joined #ruby
A124 has quit [Quit: '']
A124 has joined #ruby
emilkarl has quit [Quit: emilkarl]
RegulationD has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
j4cknewt has quit [Remote host closed the connection]
charliesome has quit [Client Quit]
charliesome has joined #ruby
<awk>
yes?
<awk>
bougyman: you called?
_el_fer_ has joined #ruby
<gregf_>
and now.. we have a bot for awk :|
tkiel_ has quit [Ping timeout: 265 seconds]
arup_r has quit [Remote host closed the connection]
subshad has joined #ruby
tvw has quit []
sepp2k has joined #ruby
asxbr has joined #ruby
stamina has quit [Quit: WeeChat 1.3]
Silex^^ is now known as Silex
memnon34 has joined #ruby
atomical has joined #ruby
memnon34 has quit [Client Quit]
scripore has joined #ruby
iateadonut has quit [Quit: Leaving.]
gurix has joined #ruby
<bougyman>
awk :o
Kallis has joined #ruby
gurix has quit [Client Quit]
mdih has joined #ruby
arup_r has joined #ruby
memnon34 has joined #ruby
prestorium has joined #ruby
jas02 has joined #ruby
jenrzzz has joined #ruby
arup_r_ has joined #ruby
casadei has joined #ruby
Silox| has joined #ruby
Mon_Ouie has joined #ruby
pontiki has quit [Ping timeout: 268 seconds]
vjdhama has quit [Ping timeout: 265 seconds]
syath has quit [Ping timeout: 240 seconds]
vjdhama has joined #ruby
andyrs has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
casadei has quit [Ping timeout: 265 seconds]
krisquigley has joined #ruby
mary5030_ has quit [Remote host closed the connection]
bkulbida has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
p0wn3d__ has joined #ruby
DrCode has joined #ruby
jcromartie has joined #ruby
darkxploit has quit [Read error: Connection reset by peer]
howdoi has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
jmignault has joined #ruby
drptbl_ has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
Mon_Ouie has quit [Ping timeout: 240 seconds]
drptbl has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
ejnahc has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
ericjphillips has joined #ruby
drptbl_ has quit [Max SendQ exceeded]
startupality has joined #ruby
ejnahc has joined #ruby
drptbl has joined #ruby
phutchins has quit [Quit: WeeChat 1.1.1]
zlogan has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
michael_mbp has quit [Excess Flood]
Mon_Ouie has joined #ruby
jmignault has quit [Quit: rcirc on GNU Emacs 24.5.1]
quazimodo has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
dstarh has joined #ruby
bazbing80 has quit [Quit: Lost terminal]
jmignault has joined #ruby
Thib has joined #ruby
aswen has joined #ruby
roxtrongo has quit [Remote host closed the connection]
Kendos-Kenlen has quit [Ping timeout: 246 seconds]
cornerman has quit [Ping timeout: 268 seconds]
zlogan has joined #ruby
cornerma1 is now known as cornerman
yitsushi is now known as yitsushi^away
yitsushi^away is now known as yitsushi
dravine has joined #ruby
Kendos-Kenlen has joined #ruby
eosinx has joined #ruby
rbennacer has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
Burgestrand has quit []
Wolland has quit [Remote host closed the connection]
yitsushi is now known as yitsushi^away
rbennacer has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
<yottanami>
Is any tools to find a tag in a xml?
rbennacer has joined #ruby
yitsushi^away is now known as yitsushi
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gurix has joined #ruby
nfk|laptop has quit [Quit: yawn]
felixrsmith has quit [Quit: Konversation terminated!]
beast has joined #ruby
moeabdol has quit [Quit: WeeChat 1.3]
marr has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
bruno- has quit [Ping timeout: 250 seconds]
gurix has quit [Client Quit]
JDiPierro has joined #ruby
<arup_r_>
yottanami: nokogiri gem
yitsushi is now known as yitsushi^away
jordanm has joined #ruby
startupality has quit [Quit: startupality]
<suchness>
I have a a proc that accepts an argument. Is it possible to do the map(&MY_PROC) ?
<suchness>
shorthand
startupality has joined #ruby
<suchness>
Oh wait that calls to proc on the receiver
gusTester has joined #ruby
<jhass>
yottanami: the path is soapenv:Envelope/soapenv:Body/soapenv:Fault/detail/ns1:ServiceException/messageId, properly formatting the XML would help seeing that
<jhass>
yottanami: what's XML?
<yottanami>
jhass, I found it tnx
<yottanami>
my problem solved using message = content.find_first('//messageId')
<jhass>
(the module/class)
<yottanami>
I just add another /
CloCkWeRX has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
startupality has quit [Client Quit]
drptbl_ has joined #ruby
evanjs has joined #ruby
psk17_ has quit [Read error: Connection reset by peer]
arup_r_ has quit []
tomphp has joined #ruby
quazimodo has joined #ruby
ejnahc has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
tomphp has joined #ruby
ejnahc has joined #ruby
whippythellama has joined #ruby
drptbl has quit [Ping timeout: 252 seconds]
gustav_ has quit [Remote host closed the connection]
yitsushi^away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgpawletko has joined #ruby
gremly has quit [Quit: WeeChat 0.3.2]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
memnon34 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
startupality has joined #ruby
charliesome has joined #ruby
<j416>
if I've a gem that has rake tasks, but I need the gem to be configured before use, what would be a good way to go about it?
jgt3 has quit [Ping timeout: 240 seconds]
tomphp has quit [Client Quit]
<j416>
it's merely a collection of methods on a module, the only state is configuration
`tim` has joined #ruby
<jhass>
I'd still extract the task contents into classes so that they become task :foo do; FooTask.new; end,
j4cknewt has joined #ruby
<jhass>
then the initialize can do MyGem.check_configured! or whatever
tomphp has joined #ruby
gizmore has joined #ruby
<j416>
hm
yitsushi has joined #ruby
yitsushi has quit [Client Quit]
<JoshL>
j416: Make it generate the tasks a la RSpec
<j416>
JoshL: that's interesting
jmignault has quit [Quit: rcirc on GNU Emacs 24.5.1]
<j416>
JoshL: will investigate
<jhass>
Rake::TestTask might be worth looking into too
<jhass>
think about the edge cases for your algorithm and 2-3 usual cases
<jhass>
get verified correct results for those input parameters and write tests expecting them
vjdhama has joined #ruby
allcentury has joined #ruby
vjdhama_ has quit [Ping timeout: 246 seconds]
<eosinx>
isn't it possible to solely test, say, compute_a, first?
bronson has quit [Ping timeout: 255 seconds]
<jhass>
possible, yes, does it make sense if it's not part of the outcome a user of your library would care about? no
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
<jhass>
the unit in unit tests is the public API of an isolated component
<eosinx>
aha,
jgt3 has joined #ruby
<eosinx>
I thought these tests serve to check step-by-step development of parts, like compute_a, compute_b etc.
slayerjain has joined #ruby
<jhass>
"test that the class with these conditions exposes this behavior" opposed to "test that the parts of this component/system achieve X when working together" for a integration test
casadei has joined #ruby
slayerjain has quit [Max SendQ exceeded]
<jhass>
yes, many people get too small units in their unit tests
lkba has joined #ruby
TheWhip has joined #ruby
vjdhama has quit [Ping timeout: 252 seconds]
<jhass>
you don't care about how something is achieved, you care that it is achieved
<eosinx>
I see
skade has quit [Quit: Computer has gone to sleep.]
aswen has quit [Ping timeout: 260 seconds]
vjdhama has joined #ruby
<jhass>
in your tests take the perspective of the user of your library/algorithm, that is the evil user that knows your code and the code paths that lead to wrong behavior
slayerjain has joined #ruby
<jhass>
make sure those code paths are hit, but don't hit them explicitly, just with what a regular user has at hand too
bigkevmcd has quit [Quit: Outta here...]
slayerjain has quit [Max SendQ exceeded]
rocknrollmarc has quit []
freerobby has joined #ruby
<eosinx>
so, simply plugin a variety of input data, and pretend that the sausage machine is a black box ...
<jhass>
you can be very knowledgeable about those parameters, but yes
sanjayu has quit [Ping timeout: 246 seconds]
slayerjain has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nofal has joined #ruby
RobertBirnie has joined #ruby
<eosinx>
okay, sounds lazy, but what the better source to the many ways to write assertions and expectations
<jhass>
what you want to ensure with tests is that if you change your class, like say you find a more efficient, or cleaner code wise, way to do things, the users of your library don't have to care, they can continue using your stuff as is
nofal has left #ruby [#ruby]
<jhass>
TDD simply takes that verification step to the point before you have any actual implementation
drewvanstone has joined #ruby
<jhass>
basically taking the role of a user that wishes for a certain API
<eosinx>
okay, same input, same output, regardless of implementation
andyrs has quit [Quit: I'm leaving now, bye.]
jcromartie has joined #ruby
CloCkWeRX has joined #ruby
<jhass>
yes
akemrir has quit [Quit: WeeChat 1.3]
<shevy>
I love you people!
<eosinx>
sounds like reproducable science
<jhass>
pretty much
tomphp has quit [Read error: Connection reset by peer]
<jhass>
as said choosing inputs that are hard to handle for your algorithm is fine, you can be knowledable about that aspect in your test
tomphp has joined #ruby
sgambino has joined #ruby
<eosinx>
okay, recap: line 9-14 becomes the def initialize, the rest could be wrapped in one big method, right?
kobain has joined #ruby
<jhass>
that can be a start, yes
<jhass>
then write tests
Burgestrand has joined #ruby
<jhass>
then start rearranging the code, extracting small private methods etc
<eosinx>
and if you want to start SEO ... I guess your prob is not about knowing how the ranking wors, but getting the actual hyperlinks to you
ramfjord has quit [Ping timeout: 265 seconds]
bigkevmcd has joined #ruby
ericjphillips has quit [Quit: Leaving.]
<eosinx>
jhass: okay, thanks you made my day, actually ... will write the test code later the day ... will see what happens (if MDArray doesn't break again ... )
<jhass>
I just find those people thinking they know everything about it, uhm, amusing ;)
<jhass>
hf
zlogan85 has joined #ruby
<eosinx>
are you a regular here, then I can report back, if you're interested
zlogan has quit [Ping timeout: 272 seconds]
<jhass>
kinda, not too interested on the algorithm, but if you want some codereview sure come back ;)
prestorium has quit [Ping timeout: 255 seconds]
hinbody has joined #ruby
<eosinx>
you're such a good guy ... who knew the IRC is such a helpful place
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DrCode has quit [Remote host closed the connection]
riotjone_ has quit [Quit: Leaving...]
vjdhama has quit [Read error: Connection reset by peer]
nfk|laptop has quit [Quit: yawn]
Igorshp has joined #ruby
vjdhama has joined #ruby
abuzze has quit [Remote host closed the connection]
_el_fer_ has joined #ruby
ebragaparah has joined #ruby
TheWhip has quit [Remote host closed the connection]
anaeem1 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
youngbaks has joined #ruby
anaeem1 has quit [Client Quit]
last_staff has quit [Quit: last_staff]
charliesome has joined #ruby
jas02 has quit [Quit: jas02]
bentanweihao has joined #ruby
dopamean_ has quit [Ping timeout: 260 seconds]
ebragaparah has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
<izzol>
ehh, I was thinking I almost done it, and now I see I need to rewrite it. :<
jobewan has joined #ruby
prestorium__ has joined #ruby
TheWhip has joined #ruby
My_Hearing has joined #ruby
pandaant has quit [Quit: Lost terminal]
bentanweihao has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
aaeron has joined #ruby
gplex has joined #ruby
Burgestrand has joined #ruby
<gplex>
Inside a ruby class, self is the class... but then when we define methods inside the class why do they become instance methods and not class methods?
prestorium__ is now known as prestorium
karapetyan has quit [Remote host closed the connection]
aaeron1 has joined #ruby
<Sou|cutter>
gplex: how else would you want to define instance methods?
prestorium_ has quit [Ping timeout: 240 seconds]
jobewan has quit [Ping timeout: 246 seconds]
platzhirsch has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
<gplex>
Sou|cutter: Technically speaking, inside a class 'self' is the class itself so the methods defined there should be defined on self?
pandaant has joined #ruby
Mon_Ouie has quit [Ping timeout: 268 seconds]
<Burgestrand>
gplex: because that's how def behaves.
<Sou|cutter>
gplex: that doesn't answer my question
subshad has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Sou|cutter>
it's because those method definitions need a place to go
<Burgestrand>
gplex: if you change to the singleton class using "class << self" you'll get class methods instead, which again is consistent with how def behaves.
arup_r has joined #ruby
charliesome has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
<gplex>
Well how does def behave then?
RegulationD has joined #ruby
<Sou|cutter>
gplex: it sounds like you know how def behaves
Igorshp has quit [Remote host closed the connection]
aswen has quit [Quit: WeeChat 1.3]
<shevy>
our old webchatter friend
aaeron has quit [Ping timeout: 268 seconds]
<Burgestrand>
Gateway :)
<platzhirsch>
woop
<Sou|cutter>
but maybe you're thinking it's like calling self.def which it isn't. It's a ruby keyword with a well-defined behavior
<gplex>
Sou|cutter: Yeah that was what I was thinking...how does it behave then?
<Sou|cutter>
it defines an instance method on the receiver
bronson has joined #ruby
vjdhama has quit [Ping timeout: 260 seconds]
chouhoul_ has joined #ruby
<Sou|cutter>
and the 'why' is something of a tautology. If that's not what it did, then how would you do that?
dmolina1 has joined #ruby
dopamean_ has joined #ruby
<gplex>
Sou|cutter: But isn't the reciver self inside the class, which is the class itself?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vjdhama has joined #ruby
ebragaparah has joined #ruby
meatherly has joined #ruby
<[k->
def defines a method on the instances of the class
<Sou|cutter>
defines an _instance_ method on the receiver
dopie has joined #ruby
blackmesa has joined #ruby
charliesome has joined #ruby
rethi has quit [Ping timeout: 252 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
dmolina has quit [Ping timeout: 272 seconds]
ljarvis has quit [Ping timeout: 264 seconds]
<[k->
there is no class methods, those are class instance methods
<[k->
are*
ljarvis has joined #ruby
yitsushi has joined #ruby
<gplex>
So def self.method inside a class defines a method inside the singleton class of the class?
rethi has joined #ruby
charliesome has quit [Client Quit]
Silox| has quit [Quit: Connection closed for inactivity]
<[k->
yes
bronson has quit [Ping timeout: 265 seconds]
yitsushi has quit [Max SendQ exceeded]
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
code1o6 has joined #ruby
Fire1o6 has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
drewvanstone has joined #ruby
pontiki has joined #ruby
suchness has quit [Remote host closed the connection]
pontiki has quit [Client Quit]
CloCkWeRX has quit [Ping timeout: 240 seconds]
<gplex>
And when we include a module inside the class, does that define an "i class" whose methods table points to the methods table of the module?
<gregf_>
[k-: isnt a class method and class instance method one and the same? o_O
rismoney1 has joined #ruby
freerobby has quit [Quit: Leaving.]
<rismoney1>
I have an array of arrays: [["100", "group1"], ["200", "group1"], ["200", "group2"]] . I would like to consolidate it to [["100", "group1"], ["200", "group1,group2"]]. How can I do this?
<gregf_>
[k-: cuz you're not calling the method on an instance?
jobewan has joined #ruby
<shevy>
well one problem
<shevy>
@@foo is called class variable right
memnon34 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<gregf_>
>> class Foo; def self.bar; puts "Bar!";end;end; Foo.bar
<gplex>
is a class variable same as an instance method of the class or are these two different things?
<Burgestrand>
rismoney1: ^
<shevy>
no Foo::bar and Foo.bar is the same, the Foo::bar() is the older way to call stuff
<gplex>
an instance variable*
<Burgestrand>
rismoney1: You'll have to take care of extracting the values by yourself, but that'll group your arrays by the first value.
speaking1ode has joined #ruby
karapetyan has joined #ruby
gurix has joined #ruby
<shevy>
gplex how can a variable be the same as a method?
<gplex>
typo, sorry.
<Burgestrand>
rismoney1: You could build a hash from this instead if you'd rather have that, I guess.
kp666 has quit [Remote host closed the connection]
<gregf_>
shevy: thanks
TheWhip has quit [Remote host closed the connection]
<gplex>
class variable == class instance variable?
<rismoney1>
Burgestrand I tried that initially, but i think i lost values due to dupe keys
Igorshp has joined #ruby
<shevy>
I used to store things in CONSTANTS until I realized I could use @foo like in class Foo; @foo; end
dionysus69 has quit [Ping timeout: 240 seconds]
Kallis has joined #ruby
_el_fer_ has quit [Quit: Leaving]
Kallis has quit [Max SendQ exceeded]
jenrzzz has joined #ruby
poguez_ has joined #ruby
<Burgestrand>
rismoney1: You don't do it using the solution I provided.
gplex has quit [Quit: Page closed]
<shevy>
my colour-related module uses this for like Foo.disable_colours when I want output without colours (well, usually just ansi escape sequences... but you can use RGB values for kde konsole, which I like) http://shevegen.square7.ch/screenshot.png
<rismoney1>
burgestrand your solution looks like it only wrapped things in another array.
Anti-Pizza has joined #ruby
<shevy>
wrapped in a burger
<Burgestrand>
rismoney1: Yes, grouped by your criteria.
<[k->
who called me?
<adaedra>
nobody
ElvanorMoscow has joined #ruby
<[k->
apeiros: you called?
<ElvanorMoscow>
Hello, I know next to nothing to Ruby. I installed gitlab accidentally while running sudo -u git -H bundle install --deployment --without development test mysql aws kerberos
<[k->
yesh, class methods and class instance methods are the same
<shevy>
gregf_ called [k- in a letter of love!
<ElvanorMoscow>
whereas I need mysql. How can I tell bundler to remove the information about mysql?
<ElvanorMoscow>
Now it won'"t install the mysql gem
<ruboto>
[k- # => /tmp/execpad-9fca2d8e3241/source-9fca2d8e3241:2: warning: wrong element type String at 0 (expected a ...check link for more (https://eval.in/439582)
<[k->
:(
<[k->
hmm, i triggered how many warnings?
<gregf_>
[k-: you have let us all down :/... badly
ebragaparah has quit [Remote host closed the connection]
<Burgestrand>
Ha, I like this.
<Burgestrand>
[["100", "group1"], ["200", "group1"], ["200", "group2"]].reduce({}) { |m, (group, value)| m.merge(group => value) { |k, o, n| o << "," << n } }
<Burgestrand>
Darn.
<Burgestrand>
Must have a shovel.
<Burgestrand>
>> [["100", "group1"], ["200", "group1"], ["200", "group2"]].reduce({}) { |m, (group, value)| m.merge(group => value) { |k, o, n| o << "," << n } }
<rismoney1>
burgestrand your last one consolidates the second element exactly how i need it (though its syntactically tough to read ;)
<[k->
i triggered 16 warnings!
<[k->
beat that, shevy!
<platzhirsch>
observation, people in #node.js are also very friendly, answering every question
<Sou|cutter>
Burgestrand: did you ever take a look at Representable ?
<Burgestrand>
rismoney1: Split it over multiple lines, use better variable names, and don't give your homework to IRC ;)
<[k->
people use h for hash, not m for map!
<rismoney1>
its not my homework- its a simplified example from a more complex data set i am parsing from script output
<Burgestrand>
Sou|cutter: I did! It's an order (or two) of magnitude bigger than Serial, and has a slightly different angle since it also does object -> text (JSON/XML etc), and parsing, so it's a slightly different use-case but quite similar!
babysnoop has joined #ruby
<Burgestrand>
Either way, got to go, got a 6-hour drive ahead of me.
Burgestrand has quit []
vjdhama has quit [Read error: Connection reset by peer]
quazimodo has quit [Ping timeout: 246 seconds]
<Sou|cutter>
every time I chat with Burgestrand he leaves! Swedes...
ebragaparah has quit [Remote host closed the connection]
yitsushi has joined #ruby
yitsushi has quit [Max SendQ exceeded]
<[k->
i call this the shevy syndrome
<[k->
somehow shevy can code on his cat too
<[k->
i wonder how he does that
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Sou|cutter>
cat = computer application terminal
wildlander has joined #ruby
vjdhama has joined #ruby
prestorium has quit [Quit: Leaving]
<[k->
ohhhh
<[k->
shevy has an actual cat though
<Sou|cutter>
hehe
gustav_ has joined #ruby
<[k->
the other day he tried triggering something similar to the knee-jerk effect on his cat
startupality has joined #ruby
<[k->
it didnt work though
<ElvanorMoscow>
Can someone help me with NameError: uninitialized constant Grack::Bundle ?
<ElvanorMoscow>
I am stucj on this
<babysnoop>
hi, im looking for a secure captcha gem, i see recaptcha is by far the most popular but it requires an google account (a company i dont trust). does anyone know of any non-google thats secure yet user friendly? thank you
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
p0wn3d__ has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
psycho_one has quit [Quit: WeeChat 0.4.2]
<gregf_>
ofcourse ox0dea would write it better:
<gregf_>
>> t = Hash.new { |h,v| h.key?(v[0]) ? h[v[0]].push(v[1]) : h[v[0]] = [v[1]] }; [["100", "group1"], ["200", "group1"], ["200", "group2"]].each{ |v| t[v] }; p t
<ruboto>
gregf_ # => {"100"=>["group1"], "200"=>["group1", "group2"]} ...check link for more (https://eval.in/439599)
banister has quit [Read error: Connection reset by peer]
<[k->
i have no idea what command you are running, but are you sure the gitlab-shell install task is running before gitlab?
blackmesa has joined #ruby
haroldwu has quit [Remote host closed the connection]
felixr has joined #ruby
jamesaxl has joined #ruby
haroldwu has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
peteykun has joined #ruby
circ-user-w9RZD has joined #ruby
banister has joined #ruby
NeverDie has joined #ruby
michaeldeol has joined #ruby
gurix has quit [Quit: gurix]
<shevy>
Sou|cutter [k- what he meant is that he showed a video of a cat where you pull on one leg, then let go, and the leg kicks the chin of the cat multiple times
yfeldblum has joined #ruby
yottanami has joined #ruby
deject3d has joined #ruby
ngscheurich has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
gurix has joined #ruby
krz has joined #ruby
prefixed has quit [Remote host closed the connection]
<[k->
no, what you described is animal cruelty
<ElvanorMoscow>
[k-: what do you mean?
<ElvanorMoscow>
I have to install gitlab-shell
felixr has quit [Quit: Konversation terminated!]
<ElvanorMoscow>
also now I am doing sudo -u git -H bundle install --deployment --without development test postgres aws kerberos
<ElvanorMoscow>
and it says Could not locate Gemfile
<ElvanorMoscow>
but there is a Gemfile in the current dir
<jhass>
ElvanorMoscow: looks like a gitlab bug, ensure you're on the latest version and contact their support
[Butch] has joined #ruby
aaeron1 has quit [Quit: Leaving.]
<[k->
the cat's leg is pulled down abit
<jhass>
ElvanorMoscow: can the git user read that file?
gustav_ has quit [Remote host closed the connection]
cmisenas_ has joined #ruby
cmisenas_ has left #ruby [#ruby]
<[k->
and the cat's other leg involutarily rises up and hits its cheeks
tomphp has quit [Max SendQ exceeded]
<jhass>
ElvanorMoscow: actually -H sets the cwd to -u's home apparently
aaeron has joined #ruby
c0m0 has quit [Ping timeout: 255 seconds]
<[k->
the cat eventually got very annoyed and tried to hit the person doing it, but it just sat there
drptbl has joined #ruby
tomphp has joined #ruby
<jhass>
?ot [k-
<ruboto>
[k-, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
ducklobster has joined #ruby
<gregf_>
?ot [k-
<ruboto>
[k-, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<ElSif>
?cookie
<ruboto>
here's your cookie:
<gregf_>
?*
j4cknewt has joined #ruby
yottanami has quit [Ping timeout: 240 seconds]
j4cknewt has quit [Remote host closed the connection]
babysnoop has quit [Quit: Leaving]
<[k->
your face is ot!
treehug8_ has joined #ruby
prefixed has joined #ruby
bronson has joined #ruby
youngbaks has quit [Ping timeout: 252 seconds]
gurix has quit [Ping timeout: 264 seconds]
<ElvanorMoscow>
jhass: I saw the problem, indeed, git user could not read the file
treehug88 has quit [Ping timeout: 240 seconds]
<ElvanorMoscow>
jhass: but for the Grack::Bundle, yes looks like a gitlab bug
<ElvanorMoscow>
strange, because I am just building exactly how they say
giuseppesolinas has joined #ruby
<jhass>
gitlab is a complex project build on Ruby, you're asking #php for help with wordpress ;)
<jhass>
or ##c for help with Gnome
vjdhama has quit [Ping timeout: 244 seconds]
casadei has joined #ruby
dopie has quit [Quit: Leaving]
sshuff|gone is now known as sshuff
<ElvanorMoscow>
jhass: yeah, I see, but at this point I am not sure if it is indeed a bug in gitlab or my lack of knowledge of Ruby causing the problem
RTG` has quit [Ping timeout: 265 seconds]
<[k->
Sou|cutter the video was shared on ot just now
vjdhama has joined #ruby
<jhass>
if they require you to know the ins and outs of Ruby in order to maintain it, I'd say the bug is at very least poor documentation
rodfersou is now known as rodfersou|lunch
centrx has quit [Remote host closed the connection]
scripore has joined #ruby
I has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
I is now known as Guest4665
RTG` has joined #ruby
j4cknewt has joined #ruby
Guest4665 has quit [Client Quit]
dopie has joined #ruby
gplex has joined #ruby
dfinninger has joined #ruby
gplex has quit [Client Quit]
drptbl has quit [Ping timeout: 240 seconds]
zlogan85 has quit [Ping timeout: 255 seconds]
Musashi007 has joined #ruby
lxsameer has quit [Quit: Leaving]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ineb has quit [Remote host closed the connection]
Soda has joined #ruby
nfk has joined #ruby
michaeldeol has joined #ruby
yottanami has joined #ruby
gurix has joined #ruby
dirtyonekanobi has quit [Quit: Connection closed for inactivity]
skade has joined #ruby
maasha has joined #ruby
centrx has joined #ruby
tarpits has joined #ruby
prestorium has joined #ruby
<maasha>
I am experiencing what looks like a giant memory leak in ruby 2.2.3p173 - something leaks will querying a largish Hash a lot of times.
mjuszczak has joined #ruby
rbennacer has quit [Remote host closed the connection]
<maasha>
*sob*
Mattickbot has joined #ruby
marr has joined #ruby
bu7ch has joined #ruby
devoldmx has joined #ruby
Jardayn has joined #ruby
Mattickbot has quit [Client Quit]
cisco has joined #ruby
Kendos-Kenlen has quit [Ping timeout: 264 seconds]
duggiefresh has quit [Remote host closed the connection]
tarpits has quit [Changing host]
tarpits has joined #ruby
gurix has quit [Quit: gurix]
kraljev11 has quit [Ping timeout: 268 seconds]
rcvalle has joined #ruby
BaroMeter has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
Alina-malina has quit [Ping timeout: 246 seconds]
TomyLobo has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
dmolina has joined #ruby
bluOxigen has joined #ruby
vjdhama has quit [Read error: Connection reset by peer]
dfockler has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dmolina1 has quit [Ping timeout: 250 seconds]
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
bu7ch has quit [Quit: Quitte]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
startupality has quit [Quit: startupality]
vjdhama has joined #ruby
Igorshp has quit [Remote host closed the connection]
MVPhelp has quit [Remote host closed the connection]
bentanwe_ has quit [Remote host closed the connection]
startupality has joined #ruby
noethics has joined #ruby
bazbing80 has joined #ruby
Igorshp has joined #ruby
<nzst>
Hi, does anyone know how to setup a `rackup config.ru` as a service on debian?
<jhass>
7?
MVPhelp has joined #ruby
eosinx has left #ruby [#ruby]
Igorshp has quit [Remote host closed the connection]
amclain has joined #ruby
<jhass>
nzst: systemd?
casadei has quit [Remote host closed the connection]
<nzst>
jhass: yes, i'm not sure how to do that
<jhass>
how did you install ruby & rack?
<noethics>
#debian
startupality has quit [Client Quit]
RobertBirnie has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<nzst>
jhass: a global ruby and a gem install of geminabox for rack
moeabdol has quit [Read error: Connection reset by peer]
<jhass>
nzst: so which rackup is /usr/local/bin/rackup ?
<jhass>
do you have a Gemfile?
JDiPierro has quit [Remote host closed the connection]
<bazbing80>
Hi, there are sgr discrepencies between terminals according to wikipedia. sgr 21 can either mean Bold: off or Underline: Double, for example. Vastly different. How can my ruby program determine what terminal it's running in so as to employ the correct SGR codes? Is ENV['TERM'] sufficient? Because that gives me 'xterm' for my gnome terminal...I was hoping for 'gnome'...or are all terminals based on xterm (such as gnome) all the same as far as sgr co
allomov has quit []
hal_9000__ has joined #ruby
darkf has quit [Quit: Leaving]
karapetyan has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
<jhass>
bazbing80: ENV['TERM'] should be enough, and yes something that reports xterm should behave like it
<jhass>
I think in practice it's all like xterm these days
<adaedra>
You should let this task to termcaps library though
RegulationD has quit [Remote host closed the connection]
<bazbing80>
jhass: thanksies
<bazbing80>
adaedra: termcaps?
hal_9000_ has quit [Ping timeout: 272 seconds]
<adaedra>
A system libraries that knows what terminals are able to do what and how.
<adaedra>
s/ies/y/
startupality has joined #ruby
yfeldblum has joined #ruby
<nzst>
jhass: I get 'unrecognized service' when trying to use that, i must have missed a step to register it
<jhass>
nzst: mmh no, as long as you used the right location the filename determines it
<bazbing80>
adaedra: yes im a-googling...is it not a gem?
<jhass>
nzst: make sure to put it into /etc/systemd/system/
ekain has joined #ruby
<bazbing80>
adaedra: or is it something lower level that needs to be installed in the OS?
<jhass>
so /etc/systemd/system/foo.service is controlled via systemctl start foo for example
<adaedra>
bazbing80: it's a bit of a lower level. But yeah, looking for a gem to manipulate the terminal for you can be a good idea, instead of just inputting code.
Timba-as has quit [Quit: Be back later ...]
bazbing80 has quit [Quit: leaving]
jxv has joined #ruby
bazbing80 has joined #ruby
ndrei has joined #ruby
sshuff is now known as sshuff|gone
yardenbar has quit [Ping timeout: 272 seconds]
Rollabunna has joined #ruby
bazbing80 has quit [Client Quit]
yfeldblum has quit [Read error: Connection reset by peer]
xcesariox has joined #ruby
Musashi007 has quit [Quit: Musashi007]
kidoz has quit [Quit: Ухожу я от вас]
yfeldblum has joined #ruby
<jhass>
nzst: you can also describe what you did exactly, for example by pasting your terminal scrollback to a gist and I can look if I see a mistake
vjdhama_ has quit [Read error: Connection reset by peer]
<shevy>
should be more like <<---- or so
<prefixed>
YO
<prefixed>
is this valid syntax? return changed_count > 0 ? true : false
<craysiii>
yes
paulcsmith has joined #ruby
<jhass>
prefixed: looks like it, pointless though, > already returns true or false
<adaedra>
but it's useless
mary5030 has quit [Ping timeout: 264 seconds]
<craysiii>
if this was C++ you could just say return changed_count and cast as a bool :)
<chino_>
what's the point of calling .to_str what does that even really do? docs says it just returns the receiver... rather confused... why #== call to_str but #eql? does not?
scoot has quit []
<prefixed>
so then this
<prefixed>
return changed_count > 0
<jhass>
chino_: dunno, so you can do a fake string I guess. I doubt it's widely used in practice
<adaedra>
prefixed: also, if it's the last line of your method, return is useless.
<craysiii>
i don't think you need an explicit return
<jhass>
prefixed: but yes
aaeron has quit [Quit: Leaving.]
UtkarshRay has joined #ruby
vjdhama has joined #ruby
leafybas_ has joined #ruby
bruno- has joined #ruby
bronson has joined #ruby
pandaant has quit [Remote host closed the connection]
andyrs has joined #ruby
<prefixed>
adaedra i feel like we spoke about this yesterday
<prefixed>
isn't the whole purpose of ruby to be easier to understand?
<adaedra>
wat
<prefixed>
an explict return is more expressive than an implicit one
<adaedra>
meh
<prefixed>
hey man. it's true
<adaedra>
ruby always return the last value calculated
banjara1 has joined #ruby
<craysiii>
ruby implicitly returns the last line of a method / whatever
leafybasil has quit [Ping timeout: 264 seconds]
<prefixed>
sure, but isn't the whole point of ruby to be expressive?
<adaedra>
so you know that the last line is the result
araujo_ has joined #ruby
shinnya has quit [Ping timeout: 244 seconds]
leafybas_ has quit [Ping timeout: 268 seconds]
bruno- has quit [Ping timeout: 240 seconds]
<adaedra>
`return` is here to indicate an early exit from a method
jenrzzz has joined #ruby
<dfockler>
prefixed: ruby is meant to be expressive, what you are describing is explicit
bronson has quit [Ping timeout: 250 seconds]
<prefixed>
lol
<prefixed>
that's great
banjara has quit [Ping timeout: 246 seconds]
<dfockler>
Python is a language you would probably like better if you like explicitness
<prefixed>
why don't you tell me what the difference between expressiveness and explictness is
<treehug88>
they're orthogonal
araujo has quit [Ping timeout: 272 seconds]
zmax has joined #ruby
<zmax>
How do I download binary files using ruby?
<prefixed>
this is so funny. why don't you tell me why they're orthoganl
atinjosan has joined #ruby
<eam>
prefixed: type coersion is an example of explicit vs expressive
<jhass>
zmax: solely for the purpose of saving them on disk? big files?
<treehug88>
because they're measuring things in different dimensions - the def of orthogonal. They're independent concepts
<eam>
for example, in ocaml you would have to say: 1.0 +. 1.0 -- because floating point types have their own addition operator "+." as opposed to "+" for integer numeric types
<zmax>
jhass: Yeah just to save them on disk. Files of sizes ranging from 50mb to 100mb
<jhass>
zmax: tbh the easiest might be to shell out to wget or curl for that
<eam>
that's very explicit -- but not necessarily more expressive (measuring in terms of how easy a human can understand the program's function)
<zmax>
jhass: Yeah, but I want to write a script for something...
<treehug88>
zmax: I consider shelling out to a command line tool
<jhass>
zmax: shell out means start from a ruby script
<eam>
prefixed: expressive often means making concessions in terms of brevity, to focus more carefully on what a human needs to understand about a program
<zmax>
jhass: What happens if a file is missing? Does the script break?
havenwood has joined #ruby
<jhass>
zmax: wget/curl would exit nonzero I think, you could test for that
The_Phoenix has quit [Read error: Connection reset by peer]
<eam>
prefixed: control over object lifecycles - having a GC - also an example of a feature that allows a focus on expressive code but is less explicit about execution behavior
_el_fer_ has joined #ruby
<eam>
python is ref counted so you can be explict about when an object is freed. Not so in ruby
qpls has quit [Remote host closed the connection]
<jhass>
zmax: mmh, at least wget appears to do so, for curl you could check if the file exists after it exited
<zmax>
jhass: Can I not download binary files using the open method?
<jhass>
zmax: you can with open-uri, it's just not wise since you'd read them into memory completely I think
hippyphysicist has joined #ruby
hippyphysicist has quit [Read error: Connection reset by peer]
ua has joined #ruby
<zmax>
jhass: Do we open a file in "w" mode even for binary files?
<zmax>
jhass: or is there a different mode for binary?
ua has left #ruby ["Leaving"]
scripore has joined #ruby
<jhass>
depends on whether you're on windows or not. in any case using "wb" doesn't harm
yqt has quit [Ping timeout: 240 seconds]
<jhass>
but you're ignoring my advice now, don't you?
<zmax>
jhass: I'm on Linux.
jgt3 has quit [Ping timeout: 246 seconds]
krisquigley has joined #ruby
<shevy>
long live linux!
<craysiii>
hup hup!
atinjosan is now known as atin
achamian has joined #ruby
zmax has quit [Quit: Page closed]
platzhirsch has left #ruby [#ruby]
jefus has joined #ruby
jefus has left #ruby [#ruby]
jamesaxl|2 has joined #ruby
scripore has quit [Ping timeout: 244 seconds]
<eam>
where did prefixed go
jas02 has joined #ruby
krisquigley has quit [Ping timeout: 265 seconds]
<prefixed>
off to write code
<eam>
don't you want to talk about expressive vs explicit any more?
nettoweb has quit [Ping timeout: 246 seconds]
jhn has joined #ruby
jamesaxl has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby
<prefixed>
nah. i decided it was orthogonal to the task at hand
vjdhama has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
<eam>
bummer, super interesting subject imo
nik_-_ has quit [Quit: nik_-_]
yfeldblum has joined #ruby
vjdhama has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
<chino_>
could class A::B < A; end cause some kind of circular issue or is it fine?
<prefixed>
what is the point of "MatchData"
Outlastsheep has joined #ruby
<prefixed>
why not convert to a string
ElvanorMoscow has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
<nzst>
jhass: was chatting to you earlier about making a rack systemd service, switched over to a debian LTS instead of an ubuntu LTS and it had the proper dependencies for a systemd service. The example you provided me worked great, thanks !
<jhass>
\o/
<jhass>
?try chino_
<ruboto>
chino_, Why don't you try it and see for yourself?
<jhass>
chino_: one thing it'll do is make A::B::B::B::B::B::B valid
<chino_>
heh... yea it's one of those things that you could try and it works but you don't really know if it can lead to something strange like that
<jhass>
but Object::Object::Object::Kernel::Object::Object is already valid, so...
jas02 has quit [Quit: jas02]
jenrzzz has quit [Ping timeout: 260 seconds]
<eam>
prefixed: matches match more than a single string
<nzst>
and then you can read to the end of the article and find the title is just linkbait
<nzst>
"What the Fair Work Commission did find is that a pattern of unreasonable behaviour, hostile behaviour, belittling behaviour over about a two-year period, which featured a range of different behaviours including berating, excluding and so on, constituted a workplace bullying."
jenrzzz has joined #ruby
<Alayde>
Anyone got a moment to lend me a hand? Bundler is kicking my ass. I'm trying to get the master branch of the 'rspec-puppet' gem installed (rvm), and with my Gemfile as it is now I end up with "Using rspec-puppet 2.2.1.pre from https://github.com/rodjek/rspec-puppet.git (at master)" when I bundle
<shevy>
nzst good point
<Alayde>
however, a 'gem list | grep rspec-puppet' gives me: rspec-puppet (2.2.0)
<havenwood>
Alayde: What's the exact line in your Gemfile?
<Alayde>
havenwood: mayhaps I'm misunderstanding something here, but when I look at the master branch of rspec-puppet on github I see a spec directory in the root of the project but when I look at the gem on my filesystem I only see a 'bin' and 'lib
<Alayde>
damn it. 'lib' directory
jenrzzz has quit [Ping timeout: 240 seconds]
hectortrope has quit [Read error: Connection reset by peer]
<Alayde>
and I'm a wee bit confused why a "gem list | grep rspec-puppet" only shows 2.2.0 installed rather than 2.2.1.pre
giuseppesolinas has quit [Quit: This computer has gone to sleep]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
tsujp has joined #ruby
sdothum has quit [Client Quit]
bronson has joined #ruby
mary5030 has joined #ruby
redondo has quit [Ping timeout: 264 seconds]
tsujp has quit [Client Quit]
hal_9000__ has quit [Quit: hal_9000__]
sdothum has joined #ruby
jfreitasdutra has joined #ruby
mjuszczak has joined #ruby
Coldblackice has joined #ruby
redondo has joined #ruby
hectortrope has joined #ruby
<hoylemd>
Huh. TIL. I guess I've been spolied by eerything else :p
kraljev11 has joined #ruby
agent_meerkat has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
<BraddPitt>
w/ 2
<BraddPitt>
sorry
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
last_staff has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 256 seconds]
blackmesa has quit [Read error: Connection reset by peer]
lxsameer has quit [Quit: Leaving]
p0wn3d__ has quit [Ping timeout: 264 seconds]
amclain_ has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
<Alayde>
havenwood: I just said fuck it, removed the gemset and created another one. Things are working now. tl;dr I can't computer, apparently
Xeago has joined #ruby
<havenwood>
Alayde: If turning it off and back on again doesn't work nuking it from orbit is a sure bet! ;)
freerobby1 has joined #ruby
<Alayde>
Lol amen
oz` has joined #ruby
oz has quit [Read error: Connection reset by peer]
oz` is now known as oz
SirFunk has quit [Ping timeout: 240 seconds]
mac_ has joined #ruby
robbyoconnor has quit [Excess Flood]
freerobby has quit [Ping timeout: 240 seconds]
SirFunk has joined #ruby
<shevy>
bundler drives people to madness!
abyss has quit [Ping timeout: 240 seconds]
r0bby_ has joined #ruby
<shevy>
I am turning into centrx 2.0
blackmesa has joined #ruby
neanderslob has quit [Ping timeout: 240 seconds]
TomyLobo has quit [Disconnected by services]
sakozdqqhytuagqn has joined #ruby
sakozdqqhytuagqn is now known as bygfusgldetqkjid
bygfusgldetqkjid is now known as TomyLobo
neanderslob has joined #ruby
amclain has quit [Ping timeout: 260 seconds]
n008f4g_ has quit [Ping timeout: 255 seconds]
karapetyan has joined #ruby
abyss has joined #ruby
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
shoutsid06 has joined #ruby
<jhass>
?nope
* jhass
slaps ruboto
syath_ has joined #ruby
mjuszczak has quit [Ping timeout: 264 seconds]
scripore has quit [Ping timeout: 260 seconds]
ujjain has quit [Ping timeout: 240 seconds]
Guest57947 has quit [Ping timeout: 240 seconds]
chinmay_dd has quit [Ping timeout: 240 seconds]
C0deMaver1ck has joined #ruby
scoot has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
atin has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
mjuszczak has joined #ruby
mjuszczak has quit [Remote host closed the connection]
syath_ has quit [Quit: WeeChat 1.2]
leafybasil has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
stamina has quit [Ping timeout: 250 seconds]
vjdhama_ has joined #ruby
vjdhama has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
Rollabunna has quit [Ping timeout: 265 seconds]
Soda has quit [Remote host closed the connection]
Soda has joined #ruby
tsujp has joined #ruby
circ-user-AqHyN has joined #ruby
momomomomo has quit [Ping timeout: 240 seconds]
Jardayn_two is now known as Jardayn
NeverDie has joined #ruby
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
jenrzzz has quit [Ping timeout: 272 seconds]
nym has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
ericjphillips has joined #ruby
jackjackdripper has joined #ruby
vjdhama_ has quit [Ping timeout: 264 seconds]
ekain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Azure|dc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 240 seconds]
youngbaks has joined #ruby
jas02 has joined #ruby
startupality has quit [Quit: startupality]
memnon34 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
Stalkr_ has joined #ruby
startupality has joined #ruby
jenrzzz has joined #ruby
TheWhip has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
memnon34 has joined #ruby
TheWhip has joined #ruby
cvtsx has joined #ruby
einarj has joined #ruby
startupality has quit [Client Quit]
vjdhama has joined #ruby
einarj has quit [Read error: Connection reset by peer]
einarj_ has joined #ruby
jmaya has joined #ruby
lxsameer has joined #ruby
whippythellama has quit [Ping timeout: 268 seconds]
_el_fer_ has quit [Quit: Leaving]
startupality has joined #ruby
baweaver has joined #ruby
TheWhip has quit [Ping timeout: 240 seconds]
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
einarj_ has quit [Remote host closed the connection]
ItSANgo has quit [Ping timeout: 264 seconds]
chino_ has quit [Quit: Page closed]
einarj has joined #ruby
jmaya has quit [Client Quit]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
p0wn3d__ has joined #ruby
einarj has quit [Remote host closed the connection]
achamian has quit [Remote host closed the connection]
bazbing80 has joined #ruby
frmendes has joined #ruby
Pumukel has joined #ruby
Wolland has joined #ruby
atmosx_laptop has joined #ruby
<izzol>
def [](name)
<bazbing80>
Is there an IO version of File.new ?
<izzol>
Why there is such a name in definition?
firstdayonthejob has joined #ruby
<bazbing80>
*equivalent
ItSANgo_ has joined #ruby
baweaver has quit [Remote host closed the connection]
araujo_ has quit [Quit: Leaving]
<izzol>
what do you mean equivalent?
<jhass>
izzol: it provides foo[x]
araujo has joined #ruby
aaeron has joined #ruby
jmaya has joined #ruby
podman has joined #ruby
<izzol>
jhass: but why to use it? it's just a name?
bluOxigen has quit [Ping timeout: 272 seconds]
<jhass>
because it looks nice?
dorei has joined #ruby
<izzol>
it looks like an array ;-)
ekain has joined #ruby
<craysiii>
whats ||= called
timonv has quit [Ping timeout: 240 seconds]
<adaedra>
that's the idea
<jhass>
craysiii: or equals? we don't really have an official name
<adaedra>
syntaxic sugar
<jhass>
izzol: or a hash ;)
deject3d has joined #ruby
<adaedra>
izzol: you have [] and []=, so you can create your own collection-like classes
j4cknewt has quit [Remote host closed the connection]
jmaya has quit [Client Quit]
to_json has quit [Ping timeout: 265 seconds]
<adaedra>
bazbing80: What do you mean
whippythellama has joined #ruby
youngbaks has quit [Read error: Connection reset by peer]
<adaedra>
What would it do
j4cknewt has joined #ruby
p0wn3d__ has quit [Ping timeout: 246 seconds]
<izzol>
hmm, ok
baweaver has joined #ruby
<bazbing80>
adaedra: good question, just create a file in memory, that can be appended and then created on disk with IO.write ...worth noting this is my first dabble with i/o
<bazbing80>
*appended to
<jhass>
bazbing80: StringIO ?
<adaedra>
bazbing80: you may want to look at StringIO
Lingo has joined #ruby
<bazbing80>
you two are like a hive mind...a helpful hivemind :P
<shevy>
two lovers
mengu has quit [Remote host closed the connection]
<bazbing80>
haha
<bazbing80>
thanks
kraljev11 has quit [Quit: kraljev11]
kraljev11 has joined #ruby
platzhirsch has joined #ruby
codecop has quit [Remote host closed the connection]
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
BackEndCoder has joined #ruby
bronson has joined #ruby
ramfjord has joined #ruby
andyrs has joined #ruby
memnon34 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tsujp has quit [Quit: tsujp is snoozing]
atmosx_laptop is now known as atmosx
<atmosx>
hello
ruurd has joined #ruby
startupality has quit [Quit: startupality]
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
bronson has quit [Remote host closed the connection]
scoot has quit []
dfinninger has quit [Ping timeout: 244 seconds]
memnon34 has joined #ruby
youngbaks has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
arooni has joined #ruby
arooni has quit [Max SendQ exceeded]
mooe has joined #ruby
ricer2 has joined #ruby
arooni has joined #ruby
jcromartie has joined #ruby
maletor has joined #ruby
hamilto-nyan has quit [Quit: Now that it's all over and done, now that you find, now that you're whole.]
bronson has joined #ruby
agent_meerkat has quit [Ping timeout: 240 seconds]
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
startupality has joined #ruby
stamina has joined #ruby
Xeago has joined #ruby
vjdhama has quit [Remote host closed the connection]
avahey has joined #ruby
bronson has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
krisquigley has joined #ruby
vjdhama has joined #ruby
aaeron has quit [Quit: Leaving.]
kadoppe has quit [Ping timeout: 255 seconds]
mac_ has quit [Quit: This computer has gone to sleep]
<arup_r>
atmosx: I will buy a laptop.. but when no idea :( I am sooooooooo confused!
guacjack has joined #ruby
<atmosx>
arup_r: yeah, life is a bitch.
polysics has joined #ruby
<atmosx>
craysiii: I have the iPad for the bathroom and DLNA server (which doesn't stream subs though...)
<arup_r>
:)
<guacjack>
hey folks, just wanted to ask a question, i've joined a new job and in my team they force us to use an ubuntu vm with IntelliJ Idea to do development on, we pair program all of our tasks and using the host mac with IntelliJ is out of the question. We mainly program Ruby... is it just me or is this unreasonable? I am just asking to be able to use IntelliJ on the mac rather than the VM
UtkarshRay has quit [Quit: Leaving]
momomomomo has quit [Ping timeout: 246 seconds]
lipoqil has quit [Quit: Connection closed for inactivity]
<guacjack>
This is not a business decision this is literally the other developers who are saying im going to be the odd one out if im using the mac rather than the vm
momomomomo has joined #ruby
<tangentstorm>
you should definitely quit and tell them to hire me instead. :)
gener1c_ has joined #ruby
<eam>
gener1c_: it's pretty normal if it mirrors your prod environment
<eam>
guacjack: ^^
sharpmachine has quit [Remote host closed the connection]
<eam>
do you run ubuntu in prod?
<guacjack>
it seems that every other team in the business are able to use whichever IDE they like, yet in my team theyre making every dev use a VM with IntelliJ on there
gener1c has quit [Ping timeout: 256 seconds]
VeryBewitching has joined #ruby
<guacjack>
im not sure, but even so, why am i not able to use Vim on the VM or sublime if i were that way inclined?
<eam>
seems like it's enforced so you can pair program on a common platform? That seems a bit odd, but not completely crazy
<atmosx>
guacjack: do you know the person who came up with this setup?
<arup_r>
atmosx: Why ? :D
<atmosx>
eam: IntelliJ? seriously?
mahlon_ is now known as mahlon
<guacjack>
yeah that is the reason its enforced, no but it seems like the developer whos enforcing it now is thinking hes 'the boss' when he isnt
asxbr has joined #ruby
<eam>
atmosx: intellij for ruby is kinda crazy
youngbaks has joined #ruby
<atmosx>
eam: exactly
<guacjack>
its enforced so we're all on a common dev environment when pairing
freerobby1 has quit [Quit: Leaving.]
<eam>
atmosx: but enforcing one env for all devs + pair programming isn't crazy
<atmosx>
eam: it's the IDE of choice for Java but that's about it
<guacjack>
all i've said is that im more comfortable with using Vim or Sublime
jenrzzz has joined #ruby
<guacjack>
and the literal response i got today was 'well you'll be the odd one out and no one will want to pair with you
<shevy>
arup_r she is sleeping again
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
`tim` has joined #ruby
<guacjack>
as far as i know, no other team in this business has these rules enforced on them
fmcgeough has quit [Quit: fmcgeough]
MyMind has quit [Ping timeout: 250 seconds]
<atmosx>
guacjack: you sure it's ruby?
<guacjack>
the business is fantastic but the team im in... im not sure why im being forced to use this IDE within this VM
<guacjack>
100%
<atmosx>
guacjack: sounds too much like java
<guacjack>
we use sinatra
<arup_r>
shevy: don't give her then milk again.
<atmosx>
guacjack: are you sure the guy you talked about can tell a mouse from a computer screen, because doesn't sound like he can.
<guacjack>
im considering asking if i can move teams
jobewan has joined #ruby
<atmosx>
guacjack: and does inteliJ have syntax highlighting for sinatra?!
<guacjack>
cause of all the other teams this doesnt seem to be the problem, and the other teams which pair, they meet a middle ground
<guacjack>
and yes
<guacjack>
the other teams, if one guy uses vim and one guy uses intellij, they find a common ground
<atmosx>
guacjack: can you show me a screenshot?
<guacjack>
not right now, not on the works pc
<atmosx>
I see
<guacjack>
i just came here to see really if this was normal
agent_meerkat has joined #ruby
towski_ has joined #ruby
<atmosx>
on a more serious note, go with IntelliJ and get over with. The choice is stupid though, doesn't make sense.
stamina has quit [Quit: WeeChat 1.3]
bruno- has joined #ruby
<guacjack>
i just feel im being frowned upon cause im a little reluctant to learn an IDE, when mu current one has been fine for me for ages
<atmosx>
Since the pay you...
<atmosx>
learn the IDE.
<atmosx>
you might end up writing Java one day (and then start wondering what's wrong with OO programming).
<guacjack>
yeh i will do, seems a bit silly that the other x amount of teams are able to use what they want and im not
krisquigley has joined #ruby
<guacjack>
there must be like 10 more teams, and they use what the ywant
`tim` has quit [Ping timeout: 246 seconds]
prestorium has quit [Quit: Leaving]
<atmosx>
guacjack: not a big deal, in 30 days or so you'll be fine I'm sure.
banjara has quit [Remote host closed the connection]
<guacjack>
its the principle really
<guacjack>
one guy thinking he's the boss
<guacjack>
meh im just pissed off
blackmesa has quit [Ping timeout: 246 seconds]
nfk has joined #ruby
ruurd has joined #ruby
<workmad3>
guacjack: I'd personally be heavily resistant to a to a team that attempted to force a choice of editor on me, unless it was for pretty good reasons (e.g. the command line tools for a particular build chain are stupidly complex and the IDE manages it all nicely)
aaeron has quit [Quit: Leaving.]
<workmad3>
code style? fair enough. editor? GTFO
<guacjack>
other teams work on the same stuff and use whatever they want
<guacjack>
im not asking to change any code style, any slower output or anything just to use an Editor i wnat
<guacjack>
want*
shadoi has quit [Quit: Leaving.]
<guacjack>
but i am being told i'm going to be the odd one out and no one will work with me if i do so
<guacjack>
so seems kinda shitty
<tangentstorm>
so just work by yourself
<guacjack>
but dont want to complain cause dont want to seem liek a moaner
<guacjack>
i cant, the team enforces 100% pair programming
parduse has quit [Read error: Connection reset by peer]
<tangentstorm>
i dunno man. this seems like a pretty minor thing to draw a line in the sand about.
<atmosx>
workmad3: IMHO if the entire team uses an IDE, then you shouldn't be off-tune, for many reasons. Especially when you're the new kid on the bloc (step by step, ooh baby...)
Xeago has quit [Read error: Connection reset by peer]
<tangentstorm>
you've got a job. you get to do pair programming and write ruby code. sounds pretty awesome to me.
<atmosx>
+1 tangentstorm
<guacjack>
we're all new though
<guacjack>
but i agree
<guacjack>
i am pretty lucky
<guacjack>
tbh
<atmosx>
You have to learn the rules of the game. And then you have to play better than anyone else. - Albert Einstein
<guacjack>
so i probs shouldnt complain
<guacjack>
thanks brahs
<tangentstorm>
:)
krisquigley has quit [Ping timeout: 244 seconds]
RTG` has quit [Ping timeout: 240 seconds]
agent_meerkat has quit [Ping timeout: 246 seconds]
<workmad3>
atmosx: editor/machine setup is something I think is personal choice that you need to customise for comfort, unless there's a truly compelling reason to go against the editor/setup that you've tuned to your needs, have spent lots and lots of hours learning and practicing in and that you don't need to think about, I'd basically ignore a mandate to use a specific IDE
parduse has joined #ruby
RTG` has joined #ruby
<guacjack>
atmosx has a good point, im employed, i get to pair on everything so maybe i should just chill
<workmad3>
atmosx: that's not to say you can't try to convince someone to try something else... I'd be open to discussions and suggestions to try something, especially if the person could show specific improvements in approaches to common editing tasks... but I would be heavily resistant to a top-down dictate to use it with no discussion
solocshaw has joined #ruby
Musashi007 has joined #ruby
momomomomo has quit [Quit: momomomomo]
<workmad3>
admittedly, I'm the sort of oddity that has actually used vim with the eclim plugin to work on java code, rather than learn eclipse and lose vim proficiency...
<atmosx>
workmad3: reverse the situation, say you're a team leader. How would you react if junior, new entry came up with a him-IDE vs your-IDE discussions after you already made clear that you need everybody on the team to use the same tool.
j4cknewt has quit [Remote host closed the connection]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3>
atmosx: I wouldn't ever dictate everyone on the team use the same tool
aaeron has joined #ruby
deject3d has quit [Quit: Computer has gone to sleep.]
sharpmachine has joined #ruby
audiodude has joined #ruby
<atmosx>
workmad3: you would dictate some policies though. Because using IntelliJ sounds much like ap olicy to me.
<shevy>
it makes you more intelligent! the name is a dead give away!!!
<guacjack>
the thing is, this guy isnt the team leader
j4cknewt has joined #ruby
<guacjack>
hes a mid level developer
<shevy>
if the entire team goes to work without clothes then so should you
<craysiii>
if the entire team jumps of a building would you?
<eam>
generally, if you're not super happy with your team and your career trajectory you're gonna want to move
p0wn3d__ has joined #ruby
<workmad3>
craysiii: probably... I work with intelligent people, they're probably jumping for a good reason
<craysiii>
good answer :)
<platzhirsch>
yorickpeterse: ¯\_(ツ)_/¯
<eam>
this isn't exactly a field lacking an abundance of opportunity
<platzhirsch>
so Ruby 3 is going to have immutable strings
<platzhirsch>
ga..me changer
<workmad3>
craysiii: that said, I work remotely... I may not notice them jumping, it would just go silent on the team slack channel :)
<shevy>
yeah
<shevy>
this will be the big split like in python \o/
<adaedra>
platzhirsch: there's already immutable strings. They're giving it a short syntax.
<shevy>
how short
<workmad3>
"foo"
<shevy>
lol
<platzhirsch>
I thought they'll become immutable by default
ta has joined #ruby
<workmad3>
platzhirsch: string literals will be frozen by default