<havenwood>
Deele: dictionary is better than my ramblings: having a strong influence on ideas, works, events, etc., that come later : very important and influential
<bnagy>
yeah I was about to say :P
brennanMKE has quit [Ping timeout: 268 seconds]
kitak_ has joined #ruby
Targen_ has joined #ruby
ldnunes has joined #ruby
Targen has quit [Ping timeout: 252 seconds]
iliketurtles has joined #ruby
<riceandbeans>
[gnubie]: File.open("/proc/cpuinfo", "r") do |cpuinfo| cpuinfo.each do |line| if line =~ /processor/ then i += 1 end end end puts i
tylersmith has quit [Ping timeout: 248 seconds]
<riceandbeans>
[gnubie]: put i = 0, above all that
freezey has quit [Remote host closed the connection]
Xiti has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 252 seconds]
^conner has quit [Ping timeout: 245 seconds]
notjohn has joined #ruby
<riceandbeans>
volty: why are you doing it the easy way?
<riceandbeans>
be a man, do it the hard way like I did
<volty>
ahah
binaryplease has quit [Ping timeout: 264 seconds]
<riceandbeans>
hey
<havenwood>
[gnubie]: just another way: File.read('/proc/cpuinfo').scan(/processor/).size
zenloop has joined #ruby
<riceandbeans>
can a hash pop, shift, push, and all that just like an array?
<riceandbeans>
havenwood: you guys make me look like such a bad programmer
burlyscudd has quit [Quit: Leaving.]
<havenwood>
riceandbeans: psh
<[gnubie]>
:D
ndngvr has joined #ruby
<[gnubie]>
good thing to understand the different ways in getting the same result. thanks for all your input.
<riceandbeans>
can a hash pop, shift, push, and all that just like an array?
T_T has quit [Ping timeout: 268 seconds]
<[gnubie]>
i am trying to convert my bash scripts to ruby for me to learn ruby
<havenwood>
riceandbeans: nope
<havenwood>
riceandbeans: not all of the above
<havenwood>
riceandbeans: some
zenloop has quit [Client Quit]
<havenwood>
[gnubie]: nice
<volty>
then you have then the IO.foreach(fn), with lazy evaluation, so you can scan files that are manytimes bigger than your mem
<volty>
(enumerator)
<riceandbeans>
[gnubie]: make something to throw on github and make it something you think is useful
<riceandbeans>
work on it over time and watch how you grow as a ruby programmer
<havenwood>
volty: true, but I figure if /proc/cpuinfo is taking up too much mem you've got other probs :P
zeade has quit [Quit: Leaving.]
<volty>
:) true
c0rn has quit [Quit: Computer has gone to sleep.]
ndngvr` has quit [Read error: Connection reset by peer]
RichardBaker has quit [Quit: RichardBaker]
<[gnubie]>
riceandbeans: i will. first script that i am converting is my way to check highload and sends an email alert (and hopefully extends it to gtalk)
zenloop has joined #ruby
<[gnubie]>
riceandbeans: thanks! ;)
iliketurtles has quit [Quit: zzzzz…..]
verto_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axl_ has quit [Quit: axl_]
<volty>
i've done this stupid thing: in a separate console bash tty; then from ruby File.open(<tty result>, 'w') { |f| f.puts "#{__FILE__}: #{__LINE__}" }
einarj has joined #ruby
thesheff17 has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
<volty>
of course there's less with F option - but just another choice (volatile logging)
wgosling has joined #ruby
nfk has quit [Quit: yawn]
lukec has quit [Quit: lukec]
|jemc| has joined #ruby
<havenwood>
riceandbeans: Hashes didn't used to be ordered before 1.9.1. I'd make more sense to have parity now.
<havenwood>
*It'd
<wgosling>
hello. when I install a gem I made myself, it says "building native extensions". what are native extensions (it sounds like compiled code?) and why is my app building them?
<havenwood>
wgosling: Usually C or C++, but not usual to have them magically appear in a gem you're making.
<havenwood>
wgosling: Could it be a gem dependency needs to build some C-exts?
adeponte has quit [Remote host closed the connection]
swordsmanz is now known as Ogrammanazi
tsykoduk is now known as zz_tsykoduk
Ogrammanazi is now known as swordsmanz
<volty>
asking for advice: for arbitrarily extending structures (like as = ArbObj.; as.language.ruby.lib.directory = ... ) better use recursive hashes or structs ?
einarj has quit [Ping timeout: 245 seconds]
<wgosling>
havenwood: it could be. can gem be prodded to tell me what required it?
mary5030 has joined #ruby
<havenwood>
wgosling: i think i'm confused, you're cutting your own gem, right?
<havenwood>
wgosling: you put its dependencies in your_gem_name.gemspec?
<wgosling>
havenwood: yup
^conner has joined #ruby
Lewix has quit [Remote host closed the connection]
unstable has joined #ruby
<unstable>
How can I get the time it was 1 hour ago?
<havenwood>
wgosling: i'm at a loss, maybe post a link?
<wgosling>
havenwood: can't. gem is for work.
<havenwood>
wgosling: aha
sparq_ has quit [Ping timeout: 264 seconds]
<havenwood>
unstable: Time.now - 60 * 60
i_s has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<havenwood>
unstable: Or require ActiveSupport and do something like: Time.now.1.hour.ago
hogeo has joined #ruby
<bnagy>
that is so vile
tjsousa has joined #ruby
i_s has joined #ruby
<havenwood>
hehe
barratt has quit [Quit: Leaving...]
<havenwood>
volty: Maybe OpenStructs :O
i_s has quit [Read error: Connection reset by peer]
zz_tsykoduk is now known as tsykoduk
Valesk has joined #ruby
<havenwood>
volty: seems Hashes end up being the default most often, but Struct or OpenStruct sure have a nicer syntax for calling imho
i_s has joined #ruby
<volty>
havenwood: yes, i have it already implemented as a hash, should i got for openstructs ?
c0rn has joined #ruby
saarinen has quit [Quit: saarinen]
<wgosling>
havenwood: gem called atomic required native extensions, and I guess that is a dependency of a dependency.
<havenwood>
wgosling: yeah, does need to be built
gazzik has quit [Remote host closed the connection]
<havenwood>
wgosling: so must configure machine to be able to properly build extensions
<volty>
havenwood: now i remember that openstructs hadn't something like to_hash (or enough methods to do that) -- if you need it later as a hash
<havenwood>
volty: yeah, you can go back and forth easy
<havenwood>
volty: there is even a recursive_open_hash gem i think
freezey has joined #ruby
snovak has joined #ruby
stkowski has joined #ruby
twoism has quit [Remote host closed the connection]
<[gnubie]>
now, i am interested the hash of the output of the command "free -m" particularly for Mem: and buffers/cache:
<havenwood>
open_struct*
c0rn has quit [Client Quit]
<havenwood>
volty: of course OpenStruct comes with more overhead, but sure is nice to chain with a .
tjsousa has quit [Ping timeout: 240 seconds]
<riceandbeans>
havenwood: what do you mean parity?
<bnagy>
[gnubie]: dude you have asked the same question like 12 times now - "how do I run and parse a unix command"
Xiti has joined #ruby
<volty>
havenwood: i have it, recursive one with exactly the syntax that i wrote above, i was just asking if it is better to implement it as an openstruct for the sake of stability, robustness etc
sectionme has joined #ruby
<bnagy>
why don't you have a go at it, based on the last 10 answers, then tell us what you're trying
<volty>
to reimplement it
swordsmanz has quit [Ping timeout: 240 seconds]
<[gnubie]>
bnagy: i have it already. i just want to know if there is a native way in ruby.
<volty>
bnagy is right this time
<havenwood>
riceandbeans: So Arrays were always ordered but Hashes didn't used to be. So having parity (the same methods regarding ordered actions) didn't make sense.
devoldmx3 has quit [Ping timeout: 264 seconds]
<volty>
i wanted to say the same thing at his first question this night :)
wgosling has left #ruby ["Konversation terminated!"]
<riceandbeans>
havenwood: order means nothing to me for this hash/array
<[gnubie]>
i'm testing here in irb
<riceandbeans>
it just needs to store a series of objects
<bnagy>
[gnubie]: to port 'read a device' eg /proc /dev etc, use File.read and parse the string. To port 'run a command' run `initial_command` then parse the resulting string
Hganavak has joined #ruby
<bnagy>
all of the cut awk grep stuff can be done with ruby
<volty>
i need order of keys, whatever they are, whether hash or openstructs names (methods), but i need, sometimes, to change that order
<havenwood>
riceandbeans: If it is pairs of things use a Hash or Array of tuples, if it is just a list an Array sounds right.
devoldmx has joined #ruby
<[gnubie]>
bnagy: yes, i got it already. i just wanted to know if i can get rid of calling awk
<havenwood>
[gnubie]: any text processing whatsoever can be done in Ruby
eli has joined #ruby
<volty>
[gnubie]: just implement awk in ruby
marwa973 has quit [Ping timeout: 240 seconds]
marwan_ has quit [Ping timeout: 240 seconds]
<[gnubie]>
ok. thanks for the advice guys. let me continue in here.
mrwn has quit [Ping timeout: 240 seconds]
* [gnubie]
is in study mode
sectionme has quit [Ping timeout: 248 seconds]
<eli>
Does anyone knows how semaphores behave in ruby?
simoz has quit [Ping timeout: 264 seconds]
<eli>
Specifically: http://tmp.barzilay.org/x -- how come a single unlock makes all threads trigger?
<bnagy>
eli: offhand I'd guess that the locks disappear when the block exits
i_s has joined #ruby
<eli>
bnagy: You mean they get automatically unlocked?
i_s has quit [Read error: Connection reset by peer]
<bnagy>
eli: most code just uses some_mutex.synchronize { do locky thing }
i_s has joined #ruby
<bnagy>
eli: that is my guess, yup
<eli>
That would be bad. (And weird for ruby, from what I see.)
baroquebobcat has quit [Quit: baroquebobcat]
<[gnubie]>
volty: now, i just want to understand how can i use those options (-n -a -e) inside a ruby script that executes "free -m" and store the values of Mem: and buffers/cache:
i_s has quit [Remote host closed the connection]
<eli>
bnagy: I need to do the rough opposite of a critical section thing: have a piece of code wait until its allowed to run; are there any alternatives that get that?
i_s has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
i_s has quit [Read error: Connection reset by peer]
i_s has joined #ruby
atSetKey has joined #ruby
hasrb has quit [Remote host closed the connection]
<havenwood>
eli: sounds to me like ConditionVariable?
<[gnubie]>
volty: i'm testing it right now with the output of "free -m". thanks for the sample code.
funburn has joined #ruby
k610 has joined #ruby
brianpWins has quit [Quit: brianpWins]
aryaching has quit []
Aryasam has joined #ruby
sergicles has joined #ruby
havenwood has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
havenwood has joined #ruby
sevenseacat has joined #ruby
jkline has quit [Quit: jkline]
lukec has joined #ruby
bobsapto has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
kobain_ has quit [Ping timeout: 252 seconds]
smashwilson has quit [Quit: Leaving.]
kobain has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
kobain has quit [Excess Flood]
bradhe has joined #ruby
Guest5983 has joined #ruby
Guest5983 has quit [Excess Flood]
havenwood has joined #ruby
whunt has quit [Quit: Computer has gone to sleep.]
heidi has quit [Quit: Leaving.]
obs has quit [Quit: Konversation terminated!]
<|jemc|>
in a c extension, is Data_Wrap_Struct my best option for saving an arbitrary data pointer returned by a third-party api as an ivar (with rb_iv_set on the result)??
iliketurtles has joined #ruby
volty has quit [Quit: Konversation terminated!]
sergicles has quit [Quit: sergicles]
<|jemc|>
I don't care about being able to use the pointer from ruby (obviously), I just need it to get carried around by the instance
<|jemc|>
and used in later instance methods
aspires has quit [Quit: aspires]
sergicles has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
zeade has joined #ruby
m00nlight has joined #ruby
<riceandbeans>
when I try to do hash.each do |blah| puts blah end, I get an error
iliketurtles has quit [Ping timeout: 240 seconds]
zeade has quit [Client Quit]
freerobby has joined #ruby
Ren^ has joined #ruby
<Ren^>
off-topic: Anyone know how I can add a user to my amazon web services management console?
danshultz has quit [Remote host closed the connection]
juarlex_ has joined #ruby
cwong20121 has joined #ruby
apeiros_ has joined #ruby
<bnagy>
oh you just mean you have "\1" instead of '\1' ?
smoothbutta has joined #ruby
Asher2 has joined #ruby
danshultz has joined #ruby
spacebug_ has joined #ruby
rezzack1 has joined #ruby
stillEPIK has joined #ruby
axl_ has joined #ruby
<MrHacks>
matrix.each{ |i| i.each{ |j| rea.each{ |re| j = j.gsub(re,'\1') } } } # OK, that part is fixed
rjhunter has joined #ruby
s2013 has quit [Quit: Leaving]
yonahw has joined #ruby
brennanMKE has quit [Remote host closed the connection]
<bnagy>
if you're wondering why nothing is changing it's because you might want map not each
glaksmono has joined #ruby
brennanMKE has joined #ruby
robwilliamsukio has joined #ruby
_adeponte has joined #ruby
adamholt_ has joined #ruby
skinny_much_ has joined #ruby
nisstyre has joined #ruby
brugidou_ has joined #ruby
nuba has joined #ruby
diegoviola has joined #ruby
obeid_ has joined #ruby
aapzak_ has joined #ruby
i_s has quit [Remote host closed the connection]
<MrHacks>
I assume I should map the first two eaches but not the last one?
ihme-TTilus has joined #ruby
Dreamer3__ has joined #ruby
PaulePan1er has joined #ruby
Lorn has joined #ruby
airdisa has quit [Remote host closed the connection]
<bnagy>
my psychic powers are drying up
<bnagy>
given that I have no idea what you're trying to do
cwong20121 has quit [Max SendQ exceeded]
krzkrz has joined #ruby
<MrHacks>
Good new, I got it to work. You were right about the mapping
danshultz has quit [Ping timeout: 268 seconds]
jaikeerthi has quit [Quit: Leaving.]
cwong20121 has joined #ruby
<bnagy>
Praise Vishnu
Banistergalaxy has quit [Ping timeout: 240 seconds]
<MrHacks>
The most innner each applies Regular expression to each cell. Since I've done that part several times before, all I need to do is modify the REs
NealJ has quit [Read error: Connection reset by peer]
NealJ has joined #ruby
NealJ has quit [Client Quit]
brennanMKE has quit [Ping timeout: 264 seconds]
BrunoPolaco has joined #ruby
BrunoPolaco has joined #ruby
BrunoPolaco has quit [Changing host]
jso_ has joined #ruby
MetaCosm has joined #ruby
SeySayux_ has joined #ruby
SeySayux_ has joined #ruby
SeySayux_ has quit [Changing host]
abstractj_ has joined #ruby
MetaCosm has quit [Changing host]
MetaCosm has joined #ruby
mumblet has joined #ruby
brunto has joined #ruby
sirecote_ has joined #ruby
phantomcircuit_ has joined #ruby
clocKwize_ has joined #ruby
gf3_ has joined #ruby
mobilebl- has joined #ruby
UForgotten_ has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
fearoffish_ has joined #ruby
Atrumx has quit [Quit: Quitting]
dankest has joined #ruby
fgo has quit [*.net *.split]
apeiros has quit [*.net *.split]
BraddPitt has quit [*.net *.split]
obeid has quit [*.net *.split]
aapzak has quit [*.net *.split]
Hganavak has quit [*.net *.split]
SeySayux has quit [*.net *.split]
larissa has quit [*.net *.split]
kreeves has quit [*.net *.split]
adeponte has quit [*.net *.split]
amacgregor has quit [*.net *.split]
mobileblue has quit [*.net *.split]
cool has quit [*.net *.split]
TTilus has quit [*.net *.split]
shaileshg has quit [*.net *.split]
MetaCosm_ has quit [*.net *.split]
dawkirst has quit [*.net *.split]
spacebug has quit [*.net *.split]
rezzack has quit [*.net *.split]
Dreamer3 has quit [*.net *.split]
JMcAfreak has quit [*.net *.split]
Asher has quit [*.net *.split]
Sammael has quit [*.net *.split]
moeSeth has quit [*.net *.split]
Es0teric has quit [*.net *.split]
zerun0_ has quit [*.net *.split]
spike|spiegel has quit [*.net *.split]
abstractj has quit [*.net *.split]
zeusmns has quit [*.net *.split]
jso has quit [*.net *.split]
juarlex has quit [*.net *.split]
adamholt has quit [*.net *.split]
fearoffish has quit [*.net *.split]
mattyohe has quit [*.net *.split]
smoothbu_ has quit [*.net *.split]
bluehavana has quit [*.net *.split]
canton7 has quit [*.net *.split]
Lorn_ has quit [*.net *.split]
sirecote has quit [*.net *.split]
yugui_zzz_ has quit [*.net *.split]
nuba_ has quit [*.net *.split]
UForgotten has quit [*.net *.split]
gf3 has quit [*.net *.split]
xpirator has quit [*.net *.split]
flowerhack has quit [*.net *.split]
mumblerit has quit [*.net *.split]
ggherdov has quit [*.net *.split]
notbrent__ has quit [*.net *.split]
eli has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
roa has quit [*.net *.split]
anekos_ has quit [*.net *.split]
yonahw_ has quit [*.net *.split]
brugidou has quit [*.net *.split]
ccooke has quit [*.net *.split]
polaco has quit [*.net *.split]
robwilliamsuk has quit [*.net *.split]
clocKwize has quit [*.net *.split]
bobthenameless has quit [*.net *.split]
Schuy13r has quit [*.net *.split]
i8igmac has quit [*.net *.split]
Elfix has quit [*.net *.split]
skinny_much has quit [*.net *.split]
phantomcircuit has quit [*.net *.split]
cwong2012 has quit [*.net *.split]
hiyosi has quit [*.net *.split]
Cork has quit [*.net *.split]
brunto_ has quit [*.net *.split]
UForgotten_ is now known as UForgotten
BrunoPolaco is now known as polaco
gf3_ is now known as gf3
fearoffish_ is now known as fearoffish
sirecote_ is now known as sirecote
mumblet is now known as mumblerit
Banistergalaxy has joined #ruby
zeusmns has joined #ruby
Elfix has joined #ruby
yugui_zzz has joined #ruby
bobthenameless has joined #ruby
i8igmac has joined #ruby
jaikeerthi has joined #ruby
Schuy13r has joined #ruby
Cork has joined #ruby
anekos_ has joined #ruby
larissa has joined #ruby
ccooke has joined #ruby
dawkirst has joined #ruby
zerun0_ has joined #ruby
roa has joined #ruby
roa has joined #ruby
roa has quit [Changing host]
nazty has joined #ruby
lukec has quit [Quit: lukec]
sergicles has joined #ruby
johnnyfuchs has joined #ruby
spike|spiegel has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
Ox6abe has quit [Remote host closed the connection]
johnnyfuchs has left #ruby [#ruby]
Ox6abe has joined #ruby
bsaboia_ has quit [Ping timeout: 260 seconds]
fschuindt has joined #ruby
__eka__ has quit [Quit: Computer has gone to sleep.]
xkickflip has quit [Quit: h..hi]
bluehavana has joined #ruby
i_s has joined #ruby
T_T has quit [Remote host closed the connection]
Inside has joined #ruby
Inside has quit [Changing host]
Inside has joined #ruby
asteros has joined #ruby
mayorga has quit [Quit: Leaving]
Ox6abe has quit [Ping timeout: 264 seconds]
Banistergalaxy has quit [Ping timeout: 264 seconds]
taternuts has quit []
i_s has quit [Remote host closed the connection]
i_s has joined #ruby
Banistergalaxy has joined #ruby
randomnick_ has quit [Ping timeout: 248 seconds]
MrHacks has quit [Quit: I'll ask tomorrow]
yacks has joined #ruby
pkrnj has joined #ruby
funburn has quit [Ping timeout: 248 seconds]
i_s has quit [Ping timeout: 248 seconds]
mary5030 has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
mary5030 has joined #ruby
Targen_ has quit [Quit: No Ping reply in 180 seconds.]
Guest18130 is now known as raar
raar has quit [Changing host]
raar has joined #ruby
Targen has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
mary5030_ has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
mary5030 has quit [Read error: Connection reset by peer]
amacgregor_ has quit [Ping timeout: 265 seconds]
digitalcake has joined #ruby
Banistergalaxy has joined #ruby
simplyaubs has quit [Quit: simplyaubs]
alx- has quit [Quit: Leaving...]
asteros has quit [Quit: asteros]
Targen has quit [Read error: Connection reset by peer]
simera has joined #ruby
jaikeerthi has quit [Quit: Leaving.]
heftig has quit [Ping timeout: 260 seconds]
digitalcake has quit [Ping timeout: 248 seconds]
Targen has joined #ruby
heftig has joined #ruby
Andrevan has joined #ruby
Banistergalaxy has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Read error: Operation timed out]
Banistergalaxy has joined #ruby
Vivekananda has joined #ruby
v0n has quit [Ping timeout: 260 seconds]
noop has joined #ruby
agent_white has quit [Quit: xorgerror,brb]
ananthakumaran has joined #ruby
lyanchih has quit [Quit: lyanchih]
Bosox20051 has quit [Read error: Connection reset by peer]
rezzack1 has left #ruby [#ruby]
robbyoconnor has joined #ruby
jaikeerthi has joined #ruby
rezzack has joined #ruby
m00nlight has quit [Remote host closed the connection]
intuxicated is now known as hidensoft
atSetKey has joined #ruby
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
nouitfvf_ has joined #ruby
fgo has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
lukec has joined #ruby
mary5030 has joined #ruby
polaco is now known as polaco_zZz
zeropx has quit [Quit: has left the room … Or did he?]
stkowski has quit [Quit: stkowski]
gstamp has quit [Read error: No route to host]
asteros has joined #ruby
gja has joined #ruby
fschuindt has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
atSetKey has quit [Read error: Operation timed out]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
mary5030 has joined #ruby
nouitfvf has quit [Ping timeout: 264 seconds]
mary5030 has quit [Read error: Connection reset by peer]
sergicles has quit [Quit: sergicles]
mary5030 has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
fgo has quit [Ping timeout: 264 seconds]
gstamp has joined #ruby
ChronocityLC has quit [Ping timeout: 264 seconds]
pwh has quit []
dankest has quit [Quit: Peace]
T_T has joined #ruby
jgrevich_ has quit [Ping timeout: 248 seconds]
agent_white has joined #ruby
osvico has quit [Ping timeout: 265 seconds]
wesside has quit [Quit: I think I heard an ice cream truck..]
gazzik has quit [Remote host closed the connection]
m00nlight has joined #ruby
bean has joined #ruby
pwh has joined #ruby
Banistergalaxy has joined #ruby
tomzx_mac has quit [Ping timeout: 256 seconds]
Sammael has joined #ruby
freezey has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
deweichen has joined #ruby
freezey has joined #ruby
glaksmono has quit [Quit: This computer has gone to sleep]
dhruvasagar has quit [Read error: Connection reset by peer]
cubicme has joined #ruby
dhruvasagar has joined #ruby
timonv has quit [Remote host closed the connection]
nutella has joined #ruby
Zesty has joined #ruby
timonv has joined #ruby
nutella is now known as Guest87600
zz_tsykoduk is now known as tsykoduk
ewnd9 has joined #ruby
<rjhunter>
jamescarr: ERb needn't feel like boilerplate -- the <%...%> code is just plain Ruby that executes in some context. If you call `#result` and pass in `binding`, the code is basically being evaluated as if it were written inline next to your `result` call.
<rjhunter>
class Example; def somemethod ; '' ; end ; def render_erb(template) ; ERB.new(template).result(binding) ; end ; end
<jamescarr>
ah the binding part is where I got confused
timonv has quit [Ping timeout: 252 seconds]
snovak has joined #ruby
<jamescarr>
I was defining an inline method that returned binding
<jamescarr>
just to get my variables in
amacgregor has joined #ruby
hakunin has quit [Remote host closed the connection]
<rjhunter>
Example.new.render_template('you can refer to <%= somemethod %> or even <%= yield %>') { 'use blocks' }
<jamescarr>
yeah I get it now: output = renderer.result(binding)
<jamescarr>
that was all I needed
LaPetiteFromage has joined #ruby
snovak has quit [Ping timeout: 252 seconds]
zoee has joined #ruby
brianpWins has joined #ruby
clocKwize_ is now known as clocKwize
amacgregor_ has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
amacgregor has quit [Ping timeout: 252 seconds]
headius has quit [Quit: headius]
chairabanta has quit [Quit: Leaving...]
apeiros has quit [Remote host closed the connection]
<k-man>
i want to deply dashing on my machine, rather than run it as a user, run it at startup. shoud I just install from source and "sudo make install"?
ananthakumaran has joined #ruby
threesome has joined #ruby
apeiros has joined #ruby
jaikeerthi has joined #ruby
braoru has joined #ruby
bradhe has quit [Remote host closed the connection]
cubicme has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
dzhulk has joined #ruby
mary5030 has quit [Remote host closed the connection]
cubicme has joined #ruby
mary5030 has joined #ruby
Mon_Ouie has quit [Read error: Operation timed out]
rahulkmr has quit [Ping timeout: 240 seconds]
threesome has quit [Ping timeout: 248 seconds]
b00stfr3ak has quit [Ping timeout: 248 seconds]
bradhe has quit [Ping timeout: 252 seconds]
gja has joined #ruby
agent_white has quit [Quit: 'backinnabit']
baroquebobcat has quit [Quit: baroquebobcat]
mary5030 has quit [Ping timeout: 248 seconds]
mercwithamouth has quit [Ping timeout: 265 seconds]
prox|a has joined #ruby
bluepojo_ has joined #ruby
bradhe has joined #ruby
virtualize has quit [Ping timeout: 240 seconds]
bluepojo has quit [Ping timeout: 240 seconds]
bricker`1A has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
vadviktor has quit [Ping timeout: 240 seconds]
Catie has quit [Ping timeout: 240 seconds]
axsuul has quit [Ping timeout: 240 seconds]
marcdel has quit [Ping timeout: 245 seconds]
vadviktor has joined #ruby
jamescarr has quit [Quit: jamescarr]
Catie has joined #ruby
Freeaqingme has quit [Ping timeout: 240 seconds]
keyvan_ has quit [Ping timeout: 240 seconds]
funburn has joined #ruby
Nahra_ has joined #ruby
telling_ has joined #ruby
henn2nk has joined #ruby
rdark has joined #ruby
closer009 has joined #ruby
devoldmx3 has joined #ruby
moeSeth has quit [Ping timeout: 240 seconds]
dnyy has quit [Ping timeout: 240 seconds]
Nahra has quit [Ping timeout: 240 seconds]
telling has quit [Ping timeout: 240 seconds]
joshu_ has quit [Ping timeout: 240 seconds]
henn1nk has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 240 seconds]
cam`_ has quit [Ping timeout: 240 seconds]
DanKnox has quit [Ping timeout: 240 seconds]
Hobogrammer has quit [Ping timeout: 240 seconds]
closer has quit [Ping timeout: 240 seconds]
WillAmes has quit [Remote host closed the connection]
DanKnox_ has joined #ruby
[0x1a]_ has quit [Ping timeout: 240 seconds]
joshu has joined #ruby
WillAmes has joined #ruby
DanKnox_ is now known as DanKnox
mrsolo_ has quit [Quit: This computer has gone to sleep]
ziyadb_ has joined #ruby
shaileshg_ has joined #ruby
ewnd9_ has joined #ruby
Freeaqingme has joined #ruby
Freeaqingme is now known as Guest58300
katherin1m13 has joined #ruby
TTilus has joined #ruby
jsaak has quit [Ping timeout: 240 seconds]
yosafbridge` has joined #ruby
Es0teric has joined #ruby
kapowaz_ has joined #ruby
jsaak has joined #ruby
ziyadb has quit [Ping timeout: 240 seconds]
shaileshg has quit [Ping timeout: 240 seconds]
yosafbridge has quit [Ping timeout: 240 seconds]
mroth has quit [Ping timeout: 240 seconds]
shaileshg_ is now known as shaileshg
ziyadb_ is now known as ziyadb
Gooder has joined #ruby
xargoon_ has joined #ruby
likemike_ has joined #ruby
JoeTheGuest has quit [Ping timeout: 240 seconds]
Zespre has quit [Ping timeout: 240 seconds]
ewnd9 has quit [Ping timeout: 240 seconds]
SilverKey has quit [Ping timeout: 240 seconds]
go|dfish has quit [Ping timeout: 240 seconds]
TheHodge has quit [Ping timeout: 240 seconds]
ihme-TTilus has quit [Ping timeout: 240 seconds]
katherinem13 has quit [Ping timeout: 240 seconds]
bpgoldsb has quit [Ping timeout: 240 seconds]
niftylettuce has quit [Ping timeout: 240 seconds]
bpgoldsb has joined #ruby
xargoon has quit [Ping timeout: 240 seconds]
kapowaz has quit [Ping timeout: 240 seconds]
LaPetiteFromage has quit [Ping timeout: 240 seconds]
likemike has quit [Ping timeout: 240 seconds]
Veejay has quit [Ping timeout: 240 seconds]
strax has quit [Ping timeout: 240 seconds]
xargoon_ is now known as xargoon
mercwithamouth has joined #ruby
kapowaz_ is now known as kapowaz
Biohazard has quit [Ping timeout: 245 seconds]
krzkrz has quit [Quit: krzkrz]
bio has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.0]
krzkrz has joined #ruby
ChronocityLC has quit [Ping timeout: 265 seconds]
osvico has quit [Ping timeout: 240 seconds]
Guest87600 has quit [Ping timeout: 252 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ren^ has quit [Ping timeout: 248 seconds]
gyzmodo has joined #ruby
cubicme has quit [Ping timeout: 264 seconds]
emdub_ has joined #ruby
babinho has joined #ruby
krzkrz has quit [Client Quit]
Veejay has joined #ruby
jkline has quit [Quit: jkline]
krzkrz has joined #ruby
rhunter has joined #ruby
roadt has quit [Ping timeout: 240 seconds]
eval-in__ has joined #ruby
jkline has joined #ruby
Lorn has quit [Ping timeout: 240 seconds]
babinho_ has quit [Ping timeout: 257 seconds]
emdub has quit [Ping timeout: 277 seconds]
diegoviola has quit [Ping timeout: 248 seconds]
Lewix_ has joined #ruby
jbeatty has joined #ruby
rjhunter has quit [Ping timeout: 240 seconds]
Lorn has joined #ruby
eval-in_ has quit [Ping timeout: 243 seconds]
Lewix has quit [Ping timeout: 240 seconds]
noop has joined #ruby
<jbeatty>
Hi, could anyone tell me why the one-liner "%p== Ah, I'm glad you're feeling #{@feeling!}!... I think" is confusing my syntax highlighting so much? [Haml] http://i.imgur.com/lTIzD3i.png
<jbeatty>
I'm copying this straight from a guide just to feel out the language and it's possible that syntax is outdated.
diego1 has joined #ruby
gtc has quit [Remote host closed the connection]
katherin1m13 is now known as katherinem13
diego1 is now known as diegoviola
<rhunter>
jbeatty: It looks like most of the line is being interpreted as Ruby
krzkrz has quit [Quit: krzkrz]
krz has joined #ruby
<rhunter>
jbeatty: which is to say, 'm glad you' is a string, and everything after the # is a comment
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
Ren^ has joined #ruby
<jbeatty>
Yeah, which is odd because the IDE (Nitrous.io) is set to Haml highlighting
<jbeatty>
changing it to Ruby highlighting turns %p== white but leaves the rest as it is
<rhunter>
I've not seen the double-equals syntax in HAML -- is that a typo or deliberate?
<rhunter>
%p= "Ah, I'm glad you're feeling #{@feeling}!... I think"
TheHodge has joined #ruby
<|jemc|>
yeah, it looks like the double-equals should be gone
Gooder has quit [Read error: Connection reset by peer]
<jbeatty>
Hm. Vim highlights it correctly. Should I just file a bug with the Nitrous team and move on?
tatsuya_o has joined #ruby
Lorn has quit [Ping timeout: 240 seconds]
<|jemc|>
ah, looks like maybe the double equals is for markdown
Xeago has joined #ruby
schaerli has joined #ruby
<|jemc|>
(or some other markup syntax)
Guest91821 is now known as sumark
<rhunter>
it looks like the double-equals is new (it's not in listed in http://haml.info/docs/yardoc/file.REFERENCE.html), so yeah I guess it's just something that hasn't made it to the Nitrous highlight definitions
<jbeatty>
In Vim, %p and %p== lead to correct highlighting but %p= does not
<rhunter>
it seems that == ... exactly equivalent to = "..."
SilverKey has joined #ruby
<rhunter>
(a double-quoted Ruby string)
<|jemc|>
ah
deweichen has quit [Remote host closed the connection]
<|jemc|>
it's not highlighting right in sublime text for me either if that makes you feel any better
<|jemc|>
not until I explicitly double quote the line
Lorn has joined #ruby
<jbeatty>
|jemc|: double quoting the line works for me too, but I don't want the quotes to show up in the output
Xeago has quit [Remote host closed the connection]
tatsuya_o has quit [Ping timeout: 252 seconds]
snovak has joined #ruby
jonathanwallace has quit [Read error: Connection reset by peer]
sr78ger has joined #ruby
<|jemc|>
well, if what jbeatty said is correct, doing a single equals with the quotes is the same as doing double equals, and you shouldn't see the quotes in the output
jonathanwallace has joined #ruby
<|jemc|>
or rather
<|jemc|>
s/rhunter/jbeatty
<|jemc|>
s/jbeatty/rhunter*
<|jemc|>
ugh
<jbeatty>
OK :) %p= and double-quotes is the solution -- can someone illustrate for me the difference between %p, %p=, and %p== in this context?
<jbeatty>
If I seem like a clueless dude, I come from LAMP-land where we don't have fancy toys.
<jrobeson>
jbeatty, well i'm missing twig more than haml.. :(
<pontiki>
the first one just copies the text.
<jrobeson>
liquid is the closest analog in ruby
<jbeatty>
OK, so the = means that something is being interpreted on the line?
<pontiki>
the second one evaluates a ruby expression
<jrobeson>
and shows the output
<pontiki>
yes
<jrobeson>
it's like puts
<pontiki>
yes, sorta
<rhunter>
%p= 1 + 1 becomes 2
<pontiki>
good analogue anyway
carraroj has joined #ruby
<pontiki>
it's like <p><%= "Hello #{name}" %></p> in erb
<jbeatty>
never experienced erb
<pontiki>
fascinating
<jbeatty>
but %p= does make sense
<jrobeson>
pontiki, well almost all the engines i've used in the past years always do some sort of compilation process.. where actual puts would break it :)
<jrobeson>
jbeatty, erb is just like the nonsense you can do with php templates
<jrobeson>
<?= "Hello $name" ?>
<jrobeson>
same thing ..
Senjai has quit [Ping timeout: 264 seconds]
tziOm has joined #ruby
<jbeatty>
to be fair I don't touch that much either :x my partner does all of the templates for me, I just pass the right stuff into the route and call it a day :D
<jrobeson>
you never even make the base templates?
<jrobeson>
ah. i always make the base templates before anybody touches em
<jrobeson>
otherwise the people who touch my templates would totally stuff up the markup and make it terribly invalid or very unsemantic
<jbeatty>
not really, no, once the backend is done I tend to move onto something else and I'll come back if it's not working for her
<rhunter>
jrobeson: Interestingly, the PHP style is to use the printing mechanism -- <p>Hello <?php echo('world') ?>!
jkline has quit [Quit: jkline]
<jrobeson>
rhunter, without the echo
tsykoduk is now known as zz_tsykoduk
<jrobeson>
i mean.. this is perfectly valid php <?= "world" ?>
<rhunter>
but that's ?=
<jrobeson>
so?
<sevenseacat>
nothing wrong with that
weeb1e has joined #ruby
<jrobeson>
<?= is the same as <?php echo
rezzack has joined #ruby
<jbeatty>
I've dealt with environments where <?= was disabled
<jbeatty>
pretty dumb
<jrobeson>
that's different
filipe has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 240 seconds]
<jrobeson>
since php 5.4 this syntax is enabled by default
<pontiki>
can we not argue php syntax here please
jkline has joined #ruby
<sevenseacat>
ini_set('short_tags', 'on') *runs*
andikr has joined #ruby
<jrobeson>
not the same :)
<pontiki>
ini_set("flame", "sevenseacat")
fuhgeddaboudit has joined #ruby
<sevenseacat>
:P
<jrobeson>
This directive also affected the shorthand <?= before PHP 5.4.0, which is identical to <? echo. Use of this shortcut required short_open_tag to be on. Since PHP 5.4.0, <?= is always available.
<pontiki>
regardless.
<pontiki>
is there an actual *ruby* question here?
<jbeatty>
there was
<jbeatty>
way up there
<jrobeson>
last thing there.. i was only trying to help jbeatty use something he already knew.. but turns out that wasn't the case.. since he didn't do templates anyways
<jbeatty>
somewhere
fuhgeddaboudit has quit [Max SendQ exceeded]
<jbeatty>
well, no, it was haml, technically
<pontiki>
and note that haml is not ruby
<jbeatty>
#haml is not very well-populated and I imagine #ruby is full of haml users
<jrobeson>
the real problem is lack of understanding templates systems generally, i understand that now
<jrobeson>
php or otherwise
<pontiki>
i would be willing to bet there are even *more* haml users in #rubyonrails
tzi0m has joined #ruby
tzi0m has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Remote host closed the connection]
<jbeatty>
I'm not using RoR and I dislike RoR evangelists since I live with one
<jrobeson>
i'm a haml user.. but to me it looked like the question was already answered..
<jbeatty>
my experience with asking for help from a RoR user is that the explanation always begins with the phrase "well in Rails..."
<popl>
Hamill?!
* popl
shakes fist
<jrobeson>
yes.. mark hamill
<jrobeson>
get em popl
<rhunter>
fun fact, for anyone who's interested (probably jbeatty) -- you don't need any equalses at all to do #{...} interpolation
<rhunter>
so my example before may have been a lie
canton7 has joined #ruby
<jbeatty>
FYI Mark Hamill played the Joker in Batman: The Animated Series, which won four Emmy awards -- and back on topic
T_T has joined #ruby
DanKnox is now known as DanKnox_away
zarubin has joined #ruby
<popl>
jbeatty: I wonder what the likelihood of someone not knowing that is.
cutmail has quit [Remote host closed the connection]
<rhunter>
popl: My housemate didn't know -- twice
cutmail has joined #ruby
pwh has quit []
<popl>
rhunter: Is your housemate a Very Special Person?
dash_ has joined #ruby
tatsuya_o has joined #ruby
cutmail has quit [Read error: Connection reset by peer]
Hanmac has joined #ruby
cutmail has joined #ruby
ephemerian has joined #ruby
aryaching has joined #ruby
aganov has joined #ruby
asteros has quit [Quit: asteros]
<rhunter>
popl: He's special in his own way, but he's studied engineering and dietary science so he's certainly capable of remembering other things :-)
mrsolo_ has joined #ruby
funburn has quit [Quit: funburn]
maZtah has joined #ruby
<Hanmac>
YEAH !!! nobu is awesome! …. fixed an Segfault bug in under 12h ;D
jprovazn has joined #ruby
asteros has joined #ruby
rhunter has quit [Read error: Connection reset by peer]
asteros has quit [Client Quit]
h_kon has joined #ruby
<popl>
rhunter: I think it's less likely that people will recognize him from Metalocalypse. He is cemented in my mind as Christopher Blair from Wing Commander (because nostalgia, I guess).
rjhunter has joined #ruby
claymore has joined #ruby
k-man has quit [Ping timeout: 245 seconds]
zerun0_ has quit [Ping timeout: 265 seconds]
popl has quit [Quit: We must make an idol of our fear, and call it God.]
zerun0_ has joined #ruby
relix has joined #ruby
k-man has joined #ruby
zz_tsykoduk is now known as tsykoduk
mcrmfc has joined #ruby
pygospa has quit [Ping timeout: 246 seconds]
fuhgeddaboudit has joined #ruby
ahawkins has joined #ruby
aryaching has quit [Ping timeout: 248 seconds]
pygospa has joined #ruby
|jemc| has quit [Ping timeout: 268 seconds]
sectionme has joined #ruby
ahawkins_ has joined #ruby
ta has quit [Remote host closed the connection]
tatsuya_o has quit [Remote host closed the connection]
oliver_ has joined #ruby
tatsuya_o has joined #ruby
nutella has joined #ruby
nutella is now known as Guest30113
PaulePan1er is now known as PaulePanter
dangerousdave has joined #ruby
jkline has quit [Quit: jkline]
threesome has joined #ruby
Karpuragauram has joined #ruby
Guest30113 has quit [Read error: Operation timed out]
tatsuya_o has quit [Ping timeout: 264 seconds]
alup has joined #ruby
hogeo_ has joined #ruby
carraroj has quit [Ping timeout: 248 seconds]
carraroj has joined #ruby
Xeago has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
hogeo has quit [Read error: Operation timed out]
skaflem has joined #ruby
krz has quit [Quit: krz]
ardavast has joined #ruby
Al___ has joined #ruby
mcrmfc has quit [Ping timeout: 265 seconds]
<Hanmac>
shevy: yeah my bug from yesterday was fixed in ruby-trunk … eat that jruby ;D
nessib has joined #ruby
ericmathison has joined #ruby
ta has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
justsee has quit [Ping timeout: 248 seconds]
nessib has quit [Client Quit]
Hobogrammer has joined #ruby
nessib has joined #ruby
s3itz has quit [Ping timeout: 240 seconds]
telling_ is now known as telling
telling has quit [Changing host]
telling has joined #ruby
timonv has joined #ruby
io_syl has quit []
ardavast has quit [Quit: Leaving]
amacgregor has joined #ruby
snovak has joined #ruby
justsee has joined #ruby
senayar has joined #ruby
amacgregor__ has joined #ruby
senayar has quit [Remote host closed the connection]
troessner has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
senayar has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
amacgregor_ has quit [Ping timeout: 245 seconds]
dangerousdave has quit [Quit: Leaving...]
cubicme has joined #ruby
vlad_starkov has joined #ruby
Vivekananda has quit [Remote host closed the connection]
Karpuragauram has quit [Read error: Connection reset by peer]
amacgregor has quit [Ping timeout: 260 seconds]
snovak has quit [Ping timeout: 268 seconds]
dagobah has joined #ruby
jbpros has joined #ruby
deweichen has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
wildroman has joined #ruby
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
hogeo has joined #ruby
timonv has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
hogeo_ has quit [Ping timeout: 264 seconds]
shaunbak_ has joined #ruby
sk87 has joined #ruby
deweichen has quit [Ping timeout: 248 seconds]
Inside has joined #ruby
whunt has joined #ruby
Gooder has joined #ruby
maZtah has quit [Changing host]
maZtah has joined #ruby
sk87 has quit [Client Quit]
ta has quit [Read error: Connection reset by peer]
Guestl337 has joined #ruby
<Guestl337>
yano
Xeago_ has joined #ruby
apeiros has joined #ruby
iliketurtles has joined #ruby
aryaching has joined #ruby
Xeago_ has quit [Remote host closed the connection]
barratt has joined #ruby
barratt has quit [Remote host closed the connection]
barratt has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
xkickflip_ has joined #ruby
Akuma has quit [Ping timeout: 256 seconds]
johchri has joined #ruby
xkickflip has quit [Ping timeout: 260 seconds]
xkickflip_ is now known as xkickflip
shaunbak_ has quit [Remote host closed the connection]
shaunbaker has joined #ruby
obs has joined #ruby
Akuma has joined #ruby
gja has joined #ruby
xkickflip_ has joined #ruby
carraroj has quit [Ping timeout: 264 seconds]
tsykoduk is now known as zz_tsykoduk
jlebrech has joined #ruby
keyvan_ has joined #ruby
aagdbl has joined #ruby
Kneferilis has joined #ruby
Bry8Star{T2 has joined #ruby
moeSeth has joined #ruby
dnyy has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
_adeponte has quit [Remote host closed the connection]
ta has joined #ruby
cam`_ has joined #ruby
shaunbak_ has joined #ruby
adeponte has joined #ruby
carraroj has joined #ruby
dash_ has quit [Quit: dash_]
workmad3 has joined #ruby
xkickflip has quit [Ping timeout: 268 seconds]
atSetKey has joined #ruby
xkickflip_ is now known as xkickflip
adambeynon has joined #ruby
go|dfish has joined #ruby
justsee has quit [Ping timeout: 240 seconds]
Anticom has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
[0x1a]_ has joined #ruby
shaunbak_ has joined #ruby
Zespre has joined #ruby
JoeTheGuest has joined #ruby
mroth has joined #ruby
krz has quit [Quit: krz]
persand has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
adeponte has quit [Ping timeout: 248 seconds]
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
xkickflip has quit [Ping timeout: 245 seconds]
Kneferilis has quit [Ping timeout: 265 seconds]
niftylettuce has joined #ruby
utkarsh_ is now known as utkarsh
vlad_starkov has joined #ruby
utkarsh has quit [Changing host]
utkarsh has joined #ruby
boboc has joined #ruby
shaunbak_ has quit [Ping timeout: 264 seconds]
strax has joined #ruby
xkickflip has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
nutella has joined #ruby
elaptics`away is now known as elaptics
nutella is now known as Guest15732
TMM has joined #ruby
mcrmfc has joined #ruby
dhruvasagar has joined #ruby
kaspergrubbe has joined #ruby
Guestl337 has left #ruby ["Leaving"]
Guest15732 has quit [Ping timeout: 265 seconds]
adeponte has joined #ruby
jlebrech has quit [Ping timeout: 252 seconds]
tesuji has joined #ruby
adeponte has quit [Remote host closed the connection]
oliver_ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
nomenkun has joined #ruby
zz_tsykoduk is now known as tsykoduk
noname001__ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Inside has quit [Read error: Connection reset by peer]
Lewix_ is now known as Lewix
dash_ has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
atSetKey has quit [Remote host closed the connection]
<[gnubie]>
workmad3: if it doesn't exist, create the file then YAML.load_file?
<workmad3>
[gnubie]: sure, you could do that too
<hoelzro>
why create the file to prevent the failure?
<hoelzro>
that seems like a bad way to go about it
<workmad3>
^^ I side with hoelzro
vlad_starkov has joined #ruby
adeponte has quit [Ping timeout: 248 seconds]
tatsuya__ has joined #ruby
<workmad3>
for starters, trying to create the file could itself cause problems (it's not exactly unheard of for sysadmins to make config files and directories unwritable to processes after all ;) )
ndngvr has quit [Ping timeout: 248 seconds]
<hanmac>
workmad3: my bug from yesterday was fixed in less then 9 hours … eat that jRuby ;D
<[gnubie]>
because i plan to auto-configure my script when i first use it.
polymar has joined #ruby
<bnagy>
have a default config in the script as a hash, then have user settings in a yml and do settings = DEFAULTS.merge user_settings
<workmad3>
hanmac: what bug was that? :)
vlad_starkov has quit [Remote host closed the connection]
<[gnubie]>
bnagy: i'm getting info from the system and user input from gets
<workmad3>
[gnubie]: as bnagy suggested... or have a command line flag for the script that will echo out the generated config for a sysadmin to use
<hanmac>
#ruby-lang is potected so only registered users an enter it
AndChat| has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
<lassebunk>
ok :)
mfoo has joined #ruby
<hanmac>
hm #ruby is more for ruby users, #ruby-lang is more for the devs of ruby itself
AndChat| has quit [Client Quit]
<hanmac>
(and #ruby is more active ;P )
<lassebunk>
so I guess I need to be on #ruby and then when I get cool enough, I can join #ruby-lang
<workmad3>
hanmac: as I just said in #ruby-lang... technically #ruby-lang is the official ruby chan on freenode :)
AndChat| has joined #ruby
cubicme has joined #ruby
atSetKey has joined #ruby
<lassebunk>
(that was a joke)
<hanmac>
the ruby hipsters are currently in #pry ;D
jbpros has joined #ruby
razi has joined #ruby
* workmad3
goes to peer at hipsters in the wild
joshu has joined #ruby
<lassebunk>
oh ;)
<mfoo>
using rspec-mocks, I'm having difficulty with a test that should ensure File.should_not_receive(:delete), call a function, then File.should_receive(:delete), then re-call the function. I can't reset the original should_not_receive on the File module. Any suggestions?
unity3d199 has joined #ruby
<mfoo>
apart from refactoring this into two tests, I'm not sure what to do
unity3d199 has left #ruby [#ruby]
lkba has quit [Ping timeout: 264 seconds]
AndChat| has quit [Client Quit]
deadfall has quit [Ping timeout: 250 seconds]
<workmad3>
mfoo: split it into two tests
lkba has joined #ruby
<rjhunter>
workmad3: if you *really* don't want to split it into two tests, you've got a couple of options
relix has joined #ruby
<rjhunter>
oops
<rjhunter>
mfoo: if you *really* don't want to split it into two tests, you've got a couple of options
kaspergrubbe has joined #ruby
<workmad3>
mfoo: I'm a fan of the 'tests should only test one thing' approach ;)
<rjhunter>
but i'd really go for the split
atSetKey has quit [Ping timeout: 248 seconds]
<mfoo>
I've split them
bio is now known as Biohazard
<mfoo>
thanks, mostly this was a question about 'is this possible' not 'what's the best thing to do' :)
dash_ has quit [Ping timeout: 248 seconds]
Jetchisel has joined #ruby
polymar has joined #ruby
<workmad3>
mfoo: you could have set up a single expectation that File should receive :delete at most once within the test
atmosx has joined #ruby
<workmad3>
mfoo: although that would let through the case where your logic was the wrong way around
<mfoo>
indeed
snovak has joined #ruby
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
<workmad3>
mfoo: you could also have stubbed delete to raise an exception for the first call, then reset the stub, set up your expectation and called again
dangerousdave has quit [Quit: Leaving...]
tjsousa has quit [Remote host closed the connection]
<mfoo>
that's more interesting, cheers
avril14th has quit [Read error: Connection reset by peer]
mcrmfc has quit [Read error: Operation timed out]
snovak has quit [Ping timeout: 268 seconds]
lyanchih has quit [Ping timeout: 252 seconds]
lyanchih has joined #ruby
kitak_ has quit [Remote host closed the connection]
dash_ has joined #ruby
user__ has quit [Read error: Connection reset by peer]
chairabanta has joined #ruby
persand has quit [Quit: persand]
atmosx has quit [Quit: Lost in trance]
lyanchih has quit [Client Quit]
sevenseacat has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
Lewix has quit [Remote host closed the connection]
atSetKey has joined #ruby
dhilipsiva has quit [Remote host closed the connection]
dhilipsiva has joined #ruby
dangerousdave has joined #ruby
dweeb_ has joined #ruby
dhilipsiva has quit [Remote host closed the connection]
atSetKey has quit [Remote host closed the connection]
BTool has joined #ruby
Aryasam has quit [Ping timeout: 245 seconds]
avril14th has joined #ruby
Aryasam has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
bigkevmcd has joined #ruby
wildroman has joined #ruby
m00nlight has quit [Remote host closed the connection]
dash_ has quit [Quit: dash_]
svector has joined #ruby
ewnd9_ has joined #ruby
danshultz has joined #ruby
graydot has joined #ruby
Mon_Ouie has joined #ruby
chairabanta has quit [Quit: Leaving...]
hanmac has quit [Quit: Leaving.]
Aryasam has quit [Ping timeout: 264 seconds]
mrsolo_ has quit [Ping timeout: 240 seconds]
<[gnubie]>
how to access a local variable inside the method that expects an argument?
Aryasam has joined #ruby
<apeiros>
[gnubie]: huh?
<apeiros>
you can't access outside local variables (hence "local"). you have to pass it as an argument.
fijimunkii has quit [Ping timeout: 264 seconds]
<apeiros>
or store it with the instance or in some other accessible manner.
cubicme has quit [Read error: Connection reset by peer]
<[gnubie]>
def method_name(argument_name)\n local_var = 1\n end
<tobiasvl>
[gnubie]: please write ; instead of \n
<[gnubie]>
tobiasvl: ok.
<apeiros>
; instead of \n because that's actually valid ruby
postmodern has quit [Quit: Leaving]
<tobiasvl>
and yes, that code is fine. what's your question?
<apeiros>
(giving the rationale behind what tobiasvl said)
cubicme has joined #ruby
<tobiasvl>
yes, thanks ;)
diegoviola has quit [Ping timeout: 260 seconds]
maoko has joined #ruby
<[gnubie]>
tobiasvl: in order to call/execute the method "method_name", i have to call it as method_name(whatever). but what if, i want to access or get the value of local_var outside the method?
<apeiros>
[gnubie]: you can not.
<tobiasvl>
you can't
mrsolo_ has joined #ruby
<tobiasvl>
it is _local_ to the method
<apeiros>
this is not how it's supposed to work. change how you think about that.
<[gnubie]>
i want to get the value of local_var because i'm doing some condition below my script.
<tobiasvl>
then return it from the method?
<[gnubie]>
ah
<[gnubie]>
no need to return back to method
<tobiasvl>
?
Aryasam has quit [Ping timeout: 268 seconds]
svector has quit [Ping timeout: 264 seconds]
<[gnubie]>
i'm doing some comparison and just getting the value of that local_var
Aryasam has joined #ruby
<[gnubie]>
so there is no way that i can get the value of the local_var outside of the method?
<apeiros>
you can get *the value*
<tobiasvl>
you can return it
<apeiros>
but you can't get *the variable*
<apeiros>
and you get the value by returning it
pedda has joined #ruby
ewnd9_ has quit [Ping timeout: 268 seconds]
<[gnubie]>
sorry if i sound so newbie to you guys. thanks for giving your answers.
<tobiasvl>
well, you do sound like newbie, not only to ruby but to programming in general?
<tobiasvl>
(that's okay btw)
<tobiasvl>
but you should probably learn 1. what a variable is 2. what a method is
<tobiasvl>
:)
<apeiros>
it's totally unacceptable to be a newbie to anything!!!! ;-)
<apeiros>
amending: 3. what the difference between a value (object) and a variable is
ereslibre has quit [Remote host closed the connection]
aalmenar has quit [Remote host closed the connection]
shaunbaker has joined #ruby
kindjal has joined #ruby
kaldrenon has joined #ruby
someish has joined #ruby
Xeago has quit [Remote host closed the connection]
amacgregor has quit [Read error: Connection reset by peer]
bsaboia_ has joined #ruby
amacgregor has joined #ruby
ItSANgo has joined #ruby
bondar has quit [Quit: Leaving]
sergicles has joined #ruby
justsee has quit [Ping timeout: 248 seconds]
dzhulk1 has quit [Quit: Leaving.]
SilverKey has quit [Ping timeout: 248 seconds]
amacgregor has quit [Ping timeout: 245 seconds]
geekbri has joined #ruby
larissa has joined #ruby
Beoran_ has joined #ruby
khushildep has joined #ruby
headius has joined #ruby
mfoo has quit [Quit: Leaving]
snovak has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
Beoran has quit [Ping timeout: 240 seconds]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
h_kon has quit [Remote host closed the connection]
jaynewstrom has joined #ruby
Dreamer3__ has quit [Quit: Computer has gone to sleep.]
helloworld has joined #ruby
razi has quit [Quit: Leaving.]
jamescarr has quit [Quit: jamescarr]
devoldmx has joined #ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
snovak has quit [Ping timeout: 268 seconds]
ghr has joined #ruby
devoldmx3 has quit [Ping timeout: 260 seconds]
cody-- has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 248 seconds]
someish has quit [Quit: someish]
vlad_starkov has joined #ruby
abstractj_ has quit [Changing host]
abstractj_ has joined #ruby
abstractj_ is now known as abstractj
grulos has joined #ruby
graydot has quit [Quit: graydot]
vince_prignano has quit [Remote host closed the connection]
cody-- has quit [Read error: Connection reset by peer]
cody-- has joined #ruby
AndChat| has joined #ruby
cubicme has quit [Ping timeout: 248 seconds]
Banistergalaxy has quit [Ping timeout: 240 seconds]
fijimunkii has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
agjacome has quit [Ping timeout: 240 seconds]
tjbarber has joined #ruby
vlad_starkov has joined #ruby
wallerdev has joined #ruby
v0n has joined #ruby
michael_mbp is now known as zz_michael_mbp
Boohbah has quit [Ping timeout: 240 seconds]
agjacome has joined #ruby
digitalcake has joined #ruby
burlyscudd has joined #ruby
atSetKey has joined #ruby
ravster has joined #ruby
Boohbah has joined #ruby
jibi has joined #ruby
robbyoconnor has quit [Read error: Operation timed out]
cubicme has joined #ruby
tomzx_mac has joined #ruby
jamescarr has joined #ruby
lyanchih has joined #ruby
carraroj has joined #ruby
lfox has joined #ruby
senayar_ has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Read error: Connection reset by peer]
SuperHans has joined #ruby
lfox has quit [Client Quit]
senayar has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kindjal has quit [Quit: Computer has gone to sleep.]
SuperHans has left #ruby [#ruby]
ewnd9_ has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
lfox has joined #ruby
ArchBeOS has joined #ruby
devoldmx has quit [Ping timeout: 265 seconds]
carraroj has quit [Client Quit]
sr78ger has quit [Ping timeout: 248 seconds]
T_T has joined #ruby
sectionme has joined #ruby
svector has joined #ruby
mary5030 has joined #ruby
momomomomo has joined #ruby
krz has quit [Quit: krz]
theRoUS has joined #ruby
bsaboia_ has quit [Quit: Leaving]
devoldmx has joined #ruby
zevs04 has quit [Quit: leaving]
atSetKey has quit [Ping timeout: 252 seconds]
sectionme has quit [Ping timeout: 265 seconds]
polaco_zZz is now known as polaco
zevs04 has joined #ruby
T_T has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
bean has joined #ruby
colonolGron has quit [Ping timeout: 248 seconds]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
maasha has joined #ruby
julian-delphiki has quit [Ping timeout: 248 seconds]
Zai00_ has joined #ruby
<maasha>
hi
<tjbarber>
I can quit method execution early in Ruby by using return just like in another language correct?
<hoelzro>
yes
<tjbarber>
ok thanks
Zai00 has quit [Ping timeout: 265 seconds]
Zai00_ is now known as Zai00
<maasha>
I am using ruby parallel to fork processes, and I would like to print some debug messages to stderr, but the lines gets broken up. How can I fix that?
jamescarr has quit [Quit: jamescarr]
<Bofu2U>
define broken up
nutella has joined #ruby
<Bofu2U>
sometimes 2 of them go on the same line?
<hoelzro>
maasha: are you printing each message using a single call to puts?
nutella is now known as Guest46638
pwh has joined #ruby
<Bofu2U>
Could always throw an extra \n into the puts, it won't fix all of them but will fix some of them
mengu has quit [Read error: Connection reset by peer]
tesuji has quit [Read error: Connection reset by peer]
jerius has joined #ruby
ceverett has quit [Remote host closed the connection]
mengu has joined #ruby
<cout>
maasha: if you don't include the \n yourself, then puts does two writes, one for your line and one for the \n
shaunbak_ has joined #ruby
<maasha>
hoelzro: yes
<hoelzro>
if you use a single puts to write to standard output, it should be done in a single system call
<hoelzro>
so they should all be on separate lines
<maasha>
hoelzro: it may be a buffering problem?
<hoelzro>
hmm
<hoelzro>
buffers are *usually* flushed after a newline is printed
<hoelzro>
unless Ruby does its own buffering on top...
* maasha
wonders if there is an argument to puts that flushes buffers
<cout>
it's not a buffering problem
<cout>
just look at the source to rb_io_puts
Guest46638 has quit [Ping timeout: 245 seconds]
felixjet_ has quit [Quit: felixjet_]
<maasha>
cout: ok, then
pwh has quit [Client Quit]
felixjet has joined #ruby
zarubin has joined #ruby
devoldmx3 has joined #ruby
shaunbaker has quit [Ping timeout: 264 seconds]
lyanchih has quit [Quit: lyanchih]
cmarques has joined #ruby
momomomomo has quit [Quit: momomomomo]
kaspergrubbe has joined #ruby
devoldmx has quit [Ping timeout: 265 seconds]
devoldmx3 has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
stkowski has joined #ruby
freezey has joined #ruby
randomnick_ has joined #ruby
IceyEC has joined #ruby
cody-- has quit [Quit: derp]
nessib has quit [Ping timeout: 240 seconds]
kil0byte_ has joined #ruby
pwh has joined #ruby
alx- has joined #ruby
cubicme has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby
filipe has quit [Quit: Leaving]
Xeago has joined #ruby
kil0byte has quit [Ping timeout: 252 seconds]
zz_michael_mbp is now known as michael_mbp
gja has quit [Ping timeout: 252 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
staafl has joined #ruby
Ox6abe has joined #ruby
fgo has quit [Remote host closed the connection]
zoee has quit [Quit: zoee]
ananthakumaran has quit [Quit: Leaving.]
mary5030 has quit [Remote host closed the connection]
decoponio has joined #ruby
mary5030 has joined #ruby
snovak has joined #ruby
snovak_ has joined #ruby
rickmasta has joined #ruby
ldnunes has quit [Quit: Leaving]
funburn has joined #ruby
nessib has joined #ruby
nessib has quit [Max SendQ exceeded]
ldnunes has joined #ruby
banisterfiend has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
varfoo has quit [Quit: WeeChat 0.4.0]
gja has joined #ruby
v0n has quit [Ping timeout: 240 seconds]
fuhgeddaboudit has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
snovak has quit [Ping timeout: 260 seconds]
ffranz has joined #ruby
kevind has joined #ruby
dzhulk has joined #ruby
wallerdev has joined #ruby
peregrine81 has joined #ruby
funburn has quit [Ping timeout: 248 seconds]
pwh has quit []
kil0byte has joined #ruby
BizarreCake has joined #ruby
gja has quit [Ping timeout: 240 seconds]
xk_id has quit [Quit:
braoru has quit [Remote host closed the connection]
kil0byte_ has quit [Ping timeout: 240 seconds]
jamescarr has joined #ruby
Fire-Dragon-DoL has joined #ruby
senayar has quit [Remote host closed the connection]
newbiehacker has quit [Read error: Connection reset by peer]
v0n has joined #ruby
newbiehacker has joined #ruby
nessib has joined #ruby
kindjal has joined #ruby
polymar has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
buibex has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
decoponio has quit [Quit: My PC will be restarting]
nessib has quit [Max SendQ exceeded]
olivier_bK has quit [Quit: Quitte]
freezey has joined #ruby
sambao21 has joined #ruby
jonathanwallace has joined #ruby
mlpinit has joined #ruby
tomzx_mac has quit [Ping timeout: 264 seconds]
A124 has joined #ruby
coderhs has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
graydot has joined #ruby
kindjal has quit [Client Quit]
johnnyfuchs has joined #ruby
<A124>
Hey guys. Absent a while. I'll a a stupid simple Q: How do I write numbers in binary to file. Say I have "010101010". And want it to get to binary. I already converted it to int. Now I would like to write it as an unsigned int.
jezen has joined #ruby
<jezen>
hey guys
petey has joined #ruby
<jezen>
new to ruby, and don’t get to use it every day so it’s hard to remember the syntax
<jezen>
I have a has like this: {"key" => "val"}
<apeiros>
A124: not really getting what you're missing
<jezen>
how do I access val?
<A124>
apeiros: Getting integer to file in binary form, not in string form
<apeiros>
A124: so you converted "010101010" already to 170 - and now, what do you miss?
<jezen>
have a hash*
<apeiros>
jezen: hash["key"]
<apeiros>
jezen: or hash.fetch("key") if you want an exception if the key does not exist.
<jezen>
apeiros: does that work with interpolation?
<apeiros>
A124: 170.to_s(2) # => "010101010"
<apeiros>
well, actually "10101010"
<A124>
apeiros: ...
<jezen>
apeiros: like, puts "val: #{hash["key"]}"
<A124>
Say I want to write "9 " to file in binary form
<A124>
1001
<jezen>
do I escape the double quotes like I would in PHP?
<A124>
jezen: ' ?
<apeiros>
jezen: how about you present the case where you have issues with?
iamjarvo has joined #ruby
<jezen>
I’ll try single quotes
<A124>
jezen: or \
<apeiros>
jezen: and yes, escape character in ruby is \
<apeiros>
so "\"" is a string consisting of one double-quote character.
<apeiros>
alternatively '"'
<jezen>
that worked. Thanks!
<maasha>
single quote: "in case of snakebites always carry a jug of whiskey - and a small snake"
dangerousdave has quit [Quit: Leaving...]
lukec has joined #ruby
<A124>
apeiros: Any idea?
<jezen>
reason why I’m asking here is because I don’t want to approach ruby like “Hmm, how would I achieve this with PHP…”
<apeiros>
A124: as said, to_s(2)
<jezen>
seems like the wrong way to do things
<apeiros>
if that's not what you're asking, please amend your question
Heero has joined #ruby
<A124>
apeiros: But I don't want string, but actual binary
<A124>
What is hard to understand on that?
atSetKey has joined #ruby
<apeiros>
A124: oh wow…
<apeiros>
A124: I guess I know now what you want. but if you get at me this way then:
<apeiros>
how hard is it to understand that for a binary representation you need to specify a width
<A124>
I have no idea.
<apeiros>
also how hard is it to understand that "9" already is binary. just different kind of.
mayday_jay has joined #ruby
<rjhunter>
jezen: "jezen's string has \"double quotes\" inside it" 'jezen\'s string has "double quotes" inside it' %{jezen's string has "double quotes" inside it}
<A124>
apeiros: Yeah I want the actual 9, not the representation of 9 as character
tkuchiki has joined #ruby
<jezen>
rjhunter: What a shame I can’t do this: "value: #{hash[“key”]}" ;)
brennanMKE has joined #ruby
mary5030 has joined #ruby
tanema has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
nessib has joined #ruby
mary5030 has quit [Remote host closed the connection]
brennanMKE has joined #ruby
maasha has quit [Quit: Page closed]
mary5030 has joined #ruby
atSetKey has quit [Ping timeout: 260 seconds]
Kabaka has joined #ruby
<rjhunter>
jezen: it would work if you first executed ran “key” = 'key'
jibi has quit [Quit: .]
<rjhunter>
jezen: as long as ruby interpreter knew your file was in UTF-8 ;-)
nessib has quit [Max SendQ exceeded]
<rjhunter>
jezen: of course, using Unicode curly quotes as part of a variable name is probably a terrible idea and I should be ashamed for mentioning it ;-)
iamjarvo has quit [Ping timeout: 248 seconds]
JMcAfreak has joined #ruby
baroquebobcat has joined #ruby
zevs04 has quit [Remote host closed the connection]
zevs04 has joined #ruby
kindjal has joined #ruby
elux has joined #ruby
<hanmac>
haha i heard a joke today … "the hackers have hacked Adobe servers … and fixed Flash" ;P
<workmad3>
:)
<apeiros>
A124: see Array#pack
jkamenik has quit [Quit: Leaving.]
jaikeerthi has quit [Ping timeout: 240 seconds]
Kar- has quit [Ping timeout: 240 seconds]
<A124>
apeiros: Thanks, Already got it exactly now
ta_ has quit [Remote host closed the connection]
<apeiros>
I hope you didn't use Integer#chr
momomomomo has joined #ruby
tagrudev has quit [Remote host closed the connection]
someish has joined #ruby
* hanmac
sings "i am packing my Array and i put an Integer inside"
nutella has joined #ruby
mayday_jay has quit [Quit: c ya!]
io_syl has joined #ruby
<A124>
apeiros: Well. Pack('C') .. so basically yes
nutella is now known as Guest45406
<apeiros>
basically no. pack("C") is ok. chr wouldn't be.
<A124>
apeiros: Also can't say that in past tense just found that
kpshek has joined #ruby
<A124>
apeiros: Why so?
<apeiros>
because chr is codepoint.
<A124>
Which means?
jaikeerthi has joined #ruby
<apeiros>
codepoint means codepoint. codepoint != byte(s) value.
habstinat has joined #ruby
mlpinit has quit [Remote host closed the connection]
jonathanwallace has quit [Quit: WeeChat 0.4.1]
<apeiros>
hm, seems though that chr defaults to binary. then it's actually ok.
jonathanwallace has joined #ruby
mlpinit has joined #ruby
<apeiros>
I assumed it'd use Encoding.default_external
<workmad3>
>> "
<workmad3>
hmm... does eval-in like utf-8 I wonder?
<apeiros>
I had issues with eval-in and utf-8
<hoelzro>
more like "
<A124>
apeiros: IDK, going for unsigned long :) Thanks
<apeiros>
A124: don't forget to check endianness then.
Guest45406 has quit [Ping timeout: 240 seconds]
rickmasta has quit [Quit: Leaving...]
<workmad3>
A124: basically, in unicode encodings, the codepoint is the unicode-assigned number for the character
<A124>
apeiros: No way to check in my case. gotta give native a try :)
<A124>
workmad3: Hey! .. long time.. Yeah. ok thanks :)
heftig has quit [Quit: Quitting]
clov3r has joined #ruby
momomomomo has quit [Quit: momomomomo]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
mlpinit has quit [Ping timeout: 264 seconds]
mklappstuhl has quit [Remote host closed the connection]
wildroman has quit [Read error: Connection reset by peer]
wildroman has joined #ruby
mlpinit has joined #ruby
cody-- has joined #ruby
siwica has joined #ruby
Ox6abe has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 240 seconds]
mary5030_ has joined #ruby
senayar_ has joined #ruby
senayar_ has quit [Remote host closed the connection]
Soda has joined #ruby
senayar has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 268 seconds]
senayar has joined #ruby
pentameter has joined #ruby
momomomomo has joined #ruby
cpruitt has joined #ruby
AlSquire has joined #ruby
baordog_ has joined #ruby
rezzack1 has quit [Quit: Leaving.]
petey has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 240 seconds]
nouitfvf has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
petey has joined #ruby
Stygia has quit [Quit: Leaving]
Tearan has joined #ruby
wildroma_ has joined #ruby
raphaelivan has quit [Quit: Leaving.]
Stygia has joined #ruby
wildroman has quit [Ping timeout: 248 seconds]
kaspergrubbe has quit [Ping timeout: 264 seconds]
Jetchisel has joined #ruby
deception has joined #ruby
wildroma_ has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 252 seconds]
mklappstuhl has joined #ruby
wildroman has joined #ruby
<ravster>
hey all
rickmasta has joined #ruby
stkowski is now known as perlphil
<ravster>
I want to find all ".json" files in a directory, but only one subdirectory deep. How do I do that in ruby?
hogeo has quit [Ping timeout: 248 seconds]
jprovazn has quit [Quit: Leaving]
burlyscudd has quit [Quit: Leaving.]
lukec has quit [Quit: lukec]
mansi has joined #ruby
ahawkins has quit [Quit: leaving]
bean__ has joined #ruby
momomomomo has quit [Quit: momomomomo]
atSetKey_ has joined #ruby
freerobby has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
nessib has joined #ruby
pioz has joined #ruby
nessib_ has joined #ruby
nessib__ has joined #ruby
mcrmfc has quit [Read error: Operation timed out]
nessib_ has left #ruby [#ruby]
nessib has quit [Remote host closed the connection]
nessib__ has quit [Remote host closed the connection]
<canton7>
ravster, Dir['*/*/*.json'] ?
ahawkins_ has quit [Read error: Operation timed out]
<s2013>
stupid question but how do you traverse a node/graph etc in ruby
deception has quit [Quit: Goodbye]
<shevy>
what is a node
<shevy>
hash?
plotter has quit [Quit: Leaving]
<shevy>
graph.each_pair
<s2013>
like a binary search tree, etc. things you learn back in comp sci (10 years ago for me so i forgot most of that)
<s2013>
i think its called graph traversal or something
<apeiros>
graph.grow_a_pair
<ccooke>
s2013: it'll depend upon the object
<shevy>
lol apeiros
fgo has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<apeiros>
s2013: it'd actually depend on your implementation of that graph
<apeiros>
it'd also depend on whether you want depth or breadth first
<s2013>
ccooke, im talking about just like general problems i see on the web. from project euler, or other similar sites. just trying to get better at programming
<workmad3>
s2013: when you're dealing with trees it's usually called tree traversal ;)
<s2013>
are there any examples that is good that you know of?
<workmad3>
s2013: but yeah... how you traverse it depends on how you've implemented it
<s2013>
i remember doing all that in c++ years ago.
axl_ has quit [Quit: axl_]
<workmad3>
a typical approach, when dealing with a tree, is to do so recursively
<s2013>
i see
pioz has quit [Quit: Leaving]
<s2013>
what about dealing with coordinates, that would be a matrix search or something?
<workmad3>
and then each node in the tree is an object, so you have a root node, and call 'node.traverse' (for example)
<s2013>
there is a traverse method in ruby?
<workmad3>
s2013: no
<apeiros>
there is no graph class in ruby
<workmad3>
s2013: but you'd probably write your node to have one
<s2013>
oh ok
<apeiros>
therefore no traverse method either
<apeiros>
it's simple enough to implement, though.
<ccooke>
s2013: so a binary tree node object may have a .left and a .right method
decoponio has joined #ruby
<apeiros>
a primitive tree class would probably not be more than a couple of LoC
<s2013>
yeah
<ccooke>
apeiros: aye
dash_ has quit [Quit: dash_]
<s2013>
binary tree is basically a parent with two children right?
<s2013>
and each children has 2 children, etc.
<ravster>
canton7: I did a Dir["**/*.json"]. It worked great. Thanks again.
<ccooke>
apeiros: 10 or so if it needs to balance.
<canton7>
ravster, that's fully recursive?
<apeiros>
ravster: **/* will be arbitrarily deep, though
nessib has quit [Read error: Connection reset by peer]
<canton7>
ravster, I thought you wanted only one level of subdirectories?
<ravster>
what?? Yup, only one level.
khushildep has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
<s2013>
i have an interview with a robotics company on friday. im sure im going to be grilled and charred
<apeiros>
ravster: */*/*.json != **/*.json
<ravster>
I thought it was ** for dirs, no?
<apeiros>
though */*/*.json is 2 levels deep
gja has quit [Quit: This computer has gone to sleep]
<apeiros>
no, ** is for arbitrarily deep
<canton7>
** is 'recursive'
fgo has quit [Ping timeout: 248 seconds]
<apeiros>
^
<ravster>
oh, ok.
khushildep has joined #ruby
* ravster
goes to change things.
fgh2 has quit [Quit: Leaving]
<canton7>
it's a good idea to test your selected solution against your own criteria
<apeiros>
note that */*/*.json will not find jsons at level 0 and 1, only at level 2
klaas has quit [Read error: Connection reset by peer]
<canton7>
yeah
<ravster>
ok, so what I need is "*/*.json"
<canton7>
I guess the question was a little ambiguos in that sense, but yeah, that works
* apeiros
commutes
apeiros has quit [Remote host closed the connection]
JohnBat26 has quit [Ping timeout: 245 seconds]
<ravster>
canton7: awesome. Thanks
<canton7>
what *is* the way of saying '*.json in the current dir, or in child dirs'? Other than two globs? My glob-foo isn't too good
momomomomo has joined #ruby
gr33n7007h has joined #ruby
<workmad3>
s2013: a binary tree is a node that can have 0, 1 or 2 children, and no cycles
plotter has joined #ruby
<s2013>
oh ok. workmad3 do you have any link that youd recommend that would help me brush up on it better? esp in context of ruby
dawkirst has quit [Ping timeout: 248 seconds]
<workmad3>
s2013: robotics? oh man, if you're going to that, I suspect you're going to want/need much more advanced than basic binary trees :/
<workmad3>
s2013: matrix transformations, jacobians, 3d co-ordinate systems...
<sevenseacat>
yeah good luck with that
<workmad3>
s2013: space searching algorithms...
<canton7>
the Springer Handbook of Robotics is the bible in that area, iirc
<workmad3>
s2013: it'll depend on what sort of level the interview is for, obviously
klaas has joined #ruby
<s2013>
workmad3, its a junior rails/ruby position but the entire company is made up of about a dozen MIT/CMU grads so im sure they will grill me on stuff that any competent cs major should know
<s2013>
its not an advanced position or anything.
<s2013>
thing is that my last cs class was 10 years ago and i had a 5-6 year gap in programming so i forgot a lot of the stuff :\
<workmad3>
s2013: how's your graph theory? :)
<s2013>
i can draw charts on graph paper :\
burlyscudd has joined #ruby
hasrb has quit [Remote host closed the connection]
<workmad3>
s2013: can you prove any basic results? such as the famous bridge-crossing proof that essentially founded graph theory?
<workmad3>
s2013: how about linear algebra?
alex__c2022 has joined #ruby
<s2013>
nah. im 99.99% sure they will laugh me out of the interview but i think it would be a good practice. i applied thinking they will laugh at my resume but they called and had a 30m technical phone interview. apparently they liked me enough to call me in for face to face
<s2013>
but im reading about the bridge problem though
tsykoduk is now known as zz_tsykoduk
siwica has quit [Ping timeout: 245 seconds]
<workmad3>
well, they may be willing to train you in the maths areas you'd need, and it may be that the position you applied for isn't really involved in the robotics side of things
nwertman has joined #ruby
nickistesting has joined #ruby
mary5030 has joined #ruby
dzhulk has joined #ruby
mary5030_ has quit [Read error: Connection reset by peer]
nickistesting has quit [Client Quit]
elux has quit [Quit: Bye!]
shaunbak_ has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
shaunbaker has joined #ruby
mgorbach- has joined #ruby
<s2013>
workmad3, its not. its mostly on support side of things i guess. building rails app to deal with customers, support team, etc.
jezen has quit [Remote host closed the connection]
<s2013>
its nothing i cant handle. but from my experience, the interviews are hardly about anything practical you do but more about theoretical things you should know.
<workmad3>
s2013: ah, so yeah, they may quiz you on some basic data structures stuff, some problem solving
endash has joined #ruby
pel_daniel has joined #ruby
<s2013>
my friend said that if you are unsure just say "hash table" hah
dangerousdave has joined #ruby
rippa has joined #ruby
mgorbach- has quit [Remote host closed the connection]
iamjarvo has joined #ruby
NealJ has joined #ruby
atSetKey_ has quit [Remote host closed the connection]
<s2013>
but my goal is to be more than just an application developer but more on the computer programming / engineering side if that makes sense
mgorbach has joined #ruby
zmike123 has joined #ruby
ta has joined #ruby
lkba has joined #ruby
dzhulk has quit [Ping timeout: 265 seconds]
interactionjaxsn has joined #ruby
hashpuppy has joined #ruby
shaunbaker has quit [Ping timeout: 260 seconds]
noodletraveler has joined #ruby
nari has quit [Ping timeout: 248 seconds]
cmarques_ has quit [Remote host closed the connection]
hasrb has joined #ruby
Ox6abe has joined #ruby
A124 is now known as Pikachu
Pikachu is now known as A124
btanaka has joined #ruby
tziOm has quit [Remote host closed the connection]
|jemc| has joined #ruby
noodletraveler_ has joined #ruby
michael_mbp is now known as zz_michael_mbp
noodletraveler has quit [Ping timeout: 240 seconds]
iamjarvo_ has joined #ruby
hasrb has quit [Remote host closed the connection]
gregf_ has joined #ruby
ShellFu has joined #ruby
iamjarvo has quit [Ping timeout: 248 seconds]
<s2013>
if i want to cut off a sentence. so like get the first few letters. how would i do it? currently im doing "string"[0..2] or whatever
jbpros has quit [Ping timeout: 240 seconds]
<s2013>
is there another way? and what about if there are words?
petey has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
noodletraveler_ has left #ruby [#ruby]
petey has joined #ruby
petey has quit [Read error: Connection reset by peer]
lucazi has joined #ruby
<canton7>
s2013, #slice, and #[], are the idiomatic way of manipulating strings on a per-character basis
petey has joined #ruby
<canton7>
for words, split the string into words, then work on that array
momomomomo has joined #ruby
ahawkins has joined #ruby
peregrine81 has quit []
<s2013>
oh ok
<s2013>
so "string".split(' ')[0..3] or something?
<canton7>
sure
burlyscudd has quit [Quit: Leaving.]
<ccooke>
would give you the first four blocks between single spaces
<s2013>
is that the right way or would you suggest a better way?
<s2013>
yeah i know
<ccooke>
you'd be better to use .split (no argument)
<ccooke>
which by default splits into words
<s2013>
oh ok
<s2013>
didnt know that
devoldmx has quit [Ping timeout: 265 seconds]
<s2013>
so "string string string".split[0..1]join(" ") ?
apeiros has joined #ruby
nutella has joined #ruby
<s2013>
cause otherwise it would return an array im guessing
nutella is now known as Guest30410
mengu has quit [Remote host closed the connection]
<canton7>
missing a . there
<ccooke>
you'd need a . before the join
<s2013>
yeah sorry
<s2013>
that was a typo
mengu has joined #ruby
<s2013>
i mean i know that works but im wondering if thats the most ruby way to do it or if there is something more elegant?
brennanMKE has quit [Remote host closed the connection]
<canton7>
you *could* regex it, but I wouldn't recommend that for such a smple case
<canton7>
*simple
hamakn has quit [Remote host closed the connection]
<s2013>
yeah
brennanMKE has joined #ruby
<s2013>
gotcha. thanks
hamakn has joined #ruby
Guest30410 has quit [Ping timeout: 264 seconds]
X-Jester has joined #ruby
mengu has quit [Ping timeout: 248 seconds]
<X-Jester>
hey, is there a 'right' way to open a bi-directional pipe to a process which behaves similar to old chat scripts? for example, to open a pipe to a process, read the data, and when i find that it's asking for my password, write the password to the process' stdin?
heftig has joined #ruby
hogeo has joined #ruby
brennanMKE has quit [Ping timeout: 240 seconds]
hamakn has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
bricker`1A has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
mlpinit has quit [Remote host closed the connection]
zmike123 has quit [Quit: ~]
thinkclay has joined #ruby
mlpinit has joined #ruby
bricker`LA has quit [Ping timeout: 245 seconds]
marcdel has joined #ruby
boboc has quit [Remote host closed the connection]
nessib_ has quit [Read error: Connection reset by peer]
nessib has joined #ruby
dagobah has quit [Remote host closed the connection]
beneggett has joined #ruby
burlyscudd has quit [Ping timeout: 240 seconds]
wildroman has quit [Remote host closed the connection]
svector has quit [Ping timeout: 260 seconds]
wildroman has joined #ruby
aganov has quit [Remote host closed the connection]
Xeago has joined #ruby
Ox6abe has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 248 seconds]
T_T has joined #ruby
RTG` has joined #ruby
Ox6abe has joined #ruby
kindjal has quit [Quit: Computer has gone to sleep.]
wildroman has quit [Read error: Connection reset by peer]
wildroman has joined #ruby
ce_afk is now known as cescalante
robbyoconnor has quit [Ping timeout: 245 seconds]
someish has quit [Quit: someish]
lassebunk has quit [Remote host closed the connection]
<_br_>
Using rack with faye and thin here. Is it possible to force a port and host use inside config.ru or do I have to tweak the rackup command running the config.ru file?
Clooth has joined #ruby
Lewix has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
beneggett has quit [Ping timeout: 264 seconds]
larissa has joined #ruby
leonidlm has quit [Ping timeout: 268 seconds]
krz has quit [Quit: krz]
Ox6abe has quit [Ping timeout: 260 seconds]
nwertman has quit [Ping timeout: 260 seconds]
brianpWins has quit [Quit: brianpWins]
rahulkmr has joined #ruby
klaas has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
Guest30793 has quit [Remote host closed the connection]
Voodoofish430 has joined #ruby
barratt has quit [Read error: Connection reset by peer]
zevs04 has quit [Quit: leaving]
bradhe has joined #ruby
mrsolo_ has quit [Ping timeout: 248 seconds]
alekst has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
<_br_>
Never mind, seems only possible outside of config.ru.
awc737 has quit [Excess Flood]
<Cork>
what is the cleanest way to get a datetime object that points at 8:00 today?
rubyracer has joined #ruby
dangerousdave has quit [Quit: Leaving...]
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
sguselnikov has joined #ruby
aSuit has quit [Quit: Leaving]
noname001__ has quit [Ping timeout: 240 seconds]
Davey has joined #ruby
lyanchih has joined #ruby
danshultz has quit [Remote host closed the connection]
<Bish>
hi! im juggling with UTF-8 Strings right now for a little Script.. and when i do test = SomeUtf8String
awc737 has joined #ruby
<Bish>
it escapes the bytes with \x hexstuff.. why is that?
danshultz has joined #ruby
petey has quit [Remote host closed the connection]
burlyscudd has joined #ruby
<Cork>
Bish: are you running in a console?
swordsmanz has joined #ruby
<Bish>
Cork, yes
burlyscudd has quit [Client Quit]
<Cork>
is the console in utf8?
<Bish>
sure
nutella has joined #ruby
petey has joined #ruby
threesome has quit [Read error: Operation timed out]
burlyscudd has joined #ruby
<Bish>
when i print SomeUtf8String i get the right stuff... when i try to copy it.. it fails
klaas has joined #ruby
<Cork>
hmm i think there is a pref you need to set in newer ruby
Stygia has quit [Ping timeout: 245 seconds]
sguselnikov has quit [Client Quit]
nutella is now known as Guest96101
arietis has joined #ruby
g0th has joined #ruby
<g0th>
hi
marcdel has joined #ruby
<Cork>
Bish: try adding # encoding: UTF-8
<Cork>
Bish: at the top of the file
<Bish>
it's not the varname whic his utf8
<Bish>
not the sourcefile
<g0th>
I plan to do a recursive algorithm. To save time I plan to use a hash, so if the recursion comes to an already calculated value it can use the hash value
schaerli has quit [Ping timeout: 264 seconds]
<g0th>
so I thought about doing something like N||=n(...)
<g0th>
but what if n(...)=0?
petey has quit [Read error: Connection reset by peer]
Orez has joined #ruby
<Cork>
Bish: that pref is to make ruby run in utf8 encoding
petey has joined #ruby
<g0th>
is there something like ||= that catches "no key yet" but not 0
<Cork>
not just for the var names
<g0th>
I could set the default to e.g. nil
<g0th>
but then I have a similar problem with 0
<g0th>
(same problem)
<Bish>
Cork, i doubt that one.. but i found what is causing my issues
<_br_>
Cork: Probably now = DateTime.now ; DateTime.new(now.year, now.month, now.day, 8, 0, 0, 0) . Rails has a specific helper for that called DateTime.now.change({})
DanKnox_away is now known as DanKnox
burlyscudd has quit [Read error: Operation timed out]
danshultz has quit [Ping timeout: 260 seconds]
mark_locklear has joined #ruby
<Cork>
_br_: do you know if there is a lib for that change without rails?
DanKnox is now known as DanKnox_away
Guest96101 has quit [Ping timeout: 240 seconds]
graydot has quit [Quit: graydot]
kevind_ has joined #ruby
Trudko has joined #ruby
<Trudko>
guys i run rbenv install 1.9.3-p392 then rbenv global 1.9.3-p392 and then rbenv rehash but ubuntu still tells me that ruby command is missing
<Orez>
g0th: 0 || 4 should be 0
ghr has quit [Quit: Computer has gone to sleep.]
<Orez>
i don't think your problem is actually a problem, if i'm reading it right
Soda has joined #ruby
<Orez>
try it out
digitalcake has quit [Quit: Leaving.]
senayar has quit [Remote host closed the connection]
<Trudko>
nevermind i got it
AndChat| has quit [Ping timeout: 248 seconds]
c0rn has joined #ruby
lyanchih has quit [Quit: lyanchih]
Ox6abe has joined #ruby
A124 is now known as C4
<_br_>
Cork: Maybe chronic gem
senayar has joined #ruby
<Cork>
_br_: thx
vim_shim has joined #ruby
<g0th>
Orez: ah, so only if it is nil?
T_T has quit [Remote host closed the connection]
<Orez>
or false
Banistergalaxy has joined #ruby
dash_ has joined #ruby
<g0th>
ok
<g0th>
thanks
<g0th>
nice
cubicme has quit [Read error: Connection reset by peer]
tylersmith has quit [Remote host closed the connection]
<Orez>
workmad3: executes almost arbitrary python, but strips out potentially dangerous stuff and can be fed from the url and output with no formatting
<Orez>
for an irc bot
<workmad3>
Orez: well eval-in can manage all that too
<apeiros>
Rylee: the bot isn't here for you to play. please stop doing that in the channel.
arietis has joined #ruby
Eaven has quit [Read error: Connection reset by peer]
<hanmac>
apeiros: the bot sill doesnt react of direct messages :(
soulcake has joined #ruby
<hanmac>
PS: my bug from yesterday was already fixed in MRI ;D
<apeiros>
hanmac: that's sad, but doesn't change above rule :)
<apeiros>
hanmac: oh, good to know
Monie has joined #ruby
<hanmac>
nobu is the best ruby developer ;D
ssvo has joined #ruby
Orez has left #ruby [#ruby]
Eaven has joined #ruby
zz_tsykoduk has quit [Ping timeout: 264 seconds]
Jonah11_ has joined #ruby
iliketurtles has joined #ruby
shaunbaker has joined #ruby
aspires has joined #ruby
c0rn has quit [Client Quit]
lmickh has joined #ruby
lukec has quit [Quit: lukec]
brianpWins has joined #ruby
cody-- has quit [Quit: derp]
<Jonah11_>
I have class Merchant in a custom module Domain. Within that class I'd like to refer to another class, also named Merchant, that I've required: http://pastie.org/8389944. How can I accomplish this?
enebo has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
<_br_>
Put your Merchant class into a separate namespace.
<[spoiler]>
Jonah11_, didn't try this myself, but maybe Kernel::Merchant and Domain::Merchant? but I still think it's probably a bad idea
wompy_ has joined #ruby
<[spoiler]>
oops, that won't work, actually
kaldrenon has quit [Remote host closed the connection]
<Jonah11_>
[spoiler], do you have a better solution to the underlying problem?
bean__ has quit [Quit: Computer has gone to sleep.]
<apeiros>
Jonah11_: just ::Merchant
banisterfiend has joined #ruby
<apeiros>
::Constant refers to toplevel constant
C4 is now known as a124
a124 is now known as A124
<apeiros>
/cc [spoiler] & _br_
obs has quit [Quit: Konversation terminated!]
<[spoiler]>
apeiros, that's a clever trick o:
<Jonah11_>
apeiros, thx that works
wompy_ is now known as jskerbec
jskerbec is now known as wompy_
<Jonah11_>
[spoiler], Object:: works too but :: is nicer
Tamae has joined #ruby
troessner has quit [Quit: Leaving]
<[spoiler]>
Jonah11_, it is!
<apeiros>
Object:: just moves the problem. what if you have Foo::Object? :)
<apeiros>
[spoiler]: not really a trick, just how rubys syntax works
burlyscudd has quit [Ping timeout: 248 seconds]
seoNinjaWarrior has joined #ruby
failshell has joined #ruby
pushpak has joined #ruby
ta has quit [Remote host closed the connection]
<apeiros>
when you're within module Foo; … end and do e.g. Array.new, the fact that Array can be looked up without ::Array is because surrounding nestings are searched too
S0da has quit [Remote host closed the connection]
<_br_>
Is that really good practice? If you have Merchant or ::Merchant the errors can easily creep in.
deweichen has joined #ruby
kaldrenon has quit [Ping timeout: 268 seconds]
vasilakisFiL has joined #ruby
dennus has quit [Ping timeout: 240 seconds]
<apeiros>
that's another question. I'd agree, one should strive to unambiguous names.
<vasilakisFiL>
hello! Does anyone know how can I close a TCPServer ? There is no method on that.. how can I free the port ?
alekst has joined #ruby
Astralum has joined #ruby
petey has quit [Remote host closed the connection]
snovak has joined #ruby
<apeiros>
vasilakisFiL: of course there's TCPServer#close
freezey has joined #ruby
<[spoiler]>
vasilakisFiL, kill the process /eojoke
sayan has joined #ruby
<apeiros>
vasilakisFiL: why do you think there wasn't?
b00stfr3ak has quit [Ping timeout: 245 seconds]
echevemaster has quit [Quit: Leaving]
petey has joined #ruby
snovak_ has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
wildroman has quit [Remote host closed the connection]
Zeeraw has joined #ruby
saarinen has joined #ruby
xk_id has quit [Quit:
rahulkmr has quit [Read error: Connection reset by peer]
dash_ has quit [Ping timeout: 264 seconds]
<vasilakisFiL>
apeiros I can't find any close method in the rubydocs.. do you mean an implicit close such as killing the process ?
wildroman has joined #ruby
TheNumb has joined #ruby
Rollabunna has joined #ruby
<vasilakisFiL>
I can close a specific client after the accept
<vasilakisFiL>
but how can I stop the server listening to the port, that is, free the port ?
<apeiros>
vasilakisFiL: no, TCPServer#close means specifically "instance method named 'close' of class 'TCPServer'"
mayday_jay has joined #ruby
<apeiros>
so no, I wasn't referring to anything implicit. I was very explicit.
wildroman has quit [Read error: No route to host]
c0rn has joined #ruby
<vasilakisFiL>
ok could you give me the documentation of this method? because I can't find it
<apeiros>
ri 'TCPServer#close'
rahulkmr has joined #ruby
<apeiros>
in your shell. requires that you have the docs installed.
einarj has joined #ruby
wildroman has joined #ruby
moted has joined #ruby
<apeiros>
the close method is inherited from IO
glaksmono has quit [Quit: This computer has gone to sleep]
<apeiros>
I suspect you used docs which only display the viewed class' own methods and omitted to check its ancestry.
<apeiros>
vasilakisFiL: and you didn't check the ancestry.
<apeiros>
top left: "Parent TCPSocket"
<apeiros>
and there you go up up up until you hit IO which has #close
timonv has quit [Read error: Connection reset by peer]
mklappstuhl has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
kaldrenon has joined #ruby
petey has joined #ruby
<apeiros>
though, since IO is core and BasicSocket is stdlib, it's not linked, so you have to do that last step manually instead of just following a link.
timonv has joined #ruby
aberghage has joined #ruby
c0rn has quit [Ping timeout: 264 seconds]
whunt has quit [Quit: Computer has gone to sleep.]
lyanchih has joined #ruby
schaerli has joined #ruby
saarinen has joined #ruby
saarinen has quit [Client Quit]
whunt has joined #ruby
einarj has quit [Ping timeout: 264 seconds]
hogeo has quit [Remote host closed the connection]
adeponte has joined #ruby
jamescarr has quit [Quit: jamescarr]
hogeo has joined #ruby
snovak has quit [Remote host closed the connection]
Tearan has joined #ruby
moted has quit [Quit: moted]
whunt has quit [Client Quit]
snovak has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saarinen has joined #ruby
moted has joined #ruby
freezey has quit [Ping timeout: 268 seconds]
Coolhand has quit [Ping timeout: 268 seconds]
MrZYX|off is now known as MrZYX
petey has quit [Remote host closed the connection]
joshu has quit [Ping timeout: 264 seconds]
calveto1 has left #ruby [#ruby]
calveto1 has joined #ruby
petey has joined #ruby
Coolhand_ has joined #ruby
<vasilakisFiL>
thanks apeiros
hogeo has quit [Ping timeout: 268 seconds]
snovak has quit [Ping timeout: 240 seconds]
joshu has joined #ruby
freezey has joined #ruby
rickmasta has quit [Quit: Leaving...]
xk_id has joined #ruby
locriani_ has joined #ruby
xk_id has quit [Client Quit]
locriani has quit [Read error: Connection reset by peer]
jamescarr has joined #ruby
gr33n7007h has quit [Read error: Connection reset by peer]
dzhulk has joined #ruby
skyjumper has joined #ruby
petey has quit [Ping timeout: 268 seconds]
axl_ has joined #ruby
<skyjumper>
what's a good way to apply an operator to every element in an array?
<skyjumper>
a = [true,false,true]; a[0] and a[1] and a[2]
<apeiros>
what's the expected result?
cody-- has joined #ruby
<apeiros>
in that case indeed inject, and what Mon_Ouie said.
<Mon_Ouie>
skyjumper: Since a[1] is false, the result of that expression would be false
maletor has quit [Quit: Computer has gone to sleep.]
<skyjumper>
actually (a[0] or a[1] or a[2]) would be it
<Mon_Ouie>
then it would be Array#any?
headius has quit [Quit: headius]
timonv has quit [Remote host closed the connection]
nutella_ has joined #ruby
yacks has joined #ruby
timonv has joined #ruby
<banisterfiend>
Mon_Ouie 'alut
<banisterfiend>
Mon_Ouie comment ça va ?
coderhs has joined #ruby
io_syl has quit [Ping timeout: 252 seconds]
joshu has joined #ruby
headius has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
brennanMKE has quit [Remote host closed the connection]
<Mon_Ouie>
banisterfiend: 'alut. I'm fine :)
<banisterfiend>
Mon_Ouie parlez-vous en français, svp
mark_locklear has quit [Quit: Leaving]
nutella_ has quit [Ping timeout: 240 seconds]
<Mon_Ouie>
Non, désolé
nessib has quit [Quit: quit]
io_syl has joined #ruby
<banisterfiend>
Mon_Ouie arrête! ton pis!
timonv has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
ewnd9_ has quit [Ping timeout: 252 seconds]
marcdel has joined #ruby
zz_tsykoduk has joined #ruby
<Mon_Ouie>
I always wonder, how are you typing these? Translating from Google and editing in cute mistakes with words that sound the same, or do you know some French?
<apeiros>
heh
marcdel has quit [Client Quit]
<banisterfiend>
Mon_Ouie i know some french bb
<banisterfiend>
Mon_Ouie osx adds all the weird symbols above letters
JohnBat26 has joined #ruby
Alina-malina has joined #ruby
<banisterfiend>
so i don't have to taint my delicate fingers with such oddities
<Mon_Ouie>
Aha. Then it's "tant pis" btw ;)
newbiehacker has quit [Read error: Connection reset by peer]
dzhulk has quit [Quit: Leaving.]
alex__c2022 has quit [Quit: alex__c2022]
<apeiros>
maybe he missed an 's' in 'pis' :D
Al___ has quit [Quit: Al___]
Al___ has joined #ruby
<Mon_Ouie>
Well, there would be more things to fix then :p (it would be "ta pisse")
<banisterfiend>
Mon_Ouie are you an anglophile?
calveto1 has left #ruby [#ruby]
kindjal has quit [Quit: Computer has gone to sleep.]
|-| has joined #ruby
jamescarr has quit [Quit: jamescarr]
<Mon_Ouie>
Not really, no
lucazi_ has joined #ruby
<banisterfiend>
Mon_Ouie too bad, i'm a francophile, i was hoping we could move into together.
<r0bgleeson>
lol
sniffingcats has joined #ruby
NinjaPenguin has quit [Ping timeout: 248 seconds]
elaptics is now known as elaptics`away
shaunbaker has quit [Remote host closed the connection]
shaunbaker has joined #ruby
kirun has joined #ruby
lucazi has quit [Ping timeout: 248 seconds]
Tearan_ has joined #ruby
benweint has joined #ruby
Tearan has quit [Ping timeout: 264 seconds]
Tearan_ is now known as Tearan
DanKnox_away is now known as DanKnox
iliketurtles has quit [Quit: zzzzz…..]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pellenation has joined #ruby
shaunbaker has quit [Ping timeout: 252 seconds]
tatsuya_o has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
i_s has joined #ruby
Ox6abe has quit [Remote host closed the connection]
khushildep has quit [Quit: khushildep]
Ox6abe has joined #ruby
caustic has joined #ruby
_HolyCow has joined #ruby
<Cork>
how do one remove a Signal.trap ?
aspires has quit [Quit: aspires]
asteros has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
twoism has joined #ruby
tatsuya_o has quit [Ping timeout: 260 seconds]
tylersmith has joined #ruby
aspires has joined #ruby
lfox has joined #ruby
|-| has quit [Quit: Leaving]
fgo has joined #ruby
ndngvr` has joined #ruby
Al___ has quit [Quit: Al___]
Ox6abe has quit [Ping timeout: 248 seconds]
Zai00 has quit [Quit: Zai00]
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndngvr has quit [Read error: Operation timed out]
Monie has joined #ruby
tvw has quit []
jprovazn has joined #ruby
Zai00 has joined #ruby
SilverKey has joined #ruby
kleinerdrache has joined #ruby
Ox6abe has joined #ruby
locriani_ is now known as locriani
schaerli has quit [Remote host closed the connection]
deweichen has quit [Remote host closed the connection]
schaerli has joined #ruby
wildroman has quit [Remote host closed the connection]
burlyscudd has joined #ruby
jamescarr has joined #ruby
kleinerdrache has quit [Client Quit]
mansi has quit [Read error: Connection reset by peer]
awarner has quit [Read error: Operation timed out]
awarner_ has joined #ruby
rkrdo has joined #ruby
rkrdo has quit [Remote host closed the connection]
mansi has joined #ruby
Zai00 has quit [Ping timeout: 245 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
caustic has quit []
kobain has quit [Ping timeout: 256 seconds]
caustic has joined #ruby
mercwithamouth has joined #ruby
baroquebobcat has joined #ruby
pellenation has quit [Quit: Leaving.]
burlyscudd has quit [Ping timeout: 260 seconds]
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
schaerli has quit [Ping timeout: 268 seconds]
apeiros_ has joined #ruby
bean__ has joined #ruby
<g0th>
I get some big number and I wanted to take the log using Math.log10(num) but ruby outputs infinity???
<cout>
probably too big
asteros has quit [Quit: asteros]
<apeiros_>
g0th: please provide a reproducable example
<hanmac>
apeiros_: it returns 954.2425094393249 for me
<apeiros_>
hanmac: what ruby version? 2.1 pre?
aspires has joined #ruby
pwh has joined #ruby
<hanmac>
yeah … builded today
ShellFu_hotpocke is now known as ShellFu
mary5030 has joined #ruby
tjbarber has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<apeiros_>
afaik it has a couple of code to deal with large number calculations
<apeiros_>
this could be one affected area
mark_locklear has joined #ruby
andikr has quit [Read error: Connection reset by peer]
heidi has joined #ruby
nwertman has joined #ruby
shaunbaker has quit [Remote host closed the connection]
heidi has quit [Client Quit]
funburn has quit [Ping timeout: 240 seconds]
heidi has joined #ruby
noop has joined #ruby
burlyscudd has joined #ruby
ta has joined #ruby
<g0th>
so how do I get it working?
<Rylee>
question - in ruby, if i have an array of arrays of 2 values (like [[2, 3], [3, 4], [5, 6]]), how would i get a new array of only the second value of each one? ([3, 4, 6])
pellenation has joined #ruby
noop has quit [Read error: Connection reset by peer]
<IceyEC>
array.map(&:last)
<IceyEC>
Rylee:
timonv has joined #ruby
<Rylee>
IceyEC, sweet, thanks
punkrawkR has joined #ruby
punkrawkR has quit [Client Quit]
<g0th>
apeiros_: how do I get the correct result?
<g0th>
apeiros_: I just want to count the number of decimal places
<apeiros_>
g0th: .to_s.size
<g0th>
ok
enebo has joined #ruby
<apeiros_>
as for the other - I'd have to look up logarithm rules.
interactionjaxsn has quit [Remote host closed the connection]
<g0th>
apeiros_: and that is the correct result?
<g0th>
i.e. it does arbitrary precision?
snovak has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
Elinos has joined #ruby
vlad_starkov has joined #ruby
perlphil is now known as stkowski
vlad_starkov has quit [Remote host closed the connection]
xk_id has joined #ruby
<apeiros_>
g0th: yes, Bignum does almost arbitrary precision. almost because the maximum number of digits is limited, but rather large.
stkowski is now known as FBI_monitoring
snovak_ has joined #ruby
FBI_monitoring is now known as stkowski
saarinen has quit [Quit: saarinen]
<g0th>
how large?
kobain has joined #ruby
<g0th>
does it give an error if that number is exceeded?
<g0th>
I'm dealing with crazy big numbers here
asteros has joined #ruby
<apeiros_>
yes, it'll error afair
<apeiros_>
500k digits seem to work fine so far
marcdel has joined #ruby
lyanchih has quit [Quit: lyanchih]
michael_mbp is now known as zz_michael_mbp
hidensoft is now known as intuxicated
sambao21 has quit [Quit: Computer has gone to sleep.]
dweeb_ has quit [Quit: Computer has gone to sleep.]
ssvo_ has joined #ruby
<g0th>
ok that means I could store the number 123456789101112.... of string length 500k without losing any digit information?
ssvo has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
pel_daniel has quit [Ping timeout: 248 seconds]
<g0th>
(and do calculations with it in an approximate range)
<hanmac>
g0th hm look ar BigDecimal
a1ph4g33k has joined #ruby
sambao21 has joined #ruby
freezey has quit [Remote host closed the connection]
<g0th>
it is listed as ruby 2.0
NealJ has quit [Read error: Operation timed out]
<g0th>
so I was not sure if that works with ruby 1.8
<apeiros_>
g0th: integer, yes.
<apeiros_>
my machine is still working on (1<<1000000000).to_s.size :)
<a1ph4g33k>
g'morning folks.
henn1nk has left #ruby [#ruby]
banisterfiend has quit [Ping timeout: 248 seconds]
<g0th>
ok a different question
<apeiros_>
g0th: if you need decimals, bigdecimal, as hanmac said
<g0th>
where can I get ubuntu packages of the latest ruby version?
nutella has joined #ruby
fgh has joined #ruby
<apeiros_>
g0th: #ubuntu
nutella is now known as Guest2011
dangerousdave has joined #ruby
<g0th>
ppa:brightbox/ruby-ng-experimental ?
interactionjaxsn has joined #ruby
<g0th>
is that recommended?
<apeiros_>
seriously, apt fucks up ruby. so I'd generally not advise to use it to get ruby. and since it's their mess, I redirect such questions to #ubuntu/#debian
<[spoiler]>
g0th, chruby or MRI
<g0th>
how does apt fuck up ruby?
deens has joined #ruby
<bean__>
apt-get install ruby1.9.1
<bean__>
done
<apeiros_>
by mutilating rubygems, not installing parts which belong to a standard ruby installation etc.
<bean__>
(will get you 1.9.3)
<[spoiler]>
g0th, they're shit at maintaining it
<g0th>
:(
<g0th>
I already got that
NealJ has joined #ruby
<g0th>
ah but I also have "ruby"
<a1ph4g33k>
install rvm or rbenv and never look back.
<a1ph4g33k>
g0th, that's ruby 1.8
<[spoiler]>
g0th, what does ruby -v print out?
<apeiros_>
oh, also by being about 3y behind on average.
Rollabunna has quit [Remote host closed the connection]
havv has joined #ruby
awarner has joined #ruby
arietis has joined #ruby
<apeiros_>
though, it should be said that such a high accuracy probably never makes practical sense.
valesk has quit [Ping timeout: 260 seconds]
i_s has quit [Remote host closed the connection]
iamjarvo has joined #ruby
valesk has joined #ruby
aberghage has quit [Quit: aberghage]
Senjai has joined #ruby
lfox has joined #ruby
basmoura has joined #ruby
<^conner>
I need to run an rvm ruby that's installed under a role account from sudo (not my login users rvm so rvmsudo isn't a solution). The best I can come up with is this nastiness: sudo -u test -i bash -i -c 'ruby --version'. Does anyone know of a better way?
zevs04 has quit [Remote host closed the connection]
i_s_ has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
burlyscudd has joined #ruby
Banistergalaxy has joined #ruby
Banistergalaxy has quit [Client Quit]
gmas has joined #ruby
kaspergrubbe has joined #ruby
Banistergalaxy has joined #ruby
wildroman has joined #ruby
ciziar has joined #ruby
Astralum has quit [Ping timeout: 240 seconds]
ehaliewicz has joined #ruby
zevs04 has joined #ruby
heftig has quit [Ping timeout: 248 seconds]
dzhulk has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
cubicme has quit [Ping timeout: 260 seconds]
dash_ has quit [Ping timeout: 264 seconds]
freezey has joined #ruby
jkline has joined #ruby
momomomomo has quit [Quit: momomomomo]
dangerousdave has quit [Quit: Leaving...]
diegoviola has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
Guest9760 has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
dangerousdave has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gtc has joined #ruby
xk_id has quit [Quit:
ciziar has quit [Ping timeout: 248 seconds]
Coolhand_ has quit [Ping timeout: 248 seconds]
Clooth has quit [Quit: Leaving...]
jonathanwallace has joined #ruby
zz_tsykoduk is now known as tsykoduk
rdark has quit [Quit: leaving]
jaikeerthi has quit [Quit: Leaving.]
jkline has quit [Quit: jkline]
zmike123 has joined #ruby
tatsuya_o has joined #ruby
zmike123 has quit [Read error: Connection reset by peer]
aspires has quit [Quit: aspires]
<|jemc|>
I'd probably use rbenv instead at that point
<|jemc|>
(although I'm biased, because I use rbenv anyway)
heftig has joined #ruby
sniffingcats has quit [Quit: Til rivido Idisti!]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rippa has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.1]
Guest9760 has quit [Quit: Leaving]
dweeb_ has joined #ruby
mansi has quit [Remote host closed the connection]
Coolhand has joined #ruby
dash_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
mansi has joined #ruby
zeade has joined #ruby
claymore has quit [Quit: Leaving]
mansi has quit [Read error: Connection reset by peer]
mansi_ has joined #ruby
Ox6abe has quit [Remote host closed the connection]
Ox6abe has joined #ruby
ukd1 has quit [Remote host closed the connection]
ukd1 has joined #ruby
petey has quit [Remote host closed the connection]
petey has joined #ruby
wallerdev has quit [Quit: wallerdev]
saarinen has quit [Quit: saarinen]
arietis has joined #ruby
chairabanta has quit [Quit: Leaving...]
Dave has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
arietis has quit [Client Quit]
jfelchner has joined #ruby
Dave is now known as Guest34606
petey_ has joined #ruby
zevs04 has quit [Remote host closed the connection]
petey has quit [Read error: Connection reset by peer]
Atrumx has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
Ox6abe has quit [Ping timeout: 252 seconds]
kindjal has joined #ruby
io_syl has quit []
chairabanta has joined #ruby
ukd1 has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
pellenation has quit [Quit: Leaving.]
timonv has joined #ruby
zevs04 has joined #ruby
iamjarvo has quit [Remote host closed the connection]
airdisa has joined #ruby
iamjarvo has joined #ruby
<g0th>
apeiros_: there are situations where it matters. But it is mostly because of certainty (we/I want to be able to know that we have the correct result of e.g. number of digits)
<apeiros_>
g0th: curious as to where
i_s_ has quit [Remote host closed the connection]
<g0th>
I remember some problems that dealth with continued fractions of logarithms
<g0th>
dealt*
mklappstuhl has joined #ruby
funburn has joined #ruby
khushildep has joined #ruby
<g0th>
there you definitely need the precision
BizarreCake has quit [Ping timeout: 245 seconds]
<g0th>
also even though your number might be big, log(number) is no longer big
rickmasta has joined #ruby
Monie has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<g0th>
and log(log(number)) is small, so if you consider a boundary case (where ceil(log(log()))) switches value then it also matters even though the precision of the final result is low
poisonarms has quit [Quit: Computer has gone to sleep]
kaspergrubbe has quit [Remote host closed the connection]
aspires has joined #ruby
kaspergrubbe has joined #ruby
Monie has quit [Client Quit]
<g0th>
i.e. if you want a precise result up to a small number of digits you might still need the full precision for log()
colonolGron has quit [Quit: Lost terminal]
axl_ has quit [Quit: axl_]
<g0th>
an intelligent software could work with a low precision in case it doesn't matter and increase the precision accordingly if it starts to matter
<g0th>
but then this additional check will slow down the calculation, so its not worth it I guess
Pallium has joined #ruby
Lewix has quit [Remote host closed the connection]
<g0th>
(in most cases)
<apeiros_>
g0th: the moment you need log(log(x)) the last N digits of x no longer matter
funburn has quit [Ping timeout: 248 seconds]
newbiehacker has quit [Ping timeout: 264 seconds]
<g0th>
they do
<g0th>
in some cases
<g0th>
that's what I just tried to say
carraroj has joined #ruby
Guest34606 has quit [Quit: Leaving...]
kaspergrubbe has quit [Ping timeout: 264 seconds]
<[spoiler]>
See ya tomorrow (or on friday) folks! :D
<[spoiler]>
Wrong channel, but still applies. :P
Pallium has quit [Quit: Leaving]
[spoiler] has quit [Quit: Leaving]
funburn has joined #ruby
asteros has quit [Quit: asteros]
i_s has joined #ruby
jaimef has quit [Excess Flood]
Davey has quit [Quit: Computer has gone to sleep.]
Trudko has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 1.9.0.17/2009122204]]
caustic has quit []
jkline has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
mklappstuhl has joined #ruby
jaimef has joined #ruby
Davey has joined #ruby
decoponio has quit [Quit: Leaving...]
funburn has quit [Ping timeout: 245 seconds]
rins has joined #ruby
<g0th>
ceil(log(log(x)) needs high precision on x around e^(e^(integer))
heftig has quit [Quit: Quitting]
aapzak has quit [Read error: Connection reset by peer]
kpshek has quit []
<g0th>
./bus.rb:29: warning: in a**b, b may be too big
<g0th>
arg
sambao21 has quit [Quit: Computer has gone to sleep.]
TMM has quit [Quit: Ex-Chat]
JohnBat26 has quit [Ping timeout: 245 seconds]
<g0th>
may or is?
<g0th>
I can no longer trust my results :(
Banistergalaxy has quit [Ping timeout: 240 seconds]
Banistergalaxy has joined #ruby
nutella has joined #ruby
nutella is now known as Guest96063
xk_id has joined #ruby
<Rylee>
Quick question, would anyone know how to make a graph scale logarithmically instead of linearly with Gruff?
<Rylee>
Line graph, that is
iamjarvo_ has joined #ruby
nopolitica has joined #ruby
wallerdev has joined #ruby
wallerdev has quit [Client Quit]
perlsyntax has joined #ruby
benweint has quit [Quit: Computer has gone to sleep.]
<perlsyntax>
hi
airdisa has quit [Ping timeout: 260 seconds]
<riceandbeans>
how can I do a regex with case insensitive?
lsmola has joined #ruby
aapzak has joined #ruby
<perlsyntax>
wow ruby 2.0 is out:O
<breakingthings>
l8
<riceandbeans>
perlsyntax: it has been for almost a year
<riceandbeans>
perlsyntax: if you want a good reliable window manager, I recommend against gnome these days in favor of openbox
* bean__
likes CrunchBang
kaspergrubbe has joined #ruby
<bean__>
pretty alright for a debian based distro
<riceandbeans>
metacity isn't so awesome
* bean__
is coming to you live from his macbook air though
digitalcake has quit [Quit: Leaving.]
<riceandbeans>
xfce is borderline bulky
<perlsyntax>
thank for the tip.
<riceandbeans>
if you have 16GB of RAM, KDE is cool, but it eats IO and RAM
benweint has joined #ruby
sambao21 has joined #ruby
<perlsyntax>
that true
<riceandbeans>
otherwise, I run on a 4 core system with 16GB RAM using 100MB of it running in openbox
<perlsyntax>
wow
xk_id has quit [Quit:
simoz has joined #ruby
justsee has joined #ruby
ukd1 has quit [Ping timeout: 240 seconds]
AndChat| has joined #ruby
<perlsyntax>
i still think mate compiz are getting better.
<perlsyntax>
anyone use emacs
benweint has quit [Client Quit]
<perlsyntax>
with ruby
Lewix has joined #ruby
basmoura has quit [Quit: Computer has gone to sleep.]
<perlsyntax>
starting to get into ruby.
timonv has quit [Remote host closed the connection]
kobain_ has joined #ruby
timonv has joined #ruby
kobain has quit [Ping timeout: 256 seconds]
sedeki has joined #ruby
<sedeki>
what's the difference between puts and print?
<MrZYX>
puts adds a newline if there isn't one already
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
banisterfiend has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
glaksmono has quit [Quit: This computer has gone to sleep]
dangerousdave has joined #ruby
ssvo_ is now known as ssvo
digitalcake has joined #ruby
Trufax is now known as woop
jkline has quit [Quit: jkline]
newton has quit [Ping timeout: 245 seconds]
mark_locklear has quit [Ping timeout: 248 seconds]
wildroman has quit [Ping timeout: 268 seconds]
robustus has quit [Ping timeout: 264 seconds]
aberghage has joined #ruby
iliketurtles has joined #ruby
<riceandbeans>
perlsyntax: I've used emacs with ruby but I prefer other editors based on it's choice of syntax highlighting
starfox21 has quit [Quit: starfox21]
pwh has quit []
<perlsyntax>
i see
robustus has joined #ruby
<perlsyntax>
i try to install rvm.el for ruby
DarthGandalf has quit [Quit: Bye]
DarthGandalf has joined #ruby
jprovazn has quit [Quit: Odcházím]
<Ren^>
Is there a channel on here for Amazon web services?
ukd1 has joined #ruby
cucumbrman has quit [Remote host closed the connection]
cucumbrman has joined #ruby
<udoprog>
Ren^: ##aws?
<Ren^>
took me to namespace or some garbage
<Ren^>
oh wait.
<Ren^>
udoprog, you da best!
<Ren^>
u*
w3pm has quit [Ping timeout: 264 seconds]
benweint has joined #ruby
newbiehacker has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
rahulkmr has quit [Ping timeout: 248 seconds]
marcdel has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
snovak has joined #ruby
marcdel has quit [Client Quit]
alex__c2022 has joined #ruby
glaksmono has joined #ruby
digitalcake has quit [Quit: Leaving.]
cubicme has joined #ruby
SloggerKhan has joined #ruby
asteros has joined #ruby
snovak_ has quit [Ping timeout: 264 seconds]
wildroman has joined #ruby
nessib has joined #ruby
sedeki has quit [Quit: Computer has gone to sleep.]
<SloggerKhan>
Does anyone know a good library for interactive command input? I'm looking for something like Thor::Actions (https://github.com/erikhuda/thor/wiki/Actions) ::yes?, ::say?, ::no?, ::ask? etc., that doesn't require me to use the entirety of Thor.
timonv has quit [Ping timeout: 248 seconds]
marcdel has joined #ruby
mary5030 has quit [Remote host closed the connection]
alex__c2022 has quit [Quit: alex__c2022]
<riceandbeans>
if I have an object and I want to referncea series of things on it, how can I do that without retyping the object 20 times?
mary5030 has joined #ruby
cody-- has quit [Quit: derp]
beilabs has quit [Ping timeout: 248 seconds]
beilabs has joined #ruby
pentameter has quit [Remote host closed the connection]
jibi has joined #ruby
petey_ has quit [Remote host closed the connection]
Soda has joined #ruby
saarinen has joined #ruby
<jrobeson>
SloggerKhan, scanf is simple.. right?
bsaboia_ has joined #ruby
timonv has joined #ruby
m8 has joined #ruby
pwh has joined #ruby
<jrobeson>
perhaps even too simple..
<jrobeson>
there are likely a billino tutorials out there tho
mary5030 has quit [Ping timeout: 268 seconds]
<SloggerKhan>
jrobeson: I suppose it would work. I guess I wouldn't get easy colored prompts, but that's not really critical.
<apeiros_>
riceandbeans: assign it to a local variable
digitalcake has joined #ruby
SilverKey has quit [Quit: Cheerio!]
io_syl has joined #ruby
saarinen has quit [Quit: saarinen]
<jrobeson>
actually io/console is a bit higher level i think..
<apeiros_>
platzhirsch: when in doubt, use strings.
<apeiros_>
the penalty isn't big
ukd1 has joined #ruby
volty has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<platzhirsch>
I will hack my Vim configuration, Vim needs to display a colon in front of strings and display them in the same color. Problem solved
iamjarvo has quit [Ping timeout: 245 seconds]
<apeiros_>
lol
kaspergrubbe has joined #ruby
hadees has joined #ruby
iamjarvo_ has quit [Ping timeout: 248 seconds]
dangerousdave has quit [Quit: Leaving...]
SloggerKhan has left #ruby [#ruby]
timonv has quit [Remote host closed the connection]
snovak has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 264 seconds]
nutella has joined #ruby
x1337807x has joined #ruby
nutella is now known as Guest82758
aberghage has left #ruby [#ruby]
ta has quit [Remote host closed the connection]
benweint has quit [Quit: Computer has gone to sleep.]
burlyscudd has quit [Quit: Leaving.]
amacgregor has joined #ruby
wildroman has quit [Remote host closed the connection]
havenwood has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
wildroman has joined #ruby
hanmac has quit [Read error: Connection reset by peer]
hanmac has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
Guest82758 has quit [Ping timeout: 248 seconds]
zcreative has joined #ruby
Bry8Star{T2 has joined #ruby
newbiehacker has quit [Read error: Connection reset by peer]
soulcake has quit [Ping timeout: 260 seconds]
mzdravkov has joined #ruby
SHyx0rmZ has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
carraroj has quit [Quit: Konversation terminated!]
bean__ has quit [Quit: Computer has gone to sleep.]
wildroman has quit [Ping timeout: 264 seconds]
<mzdravkov>
Is there a way, after I bundle a Gemfile where a gem is required from github, to install that gem to be usable from the whole system, not only from that project.
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
sedeki has joined #ruby
<mzdravkov>
Because when I bundle, the gem is installed, but not where other gems are and it is not shown in gem list
funburn has joined #ruby
<workmad3>
mzdravkov: not with bundler, no
perlsyntax has quit [Quit: Leaving]
<mzdravkov>
So, I have to clone the github repo and install it from source?
dangerousdave has joined #ruby
hadees has quit [Quit: hadees]
ukd1 has quit [Read error: Connection reset by peer]
ukd1 has joined #ruby
khushildep has quit [Quit: khushildep]
SHyx0rmZ has quit [Read error: Connection reset by peer]
d2dchat has joined #ruby
pkrnj has joined #ruby
geekbri has quit [Remote host closed the connection]
hanmac has quit [Quit: Leaving.]
<workmad3>
mzdravkov: pretty much, yeah
SHyx0rmZ has joined #ruby
gyzmodo has quit [Ping timeout: 260 seconds]
<mzdravkov>
workmad3: That's sad. Thanks very much for the help, thought :)
Davey has quit [Quit: Computer has gone to sleep.]
<mzdravkov>
havenwood: I've created a new rails app just to try to install only this gem from github, but it says 'Unable to resolve dependency: (unknown) requires saasy-simple (>= 0)' so I installed it from source, thanks for the help. That new command is pretty cool
<havenwood>
mzdravkov: Yeah, not quite fully functional but your desired feature is on its way at least. :)
btanaka has quit [Remote host closed the connection]
roadt has quit [Read error: Connection reset by peer]
haxrbyte has quit [Remote host closed the connection]
breakingthings has quit []
haxrbyte has joined #ruby
sayan has quit [Ping timeout: 252 seconds]
simoz has quit [Ping timeout: 248 seconds]
deweichen has joined #ruby
awc737 has quit [Excess Flood]
leynos has joined #ruby
awc737 has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
Andrevan has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 248 seconds]
soulcake has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
<havenwood>
Wow, i'm really starting to feel sorry for python folks... they have no drbrain. After three years of an open ticket, `pip` has no way to upgrade installed packages without individually naming them: https://github.com/pypa/pip/issues/59
<havenwood>
<3 Ruby.
claymore has joined #ruby
burlyscudd has joined #ruby
maz-dev has joined #ruby
soulcake has joined #ruby
Al___ has joined #ruby
gener1c has joined #ruby
ldnunes has quit [Quit: Leaving]
brennanMKE has joined #ruby
asym has joined #ruby
<asym>
is there an Enumerable#flat_map equivalent that let's me flat_map on non-nil values, instead of other enumerables? i'm looking for something that is a combination of: map{|x| .. }.find_all{|x| x != nil}
<workmad3>
asym: .map and .flat_map won't reduce the size of the collection though...
chairabanta has quit [Quit: Leaving...]
riceandbeans has quit [Quit: leaving]
<apeiros_>
havenwood: they can't just provide a patch and get it merged? o0
<asym>
workmad3: i'm just trying to 'functionalize' a map over a collection and some elements might be filtered out by the block/function being mapped over them
bean__ has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
<bnagy>
asym: maps are 1:1, that's why they're maps
<havenwood>
apeiros_: apparently not. and to make matters worse, there is no way to list the installed packages either... so you're manually upgrading blind
<apeiros_>
wow
<bnagy>
if you want to changes sizes etc use each etc
Kar- has quit [Ping timeout: 264 seconds]
<asym>
bnagy: right, but i was using a flat_map and wrapping elements in an array, or returning an empty array in the case of nil
<workmad3>
or a .inject([]) incantation
brianpWins has quit [Quit: brianpWins]
<workmad3>
or even .each_with_object
brianpWins has joined #ruby
<apeiros_>
n8
apeiros_ has quit [Remote host closed the connection]
<bnagy>
o/
dash_ has quit [Quit: dash_]
digitalcake has joined #ruby
apeiros has joined #ruby
_HolyCow has left #ruby [#ruby]
fgo has quit [Remote host closed the connection]
pwh has quit [Ping timeout: 252 seconds]
<bnagy>
asym: uh.. sorry I don't really understand what you're asking for. Can you provide a sample input and desired output?
hanmac has quit [Quit: Leaving.]
ehaliewicz has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
ravster has joined #ruby
leynos has quit [Quit: Off to dreams of Laserdiscs and Neo-Geos]
pwh has joined #ruby
threesome has joined #ruby
mengu has joined #ruby
locriani has quit [Remote host closed the connection]
vim_shim has quit [Quit: Leaving]
kazuuu has joined #ruby
ravster has left #ruby [#ruby]
<havenwood>
asym: You can of course create a compact_map method, but don't. Method chain #map then #compact, done.
cody-- has quit [Quit: derp]
<havenwood>
asym: unless you want to for fun :P
<havenwood>
whimsy is underrated
mercwithamouth has quit [Quit: Lost terminal]
nutella has joined #ruby
nutella is now known as Guest2042
soulcake has quit [Ping timeout: 260 seconds]
onewheelskyward has quit [Remote host closed the connection]
aspires has quit [Ping timeout: 264 seconds]
roflmaus has quit [Ping timeout: 264 seconds]
alex__c2022 has quit [Quit: alex__c2022]
IceyEC has quit [Quit: IceyEC]
mupkoo has quit [Remote host closed the connection]
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
onewheelskyward has joined #ruby
coderhs has quit [Ping timeout: 265 seconds]
Squarepy has joined #ruby
Senjai has quit [Ping timeout: 248 seconds]
deens has quit [Remote host closed the connection]
digitalcake has quit [Quit: Leaving.]
_HolyCow has joined #ruby
Guest2042 has quit [Ping timeout: 248 seconds]
Spami has quit [Read error: Connection timed out]
soulcake has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Read error: Operation timed out]
failshell has quit [Remote host closed the connection]
tatsuya__ has joined #ruby
ehaliewicz has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
failshell has joined #ruby
boboc has joined #ruby
mercwith1mouth has joined #ruby
mercwithamouth has quit [Client Quit]
digitalcake has joined #ruby
aspires has joined #ruby
Al___ has quit [Read error: Connection reset by peer]
i_s has quit [Remote host closed the connection]
Al___ has joined #ruby
tatsuya_o has quit [Ping timeout: 252 seconds]
failshell has quit [Ping timeout: 245 seconds]
ericmathison has joined #ruby
cescalante is now known as ce_afk
newton has joined #ruby
AltGrendel has joined #ruby
Al___ has quit [Read error: Connection reset by peer]
m8 has quit [Read error: Connection reset by peer]
kazuuu has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 265 seconds]
Al___ has joined #ruby
ta has joined #ruby
m8 has joined #ruby
heftig has joined #ruby
larissa has joined #ruby
rburton- has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
tanema has quit [Remote host closed the connection]
<Eiam>
I have a class from a gem that I want to rescue & retry the exact same code again
<Eiam>
I don't think I can monkey patch that because thats just re-defining the method
interactionjaxsn has joined #ruby
<Eiam>
I want it to call the same method again.
lfox has quit [Quit: ZZZzzz…]
<Eiam>
its not feasible for me to wrap calls into that class in my own code with begin/rescue/retry blocks
tatsuya__ has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tatsuya_o has joined #ruby
butblack has joined #ruby
<bnagy>
you can definitely monkeypatch
<bnagy>
just a matter of what's least ugly
<Eiam>
right but if the method is say def read(stuff) ... lots of code here.. end
<bnagy>
just redefine their method and add the rescue retry code
<bnagy>
copy pasta
<Eiam>
the monkey patch i want to do, is rescue the read method if it fails
<Eiam>
yeah okay, figured
<Eiam>
gotta copy their code
d2dchat has quit [Remote host closed the connection]
T_T has quit [Remote host closed the connection]
<Eiam>
repaste into mine and add rescue blocks
Al___ has quit [Read error: Connection reset by peer]
hanmac has joined #ruby
<bnagy>
it's kinda gross, but I've done it (once) for some AWS stuff that was Wrong
Al___ has joined #ruby
interactionjaxsn has quit [Ping timeout: 252 seconds]
atmosx has joined #ruby
<Eiam>
oh I know its gross. my ORM is randomly getting EOF client connection terminated in postgres
Nogbit has joined #ruby
<Eiam>
I dunno why. but I know just making the connection again works.
petey has quit [Remote host closed the connection]
<Eiam>
repeat the same request
<bnagy>
o_0
<Eiam>
so until I can figure out WHY the connection is being terminated.. retry it!
<Eiam>
(3 times. then fail anyway)
* bnagy
backs away slowly
<bnagy>
sounds good man.
petey has joined #ruby
* Eiam
chases bnagy BUT BUT!!!
Kar- has joined #ruby
m8 has quit [Quit: Sto andando via]
<Eiam>
bnagy: (I wasp poking for a way to monkey patch it without actually re-defining the method in my monkey patch)
<Nogbit>
if I have a gem "geternone" with /lib/gerterdone.rb and /lib/geterdone/nextmonth.rb (both of these being classes) why cant I use the gem like....Geterdone::NextMonth.new ????
<Eiam>
but its fine, ill just redefine it with their code + mine
tatsuya_o has quit [Ping timeout: 264 seconds]
krz has joined #ruby
<Eiam>
Geterdone::NextMonth has nothing to do with how your files are laid out
pixelshuck has quit [Quit: Nettalk6 - www.ntalk.de]
<Eiam>
Module::Class
<Nogbit>
must of misunderstood bundler then and namespacing....what do you suggest?
<Eiam>
how is NextMonth defined?
<Nogbit>
class NextMonth < Geterdone
nfk has quit [Quit: yawn]
petey has quit [Read error: Connection reset by peer]
petey_ has joined #ruby
jaynewstrom has quit [Remote host closed the connection]
jamescarr has quit [Ping timeout: 252 seconds]
hanmac has quit [Read error: Operation timed out]
RORgasm has quit [Remote host closed the connection]
<Nogbit>
my gem tests work fine as NextMonth.new()...just dont know how to get to that namespace when using the gem somewhere else
Kar- has quit [Ping timeout: 248 seconds]
relix has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
Ren^ has quit [Read error: Connection reset by peer]
alekst has quit [Quit: Computer has gone to sleep.]
mlpinit has quit [Remote host closed the connection]
zarubin has quit [Ping timeout: 264 seconds]
kevind has quit [Quit: kevind]
mlpinit has joined #ruby
deens has joined #ruby
jamescarr has joined #ruby
cody-- has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
ShellFu has quit [Read error: Connection reset by peer]
<bnagy>
it's just NextMonth.new
cody-- has quit [Client Quit]
Davey has quit [Quit: Computer has gone to sleep.]
raphaelivan has joined #ruby
<bnagy>
it just looks like you didn't require that file
Alina-malina has quit [Ping timeout: 260 seconds]
relix has joined #ruby
<bnagy>
try require 'geterdone/nextmonth'
alexju has quit [Ping timeout: 245 seconds]
<bnagy>
if it's your own gem then it's common practice to have a 'shell' require that requires other internal files from your gem
butblack has quit [Quit: butblack]
alexju_ has quit [Ping timeout: 248 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
Al___ has quit [Read error: Connection reset by peer]
mois3x_ has joined #ruby
Al___ has joined #ruby
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
mlpinit has quit [Ping timeout: 252 seconds]
marcdel has joined #ruby
robbyoconnor has joined #ruby
<Nogbit>
hmm, with that require I get LoadError: cannot load such file -- geterdone/nextmonth
RichardBaker has joined #ruby
pwh has quit []
platzhirsch has left #ruby [#ruby]
dangerousdave has quit [Quit: Leaving...]
i_s has joined #ruby
i_s has quit [Remote host closed the connection]
deens has quit [Ping timeout: 252 seconds]
lilfaf has quit [Remote host closed the connection]
mengu has quit [Changing host]
mengu has joined #ruby
wompy_ has quit [Quit: Leaving...]
lilfaf has joined #ruby
i_s has joined #ruby
deweichen has quit [Remote host closed the connection]
lilfaf has quit [Remote host closed the connection]
<Nogbit>
hmm, gem contents geterdone does not list all my files, I thought bundler include them all for me?
mansi_ has quit [Remote host closed the connection]
mansi has joined #ruby
v0n has quit [Read error: Operation timed out]
raphaelivan has quit [Quit: Leaving.]
vasilakisFiL has left #ruby ["Konversation terminated!"]
SloggerKhan has joined #ruby
petey_ has quit [Remote host closed the connection]
Liothen has joined #ruby
kreeves has joined #ruby
<SloggerKhan>
I have a script that normally processes input line by line. I gave it input with < input.in instead of manually typing and it works fine, but also spits out a bunch of 'stty: standard input: Inappropriate ioctl for device' messages. Is there an easy way to stop this from happening?
<Nogbit>
needed to do a git add becuase the gemspec has the following and it wasnt getting all my files spec.files = `git ls-files`.split($/)
mansi has quit [Ping timeout: 252 seconds]
brightcohen has joined #ruby
DonRichie has quit [Quit: Verlassend]
mklappstuhl has quit [Remote host closed the connection]
brightcohen has quit [Client Quit]
claymore has quit [Quit: Leaving]
plotter has quit [Ping timeout: 268 seconds]
bauerbob has joined #ruby
siwica has joined #ruby
cubicme has quit [Quit: WeeChat 0.4.1]
brightcohen has joined #ruby
plotter has joined #ruby
deweichen has joined #ruby
<bnagy>
SloggerKhan: what do you get if you just run cat < input.in ?
petey has joined #ruby
mrsolo_ has quit [Quit: This computer has gone to sleep]
ssvo has quit [Ping timeout: 240 seconds]
T_T has joined #ruby
<SloggerKhan>
bnagy: the contents of the file, 1 line at a time.
hanmac has joined #ruby
mzdravkov has left #ruby [#ruby]
<bnagy>
so cat gives you no errors?
<SloggerKhan>
no errors
<bnagy>
huh.
<bnagy>
rather than trying to debug wacky tty stuff I'd suggest just Don't Do That
nutella has joined #ruby
AltGrendel has left #ruby [#ruby]
nutella is now known as Guest96529
<bnagy>
you could mess around with operating on ARGF, too
petey has quit [Read error: Operation timed out]
s2013 has quit [Quit: Leaving]
<Nogbit>
how do I use the name of a method within the method itself?
<bnagy>
__Method__
<Nogbit>
thanks
<bnagy>
lowercase m I don't know how my fingers did that
postmodern has joined #ruby
freezey has quit [Remote host closed the connection]
Al___ has quit [Ping timeout: 264 seconds]
asobrasil has left #ruby [#ruby]
SHyx0rmZ has quit [Ping timeout: 252 seconds]
haxrbyte has quit [Read error: Connection reset by peer]
ChronocityLC has quit [Ping timeout: 248 seconds]
Guest96529 has quit [Ping timeout: 240 seconds]
osvico has quit [Ping timeout: 240 seconds]
jlast has quit [Remote host closed the connection]
<SloggerKhan>
bnagy: meh. I'll just live with it for now. But I have no clue.
jlast has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
ssvo has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ehc has quit [Quit: ehc]
enebo has quit [Quit: enebo]
jetblack has quit [Ping timeout: 248 seconds]
colonolGron has joined #ruby
siwica has quit [Ping timeout: 252 seconds]
colonolGron has quit [Client Quit]
jlast has quit [Ping timeout: 264 seconds]
lmickh has quit [Quit: Leaving.]
Monie has joined #ruby
ce_afk is now known as cescalante
freezey has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
ehc has joined #ruby
<deepy>
Hi, I'm trying to use the recaptcha gem, but I want to change the theme. It tells me that :display takes a hash containing the 'theme' and 'tabinex' options per the API
<deepy>
In my haml, how would I slap that onto the recaptcha_tags?