<shevy>
osx5 the biggest difference between ruby and python is the philosophy, look at the link I gave you, then also read the zen of python, then you will know which language to pick
zorak has joined #ruby
<osx5>
It's still wanted around my area
<shevy>
perl is used by fossil coders
<popl>
shevy: some people tend to stick with a language, I guess. It's strange but I don't think it means I dislike other languages.
<shevy>
yeah
m4n1f3st0 has quit [Ping timeout: 252 seconds]
<shevy>
I could probably switch to python
papercode has quit [Quit: WeeChat 0.4.3]
<shevy>
but I can't say if it would be worth a switch
<popl>
I just have to listen to a lot of shit in different IRC channels hating on all the languages I like for various reasons.
<shevy>
popl which languages do you like?
<osx5>
popl: At least you understand it
<popl>
Since people cannot be reasonable and must have a personal vendetta against whatever they're bitching about. :P
<shevy>
is it php
<popl>
shevy: I like a lot of a different languages.
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
<shevy>
I knew it
<popl>
shevy: Nope.
<popl>
I can write in PHP though.
havenwood has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
m4n1f3st0 has joined #ruby
LexicalScope has joined #ruby
pigzzcanfly has joined #ruby
<popl>
I think there's a part of me that likes (at least a little) most of the programming languages I've ever used.
sambao21 has joined #ruby
JBreit has joined #ruby
<shevy>
osx5 popl is a good man, there is not much hate in his heart
<popl>
Because I like programming I think.
<popl>
shevy: not unless I flip the Machiavelli switch. ;P
JBreit has left #ruby [#ruby]
supermarin has quit [Quit: Computer has gone to sleep.]
<shevy>
Machiavelli is good for thinking and it's good to be able to do evil yet then decide to not want to do evil
weems has quit [Read error: Connection reset by peer]
<platzhirsch>
I go to bed now. Thanks for listening to my unfortunate encounter with humanity
<popl>
platzhirsch: I'd say that was inhumanity.
<shevy>
platzhirsch don't forget the reallife date!
sambao21 has quit [Client Quit]
<platzhirsch>
and get sucked punched and robbed?
<shevy>
platzhirsch also write back and say you answer 50% of the questions but expect that she answers as well to you
<combusean>
what does ls -ld /home/ezra/.rvm/gems/ruby-2.1.0/gems/github-markup-1.1.0 look like?
<combusean>
the -R makes it recursive
<combusean>
i suspect you somehow have a bad permission in some deep dir entry in your ~/.rvm
eov has joined #ruby
<Guest31606>
wow, ur right. they are owned by root
aspires has joined #ruby
narcan has quit [Remote host closed the connection]
glanzi has quit [Quit: Leaving...]
narcan has joined #ruby
<havenwood>
rvm fix-permissions
atno has quit [Remote host closed the connection]
mrmargolis has joined #ruby
<combusean>
ahh
<combusean>
didn't realize that command existed havenwood =)
saarinen has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
toastyne_ has quit [Remote host closed the connection]
<Guest31606>
havenwood: OoOoOo :)
atno has joined #ruby
toastynerd has joined #ruby
<eov>
Hi guys, ruby noob here. In the same program I compare the efficiency(timing) of two sorting algos. Their input is a randomly generated array. The issue: Once processed by one sorting algo, the second deliver a very fast result like there was some sort of cache. Is their such possibility ?
<Guest31606>
combusean: thanks for ur help :)
<combusean>
no problem.
Jeticus has quit [Ping timeout: 246 seconds]
zachallett has quit [Remote host closed the connection]
psyko666 has joined #ruby
Es0teric has quit [Ping timeout: 255 seconds]
rm_ has joined #ruby
s2013 has quit [Ping timeout: 246 seconds]
zachallett has joined #ruby
<havenwood>
eov: Instantiate a Class with an instance variable storing the sorted Array.
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
weems has joined #ruby
Es0teric has joined #ruby
toastynerd has quit [Ping timeout: 255 seconds]
rylev has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
<eov>
havenwood: I'll give it a try. Thx
tcstar has quit [Ping timeout: 240 seconds]
aspires has quit []
rm_ has quit [Ping timeout: 246 seconds]
zachallett has quit [Ping timeout: 255 seconds]
<havenwood>
eov: then maybe an attr_reader for that instance variable
<havenwood>
eov: np
emaxi has quit [Remote host closed the connection]
<popl>
combusean: you use script to record interactions with the shell. then you can demonstrate it to somebody else or replay it later to accomplish some task
hamakn has quit [Remote host closed the connection]
<benzrf>
terminal, even
<popl>
point
<combusean>
ohh
<combusean>
benzrf@benzrf-laptop:~/quick_example/quick_fuse_fs/Foo$ vim some_methods.rb
sqwirl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
richardjortega has quit [Quit: richardjortega]
amskah has quit [Quit: Leaving]
zorak has quit [Read error: Connection reset by peer]
azkah has joined #ruby
zorak has joined #ruby
porco has joined #ruby
some1else has quit []
jorts has quit [Quit: jorts]
tcstar has quit [Ping timeout: 240 seconds]
francisfish has joined #ruby
_sambao21 has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
<BraddBitt>
ugh
<BraddBitt>
the sketch is just so painfully accurate benzrf
<BraddBitt>
even with how over-the-top it is
<combusean>
motherfuckers
<combusean>
benzrf, fuse is kinda broken on os x
<combusean>
with brew
nisstyre has joined #ruby
francisfish has quit [Ping timeout: 240 seconds]
<benzrf>
>tfw
<benzrf>
BraddBitt: yeah
<benzrf>
i find it hard to watch
<combusean>
benzrf, what is >tfw?
saarinen has quit [Quit: saarinen]
<benzrf>
that feel when
<benzrf>
its chanspeak
<havenwood>
combusean: trans field warp
<BraddBitt>
lmao
<benzrf>
it has infected my brain
<benzrf>
:(
<combusean>
oh
<combusean>
i'm a redditor :P
<benzrf>
i dont even like 4chan much
<benzrf>
nor do i visit it often
<combusean>
before that was a slashdotter
<centrx>
benzrf has been absorbed into reddit/4chan land
<benzrf>
it's just worked its way into my automatic vocab
<benzrf>
D:
<combusean>
lol
<benzrf>
>tfw greentexting in irc
<centrx>
Whole society is being absorbed by reddit/4chan
<combusean>
uhh
<benzrf>
christ the internet is awful
<combusean>
that is a narrow definition of whole society centrx :P
<centrx>
benzrf = whole society
<centrx>
QED
<benzrf>
kek
<combusean>
lol
<benzrf>
reddit ruined my life AMA
<popl>
This sure looks a lot like 4chan…
<selina345>
lol
<benzrf>
tbh reddit has probably actually been a good thing for me
<centrx>
Even digg destroyed by reddit/4chan
<popl>
Or at least a cross between 4chan and a text conversation between my niece and one of her friends.
<combusean>
digg destroyed itself
<combusean>
it was a giant scam, and that's why people left.
<benzrf>
cuz the metasphere that jerks about all of its awful parts made me realize my own issues with those awful parstg
<benzrf>
i fit the neckbeard personality profile to a t
<benzrf>
close one o.o
<popl>
It's like horoscopes, benzrf.
* combusean
fits no personality.
<benzrf>
yea?
<combusean>
i thought i was unique in phoenix, then I came to SF
<popl>
I'm sure non-tech savvy folks fit the "profile" you're thinking of too.
<benzrf>
oh im not saying its rare
mattmcclure has joined #ruby
<benzrf>
im just saying
<selina345>
combusean: i wanna be inSFFFF
<selina345>
:(
<selina345>
sobad
<benzrf>
like 90% of the threads ive seen on circlebroke dissecting the mentality of the typical redditor and why reddit is so awful because of those parts
<benzrf>
fit me perfectly
<popl>
any (well, ok most) guys can get lazy and grow a beard.
<combusean>
selina345, privmsg me about it, i like helping people come to SF
<selina345>
for reals
<selina345>
k
<BraddBitt>
man
<popl>
benzrf: I guess an agent of change can be a good thing, in any guise.
<benzrf>
mhm
dapz has joined #ruby
<BraddBitt>
i wish you could do parallel assignment in a ternary operator
<werdnativ>
Still I suspect there's a more direct way...
emaxi has joined #ruby
_sambao21 has quit [Quit: Computer has gone to sleep.]
* benzrf
shrugs
Dysruption has joined #ruby
<krz>
i have an array of hashes in a file. https://gist.github.com/8d8cc514ad4d6b7571d5 assigns the values of each line to var h. but it seems like its escaping each character. how do i assign the values as is?
<benzrf>
fiiiine i guess ill have to write my own version w/ ruby_parser
<benzrf>
[insert blackjack & hookers meme here]
<werdnativ>
ruby_parser or such is a better idea. If you're gonna eval then be explicit about it.
<arubin>
benzrf: What is your objection to the way that this is done?
<benzrf>
it is poor
<benzrf>
for 1
<benzrf>
it uses regex
<benzrf>
;-;
<werdnativ>
I guessed regex + eval before even looking ;-)
<arubin>
At some level, do most parsers not use regex eventually?
<arubin>
werdnativ: It uses eval for one case where it has already checked input.
<werdnativ>
arubin: not really. usually a stack that you push tokens onto.
porco has quit [Quit: Leaving...]
<arubin>
werdnativ: Yes, but how do you split into tokens?
x77686d has quit [Quit: x77686d]
arietis has quit [Quit: Computer has gone to sleep.]
x77686d has joined #ruby
<benzrf>
> 12:55 < arubin> At some level, do most parsers not use regex eventually?
<werdnativ>
read bytes. Fundamentally you're right that you scan the input, but it's typically not a "general" regex parser but one that's designed for the things you need.
<benzrf>
u have lost 1 respect point
<jarray52>
I'm getting a seg fault while using the Ruby debugger. The problem does not occur if I'm not using the Ruby debugger.
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jarray52>
What's the best way to proceed with discussing this issue?
Dysruption has quit [Quit: Dysruption]
<benzrf>
arubin: ill have u know i made a vaguely Parsec-like mini parser lib for fun once
x77686d has quit [Client Quit]
<benzrf>
it was FULLY FUNKSHUNAL
<benzrf>
without ur goddamn regex
<benzrf>
k??
<werdnativ>
jarray52: what version of ruby, what debugger? There are various incompatible combos.
<jarray52>
werdnativ: This occurs in a Rails application. Does ruby-2.1.1 completely specify the sourcecode? (the patch numbers are no longer there. I haven't read up on the new versioning system.)
<arubin>
werdnativ: And yes, the Jim Weirich talk on the Y-Combinator did help me to understand it.
<arubin>
Not that I could write it from memory.
<arubin>
combusean: I am fairly certain that we are being treated to some Haskell.
<werdnativ>
ultimate kata
<combusean>
oh
* combusean
bans benzrf
burgess|vayo has joined #ruby
<benzrf>
>mfw haskell bigots
<arubin>
Haskell is one of those languages where I cannot understand most code just by looking at it.
<combusean>
mfw?
<combusean>
your chanspeak ...
<arubin>
Especially when it is written in the point free style.
Bumptious has quit [Remote host closed the connection]
<arubin>
One day I will correct this, but it is far down my list.
<combusean>
i do not know haskell
Bumptious has joined #ruby
braincra- has joined #ruby
dh64 has joined #ruby
<arubin>
benzrf: Do you visit ##programming? Several people there enjoy beating everyone over the head with Haskell.
crodas has quit [Remote host closed the connection]
crodas has joined #ruby
* werdnativ
goes down the rabbit hole
Bumptious has quit [Remote host closed the connection]
yacks has joined #ruby
<benzrf>
arubin: :-)
aagdbl has joined #ruby
Bumptious has joined #ruby
<benzrf>
werdnativ: do u know ur functors
andy__ has quit [Remote host closed the connection]
<werdnativ>
nope. I'm not deep into f.programming.
<benzrf>
they are an abstraction for things whose insides you can run functions over
<benzrf>
basically anything where...
<benzrf>
class Functor f where fmap :: (a -> b) -> f a -> f b
kitak has quit [Remote host closed the connection]
braincrash has quit [Ping timeout: 246 seconds]
<benzrf>
given a func from a to b and a value of type 'f a' (i.e. f parameterized with a), fmap returns something of type 'f b'
<benzrf>
if f is []/List, that's
<benzrf>
(a -> b) -> [a] -> [b]
<benzrf>
aka map
<benzrf>
if f is Maybe, that's
<benzrf>
(a -> b) -> Maybe a -> Maybe b
<benzrf>
aka apply-if-not-null
<arubin>
benzrf: Perhaps it is just me, but the Haskell code makes most of this rather difficult to understand.
<benzrf>
if f is ((->) a), aka (a ->)
<benzrf>
you get
<benzrf>
wait
<benzrf>
if f is ((->) r), aka (r ->)
<benzrf>
u get
Morkel has joined #ruby
evenix has quit [Remote host closed the connection]
<benzrf>
(a -> b) -> (r -> a) -> (r -> b)
<benzrf>
aka composition!
evenix has joined #ruby
<benzrf>
mother
<benzrf>
fuckin
<benzrf>
functors
<arubin>
Now in Ruby.
ekinmur has joined #ruby
ekinmur has quit [Excess Flood]
<benzrf>
ruby has no type system =[
ekinmur has joined #ruby
<benzrf>
and no ADTs
<benzrf>
and no typeclasses.
<benzrf>
this gon be hard
ekinmur has quit [Excess Flood]
AlexRussia has quit [Read error: Operation timed out]
<arubin>
Ruby has a type system.
<werdnativ>
watching the video, but I'm curious if you can show this in ruby benzrf
MatthewsFace has quit [Ping timeout: 246 seconds]
apeiros_ has joined #ruby
rtlong has quit [Ping timeout: 245 seconds]
Mars` has quit [Ping timeout: 245 seconds]
evenix has quit [Ping timeout: 253 seconds]
<benzrf>
:\
ekinmur has joined #ruby
<benzrf>
kk 1 second
<benzrf>
class Array
<benzrf>
alias_method :fmap, :map
<benzrf>
end
jimeh has quit [Ping timeout: 245 seconds]
G has quit [Ping timeout: 245 seconds]
ekinmur has quit [Excess Flood]
<benzrf>
^fmap on arrays!
<benzrf>
class NilClass
<benzrf>
def fmap; self; end;
<benzrf>
no wai
<apeiros_>
benzrf: uh, I thought I had pushed a change where constant lookup was disabled by default :-S
ryanuber has quit [Ping timeout: 245 seconds]
MatthewsFace has joined #ruby
SegFaultAX has quit [Ping timeout: 264 seconds]
omegahm has quit [Ping timeout: 264 seconds]
<apeiros_>
the eval *should* be safe as it's whitelisted. but *should* is still only a *should*. deep const get sadly is a good bit slower than eval. not sure I should offer it as an option.
ekinmur has joined #ruby
ekinmur has quit [Excess Flood]
angelixd has quit [Ping timeout: 264 seconds]
G has joined #ruby
<benzrf>
class NilClass
<benzrf>
def fmap(&_); self; end;
<benzrf>
end
<benzrf>
class Object
<benzrf>
def fmap; yield self; end;
<benzrf>
end
<benzrf>
^fmap for Maybe
<benzrf>
class Proc
<benzrf>
def fmap(&other)
<benzrf>
class Proc
<benzrf>
def fmap(&other)
<benzrf>
proc {|v| other.call(self.call(v))}
<benzrf>
end
<benzrf>
end
<benzrf>
^fmap for procs
lbwski has quit [Ping timeout: 264 seconds]
apeiros has quit [Ping timeout: 240 seconds]
ekinmur has joined #ruby
angelixd has joined #ruby
browndawg has joined #ruby
SolarSailor has quit [Ping timeout: 240 seconds]
kitak has joined #ruby
jimeh has joined #ruby
timonv has quit [Remote host closed the connection]
ryanuber has joined #ruby
rtlong has joined #ruby
Mars` has joined #ruby
lbwski has joined #ruby
SegFaultAX has joined #ruby
monkegjinni has joined #ruby
francisfish has joined #ruby
ekinmur has quit [Client Quit]
mostlybadfly has quit [Quit: Connection closed for inactivity]
JBreit has joined #ruby
derek_c has joined #ruby
IceDragon has quit [Quit: Space~~~]
francisfish has quit [Read error: Operation timed out]
<benzrf>
>tfw functors
tonni has quit [Remote host closed the connection]
JBreit has left #ruby [#ruby]
browndawg has quit [Quit: Leaving.]
armyriad has joined #ruby
weems has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Remote host closed the connection]
tagrudev has joined #ruby
<miah>
apeiros_: yes that is i
emaxi has quit [Read error: Connection reset by peer]
<apeiros_>
benzrf: I'll check this evening what happened to my change with optional constant resolution. after all, it was a main point of literal parser, not to use eval.
mattmcclure has quit [Quit: Connection closed for inactivity]
davidmles has left #ruby [#ruby]
sdouglas has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
Lewix has joined #ruby
jlebrech has joined #ruby
jokke1 has quit [Disconnected by services]
jokke1 has joined #ruby
phansch has joined #ruby
AlSquire has joined #ruby
Mon_Ouie has joined #ruby
jokke has quit [Quit: WeeChat 0.4.3]
jokke1 has quit [Client Quit]
jokke has joined #ruby
greenarrow has joined #ruby
jottr_ has joined #ruby
Dr3amc0d3r|away has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Quit: ciao.]
Xeago_ has quit [Remote host closed the connection]
shashank_rs has quit [Read error: Operation timed out]
dumdedum has quit [Ping timeout: 252 seconds]
jollyy has joined #ruby
Dr3amc0d3r|away has joined #ruby
mikecmpbll has joined #ruby
ndrei has quit [Remote host closed the connection]
obs has joined #ruby
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
timonv has quit [Remote host closed the connection]
anarang has quit [Ping timeout: 255 seconds]
timonv has joined #ruby
rahult is now known as rahult_
rahult_ is now known as rahult
timonv has quit [Read error: Connection reset by peer]
Bish_ is now known as Bish
timonv has joined #ruby
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
ndrei has joined #ruby
weems has joined #ruby
brucelee has quit [Ping timeout: 240 seconds]
m0s is now known as m0s^away
greenarrow has quit [Quit: 500]
obs has quit [Quit: Konversation terminated!]
greenarrow has joined #ruby
obs has joined #ruby
peterellisjones has joined #ruby
agjacome has joined #ruby
Xeago has joined #ruby
gaussblurinc has joined #ruby
Zai00 has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CaptainJet has joined #ruby
anarang has joined #ruby
helpa has quit [Remote host closed the connection]
dumdedum has joined #ruby
fluve has quit []
Radar has quit [Ping timeout: 246 seconds]
crazysim has quit [Ping timeout: 246 seconds]
nari has quit [Ping timeout: 264 seconds]
helpa has joined #ruby
quantsini has quit [Ping timeout: 255 seconds]
erichmenge has quit [Ping timeout: 240 seconds]
DouweM has joined #ruby
narcan has quit [Ping timeout: 246 seconds]
n88 has quit [Ping timeout: 240 seconds]
zastern has quit [Ping timeout: 240 seconds]
jericon has quit [Ping timeout: 240 seconds]
Radar has joined #ruby
quantsini has joined #ruby
crazysim has joined #ruby
jericon has joined #ruby
erichmenge has joined #ruby
mbuf has joined #ruby
pedda has joined #ruby
<mbuf>
is there a way to install a list of dependency gems for a rubygem using 'gem or bundle install'?
klaut has quit [Remote host closed the connection]
narcan has joined #ruby
Xeago has quit [Remote host closed the connection]
ikaros has joined #ruby
Shidash has joined #ruby
Xeago has joined #ruby
n88 has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
nhhagen has quit [Remote host closed the connection]
thomasxie has quit [Quit: Leaving.]
blackmesa has joined #ruby
<apeiros>
mbuf: bundler writes all dependencies into Gemfile.lock
mehlah has quit [Quit: Leaving...]
Xeago_ has joined #ruby
<mbuf>
apeiros, if I have a hola-0.0.1.gem, will 'gem install' ensure listing all the dependencies?
<mbuf>
apeiros, or they will need to be listed in the .gemspec?
Xeago has quit [Ping timeout: 252 seconds]
tacos1de has quit [Ping timeout: 265 seconds]
thomasxie has joined #ruby
sski has joined #ruby
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
CaptainJet has quit []
Speed has joined #ruby
tacos1de has joined #ruby
brucelee has joined #ruby
andikr has joined #ruby
Xeago_ has quit [Remote host closed the connection]
nari has joined #ruby
Martxel_ has joined #ruby
Jetchisel has joined #ruby
jollyy has quit [Ping timeout: 240 seconds]
krandi has joined #ruby
burgess|vayo has joined #ruby
rahult has joined #ruby
krandi has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andikr has quit [Remote host closed the connection]
andikr has joined #ruby
Xeago has joined #ruby
shredding has quit [Quit: shredding]
Xeago has quit [Remote host closed the connection]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
azkah1 has quit [Read error: Connection reset by peer]
maximski has joined #ruby
jollyy has joined #ruby
fella7s has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
shredding has joined #ruby
Johnny has quit [Quit: Leaving]
obs_ has joined #ruby
Macaveli has joined #ruby
burgess|vayo has quit [Quit: ^zzz]
ndrei has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
obs_ has quit [Client Quit]
Hanmac has joined #ruby
sensen has quit [Ping timeout: 252 seconds]
_justin has quit [Quit: _justin]
brucelee has quit [Ping timeout: 240 seconds]
Hanmac1 has quit [Ping timeout: 255 seconds]
_justin has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
blackmesa has quit [Quit: WeeChat 0.4.3]
Hanmac1 has joined #ruby
ndrei has joined #ruby
mengu has quit [Remote host closed the connection]
armyriad has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonno11 has joined #ruby
jollyy has quit [Quit: jollyy]
vlad_starkov has joined #ruby
nhhagen has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
arietis has joined #ruby
kevinykchan has joined #ruby
kaspergr_ has quit [Ping timeout: 240 seconds]
francisfish has quit [Remote host closed the connection]
funburn has joined #ruby
nari has quit [Ping timeout: 240 seconds]
francisfish has joined #ruby
Jetchisel has quit [Ping timeout: 260 seconds]
rahult is now known as rahult_
Martxel_ is now known as Martxel
thomasxie has quit [Remote host closed the connection]
<crome>
hey humans, does anyone use a non-macbook air ultrabook?
papercode has joined #ruby
psyko666 has joined #ruby
papercode has quit [Client Quit]
shaileshg has quit [Quit: Connection closed for inactivity]
funburn has quit [Quit: funburn]
<danijoo>
@crome yeah, why u ask?
Martxel has quit [Ping timeout: 255 seconds]
kennym has joined #ruby
Hanmac has joined #ruby
jamto11 has joined #ruby
nvrch has quit [Quit: nvrch]
Hanmac1 has quit [Ping timeout: 253 seconds]
fabrice31 has quit [Remote host closed the connection]
ivangood has quit [Remote host closed the connection]
Port3M5[Work] has quit [Remote host closed the connection]
aagdbl has quit [Quit: This computer has gone to sleep]
aagdbl has joined #ruby
jamto11 has quit [Ping timeout: 246 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
cover has joined #ruby
Port3M5[Work] has joined #ruby
yfeldblum has quit [Remote host closed the connection]
mgomezch has joined #ruby
yfeldblum has joined #ruby
rylev has quit [Remote host closed the connection]
jollyy has joined #ruby
arnis has quit [Read error: Operation timed out]
mengu has joined #ruby
dukz has joined #ruby
arnis has joined #ruby
francisfish has quit [Remote host closed the connection]
Macaveli has quit [Quit: Leaving]
fgo has joined #ruby
banister has joined #ruby
claymore has quit [Ping timeout: 255 seconds]
francisfish has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
rylev has joined #ruby
rylev has quit [Remote host closed the connection]
claymore has joined #ruby
mbuf has quit [Ping timeout: 240 seconds]
rylev has joined #ruby
vlad_sta_ has joined #ruby
Speed has quit [Ping timeout: 240 seconds]
aagdbl has quit [Quit: This computer has gone to sleep]
rahult_ is now known as rahult
Hanmac has joined #ruby
rahult is now known as rahult_
ixti has joined #ruby
ndrei has quit [Remote host closed the connection]
rahult_ is now known as rahult
fella7s has quit [Ping timeout: 246 seconds]
ctp has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
aagdbl has joined #ruby
sensen has joined #ruby
fella7s has joined #ruby
maximski has quit []
maximski has joined #ruby
rylev has quit [Read error: Connection reset by peer]
rylev has joined #ruby
ctp has quit [Client Quit]
sski has quit [Remote host closed the connection]
charliesome has joined #ruby
Bish has quit [Excess Flood]
sski has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
maximski has quit [Ping timeout: 252 seconds]
mbuf has joined #ruby
_justin has quit [Quit: _justin]
anarang has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
aagdbl has joined #ruby
Bish has joined #ruby
klaut has joined #ruby
dyoko has quit [Quit: Leaving.]
mehlah has joined #ruby
<apeiros>
mbuf: the author of the gem must inform rubygems about its dependencies via the .gemspec. rubygems isn't driven by magic and pixie dust, after all ;-)
sski has quit [Ping timeout: 246 seconds]
davedev24 has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mehlah has quit [Client Quit]
brucelee has joined #ruby
fannye has joined #ruby
fgo has quit [Remote host closed the connection]
nomenkun has joined #ruby
_justin has joined #ruby
rylev has quit [Ping timeout: 246 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
brucelee has quit [Ping timeout: 252 seconds]
gabrielCmendes has quit [Ping timeout: 240 seconds]
anarang has joined #ruby
<crome>
disappointing!
<crome>
danijoo: which one?
<danijoo>
lenovo ;)
yfeldblum has joined #ruby
<crome>
Im thinking about buying and Im looking for some opinions
workmad3 has joined #ruby
workmad3 has quit [Client Quit]
<danijoo>
i have this lenovo yoga 13 ultrabook/tablet hybrid thing
Xeago has joined #ruby
<danijoo>
and im quite happy with it
<crome>
how does it fare with battery life?
<crome>
and what os are you running on it?
<danijoo>
4-5 hours depending on what im doing i think
<danijoo>
and windows 8. because there are no stable wifi drivers for linux yet :(
mostlybadfly has joined #ruby
workmad3 has joined #ruby
workmad3 has quit [Client Quit]
<crome>
oh
<crome>
bummer
<danijoo>
yeah thats a negative point. :)
<apeiros>
funny, only 3y ago I would have found 4-5h a quite good operating time
<crome>
this macbook air I got from the company set the battery life standard pretty high
<crome>
it is just driving me crazy
<danijoo>
well its 4-5 while compiling stuff every few minutes etc.
Speed has joined #ruby
<danijoo>
it may be more with usual "couch-work" :p
<apeiros>
ok. I don't regularly compile stuff. so no idea how it'd look there.
<apeiros>
but coding, I easily get 10h+
<danijoo>
yeah i think there isnt much beating the new airbooks batteries
yfeldblum has quit [Ping timeout: 265 seconds]
* apeiros
hopes that time will go even further up in future
Xeago has quit [Ping timeout: 240 seconds]
<crome>
Im wondering if running linux on the air is feasible within reasonable limits
<danijoo>
but i dont really bother about battery as long as it gets me to university and home every day :>
workmad3 has joined #ruby
<apeiros>
would be nice not having to charge the laptop for a whole day, no matter what you do. e.g. flash in chrome -> 2-3h (flash in safari is 5-6h)
<crome>
but something tells me I should forget about getting the webcam and/or the wifi to work
mehlah has joined #ruby
<Hanmac>
tomorrow is the big day ;P
<rdark>
crome: lenovo x240. 20+ hours battery life
<popl>
Hanmac: Tacos?
<popl>
Tacos are awesome.
<Hanmac>
popl: Support end from WindowsXP ... buried next to the support end from ruby1.8
kaspergr_ has joined #ruby
mbuf has quit [Ping timeout: 246 seconds]
<popl>
Hanmac: The British government bought extra support for XP.
vlad_sta_ has quit []
<Hanmac>
yeah some goverments in germany bourght it too because "some" company didnt managed to migrate the pcs to newer versions
<crome>
rdark: Im not saying that battery life is of the utmost importance, I would just like to have an idea about what different models are capable of compared to my current device
<crome>
but it definitely sounds good
<crome>
althogh lenovo.com sayts its "up to 6 hours" ;>
workmad3_ has joined #ruby
kaspergrubbe has quit [Ping timeout: 255 seconds]
<rdark>
crome: if you buy the elite docking station and a pair of DP 1.2 MST hubs, it'll drive 6 monitors at 2560x1600
<rdark>
that's with the built-in 3 cell battery. It has an additional 6 cell that slots in the back
<danijoo>
@crome did u every got the batterylife the companies say it has? XD
<rdark>
the 3 cell isn't removeable though, it'ls built-in
izzol has joined #ruby
<apeiros>
ah that's the one reeeally dissappointing fact about my macbook retina (mid 2012) - it can only drive a 4K screen via HDMI, and only at 30Hz :(
mbuf has joined #ruby
* apeiros
wants 2x4K 24"
dyoko has joined #ruby
workmad3 has quit [Quit: leaving]
workmad3 has joined #ruby
<rdark>
apeiros: samsung announced some cheap (ish) 27" 4k displays the other week.
<crome>
danijoo: surprisingly enough the macbook air lives up to it
<izzol>
apeiros: my brand new macbook air doens't work at all with HDMI->TV (samsung) :-)
<apeiros>
rdark: dell has cheap-ish 24" 4Ks
<apeiros>
so that's not really the problem
workmad3_ has quit [Client Quit]
workmad3 has quit [Client Quit]
<rdark>
imho, 6x 1920x1200 (16:10 aspect ratio) is just fine
<apeiros>
the problem is that the displayport/thunderbolt ports on the 2012 MBR can't drive it
<rdark>
ah.
<apeiros>
and over HDMI only at 30Hz, which is reported to be unpleasant for things like scrolling
noop has joined #ruby
<apeiros>
I guess it just means that I'll get a new laptop this or next year :D
<crome>
cmon, its 4k
<crome>
you are not supposed to scroll
<rdark>
apeiros: it wouldn't be that much of an issue for general browsing or coding, but you'd notice it for video or gaming
lkba has joined #ruby
thomasxie has joined #ruby
<apeiros>
I will use the 4K similarly to how I use the retina - high resolution. not huge workspace.
fgo has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
sski has joined #ruby
twiceaday has quit [Ping timeout: 246 seconds]
evenix has joined #ruby
twiceaday has joined #ruby
mbuf has quit [Ping timeout: 255 seconds]
thomasxie has quit [Client Quit]
Xeago has joined #ruby
claymore has quit [Ping timeout: 255 seconds]
<shevy>
god
fabrice31 has joined #ruby
<shevy>
you guys are monitor junkies
<apeiros>
rdark: SyncMaster LU28D590DS the one you mean?
banister has joined #ruby
_justin has quit [Ping timeout: 255 seconds]
Lewix has quit [Remote host closed the connection]
<apeiros>
oh, wow, the dell one got cut down in price a lot… before ~CHF 1300, now CHF 700 (roughly 1200$ and 630$)
evenix has quit [Ping timeout: 240 seconds]
<apeiros>
and that only in the last ~6w
<apeiros>
wait… that's actually a different product. the one I see now is 28", the one before was 24"
schu has joined #ruby
<rdark>
apeiros: yeah, that was the one. afaik, the (cheaper) dell model only had hdmi in, so you could only drive it at 30hz@4k
claymore has joined #ruby
zastern has joined #ruby
nari has joined #ruby
* Hanmac
has currently his old CFT because his old TFT was broken and he didnt buy a new one yet
hermanmunster has quit [Remote host closed the connection]
mmochan_ has joined #ruby
francisfish has quit [Remote host closed the connection]
DaniG2k has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
sdouglas has joined #ruby
tjbiddle has joined #ruby
wolfsoul has quit [Client Quit]
_justin has joined #ruby
wolfsoul has joined #ruby
kennym has quit [Quit: Leaving.]
kennym has joined #ruby
eka has joined #ruby
atno has joined #ruby
<shevy>
Hanmac1, do you use rather module or class for top namespace?
shashank_rs has quit [Ping timeout: 252 seconds]
Hanmac1 is now known as Hanmac
yfeldblum has joined #ruby
<Hanmac>
shevy: in most of the chases its a module
<jottr_>
does anyone know of a good gem that generates schema.org metadata? I am using middleman and would like to try and embed schema data into my html output
Martxel has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
jottr_ is now known as jottr
luckyruby has quit [Quit: Leaving...]
wolfsoul has quit [Client Quit]
thomasxie has joined #ruby
noob101 has quit [Ping timeout: 245 seconds]
arietis has joined #ruby
robde has joined #ruby
phutchins has joined #ruby
keen__ has joined #ruby
keen__ is now known as keen_
francisfish has joined #ruby
nvrch has joined #ruby
sputnik13 has joined #ruby
ctp has joined #ruby
doodlehaus has quit [Remote host closed the connection]
toretore has joined #ruby
danshultz has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
yalue has joined #ruby
gerep has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
kaspergr_ has quit []
rylev has joined #ruby
rylev_ has joined #ruby
dukz has quit [Remote host closed the connection]
Hanmac has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
jamto11 has joined #ruby
MachineX has joined #ruby
monkegjinni has joined #ruby
rylev has quit [Ping timeout: 246 seconds]
bluenemo has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
brian___ has quit [Client Quit]
<kraljev6>
yes, that is logical
<kraljev6>
because it inherits default #to_s from Object
andrewlio has joined #ruby
Megtastique has joined #ruby
<kraljev6>
Well, I'll just monkey patch it
<kraljev6>
"{#{to_a * ', '}}"
yfeldblum has joined #ruby
mary5030 has joined #ruby
ayaz has quit [Read error: Connection reset by peer]
m4n1f3st0 has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Macaveli has joined #ruby
sski has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
_tpavel has quit [Quit: Leaving]
tjr9898 has joined #ruby
davedev24 has quit []
rylev_ has quit [Remote host closed the connection]
jph98 has joined #ruby
rylev has joined #ruby
scarolan has joined #ruby
linojon has joined #ruby
moeSeth_ has joined #ruby
RowdyChildren is now known as RowdyChild|Away
vt102 has joined #ruby
<jokke>
hello
<jokke>
i'm having some trouble with guard, maybe someone here can help me
Z0_R1_N is now known as tobago
viscera has quit [Quit: viscera]
thomasxie has left #ruby [#ruby]
mary5030 has quit [Remote host closed the connection]
<jokke>
i'm using it to compile coffeescript in a web project. When the files have been compiled they need to be merged using juicer. At the moment i'm using a guard shell task to watch for compiled js files, however that way the shell task is run many times (for every compiled js file). Is it possible to chain tasks in guard in another way?
mary5030 has joined #ruby
nbouscal has joined #ruby
<jokke>
oh there's a guard channel
<jokke>
-> #guard
arietis has joined #ruby
garndt has joined #ruby
mary5030 has quit [Remote host closed the connection]
coderhs has joined #ruby
mary5030 has joined #ruby
himsin has quit [Quit: himsin]
Kneferilis has quit [Quit: Leaving]
tkuchiki has joined #ruby
larissa has joined #ruby
phantummm has joined #ruby
m4n1f3st0 has quit []
ndrei has joined #ruby
Jetchisel has joined #ruby
djbender has joined #ruby
ktun has joined #ruby
Dysruption has joined #ruby
davedev24 has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
aagdbl has quit [Quit: This computer has gone to sleep]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nhhagen_ has joined #ruby
_justin has quit [Quit: _justin]
the_mentat has quit [Ping timeout: 246 seconds]
codabrink has joined #ruby
aagdbl has joined #ruby
dumdedum has quit [Quit: foo]
nhhagen has quit [Ping timeout: 240 seconds]
<jokke>
hm #guard is dead..
badhatter_ has quit [Read error: Connection reset by peer]
Dysruption has quit [Quit: Dysruption]
sski has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
sski has joined #ruby
sdwrage has joined #ruby
the_mentat has joined #ruby
osvico has quit [Read error: Connection reset by peer]
rylev has quit [Remote host closed the connection]
jollyy_ has joined #ruby
hermanmunster has joined #ruby
jollyy has quit [Ping timeout: 255 seconds]
jollyy_ is now known as jollyy
osvico has joined #ruby
doodlehaus has joined #ruby
m4n1f3st0 has joined #ruby
rylev has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
phantummm has quit [Quit: phantummm]
mrmargolis has joined #ruby
sski has quit [Ping timeout: 252 seconds]
northfurr has joined #ruby
northfurr has joined #ruby
northfurr has quit [Changing host]
<shevy>
yeah!
dawkirst_ has joined #ruby
dukz has joined #ruby
phantummm has joined #ruby
<crome>
any rubymine users by any chance?
emaxi has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<shevy>
no!
snath has quit [Ping timeout: 246 seconds]
alexju has joined #ruby
<Jamo>
I had used it for one day and the I switched back to VIM
aagdbl has quit [Quit: This computer has gone to sleep]
zachallett has joined #ruby
<crome>
yeah, Im generally a happy vim user
pu22l3r has joined #ruby
<crome>
its just vim sucks balls on (my) mac
<crome>
but asking a few colleagues they have similar issues
<shevy>
abandon your dirty vim past, my son!
<crome>
such as scrolling/moving around in files in vim makes the cpu burn and its slow as hell
<crome>
same with macvim
<Jamo>
how old yout mac is?
<shevy>
that's vim just taking extra CPU today to give you more CPU power tomorrow
<crome>
olivier_bK: first of all, you can define classes where you want, really
<Jamo>
I bought 11" air one week ago, I have at least 4 vims running on different iterm2 windows, and cpu uage is 0%
ckinni has joined #ruby
<crome>
wherever*
darmou has joined #ruby
<crome>
Jamo: I noticed that turning syntax hightlight off "fixes" the problem
<Jamo>
have you tried instalin macvim via homebrew?
<crome>
yeah, I tried it
viscera has joined #ruby
<crome>
14:26:08 < crome> same with macvim
phantummm has quit [Quit: phantummm]
paulfm has joined #ruby
chris_thomson has quit [Quit: Zzz...]
<olivier_bK>
crome, i understand but why after a method why he dont insert the method inside the class ?
<crome>
the method is in a class
<crome>
in the Module class
<shevy>
but I think I need something more of an IDE myself
<shevy>
something like "dear editor, please open the file where the method def bla is defined for me, thank you."
<workmad3>
shevy: can't you do that with pry?
<olivier_bK>
oh okai i understand now thanks men
<Jamo>
and with ctags
m4n1f3st0 has quit []
<crome>
I dont really want to change but I really cant figure out why my vim operates weird so I thought I would use rubymine until I figure out which non-mac machine I want to get
<shevy>
dunno, I am not using pry as my editor though
<crome>
but I just cant figure shit out in it :D
taf2 has joined #ruby
sailias has joined #ruby
<workmad3>
shevy: you don't need to use pry as your editor
enebo has joined #ruby
<Jamo>
crome: have you tried using vim without own configs
<crome>
Jamo: of course but then whats the point
<crome>
it works fine if I launch vim stripped of everything
jamto11 has joined #ruby
<workmad3>
shevy: just type 'edit Object#method' inside a pry console, it opens the file in your chosen editor
<workmad3>
shevy: using $EDITOR (or fallback to nan)
<workmad3>
*nano
<shevy>
hmm
<shevy>
that works only for core ruby classes?
<shevy>
and I need to know the namespace?
<workmad3>
shevy: no, just did it for a file I'd just loaded
sailias1 has joined #ruby
<workmad3>
shevy: and you'd only need the namespace if it was outside the current context
<shevy>
rubygems/dependency.rb:298:in `to_specs': Could not find 'slop' (~> 3.4) - did find: [slop-2.4.4] (Gem::LoadError)
<shevy>
god I hate this ~> dependency handling
<shevy>
oh no wait
<shevy>
I mislooked
<shevy>
I thought it meant 2.3.4
himsin has joined #ruby
himsin has quit [Client Quit]
sailias has quit [Ping timeout: 240 seconds]
<workmad3>
shevy: btw, thanks for the question so I looked that up... I keep on meaning to improve my pry usage :)
<shevy>
well
<workmad3>
shevy: and yes, just checked with a rails project... dumped a 'binding.pry' in an index action, then did 'edit show' and it just opened vim on the show action in the right controller :)
treehug88 has joined #ruby
_justin has joined #ruby
<shevy>
right now I am trying to find out what you meant with "outside the current context" exactly, so I am working through the deps...
arietis has joined #ruby
<workmad3>
shevy: I mean that if you dump 'binding.pry' inside a method, you could do 'edit <method>' on any other methods that would be visible, afaik
<shevy>
hmm
<workmad3>
shevy: but if you wanted to open up a method in a different class, you'd need to provide the class (and namespace)
<workmad3>
shevy: you could check the exact behaviour with banister I suspect ;)
dukz_ has joined #ruby
sailias1 has quit [Ping timeout: 255 seconds]
pigzzcanfly has joined #ruby
dukz has quit [Read error: Connection reset by peer]
<shevy>
I don't think it is quite what I had in mind
spstarr_ has joined #ruby
spstarr_ is now known as spstarr_work
pdtpatrick has joined #ruby
<shevy>
right now if I forgot where something is defined on my local system (whole filesystem), I run recursive grep and then open stuff in my editor
<shevy>
that is rather tedious to do in general
<shevy>
the grep step especially
<workmad3>
shevy: I'm not sure an IDE would especially help with that
<shevy>
:(
Guest29592 is now known as deepy
<shevy>
don't destroy my dreams!
<workmad3>
shevy: the IDEs I've seen, you'd only get that sort of behaviour for finding methods that are available within the project (similar to pry)
<shevy>
I want to remain lazy
<shevy>
damn
ADNIX has joined #ruby
noop has quit [Ping timeout: 252 seconds]
<workmad3>
shevy: rather than some arbitrary code you wrote in a random file located in some crazy place in your entire filesystem ;)
<shevy>
yeah ok but there may be some clues
<shevy>
the files I work with in the editor would be more important than most others (and should have the things I am looking for 95% of the time)
bal has quit [Quit: bal]
<shevy>
it's perhaps a bit more like a recursive but targeted grep
<shevy>
perhaps grep is stinking limited!
<workmad3>
shevy: start using ack?
<shevy>
hehe
<shevy>
ack!
<workmad3>
shevy: that said... which bit of a grep/ack search of your filesystem is tedious?
bal has joined #ruby
emaxi has quit [Remote host closed the connection]
<workmad3>
shevy: it could be that you could fine-tune that aspect to give you what you want in a nicer manner :)
<shevy>
workmad3 that I have to do it again and again; the workflow is like this: have my happy gtk2 editor, switch to kde konsole (the editor has no inbuilt terminal!), run a tiring grep -r, find where stuff is defined or may be used, open that in konsole, switch to the editor
yfeldblum has joined #ruby
emaxi has joined #ruby
<workmad3>
shevy: ah, so it's really the lack of being able to fire up console commands from your editor
<workmad3>
shevy: use a better editor? :P
<shevy>
that's one problem
<shevy>
like what
<ADNIX>
vim
<workmad3>
shevy: *cough* vim *cough*
<shevy>
nah, vim requires enormous and extremely tedious commands
<workmad3>
shevy: such as?
<shevy>
don't downgrade what I use!
phantummm has joined #ruby
<shevy>
any use of //
<workmad3>
shevy: I can't think of any enormous and tedious commands
nhhagen_ has quit [Remote host closed the connection]
<workmad3>
shevy: how is that enormous and tedious?
<shevy>
that I have to type
<shevy>
that I have to memorize commands
<workmad3>
shevy: '/<stuff I want to find in the file<return>'
<shevy>
no thank you
<workmad3>
shevy: so <Ctrl-f><stuff I want to find in the file><return> is less tedious?
<shevy>
inside the file yes
<shevy>
but I am comparing searching like through grep
<workmad3>
shevy: so 2 keypresses == less tedious than 1?
<shevy>
workmad3, I use about 20.000 aliases in my bash
<shevy>
workmad3 it is the sum of keystrokes to have to use and the combination of it
nhhagen has joined #ruby
afreidah1 has joined #ruby
sambao21 has joined #ruby
<workmad3>
shevy: just trying to figure out where these 'enormous commands' are coming from in your vim usage... I've yet to find a vim command longer than about 4 keystrokes, and they do a massive amount
emaxi has quit [Ping timeout: 252 seconds]
<shevy>
workmad3 I used vim for a few years back from around 2004 to 2007
yfeldblum has quit [Ping timeout: 265 seconds]
<workmad3>
shevy: I've been using it for about 3 years now, and I keep on finding shorter ways to do things ;)
<shevy>
it's good that vim works for you
<workmad3>
shevy: as I said, I'm just trying to understand where the 'enormous' commands came from
<workmad3>
shevy: so I'm kinda looking for examples of enormous commands that are typical vim usage :)
<shevy>
ok you do have to give specific instructions to vim when you use it all the time right?
<canton7-mac>
jbzt, you're sure it's throwing an ArgumentError, not an Exception ?
dukz_ has quit [Remote host closed the connection]
<lewellyn>
tobiasvl: hahahaha seriously funny.
<tobiasvl>
lewellyn: yeah ;) it's an atom.io parody obviously
<jbzt>
canton7-mac: hah, you're right
<lewellyn>
it looks nothing like atom.iio
<lewellyn>
it looks like someone screwed up, here
danshultz has quit [Remote host closed the connection]
<jbzt>
canton8-mac: I just changed what it raises and I get the same result, though it tells me it's an argument error this time
Xeago has joined #ruby
<tobiasvl>
lewellyn: hmm yeah, would you look at that … it works if I remove http:// and let it resolve in the browser
danshultz has joined #ruby
<tobiasvl>
STRANGE
emaxi has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
<workmad3>
jbzt: get rid of line 3
<lewellyn>
tobiasvl: um. if you're not accessing it over http, what are you accessing it over?
danshultz has joined #ruby
<workmad3>
jbzt: the block you pass to expect is executed, that block passes the expectation, and then you're running that line again outside of everything, generating another exception that fails the test
skaflem has quit [Quit: Leaving]
<lewellyn>
oh. it's screwy in a gui browser too.
<jbzt>
oh, thanks
david- has joined #ruby
david- is now known as ktun2
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jbzt>
workmad3: That explains everything! Good to go, thanks
Jonah11_ has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
claymore has joined #ruby
emaxi has quit [Ping timeout: 252 seconds]
popl has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 255 seconds]
emaxi has joined #ruby
freerobby has joined #ruby
jbzt has quit [Quit: jbzt]
m4n1f3st_ has quit [Read error: Connection reset by peer]
m4n1f3st0 has joined #ruby
pu22l3r has quit [Remote host closed the connection]
davedev2_ has joined #ruby
pu22l3r has joined #ruby
danshultz has quit [Remote host closed the connection]
andy__ has joined #ruby
danshultz has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
<tobiasvl>
define "look just the same" …
<CreativeEmbassy>
jlebrech: lots of reasons. especially if there's an alpha channel, you can hide all sorts of stuff in the image, hide it with the alpha channel, and dramatically change the "image" without it looking any different when being previewed
jameswlane has joined #ruby
mengu has quit []
SCommette has joined #ruby
newUser1234 has joined #ruby
sailias has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
<jlebrech>
creativeembassy: 9/10 times the image will have the same md5 hash, other times i'll just have to check each pixel, and that works
<canton7-mac>
there's also a shit-ton of metadata, free-text comment fields, etc
ktun has joined #ruby
jaywastaken has quit [Quit: Leaving]
<workmad3>
jlebrech: it could also be that the two png images have different levels of compression
<canton7-mac>
plus most compression algorithms (and I suspect png is included) have free reign to make all sorts of decisions as they see fit, based on a load of varying criteria
lmickh has joined #ruby
brucelee has joined #ruby
Jonah11_ has joined #ruby
<canton7-mac>
so two different programs will make all sorts of different decisions when saving the same image
kevinykchan has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Macaveli has joined #ruby
viscera has joined #ruby
shashank_rs has quit [Ping timeout: 246 seconds]
blurredbits has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
crystal77 has joined #ruby
robbyoconnor has quit [Ping timeout: 255 seconds]
genescissors has quit [Ping timeout: 246 seconds]
s2013 has joined #ruby
nateberkopec has joined #ruby
brucelee has quit [Ping timeout: 255 seconds]
kitak has joined #ruby
genescissors has joined #ruby
Vovko has joined #ruby
<tsunamie>
want to check with the ruby guys in here. In the following code. https://github.com/elasticsearch/logstash/blob/master/lib/logstash/inputs/s3.rb on line 202. The following code exists. "FileUtils.remove_entry_secure(tmp, force=true)" Should this not force the delete of a folder with all the files it was processing. Does anyone know of a senario of why the file would not be deleted after being processed?
<jlebrech>
canton7-mac: yeah, same code creates both pngs. so it must be a tiny difference, but that drastically changes the md5 hash
matcouto has joined #ruby
jameswlane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nhhagen has quit [Remote host closed the connection]
rylev has quit [Remote host closed the connection]
bean has joined #ruby
yfeldblum has joined #ruby
andrewlio has quit [Quit: Leaving.]
rylev has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arietis has joined #ruby
<canton7-mac>
jlebrech, might it be setting the metadata differently?
hamakn_ has quit [Remote host closed the connection]
toastynerd has joined #ruby
dtcrshr has joined #ruby
Shidash has quit [Ping timeout: 246 seconds]
jgoss has quit [Ping timeout: 240 seconds]
jrhe has joined #ruby
s2013 has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
andy__ has quit [Read error: Operation timed out]
m4n1f3st0 has joined #ruby
rm_ has quit [Remote host closed the connection]
rayners has joined #ruby
rm_ has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
viscera has quit [Quit: viscera]
nhhagen has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
pwh has joined #ruby
sambao21 has joined #ruby
djbender has quit [Quit: djbender]
rayners has quit [Read error: Connection reset by peer]
enebo has quit [Quit: enebo]
nhhagen has quit [Remote host closed the connection]
jorts has joined #ruby
rm_ has quit [Ping timeout: 255 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
mary5030 has quit [Remote host closed the connection]
RowdyChildren is now known as RowdyChild|Away
taf2 has quit [Quit: taf2]
jonno11 has joined #ruby
yokel has joined #ruby
andy__ has joined #ruby
paulfm has quit []
hamakn has joined #ruby
x77686d has joined #ruby
failshell has joined #ruby
bal has quit [Quit: bal]
heftig has quit [Quit: Quitting]
sigurding has quit [Read error: Connection reset by peer]
DaniG2k has quit [Quit: leaving]
mary5030 has joined #ruby
djbender has joined #ruby
andy___ has joined #ruby
jespada has joined #ruby
paulfm has joined #ruby
andy__ has quit [Ping timeout: 252 seconds]
jgoss has joined #ruby
xiella has joined #ruby
<ghr>
Is there a better way of doing `!"a string".empty?`
phutchin1 has joined #ruby
moeSeth_ has quit [Quit: Connection closed for inactivity]
<ghr>
in 1.8.7 you could do `"a string".any?`
jollyy_ has joined #ruby
IceDragon has joined #ruby
jollyy_ has quit [Read error: Connection reset by peer]
snath has joined #ruby
enebo has joined #ruby
<apeiros>
ghr: not really
phutchins has quit [Read error: Operation timed out]
jollyy_ has joined #ruby
Melpaws has joined #ruby
andy___ has quit [Ping timeout: 255 seconds]
jollyy_ has quit [Read error: Connection reset by peer]
jollyy has quit [Ping timeout: 255 seconds]
<DouweM>
`unless "a string".empty?` might read nicer
<DouweM>
and if you're using Rails, check out #present?
<ghr>
it's in a method, so `unless` doesn't really work here
jollyy has joined #ruby
<DouweM>
in that case, !
sigurding has joined #ruby
<ghr>
eg def has_content?; !body.empty?; end
<ghr>
yeah
<ghr>
thanks both :)
jollyy has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
<DouweM>
body.length > 0
andy__ has joined #ruby
jollyy has joined #ruby
<Hanmac>
or you do !!"a string"[0] ;P
andy__ has quit [Read error: Connection reset by peer]
_1_mauricio has joined #ruby
einarj has quit []
yfeldblum has joined #ruby
<_1_mauricio>
hola
<ghr>
I think ! empty? probably works best for this :)
<ghr>
Hanmac I'll consider that one ;)
samuel02 has joined #ruby
_1_mauricio has quit [Remote host closed the connection]
nhhagen has quit [Ping timeout: 240 seconds]
<cout>
empty? is better hypothetically just in case you are using it on a data type where #length is O(n)
sdouglas has quit [Remote host closed the connection]
<cout>
but I never remember that it exists
Apocalypse has quit [Ping timeout: 252 seconds]
andy__ has joined #ruby
andy__ has quit [Remote host closed the connection]
sdouglas has joined #ruby
<DouweM>
cout: true
Waheedi has joined #ruby
geggam has joined #ruby
<Waheedi>
yo
andy__ has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
<Waheedi>
I'm using File.open to read from file /x/x.txt
<Waheedi>
and I want to write on line no 3
<Waheedi>
i found the File.write(name, string, offset) method
<Waheedi>
and it seems convenient
obscured has joined #ruby
robbyoconnor has joined #ruby
<cout>
Waheedi: easiest solution is to read the whole file, make a change, and write the whole file back out
<DouweM>
Waheedi: that #write method will overwrite some stuff though
<Waheedi>
oh i just tried it
<Waheedi>
its totally not what i want
<Waheedi>
shit
<DouweM>
Waheedi: and it doesn't know about lines, because there's really not such a thing as a line as far as a binary file is concerned
<Waheedi>
i mean you can loop through the file lines and be smart and write on specific line
sdwrage has joined #ruby
zachallett has quit [Remote host closed the connection]
zachallett has joined #ruby
axl_ has quit [Ping timeout: 255 seconds]
sdouglas has quit [Ping timeout: 240 seconds]
VTLob has joined #ruby
blackavr has quit [Quit: blackavr]
pu22l3r has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has joined #ruby
lbwski has quit [Read error: Operation timed out]
havenwood has joined #ruby
sdouglas has joined #ruby
sdwrage has quit [Ping timeout: 240 seconds]
<Waheedi>
found a hack
<Waheedi>
lol
ADNIX has quit [Quit: User abort with 5 Ctrl-C's]
<Waheedi>
this is bullshit
fabrice31 has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
qmfnp has joined #ruby
Solnse has joined #ruby
apeiros has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
Kruppe has joined #ruby
apeiros has joined #ruby
newUser1234 has joined #ruby
aganov has quit [Quit: Leaving]
sigurding has quit [Read error: Connection reset by peer]
obscured has quit [Quit: leaving]
karmatr0n has joined #ruby
ahawkins has quit [Quit: leaving]
sdwrage has quit [Quit: This computer has gone to sleep]
<shevy>
Waheedi the simplest way is to use File.readlines('your_file_here'), modify that array (line to modify - 1, as ruby arrays start at 0), then save the modified array to a file via File.new or File.open
emaxi_ has quit [Remote host closed the connection]
emaxi has joined #ruby
Martxel has quit [Ping timeout: 255 seconds]
apeiros has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
darmou has joined #ruby
_5kg has quit [Ping timeout: 240 seconds]
crystal77 has joined #ruby
m4n1f3st0 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<Hanmac>
shevy like File.write('your_file_here', File.foreach('your_file_here').map { ... mod }.join("\n"))
<Rafalski_>
Hey all. I'm trying to link to a file on a network drive. This is the code I have but it only returns the folder path: File.join(folder_path, '/\/', file_name) please help
werdnativ has joined #ruby
maletor has joined #ruby
charlies_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlebrech has quit [Quit: Konversation terminated!]
scarolan_ has joined #ruby
papercode has joined #ruby
saarinen has joined #ruby
timonv_ has joined #ruby
michaeldeol has joined #ruby
saarinen has quit [Client Quit]
RowdyChildren is now known as RowdyChild|Away
codabrink has joined #ruby
scarolan has quit [Ping timeout: 240 seconds]
emaxi has joined #ruby
arietis has joined #ruby
jonno11 has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
jobewan has joined #ruby
shevy has joined #ruby
coderhs has joined #ruby
dstynchula has joined #ruby
michaeldeol has quit [Client Quit]
trautwein has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
BP_out has joined #ruby
andy___ has joined #ruby
canton7-mac has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
zchrykng-work_ is now known as zchrykng-work
kirun has joined #ruby
codenapper has quit [Ping timeout: 252 seconds]
olivier_bK has quit [Read error: Operation timed out]
apeiros has joined #ruby
zachallett has quit [Remote host closed the connection]
<linduxed>
if i've got an if-elsif-else tree that goes something like "if is_banana?(fruit) \n "Banana" \n elsif is_apple?(fruit) \n "Apple" \n else \n "Square" \n end"
<linduxed>
is there some way to avoid typing the (fruit) part all the time?
<linduxed>
like, somehow writing (&:is_apple) instead and it just knowing that it needs a parameter?
<linduxed>
(curried functions, essentially)
andy__ has quit [Ping timeout: 240 seconds]
francisfish has quit [Remote host closed the connection]
Rafalski_ has quit [Quit: Rafalski_]
zachallett has joined #ruby
<banister>
linduxed can you show the complete example of how you'd like it to look?
gaussblurinc has quit [Quit: Leaving.]
mmoretti has quit [Quit: Leaving...]
CreativeEmbassy has joined #ruby
sdouglas has quit [Remote host closed the connection]
MatthewsFace has quit [Quit: This computer has gone to sleep]
<bilbo_swaggins>
s2013: algorithms are timeless
<bilbo_swaggins>
programming just wouldn't be the same without them
<centrx>
BP_out, It's probably O(n^2) because str2.include? looks through the entire string, right?
tvw has quit [Ping timeout: 252 seconds]
<BP_out>
right, i see
<BP_out>
that was the bit I had a question about
gigetoo has quit [Remote host closed the connection]
<s2013>
hmm
danshultz has quit [Ping timeout: 252 seconds]
<jhass>
I think str1[i..-1] is more expensive than it looks too
<bilbo_swaggins>
"googling common interview problems" is bad advice
<advorak>
is it appropriate in a class, for a getter method of an instance variable which happens to be an array, to dup the variable so that such things as getter#push cannot be called on them? ie: https://gist.github.com/advorak/10023642
toastynerd has joined #ruby
<BP_out>
what do you mean, jhass?
<bilbo_swaggins>
advorak, sure
razrunelord has joined #ruby
speakingcode has joined #ruby
<jhass>
BP_out: accessing ith position may be constant time, but then you need to copy the rest of the string, which increases the longer the string is
<advorak>
bilbo_swaggins, is it common practice and should I expect it to lead to confusion?
<bilbo_swaggins>
first I've heard of the practice
<bilbo_swaggins>
yet if anything it just ups the separation of concerns
sepp2k has quit [Ping timeout: 240 seconds]
<bilbo_swaggins>
I'd wonder why you need it to do this
<BP_out>
right. Is there a better way to do it? I mean any sort of string comparison is a costly thing to do
gigetoo has joined #ruby
<bilbo_swaggins>
BP_out string comparisons aren't so bad
<bilbo_swaggins>
what are we talking here
<BP_out>
perhaps mapping the string in a hash first?
<jhass>
BP_out: that's the theoretical analysis so far. In practice you need veeery long string to matter
<BP_out>
right, obviously
aspires has quit []
<bilbo_swaggins>
BP_out turning it into a hash just increases the time it takes!
postmodern has joined #ruby
<bilbo_swaggins>
advorak: I don't see a specific use case for what you're doing
<BP_out>
ah nevermind you're correct
<bilbo_swaggins>
but it prevents a potentially real problem
<BP_out>
stupid idea haha
<benzrf>
sup bilbo_swaggins
spicerack has joined #ruby
<bilbo_swaggins>
swagginin
<shevy>
sup benzrf
<benzrf>
good meme yolo
Hanmac1 has joined #ruby
<bilbo_swaggins>
I didn't do any work this weekend
<bilbo_swaggins>
first in a long time
<bilbo_swaggins>
I just laid on my ass
<bilbo_swaggins>
much recommended activity
<benzrf>
mmm
<advorak>
bilbo_swaggins, thanks.
Nukepuppy has joined #ruby
CreativeEmbassy has quit [Quit: FO SHO]
danshultz has joined #ruby
<bilbo_swaggins>
advorak, what you're doing is similar to functional programming in a way
Hanmac has quit [Ping timeout: 255 seconds]
<benzrf>
FP woot woot
<bilbo_swaggins>
actually
<bilbo_swaggins>
it's equivalent
<bilbo_swaggins>
at least this specific simple example
<advorak>
bilbo_swaggins, I've never considered this a problem before, and nobody else seems to ... so maybe I shouldn't consider it a problem?
<bilbo_swaggins>
might as well not worry about it unless you need to
<advorak>
*nods*
m4n1f3st0 has quit []
<bilbo_swaggins>
better to concern yourself with preventing the sort of situation where it would be a problem
agarie has joined #ruby
<bilbo_swaggins>
i.e. sharing state across too much of the application
<bilbo_swaggins>
but that's a wonderfully hand-wavy answer
esposito has joined #ruby
renklaf_ has joined #ruby
sputnik13 has quit [Ping timeout: 246 seconds]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andikr has quit [Remote host closed the connection]
pdtpatr11k has quit [Quit: leaving]
pdtpatr1ck has joined #ruby
obs has quit [Remote host closed the connection]
dapz has joined #ruby
ckinni has joined #ruby
obs has joined #ruby
geggam has quit [Ping timeout: 240 seconds]
esposito has quit [Client Quit]
francisfish has quit [Remote host closed the connection]
aspires has joined #ruby
karmatr0_ has quit [Remote host closed the connection]
geggam has joined #ruby
RowdyChildren is now known as RowdyChild|Away
noop has joined #ruby
newUser1234 has quit [Remote host closed the connection]
mehlah has joined #ruby
phoo1234567 has joined #ruby
freerobby has quit [Quit: Leaving.]
joshualivesay has joined #ruby
freerobby has joined #ruby
sepp2k has joined #ruby
fabrice31 has joined #ruby
DrShoggoth has joined #ruby
armyriad has quit [Ping timeout: 255 seconds]
hermanmunster has quit [Remote host closed the connection]
rakm has joined #ruby
alvaro_o has joined #ruby
b00stfr3ak has joined #ruby
robbyoconnor has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
Gadgetoid has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
advorak has quit [Quit: Ex-Chat]
rm_ has quit [Remote host closed the connection]
mordocai has joined #ruby
rm_ has joined #ruby
<joshualivesay>
I'm having some trouble understanding how to use my data models in rails. For example. I have three tables. addresses(address,city,state) / people(address_id, name) / companies(address_id, name) I'm trying set up the relationships every which way. Right now I have the Person and Company models to belongs_to :Address and the Address as has_many :companies and has_many :people If I have an address record I can do Address.
combusean has joined #ruby
nhhagen has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
pigzzcanfly has joined #ruby
rm_ has quit [Read error: Operation timed out]
derek_c has joined #ruby
<Hanmac1>
joshualivesay: #RubyOnRails
tjr9898 has quit [Ping timeout: 255 seconds]
Hanmac1 is now known as Hanmac
zachallett has quit [Ping timeout: 240 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<joshualivesay>
My apologies.
acrussell has quit [Quit: Leaving.]
newUser1234 has joined #ruby
tjr9898 has joined #ruby
cocotton has joined #ruby
afex has quit [Read error: Operation timed out]
yfeldblum has joined #ruby
ADNIX has joined #ruby
rfennec has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<rfennec>
where can i get help for thinkingsphinx
<rfennec>
?
tjr9898 has joined #ruby
spstarr_work has quit [Quit: Page closed]
<centrx>
rfennec, Try #rubyonrails
subbyyy_ has joined #ruby
zachallett has joined #ruby
chipotle has quit [Quit: cya]
supermarin has quit [Quit: Computer has gone to sleep.]
pu22l3r has quit [Remote host closed the connection]
mjs2600 has joined #ruby
pu22l3r has joined #ruby
mjs2600 has quit [Remote host closed the connection]
<Marfi>
I need write extension in C to ruby , my extension using -lpng
vongrippen has joined #ruby
asteros has joined #ruby
<tos9>
How do I get bundler to use the ruby version specified in .ruby-version? When I `bundle install`, it's still using the system ruby version
<Marfi>
How write extension with library not naked C
vongrippen has quit [Client Quit]
<Riking>
tos9, rvm i think
<tos9>
Riking: I got rid of rvm, I'm using rbenv instead.
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tos9>
Which supposedly doesn't require / use gemsets, you just use bundler.
<Riking>
hm. don't have experience with it, sorry
<Marfi>
chrisseaton, where is any extension example to dynamic library?
<Marfi>
-lpng ot other
centrx has quit [Quit: All this computer hacking is making me thirsty]
<chrisseaton>
Marfi: using libpng doesn't make any difference to writing your extension, just statically or dynamically link it into your extension library like you would in any other project
<tos9>
Maybe I'm supposed to put the rbenv shims directory on my PATH...
<Marfi>
chrisseaton, I use this : http://www.swig.org/tutorial.html when I add -lpng function I heve error linking when runing ruby script
<chrisseaton>
Marfi: sorry, I'm not that familiar with this stuff
robbyoconnor has quit [Max SendQ exceeded]
<Marfi>
chrisseaton, ok
<Marfi>
meybe You use mruby?
dapz has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Guedes has left #ruby ["Saindo"]
robbyoconnor has joined #ruby
<Marfi>
I'm looking any working example of using mruby in C program.
mgomezch has quit [Ping timeout: 240 seconds]
<shevy>
nobody uses mruby :)
spider-mario has quit [Remote host closed the connection]
* Marfi
;(
mark_locklear has joined #ruby
<shevy>
I still dont know how people can require something in mruby
tos9 has left #ruby [#ruby]
<Marfi>
mruby is better than lua
<horrorvacui>
mruby is used to build ruby
dhunter has quit [Quit: leaving]
rylev has quit [Remote host closed the connection]
jprovazn_bbl has quit [Quit: Odcházím]
<Marfi>
mruby is for embeding ruby in C program
sputnik13 has joined #ruby
rylev has joined #ruby
<jeregrine>
anyone using ruby-concurrent in production?
dapz has quit [Client Quit]
supermarin has joined #ruby
centrx has joined #ruby
agarie has joined #ruby
<jeregrine>
and or how does it line up with something like celluoid?
mgomezch has joined #ruby
agarie_ has joined #ruby
agarie_ has quit [Remote host closed the connection]
Takumo has joined #ruby
agarie_ has joined #ruby
sambao21 has joined #ruby
x77686d has joined #ruby
rylev_ has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
kinginky has joined #ruby
s2013 has joined #ruby
Mapley has joined #ruby
chipotle has joined #ruby
<kinginky>
does anyone know of some kind of gem that allows you to quickly generate source trees from skeletons for new projects? something you could also easily setup your own skeletons with, preferable
<kinginky>
preferably*
<kinginky>
it cut me off, apologies. im looking for a gem of some kind, that will lets me generate source trees.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrjensen has quit [Ping timeout: 255 seconds]
rudisimo has quit [Remote host closed the connection]
asteros has quit [Quit: asteros]
Prometheian has joined #ruby
sdwrage has joined #ruby
<Prometheian>
Anyone got some experience using capybara? #capybara is dead :(
yfeldblu_ has joined #ruby
rudisimo has joined #ruby
majoh has joined #ruby
asteros has joined #ruby
mrjensen has joined #ruby
funburn has joined #ruby
<iitywimwybmab>
Prometheian: i'd bet someone does.. what's the question?
robbyoconnor has joined #ruby
<Prometheian>
I've got a label next to a dropdown box. Both are in seperate <td>'s. Is there a way to confirm that the dropdown is indeed a dropdown given just the name of the label? Kinda out there, but Imo I've been given unreasonable sepcs by my boss.
tjr9898 has quit [Remote host closed the connection]
pigzzcanfly has quit [Remote host closed the connection]
zachallett has joined #ruby
<jhass>
xpath should be able to do it
jack_rabbit has quit [Ping timeout: 255 seconds]
tjr9898 has joined #ruby
<jhass>
so expect(page).to have_xpath("...")
freerobby has quit [Quit: Leaving.]
jrhe has quit [Quit: Connection closed for inactivity]
<Prometheian>
Well no, I can make it work if I move outside those specs. That's not hard. What my boss wants me to do is basically "Page has a dropdown called Provider" when the label is Provider and the dropdown has its own set of stuff.
mrjensen has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
mark_locklear has quit [Ping timeout: 240 seconds]
mrjensen has joined #ruby
f0ster`_ is now known as f0ster`
freerobby has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
Morkel has quit [Quit: Morkel]
<jhass>
//td/select[ancestor::td[label[@text="Provider"]]] something along those lines, my xpath is already rusty again
derek_c has joined #ruby
<Prometheian>
huh
<Prometheian>
I'll give that a shot, ty
tjr9898 has quit [Ping timeout: 255 seconds]
danijoo has joined #ruby
<jhass>
er, s/@text/text()/
<Prometheian>
tr[7]/td[2]/select vs tr[7]/td[1]/span
Stalkr_ has joined #ruby
mrjensen has quit [Ping timeout: 255 seconds]
supermarin_ has quit [Quit: Computer has gone to sleep.]
<Prometheian>
jhass: Just the second line? Confused.. :s
supermarin_ has joined #ruby
matchaw_ has joined #ruby
IcyDragon has joined #ruby
matchaw has quit [Ping timeout: 240 seconds]
<jhass>
nah, sed command, replace @text by text()
end_guy has quit [Remote host closed the connection]
end_guy has joined #ruby
<Prometheian>
Huh?
<Prometheian>
Sorry, end of work day and head's foggy
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Takumo>
I'm wondering how to impliment Warden into a module, it appears there is no 'use' method for a Module... so how would I set create a Warden module for my app to include?
momomomomo has joined #ruby
jespada has quit [Quit: Leaving]
<Takumo>
as the docs seem to indicate I need to `use Warden::Manager` and configure it with a block
matchaw has joined #ruby
matchaw_ has quit [Ping timeout: 255 seconds]
supermarin_ has quit [Ping timeout: 255 seconds]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Takumo>
oh I'm being silly
emaxi has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
funburn has quit [Quit: funburn]
evenix has quit [Remote host closed the connection]
atmosx has quit [Remote host closed the connection]
andrewlio has quit [Read error: Connection reset by peer]
evenix has joined #ruby
<Prometheian>
jhass: Using this with page.has_content? but given how reliable this is, no idea if it worked
evenix has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
evenix has joined #ruby
cover has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
derek_c has quit [Ping timeout: 240 seconds]
<jhass>
Prometheian: expect(page).to have_xpath '//td/select[parent::td[preceding-sibling::td/label[text()="Provider"]]]' # Actually tested that one
zerun0 has quit [Quit: Leaving]
evenix has joined #ruby
sdouglas has joined #ruby
hooper has joined #ruby
crystal77 has joined #ruby
shashank_rs has quit [Read error: Connection reset by peer]
obs has quit [Quit: Konversation terminated!]
mary5030 has quit [Remote host closed the connection]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dorei has joined #ruby
<Prometheian>
testing
<dorei>
hello
<Prometheian>
It's failing.. so I guess that's good.
Zubin has joined #ruby
<Prometheian>
Should it be parent::tr?
<dorei>
let's say I have an array a, is there a more elegant way to check if the array has unique items other than a.size == a.uniq.size ?
rakm has quit [Quit: Connection closed for inactivity]
<jhass>
Prometheian: I understood your structure as <tr><td><label>Provider</td><td><select /></td></tr>
<apeiros>
dorei: um, your code doesn't do what you say it does
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<apeiros>
it does not tell you whether it *has* unique items. it tells you whether it *only* consists of unique items.
Zubin has quit [Remote host closed the connection]
<dorei>
apeiros: uhm, what's the subtle difference between those two?
<apeiros>
[1,2,2,3,4] has unique items
endash has quit [Quit: endash]
endash_ is now known as endash
<apeiros>
[1,2,3,4] has only unique items
<dorei>
okie, the second one
<jhass>
Prometheian: well then use span instead of label (and ugh, what an ugly structure)
<dorei>
i want to check it if only consists of unique items
funburn has joined #ruby
<apeiros>
then your code is probably the most concise way
mercwithamouth has joined #ruby
DouweM has joined #ruby
UserNameInvalid has quit [Read error: Operation timed out]
osx5 has joined #ruby
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
<Prometheian>
jhass: That ran clear. I'm still worried it isn't workin right. I needa go though so I'll work on this more later, thx very much!
<jhass>
dorei: ^ +1 I mean you could check the return value of uniq! but nobody will understand that
<jhass>
Prometheian: easy to test just change the text or reorder the elements or something
<Prometheian>
I'm testing against a webpage I don't have control over. :(
<Prometheian>
But anywho, thx again! Peace!
Prometheian has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140314220517]]
funburn has quit [Client Quit]
ctp has quit [Ping timeout: 240 seconds]
afex has joined #ruby
phantummm has quit [Quit: phantummm]
osx5 has quit [Client Quit]
viscera has joined #ruby
sputnik13 has joined #ruby
jobewan has quit [Quit: Leaving]
doodlehaus has quit [Remote host closed the connection]
defunct_process has quit [Read error: Connection reset by peer]
pigzzcanfly has joined #ruby
treehug88 has quit []
mary5030 has joined #ruby
afreidah1 has quit [Read error: Operation timed out]
UserNameInvalid has joined #ruby
hooper has quit [Read error: Operation timed out]
lukec has quit [Quit: lukec]
mrmargolis has quit [Remote host closed the connection]
zachallett has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
tacos1de has quit [Remote host closed the connection]
atmosx has quit [Read error: Connection reset by peer]
pskosinski has quit [Remote host closed the connection]
tacos1de has joined #ruby
pigzzcanfly has quit [Ping timeout: 255 seconds]
atmosx has joined #ruby
pskosinski has joined #ruby
lukec has joined #ruby
RichGuk has joined #ruby
rococo has joined #ruby
rayners has quit [Ping timeout: 240 seconds]
supermarin_ has joined #ruby
pskosinski has quit [Client Quit]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jackyalcine has joined #ruby
maximski has quit []
jhass is now known as jhass|off
s2013 has quit [Ping timeout: 252 seconds]
blueOxigen has quit [Ping timeout: 240 seconds]
bean has joined #ruby
sputnik13 has joined #ruby
keeguon has quit [Quit: keeguon]
Olipro has quit [Ping timeout: 246 seconds]
kitak has quit [Remote host closed the connection]
dtcrshr has quit [Remote host closed the connection]
kitak has joined #ruby
nhhagen has quit [Remote host closed the connection]
darmou has joined #ruby
viscera has left #ruby [#ruby]
CorySimmons has joined #ruby
SCommette has quit [Quit: SCommette]
sski has quit [Remote host closed the connection]
sski has joined #ruby
IcyDragon is now known as IceDragon
x77686d has quit [Quit: x77686d]
geggam has quit [Remote host closed the connection]
taf2 has quit [Quit: taf2]
<zastern>
Is there a way to specify encryption length with ruby's crypt function? It appears much shorter than the crypt passwords I create with htpasswd -d, but there's nothing I cna change but the salt
<dorei>
u mean the lenght of the output?
<zastern>
I've definitely got only a rudimentary understanding of what's happening here but presumably shorter string for same password = less good encryption?
<dorei>
it depends on the algorythm used
kitak has quit [Ping timeout: 260 seconds]
<zastern>
indeed. but crypt seems to take no arguments other than a 2 cahr salt
<zastern>
as far as I can tell
sski has quit [Ping timeout: 240 seconds]
<zastern>
the password works inside of htpasswd so presuambly its the same overall algorithm as the htpasswd command with -d flag
<zastern>
(which specifies use crypt instead of md5)
asteros has quit [Ping timeout: 255 seconds]
meatherly has quit [Remote host closed the connection]
<zastern>
Yeah I did read that but I couldn't figure out how to tie it into the ruby function
<zastern>
Since it's not directly documented
<zastern>
but this looks like what I need, thanks
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
testcore has quit [Ping timeout: 265 seconds]
uxfi has joined #ruby
<uxfi>
Hey all
<uxfi>
im super new to programming
<uxfi>
is ruby a good way to get starteD/
chipotle has quit [Quit: cya]
meatherly has quit [Ping timeout: 252 seconds]
<dorei>
no programming experience at all?
<uxfi>
well
<uxfi>
I did a little java
<uxfi>
but Hated it
<uxfi>
so not really dorei but I know its system.out.print and stuff
setient has quit [Ping timeout: 255 seconds]
<dorei>
then u'll love ruby :)
<uxfi>
yeah I get that
<shevy>
uxfi ruby can be simple if you decide to keep it simple, that includes learning it
<uxfi>
but I dont know programming :0
<uxfi>
what about lisps and stuff?
<uxfi>
heeh
<shevy>
what about it
chris_thomson has joined #ruby
habanany1 has quit [Ping timeout: 240 seconds]
<uxfi>
I wanted to try learn ruby the hard way
<shevy>
do you speak about fossil languages?
<dorei>
lol
<k776>
Hello. Is there any way to get the current module name? Specific case: I want to include a module containing some I18n helpers into rails helper modules, and they should be able to get the module it's called from. Example code: http://pastie.org/9001908
<uxfi>
But my freind who's a sofware engeineer said it wont teach you crap
<uxfi>
:P
<shevy>
the author abandoned ruby
<zastern>
I hated LRTHW. It gets real boring real fast.
<zastern>
I tried it.
<uxfi>
really?
<uxfi>
hmmm
<zastern>
I really enjoyed lynda.com's ruby videos
<uxfi>
what should I do then?
<zastern>
That's waht finally got me quasi-productive in ruby
<uxfi>
zastern: Were you new to programming?
<k776>
With classes it's a piece of cake (self.class.name), modules don't work like that :-( Any ideas how?