<bnagy>
l is now a Proc which is a bit of code that just knows how to upcase things
<zachrab>
k
<bnagy>
I can save it and use it later
<zachrab>
i see
<bnagy>
the diff between lambda and proc is fiddly and frankly not worth worrying about
<zachrab>
ha
<zachrab>
that was my next question!
<zachrab>
so essentially they are the same
<bnagy>
yeah
<zachrab>
k
Lewix has quit [Remote host closed the connection]
<zachrab>
now how does one make the choice between creating a distinct method vs a distinct proc?
<lnormous>
alainus: Is the information you need in the gist you pasted?
<Nilium>
Also fun is using &:name
<alainus>
lnormous, yes, the "host" key, val from Line 140. I highlighted it.
<bnagy>
zachrab: unless you're doing weird stuff and you're hitting problems, mostly you just want to refactor into logical methods
<zachrab>
bnagy: got it
<bnagy>
things like callback patterns use procs for example
v0n has joined #ruby
<bnagy>
I can't think of anywhere else I've used them apart from stunt programming :/
brennanMKE has quit [Remote host closed the connection]
<zachrab>
stunt programming?
<bnagy>
doing stuff a stupid way just because it's possible
<zachrab>
haha got it
<Nilium>
Which is fun until you realize you wrote it and the deep feeling of shame sets in
arya_ has quit []
<lnormous>
alainus: You just need to pull out the objects you need one at a time
Vivekananda has quit [Ping timeout: 264 seconds]
<alainus>
lnormous, @handler first, right ?
<lnormous>
ENV["async.connection"] first, if I'm reading it right
<alainus>
lnormous, and how do I access a @ type variable inside it? env["async.connection"][...?...]
robustus has quit [Ping timeout: 248 seconds]
robustus has joined #ruby
<lnormous>
alainus: So the ENV variable is a hash of name => value
<lnormous>
to access something inside it you do ENV[name], and get the value
zachrab has left #ruby [#ruby]
<lnormous>
once you've got the object it refers to, then you use that like an object, so call methods on it
zachrab has joined #ruby
<zachrab>
ill be back
zachrab has left #ruby [#ruby]
<lnormous>
so maybe ENV["async.connection"].handle.request["host"]
<lnormous>
handler, not handle
<iliketurtles>
can anyone assist decrypting using OpenSSL::Cipher class? I want to use AES-128-ECB as the cipher, and I have a key, and a base64 encoded output.
krz has joined #ruby
romdi` has quit [Ping timeout: 264 seconds]
rubarlion has joined #ruby
rubarlion has quit [Remote host closed the connection]
zachrab has joined #ruby
<zachrab>
im working on rubygems
arya_ has joined #ruby
<zachrab>
and im trying to run my version of the code base via ruby -Ilib bin/gem
<zachrab>
which was working previously however now im receiving
<zachrab>
nvmd
zachrab has left #ruby [#ruby]
<sevenseacat>
lol
<bsdbandit>
good evening everyone
brennanMKE has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
<bnagy>
iliketurtles: istr openssl stuff being a bit of a pain
Ripp__ has quit [Quit: This computer has gone to sleep]
marcdel has joined #ruby
arya_ has joined #ruby
<bsdbandit>
hello just coming over from python looking to get into web development using a framework other than rails any suggestions
<bsdbandit>
?
<bnagy>
there was a cheat sheet thing
akashj87 has joined #ruby
<bnagy>
bsdbandit: sinatra
<bsdbandit>
ok
<bnagy>
disclaimer - I don't do any web stuff at all
<bsdbandit>
thanks man
<bsdbandit>
oh ok im going to look it up
<bsdbandit>
i do alot of python but ive been hearing some great things about ruby so id figured i give it a try
arya_ has quit [Client Quit]
<bsdbandit>
:)
ckrailo has joined #ruby
smathieu has joined #ruby
marcdel has quit [Read error: Connection reset by peer]
tyman has joined #ruby
rodacato has quit [Remote host closed the connection]
marcdel has joined #ruby
<bnagy>
not sure web stuff is the best showcase for it as a language, but cool :)
<L8D>
bsdbandit: what kind of bsd do you use?
amacgregor_ has quit [Ping timeout: 240 seconds]
jorge_ has quit [Remote host closed the connection]
Anarch has joined #ruby
jorge_ has joined #ruby
<bsdbandit>
i use freebsd for servers and openbsd for firewall/vpn
<L8D>
Do you use it locally at all? Like for your laptop/desktop?
<L8D>
I use openbsd myself.
smathieu has quit [Ping timeout: 248 seconds]
<bsdbandit>
i used too in a vm
<bsdbandit>
im using a macbook pro now
<bnagy>
worst. desktop. os. evar.
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bsdbandit>
i do everything from the command line
<L8D>
what? openbsd or os x?
<bnagy>
openbsd
<bsdbandit>
well for right now os x then i will put freebsd on the macbook pro
<bsdbandit>
for good
<sevenseacat>
osx is terrible IMO
<L8D>
bnagy: why would you say that?
<L8D>
OpenBSD is the most stable thing I've ever used, and ports provides as many packages as the AUR
<bnagy>
how's that device support?
jorge_ has quit [Ping timeout: 264 seconds]
<L8D>
Well, not great unless you have a mac
marcdel has quit [Ping timeout: 264 seconds]
<L8D>
since all of apple's open source stuff is BSD-compatible.
<L8D>
and a lot of the hardware was made for BSD-style boots
dagnachew has joined #ruby
rubarlion has joined #ruby
<bsdbandit>
osx is cool just depends on what your doing i think it makes a great development platform
<L8D>
It does
johnkary has joined #ruby
<L8D>
Especially since %80 of javascript and rails development is on macs
<zendeavor>
unfair to say that
kobain has quit [Ping timeout: 252 seconds]
<zendeavor>
but okay
<sevenseacat>
lol 80% what
<L8D>
every single rails dev I've met besides myself uses OS X
<zendeavor>
anecdotal evidence really
<L8D>
well pfft
<zendeavor>
let's not take advantage of impressionable minds
rubarlion has quit [Remote host closed the connection]
<sevenseacat>
i work in a room with five other rails devs, and two of them use osx
tkuchiki_ has joined #ruby
<sevenseacat>
not saying its not quite prevalent for unknown reasons, but you cant just pull numbers out of the air
<L8D>
Well then, based on my experience, 80%.
<Quadlex>
Sure you can!
<bnagy>
L8D: google 'confirmation bias'
tkuchiki has quit [Ping timeout: 240 seconds]
<bsdbandit>
can sintara be used to code a large website
<L8D>
bsdbandit: If done right from the start
<bsdbandit>
ok
<bsdbandit>
cool
<Mattix>
is there any way to disable the buffer of popen?
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Mattix>
I don't want to process things that are not updated
rubarlion has joined #ruby
<bnagy>
Mattix: not sure what you mean, but you can set #sync on the handles
<Mattix>
I mean that if the app I execute prints too many things per second, more than what I read, I want to drop it
akashj87 has quit [Quit: Leaving]
<bnagy>
oh. No idea, doubt it's possible
cha1tanya has joined #ruby
<bnagy>
like, filehandles just Don't Work Like That afaik
dagnachew has quit [Quit: Leaving]
<Mattix>
actually it seems it's what sync do. isn't it? bnagy
<Mattix>
"When sync mode is true, all output is immediately flushed to the underlying operating system and is not buffered internally."
<bnagy>
no
<bnagy>
yeah but it's not dropped
AlSquire has quit [Quit: This computer has gone to sleep]
<Mattix>
well, I suppose the effect is the same
<Mattix>
I don't want to process it in ruby, that's it
<bnagy>
once it comes out of the app, it will be in that pipe, end of story
iliketurtles has quit [Quit: zzzzz…..]
<bnagy>
you can drop it yourself, but you can't magically have it vanish
<Mattix>
then I didn't get what sync does
<bnagy>
it's for output, usually
<bnagy>
in heavy loops and stff sometimes output won't immediately get printed or whatever
renderful has joined #ruby
<bnagy>
sync says 'whever I say print to stdout, stop everything else until you've done that, thanks'
amacgregor has joined #ruby
<bnagy>
although it's only synced as far as the os afaik, like if it were a write to a file it doesn't sync the actual physical device
<bnagy>
but that's a kettle of worms
<Mattix>
I see
<Mattix>
ok, then it's not what I mean
<Mattix>
s/mean/need/
IceDragon has quit [Quit: Space~~~]
<bnagy>
can ruby keep up if it does almost no work per line?
<bnagy>
like just stdin.each {}
<bnagy>
if so you can probably write a threaded solution and do your own drops
n_blownapart has joined #ruby
malcolmva has quit [Quit: Leaving]
urbanmonk has quit [Quit: urbanmonk]
pkrnj has quit [Quit: Computer has gone to sleep.]
ckrailo has quit [Quit: Computer has gone to sleep.]
jorge_ has joined #ruby
arietis has joined #ruby
haxrbyte has joined #ruby
MrPoT4tO has joined #ruby
arietis has quit [Client Quit]
_ffio_ has joined #ruby
malcolmva has joined #ruby
haxrbyte_ has joined #ruby
DeanH has joined #ruby
ffio_ has quit [Ping timeout: 264 seconds]
gh0zt has joined #ruby
kobain has joined #ruby
haxrbyte has quit [Ping timeout: 248 seconds]
jorge_ has quit [Read error: Connection reset by peer]
jorge_ has joined #ruby
rubarlion has quit [Ping timeout: 256 seconds]
<bsdbandit>
wow this is cool stuff
zomgbie has quit [Read error: Connection reset by peer]
zomgbie has joined #ruby
zaphrentidae12 has quit [Ping timeout: 276 seconds]
Iszak has quit [Quit: Computer has gone to sleep.]
krainboltgreene has joined #ruby
codemannew has joined #ruby
freakazoid0223 has quit [Ping timeout: 268 seconds]
marcdel has joined #ruby
Domon has quit [Remote host closed the connection]
zaphrentidae12 has joined #ruby
<bsdbandit>
ƒ
<bsdbandit>
ruby rocks
wsterling has joined #ruby
browndawg has joined #ruby
pkrnj has joined #ruby
bluOxigen has joined #ruby
brunoro_ has joined #ruby
rburton- has joined #ruby
rburton- has left #ruby [#ruby]
Lewix has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
cha1tanya has quit [Ping timeout: 264 seconds]
Domon has joined #ruby
smathieu has joined #ruby
ehaliewicz has joined #ruby
s00pcan has quit [Ping timeout: 276 seconds]
anildigital_away is now known as anildigital
iliketurtles has joined #ruby
smathieu has quit [Ping timeout: 268 seconds]
wsterling has quit [Remote host closed the connection]
s00pcan has joined #ruby
iliketurtles has quit [Client Quit]
jorge_ has quit [Remote host closed the connection]
iliketurtles has joined #ruby
jorge_ has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
sayan has joined #ruby
eldariof has joined #ruby
jorge_ has quit [Ping timeout: 240 seconds]
ehaliewicz has quit [Ping timeout: 240 seconds]
NiteRain has joined #ruby
pkrnj has joined #ruby
<L8D>
Is there any way to define arguemnts for methods in symbol#to_proc ?
tomzx_mac has quit [Ping timeout: 260 seconds]
iliketurtles has quit [Quit: zzzzz…..]
zomgbie_ has joined #ruby
Joufflu_ has joined #ruby
krainboltgreene has quit [Ping timeout: 256 seconds]
druonysus has quit [Quit: Konversation terminated!]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
kizzx2 has joined #ruby
r0bglees0n has joined #ruby
freerobby1 has joined #ruby
nignaztic has joined #ruby
xcv has quit [Remote host closed the connection]
brunoro__ has joined #ruby
splittingred has quit [Quit: splittingred]
binw has joined #ruby
coddymazet has joined #ruby
zeromodulus has joined #ruby
s00pcan_ has joined #ruby
coddymazet has quit [Client Quit]
Sp4rKy_ has joined #ruby
veer has joined #ruby
brennanM_ has joined #ruby
havenn has joined #ruby
veer is now known as Guest59825
woolite64__ has joined #ruby
elnormous has joined #ruby
s00pcan has quit [Ping timeout: 248 seconds]
davedev2_ has quit [Remote host closed the connection]
havenn is now known as havenwood_
Zespre_ has joined #ruby
davedev24 has joined #ruby
pkrnj has quit [*.net *.split]
malcolmva has quit [*.net *.split]
zomgbie has quit [*.net *.split]
brunoro_ has quit [*.net *.split]
freerobby has quit [*.net *.split]
v0n has quit [*.net *.split]
coaster has quit [*.net *.split]
cads has quit [*.net *.split]
r0bgleeson has quit [*.net *.split]
zeromodu_ has quit [*.net *.split]
joelteon has quit [*.net *.split]
nezumi has quit [*.net *.split]
binw_ has quit [*.net *.split]
havenwood has quit [*.net *.split]
Joufflu has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
phracker has quit [*.net *.split]
idoru has quit [*.net *.split]
GeekOnCoffee has quit [*.net *.split]
wallerdev has quit [Quit: wallerdev]
pkrnj has joined #ruby
jaimef_ has joined #ruby
joelteon has joined #ruby
malcolmva has joined #ruby
havenwood_ is now known as havenwood
cads has joined #ruby
Guest59825 has quit [Changing host]
Guest59825 has joined #ruby
freeayu3 has joined #ruby
_veer has quit [Disconnected by services]
Guest59825 is now known as _veer
krzkrzkrz has joined #ruby
AkashicLegend has joined #ruby
nezumi has joined #ruby
platoscave has quit [Ping timeout: 264 seconds]
druonysus has quit [Ping timeout: 240 seconds]
sayan has quit [*.net *.split]
marcdel has quit [*.net *.split]
codemannew has quit [*.net *.split]
brennanMKE has quit [*.net *.split]
krz has quit [*.net *.split]
Newbcake has quit [*.net *.split]
nazty has quit [*.net *.split]
woolite64_ has quit [*.net *.split]
predator217 has quit [*.net *.split]
Tarential has quit [*.net *.split]
freeayu__ has quit [*.net *.split]
lnormous has quit [*.net *.split]
Asher has quit [*.net *.split]
jaimef has quit [*.net *.split]
zero7 has quit [*.net *.split]
Zespre has quit [*.net *.split]
kenichi has quit [*.net *.split]
xefi_ has quit [*.net *.split]
krzkrzkrz is now known as krz
Tarential has joined #ruby
tyman has quit [Ping timeout: 248 seconds]
idoru has joined #ruby
rodacato has joined #ruby
codemannew has joined #ruby
platoscave has joined #ruby
platoscave has quit [Max SendQ exceeded]
platoscave has joined #ruby
platoscave has quit [Max SendQ exceeded]
marcdel has joined #ruby
amacgregor has quit [Read error: Connection reset by peer]
Asher has joined #ruby
platoscave has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
rodacato has quit [Remote host closed the connection]
kizzx2 has quit [Quit: Leaving.]
iliketurtles has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
d3 has joined #ruby
Guest____ has joined #ruby
phracker has joined #ruby
jalcine has joined #ruby
DonRichie has joined #ruby
tommyvyo has quit [Quit:]
johnkary has quit [Quit: @johnkary]
brennanM_ has quit [Remote host closed the connection]
brennanMKE has joined #ruby
londerson has left #ruby [#ruby]
kofno has joined #ruby
smathieu has joined #ruby
ewnd9 has joined #ruby
browndawg1 has joined #ruby
lurid_ has joined #ruby
predator117 has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
browndawg has quit [Ping timeout: 248 seconds]
coaster has joined #ruby
Domon has quit [Remote host closed the connection]
GeekOnCoffee has joined #ruby
davedev24 has quit [Remote host closed the connection]
xefi_ has joined #ruby
kenichi has joined #ruby
smathieu has quit [Ping timeout: 256 seconds]
davedev24 has joined #ruby
axeman- has joined #ruby
jorge_ has joined #ruby
Guest____ is now known as ElCapitanMarklar
Xiti has joined #ruby
davedev24 has quit [Ping timeout: 256 seconds]
jorge_ has quit [Ping timeout: 264 seconds]
osvico has quit [Ping timeout: 248 seconds]
axeman- has quit [Remote host closed the connection]
pkrnjevic has joined #ruby
pkrnj has quit [Ping timeout: 264 seconds]
wsterling has joined #ruby
pkrnjevic is now known as pkrnj
cads has quit [Quit: Leaving]
cads has joined #ruby
n_blownapart has quit [Remote host closed the connection]
wsterling has quit [Ping timeout: 268 seconds]
tonini has joined #ruby
lscott3 has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
axeman- has joined #ruby
adeponte has joined #ruby
darth_chatri1 has joined #ruby
eldariof has quit [Ping timeout: 248 seconds]
ckrailo has joined #ruby
Xiti has quit []
pkrnj has quit [Quit: Computer has gone to sleep.]
MrPoT4tO has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 264 seconds]
Tarential has quit [Quit: I shouldn't really be here - dircproxy 1.0.5]
<codemannew>
any one here use ruby becuz when i use rubymine it says like no sdk specified
<codemannew>
and its very stressful to me and im so used to visual studio and everything sigh
Xiti has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bnagy>
very few ruby devs use IDEs
<bnagy>
unless emacs / vim / sublimetext count as IDEs
platoscave has joined #ruby
<bnagy>
if you don't want to invest a ton of time learning an editor I definitely recommend sublimetext 2 though
axeman- has quit [Remote host closed the connection]
cha1tanya has joined #ruby
r0bglees0n has quit [Read error: Operation timed out]
Davey has quit [Quit: Computer has gone to sleep.]
<RubyPanther>
emacs has integrated version control... that makes it an IDE, right? I still just use bash for that stuff, though.
fgo has joined #ruby
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ewnd9 has joined #ruby
Davey has joined #ruby
BombStri- has quit [Changing host]
BombStri- has joined #ruby
BombStri- is now known as BombStrike
sleetdrop has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
arya_ has joined #ruby
Domon has joined #ruby
dross_ is now known as dross
Lewix has quit [Remote host closed the connection]
Ripp__ has joined #ruby
Joufflu_ has quit [Ping timeout: 264 seconds]
timonv has quit [Remote host closed the connection]
Joufflu_ has joined #ruby
ewnd9 has quit [Ping timeout: 268 seconds]
tagrudev has joined #ruby
sayan has joined #ruby
rshetty has joined #ruby
smathieu has joined #ruby
henrysource has joined #ruby
Shirakawasuna has joined #ruby
arya_ has quit []
locriani has joined #ruby
AkashicLegend is now known as Akashic_afk
smathieu has quit [Ping timeout: 264 seconds]
xcthulhu has quit [Quit: xcthulhu]
axeman- has joined #ruby
renderful has quit [Remote host closed the connection]
renderful has joined #ruby
ssvo has quit [Ping timeout: 240 seconds]
ryez has joined #ruby
ryez has quit [Max SendQ exceeded]
dirtnasty has joined #ruby
dirtnasty is now known as rick123
ryez has joined #ruby
ryez has quit [Max SendQ exceeded]
ryez has joined #ruby
ananthakumaran has joined #ruby
ryez has quit [Max SendQ exceeded]
marcdel has joined #ruby
ssvo has joined #ruby
ryez has joined #ruby
pontiki has joined #ruby
ryez has quit [Max SendQ exceeded]
ElCapitanMarklar has quit [Quit: Textual IRC Client: www.textualapp.com]
baroquebobcat has joined #ruby
krainboltgreene has joined #ruby
elaptics`away is now known as elaptics
csdc has quit [Ping timeout: 245 seconds]
brunoro__ has quit [Ping timeout: 264 seconds]
zachrab has joined #ruby
pranny has joined #ruby
zero7 has joined #ruby
nayfun has joined #ruby
zachrab has quit [Remote host closed the connection]
fridim__ has quit [Ping timeout: 246 seconds]
whowantstolivefo has joined #ruby
codemannew has quit []
jhn has joined #ruby
chxane has quit [Ping timeout: 264 seconds]
Gacha has joined #ruby
ChristianS has quit [Excess Flood]
ChristianS has joined #ruby
<zendeavor>
there's no proper definition for IDE
anay has joined #ruby
axeman- has quit [Remote host closed the connection]
ssvo has quit [Ping timeout: 264 seconds]
Gacha has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
axeman- has joined #ruby
<zendeavor>
they tend to include a standard featureset such as "intelligent" completions, project management, debug utility interfaces
brennanMKE has quit [Remote host closed the connection]
workmad3 has joined #ruby
pupoque has joined #ruby
saarinen has joined #ruby
havenwood has quit [Remote host closed the connection]
<zendeavor>
in reality they're just text editors with lots of other shinies =[
axeman- has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
echevemaster has quit [Quit: Leaving]
rick123 has quit [Ping timeout: 264 seconds]
thams has joined #ruby
freerobby1 has quit [Quit: Leaving.]
zachrab has joined #ruby
<Kelet>
zendeavor, I'd like to say that I believe my personal idea of an IDE is something that has it's own REPL or at least some way to 'communicate' with the language which more or less gives it access to many of those features
<Kelet>
Hence Vim alone => not an IDE for Ruby. Vim with certain plugins => an IDE for Ruby
elnormous has quit [Ping timeout: 248 seconds]
<Kelet>
etc
<Kelet>
Emacs with Ruby-Mode, not an IDE. Emacs with inf-ruby, an IDE.. I think :)
zachrab has quit [Client Quit]
_seanc_ has quit [Quit: _seanc_]
<Kelet>
But I'm sure a million people have their own arbitrary lines drawn
DeanH has joined #ruby
renderful has joined #ruby
havenwood has joined #ruby
lscott3 has quit [Quit: Quit]
ntus1017 has joined #ruby
Sp4rKy_ is now known as Sp4rKy
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
r0ber has joined #ruby
kiri has joined #ruby
DeanH has quit [Ping timeout: 256 seconds]
notbrent___ is now known as notbrent
bigkevmcd has joined #ruby
Notte has joined #ruby
Akashic_afk has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 268 seconds]
himsin has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
saarinen has quit [Quit: saarinen]
kizzx2 has left #ruby [#ruby]
kizzx2 has joined #ruby
JohnBat26 has joined #ruby
ndrei has joined #ruby
ndrei has quit [Client Quit]
Iszak has joined #ruby
smathieu_ has joined #ruby
adeponte has quit [Remote host closed the connection]
Joufflu_ has quit [Quit: Leaving]
andikr has joined #ruby
lkba has quit [Ping timeout: 248 seconds]
smathieu_ has quit [Ping timeout: 268 seconds]
jhn has quit [Ping timeout: 268 seconds]
jorge_ has joined #ruby
dawkirst has quit [Read error: Connection reset by peer]
blaxter_ has joined #ruby
ndrei has joined #ruby
Kelet has quit [Read error: Connection reset by peer]
krainboltgreene has quit [Ping timeout: 264 seconds]
threesome has quit [Ping timeout: 264 seconds]
arya_ has quit [Remote host closed the connection]
arya_ has joined #ruby
anay has quit [Remote host closed the connection]
cj3kim has joined #ruby
_Andres has joined #ruby
maroloccio has joined #ruby
arya_ has quit [Remote host closed the connection]
Hanmac has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
dEPy has joined #ruby
amacgregor has joined #ruby
Deele has joined #ruby
nijan has joined #ruby
dagen has joined #ruby
<nijan>
Hello, is there a way given a regular expression, to generate all possible matches? e.g. [az]? -> a, b, 0...
romdi has joined #ruby
freeayu3 has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
<bnagy>
nijan: for the general case, absolutely not
<bnagy>
because *
<Kelet>
nijan, Basically what bnagy is saying is that the language of a regular expression may be infinite.
<Kelet>
There could be infinitely many matches.
<Kelet>
(And oftentimes there is)
krainboltgreene has joined #ruby
<zendeavor>
man you guys just spoil all the fun of critical thinking
<Kelet>
However if you put a limit on the size of the match I suppose you could
<Kelet>
Or if the regular expression was guaranteed not to have an infinitely large language
<dEPy>
hey guys, I have to store some passwords and additional stuff which can be shared over internal chat in web app, but I have to somehow encode and later decode this on demand, any ideas?
<pontiki>
some regexps are finite
<pontiki>
in which case you could
freeayu3 has joined #ruby
<pontiki>
but any infinite regexp, nope
<bnagy>
dEPy: cryptography?
<dEPy>
users will have internal chat (1 on 1 - support) where user can input some credentials in our "secure vault" then only user on the other side can view it
<dEPy>
bnagy: yes but which kind
<hoelzro>
dEPy: what protocol are you using for your chat?
<dEPy>
hoelzro: websockets
<nijan>
How can I control if the result would be infinite or not
<nijan>
I just need a general generator
<Kelet>
Assume you have the regex a*
<hoelzro>
dEPy: I mean on top of websockets
<Kelet>
that will match a, aa, aaa, aaaa, ...
<nijan>
What's the problem if it generates infinite strings?
<dEPy>
hoelzro: Am.. Pusher?
<dEPy>
hoelzro: It's an external service
<Kelet>
Infinite strings take an infinite amount of space
sleetdrop has joined #ruby
<Kelet>
I assume you don't have an infinite amount of space
krainboltgreene has quit [Ping timeout: 248 seconds]
<Kelet>
If you do, please give me some
<hoelzro>
dEPy: I was going to suggest that if you're using something like XMPP, you could leverage the existing spec for OTR
<nijan>
But there some algorithms to handle infinitely large sets .
<hoelzro>
but at the very least, that would be a good start in terms of research
<bnagy>
Kelet: could give you half, and still have infinity left! Rude not to, really...
<nijan>
Even a condition would do actually
<Kelet>
Those algorithms might work with lazy enumerators or some other concept
<hoelzro>
nijan: maybe we should back up, and ask what you intend to do with this infinite set of strings =)
<bnagy>
nijan: I think you should actually just consider the regexp to _be_ the set of all strings it can generate and reason on that
<dEPy>
hoelzro: but we can share credentials via http, for example, when new credentials are added we can just notify user via websocket without any data, and then he can view it on demand (ajax -> decode on server -> send ) ? good idea? We're using https already.
brennanMKE has joined #ruby
<bnagy>
dEPy: don't take this the wrong way, but you are terrifying me
<nijan>
bnagy, that what i consider it, formally. Although I have no idea how it is implemented.
<dEPy>
bnagy: no offense taken, I'm not very good at this stuff...
<dEPy>
So. any suggestions are welcome. :)
<bnagy>
people who are not good at crypto should just never design systems that use it
<bnagy>
it will always lead to pain
<dEPy>
But I have to learn eventually if I'm gonna be using it.
<bnagy>
no, you really don't
<bnagy>
that's like saying you need to learn quantum mechanics in order to make fries
<nijan>
So, is there any built-in way of doing it? e.g. a* -> a, aa, aaa etc.
<hoelzro>
nijan: built-in? no
<dEPy>
bnagy: what's your solution then?
<nijan>
hoelzro, thanks.
<bnagy>
hire someone who knows what they're doing
<dEPy>
bnagy: not an option, we're a startup, no excess money for now.
<pontiki>
then learn
<pontiki>
jeepers
<bnagy>
just your credential sharing concept, ignoring how you implement it, is frightening
<bnagy>
you want users to put stuff in chat and then what, manually decrypt it at your end??
<dEPy>
bnagy: how about giving some pointers instead?
<pontiki>
why are you sharing credentials at all?
<dEPy>
bnagy: not necesarly, we can use http for everything, forget about chat
noop has joined #ruby
<pontiki>
if you need more security that https, use a vpn
<pontiki>
vpn + https
<dEPy>
beause we have clients who need stuff done on their wordpress site, and contractors who will do that, and clients most of the times give credentials for their server to the contractors
buzzybron has quit [Ping timeout: 248 seconds]
<Kelet>
nijan, Assuming your regex was a*b*c*
<bnagy>
o_O
<Kelet>
nijan, The generate could just keep going abababababababab.. forever
buzzybron has joined #ruby
<Kelet>
And you would never get anything more than that
<pontiki>
but you'd get a lot of heat out of the box
<bnagy>
nijan: well you could make generators for all the expansions
<nijan>
Kelet, I will implement hard constraints on *
ddv has quit [Changing host]
ddv has joined #ruby
thams has quit [Quit: thams]
<bnagy>
and then do a lazy cartesian product or something
<pontiki>
so you don't actually want to generate *all* the matching strings
<bnagy>
but you've got an ordering issue as well, as Kelet's a*b*c* highlights
<nijan>
I usually distinguish the formal and the implementation plan
nopper has left #ruby [#ruby]
brennanMKE has quit [Ping timeout: 264 seconds]
<bnagy>
you could google around for fuzzer data generators
<nijan>
In the formal plan, I don't want to put any limit on it. The rest is an engeneeristic problem .
<bnagy>
but they usually generate off a grammar that is less AWFUL than regexp
<Kelet>
I would probably write a tool that converts a regular expression into my internal representation of a DFA (or at least an NFA). Then, I would find all non-looping paths under my 'hard limits'. Then I would start doing somewhat of a breadth-first search on exploring the loops under my 'hard limits'.
<Kelet>
But that is a naive approach
<Kelet>
I'm sure someone who really knows finite automata could do much better
<Kelet>
There are well-known algorithms for regex => NFA and NFA => DFA
zz_michael_mbp is now known as michael_mbp
<Kelet>
Well first I would probably just think about my problem and if this is the right way to solve it
<Kelet>
Because this sounds like an odd solution to a problem
* Kelet
shrugs
<hoelzro>
yeah, I'm still waiting to hear what this is for =)
maxmanders has joined #ruby
<L8D>
Is there any way to prevent a class from overriding already existing methods?
<nijan>
The hard limit will be set for reasons that I don't care about, and for reasons that concerns the implementation. The result of the generator are actually processed as soon as they are generated, and when an optimal result is met the generator stops. ababab... could not go on forever because there would be no improvement in repeating the repetition. It's more complicated than what I told you,
<nijan>
but thanks for the suggestions.
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
buibex has joined #ruby
<Kelet>
Assuming you try a, then ab and find it improves your result, so you expand on ab and do aba, it does not improve your result so you go to abb or something
<Kelet>
Depending on the system, you might need to backtrack
<Kelet>
because there's no guarantee that ab has a better result than ba despite ab improving on a
<Kelet>
but I'm sure you know your system better than I :)
<nijan>
I just need the best result, and then compare it with the new one that is generated. The assumption is that the generator doesn't generate the same string twice.
<L8D>
anyone?
<bnagy>
well there's more issues than that
<Kelet>
And you're sure there is no way to infer your result besides randomly generating pieces of a language that may be infinite?
<nijan>
So you will always keep the best, and if there is an improvement, you simply replace $best.
<pontiki>
L8D: are you metaprogramming?
<L8D>
pontiki: Kind of
<bnagy>
nijan: since you're never able to explore the full input set, it's going to be an approximation, and most of the evolutionary approaches have issues - local maxima and stuff
sleetdrop has quit [Ping timeout: 268 seconds]
<L8D>
More of, I don't want cheating
<bnagy>
there are approaches to address them, but you have to realise they're there
<nijan>
The rules for choosing the best form are unpredictable.
<pontiki>
then maybe if the purpose is actually learning ruby, cheating should be allowed
<bnagy>
cheating should _definitely_ be allowed
<bnagy>
the next generation of rails core devs need to come from somewhere
smathieu has joined #ruby
<L8D>
well...
<L8D>
touche
<RubyPanther>
L8D: it is easy to prevent a class from over-riding a method that shouldn't be over-ridden. Just document the great reason why not to do it.
<L8D>
but if it were to become competitive, cheating would be terrible
<pontiki>
then learning ruby ceases to be the objective
<L8D>
But that's not the case for fightcodegame.com
aryatosh has joined #ruby
<L8D>
it's very competitive, and it's main purpose is for learning ruby
<L8D>
I mean javascript
* Nilium
hands bnagy some bucket full of medals for picking on Rails.
<RubyPanther>
The problem with competing over code is that the stupidest code that works is better than the most brilliant code.
<Hanmac>
RubyPanther, he could also "freeze" the class ;P
<RubyPanther>
It is like competitive walking
s00pcan has quit [Read error: Connection reset by peer]
sayan has quit [Quit: Leaving]
<Nilium>
I'm pretty sure competitive walking is a thing and some people take it seriously.
s00pcan has joined #ruby
<pontiki>
i was waiting to hear how it is like competitive walking
<RubyPanther>
I'm pretty sure coding contests are a thing, too, and some people take them seriously.
<L8D>
I think if gembots actually becomes competitive and needs something to prevent cheating, I think that I could go the route of writing the methods after the user has define the class
threesome has joined #ruby
<L8D>
defined* the class
troessner has joined #ruby
smathieu has quit [Ping timeout: 268 seconds]
<Nilium>
I'm also not sure how one cheats at coding without just copy/pasting someone else's code.
<RubyPanther>
because, you don't want to get there too fast... it is all about running, but barely enough that somebody might think "not quite." So in programming, you want to look pretty smart... but not too smart, you want your code to be surprisingly simple-minded.
<L8D>
Because in that case, if the user tries to overwrite a method, the user-written method will get overwritten anyways.
<pontiki>
nilium: by changing the parameters of the scoring function.
jorge_ has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
<pontiki>
c.f. Kobayashi Maru
<zendeavor>
by making your bot invincible
<Nilium>
aka making it awesome
alup has joined #ruby
<zendeavor>
remove collision detections
Myrth has joined #ruby
<nijan>
For those interested, I just hacked it so that all * are converted to {0, n}.
<Nilium>
It's not cheating, my bot exists outside of time and space and destroys everything.
<zendeavor>
park your bot over the other bot like a ghost with a drill
<zendeavor>
he probably only has a cannon
aantix has quit [Quit: aantix]
<nijan>
That's seemed to be the easiest solution in terms of developing time, at least.
renderful has quit [Remote host closed the connection]
emergion has joined #ruby
allsystemsarego has joined #ruby
<Nilium>
My bot has the drill that will pierce the heavens, or at least the other bots.
<zendeavor>
i bet you were the least fun to play army men with
<RubyPanther>
hanmac: class Foo; def self.omg; "ponies" end end.freeze ; puts Foo.omg ; Foo = Foo.dup ; class Foo; def self.omg; "zombies" end end ; puts Foo.omg
<pontiki>
if it will pierce the heavens, it'll need to be underneath the other bots....
Coffers has joined #ruby
daidoji has quit [Ping timeout: 248 seconds]
<zendeavor>
pontiki: under, over, position is relative when you're immaterial
jorge_ has quit [Ping timeout: 264 seconds]
<Nilium>
I wasn't aware you could actually play army men.
<zendeavor>
cowboys and indians
<Nilium>
I think we had laser tag by that point.
<zendeavor>
imaginary "i have projectiles and i can shoot you" games
* RubyPanther
shoots Nilium, "Pew! Pew! Pew!"
<Nilium>
It's hard to say you weren't hit in laser tag.
* pontiki
aims her carebears at nilium
<RubyPanther>
"Oh, ricochet, weak"
<Nilium>
I'm allergic to carebears :|
<RubyPanther>
Dude your reflective walls are really lame, man.
<zendeavor>
"nuh uh bullets cant ricochet off a people"
<Nilium>
why cat, why did you just stick your claws in my foot
<sevenseacat>
Nilium: sudden urge.
freerobby has joined #ruby
sarkis has quit [Ping timeout: 256 seconds]
niceguyjames has joined #ruby
michael_mbp is now known as zz_michael_mbp
wargasm has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
hogeo has joined #ruby
louism2wash has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
noname001 has joined #ruby
dhruvasagar has joined #ruby
ybart has joined #ruby
joonty has quit [Quit: WeeChat 0.3.7]
sarkis has joined #ruby
Al_ has joined #ruby
elaptics is now known as elaptics`away
ckrailo has quit [Quit: Computer has gone to sleep.]
Gooder has joined #ruby
rshetty has joined #ruby
nari has quit [Ping timeout: 245 seconds]
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
fixl has joined #ruby
<rickruby>
how does ruby travels a 2d array ? array[0][2] would be first element in the first row, then 2 columns down ?
Hanmac1 has joined #ruby
cha1tanya has quit [Ping timeout: 264 seconds]
<rickruby>
trying to scan an array of arrays top down then advance to the next column
<nijan>
a = [0,1,2,3][0,1,2,3] -> 2
nijan has quit []
Hanmac has quit [Ping timeout: 264 seconds]
gstamp has quit [Quit: Computer has gone to sleep.]
<Xeago>
rickruby: ruby does not think in rows or columns
<rickruby>
for i in 0...@grid_values.count
<rickruby>
for j in 0...@grid_values.count
<rickruby>
puts @grid_values[j][i]
<rickruby>
end
<rickruby>
end
<rickruby>
I get it to work that way, but confused because its in reverse of how I think it would be
<hoelzro>
for loops aren't really idomatic ruby
<rickruby>
[i][j] but instead I must go [j][i] to move top down, then left right
workmad3_ has joined #ruby
<hoelzro>
also, that'll only work if the 2d array is square
<rickruby>
yes 9x9 grid
<hoelzro>
I would create methods for each_row/each_column
<rickruby>
trying to brute force a sudoku puzzle
<hoelzro>
I see
<rickruby>
why does [j][i] move top down, left right, and not [i][j] though ?
joonty has joined #ruby
<Hanmac1>
rickruby try to replace for with each or each_with_index … its more the rubyway
<Xeago>
it really depends on how you built it
<Xeago>
as ruby does not have a concept of multi-dimensional arrays - you will have to handle that yourself and you probably initialize it different than what you expect
lkba has joined #ruby
<Hanmac1>
Xeago ruby stdlib has Matrix class but i didnt use it often
workmad3_ has quit [Client Quit]
<Xeago>
gotcha, sorry xD
<Xeago>
[[1,2,3],[4,5,6],[7,8,9]] vs [[1,4,7],[2,5,8],[3,6,9]]
<rickruby>
yes I am using the first way
Astral_ has joined #ruby
<rickruby>
and getting confused about why I'm reversing j and i
Nei has joined #ruby
DaniG2k has joined #ruby
Spooner has joined #ruby
postmodern has quit [Quit: Leaving]
<rickruby>
oh I think i see
<Xeago>
you want to print 1,2,..,8,9 right
<rickruby>
[[1,2,3],[4,5,6],[7,8,9]] so if I want to print 1, 4, 5 then 2, 5, 8 then 3, 6, 9
<rickruby>
for i 0...arr.count for j 0...arr.count
cj3kim has quit [Remote host closed the connection]
hamed_r has joined #ruby
ghr has joined #ruby
marr has joined #ruby
ephemerian has joined #ruby
zz_michael_mbp is now known as michael_mbp
maroloccio has quit [Quit: WeeChat 0.4.0]
io_syl has quit [Quit: io_syl]
Myrth has quit [Ping timeout: 256 seconds]
YaNakilon has joined #ruby
timonv has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
ybart has quit [Quit: ybart]
ybart has joined #ruby
sheeny has joined #ruby
michael_mbp is now known as zz_michael_mbp
<sheeny>
Hi all, is there a way I can make an array of strings into instance variables?
<sheeny>
["a","b","c"].each do |field| ?? end
zz_michael_mbp is now known as michael_mbp
<joonty>
sheeny: what are their values though? Do you have them in another array, or are you setting them to a default value?
<Hanmac1>
sheeny you cant and you should not
Zai00 has joined #ruby
<joonty>
hanmac1: well you can, but you shouldn't :)
krainboltgreene has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zai00 has quit [Client Quit]
aryatosh has quit [Ping timeout: 264 seconds]
<sheeny>
Im using RubyMotion to create an iOS app and when clicking a button i need to get the text from various text fields. Now the books say to use @instance.text to get them
Zai00 has joined #ruby
<sheeny>
and to save time when I am putting the text fields onto the page I am using an array of strings
michael_mbp is now known as zz_michael_mbp
smathieu has joined #ruby
<joonty>
this problem sounds like it's steeped in ruby motion context, which i know nothing about
<joonty>
but i can pretty much guarantee that there's a better way than setting instance variables from strings - I'm not even sure that would work from your description
<joonty>
sorry i can't help more though
* Hanmac1
would not trust an ruby interpreter where you need to pay for
<sheeny>
Yeah i have only started using it myself and even though there is a pragprog book which i've looked through it annoyingly doesnt seem to cover this
<sheeny>
Ill look for an alternative way
<sheeny>
maybe using some way of creating the views
<sheeny>
thanks for the help anyway :)
shaunbaker has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
jorge_ has joined #ruby
shaunbak_ has joined #ruby
sheeny has quit [Quit: Page closed]
kasper has joined #ruby
<Xeago>
Is this correct english? "…, it is not expected to change after all."
shaunbaker has quit [Ping timeout: 245 seconds]
noop has quit [Ping timeout: 256 seconds]
<illa>
I would say.. The expected behaviour is for it not to change
blackmesa has joined #ruby
<illa>
but i'm not shakespeare
<Xeago>
thanks
cha1tanya has joined #ruby
krainboltgreene has quit [Ping timeout: 264 seconds]
locriani has quit [Remote host closed the connection]
zeel has joined #ruby
jorge_ has quit [Ping timeout: 276 seconds]
locriani has joined #ruby
dash_ has joined #ruby
nayfun has quit [K-Lined]
illa has quit [Remote host closed the connection]
freerobby has joined #ruby
timonv has joined #ruby
axeman- has joined #ruby
heftig has quit [Quit: Quitting]
locriani has quit [Ping timeout: 264 seconds]
ExxKA has joined #ruby
maasha has joined #ruby
<maasha>
what is the favored gem to deal with tar.gz files?
HardFu has joined #ruby
atno has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
renderful has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
himsin has quit [Quit: himsin]
BizarreCake has joined #ruby
<rickruby>
I'm trying to check an array of values, and if the number I'm generating is not already in use, use that random number to replace a (zero) in the array
<rickruby>
scratch_pad_grid[j][i] = random_number if scratch_pad_grid[i].each {|num| num != random_number}
<rickruby>
unfortunately im still getting duplicate values
<Xeago>
I don't think you would want to use each for that
aaronmcadam has joined #ruby
<Xeago>
use all? or any?
<apeiros>
`scratch_pad_grid[i].each {|num| num != random_number}` is an expression which is always true-ish
<apeiros>
because it will always return `scratch_pad_grid[i]` (which is neither nil nor false, hence true-ish)
<Xeago>
each enumerates over the enumerable and returns the original enumerable
<rickruby>
oh i see
<Xeago>
all? and any? can be used with the block functioning as a predicate
<rickruby>
thanks I will look those up
sevenseacat has left #ruby [#ruby]
<rickruby>
getting closer..!
renderful has quit [Ping timeout: 264 seconds]
<apeiros>
also, see Array#include?
<apeiros>
no need to do the loop yourself
lkba has quit [Ping timeout: 246 seconds]
<apeiros>
and not to have omitted this: searching by iterating over the whole datastructure is inherently slow. consider using another datastructure. e.g. Set#include? is vastly faster than Array#include? (the more data the bigger the difference)
razi has joined #ruby
noop has joined #ruby
<rickruby>
yes im having big issues with crunch time
<hoelzro>
apparently I don't know what Array#product does =/
smathieu has quit [Ping timeout: 248 seconds]
<CubicE>
cartesian product of its arguments and the receiver
<hoelzro>
oh, it's zip
<hoelzro>
hmm
<hoelzro>
no, not quite
Norrin has joined #ruby
fermion has joined #ruby
emergion has joined #ruby
apeiros has quit [Remote host closed the connection]
kayloos has joined #ruby
pupoque has quit [Quit: Leaving.]
ewnd9 has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
love_color_text has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 246 seconds]
kasper has quit [Remote host closed the connection]
colonolGron has joined #ruby
colonolGron has quit [Client Quit]
ndrei has quit [Ping timeout: 276 seconds]
xcv has joined #ruby
matthewrobbins has joined #ruby
<Xeago>
What naming convention is recommended for naming files?
<Xeago>
CamelCase or snake case?
dagen has quit []
Domon has quit [Remote host closed the connection]
maz-dev has joined #ruby
<zendeavor>
files? i hate capitals in my filenames
Hanmac2 has joined #ruby
darth_chatri1 has quit [Quit: Leaving.]
blackmesa has quit [Ping timeout: 240 seconds]
<e-dard>
Hi I'm thinking that dynamic method calling is generally slow, right? Is there a big difference between self.send("#{a}_#{b}", value) and if a == "foo" && b == "bar"; foo_bar(value); end ??
Hanmac1 has quit [Ping timeout: 264 seconds]
rshetty has quit [Quit: Sleeping]
darth_chatri has joined #ruby
love_color_text has joined #ruby
tk_ has joined #ruby
axeman- has quit [Remote host closed the connection]
apeiros has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
ewnd9 has joined #ruby
b0oh has quit [Quit: Leaving.]
maz-dev has quit [Ping timeout: 246 seconds]
buzzybron has left #ruby [#ruby]
tonini has joined #ruby
shaunbak_ has joined #ruby
icecandy has joined #ruby
jalcine has quit [Excess Flood]
ewnd9 has quit [Ping timeout: 246 seconds]
matthewrobbins is now known as mcrmfc
<Spooner>
Xeago, snake case of the class/module name in the file.
kayloos has quit [Remote host closed the connection]
ffio has joined #ruby
urbanmonk has quit [Quit: urbanmonk]
amacgregor has quit [Ping timeout: 276 seconds]
_ffio_ has quit [Ping timeout: 268 seconds]
smathieu has quit [Ping timeout: 276 seconds]
jibi has quit [Quit: .]
kevinykchan has joined #ruby
zomgbie_ has quit [Read error: Connection reset by peer]
zomgbie has joined #ruby
heftig has joined #ruby
bryjbrown has joined #ruby
icecandy has quit [Remote host closed the connection]
jp- has quit [Read error: Operation timed out]
postmodern has quit [Quit: Leaving]
kofno has joined #ruby
Ripp__ has quit [Quit: This computer has gone to sleep]
jprovazn has joined #ruby
tobin has joined #ruby
sayan has joined #ruby
BizarreCake has quit [Read error: Connection reset by peer]
S0da has joined #ruby
nkts has quit [Read error: Connection reset by peer]
nkts has joined #ruby
pranny has quit [Quit: Leaving.]
bryjbrown has quit [Ping timeout: 246 seconds]
darth_chatri has quit [Quit: Leaving.]
sleetdrop has quit [Ping timeout: 246 seconds]
<rickruby>
if (scratch_pad_grid[i].sort == answer_array and transposed_scratch_pad_grid[i].sort == answer_array)
<rickruby>
seems to keep passing even though the 2nd operation is false
<rickruby>
how can I make it so: if true and true then do stuff
<bnagy>
try &&
_bart has joined #ruby
<bnagy>
in general, you probably don't want to use and in conditionals
arya_ has joined #ruby
jbpros has joined #ruby
<rickruby>
still passes with &&
<bnagy>
change your braces
<bnagy>
if that doesn't work then you're mistaken about the true status of one of those things
<rickruby>
if (scratch_pad_grid[i].sort == answer_array) && (transposed_scratch_pad_grid[i].sort == answer_array)
<rickruby>
answer_array is an array that is [1, 2, 3, 4, 5, 6, 7, 8, 9] but when that if statement passes, the faulty value looks like [2, 2, 3, 4, 5, 6, 7, 8, 9]
wallerdev has joined #ruby
<bnagy>
by 'passes' you mean the if sub clause executes?
louism2wash has quit [Quit: This computer has gone to sleep]
<bnagy>
well.. if they're not the same then the if thing isn't going to execute
pinage404 has joined #ruby
<rickruby>
the if clause controls the counter, which controls when the program ends. not sure how it is still incrementing even though the if clause should be evaluating to false and not running the counter code
<zendeavor>
me too, definitely. they even let me call them cpus sometimes.
ericson has joined #ruby
smathieu has joined #ruby
jbpros has quit [Quit: jbpros]
<rickruby>
thank you guys for the help on sudoku program, i'll give it another shot later tonight
TradeRaider_ has joined #ruby
rickruby has quit [Remote host closed the connection]
Nisstyre has quit [Quit: Leaving]
<bnagy>
de nada cabron
<TradeRaider_>
Hi. I want to construct an if statement that does something like if a== b or a==c, it should return true. What would be the code for that in ruby?
TradeRaider has quit [Ping timeout: 250 seconds]
kayloos has joined #ruby
TradeRaider_ is now known as TradeRaider
timonv has quit [Remote host closed the connection]
<bnagy>
TradeRaider_: something like if a== b or a==c
bryjbrown has quit [Remote host closed the connection]
sumark has quit [Remote host closed the connection]
pranny has quit [Quit: Leaving.]
jbpros has joined #ruby
dawkirst has joined #ruby
mikecmpbll has joined #ruby
<TradeRaider>
bnagy: I tried it in console and it doesn't work.
anonymuse has quit [Remote host closed the connection]
twinkleH1od is now known as twinklehood
freeayu3 has quit [Remote host closed the connection]
anonymuse has joined #ruby
sheeny has joined #ruby
fernandoaleman has joined #ruby
buibex has quit [Remote host closed the connection]
dimension has left #ruby [#ruby]
geekbri has joined #ruby
smathieu has quit [Ping timeout: 248 seconds]
andrew565 has joined #ruby
sambao21 has joined #ruby
<sheeny>
Hi all, More advice than anything.. I am making some apps in work and they need to be able to "upload" the results as such. Basically its just a simple AR type model and children (gas_assessment has many wells.) I am planning on creating a web facing app which will receive this upload and then they will be able to view the results on their too. I was just wondering what would be the best way to go about doing an upload like that?
<Hanmac1>
sheeny: isnt that more an #rubyonrails question?
<sheeny>
hmm not really - the apps are iOS
<sheeny>
using RubyMotion
keanehsiao has joined #ruby
hamed_r has quit [Ping timeout: 240 seconds]
r_b00f has joined #ruby
<Hanmac1>
sheeny: but the rails guys may know more about AR than we
<sheeny>
okay will ask there
<sheeny>
thanks
rshetty has quit [Quit: Sleeping]
sheeny has quit [Client Quit]
hamed_r has joined #ruby
mmitchel_ has joined #ruby
anonymuse has quit [Ping timeout: 276 seconds]
tobin has joined #ruby
arya_ has joined #ruby
darth_chatri has quit [Ping timeout: 245 seconds]
darth_chatri has joined #ruby
illa has quit [Quit: Leaving]
andrew565 has quit [Quit: andrew565]
andrew565 has joined #ruby
rdark_ has joined #ruby
rdark has quit [Ping timeout: 264 seconds]
alem0lars has quit [Ping timeout: 256 seconds]
arya_ has quit [Remote host closed the connection]
_bart has quit [Remote host closed the connection]
AkashicLegend has joined #ruby
Tricon has joined #ruby
kaspernj has left #ruby [#ruby]
<bsdbandit>
good morning all
kaspernj has joined #ruby
_droid has quit [Ping timeout: 264 seconds]
niceguyjames has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
<headshot>
andrew565: for ops stuff?
dayepa has joined #ruby
<headshot>
or all internal stuff?
baordog has joined #ruby
RubNoob has joined #ruby
wallerdev has joined #ruby
asobrasil has joined #ruby
<andrew565>
All internal chat. We're currently using Jaconda, but with Google (our primary xmpp server provider) moving away from XMPP, we figured we'd switch to a private IRC server.
<RubNoob>
hello - does anyone have any recommendation for gems that provide for creating an installer (i.e. using an answers file to do a bunch of things)?
<headshot>
interesting
<andrew565>
Better logging, more features, and a couple of our guys are on IRC all day anyways.
<headshot>
there are enough gui clients in the world to satisfy most anyone, so shouldn't be much of a struggle
AkashicLegend has joined #ruby
<headshot>
and cli clients for the rest of us
dv__ has joined #ruby
dv_ has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
burlyscudd has quit [Quit: Leaving.]
anildigital_away is now known as anildigital
S0da has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
juarlex has joined #ruby
Al_ has quit [Read error: Connection reset by peer]
Al_ has joined #ruby
freerobby has joined #ruby
chiel_ is now known as chiel
anay has quit [Remote host closed the connection]
kaspernj has quit [Quit: Leaving]
kaspernj has joined #ruby
love_color_text has joined #ruby
AkashicLegend has quit [Quit: AkashicLegend]
julian-delphiki has quit [Quit: Leaving]
Deele has joined #ruby
burlyscudd has joined #ruby
tomzx_mac has joined #ruby
niceguyjames has joined #ruby
sarkis has joined #ruby
_whitelogger has joined #ruby
goodgame has joined #ruby
alem0lars has quit [Quit: Leaving]
nitish has joined #ruby
nitish has joined #ruby
nitish has quit [Changing host]
hesco has left #ruby [#ruby]
niceguyjames has quit [Client Quit]
jonkri has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
kobain has joined #ruby
awc737 has quit [Ping timeout: 245 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
io_syl has joined #ruby
shaunbaker has quit [Remote host closed the connection]
mansi has joined #ruby
awc737 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
maxmanders has joined #ruby
devoldmx3 has quit [Read error: Connection reset by peer]
brbcoding has joined #ruby
nitish has quit [Ping timeout: 276 seconds]
BillCriswell has joined #ruby
interactionjaxsn has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
maasha has quit [Quit: Page closed]
jbpros has quit [Quit: jbpros]
estevao has joined #ruby
Fuzai has quit [Remote host closed the connection]
Fuzai has joined #ruby
kasper_ is now known as kasper
devoldmx has joined #ruby
kasper is now known as kaspergrubbe
kirun_ has quit [Ping timeout: 246 seconds]
S0da has quit [Remote host closed the connection]
io_syl has quit [Quit: io_syl]
Uranio has joined #ruby
noop has quit [Ping timeout: 246 seconds]
io_syl has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
interactionjaxsn has quit [Remote host closed the connection]
io_syl has quit [Client Quit]
interactionjaxsn has joined #ruby
Mattix has quit [Ping timeout: 268 seconds]
niceguyjames has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
amacgregor has joined #ruby
shaunbaker has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
interactionjaxsn has quit [Ping timeout: 268 seconds]
ntus1017 has joined #ruby
pipework has joined #ruby
TheRealPygo is now known as pygospa
anildigital is now known as anildigital_away
lebek has joined #ruby
devoldmx has joined #ruby
mmitchell has joined #ruby
tommyvyo has joined #ruby
interactionjaxsn has joined #ruby
smathieu has joined #ruby
yshh has joined #ruby
kirun_ has joined #ruby
wmoxam has joined #ruby
rodacato has joined #ruby
MrZYX|off is now known as MrZYX
d3 has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
love_color_text has quit [Read error: Connection reset by peer]
_bart has quit [Remote host closed the connection]
KarlHung1s is now known as KarlHungus
_bart has joined #ruby
ssvo has joined #ruby
anonymuse has joined #ruby
_bart has quit [Remote host closed the connection]
_bart has joined #ruby
allaire has quit [Quit: allaire]
erry_ has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
sfti has joined #ruby
ananthakumaran has joined #ruby
cha1tanya has joined #ruby
anonymus_ has joined #ruby
sr78ger has joined #ruby
anonymuse has quit [Read error: Connection reset by peer]
erry_ is now known as erry
shouya has joined #ruby
ldnunes has quit [Ping timeout: 264 seconds]
joonty has quit [Quit: WeeChat 0.4.1]
angelixd_ is now known as angelixd
shouya1 has quit [Ping timeout: 245 seconds]
joonty has joined #ruby
ner0x has quit [Ping timeout: 245 seconds]
anildigital is now known as anildigital_away
<Fuzai>
How do you downgrade a gem? I've got 8 servers and one of the servers went though an update and now my application won't start? http://pastebin.com/yYqMGLkK
<Fuzai>
`raise_if_conflicts': Unable to activate em-websocket-0.5.0, because http_parser.rb-0.6.0.beta.2 conflicts with http_parser.rb (~> 0.5.3) (Gem::LoadError)
<momomomomo>
Set the gem version in your gem spec Fuzai if you're using bundler
Adawerk_ has quit [Quit: Leaving]
<Fuzai>
i'm not that i'm aware of
<Fuzai>
i'll see what google tells me about bundler
_droid has joined #ruby
DeanH has joined #ruby
<momomomomo>
gem install --version 'your version'
<Fuzai>
ty
<zendeavor>
see what bundler tells you about bundler
<Fuzai>
ty
Heskie has joined #ruby
Neomex has joined #ruby
ckrailo has joined #ruby
Neomex has quit [Client Quit]
devinus has quit [Quit: devintorr.es]
lindenle has joined #ruby
jlebrech has joined #ruby
senayar has quit [Remote host closed the connection]
ldnunes has joined #ruby
ZOGM has joined #ruby
<ZOGM>
1
anildigital_away is now known as anildigital
nomenkun has quit [Remote host closed the connection]
rshetty has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
zeade has joined #ruby
sr78ger has quit [Quit: Qui]
bluOxigen has joined #ruby
devinus has joined #ruby
brennanMKE has joined #ruby
burlyscudd has joined #ruby
bigoldrock has joined #ruby
adeponte has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
devoldmx has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
ybart has quit [Quit: ybart]
<ZOGM>
is this channel dead?
bakingbread has left #ruby ["part"]
<realDAB>
i don't think so
jonathanwallace has quit [Ping timeout: 246 seconds]
locriani has joined #ruby
Nanuq has quit [Ping timeout: 245 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
flyinprogramer has joined #ruby
<flyinprogramer>
anyone know or understand why rubygems publishes/supports a 'specs.4.8.gz' file
<flyinprogramer>
or what the logic was behind that file ever being a thing ?
locriani has quit [Read error: Connection reset by peer]
locriani_ has joined #ruby
Inoperable has joined #ruby
ldnunes has quit [Ping timeout: 246 seconds]
<flyinprogramer>
it would seem reasonable that we could just ask the API for a spec file… so why zip them up all in one place?
* flyinprogramer
is missing the point
thams has quit [Quit: thams]
eregon_ is now known as eregon
dagobah_ has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros>
flyinprogramer: you'd have to ask somebody like drbrain or qrush, but I'd assume it's a performance thing
<apeiros>
do you have the slightest idea how many million, probably billion, requests per day go to rubygems.org? an API call is always orders of magnitudes worse on CPU than a static file.
<flyinprogramer>
apeiros: i would normally agree with you; but -- how/when does the gz get rebuilt ?
<flyinprogramer>
and the operation of building that is at least O(n) where is n is the number of gems, ever
sambao21 has joined #ruby
matti has joined #ruby
tvw has quit []
<apeiros>
flyinprogramer: but your O(n) is n being gems, not requests
<flyinprogramer>
true
<apeiros>
and I don't think it's necessarily O(n)
<jlebrech>
I'm changing a sidekiq worker to use event machine and want to iterate with async callbacks, am I doing this right? https://gist.github.com/jlebrech/6055020
<apeiros>
or at least not O(n) with n being "all gems"
<flyinprogramer>
and I don't think it's necessarily O(n) <--- tell me more ?
jonahR has joined #ruby
sailias has quit [Ping timeout: 256 seconds]
<flyinprogramer>
we're using a product to internally host our ruby gems; it seems to have a massive memory leak around building that file; which has spawned my interest into how the Gospel has solved the problem
_seanc_ has quit [Quit: _seanc_]
<flyinprogramer>
and understanding the purpose of the file in the first place
<apeiros>
not many host rubygems themselves via a custom gemserver.
<apeiros>
you're using geminabox?
_bart has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
<jonahR>
To anyone interested, here is a two day free hallpass to CodeSchool, anyone feel free to use it http://go.codeschool.com/9QTYTQ
<apeiros>
anyway, whichever product it is - report it as a bug
<Xeago>
flyinprogramer: only updated gems
<Xeago>
so you have a subset of n that gets updated
<Xeago>
(it is possible to replace files/directories in the zip file format
ndrei has quit [Ping timeout: 276 seconds]
<apeiros>
Xeago: I think that's latest_specs.4.8.gz
<apeiros>
specs.4.8.gz is the full set iirc
<Xeago>
no idea what you talk about btw :)
<flyinprogramer>
apeiros: right he's saying splice in the diff
ner0x has quit [Read error: Connection reset by peer]
<apeiros>
"he"?
poga has joined #ruby
<flyinprogramer>
or she, or it -- sorry!
<apeiros>
same question really :)
<apeiros>
who?
<flyinprogramer>
oh - Xeago
dhruvasagar has joined #ruby
<apeiros>
now I'm confused
timonv has quit [Remote host closed the connection]
blueOxigen has joined #ruby
Catbuntu has joined #ruby
axeman- has joined #ruby
<flyinprogramer>
so you have specs that is the holly grail with X number of gems in it; you know Y number have since been created since rebuilding the gz; simply splice Y into the specs file; and tada you've created a spec.gz in Y time not X+Y time
<Xeago>
feel free to refer to me as xeago, for years I have had the desire to be of a different sex than I really am
<blitz>
they maintain order of insertion in new ruby
<ericwood>
right
<apeiros>
doesn't change that rubys hashes are ordered, though :)
Banistergalaxy has joined #ruby
<apeiros>
I think it's misnamed now
<Xeago>
unfortunately :\
<apeiros>
but I don't think it's bad to have them ordered
<ericwood>
yeah, it should be called OrderedHash
<apeiros>
there's enough situations where it's good
<apeiros>
e.g. reading/writing yaml files
hamakn has quit [Remote host closed the connection]
<blitz>
as long as it isn't a performance hit, who cares
<ericwood>
true, but it should be separate from vanilla hashes
<apeiros>
it's a memory hit
<ericwood>
I want normal hashes dammit
<apeiros>
ordered hashes add a DLL to the hashmap
<apeiros>
ericwood: make a gem?
<ericwood>
NO
<ericwood>
:(
hamakn has joined #ruby
<apeiros>
shouldn't be too hard to extract the DLL from rubys hash.c
<blitz>
there's probably one out there already
<apeiros>
that too
<Xeago>
there is already hwia, then we will get hwoo
<apeiros>
hwia-- :(
<apeiros>
booooo
<ericwood>
I'm fine with what we already have, I just am morally opposed to hashes being orderedhashes by default
tk_ has quit [Quit: ばいばい]
zeade has quit [Quit: Leaving.]
mahmoudimus has joined #ruby
<apeiros>
Xeago: see, by saying array of arrays I avoided the whole drama :-p
smathieu_ has quit [Ping timeout: 276 seconds]
<Xeago>
yeyea, sorry :)
browndawg has joined #ruby
<apeiros>
(would have, but then you brought tuples up! dang)
<apeiros>
;-)
zeropx has joined #ruby
SHyx0rmZ has quit [Ping timeout: 268 seconds]
niklasb has joined #ruby
<Xeago>
surprises me stdlib doesn't provide a tuple thing
<ericwood>
yeah
<ericwood>
python has them
<Xeago>
which is set backed
<ericwood>
we should have them too!
<apeiros>
Xeago: what'd be the distinguishing feature from just using an array?
<TheBlackMan>
Why do you need tuples?
<apeiros>
immutability?
<ericwood>
yeah
anay has joined #ruby
mawaldne has joined #ruby
<ericwood>
they're also great for returning pairs of data
<TheBlackMan>
you can make arrays immutable
daum has joined #ruby
<TheBlackMan>
you can monkey patch that ericwood into array
<ericwood>
that's just wrong though
<apeiros>
module Kernel; def T(*args); args.freeze; end; module_function T; end
<ericwood>
feels dirt
<TheBlackMan>
*monkeypatch returning pairs of data*
<ericwood>
*dirty
<apeiros>
T(1,2,3) # there, tuples :D
<daum>
hm with active record how do i view the SQL that it is trying to run? Have a command which I think should be pulling back results but doesn't appear to be working so want tos ee what the SQL it generated is
jetblack has joined #ruby
<TheBlackMan>
daum: .to_sql?
<ericwood>
daum: you can do to_sql on the ActiveRecord thingy
<TheBlackMan>
like always, the black man is faster.
<ericwood>
also, when it runs the crap in the console it should be printing out the raw SQL it's running
<Xeago>
python has them as a language feature
<daum>
ok thanks!
seich- has joined #ruby
<apeiros>
python is not a role model >:(
<interactionjaxsn>
TheBlackMan: in some events that isn't always a good thing
<TheBlackMan>
python is a regression
<apeiros>
(then again, what is?)
baroquebobcat has joined #ruby
hamakn has quit [Ping timeout: 245 seconds]
<Xeago>
SYCASML
<Xeago>
if I did remember that correctly
alex__c2022 has joined #ruby
kiri has quit [Ping timeout: 240 seconds]
<TheBlackMan>
whats that mean, Xeago
axeman- has quit [Read error: Connection reset by peer]
<Xeago>
an ancient language
<Xeago>
extinct if not for museum installations not to be touched
sambao21 has quit [Quit: Computer has gone to sleep.]
ColKurtz has joined #ruby
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
axeman- has joined #ruby
twoism_ has joined #ruby
terrellt has joined #ruby
locriani_ has quit [Remote host closed the connection]
locriani has joined #ruby
dhruvasagar has joined #ruby
Heskie has quit []
havenwood has joined #ruby
<havenwood>
hallooo
<apeiros>
oy!
<apeiros>
get off my lawn!
alup has quit [Quit: Leaving]
<_droid>
hi people, I'm new to ruby and wanted to start learning the language. I have learned object orient programming, the academic way. I have tried railsforzombies.org but it brought up more questions than I expected. So my question to the channels is: "Does anyone have a link that describes ruby a little more?"
<apeiros>
;-)
devinus has quit [Quit: devintorr.es]
<TheBlackMan>
_droid: don't start in rails to learn ruby
<_droid>
TheBlackMan: ok do you have a recommendation?
<TheBlackMan>
_droid: tryruby.org
johnnyfuchs has quit [Read error: Connection reset by peer]
JZTech101 has quit [Read error: Connection reset by peer]
<CubicE>
TheBlackMan: I just realized I said that as if it was a bad thing
iliketurtles has joined #ruby
<CubicE>
TheBlackMan: I actually think it's a good idea
<_droid>
Well it lies of how good the teacher is at teaching java
Banistergalaxy has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
iliketurtles has quit [Max SendQ exceeded]
_seanc_ has joined #ruby
iliketurtles has joined #ruby
<CubicE>
TheBlackMan: Classrooms aren't terribly great places to learn programming, and in any real life context you'd have to learn how to use technologies on your own anyway
joast has quit [Quit: Leaving.]
sleetdrop has quit [Quit: Computer has gone to sleep.]
ngoldman has quit []
blaxter_ has quit [Client Quit]
i_s has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
zeel has quit [Remote host closed the connection]
i_s has quit [Remote host closed the connection]
tatsuya_o has quit [Remote host closed the connection]
i_s has joined #ruby
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
renderful has joined #ruby
codecop has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
codecop has joined #ruby
havenwood has joined #ruby
i_s_ has joined #ruby
i_s has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
marcdel has joined #ruby
rshetty has quit [Quit: Sleeping]
sambao21 has quit [Client Quit]
joast has joined #ruby
shouya has quit [Ping timeout: 240 seconds]
sterNiX has joined #ruby
tobyo1 has joined #ruby
dankest has joined #ruby
roaet has joined #ruby
procrastinat0r has joined #ruby
timonv has joined #ruby
geekbri_ has joined #ruby
_veer has quit [Ping timeout: 240 seconds]
shouya has joined #ruby
<roaet>
Is there a command line tool much like python -mjson.tool that can have input piped into it expecting a ruby hash? I'd like to get a value from a hash returned from a program but to write another program to do so seems wasteful if I could just pipe it in.
_veer has joined #ruby
xardas has quit [Read error: Connection reset by peer]
xcthulhu has quit [Ping timeout: 245 seconds]
xcthulhu has joined #ruby
sambao21 has joined #ruby
brunoro__ has joined #ruby
geekbri has quit [Ping timeout: 276 seconds]
_seanc_ has quit [Quit: _seanc_]
ffranz has quit [Quit: Leaving]
ffranz has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
interactionjaxsn has joined #ruby
smathieu has joined #ruby
<havenwood>
roaet: You want to serialize some data?
mrsolo has joined #ruby
shouya has quit [Ping timeout: 246 seconds]
<dobry-den>
i don't think learning rails and ruby at the same time is a bad idea
k610 has quit [Quit: Leaving]
<hanmac1>
dobry-den: imo you should learn ruby before rails
<dobry-den>
if we were immortal, i'd probably recommend people to learn assembly first and learn one layer of abstraction at a time.
<roaet>
havenwood: well I have a program, fpm, that returns a hash. I just want to get a single value from it.
<roaet>
I'm not a ruby developer so it's kind of foreign to me.
<dobry-den>
you only need very entry-level knowledge of ruby to use rails. vanilla rails is really just a set of heuristics like @abc = 1 where @abc is magically available in product.haml.
msch` is now known as msch
<TheBlackMan>
dobry-den: depends if he wants a ruby job or rails job
_veer has quit [Ping timeout: 246 seconds]
<dobry-den>
nah, depends what inspires them
<terrellt>
Even if you want a rails job you better be pretty good at ruby. >.>
<dobry-den>
i disagree
interactionjaxsn has quit [Ping timeout: 268 seconds]
Zai00 has quit [Quit: Zai00]
<dobry-den>
well, "good at ruby" is so general. but you don't need to be able to do any ruby backflips in standard rails workflows
<hanmac1>
dobry-den: while my education for my job i learned Asm, than C, than C++ ;P
brunoro__ has quit [Ping timeout: 264 seconds]
burlyscudd has quit [Quit: Leaving.]
<dobry-den>
there's also more to heaven and hell than work. very few people guess correctly when they try to optimize their education for a particular job
<dobry-den>
for the same reason it's hard to choose the right degree when you're 17/18
<terrellt>
What do you consider ruby backflips?
shouya has joined #ruby
<waxjar>
premature optimisation? :P
<TheBlackMan>
terrellt: able to commit to rubinius master.
<dobry-den>
terrellt: most of the metaprogramming constructus and semantics
Krajsnick has joined #ruby
<TheBlackMan>
dobry-den: ^ I need an education. You work for a university?
<dobry-den>
look at any CRUD rails app. you wont find much demanding use of ruby.
<TheBlackMan>
I'm not racist. My handle just happens to be black-related.
<dobry-den>
rails is the hard part
<terrellt>
TheBlackMan: *Does*
<TheBlackMan>
terrellt: Really?
sterNiX has quit [Quit: there aint no destiny]
<terrellt>
dobry-den: I'm not sure I'd expect them to be perusing rubinius in their free time, but I'd expect any Rails people we hire to be able to peruse the source code of the gems they use.
<terrellt>
TheBlackMan: Yeah.
<TheBlackMan>
terrellt: Aww yeah. -applies-
<lectrick>
This day was going so well, until I swapped the "development" and feature branch names in a rebase and force push, so I ended up rebasing everyone's development branch to my feature branch and then force pushing it. /fuck
rdark_ has quit [Quit: leaving]
<terrellt>
lectrick: -f is almost always no bueno. =(
RubNoob has joined #ruby
<dobry-den>
terrellt: Sure, but reading gem source is often hard because of Rails interop rather than just Plain Ol Ruby. Also, I'm just talking about someone starting Ruby and Rails.
nkts has joined #ruby
<RubNoob>
hello - can someone help me/point me at a tutorial on how to run capistrano using Capistrano::CLI within a ruby script for tasks that are namespaced?
nkts has quit [Max SendQ exceeded]
<dobry-den>
You can learn them in parallel (just spend the first day understanding how variables work and basic class/method semantics)
nkts has joined #ruby
<havenwood>
roaet: Can you give an example of the fpm hash output and desired result?
<havenwood>
waxjar: just enough Ruby looks really insteresting
jonahR_ has joined #ruby
<havenwood>
succinct
<waxjar>
it's a great introduction, imo
ffio has quit [Read error: Connection reset by peer]
jonahR has quit [Ping timeout: 248 seconds]
jonahR_ is now known as jonahR
<roaet>
havenwood: {:timestamp=>"2013-07-22T15:22:34.382728+0000", :message=>"Created deb package", :path=>"/var/deploys/faro-api/faro-api_0.1-5_amd64.deb"} want :path, but I made a sed/awk thing that works alright.
jaimef_ has quit [Excess Flood]
<roaet>
works alright: cat derp | sed 's/[{}:" ]//g' | sed 's/,/\n/g' | awk -F"=>" 'toupper($1) == "PATH" {print $2}'
<roaet>
but it's ugly :(
smathieu has quit [Remote host closed the connection]
brunoro__ has joined #ruby
<dobry-den>
I've been using Fish shell (fishshell.com) for a week now. I love it. Anyone else ever give it a shot?
_carloslopes has joined #ruby
<dobry-den>
#ruby probably not the best place to ask due to prevalent use of RVM
smathieu has joined #ruby
<slash_nick>
dobry-den: yeah i have a beef with it though... can't use it
<waxjar>
yes! switched two it when they announced 2.0, never went back to bash
cj3kim has joined #ruby
<slash_nick>
waxjar: dobry-den: try something like... git diff that_file_of_yours ... then vim !$
<dobry-den>
2.0 is worth switching to. apt-get install fish gets some 1.x version
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maxmanders has joined #ruby
<RubyPanther>
one of the first things I noticed about it is the "anti-features" section where it claims "Does not require Rubies be installed into your home directory"... yeah but neither do any of the ones that came before...
roaet has left #ruby ["WeeChat 0.3.7"]
<joelteon>
"does not cause prostate cancer"
mansi has joined #ruby
kaspergrubbe has joined #ruby
jaimef has joined #ruby
<slash_nick>
dobry-den: that's pretty cool...
Notte has quit [Remote host closed the connection]
<dobry-den>
for times i want 100% posic interop, i just `bash` it
<slash_nick>
much prefer !$... but
<RubyPanther>
I like that there are lots of options, but when the newest one is claiming fake differences, it gives me the impression they whipped it out without looking at the others. Which is fine... but makes it less likely I would even try it.
RichardBaker has quit [Quit: RichardBaker]
jeffreylevesque_ has joined #ruby
saarinen has joined #ruby
<zendeavor>
dobry-den: you have to bash --posix then; if you want true posix interoperability, get dash.
<waxjar>
you can write a function/alias that takes the first line of history
<zendeavor>
dobry-den: also set POSIXLY_CORRECT=1
seich- has quit [Ping timeout: 240 seconds]
trepidaciousMBR has quit [Ping timeout: 248 seconds]
<dobry-den>
zendeavor: good point. i really just meant 'when i want to use something that i'm used to using with bash/zsh but it doesnt work with fish and i haven't yet figured out why'
<dobry-den>
afk
alainus has left #ruby ["Leaving"]
jeffreylevesque has quit [Ping timeout: 240 seconds]
<waxjar>
i really dig its syntax colouring
anderson has joined #ruby
<zendeavor>
i find it to be an eyesore
vlad_starkov has quit [Remote host closed the connection]
Spooner has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
<zendeavor>
zsh has inline syntax highlighting with some module too
blueOxigen has quit [Ping timeout: 268 seconds]
<Nilium>
I prefer to just stick to bash/zsh
<havenwood>
RubyPanther: But it *wooould* be an antipattern if someone ever did it! :P
<Nilium>
I'd use zsh if it didn't have minor odd quirks that make it different from bash when it comes to scripts
<RubyPanther>
havenwood: lol it sure would, I'd hate to see what that code would look like
arietis has joined #ruby
<zendeavor>
Nilium: interactive != scripting
soulcake has joined #ruby
<RubyPanther>
I considered zsh but chose csh instead, then by the time csh quit working with common scripts, zsh had already been dead and abandoned for years
<zendeavor>
don't script anything in zsh, ever
<zendeavor>
zsh dead and abandoned?
JZTech101 has joined #ruby
<zendeavor>
did you get your shells mixed up
<zendeavor>
zsh released v5 last year
<RubyPanther>
yeah, that was like 2001 or so
<havenwood>
xsh
<Nilium>
Unfortunately, sourcing something means it's somewhat unavoidable.
<zendeavor>
Nilium: no matter what shell you use, you have to write "libraries" in strictly posix style
<zendeavor>
well, except for csh family and fish
<zendeavor>
then you're screwed anyway
<Nilium>
And zsh.
<zendeavor>
nope
<zendeavor>
zsh will gobble up a posix script like nobody's business
<waxjar>
you're not screwed, you can still execute the scripts with bash
<zendeavor>
waxjar: sourcing.
jonathanwallace has joined #ruby
DanKnox is now known as DanKnox_away
<RubyPanther>
It was briefly popular in the 90s, when csh was too weak, bash largely unknown
<zendeavor>
Nilium: not to be persnickety, but i'd be interested in a posix style script that zsh can't source
gildo has quit [Remote host closed the connection]
<Nilium>
I would too.
<zendeavor>
then you've lost me about 3 minutes ago
sailias has joined #ruby
Deele has quit [Ping timeout: 240 seconds]
brotatos has joined #ruby
troessner has quit [Ping timeout: 245 seconds]
<brotatos>
Is it possible to open a file for read and write?
<Nilium>
Problem is the script I had to source was not posix-style, and unfortunately wasn't mine either, and I didn't really want to go in and rewrite it.
<RubyPanther>
but then almost everybody that wanted to script that much had switched to Perl already
Krajsnick has quit [Remote host closed the connection]
<Mon_Ouie>
Well, that doesn't prevent you from writing to the string and the file simultaneously
<Mon_Ouie>
Oh, wait, you're actually opening an editor to the file
elaptics is now known as elaptics`away
<Mon_Ouie>
Then I'd just reread everything anyway — the user might change the whole file
cj3kim has quit [Read error: Connection reset by peer]
<Mon_Ouie>
You can use File.readlines to make it shorter
cha1tanya has quit [Quit: cha1tanya]
cj3kim has joined #ruby
elnormous has quit [Ping timeout: 264 seconds]
Notte has quit [Remote host closed the connection]
xcthulhu has quit [Ping timeout: 268 seconds]
havenwood has quit [Remote host closed the connection]
jprovazn has quit [Quit: Odcházím]
pinage404 is now known as zz_pinage404
x1337807x has joined #ruby
louism2wash has quit [Quit: Leaving]
kaspergrubbe has quit [Remote host closed the connection]
<matti>
Mon_Ouie: ;]
rezzack has joined #ruby
jprovazn has joined #ruby
ewag has joined #ruby
<brotatos>
Mon_Ouie: oh; so just commit += IO.readlines(filename)?
<brotatos>
I wonder if the string concatenation would work that way..
gustavn has quit [Read error: Connection reset by peer]
kirun has joined #ruby
gustavn has joined #ruby
maxmanders has joined #ruby
burlyscudd has quit [Quit: Leaving.]
xcthulhu has joined #ruby
BizarreCake has joined #ruby
Es0teric has joined #ruby
<Mon_Ouie>
No, readlines returns an array with all the lines; if you don't need to process lines individually you can just use File.read
SoonerBourne has joined #ruby
<brotatos>
aww a.rb:25:in `+': no implicit conversion of Array into String (TypeError)
seich- has joined #ruby
<brotatos>
Sweet.
axeman- has quit [Remote host closed the connection]
<brotatos>
Thanks, Mon_Ouie
anay has joined #ruby
saarinen has joined #ruby
burlyscudd has joined #ruby
thatRD has quit [Ping timeout: 264 seconds]
SoonerBourne has quit [Client Quit]
SoonerBourne has joined #ruby
flyinprogramer has joined #ruby
flyinprogramer has quit [Client Quit]
phantummm has joined #ruby
kirun has quit [Ping timeout: 264 seconds]
locriani has quit [Remote host closed the connection]
SoonerBourne has quit [Client Quit]
locriani has joined #ruby
SoonerBourne has joined #ruby
<Eiam>
hello #ruby
<Eiam>
my love affair with Ruby continues, and its only monday
<Eiam>
what a fun language.
<Eiam>
that is all.
<breakingthings>
woah man don't go telling the world about that
<breakingthings>
its illegal you know
<breakingthings>
you could lose your kids
<Eiam>
breakingthings: well when they find out I beat them
<Eiam>
ruby will be the least of my problems!
pinage404 has joined #ruby
pinage404 has quit [Client Quit]
<breakingthings>
aaaaand we just became a 1960s sitcom
arietis has joined #ruby
<breakingthings>
thanks everybody have a good one
<Eiam>
breakingthings: =)
ravster has joined #ruby
<Eiam>
(I have found spankings to be wholly ineffective on my kids so I moved onto other methods of coercion & getting what I want)
thatRD has joined #ruby
<WPA3>
Hi guys!
<Eiam>
WPA3: HI!
<Eiam>
(girls too I'm sure)
eldariof has quit []
timonv has joined #ruby
locriani has quit [Ping timeout: 248 seconds]
eldariof has joined #ruby
<breakingthings>
Eiam: does that involve spiking their drinks with nyquil
<WPA3>
Did someone already installed Catarse on Heroku ?
anay has quit [Remote host closed the connection]
<Eiam>
breakingthings: no, lol. It's different for each of my kids (I have 3) and what works on one doesn't work on the other. Honestly, for one of them I'm still searching for something, cause she's already got "fuck you and everything you say" written all over her face whenever our wills battle. and she's 4 =(
<breakingthings>
lol
tonini has joined #ruby
<breakingthings>
obviously the solution to that one is applequil juice
workmad3 has joined #ruby
<breakingthings>
I won't tell the service workers if yoooou dooooon't
* Eiam
shrugs
<Eiam>
I'll figure something out =)
andrew565 has left #ruby [#ruby]
zz_pinage404 is now known as pinage404
chase-work has joined #ruby
pitzips has joined #ruby
pinage404 is now known as zz_pinage404
postmodern has joined #ruby
brennanMKE has quit [Remote host closed the connection]
axeman- has joined #ruby
<zendeavor>
comes down to who can yell and hold a straight face longer.
chile_andes has joined #ruby
atyz has joined #ruby
<Eiam>
zendeavor: I try to avoid yelling.
<Eiam>
she's a stubborn redhead, just like her mom. and my mom. and my other daughter
brianpWins has joined #ruby
<Eiam>
#parentingadvice
sailias has quit [Ping timeout: 256 seconds]
Vivekananda has joined #ruby
atyz has quit [Client Quit]
atyz has joined #ruby
runa_ has joined #ruby
WPA3 has quit [Ping timeout: 276 seconds]
rdark has joined #ruby
<runa_>
heyas. I'm suffering trying to get a write a text using rmagick so it looks good. I've tried antialias, Arial.TTF, but the same text, with the same font and size, looks great on chrome and ugly w/ rmagick
kirun has joined #ruby
amacgregor has quit [Ping timeout: 268 seconds]
kaspergrubbe has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
Mon_Ouie has quit [Ping timeout: 264 seconds]
timonv has quit [Remote host closed the connection]
anonymus_ has quit [Remote host closed the connection]
anonymuse has joined #ruby
Mattix has joined #ruby
brennanMKE has joined #ruby
<Mattix>
Hey, hello
<Mattix>
do you happen to know if warbler needs to write something on the disk?
kirun has quit [Ping timeout: 268 seconds]
<Mattix>
I guess it generates .class files in memory, but I'm not sure
brennanM_ has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
kapowaz has joined #ruby
flyinprogramer has joined #ruby
brennanMKE has quit [Ping timeout: 245 seconds]
cj3kim has quit [Remote host closed the connection]
<jharveysmith>
i am running ruby-2.0p247 and it seems that root gets a different include path then other users. Why might that be? what should I look at? I would like it to be the same for everyone (root and non-root).
devoldmx has quit [Ping timeout: 240 seconds]
jonahR has quit [Quit: jonahR]
patsToms has quit [Read error: Connection reset by peer]
Notte has joined #ruby
Banistergalaxy has joined #ruby
BizarreCake has quit [Ping timeout: 264 seconds]
Shirakawasuna has joined #ruby
nkts has quit [Quit: -]
Shirakawasuna has quit [Max SendQ exceeded]
Shirakawasuna has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
nomenkun has joined #ruby
huoxito has joined #ruby
forrest has joined #ruby
elnormous has joined #ruby
geekbri_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
Banistergalaxy has quit [Ping timeout: 276 seconds]
dankest has quit [Quit: Peace]
graft has quit [Remote host closed the connection]
nbouscal has joined #ruby
Nisstyre-laptop has joined #ruby
Mattix has quit [Ping timeout: 246 seconds]
i_s_ has quit [Remote host closed the connection]
locriani has joined #ruby
RORgasm has quit [Remote host closed the connection]
twoism has joined #ruby
twoism has quit [Remote host closed the connection]
chile_andes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fridim__ has joined #ruby
zomgbie has quit [Read error: Connection reset by peer]
twoism has joined #ruby
lunarjar has quit [Ping timeout: 240 seconds]
zomgbie has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
browndawg has quit [Quit: Leaving.]
mulander has joined #ruby
cha1tanya has joined #ruby
browndawg has joined #ruby
waxjar has quit [Ping timeout: 248 seconds]
browndawg has quit [Client Quit]
realDAB has quit [Quit: realDAB]
waxjar has joined #ruby
aeontech has quit [Quit: aeontech]
moofy has joined #ruby
lunarjar has joined #ruby
aeontech has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
JMcAfreak has quit [Ping timeout: 260 seconds]
Catbuntu has quit [Quit: loveRails]
rodacato has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
tricon_ has joined #ruby
burlyscudd has joined #ruby
jonahR has joined #ruby
SHyx0rmZ has joined #ruby
JMcAfreak has joined #ruby
pedda has joined #ruby
Tricon has quit [Ping timeout: 276 seconds]
tonini has quit [Remote host closed the connection]
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axeman- has quit [Remote host closed the connection]
<lectrick>
Anyone know why that is and what the best way is to fix it? (Ruby 1.9.x)
Todd` has joined #ruby
sweeper has left #ruby [#ruby]
<joelteon>
yeah, why are you forcing it to be utf-8
Todd` is now known as Todd
amacgregor has joined #ruby
gustavn has quit [Ping timeout: 246 seconds]
burlyscudd has quit [Quit: Leaving.]
kaspergrubbe has quit [Remote host closed the connection]
<apeiros>
lectrick: the byte \xFC does not map to a character in utf-8
mist has quit [Quit: leaving]
<apeiros>
you tell ruby that string was utf-8, but it isn't. methods working on encoded strings require that the encoding is valid.
<lectrick>
is there a method that will raise on force_encoding if that is the case, such as perhaps, force_encoding! ? :)
<workmad3>
well duh, it's > 127 in decimal
brbcoding has quit [Ping timeout: 245 seconds]
<workmad3>
lectrick: you could try encoding it, rather than force_encoding it
<apeiros>
lectrick: not raise, but there's .valid_encoding?
<apeiros>
but you probably have a source which is NOT utf-8
<lectrick>
apeiros: NICE
<apeiros>
figure out what encoding your source uses and properly transcode it (using String#encode)
<lectrick>
got it. thanks
<workmad3>
lectrick: which will attempt to transcode from the current encoding to utf8, rather than just overwriting the name of the encoding on the string
yalue has quit [Read error: Connection reset by peer]
<apeiros>
well, there's like a 70% chance that it's win1252, about 15% chance that it is macroman and the rest is some whatever encoding
<apeiros>
notice that iso8859-1 is often wrongly used in place of win1252
<workmad3>
apeiros: because there's only a limited number of commonly used single-byte encodings?
<lectrick>
is there a way to detect the encoding somehow?
<apeiros>
workmad3: yupp. see my estimates :)
<apeiros>
lectrick: short answer: no.
nkts has joined #ruby
<workmad3>
lectrick: long answer, hell no
<lectrick>
I was able to get it to encode properly with: "- Men\xFC -".encode('UTF-8','ISO-8859-1')
<workmad3>
lectrick: for an even longer answer, read Godel Escher and Bach
<apeiros>
lectrick: >> 22:24 apeiros: notice that iso8859-1 is often wrongly used in place of win1252
<havenwood>
Menü
<lectrick>
you know, that book has been on my reading list for over 20 years now workmad3 ... I should get on that. It's about symbolic representation isn't it
<apeiros>
notice the *WRONGLY* :-P
Davey has quit [Quit: Computer has gone to sleep.]
thams has joined #ruby
<apeiros>
anyway, there's a number of libraries which try and fail miserably because they try to do detection generically.
<apeiros>
you can do a somewhat reliable detection if you can narrow it down, though
<workmad3>
lectrick: GED? it's about the incompleteness theorem, with detours into art, music, representation, formal languages, biology, neuroscience and other stuff :)
<apeiros>
but nothing beats explicit passing of the encoding.
<matled>
if I'd want to assume it's utf-8 and use the :invalid => :replace option, do I really have to go through something like this? str.encode("utf-32", "utf-8", invalid: :replace).encode("utf-8", "utf-32")
xcthulhu has joined #ruby
<workmad3>
lectrick: the stuff in particular I'm talking about though is the impossibility of transmitting a message that tells you how to decode it
timonv has quit [Remote host closed the connection]
thams has quit [Client Quit]
tobin has quit [Quit: tobin]
<lectrick>
workmad3: nice :)
<lectrick>
workmad3: yeah that is my kinda book. been saving it for a rainy day... for 20 years... sigh lol
<workmad3>
lectrick: it's not exactly difficult to grasp tbh... just ask yourself, what do you use to represent the decoding instructions?
<lectrick>
apeiros: maybe autoconvert from a set, prioritized list of possible encodings
mark_locklear has quit [Ping timeout: 264 seconds]
Nisstyre-laptop has quit [Ping timeout: 276 seconds]
<havenwood>
i pretend utf-8 is all that exists and just hum really loudly
<workmad3>
character encodings are crazy stuff
<workmad3>
havenwood: how about utf-16? utf-32? ucs-2?
<havenwood>
>.>
bricker_ has joined #ruby
<apeiros>
hm, odd… I seem to misremember the part about 8859-15
<workmad3>
havenwood: or how about the 7 bit character encoding that SMS uses?
rodacato has joined #ruby
<havenwood>
SMS......
<havenwood>
kill it with fire!
* breakingthings
hums loudly to sooth havenwood
<apeiros>
workmad3: SMS encodings are teh horror :(
<apeiros>
that said, they were never meant for human-to-human messaging
<workmad3>
(incidentally, that's part of why there are... odd... character limits in SMS... 7 bit encoding with some control sections and page continuation sections)
<apeiros>
workmad3: you can have utf-8 sms
<apeiros>
but then your char limit is ~80
bricker has quit [Ping timeout: 256 seconds]
<workmad3>
apeiros: yup :) and drops to more like 60 on page 2+
MrZYX is now known as MrZYX|off
rodacato has quit [Remote host closed the connection]
<havenwood>
i'd be more into texting if the char limit was like 5
<apeiros>
sms is twitter on steroids
<breakingthings>
somehow i don't think that's right
<workmad3>
apeiros: is this backwards monday?
smathieu has joined #ruby
<apeiros>
what? today is thursday.
<workmad3>
if only
nomenkun has quit [Remote host closed the connection]
<workmad3>
then I'd only have 1 more day of work :P
<havenwood>
Was stoked to discover Shift-Ctrl-Command-E in TM2. Evals #=> inline.
p0wn3d has quit [Remote host closed the connection]
<havenwood>
<3 caps locks bound to ctrl
rodacato has joined #ruby
r0bglees0n has joined #ruby
<sam113101>
I map it to backspace
<jharveysmith>
hammac1: i did not
<RubyPanther>
I set mine to SUPER, and get a whole extra set of bindings
alex__c2022 has quit [Quit: alex__c2022]
brennanMKE has joined #ruby
rodacato has quit [Remote host closed the connection]
rodacato has joined #ruby
<apeiros>
workmad3: anyway, today is Pungenday
realDAB has joined #ruby
ndrei has quit [Quit: Lost terminal]
icecandy has joined #ruby
icecandy has quit [Client Quit]
luckyruby has joined #ruby
icecandy has joined #ruby
nomenkun has joined #ruby
Desert_eagle has quit [Read error: Operation timed out]
Mattix has joined #ruby
cortexman has joined #ruby
icecandy has quit [Remote host closed the connection]
<cortexman>
I can't follow the rvm instructions because i'm behind a proxy. I set http_proxy but it's not taking. if I modify the curl command with —proxy it works at first, but when the script it downloads tries to do further downloads it fails. https://rvm.io/rvm/install
_seanc_ has quit [Quit: _seanc_]
_seanc_ has joined #ruby
Lewix has quit [Remote host closed the connection]
TonyMergue1 has joined #ruby
<havenwood>
cortexman: Might ask #rvm on that one. I'm sure your initial -proxy isn't being passed on.
TonyMergue has quit [Ping timeout: 276 seconds]
jaimef has quit [Excess Flood]
TheMoonMaster_ is now known as TheMoonMaster
<havenwood>
cortexman: You could modify the script, may be a more elegant way though?
MrPoT4tO has joined #ruby
ndrei has joined #ruby
MrZYX|off is now known as MrZYX
LaPetiteFromage has joined #ruby
zomgbie has quit [Ping timeout: 264 seconds]
lnormous has joined #ruby
hanmac1 has joined #ruby
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baordog has quit [Remote host closed the connection]
bluOxigen has joined #ruby
aantix has quit [Quit: aantix]
jaimef has joined #ruby
Ripp__ has quit [Quit: This computer has gone to sleep]
freerobby has quit [Quit: Leaving.]
iliketurtles has joined #ruby
Al_ has joined #ruby
jibi has quit [Read error: Connection reset by peer]
r_b00f has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
renderful has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
ehaliewicz has quit [Ping timeout: 268 seconds]
mansi has quit [Read error: Connection reset by peer]
Desert_eagle has joined #ruby
alex__c2022 has joined #ruby
mansi has joined #ruby
tjbiddle has joined #ruby
Kruppe has quit [Ping timeout: 246 seconds]
BillCriswell has quit [Remote host closed the connection]
burlyscudd has joined #ruby
jibi has joined #ruby
v0n has quit [Ping timeout: 276 seconds]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
vlad_starkov has joined #ruby
Krajsnick has joined #ruby
renderful has quit [Ping timeout: 245 seconds]
<pontiki>
cortexman: stupid question, but have you exported http_proxy?
devoldmx has quit [Read error: Connection reset by peer]
manutter has quit [Ping timeout: 245 seconds]
nbouscal has quit [Ping timeout: 264 seconds]
saintcajetan has joined #ruby
manutter has joined #ruby
locriani has quit [Remote host closed the connection]
dankest has joined #ruby
jalcine has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
headius has joined #ruby
<cortexman>
chruby fail. wget does not come on osx. trying to download that file with curl downloads an html page. instructions apparently not tested.
<postmodern>
cortexman, brew install wget :)
<cortexman>
i have not installed homebrew yet.
<cortexman>
it requires ruby first of all
<pontiki>
do it
<pontiki>
do it now
<havenwood>
cortexman: Homebrew is worth installing. It will install with the Ruby that is pre-installed on your system.
romdi has quit [Ping timeout: 240 seconds]
<havenwood>
cortexman: First install Homebrew and command-line-tools. Then `brew install ruby-install chruby` and it will take you from there. :)
devoldmx has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<zendeavor>
homebrew fills me with rage
zomgbie has joined #ruby
<havenwood>
zendeavor: MacPorts or Finks your poison?
Todd has quit [Quit: Leaving]
<zendeavor>
system-wide install of utilities tht assumes every mac is a single-user system
<havenwood>
Oh, that. :P
<zendeavor>
i guess it's fair
<zendeavor>
you mac bois
ldnunes has quit [Quit: Leaving]
<zendeavor>
"don't touch. mine."
Nisstyre has joined #ruby
Zai00 has quit [Quit: Zai00]
<cortexman>
mac bois. you keep saying that word.
<cortexman>
i am using a mac. i use every os.
<zendeavor>
you're reading too much into it
<zendeavor>
relax.
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
<pontiki>
no one forces a mac to use homebrew
<breakingthings>
I do
brunoro__ has quit [Ping timeout: 264 seconds]
<zendeavor>
but homebrew forces a mac to do things its way
<pontiki>
sorry, missed a couple words in thre
tobyo1 has quit [Read error: Connection reset by peer]
<pontiki>
well, yes
<pontiki>
so does fink, so does macports
<pontiki>
so does xcode
<zendeavor>
surely
<pontiki>
what's your point?
<havenwood>
zendeavor: They may have taken the 90% use-case a bit far. I agree it is extreme to disalow sudo instead of deescalating privileges, but I respect the desire for simplicity.
<pontiki>
so does apt-get on linux, so does yum on RHEL/fedora
tobyo1 has joined #ruby
<pontiki>
and every other package manager in the world
<havenwood>
package managers are opinionated, hard to install packages otherwise :P
<pontiki>
yus
breakingthings has quit [Quit: breakingthings]
Asher has joined #ruby
<zendeavor>
chroot and circumvent all the things
zomgbie has quit [Ping timeout: 256 seconds]
kofno has quit [Remote host closed the connection]
<havenwood>
zendeavor: ruby-install works with sudo by running brew as the brew-executable owner
workmad3 has quit [Read error: Operation timed out]
<havenwood>
on OS X**
<zendeavor>
i saw someone a few days ago trying to work around a "bug" in 10.9 wrt sudo
<zendeavor>
they had written a bash script with 54 sudo calls
locriani has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
<zendeavor>
those were meant to drop privileges, not escalate
<zendeavor>
the script itself was run as root
<zendeavor>
he needed help appending a line to /etc/sudoers with an echo statement
<zendeavor>
it rotted my brain
renderful has joined #ruby
<sam113101>
has it recovered yet?
<zendeavor>
obviously not, as now i've decided that homebrew is not fit to exist
theRoUS has quit [Read error: Operation timed out]
lutfidemirci has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
DeanH has joined #ruby
ephemerian has joined #ruby
Mattix has quit [Ping timeout: 264 seconds]
ffio has quit [Quit: WeeChat 0.4.1]
reset has joined #ruby
ntus1017 has quit [Remote host closed the connection]
locriani has quit [Remote host closed the connection]
Al_ has quit [Quit: Al_]
locriani has joined #ruby
<zendeavor>
boggles the mind
realDAB has quit [Quit: realDAB]
<havenwood>
I guess nicer to have a multi-user system and force single-user than a single-user system Jimi-rigged for whatev.
Mattix has joined #ruby
<apeiros>
havenwood: that's why brew chowns /usr/local to a single user too
Astral_ has quit [Read error: Connection reset by peer]
gyre007 has quit [Ping timeout: 256 seconds]
gemmy has joined #ruby
jalcine has quit [Excess Flood]
<apeiros>
horrible. but the author of brew seems to be happily oblivious as to how a multi-user OS works.
Astral_ has joined #ruby
lnormous has quit [Quit: Leaving]
<zendeavor>
very evidently
MrPoT4tO has quit [Read error: Connection reset by peer]
elnormous is now known as lnormous
<havenwood>
yeah, they could 'fix' it with a deescalation scheme but no interest
<havenwood>
prolly little demand
Banistergalaxy has joined #ruby
<zendeavor>
i'd rewrite it like an asshole
ehaliewicz has joined #ruby
smathieu has quit [Remote host closed the connection]
jorge_ has joined #ruby
colonolGron has quit [Quit: Lost terminal]
<havenwood>
long as it works and packages get updated briskly, most are happy clams
MrPoT4tO has joined #ruby
banghouse2 has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
yeah, I'm lucky, I don't have multiple users, and as long as that's the case, brew is (sadly) the most painless experience.
realDAB has joined #ruby
<apeiros>
doesn't speak well for the state of package managers on osx :-/
Xeago has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
<zendeavor>
in my humble opinion, the right thing to do would be user-local installs symlinked to ~/bin with a --system option or configurable
banghouse2 is now known as banghouse
bluOxigen has joined #ruby
locriani has quit [Ping timeout: 264 seconds]
Mon_Ouie has joined #ruby
<zendeavor>
since "package managers" are a subversion of osx anyway
<havenwood>
dunno, have a BSD (macports), debian (fink) and homegrown (brew) option at least is variety, and each do work with a bit of prodding :P
kayloos has quit [Remote host closed the connection]
jerius has quit [Ping timeout: 248 seconds]
<havenwood>
Gentoo.
<apeiros>
zendeavor: I agree on 'have user installs by default, provide system installs by option', I don't agree that package managers are a subversion of osx.
<apeiros>
osx does have a unix root
<havenwood>
heck, half its devs are also FreeBSD devs
cj3kim has quit [Read error: Connection reset by peer]
smathieu has joined #ruby
<zendeavor>
well, i know this
Spooner has joined #ruby
<apeiros>
package are not part of the world which is GUI apps in OSX, though. and that distinction is fine by me.
thebope has joined #ruby
cj3kim has joined #ruby
gustavn_ has quit [Read error: Connection reset by peer]
<zendeavor>
i'll take back the subversion comment
<thebope>
Hi, I'd like to create a rakefile which just runs a .rb file with command line arguments
<popl>
I just found my old second edition of The Two Towers
<popl>
It has a map in the back of the book
<popl>
unfortunately it's got a little tear. :(
<havenwood>
Tolkien's deus ex machina.
<popl>
the dustjacket is all effed up around the edges too
blz7337 has joined #ruby
AkashicLegend has joined #ruby
<havenwood>
Eagles.
<popl>
\o/
razi has quit [Ping timeout: 248 seconds]
jorge_ has quit [Ping timeout: 264 seconds]
<popl>
I was hoping to sell it but I'm afraid I won't get much for it in its current condition.
<havenwood>
1) Give eagle the ring. 2) Mohitos.
<popl>
Is that the plot of that spoof video?
<popl>
There are probably several.
chase-work has quit [Quit: Computer has gone to sleep.]
<havenwood>
dunno, heh
<popl>
It's actually a Taiwanese printing. :P
<popl>
(the book)
<popl>
that always struck me as funny
<popl>
anyways
mansi has quit [Remote host closed the connection]
fernandoaleman has quit [Quit: Leaving.]
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
mansi has joined #ruby
<havenwood>
Taiwanese printing, Tolkien, OS X, Norse mythology, and encoding problems. (In reverse chronological order.)
<popl>
haha
zomgbie has quit [Ping timeout: 246 seconds]
MrPoT4tO has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
johnnyfuchs has quit [Remote host closed the connection]
choobie has joined #ruby
jalcine has joined #ruby
<popl>
in reverse chronological order: OS X, encoding problems, Tolkien, Taiwanese printing, Norse mythology
devoldmx has joined #ruby
<Xeago>
what?!
burlyscudd has joined #ruby
<goleldar>
hello
realDAB has quit [Quit: realDAB]
<popl>
Xeago: wat
tobyo1 has quit [Ping timeout: 248 seconds]
<goleldar>
how do you create an instance variable that is specific to the current thread
mansi has quit [Ping timeout: 264 seconds]
lindenle has joined #ruby
<popl>
LOOK OUT IT'S A DROP BEAR
popl has quit [Quit: We must make an idol of our fear, and call it God.]
ZOGM has quit [Remote host closed the connection]
zeropx has quit [Quit: has left the room … Or did he?]
niceguyjames has quit [Quit: Computer has gone to sleep.]
epochwolf has quit [Quit: Uh no...]
xcthulhu has quit [Quit: xcthulhu]
pedda has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MrZYX>
goleldar: don't share the instance across threads. There's also Thread#[] and Thread#[]=, so you can do Thread.current[:foo] = "bar"; Thread.current[:foo]
codecop has quit [Remote host closed the connection]
saarinen has joined #ruby
niceguyjames has joined #ruby
Notte has quit [Remote host closed the connection]
locriani has joined #ruby
epochwolf has joined #ruby
epochwolf has quit [Excess Flood]
jibi has quit [Quit: .]
lucianosousa has quit [Quit: lucianosousa]
locriani has quit [Read error: Connection reset by peer]
epochwolf has joined #ruby
pedda has joined #ruby
pedda has quit [Max SendQ exceeded]
hanmac1 has joined #ruby
locriani has joined #ruby
fernandoaleman has joined #ruby
obs has quit [Quit: Konversation terminated!]
Spooner has quit [Read error: Connection reset by peer]
pipework is now known as grumpwork
xybre is now known as pipework|dontban
Spooner has joined #ruby
thams has quit [Quit: thams]
jonathanwallace has joined #ruby
codemannew has joined #ruby
pipework|dontban is now known as xybre
<goleldar>
this is my class but someone mentioned that this was not thread safe.. i am having a hard time figuring out how to make it thread safe