<shevy>
soahccc what browser do you use? looks to be a very broken image you have there :D
<shevy>
ri is pretty awful
<soahccc>
shevy: chrome on os x
b1nd has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
<soahccc>
shevy: the forms are ridiculously large
matchaw has joined #ruby
InhalingPixels has quit [Ping timeout: 244 seconds]
Spami has quit [Quit: Leaving]
<shevy>
ah
<shevy>
I am still on old school firefox
<multi_io>
soahccc: I have published one, but it's been years
<sevenseacat>
firefox is awesome.
angusigu1ss has joined #ruby
MattEZQ has left #ruby [#ruby]
<soahccc>
shevy: does it look any better there? :D
ghr has quit [Ping timeout: 255 seconds]
abdulsattar has joined #ruby
baum has joined #ruby
nettoweb has joined #ruby
<multi_io>
soahccc: those links won't become part of the gem, AFAIK
nettoweb has quit [Max SendQ exceeded]
nettoweb has joined #ruby
<multi_io>
i.e. that documentation wouldn't be made available to tools like "ri"
goshdarnyou has quit [Quit: Connection closed for inactivity]
<multi_io>
it was my understanding that ri exposes the documentation that's contained in or autogenerated from the installed gems
<soahccc>
multi_io: yeah sure. I was just saying that rubygems.org doesn't care about what you are using... Other services might do but I think yard is widely supported
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<multi_io>
so I guess my question is, does that scanning/autogeneration mechanism support yard tags
<soahccc>
multi_io: are you talking about web output or command line usage?
angusigu1ss has quit [Ping timeout: 240 seconds]
<shevy>
soahccc only minimal, I don't have those massive wide forms / input fields though. but perhaps the css from rubygems.org is broken?
tastycode has quit [Quit: tastycode]
gsd has joined #ruby
<shevy>
multi_io I think so, at least I think I remember that yard users were putting their gems out there just fine, on rubygems.org. I don't know any offhand though, I am usually way too lazy to read documentation
<shevy>
I try to explore instead :D
sparr has joined #ruby
Spami has joined #ruby
IceDragon has quit [Ping timeout: 246 seconds]
abdulsattar has quit [Ping timeout: 260 seconds]
emocakes has quit []
Spami__ has quit [Quit: This computer has gone to sleep]
Sht0 has quit []
<multi_io>
soahccc: I'm talking about "ri" as well as the gems api documentation available on sites like ruby-doc.org and rubydoc.info
<multi_io>
shevy: ok thanks
Ankhers has joined #ruby
<multi_io>
I guess at least rubydoc.info will support it because apparently it was done by the yard creator :P
Soda has quit [Remote host closed the connection]
gsd has quit [Client Quit]
jxf has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
<shevy>
hehe
<shevy>
yeah
<shevy>
exactly
slester has joined #ruby
hanjianwei has joined #ruby
b00stfr3ak has joined #ruby
vinleod has joined #ruby
<sparr>
I'm trying to `gem install nokogiri` on OSX and it complains that libxml is missing. I've got libxml2 from homebrew but don't know how to tell gem to use it.
_maes_ has joined #ruby
willgo has quit [Quit:]
<shevy>
libxml2 is probably in a non standard location
<shevy>
on my system it is in /usr/lib/libxml2.so
<shevy>
I guess OSX uses something else other than .so
<shevy>
so the first question is - where do you have libxml2 sparr
doritostains has quit [Quit: doritostains]
kayloos has joined #ruby
ixti has quit [Quit: WeeChat 1.0]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tac_ has joined #ruby
Channel6 has joined #ruby
duncannz has joined #ruby
deric_skibotn has quit [Ping timeout: 260 seconds]
deric_skibotn_ has joined #ruby
deric_skibotn_ is now known as deric_skibotn
duncannz has quit [Remote host closed the connection]
enriclluelles has joined #ruby
IceDragon has joined #ruby
itadder has joined #ruby
<itadder>
any use tropo API in thier ruby code
<itadder>
anything else like that
skammer3 has joined #ruby
rkalfane has joined #ruby
kayloos has quit [Ping timeout: 272 seconds]
yetanotherdave has quit [Ping timeout: 244 seconds]
doritostains has joined #ruby
duncannz has joined #ruby
melik_ has quit [Quit: Computer has gone to sleep.]
milkohol has joined #ruby
igaiga has joined #ruby
angusigu1ss has joined #ruby
wallerdev has quit [Quit: wallerdev]
Inhaling_ has quit []
charliesome has joined #ruby
InhalingPixels has joined #ruby
milkohol has quit [Client Quit]
enriclluelles has quit [Ping timeout: 272 seconds]
milkohol has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aspires has quit []
greg1 has joined #ruby
greg1 has quit [Client Quit]
aspires has joined #ruby
mikepack has joined #ruby
Sthebig has quit [Ping timeout: 260 seconds]
hiyosi has quit [Ping timeout: 245 seconds]
greg1 has joined #ruby
Kabaka has quit [Ping timeout: 250 seconds]
<greg1>
ok
greg1 has quit [Client Quit]
mikepack has quit [Remote host closed the connection]
mikepack_ has joined #ruby
russt has joined #ruby
moritzs has quit [Ping timeout: 272 seconds]
Azure has quit [Ping timeout: 272 seconds]
recurrence has joined #ruby
Spami has joined #ruby
aspires has quit []
kireevco has quit [Ping timeout: 245 seconds]
GregWittman has joined #ruby
neonixcoder has quit [Quit: Leaving.]
tlarevo has quit [Ping timeout: 255 seconds]
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davasaurous has joined #ruby
kayloos has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
Sthebig has joined #ruby
neonixcoder has joined #ruby
neonixcoder has quit [Max SendQ exceeded]
neonixcoder has joined #ruby
Kabaka has joined #ruby
rubyonrailed has joined #ruby
neonixcoder has quit [Max SendQ exceeded]
neonixcoder has joined #ruby
neonixcoder has quit [Max SendQ exceeded]
neonixcoder has joined #ruby
enriclluelles has joined #ruby
angusigu1ss has joined #ruby
PanPan has joined #ruby
kayloos has quit [Ping timeout: 260 seconds]
GregWittman has quit [Quit: WeeChat 1.0]
tectonic has joined #ruby
KC9YDN has joined #ruby
wldcordeiro_ has joined #ruby
skammer3 has joined #ruby
angusigu1ss has quit [Ping timeout: 272 seconds]
enriclluelles has quit [Ping timeout: 272 seconds]
hiyosi has joined #ruby
russt has quit [Quit: russt]
devdazed has quit [Quit: Computer has gone to sleep.]
Cecen_ has joined #ruby
lampd1 has quit []
skammer3 has quit [Ping timeout: 245 seconds]
milkohol has joined #ruby
Cecen has quit [Ping timeout: 272 seconds]
hiyosi has quit [Ping timeout: 272 seconds]
GriffinHeart has quit [Remote host closed the connection]
Zesty has joined #ruby
GriffinHeart has joined #ruby
jbueza has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
russt has joined #ruby
kevkev has joined #ruby
ARCADIVS has joined #ruby
himsin has joined #ruby
kevkev has quit [Ping timeout: 255 seconds]
Morrolan has quit [Ping timeout: 240 seconds]
himsin has quit [Read error: Connection reset by peer]
Morrolan has joined #ruby
northfurr has quit [Quit: northfurr]
t_p has quit [Ping timeout: 260 seconds]
davasaurous has quit [Remote host closed the connection]
Lewix has quit [Read error: Connection reset by peer]
kate_r has quit [Read error: Connection reset by peer]
Mars__ has joined #ruby
Lewix has joined #ruby
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kate_r has joined #ruby
himsin has joined #ruby
yacks has quit [Quit: Leaving]
arup_r has quit [Quit: Leaving.]
Mars__ has quit [Ping timeout: 260 seconds]
nanoyak has joined #ruby
cmarques has joined #ruby
tewlz has quit [Quit: WeeChat 1.0]
Takumo has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
fabrice31 has joined #ruby
GregWittman has joined #ruby
zakiazigazi has quit []
cmarques has quit [Ping timeout: 272 seconds]
mikepack_ has quit [Remote host closed the connection]
Takumo has joined #ruby
<EasyCo>
Can you destructively change an element in an array without pulling it out first? For example: str = ['Test', 'Cool']; str[1] = str[1].downcase;
neonixcoder has quit [Quit: Leaving.]
recurrence has joined #ruby
Lewix has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 260 seconds]
<mozzarella>
str[1].downcase!
SegFaultAX has quit [Excess Flood]
cirn0 has joined #ruby
<EasyCo>
BS!
<sevenseacat>
dont think that will work
fabrice31 has quit [Ping timeout: 255 seconds]
SegFaultAX has joined #ruby
<EasyCo>
it does
<EasyCo>
Just tried it, wouldn't of thought so either
<sevenseacat>
hmm
qualiabyte has joined #ruby
tac_ has quit [Read error: Connection reset by peer]
<EasyCo>
sevenseacat: I concur
cirn0 has quit [Ping timeout: 240 seconds]
yetanotherdave has quit [Ping timeout: 246 seconds]
pencilcheck has quit [Remote host closed the connection]
davasaurous has joined #ruby
wldcordeiro_ has quit [Quit: Leaving]
flowerhack has quit [Read error: Connection reset by peer]
flowerhack has joined #ruby
fauzanqadri has joined #ruby
emocakes has quit []
GriffinHeart has quit [Remote host closed the connection]
zakiazigazi has joined #ruby
GriffinHeart has joined #ruby
yacks has joined #ruby
synergyz has joined #ruby
vinleod has quit [Read error: Connection reset by peer]
IceDragon has quit [Quit: Space~~~]
vinleod_ has joined #ruby
yacks has quit [Client Quit]
akshayvishnoi has joined #ruby
MrL0ngbowman has joined #ruby
fold has quit [Ping timeout: 272 seconds]
MrL0ngbowman has quit [Client Quit]
yacks has joined #ruby
micluss has joined #ruby
micluss has quit [Client Quit]
yfeldblum has joined #ruby
emocakes has joined #ruby
angusigu1ss has joined #ruby
Cecen_ has quit []
igaiga has joined #ruby
diegovio1 has joined #ruby
zettam_ has quit [Read error: Connection reset by peer]
zettam has quit [Read error: Connection reset by peer]
MrL0ngbowman has joined #ruby
diegoviola is now known as Guest29481
diegovio1 is now known as diegoviola
skammer3 has joined #ruby
Guest29481 has quit [Ping timeout: 260 seconds]
angusigu1ss has quit [Ping timeout: 246 seconds]
fauzanqadri has quit [Remote host closed the connection]
cndiv has joined #ruby
hiyosi has joined #ruby
tlarevo has joined #ruby
mikepack has joined #ruby
Lewix has joined #ruby
skammer3 has quit [Ping timeout: 245 seconds]
flowerhack has quit [Ping timeout: 245 seconds]
synergyz_ has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
lacrymology has joined #ruby
flowerhack has joined #ruby
synergyz has quit [Ping timeout: 246 seconds]
<lacrymology>
hi, I need help setting up a bit of logic for a compass config file. I'm a python guy, I don't know much ruby, but I need to get the current directory name (just the basename, not the whole path) and replace '-' for '_'
b00stfr3ak has joined #ruby
<lacrymology>
so I can get 'this_my_dir' from 'this-my-dir'
mikepack has quit [Ping timeout: 245 seconds]
flowerhack has quit [Remote host closed the connection]
pencilcheck has joined #ruby
<Hanmac>
lacrymology: i think you are looking for gsub
vinleod_ is now known as vinleod
<akshayvishnoi>
‘this-my-dir’.gsub(‘-‘, ‘_’)
<lacrymology>
PROJECT_DIR = File.basename(Dir.getwd).gsub('-', '_') << this look good?
vinleod has quit [Quit: Computer has gone to sleep.]
ghr has quit [Ping timeout: 272 seconds]
<Hanmac>
jazz see at the output what does match 2.6 and what does not
<havenwood>
['>= 2.5.4', '< 2.6']
<jazz>
thinks Hanmac.
kamil has quit [Read error: Connection reset by peer]
<jazz>
I think I had understood .
<jeaye>
Running 2.1.2p95, I'm using grit which is failing with Grit::GitRuby::Internal::PackFormatError. Anyone familiar with this? I see there was an issue regarding encoding, but I think it only applied to Ruby 1.9.
relix has joined #ruby
kamil has joined #ruby
vinleod has joined #ruby
vinleod has quit [Client Quit]
Advocation has joined #ruby
vinleod has joined #ruby
igaiga has joined #ruby
vinleod has quit [Client Quit]
sinkensabe has quit [Ping timeout: 245 seconds]
cirn0 has joined #ruby
vinleod has joined #ruby
<multi_io>
rake question: the source of file tasks is always nil here. that looks like a rake bug, doesn't it?
<multi_io>
or is that supposed to be this way?
mengu has quit [Remote host closed the connection]
<maasha>
yeah, well, if I am following an outdated tutorial I am wasting everyones time. Sorry guys.
oponder has joined #ruby
Hightower666 has joined #ruby
alex88 has joined #ruby
cmarques has quit []
<agent_white>
maasha: No worries! It did make me curious enough to check it out!
bascht has quit [Client Quit]
cmarques has joined #ruby
bascht has joined #ruby
robbyoconnor has quit [Excess Flood]
<Rhainur>
if I have a hash such as this {a: [1,2,3,4], b: [1,2,3], c: [1,3,4]} and I want to make sure that any items don't exist in all the arrays are eliminated i.e the result should be {a: [1,3], b: [1,3], c: [1,3]} what's an idiomatic way of writing that?
<sevenseacat>
"The syntax examples in these posts are out of date in some places, but they are instructive nonetheless."
<Rhainur>
writing a bunch of include? and delete feels wrong
<agent_white>
maasha: It's always a good idea to check the source to see if they have an "examples" folder instead... as it will almost always be more up to date than any tutorial.
<maasha>
Right.
elaptics`away is now known as elaptics
<joonty>
Rhainur you can use reject
Guest58229 has joined #ruby
<joonty>
e.g. array.reject { |i| [2, 4].include?(i) }
<joonty>
Bish: i had good experience with shoes (lol)
<canton7>
izzol, on linux, you're either going to be reading from /proc or /sys, or calling native utilities :P
<joonty>
but it is intended for smallish apps
<Bish>
wonder if i want to be a bald man with shoes
<joonty>
haha
moritzs has joined #ruby
<joonty>
better than without shoes, IMO
robbyoconnor has quit [Excess Flood]
axl_ has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
sectionme has quit [Ping timeout: 272 seconds]
hellangel7 has joined #ruby
HelperW has quit [Ping timeout: 240 seconds]
axl_ has quit [Client Quit]
marr has joined #ruby
HelperW_ has quit [Ping timeout: 258 seconds]
robbyoconnor has joined #ruby
HelperW_ has joined #ruby
<Sp4rKy>
hi there, anyone having exemple of curb script which re-use cookie ?
kaspertidemann has joined #ruby
<Sp4rKy>
(something like http_post , and reuse the cookie received on another request)
sinkensabe has quit [Remote host closed the connection]
kaspertidemann has quit [Read error: Connection reset by peer]
sevenseacat has quit [Remote host closed the connection]
kaspertidemann has joined #ruby
<Bish>
joonty, what does shoes use for rendering? i mean.. it had to be ported to win, doesn't it
user324 has joined #ruby
patrick99e99 has joined #ruby
sarkis has quit [Ping timeout: 246 seconds]
moritzs has quit [Ping timeout: 255 seconds]
sgcjhs has joined #ruby
blackmesa has joined #ruby
diegoviola has quit [Remote host closed the connection]
pandaant has joined #ruby
<Bish>
oh wow.. it's pure ruby?
user324 has left #ruby [#ruby]
patrick99e99 has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
freerobby has joined #ruby
Aaaal has joined #ruby
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
<lacrymology>
apeiros: thanks
Xeago_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
kaspergrubbe has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
akshayvishnoi has quit [Quit: akshayvishnoi]
pandaant has quit [Remote host closed the connection]
yacks has quit [Ping timeout: 240 seconds]
St_Marx has quit [Ping timeout: 264 seconds]
linojon has quit [Quit: linojon]
bascht has joined #ruby
skammer3 has joined #ruby
ptrrr has joined #ruby
sectionme has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
wald0 has joined #ruby
anarang has quit [Ping timeout: 245 seconds]
blackmesa has quit [Ping timeout: 255 seconds]
kith_ is now known as kith
timonv_ has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
igaiga has quit [Remote host closed the connection]
anarang has joined #ruby
zakiazigazi has quit []
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mengu has joined #ruby
tkuchiki_ has joined #ruby
hiyosi has joined #ruby
matty1234 has joined #ruby
tkuchiki has quit [Ping timeout: 245 seconds]
kaspertidemann has quit []
Xeago_ has quit [Read error: Connection reset by peer]
Juzdan has quit [Remote host closed the connection]
Aaaal has quit [Quit: Aaaal]
Xeago has joined #ruby
Juzdan has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
Tomasso has joined #ruby
<Tomasso>
how do you use the logical operator "and" in a lookaround from a regular expression ? I could find or | , but not and.. is it supported?
yetanotherdave has quit [Ping timeout: 272 seconds]
mengu has quit [Ping timeout: 258 seconds]
<apeiros>
Tomasso: that's not how regex work
SouL has joined #ruby
<apeiros>
a regex is a machine that inspects character per character and checks whether it matches or not. during the matching it can go down into different branches of what sequence of characters it can match. it's a bit more complex, but that's the gist of it.
<Tomasso>
you say because with and, it should keep the state of the first matching condition ?
Juzdan has quit [Ping timeout: 245 seconds]
<Tomasso>
shuould be quite useful to be able to pass a ruby block inside a lookaround , is there something like that ?
<apeiros>
no
<Tomasso>
thanx :S
x1337807x has quit [Ping timeout: 246 seconds]
lolmaus__ has joined #ruby
decoponio has joined #ruby
lolmaus_ has quit [Ping timeout: 272 seconds]
<apeiros>
you can "kind of" emulate boolean and using non-consuming expressions
havenwood has joined #ruby
<apeiros>
but since you already talk about look-around (which are non-consuming), I'd assume you're already evaluating that
xMopxShell has quit [Ping timeout: 240 seconds]
pwestlun1 has quit [Ping timeout: 272 seconds]
xMopxShell has joined #ruby
HelperW_ has quit [Remote host closed the connection]
HelperW_ has joined #ruby
mooru has joined #ruby
Spami has joined #ruby
adironduck has quit [Quit: adironduck]
mikepack has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
jottr has quit [Ping timeout: 245 seconds]
skip_freely has joined #ruby
puppeh has joined #ruby
agjacome has joined #ruby
mikepack has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
sk87 has joined #ruby
nettoweb has quit [Max SendQ exceeded]
ta__ is now known as ta
hellangel7 has quit [Max SendQ exceeded]
nettoweb has joined #ruby
yfeldblum has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
ctp has quit [Read error: Connection reset by peer]
ctp has joined #ruby
krz has quit [Ping timeout: 255 seconds]
^[]^ has quit [Excess Flood]
dukz has joined #ruby
Snowstormer has joined #ruby
Snowstormer is now known as Guest57067
akshayvishnoi has joined #ruby
Guest57067 has quit [Changing host]
Guest57067 has joined #ruby
Guest57067 is now known as ^[]^
<puppeh>
poop
puppeh has left #ruby ["Leaving..."]
DrCode has quit [Ping timeout: 264 seconds]
end_guy has quit [Ping timeout: 264 seconds]
sarkis has joined #ruby
krisquigley has quit [Remote host closed the connection]
relix has quit [Ping timeout: 272 seconds]
krz has joined #ruby
<agent_white>
What's that iterator that lets you store a counter?
<max06>
Good morning. I have a small problem with this code snippet, using the savon gem. Code is here: http://pastebin.com/HPz0e4wm, error is: …request.rb:142:in `normalize_url!': Invalid URL: (ArgumentError)
relix has joined #ruby
<agent_white>
like [1,2,3].SOMEITERATOR { |ele, counter| ... }
Azure has joined #ruby
<max06>
(I should mention that I'm a complete newbe in ruby)
<apeiros>
Bish: eval-in is not here for your personal experiments and amusement.
Scotteh_ has joined #ruby
<Bish>
apeiros, does it have feelings?
kate_r has quit [Ping timeout: 255 seconds]
<apeiros>
Bish: this is not up for discussion.
<Bish>
it does :O
olekenneth has quit [Ping timeout: 272 seconds]
skammer3 has quit [Read error: Connection reset by peer]
Scotteh has quit [Ping timeout: 260 seconds]
Bish was kicked from #ruby by apeiros [stop testing my patience]
<apeiros>
slow irc…
himsin has quit [Quit: himsin]
olekenneth has joined #ruby
Takle has quit [Remote host closed the connection]
emocakes__ has joined #ruby
leehambley has joined #ruby
himsin has joined #ruby
emocakes has quit [Ping timeout: 272 seconds]
<multi_io>
with rbenv, how would you set up a sandbox gemset to experiment with, without using rbenv install to install an entire new ruby?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kate_r_ has quit [Read error: No route to host]
synergyz_ has quit [Read error: Connection reset by peer]
<multi_io>
i.e. use a ruby version that's already installed in rbenv, but use a new set of gems with it.
kate_r has joined #ruby
Kurvivor has quit [Ping timeout: 272 seconds]
skammer has joined #ruby
end_guy has quit [Ping timeout: 264 seconds]
<multi_io>
is rbenv meant for this sort of thing, or would you just set GEM_* environment variables manually?
synergyz has joined #ruby
HelperW___ has joined #ruby
angusigu1ss has joined #ruby
arup_r has quit [Remote host closed the connection]
psyprus has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
Takle has joined #ruby
GriffinHeart has joined #ruby
HelperW__ has quit [Ping timeout: 245 seconds]
Bish has joined #ruby
britneywright has joined #ruby
psyprus has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Scotteh has joined #ruby
endash has joined #ruby
Scotteh_ has quit [Ping timeout: 260 seconds]
axl_ has joined #ruby
arup_r has joined #ruby
baltazore has quit [Remote host closed the connection]
baltazore has joined #ruby
tlarevo has joined #ruby
Spami has joined #ruby
HelperW___ has quit [Remote host closed the connection]
Scotteh has quit [Ping timeout: 245 seconds]
aspiers has quit [Ping timeout: 245 seconds]
akshayvishnoi has quit [Quit: akshayvishnoi]
axl_ has quit [Client Quit]
HelperW___ has joined #ruby
baltazore has quit [Remote host closed the connection]
dEPy has joined #ruby
tlarevo_ has quit [Ping timeout: 245 seconds]
lacrymology has quit [Ping timeout: 244 seconds]
sarkis has joined #ruby
GriffinHeart has joined #ruby
badhatter has quit [Remote host closed the connection]
akshayvishnoi has joined #ruby
mengu has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
roolo has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
nfk has joined #ruby
<jhass>
multi_io: the question that comes to my mind is why you need such a sandbox
sarkis has quit [Ping timeout: 245 seconds]
end_guy has joined #ruby
tlarevo has quit [Ping timeout: 272 seconds]
tlarevo has joined #ruby
sgcjhs has quit [Ping timeout: 258 seconds]
Takle has quit [Remote host closed the connection]
sk87 has joined #ruby
fdsnei has joined #ruby
skammer has quit [Ping timeout: 240 seconds]
roolo has quit [Ping timeout: 260 seconds]
<shevy>
txdv I like how you promote my name
sevenseacat has joined #ruby
<shevy>
perhaps one day I'll trademark it, then make a corporation out of me, and then turn it into a religion to evade paying tax like another cult does
<Hanmac>
shevy you mean like apple?
<shevy>
more like scientology
abdulsattar has joined #ruby
<txdv>
the religion of ircbots worshipping shevy
<shevy>
apple had more an iconic guru in charge
sprihodko has joined #ruby
<shevy>
but we have to give it to him - as a designer, steve had good ideas
nfk has quit [Quit: yawn]
<shevy>
or perhaps stole the right ones :)
<abdulsattar>
Hi, can I get the exception variable in inline rescue?
<abdulsattar>
like do_something rescue ex => ex.message
<shevy>
I remember my friend, who studied industrial design, emerging with an iPod when it got out new. I asked him why he bought it, and the main reply was because there were only so few control-buttons
duncannz has quit [Ping timeout: 260 seconds]
<apeiros>
abdulsattar: no
<apeiros>
abdulsattar: you should generally not use inline rescue as you can't properly limit it to specific classes
<shevy>
someone showed this style of code not long ago
<shevy>
def foo
<shevy>
puts 'bla'
<abdulsattar>
apeiros: k, I'll use begin rescue and do it
<shevy>
rescue Yikes
<abdulsattar>
thanks!
<shevy>
puts 'ble'
<shevy>
end
<shevy>
apeiros do you use this style of rescuing?
<apeiros>
shevy: yes. I also paste >3 lines to gist or use ; :-p
angusigu1ss has quit [Ping timeout: 272 seconds]
krisquigley has quit [Remote host closed the connection]
<shevy>
hmm
<shevy>
let's ask the ultimate cruel-syntax code expert
<shevy>
Hanmac, do you use this weirdly indented rescue style?
<abdulsattar>
shevy: I use that style too, saves one level of indentation
oo_ has joined #ruby
mechanicles has quit [Remote host closed the connection]
<Hanmac>
shevy if i can yes
ndrei has joined #ruby
ndrei_ has joined #ruby
mooru has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
vt102 has joined #ruby
ldnunes has joined #ruby
banister has joined #ruby
oo_ has quit [Ping timeout: 245 seconds]
grenierm has quit [Quit: grenierm]
roolo has joined #ruby
arup_r has quit [Remote host closed the connection]
jottr has joined #ruby
cmarques has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
<shevy>
hmm
adironduck has quit [Quit: adironduck]
mooru has joined #ruby
bruno-_ has quit [Ping timeout: 255 seconds]
carraroj has quit [Quit: Konversation terminated!]
terlar has quit [Read error: No route to host]
carraroj has joined #ruby
tlarevo has quit [Remote host closed the connection]
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 255 seconds]
ctp has joined #ruby
jhass is now known as jhass|off
tlarevo_ has joined #ruby
yalue has joined #ruby
krz has quit [Quit: WeeChat 1.0]
kate_r has joined #ruby
bascht has quit [Quit: WeeChat 1.0]
Xeago has quit [Read error: Connection reset by peer]
ndrei_ has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
ndrei has quit [Ping timeout: 255 seconds]
tlarevo_ has quit []
ndrei has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
axl_ has joined #ruby
ndrei_ has joined #ruby
Spami__ has joined #ruby
<fella5s>
I was sad so I had to do this: "get '/:D' do # :D"
Spami__ has quit [Remote host closed the connection]
cmarques has quit [Remote host closed the connection]
SouL has quit [Read error: Connection reset by peer]
axl_ has quit [Client Quit]
<shevy>
omg
lkba has joined #ruby
HelperW____ has joined #ruby
mooru has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
how do you guys memorize .rjust() and .ljust()? I always seem to mix them up ...
mechanicles has quit [Ping timeout: 272 seconds]
<canton7>
'right' and 'left' ;)
mooru has joined #ruby
benzrf|offline is now known as benzrf
Sirupsen has joined #ruby
<boxmein>
arbitrary question, if I require a and then b right after, can b access whatever a defined?
<canton7>
when you right-justify a page of text, everything aligned to the right edge
cirn0 has quit [Ping timeout: 272 seconds]
<canton7>
so rjust must add padding to the left side - i.e. the beginning
<boxmein>
well, right and left justification in those functions should just be adding spaces to the string on the given side until the string length is equal
yetanotherdave has joined #ruby
<shevy>
canton7 aha
<shevy>
I can think I can remember that
agjacome has quit [Quit: leaving]
<shevy>
I push text to a side
<canton7>
just logik ;)
baltazore has joined #ruby
<shevy>
well right-justify is a word my brain can handle better
<shevy>
when I see .rjust I think of righteous knights jousting about
yfeldblum has joined #ruby
<canton7>
hehe
mercwithamouth has quit [Ping timeout: 245 seconds]
<boxmein>
def rjust str, length \n\t str = ' ' + str while str.length < length \n\t str \n end
<shevy>
boxmein yes, in principle if it can access that. Like if they are part of the same namespace
phoo1234567 has joined #ruby
<shevy>
require and load should for almost all purposes be treated as if you'd have written it in a single .rb file
fella5s has joined #ruby
<shevy>
though the ruby parser can be weird sometimes... like x = nil assignments
<boxmein>
shevy: say I made a rakefile, and wanted some tasks to be in a different file
<boxmein>
does require './partials/a.rb' mean that a.rb also has rake in its scope? :D
<shevy>
rakefile use ruby code
<boxmein>
I know
Takle has quit [Remote host closed the connection]
ndrei_ has quit [Ping timeout: 246 seconds]
<boxmein>
that's why I first asked about ruby
<shevy>
what does rake in its scope mean?
ndrei has quit [Ping timeout: 272 seconds]
<shevy>
does rake have its own namespace?
phoo1234567 has quit [Max SendQ exceeded]
<boxmein>
as in, can I use task/file/directory/Rake::* inside partials/a.rb too
<shevy>
or is it on Object
<shevy>
you can load those .rb files
phoo1234567 has joined #ruby
<shevy>
same thing in a ruby gem .gemspec file
gccostabr has quit [Quit: See you later!]
sarkis has joined #ruby
<shevy>
I do that usually to require the version of a gem project
sambao21 has quit [Quit: Computer has gone to sleep.]
aech has quit [Ping timeout: 260 seconds]
mikepack has joined #ruby
nfk has quit [Quit: yawn]
duggiefresh has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
angusigu1ss has joined #ruby
ixti has joined #ruby
ndrei_ has quit [Ping timeout: 272 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dorei has joined #ruby
ndrei has joined #ruby
banister has joined #ruby
ndrei_ has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
kamil has quit [Disconnected by services]
kamilc__ has joined #ruby
ndrei_ has quit [Read error: Connection reset by peer]
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bMalum has quit [Quit: bMalum]
mikepack has quit [Ping timeout: 260 seconds]
momomomomo_ has joined #ruby
masak has quit [Ping timeout: 245 seconds]
momomomomo has quit [Ping timeout: 260 seconds]
momomomomo_ is now known as momomomomo
qmfnp has joined #ruby
spastorino has joined #ruby
IceDragon has joined #ruby
Takle has joined #ruby
nfk has joined #ruby
ndrei has joined #ruby
tjr9898 has joined #ruby
ndrei_ has joined #ruby
angusigu1ss has quit [Ping timeout: 260 seconds]
datreh has quit [Ping timeout: 245 seconds]
corehook_ has joined #ruby
acl_ has quit [Ping timeout: 272 seconds]
skammer1 has joined #ruby
yacks has quit [Remote host closed the connection]
skammer has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
Lewix has quit [Remote host closed the connection]
Photism2 has joined #ruby
zwischenzug has joined #ruby
corehook has quit [Ping timeout: 260 seconds]
<zwischenzug>
hello...anyone here use fish shell?
mechanicles has joined #ruby
krisquigley has joined #ruby
nfk has quit [Quit: yawn]
abuzze_ has quit [Remote host closed the connection]
banister_ has joined #ruby
ged_ has joined #ruby
akshayvishnoi has quit [Quit: akshayvishnoi]
<waxjar>
i do zwischenzug
Takle has quit [Remote host closed the connection]
HashNuke_ has joined #ruby
ionelmc_ has joined #ruby
jxf has joined #ruby
sylvanica has joined #ruby
linojon has joined #ruby
sylvanica is now known as slester
akshayvishnoi has joined #ruby
<zwischenzug>
did you do anything special to get rvm working?
Hightower_ has joined #ruby
Kricir has joined #ruby
aspires_ has joined #ruby
<zwischenzug>
for some reason, gems aren't getting loaded properly when running ruby commands from fish (everything works fine if i run the same commands in bash)
blackmesa has joined #ruby
Snickers1 has joined #ruby
drizz_ has joined #ruby
kriskrop1 has joined #ruby
elfo222_ has joined #ruby
patteh_ has joined #ruby
slash_ni1k has joined #ruby
<waxjar>
i don't use rvm, so i can't help you with that
startupality_ has joined #ruby
pom_dd_ has joined #ruby
<waxjar>
but the scripting language for fish is different and not compatible with bash, you might need some special scripts
Juzdan has quit [Remote host closed the connection]
<zwischenzug>
thanks, i'll check that out
HashNuke_ is now known as HashNuke
centrx has joined #ruby
ionelmc_ is now known as ionelmc
<pagios>
i have 2 yaml files, with some common lines between the 2, is there an easy way of copying the common section of file1 into file2 while leavingthe other section in file2 intact?
ionelmc has quit []
ionelmc has joined #ruby
Vile` has joined #ruby
akshayvishnoi has joined #ruby
ctp has quit [Read error: Connection reset by peer]
ctp has joined #ruby
shackleford has joined #ruby
CookieJar has joined #ruby
shackleford has quit [Client Quit]
tagrudev has joined #ruby
ffranz has joined #ruby
dukz has joined #ruby
choke has joined #ruby
dukz has quit [Remote host closed the connection]
mistergibson has joined #ruby
bMalum has quit [Quit: bMalum]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
GGMethos has joined #ruby
dfish has joined #ruby
djstorm has quit [Read error: Connection reset by peer]
setner has joined #ruby
yxhuvud has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 258 seconds]
abuzze has joined #ruby
<pagios>
for example file1 contains A:1 y:2 z:3 and file2 contains x:1 y:2 z:3 i want to overwrite y and z on file2 by file1 and keep x:1 on file2
bMalum has joined #ruby
<pagios>
for example file1 contains A:1 y:A z:B and file2 contains x:1 y:2 z:3 i want to overwrite y and z on file2 by file1 and keep x:1 on file2
<centrx>
what's wrong with a text editor?
<pagios>
its dynamic data..
Heartbroken has joined #ruby
<pagios>
both files are yaml files..
emocakes__ has quit []
<kevkev>
I'm having trouble with the twitter gem. I get an error from "rescue Twitter::error", but I don't know how to get the error-code from it. Can anybody help me? I'm a bit of a ruby-noob :)
iceden has quit [Read error: Connection reset by peer]
DrForr has joined #ruby
momomomomo has quit [Client Quit]
Takle has quit [Remote host closed the connection]
jobewan has joined #ruby
shevy has joined #ruby
digifiv5e is now known as daynaskully
W0rmDr1nk has joined #ruby
bal has quit [Quit: bal]
daynaskully is now known as digifiv5e
WormDr1nk has joined #ruby
anaeem1 has quit [Remote host closed the connection]
everett has joined #ruby
sarkis has joined #ruby
Guest15298 has quit [Remote host closed the connection]
slash_ni1k is now known as slash_nick
slash_nick has quit [Changing host]
slash_nick has joined #ruby
mrsolo has joined #ruby
kaspergrubbe has quit [Ping timeout: 240 seconds]
angusigu1ss has quit [Ping timeout: 240 seconds]
apeiros_ has joined #ruby
drawingthesun has quit [Ping timeout: 258 seconds]
seitensei has joined #ruby
seitensei has joined #ruby
kayloos has quit [Ping timeout: 244 seconds]
drawingthesun has joined #ruby
blueOxigen has joined #ruby
Smujo has joined #ruby
b00stfr3ak has joined #ruby
ged__ has joined #ruby
justinmcp_ has joined #ruby
mattstratton has joined #ruby
_shrine has joined #ruby
mattstratton has quit [Max SendQ exceeded]
slester1 has joined #ruby
csfranci1 has joined #ruby
kquig has joined #ruby
jxf_ has joined #ruby
mattstratton has joined #ruby
jeremy04_ has joined #ruby
narph has quit [Quit: Connection closed for inactivity]
kquig has quit [Remote host closed the connection]
txdv_ has joined #ruby
timonv^ has joined #ruby
mr-foobar has joined #ruby
silkfox has joined #ruby
Raboo_ has joined #ruby
milkohol_ has joined #ruby
kireevco has joined #ruby
chrisja_ has joined #ruby
bMalum has quit [Read error: Connection reset by peer]
dangerousdave has quit [Ping timeout: 260 seconds]
milkohol has quit [Ping timeout: 260 seconds]
Smujo__ has quit [Ping timeout: 260 seconds]
txdv has quit [Ping timeout: 260 seconds]
jxf has quit [Ping timeout: 260 seconds]
ged_ has quit [Ping timeout: 260 seconds]
vt102 has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 260 seconds]
csfrancis has quit [Ping timeout: 260 seconds]
tenseiten has quit [Ping timeout: 260 seconds]
flagg0204 has quit [Ping timeout: 260 seconds]
justinmcp has quit [Ping timeout: 260 seconds]
_cake has quit [Ping timeout: 260 seconds]
jeremy04 has quit [Read error: Connection reset by peer]
dRbiG has quit [Ping timeout: 260 seconds]
Heartbroken has quit [Ping timeout: 260 seconds]
britneywright has quit [Ping timeout: 260 seconds]
peckermanzzz has quit [Ping timeout: 260 seconds]
soulcake has quit [Ping timeout: 260 seconds]
slester has quit [Ping timeout: 260 seconds]
Caius has quit [Ping timeout: 260 seconds]
magicien has quit [Ping timeout: 260 seconds]
mocfive has quit [Ping timeout: 260 seconds]
sheepman has quit [Ping timeout: 260 seconds]
krisquigley has quit [Ping timeout: 260 seconds]
Raboo has quit [Ping timeout: 260 seconds]
chrisja has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
Raboo_ is now known as Raboo
Takle has joined #ruby
bascht1 has joined #ruby
momomomomo has joined #ruby
ffranz has quit [Excess Flood]
vt102 has joined #ruby
Caius has joined #ruby
timonv_ has quit [Ping timeout: 260 seconds]
britneywright has joined #ruby
Takle has quit [Remote host closed the connection]
baltazore has joined #ruby
flagg0204 has joined #ruby
magicien has joined #ruby
mocfive has joined #ruby
ffranz has joined #ruby
soulcake has joined #ruby
soulcake has joined #ruby
soulcake has quit [Changing host]
jle` has quit [Ping timeout: 260 seconds]
adironduck has quit [Quit: adironduck]
<pagios>
i am getting a param like this: targetKey= params[:keyField] i would like to scan targetKey to see if it starts with the prefix "AAA" how can i do that?
icebourg has joined #ruby
jle` has joined #ruby
<pagios>
s.start_with? "hell
slester1 is now known as slester
<pagios>
?
<centrx>
pagios, yes exactly, assuming it is a string
dRbiG has joined #ruby
bascht has quit [Ping timeout: 245 seconds]
digifiv5e is now known as daynaskully
doritostains has joined #ruby
sheepman has joined #ruby
sk87_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mrsolo has quit [Quit: This computer has gone to sleep]
zorak_ has quit [Ping timeout: 260 seconds]
tvw has quit []
tvw has joined #ruby
baltazore has quit [Ping timeout: 272 seconds]
<hmsimha>
will (File.file? location or File.directory? location) always evaluate to true, assuming location points to some valid operating system entry
patrick99e99 has joined #ruby
<hmsimha>
or might it evaluate to false for, say, hidden files, symlinks, etc.
max06 has quit [Ping timeout: 272 seconds]
<hmsimha>
or devices
hellangel7 has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
jottr has joined #ruby
blackmesa has joined #ruby
DevAntoine has joined #ruby
<DevAntoine>
hi
hamakn has joined #ruby
<DevAntoine>
I'm trying to run some grunt task using yeoman and ruby, and I've got the following error: Error: Command failed: /home/antoine/.rvm/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/bundler-1.7.2/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find blankslate-2.1.2.4 in any of the sources (Bundler::GemNotFound)
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DevAntoine>
so I did: gem install blankslate which installed blankslate 3.1.3, and it's still not working
iceden has joined #ruby
tjr9898 has joined #ruby
<centrx>
hmsimha, Looks like it hinges on the definition of "regular file"
gsd has joined #ruby
<jhass>
DevAntoine: did you run bundle install ?
Heartbroken has joined #ruby
<DevAntoine>
jhass: nop
<jhass>
do so
otherj has quit []
<DevAntoine>
jhass: oh god, it's working. I'm totaly confuse with the ruby environment
tjr9898 has quit [Remote host closed the connection]
<DevAntoine>
jhass: thanks anyway :)
patrick99e99 has quit [Ping timeout: 244 seconds]
xMopxShe- is now known as xMopxShell
mikepack has joined #ruby
speaking1ode is now known as speakingcode-wor
BadQuanta has joined #ruby
CookieJar2 has quit [Ping timeout: 245 seconds]
hamakn has quit [Ping timeout: 260 seconds]
codeurge has quit [Quit: Quit.]
jottr has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
Rollabunna has quit [Quit: Leaving...]
ndrei has quit [Ping timeout: 245 seconds]
ndrei_ has quit [Ping timeout: 272 seconds]
dukz has joined #ruby
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anaeem1 has joined #ruby
oponder has quit [Remote host closed the connection]
shackleford has quit [Remote host closed the connection]
oponder has joined #ruby
mary5030 has joined #ruby
<sparr>
I had to run last night and missed any answers after my last set of questions on this front
yfeldblum has quit [Ping timeout: 245 seconds]
<centrx>
yeah I'm sure we all remember that from last night
<apeiros_>
also, "last night"
hmsimha has quit [Ping timeout: 240 seconds]
apeiros_ is now known as apeiros
<apeiros>
you know, timezones, international channel, stuff like that :)
kiki_lamb has quit [Ping timeout: 246 seconds]
momomomomo has quit [Quit: momomomomo]
Rollabunna has joined #ruby
yacks has joined #ruby
adac has quit [Ping timeout: 245 seconds]
joast has joined #ruby
<sparr>
I'm trying to follow the OSX installation instructions and failing. I've installed libxslt and libxml2 with homebrew, but not libiconv yet since it's not complaining about that yet.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lemur has joined #ruby
Juzdan has quit [Remote host closed the connection]
mechanicles has joined #ruby
Squarepy has quit [Remote host closed the connection]
pasties has joined #ruby
maasha has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
Juzdan has joined #ruby
hamakn has joined #ruby
InhalingPixels has quit [Ping timeout: 258 seconds]
hackujin has joined #ruby
Xeago_ has quit [Remote host closed the connection]
<hackujin>
Is this a good place to get RoR help?
ddfreyne has joined #ruby
<canton7>
#rubyonrails
<hackujin>
thx
hackujin has left #ruby [#ruby]
<shevy>
guys
<shevy>
does one of you remember where google filter failed?
<shevy>
because some reallife guy/gal really had this censored word as part of his real name
<shevy>
I can't remember the article :(
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Paul_McFreely has joined #ruby
<shevy>
I need to cite this to proof that regexes alone aren't a wonder-cure :P
tylersmith has quit [Remote host closed the connection]
silkfox has joined #ruby
<shevy>
*prove rather, I guess
lemur has quit [Ping timeout: 260 seconds]
IceDragon has quit [Ping timeout: 258 seconds]
failshel_ has joined #ruby
IceDragon has joined #ruby
failshell has quit [Read error: Connection reset by peer]
Juzdan has quit [Ping timeout: 272 seconds]
lemur has joined #ruby
W0rmDr1nk has quit [Ping timeout: 240 seconds]
Scotteh has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
haasn has joined #ruby
rostam has quit [Remote host closed the connection]
reset has joined #ruby
Jarboe has quit [Ping timeout: 272 seconds]
banister has joined #ruby
zorak_ has joined #ruby
angusigu1ss has joined #ruby
rostam has joined #ruby
troyready has joined #ruby
Scotteh_ has quit [Ping timeout: 260 seconds]
kate_r has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
<sparr>
How can I get a more verbose explanation of "checking for xmlParseDoc() in -lxml2... no"? I'd like to see what command it's running to determine that.
joonty has quit [Quit: Leaving]
Phrogz_ has joined #ruby
Phrogz_ has joined #ruby
kate_r has joined #ruby
Phrogz_ is now known as Phrogz
lemur has quit [Ping timeout: 272 seconds]
<Phrogz>
/Users/phrogz/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15: stack level too deep (SystemStackError)
<Phrogz>
^^ THAT IS NOT HELPFUL, RUBY.
<shevy>
sparr can't you run the make command manually?
<shevy>
on a linux system, the above line would mean that it checks for a function in the file xml2.so
<Phrogz>
Anyone got tips for finding the backtrace? I've tried instrumenting most every method that I can think that would be involved, and I don't see any recursion or growing.
m4rCsi has quit [Read error: Connection reset by peer]
m4rCsi has joined #ruby
charliesome has quit [Quit: zzz]
<Phrogz>
In my manual instrumentation I was doing puts "#{" "*($depth+=1)}<methodname>" at the start of each method, and .tap{ $depth-=1 } at the end of each, and I never saw it indent more than 5-6 stops. So I must not be instrumenting the correct method.
acalewin has quit [Ping timeout: 272 seconds]
earfin has joined #ruby
<shevy>
god does this lookg ugly
rippa has joined #ruby
<shevy>
I usually do small changes, then test them whether they work
Paradox has quit [Ping timeout: 272 seconds]
<shevy>
when they work, I continue
<shevy>
how did you get to the point of a stack level too deep error in the first place?
SCHAAP137 has joined #ruby
abdulsattar has joined #ruby
kate_r has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
kate_r has joined #ruby
Akagi201 has quit [Remote host closed the connection]
<Phrogz>
I wish I knew. I have suspicions, but… this is a complex system of too-tightly-coupled instances representing abstractions of XML elements. While I have been TDD iteratively adding a test and then implementing it, the last test's implementation was necessarily large, and then it broke a bunch of other tests.
<shevy>
ack
<shevy>
XML
x1337807x has joined #ruby
<Phrogz>
At the end of whack-a-mole fixing, everything worked...until I tried a new document and hit this.
sethen has joined #ruby
deric_skibotn has joined #ruby
emmesswhy has joined #ruby
gwb3 has joined #ruby
kaspertidemann has joined #ruby
emmesswhy has quit [Client Quit]
<Phrogz>
I am using git and checking in religiously, so I could backtrack…but I've done good work mostly, and I need to understand the complex interaction that is making a recursive chain.
yfeldblum has joined #ruby
mistergibson has quit [Read error: Connection reset by peer]
bricker`work has joined #ruby
klmlfl has joined #ruby
aspires_ has quit []
jlebrech has quit []
<Phrogz>
Well, applying that patch (far above) to rvm re-installing 2.0 did not improve the backtrace at all. *sigh*
<Phrogz>
Maybe I'll jruby it.
mistergibson has joined #ruby
gattie has joined #ruby
kate_r has quit [Client Quit]
Zackio has joined #ruby
klmlfl has quit [Read error: Connection reset by peer]
klmlfl has joined #ruby
<Phrogz>
re: "ack XML", FWIW life is substantially better since we switched our product to use XML-based data files instead of binaries. I can actually find, and debug errors in the file format now. If a file gets corrupted by a bug in the authoring environment, it can be hand-fixed.
stunder has joined #ruby
kate_r has joined #ruby
<Phrogz>
Previously when a file was corrupted it was time to throw hands in the air and say "time to revert to the last checkin and start over".
greenarrow has quit [Quit: 500]
skammer1 has joined #ruby
duggiefresh has quit [Remote host closed the connection]
aspires has joined #ruby
<Phrogz>
And, I can write Ruby scripts to do one-off mass changes in the file that would be tedious for the artist to do by hand.
yfeldblum has quit [Ping timeout: 246 seconds]
duggiefresh has joined #ruby
skammer has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
timonv^ has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
Xeago has joined #ruby
kate_r has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
pibby_ has quit [Quit: leaving]
baltazore has quit []
jxf_ has quit [Ping timeout: 272 seconds]
ctp has quit [Read error: Connection reset by peer]
ctp has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
mechanicles has quit []
<Phrogz>
FYI: ruby 2.1.0 has the same lame broken SystemStackError backtrace.
connor_g1odwolf is now known as connor_goodwolf
roolo has quit [Quit: AAAAaaaaAAAAAAA]
<centrx>
same lame dame
michaeldeol has joined #ruby
earfin has quit [Ping timeout: 258 seconds]
wald0 has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
<apeiros>
2.1.*0*?
<apeiros>
what about 2.1.3
Juzdan has joined #ruby
kaspertidemann has quit []
andrewjanssen has joined #ruby
ctp has quit [Read error: Connection reset by peer]
wald0 has joined #ruby
<Phrogz>
apeiros: I dunno; I've been living in 1.9.3 land, and when I asked RVM to install 2.1 it gave me 2.1.3. After JRuby (installing) and Rubinius (rumored to work) I'll return to the mother ship.
ctp has joined #ruby
root3d has joined #ruby
reisl has joined #ruby
yoshie902a has joined #ruby
Kricir has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
tvw has quit []
<Phrogz>
s/2.1.3/2.1.0/ :p
root3d has quit [Changing host]
root3d has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
apeiros has joined #ruby
cocotton has joined #ruby
warreng has quit [Changing host]
warreng has joined #ruby
root3d has quit [Client Quit]
root3d_ has joined #ruby
root3d_ has quit [Client Quit]
fumk has joined #ruby
wallerdev has quit [Quit: wallerdev]
root3d has joined #ruby
<yoshie902a>
I am getting “NoMethodError: undefined method `replace_extension' for File:Class” for : filename = File.replace_extension(filename, '.jpg') if File.extname(filename)=='.pdf' do I need a special require or something?
skammer1 has quit [Ping timeout: 260 seconds]
reisl is now known as larissa
wjimenez5271 has joined #ruby
cirn0 has joined #ruby
acalewin has joined #ruby
<Phrogz>
yoshie902a: You could just do filename = filename.sub(/[^.]+$/,'jpg')
pibby has joined #ruby
<centrx>
yoshie902a, Where is this "replace_extension" defined?
<Phrogz>
(My code assumes the file already has an extension. If the file might not already have an extension, then: filename.sub!( /(?:\.[^.]+)?\z/, '.jpg' )
ndrei has quit [Ping timeout: 245 seconds]
apeiros has quit [Ping timeout: 260 seconds]
Kricir has quit [Ping timeout: 260 seconds]
<Phrogz>
Oh, except you're testing for .pdf already. Nevermind. :)
ghr has quit [Ping timeout: 245 seconds]
cocotton has quit [Ping timeout: 272 seconds]
wald0 has quit [Read error: Connection reset by peer]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
daynaskully has quit [Changing host]
daynaskully has joined #ruby
<Phrogz>
Then you can do: filename.sub!( /\.pdf\z/i, '.jpg' ) # takes care of the 'if' also
root3d has quit [Remote host closed the connection]
Juzdan has quit [Ping timeout: 272 seconds]
bricker`LA has quit [Ping timeout: 272 seconds]
<Phrogz>
WTF, JRuby behaves differently from the rest. That's bunk. Outcast!
<yoshie902a>
nope, nevermind, it behaves differently
shosti has joined #ruby
<Phrogz>
yoshie902a: filename.sub!( /\.pdf\z/i, '.jpg' ) # no extra gems needed
Juzdan has joined #ruby
timgauthier is now known as timgauthier_isaw
Akagi201 has joined #ruby
<yoshie902a>
Phrogz: I’m always careful of using reg ex in these cases b/c sometimes people have wierd names and it breaks
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Phrogz>
Fair enough. Be careful then that whatever library you choose is written to your standards. :)
moted has joined #ruby
ramfjord has joined #ruby
Scotteh has quit [Ping timeout: 260 seconds]
<shevy>
extending core classes of ruby always brings problems when you wish to distribute it
<Phrogz>
So what do you do? Create a '.' string with the same encoding as the filename string, split on that, replace the last chunk if it equals 'pdf' encoded the same way, and then join?
<yoshie902a>
however, if the file does not have an extension name, not that great.
yfeldblum has joined #ruby
<yoshie902a>
jhass: cool, that’s what I was looking for. thanks!
Alex`` has quit [Quit: WeeChat 1.0]
kriskrop1 has quit [Ping timeout: 272 seconds]
AngryEgret has joined #ruby
Akagi201 has quit [Ping timeout: 260 seconds]
<Phrogz>
Well ffuu. Rubinius doesn't have the stack overflow. I wonder if it's slightly larger and my silly logic is somehow just over the MRI limit, but under Rubinius's?
tarcwynne__ is now known as misterflibble
duggiefresh has quit [Remote host closed the connection]
fold has joined #ruby
linojon has quit [Quit: linojon]
<Phrogz>
And, FWIW for apeiros, 2.1.3 has the same problem - it overflows and gives me a bunk error message. Blearg.
<Phrogz>
Perhaps if I make the code less functional-style I can unroll a few layers. *sigh*
nettoweb has quit [Ping timeout: 244 seconds]
Kricir has joined #ruby
Wolland has quit [Remote host closed the connection]
AtumT has quit [Remote host closed the connection]
akshayvishnoi has quit [Quit: akshayvishnoi]
chrishough has quit [Read error: Connection reset by peer]
rdark has quit [Quit: leaving]
chrisja_ has quit [Quit: leaving]
katherinem13 has joined #ruby
<headius>
Phrogz: what did JRuby do differently?
<Phrogz>
headius: I was actually wrong about that. It did the same thing as Rubinius: it ran the code correctly to the next error, without ever experiencing a stack overflow.
sambao21 has quit [Quit: Computer has gone to sleep.]
katherinem13 is now known as kiki_lamb
<headius>
ok :-)
shosti has joined #ruby
arup_r has quit [Quit: Leaving.]
melik has joined #ruby
cndiv has quit [Ping timeout: 245 seconds]
mark_locklear has quit [Quit: Leaving]
arup_r has joined #ruby
jay_ has joined #ruby
shackleford has quit [Ping timeout: 272 seconds]
jay_ is now known as rubyonrailed
peterhu_ is now known as peterhu
webguynow has quit [Ping timeout: 244 seconds]
cndiv has joined #ruby
angusigu1ss has joined #ruby
hiyosi has joined #ruby
Pulpie_ has joined #ruby
duggiefresh has joined #ruby
<Pulpie_>
how can I make a script that has like: a = 'test' an another that requires that script and puts a.
havenwood has joined #ruby
<Pulpie_>
i tried require_relative 'filewithA'; puts a; and it doesn't transfer the variable it seems
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ursooperduper has joined #ruby
endash has joined #ruby
<Hanmac>
Pulpie_: require & load does the local variables file-local as far as i know
loomiatlas has quit [Remote host closed the connection]
pom_dd_ has quit [Ping timeout: 260 seconds]
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_joelsmith has quit [Remote host closed the connection]
britneywright has quit [Remote host closed the connection]
chipotle has joined #ruby
Loomimags has joined #ruby
joelsmith has joined #ruby
p0sixpscl has joined #ruby
cocotton_ has joined #ruby
p0sixpscl has quit [Max SendQ exceeded]
kevkev has joined #ruby
rippa has quit [Read error: Connection reset by peer]
p0sixpscl has joined #ruby
AtumT has joined #ruby
rippa has joined #ruby
cocotton_ has quit [Remote host closed the connection]
dopiee has quit [Remote host closed the connection]
cocotton_ has joined #ruby
agjacome has joined #ruby
britneywright has joined #ruby
sailias has quit [Quit: Leaving.]
linojon has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
<Pulpie_>
"the count took place in rooms that were too big" - Sorry russia not everyone gets pushed into gulag to count votes for your "democracy" in which if you vote against putin you die.
fabrice31 has joined #ruby
dcope has joined #ruby
corehook has quit [Remote host closed the connection]
<dcope>
globbing on a dir is platform dependent?
nanoyak has joined #ruby
<dcope>
im seeing weird ordering issues
<shevy>
hmm
<shevy>
dcope hopefully it is not
cocotton has quit [Ping timeout: 258 seconds]
sailias has joined #ruby
<dcope>
shevy: i'm seeing different ordering on OS X vs Ubuntu
<Pulpie_>
there you go, never rely on the order of anything really.
banister has joined #ruby
<Hanmac>
dcope: the order what dir glob does return in depending on the filesystem below and is not orderd
banister has quit [Max SendQ exceeded]
dx7 has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac>
so you cant trust the order
dx7 has quit [Client Quit]
<dcope>
ok
dx7 has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
<Pulpie_>
just glob, run a sort command and then move on :)
<eam>
well, that's not entirely true. POSIX does specify that glob() is sorted
<eam>
the question is whether you're actually calling glob(3) when you call ruby's glob
banister has joined #ruby
<Pulpie_>
eam: not all OSes are POSIX complient.
fabrice31 has quit [Ping timeout: 258 seconds]
<eam>
likely ruby is simply doing an opendir and filtering on its own and is breaking posix compliance
freerobby has joined #ruby
Swizzy has joined #ruby
<eam>
Pulpie_: of course, but as for relying on cross platform behavior posix is about as good as it gets
<eam>
and this behavior is in fact specificed across platforms as a standard
<graft_>
so you're supposed to extend Struct with NewClass = Struct.new do <some stuff>; end - can you inject modules into that block somehow? should you just do NewClass.extend or something?
<eam>
ruby just isn't honoring it
<Swizzy>
err guys I get a namespace error when I connect to #rails
<eam>
this is where for example sort(1) behavior is specified
<eam>
glob() falls under the same rules
<eam>
I suggest this is a ruby bug
angusigu1ss has joined #ruby
<Pulpie_>
eam: could it just be LC_COLLATE is not the same value?
hiyosi has joined #ruby
Loomimags has left #ruby [#ruby]
<eam>
sure could be
codebaker has joined #ruby
robustus has joined #ruby
banister_ has joined #ruby
<shevy>
Swizzy register. identify on freenode. then do: /j #rubyonrails
banister has quit [Read error: Connection reset by peer]
<Swizzy>
shevy: thanks!
klmlfl has quit [Read error: Connection reset by peer]
Swizzy has left #ruby [#ruby]
jheg has joined #ruby
corehook has joined #ruby
klmlfl has joined #ruby
<Pulpie_>
Linux: LC_COLLATE="en_US.UTF-8"
nanoyak has quit [Quit: Computer has gone to sleep.]
akshayvishnoi has quit [Client Quit]
<Pulpie_>
OSX: LC_COLLATE="lt_LT.UTF-8"
momomomomo has quit [Ping timeout: 260 seconds]
<Pulpie_>
at least in my case
Avahey_ has joined #ruby
<Pulpie_>
dcope: type locale in the console of each machine
klmlfl has quit [Read error: Connection reset by peer]
klmlfl has joined #ruby
fruit_pizza has joined #ruby
angusigu1ss has quit [Ping timeout: 272 seconds]
<dcope>
both are LANG=en_US.UTF-8
<dcope>
i'm seeing different results on two ubuntu machines. pretty strange
<dcope>
even calling sort on the glob
<shevy>
how can this be possible dude
JoshGlzBrk has joined #ruby
chipotle has quit [Quit: cya]
<shevy>
if you have 3 files, "abc", "def", "ghi"
<shevy>
and you have them in an array
<shevy>
tell me that .sort will return different things on different machines
ndrei_ has joined #ruby
ndrei has joined #ruby
BadQuanta1 has quit [Ping timeout: 240 seconds]
<Pulpie_>
sort is specicially a sort method where glob isn't
awc737 has joined #ruby
jxf_ has quit [Ping timeout: 272 seconds]
<Pulpie_>
This is well documented btw: Note that case sensitivity depends on your system (so File::FNM_CASEFOLD is ignored), as does the order in which the results are returned.
<Pulpie_>
yeah make that 2.0.0 someting better like 2.1.3 or 2.0.0-p576
ursooperduper has joined #ruby
Akagi201 has joined #ruby
<shevy>
\o/
klmlfl has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 260 seconds]
<shevy>
one of them must be buggy
<shackleford>
In RVM we have gemsets, what is the equivalent in RBENV?
<shevy>
use russian roulette to determine which one to shoot away
<Pulpie_>
ugh finalizers are so unrelible! D:
klmlfl has joined #ruby
goshdarnyou has joined #ruby
AngryEgret has quit [Remote host closed the connection]
milkohol has joined #ruby
shackleford has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.0]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
bigmac has joined #ruby
shackleford has joined #ruby
havenwood has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
chipotle has joined #ruby
havenwood has quit [Remote host closed the connection]
<claw__>
hey there when i create a instance of Class A which creates multiple instances of Class B is there a way i can access variables of Class A inside Class B?
<claw__>
(instance variables)
havenwood has joined #ruby
wallerdev has joined #ruby
<centrx>
claw__, Pass those variables as options to B.new
<centrx>
claw__, or even pass the entire A instance to it's B
<centrx>
*its
<jhass>
claw__: not without passing A's self into the constructor of B. If you make your case concrete we may be able to suggest a better design
<claw__>
i'll try with self. didn't even thought about it
Akagi201 has quit [Ping timeout: 272 seconds]
<claw__>
sometimes its so easy you cant get it
<claw__>
thank you very much
vinleod has joined #ruby
<jhass>
claw__: it's not very good OO design though
<claw__>
well Class Team has instances of Class Member but member needs to know some parameters passed to Team
<Pulpie_>
is there anyway I can make the garbage collection clean up something before any other object?
<jhass>
still too abstract, what parameters?
<jhass>
and what for?
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<claw__>
Class Match has an array of Class Team instances which have Class Member instances. A Member instance needs to know about the other teams in Match
<shackleford>
nice, ok I will have to look at it... were are the main benefits?
<havenwood>
shackleford: usually Bundler with a Gemfile is all you'll need.
<shackleford>
I see
<havenwood>
shackleford: the usual use case folk point to for gemsets is when you want your personal gems in addition to the bundle, but for some reason don't want to modify the Gemfile
arup_r has quit [Quit: Leaving.]
<shackleford>
so in the case of rails, I would install rails globablly, then create a project and just use that gemfile and bundler?
noop has joined #ruby
a_ has quit [Ping timeout: 244 seconds]
<jhass>
yeah
<havenwood>
shackleford: Bundler handles it all just fine for me.
<shackleford>
perfect... that clears up my confusion
<shackleford>
thanks guys
<havenwood>
shackleford: If you want, you can even have a `Gemfile.local` or whatever and get around Bundler's not thinking that's a good idea: https://github.com/benatkin/local-gemfile#readme
<shackleford>
I'll look into, but bundler seems like the right solution for what I am trying to do
<havenwood>
shackleford: ^ it's just if you want to add gems to the Gemfile but have it in a Gemfile.local that you can add to .gitignore and not commit
W0rmDr1nk has joined #ruby
<havenwood>
shackleford: which kinda defies the point of the bundle
kevkev has quit [Ping timeout: 240 seconds]
edward1338 has joined #ruby
<shackleford>
ahh ok
<edward1338>
hola
<havenwood>
shackleford: i'd suggest trying to not use gemsets
agjacome has quit [Quit: Lost terminal]
Lewix has quit [Remote host closed the connection]
pu22l3r has joined #ruby
pu22l3r has quit [Remote host closed the connection]
dru has joined #ruby
<edward1338>
Hola
pu22l3r has joined #ruby
<resting>
how do i do a select from (1..10).to_a that sums to 5?
teddyp1cker has joined #ruby
<havenwood>
resting: huh?
<havenwood>
edward1338: hi
Phrogz_ has quit [Ping timeout: 272 seconds]
<resting>
i mean to select all elements from 1..10 that sums to 5
chrishough has quit [Read error: Connection reset by peer]
<edward1338>
how are you havenwood
iulianh has joined #ruby
<havenwood>
resting: so what would the result be?
<havenwood>
edward1338: Friday! \o/
<resting>
tried this but its throwing undefined method `inject` for 1:Fixnum
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shackleford>
so I understand what you are saying, but then why do people say rbenv is so great?
ndrei has joined #ruby
<havenwood>
shackleford: chruby!
chrishough has joined #ruby
<shackleford>
I'm used to rvm to begin with
<shackleford>
I'm looking it right now
<havenwood>
shackleford: RVM is tens of thousands of lines of shell, and some people want minimalism and simplicity not convenience and magic.
<shackleford>
chruby that is
ndrei_ has joined #ruby
<shackleford>
I see
jgrevich has joined #ruby
<havenwood>
now if we could just convince rbenv to self-deprecate in favor of chruby like rbfu and ruby-version did...
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
atmosx has joined #ruby
endash has joined #ruby
baltazore has quit [Remote host closed the connection]
<atmosx>
Hello
<havenwood>
hi
bettycla1p has joined #ruby
baltazore has joined #ruby
baltazore has quit [Remote host closed the connection]
wallerdev has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
KC9YDN has quit [Quit: beebop]
davedev24_ has joined #ruby
abdulsattar has joined #ruby
sepp2k has joined #ruby
corehook has joined #ruby
<bettycla1p>
How do I disable a cop in rubocop from the command line? I need to do this for the snake_case cop (which complains about a shebang, and shouldn't so complain). I can't figure out how to disable something from the command line, and even if I did know how to do that, I can't figure out from the git source what full name this cop goes by.
MrL0ngbowman has quit [Ping timeout: 260 seconds]
<shevy>
atmosx I saw Tron Legacy yesterday; I know it's old but I wanted to see how it is
<atmosx>
shevy: and?
<shevy>
to disable a cop, aim at the balls
<shevy>
atmosx well it had good and bad bits... let's see
<atmosx>
heh
teddyp1cker has quit [Remote host closed the connection]
rubyonrailed has joined #ruby
<shevy>
atmosx good parts: I liked the colour theme, and the main music. I also liked the games theme aka programs that fight like gladiators in an arena. The bicycles were awesome... hmm
mattstratton has joined #ruby
Sht0 has joined #ruby
iulianh has quit [Quit: Leaving]
<atmosx>
You're talking about the tr0n film the came out a couple of years back?
<atmosx>
maybe more than a couple
<shevy>
atmosx bad parts: Jeff Bridges animated looked surreal and unreal, that was really bad. The storyline was a joke as well really...
<shevy>
yeah atmosx
<atmosx>
yeah I saw that movie
<atmosx>
for some reason I was expecting something actually worth losing two hours
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
I liked the original one because it was kinda newish
<atmosx>
then I thought that all these movies are basically the same shitty thing (exception is the matrix, blade runner, nirvana)
davedev24_ has quit [Read error: Connection reset by peer]
<shevy>
now blade runner was really cool
<atmosx>
the original was kinda old
ghr has joined #ruby
Dude007 has joined #ruby
davedev24_ has joined #ruby
<atmosx>
yeah becuase it had a *story* and a specific meaning to pass
<shevy>
I even read the book lateron. but the book is really depressing... dystopian malfunctioning society
<shevy>
yeah
<atmosx>
tr0n was just a blockbuster to sell stickers
<shevy>
hehe
<atmosx>
the soundtrack maybe a video game
deric_skibotn has joined #ruby
<bettycla1p>
nevermind
bettycla1p has left #ruby [#ruby]
<shevy>
people love rubocop
ctp has joined #ruby
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
atmosx did you have to rely on rubocop yet?
<shevy>
atmosx I had another guy email me about one of my gems
<atmosx>
nope, no idea what is that. I wrote a piece of code for sidekiq recently
<atmosx>
and chornic
<shevy>
because I again had no documentation :D
<shevy>
rubocop tells you if you have problems in your .rb files
emmesswhy has joined #ruby
<shevy>
syntax mostly, style problems
Tricon has quit [Quit: Leaving...]
<atmosx>
shevy: that's seriously cool, I had only of those moments of self-satisfaction :_P when a guy couldn't install a gem of mine properly.
<atmosx>
shitty gem, but works if you wanna get some f2b stats
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brandonshowers has joined #ruby
<atmosx>
really?
omosoj has joined #ruby
pandaant has joined #ruby
<atmosx>
sounds cool
Akagi201 has joined #ruby
havenwood has quit [Remote host closed the connection]
<shevy>
well
<shevy>
for my style, rubocop is about 5-10% useful, and the rest is useless haha
JoshGlzBrk has joined #ruby
<shevy>
I think it also warns you if you have stuff like this
<shevy>
"end "
havenwood has joined #ruby
<shevy>
in a line
tjbiddle has joined #ruby
<shevy>
and I actually hate that, I dunno why ... so I go and turn it into a "end"
pandaant has quit [Client Quit]
ghr has quit [Ping timeout: 272 seconds]
<shevy>
atmosx yeah, people usually write when something does not work
pandaant has joined #ruby
<shevy>
he discovered a silly bug too
havenwood has quit [Remote host closed the connection]
<shevy>
if File.exist? ENV['DRAGON']+'/grisu'
ramfjord has quit [Read error: Connection reset by peer]
<shevy>
that variable is made up... but logically if someone has not set that env variable, the + will fail
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dcope has quit [Quit: leaving]
<wallerdev>
got my iphone 6
<wallerdev>
soooo amazing
kevkev has quit [Ping timeout: 260 seconds]
<ohwhoa>
doh
<wallerdev>
cant believe apple came up with the great idea of a bigger phone
<wallerdev>
so simple but so smart!
<jhass>
can't tell if serious or not...
<atmosx>
wallerdev: what's so smart about it?
<wallerdev>
someone texted me my phone looks huge, and it suggested a response of a winking face
<wallerdev>
pure genius
AngryEgret has quit [Ping timeout: 272 seconds]
<atmosx>
heh, I might the only person in the world who doesn't give a rat's fart about hardware...
<wallerdev>
so what do you use for irc?
<atmosx>
wallerdev: netcat, I type the command in raw format.
timonv_ has quit [Remote host closed the connection]
<wallerdev>
do you use like the crummiest keyboard and one of those nubs as a mouse?
<atmosx>
wallerdev: lol, you mean hardware? a 2008 iMac
<atmosx>
4GB of ram
chipotle has joined #ruby
timonv_ has joined #ruby
<wallerdev>
wow
Ankhers has quit [Remote host closed the connection]
<wallerdev>
isnt that on ppc still?
<atmosx>
I have an iPhone/iPad/iMac/MBA/mac mini (ppc).
<atmosx>
wallerdev: not really, it's intel, has an ssd 256 on it..
sailias has joined #ruby
<atmosx>
works great for me
cirn0 has joined #ruby
<wallerdev>
wow
<wallerdev>
ssd 256 in 2008?
<wallerdev>
how
fabrice31 has joined #ruby
<wallerdev>
wouldnt that be like $5000 alone lol
<jhass>
it's not an iphone
<atmosx>
the ssd was last years addition IIRC
<jhass>
turns out you can upgrade proper hw
<wallerdev>
ah i didnt know you could upgrade imacs!
<jhass>
but no, why would you need to be able to even change the battery in those shiny new stuff
kidoz has quit [Quit: Ухожу я от вас]
<wallerdev>
anyway i dont know how anyone uses a bigger phone than this
<wallerdev>
even for me its hard to hit the top left with this size
<jhass>
it's called "tablet"
<wallerdev>
nah they make phones bigger than the regular iphone 6
<atmosx>
I think Galaxy has a huge one
chipotle has quit [Ping timeout: 258 seconds]
jottr_ has joined #ruby
<atmosx>
I like big screens in phones
<jhass>
you can use a tablet, no?
timonv_ has quit [Ping timeout: 240 seconds]
<atmosx>
but I'll keep my iPhone 5 at least as long as I can't upgrade it anymore
<wallerdev>
not one handed lol
<jhass>
there you have your answer
<atmosx>
as for my iMac if I reach the point where 6GB of ram aren't enough, I might just plant linux + wm (wm3, awesome, etc.) on it and get over with.
<wallerdev>
i guess you never use your phone while carrying something if you go that route
<wallerdev>
seems kind of annoying lol
<atmosx>
?
<atmosx>
you take your phone when diving too?
<wallerdev>
well i dont have a car
<jhass>
no, I don't use my phone when carrying something in the other hand, beyond time checking maybe
<wallerdev>
oh diving?
<wallerdev>
i dont dive lol
cirn0 has quit [Ping timeout: 260 seconds]
fabrice31 has quit [Ping timeout: 260 seconds]
timgauthier has joined #ruby
<atmosx>
you should
<atmosx>
it's nice
timgauthier has quit [Max SendQ exceeded]
nanoyak has quit [Quit: Computer has gone to sleep.]
<atmosx>
snowboarding and diving are awesome things
iamjarvo has joined #ruby
ht__th has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 272 seconds]
<wallerdev>
ive gone snorkeling
InhalingPixels has quit []
jottr_ is now known as jottr
jko has joined #ruby
jko has quit [Remote host closed the connection]
jko has joined #ruby
cocotton_ has quit [Remote host closed the connection]
Phrogz_ has joined #ruby
cocotton has joined #ruby
fsapo has quit [Remote host closed the connection]
<atmosx>
snorkeling is cool too.
<atmosx>
Especially in Greek islands, I love it
tjbiddle has quit [Ping timeout: 258 seconds]
<atmosx>
but nearby the sea is acceptable too.
<wallerdev>
i went in cabo san lucas i think
cocotton_ has joined #ruby
<atmosx>
where's that?
cocotton has quit [Read error: Connection reset by peer]
<wallerdev>
mexico
<atmosx>
Ah never been in Mexico :-( in America actually.
<atmosx>
I've only bean in China outside EU so far.
<wallerdev>
ive never been to china
<wallerdev>
never really had a desire to go there
Scotteh has joined #ruby
jko has quit [Ping timeout: 246 seconds]
skip_freely has quit [Quit: skip_freely]
aclearman037 has quit []
marr has joined #ruby
Phrogz_ has quit [Ping timeout: 272 seconds]
jko has joined #ruby
BTRE has quit [Quit: Leaving]
<atmosx>
wallerdev: it's a scary experience.
lemur has joined #ruby
kaspergrubbe_ has joined #ruby
<atmosx>
wallerdev: was maybe the first itme in my life where the idea of being lost around the city, scared me. I couldn't read any sort of latin or slavic derivative anywhere...
doritostains has quit [Quit: doritostains]
<atmosx>
it was kinda cracy. You couldn't tell for sure where words started or ended.
Vile` has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
<momomomomo>
uploaded a while ago to some random reddit
cocotton has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
lemur has joined #ruby
xcyclist has joined #ruby
<atmosx>
momomomomo: that can't be you
<momomomomo>
why, because I’m holding a beach bag for my nieces?
treehug88 has quit [Ping timeout: 272 seconds]
<xcyclist>
what is the online doc URL guys? Google is sending me to useless places and I need the reference manual that has things like += defined in it.
<shevy>
it's more like an internal constant that is always the same
babykosh has joined #ruby
<xcyclist>
Okay, but def mymethod { :symbol unless false } would always return :symbol then.
<shevy>
xcyclist as it is the last value, it will be returned. but there also is an unless condition check, so if that is wrong, the line before that will be returned I assume (or perhaps simply false, but we can find out by testing in irb)
<shevy>
but to be honest, that strikes me as a weird way to code
<xcyclist>
Ok. Thanks. Sometimes I just want my sanity checked. Very helpful.
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
because that method seems to return either a symbol, or a boolean value, or just nil. well ok, probably he wants to check nil and a symbol ... but still
<xcyclist>
I am reading someone else's code, and just need to know it works right. I don't need to act that way.
mrsolo has quit [Quit: Leaving]
wallerdev_ has joined #ruby
mattstratton has joined #ruby
<shevy>
well you want your sanity checked
<shevy>
don't read too much code written by others, your sanity could get lost ;)
ramfjord has quit [Ping timeout: 244 seconds]
ohwhoa has quit [Quit: woah!]
<xcyclist>
D'accord.
wallerdev has quit [Ping timeout: 272 seconds]
wallerdev_ is now known as wallerdev
<shevy>
I can't believe that .zip is so shitty, I was using this all my days on windows :(
mattstratton has quit [Client Quit]
cirn0 has quit [Ping timeout: 260 seconds]
preyalone has joined #ruby
sarkis has joined #ruby
<sarkis>
hey all, what's the right way to do this? <%= '/usr/bin/nice -n ' + niceness.to_s + ' ' if defined?(niceness) %>
<sarkis>
thats in an erb template, niceness is not always defined
<sarkis>
so i don't want it to fail out if it isn't
<sarkis>
that's not working even if it is defined :(
<shevy>
what does this do
<shevy>
it seems to build a string
dc has joined #ruby
<sarkis>
ya supposed to just put that string in the template im using it in
bigmac has joined #ruby
<sarkis>
<%= does that no?
slester has joined #ruby
<shevy>
I have no idea about erb
<shevy>
if I ignore those ugly erb tags, your code seems to either build a string, or it does not
Scotteh_ has quit [Read error: Connection reset by peer]
<shevy>
what should happen if we ignore erb for a moment?
<sarkis>
let me check
Scotteh_ has joined #ruby
<shevy>
because to be honest
<shevy>
you will rarely need to use defined?
Phrogz_ has joined #ruby
<shevy>
so perhaps just say what your string should look like