<sam113101>
"When named capture groups are used with a literal regexp on the left-hand side of an expression and the =~ operator, the captured text is also assigned to local variables with corresponding names."
<n_blownapart>
bnagy hmmm. well someone here told me to learn algorithms if I want to get ruby down. that is bad advice I guess.
<n_blownapart>
so thanks . any language particularly suited for it?
ellipse has quit [Ping timeout: 245 seconds]
xkickflip has joined #ruby
guns has quit [Quit: guns]
benweint has joined #ruby
benweint has quit [Client Quit]
takeru has quit [Remote host closed the connection]
nacsurte has joined #ruby
<nightfly>
c
pen has joined #ruby
bionhart has quit [Read error: Connection reset by peer]
bionhart_ has joined #ruby
ellipse has joined #ruby
pencilcheck has joined #ruby
havenwood has joined #ruby
<bnagy>
there's no reason to learn algorithms to be a decent ruby coder
<bnagy>
anything that's actually complex enough to need proper algorithm design is probably available as 3rd party code
bradhe has joined #ruby
<bnagy>
unless you're really off the beaten track
<bnagy>
it surely doesn't hurt to have some kind of idea about roughly how long different approaches take
<bnagy>
O(n) O(1), O(n**2) etc
elliptical has quit [Ping timeout: 248 seconds]
<bnagy>
but you can intuit a lot of that
pen has quit [Ping timeout: 248 seconds]
arusso has quit [Quit: Adios Amigos!]
<Sargun>
Is there an enumerable method that responds with the passing value, the value of the evaluated passed block
<n_blownapart>
thanks bnagy nightfly . I heard ruby is popular within mathematics, so I thought it would suffice to learn algorithms using it, since its the first language I've ever tried to learn
<bnagy>
n_blownapart: why do you want to learn 'algorithms'?
<bnagy>
what benefit are you hoping for?
<bnagy>
Sargun: I couldn't quite parse that. Can you give an example or something?
Eaven has quit [Read error: Connection reset by peer]
Eaven has joined #ruby
rippa has joined #ruby
<n_blownapart>
bnagy: I was going on previous advice to study one language thoroughly, and subsequent advice that to do that really, I should learn algorithms in ruby.
adkron_ has quit [Ping timeout: 264 seconds]
chandankumar has joined #ruby
<bnagy>
n_blownapart: ok well learn to actually program first
<nightfly>
Learning a low level language like c will give you a good foundation on how higher level ones actually work too.
chrishunt has quit [Quit: ZzZzZz...]
<n_blownapart>
bnagy: thanks. good call nightfly thanks. I get depressed in drop ruby and always need to review but I like it.
<n_blownapart>
*and
chrishunt has joined #ruby
<bnagy>
I really don't think you should learn C
<bnagy>
you'd just be tempted to use it
mikepack has joined #ruby
<nacsurte>
i want to catch an exception to File.open, so i'm using begin and rescue Exception
<bnagy>
if you want to really learn how things work near the metal learn asm
Inside has joined #ruby
<bnagy>
at least there's no danger of you writing a project of any size in it
<nacsurte>
but i read that you shouldn't put the File.open inside the begin/rescue block
<bnagy>
nacsurte: don't rescue Exception
<nacsurte>
is there a reason for that?
<nacsurte>
oh
<nacsurte>
what should i use?
<bnagy>
just rescue
<bnagy>
rescue will catch all the exceptions that you can deal with sanely
<nacsurte>
i see
<bnagy>
if you want to handle different exception classes you can rescue ArgumentError ; do stuff ; rescue ; do other stuff
krz has joined #ruby
<nacsurte>
okay
<nacsurte>
got it
<bnagy>
also imho you should check for all the things that would screw up your open rather than trying to handle exceptions
<bnagy>
there are a limited set of things that can go wrong with File.open
<bnagy>
but that's opinion / style
<nacsurte>
so if i wanted to check if a file was present
momomomomo has quit [Quit: momomomomo]
<nacsurte>
before using File.open
Opettaja has quit [Quit: WeeChat 0.4.1]
<bnagy>
whereas 'do not rescue Exception' is gospel
<bnagy>
File.file? fn
<nacsurte>
thats handy
justsee has joined #ruby
justsee has joined #ruby
<n_blownapart>
I really appreciate your input bnagy pax p.s. you in nepal?
<bnagy>
n_blownapart: not any more, we finished our mission there
<bnagy>
I'm in thailand at the moment
<n_blownapart>
bnagy: epic good on you.
<n_blownapart>
bnagy: love thailand been there a bunch
generalissimo has joined #ruby
momomomomo has joined #ruby
tommyvyo has joined #ruby
jamesfung14 has quit [Ping timeout: 240 seconds]
Guga_ has quit [Quit: ~]
arya has quit [Ping timeout: 260 seconds]
<ellipse>
bnagy: Where?
epochwolf has quit [Quit: Uh no...]
wsterling has quit [Remote host closed the connection]
InFlames has quit [Quit: This computer has gone to sleep]
jonahR has joined #ruby
yashshah has joined #ruby
takezawa has quit [Remote host closed the connection]
arya has quit [Ping timeout: 276 seconds]
takezawa has joined #ruby
splittingred has quit [Quit: splittingred]
gildo has quit [Ping timeout: 260 seconds]
cj3kim has joined #ruby
arya has joined #ruby
areil has quit [Ping timeout: 248 seconds]
pipework has joined #ruby
Inoperable_AWY is now known as inoperable
cj3kim has quit [Ping timeout: 276 seconds]
schlunz has joined #ruby
thebastl has quit [Remote host closed the connection]
tomzx_mac has quit [Ping timeout: 276 seconds]
inoperable is now known as Inoperable_AWY
thebastl has joined #ruby
Azulinho has quit [Ping timeout: 260 seconds]
codecop has joined #ruby
ellipse has quit [Read error: Connection reset by peer]
ellipse has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
mxweas has quit [Quit: Leaving...]
ffranz has quit [Quit: Leaving]
skasio has quit [Quit: leaving]
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
skasio has joined #ruby
iamjarvo has joined #ruby
benweint has joined #ruby
angusiguess has joined #ruby
skasio has quit [Client Quit]
generalissimo has quit [Remote host closed the connection]
c0rn has joined #ruby
skasio has joined #ruby
Azulinho has joined #ruby
benweint has quit [Client Quit]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
dash_ has joined #ruby
skasio_ has quit [Quit: leaving]
Nisstyre has quit [Quit: Leaving]
Domon has joined #ruby
n_blownapart has quit [Remote host closed the connection]
Faris has quit [Quit: Leaving.]
iamjarvo has quit [Ping timeout: 246 seconds]
arusso_znc has joined #ruby
marsLantern has joined #ruby
mocfive has quit [Remote host closed the connection]
Faris has joined #ruby
ezkl has joined #ruby
epochwolf has joined #ruby
angusiguess has quit [Ping timeout: 240 seconds]
reset has quit [Ping timeout: 256 seconds]
albertone has quit [Ping timeout: 248 seconds]
Takehiro has joined #ruby
stkowski has joined #ruby
ppppaul has joined #ruby
passcod has joined #ruby
nomenkun has joined #ruby
mocfive has joined #ruby
<fierycatnet>
Are there any resources for Ruby that focus on Linux system administration. For example if I want to learn Ruby over Bash scripting?
<ellipse>
The problem domains are different.
<ellipse>
I think there's a Ruby for Sysadmins book or something though.
pyrac has quit [Read error: Connection reset by peer]
<ellipse>
But bash is still useful for stuff it is intended for.
<Hanmac1>
fierycatnet: you mean like: with system() or `` or popen you can call the binary programs?
pyrac has joined #ruby
chxane has joined #ruby
mafolz has joined #ruby
<fierycatnet>
just anything in general
<ellipse>
If you're doing stuff that is not painful to do in bash, bash is a better choice.
bradhe has quit [Remote host closed the connection]
<ellipse>
i.e. It doesn't require control structures.
<bnagy>
except that basically everything is painful to do in bash
<bnagy>
fierycatnet: 'proper' system administration is all moving to devops now anyway
<bnagy>
and most of those tools are in a HLL
<ellipse>
Not the stuff it's intended for.
lemonsparrow has quit [Ping timeout: 250 seconds]
<ellipse>
Which is basically just calling binaries.
ananthakumaran has joined #ruby
ybart has joined #ruby
<ellipse>
I've seen people reimplementing sed in Ruby though which is just silly.
<ellipse>
Again though, problem-dependent.
<bnagy>
sure - I'd just shell out to sed :P
<bnagy>
there's nothing you can do in bash that you can't do in a ruby script, except make people's eyes bleed or feel good about being old
chandankumar has joined #ruby
fridim__ has quit [Ping timeout: 276 seconds]
<Hanmac1>
ruby: array.grep(Integer).inject(0,:+) ... and now try to do that in bash ;P
<ellipse>
Sure, but a string of system() calls with no logic will make people's eyes bleed to.
<ellipse>
Fuck no.
<nacsurte>
if i wanted to use ARGV to get a file, and i wanted to check if that file existed, what is wrong with File.exists?(ARGV[0]) ?
<bnagy>
I'm all for unix tools, just not for automating with bash
<ellipse>
That is a Ruby problem. ;p
therealnoop has joined #ruby
schlunz has left #ruby [#ruby]
<ellipse>
I am just saying that for really simple stuff, bash is not always evil.
cads is now known as Pinky-
tagrudev has joined #ruby
<Hanmac1>
nacsurte: hm can you pastie your ruby program and how you call it?
ivanoats has quit [Remote host closed the connection]
knightblader has quit [Quit: WeeChat 0.4.1]
justsee has quit [Quit: Lost terminal]
<ellipse>
But a lot of bash stuff has no logic whatsoever, and that would be a little silly to port to Ruby, but people still do it a lot.
<bnagy>
s/^(.*)$/`\1`/ is not porting
<ellipse>
haha
<ellipse>
I think you overgeneralized my point. ;p
<nacsurte>
Hanmac1: basically, if File.exists?(ARGV[0]) f=File.open(ARGV[0],"r")
<bnagy>
well I just think knowing bash scripting is a dead skill
mumblerit has quit [Remote host closed the connection]
<bnagy>
it's awful to use for anything > 3 lines, so why bother
chandankumar has quit [Excess Flood]
<bnagy>
overkill the trivial stuff with a HLL instead and only learn one thing
<ellipse>
You learn bash anyway for the shell.
chandankumar has joined #ruby
msk5293 has joined #ruby
<bnagy>
only if you use bash
mumblerit has joined #ruby
mumblerit is now known as Guest97540
fierycatnet has quit [Ping timeout: 248 seconds]
<ellipse>
If you're using bash-specific stuff, it's not overkill to use Ruby. ;p
<Hanmac1>
nacsurte: hm it works for me and exists? returns true, but i would not use this form of File.open ... you should use File.open(path,"r") {|f| ... } or File.read(path) if you only wants the content of the file
redgirl has quit [Quit: Leaving]
khushildep has joined #ruby
redgirl has joined #ruby
khushildep has quit [Read error: Connection reset by peer]
Guest97540 is now known as mumblerit
<nacsurte>
Hanmac1: it works if you have something in ARGV[0] but if it's nothing then it returns an error
dhruvasagar has joined #ruby
<nacsurte>
i guess the problem is that ARGV[0] would be nil and exists? doesn't like that
khushildep has joined #ruby
Takehiro has quit [Remote host closed the connection]
dangerousdave has joined #ruby
fierycatnet has joined #ruby
apeiros has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
<Hanmac1>
nacsurte: you can do: File.exists?(ARGV[0]||"")
bubblehe_ has joined #ruby
pyrac has quit [Quit: pyrac]
bubblehead has quit [Read error: Connection reset by peer]
ninegrid_ is now known as ninegrid
<bnagy>
don't use exists? btw - use file?
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
<bnagy>
cause directories exist
pyrac has joined #ruby
Dave is now known as Guest55966
timonv has joined #ruby
JohnBat26 has joined #ruby
brianpWins has joined #ruby
<nacsurte>
it says undefined method file?
thebastl_ has joined #ruby
cj3kim has joined #ruby
thebastl has quit [Ping timeout: 260 seconds]
<nacsurte>
nevermind
pcarrier_ has joined #ruby
<nacsurte>
still a problem with ARGV[0] being nil
<nacsurte>
if there's no argument
mercwithamouth has joined #ruby
<bnagy>
yeah well that will always happen
io_syl has joined #ruby
<bnagy>
you just need to handle a blank argv somehow
wallerdev has quit [Quit: wallerdev]
tommyvyo has quit [Quit:]
<bnagy>
fail "you suck" unless ARGV.any? and File.file? ARGV.first
Azulinho has quit [Ping timeout: 248 seconds]
<Hanmac1>
i can use this: File.exists?(ARGV[0]||"")
<nacsurte>
interesting solution
cj3kim has quit [Ping timeout: 246 seconds]
rickruby has joined #ruby
workmad3 has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
jfelchner has quit [Ping timeout: 245 seconds]
jfelchner has joined #ruby
ryan_turner is now known as ryan_turner_
pcarrier_ has quit [Ping timeout: 240 seconds]
kil0byte has quit [Ping timeout: 246 seconds]
pcarrier_ has joined #ruby
moos3 has joined #ruby
mikepack has quit [Remote host closed the connection]
nerdman has joined #ruby
pen has quit [Read error: Connection reset by peer]
tjbiddle has quit [Quit: tjbiddle]
arya has quit [Ping timeout: 260 seconds]
kil0byte has joined #ruby
kil0byte has quit [Remote host closed the connection]
slash_nick has quit [Ping timeout: 240 seconds]
eldariof has quit [Read error: Operation timed out]
mxweas has joined #ruby
Takehiro has joined #ruby
Takehiro has quit [Remote host closed the connection]
mxweas has quit [Client Quit]
pyrac has quit [Quit: pyrac]
jprovazn has joined #ruby
arya has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
ppppaul has quit [Ping timeout: 248 seconds]
mahmoudimus has joined #ruby
redgirl has quit [Quit: This computer has gone to sleep]
_Andres has joined #ruby
ybart has quit [Quit: ybart]
<nacsurte>
i used File.file?(ARGV[0].to_s)
<nacsurte>
seems to work
madb055 has quit [Ping timeout: 246 seconds]
dash_ has quit [Quit: Time to beer :)]
angusiguess has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
Nisstyre-laptop has joined #ruby
tommyvyo has joined #ruby
<Hanmac1>
yeah its fine too
Hanmac1 has quit [Quit: Leaving.]
pipework has quit [Remote host closed the connection]
mocfive has quit [Remote host closed the connection]
aganov has joined #ruby
khushildep has quit [Quit: khushildep]
takeru has joined #ruby
twoism has quit [Ping timeout: 260 seconds]
ellipse has quit [Ping timeout: 260 seconds]
Azulinho has joined #ruby
capox has joined #ruby
Giorgio has joined #ruby
nacsurte has quit [Ping timeout: 246 seconds]
ferno has joined #ruby
<capox>
Have simple strings with format "1234 stuff stuf stufff Place\n". Want "1234 Place". Wat simple?
pcarrier_ has quit [Ping timeout: 264 seconds]
jmaister has quit [Quit: changing host]
c0rn has joined #ruby
pcarrier_ has joined #ruby
<canton7>
capox, so, you want the first and last word?
pduin has joined #ruby
<Sargun>
Is there a clever way to do a fetch from a hash, and if it doesn't exist, set it
<capox>
canton7: yes
<capox>
with regex it's easy to get either the first or the last...
<canton7>
str.chomp.match(/\A(\w+).*?(\w+)\Z/)
<capox>
Something like "134234 blah foo bar duh stuff Important\n".match(/(^\d+)(.+)(\w\$)/)
<canton7>
actually don't need the chomp, with \Z
chandankumar has quit [Ping timeout: 256 seconds]
<canton7>
or, parts = str.split(' '). parts[0] << parts[-1]
monkegjinni has joined #ruby
<capox>
ok you dont need the args to split
takeru has quit [Remote host closed the connection]
filipe has joined #ruby
rickruby has quit [Remote host closed the connection]
bradhe has joined #ruby
<canton7>
true
Azulinho_ has joined #ruby
vlad_starkov has joined #ruby
<capox>
hm, how to get neg range from arr
<capox>
0..-1
kil0byte has joined #ruby
Azulinho has quit [Ping timeout: 276 seconds]
<capox>
neiother .slice( -1, 0) nor .slice( -1..0 ) work
pyrac has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<bnagy>
capox: ranges don't go backwards
monkegjinni has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
<bnagy>
if you want stuff in reverse order you have to take a range then reverse it
<canton7>
arr.rotate(-1)[0..1].reverse or something
leonidlm has joined #ruby
huoxito has quit [Quit: Leaving]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jgoss has quit [Ping timeout: 276 seconds]
mahmoudimus has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
Hanmac2 has joined #ruby
gstamp_ has quit [Quit: Computer has gone to sleep.]
Bry8Star{T2 has quit [Remote host closed the connection]
end_guy has quit [Write error: Broken pipe]
coderhs has joined #ruby
Astralum has quit [Ping timeout: 240 seconds]
razi has joined #ruby
<capox>
Ok thanks 8)
mafolz has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
momomomomo has quit [Read error: Connection reset by peer]
nomenkun has quit [Remote host closed the connection]
momomomomo has joined #ruby
Hanmac2 has quit [Ping timeout: 256 seconds]
bionhart_ has quit [Remote host closed the connection]
mafolz has joined #ruby
takeru has joined #ruby
gasbakid has joined #ruby
sie has joined #ruby
sie has joined #ruby
sie has quit [Changing host]
zigomir has joined #ruby
threesome has quit [Ping timeout: 276 seconds]
ij has quit [Ping timeout: 260 seconds]
dash__ has joined #ruby
teclator has quit [Ping timeout: 246 seconds]
Kar- has joined #ruby
sideshowcoder has quit [Ping timeout: 260 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
sie has quit [Ping timeout: 240 seconds]
<Sargun>
Is there a way to check a boolean, and set it?
monkegjinni has joined #ruby
<heftig>
Sargun: clarify?
<elliptical>
No.
<Sargun>
i.e. if (x = my_method); x.blah; end -- only if my_method doesn't return Nil
<capox>
Whats File.open( fn ) do, if fn has a path to dir that does not exist?
<elliptical>
Oh.
alup has joined #ruby
<canton7>
capox, Errno::ENOENT: No such file or directory
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
<elliptical>
if x: x.blah()
<capox>
ok, any suggestions for handling directory creation with File.open?
<elliptical>
(Assuming other falsy things are also unwanted.)
ningu has joined #ruby
<canton7>
if !(x = my_method).nil?
<canton7>
capox, oh you're creating a new file? so File.open(fn, 'w') ?
<capox>
oh yeah, true, "w+"
<elliptical>
Oh, haha, the caps made me think this was #python.
<canton7>
same error, in fact. FileUtils.mkdir_p(File.dirname(fn))
<capox>
Ok, found
<capox>
File.dirname, yes
<capox>
8)
sideshowcoder has joined #ruby
slash_nick has joined #ruby
slash_nick has joined #ruby
nkts__ has quit [Quit: -]
jimeh_ has joined #ruby
LennyLinux has joined #ruby
teclator has joined #ruby
momomomomo has quit [Quit: momomomomo]
Elico has joined #ruby
pcarrier_ has quit [Ping timeout: 250 seconds]
tockitj has joined #ruby
pcarrier_ has joined #ruby
banjara has quit [Quit: Leaving.]
monkegji_ has joined #ruby
dhruvasagar has joined #ruby
arya has quit [Ping timeout: 240 seconds]
pyrac has quit [Quit: pyrac]
chandankumar has joined #ruby
monkegjinni has quit [Ping timeout: 260 seconds]
monkegji_ has quit [Remote host closed the connection]
jbpros has joined #ruby
srji has joined #ruby
dagobah has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
pcarrier_ has quit [Ping timeout: 260 seconds]
pen has joined #ruby
rezzack has quit [Quit: Leaving.]
orien has quit [Quit: Computer has gone to sleep.]
pcarrier_ has joined #ruby
tvw has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
blaxter_ has joined #ruby
thebastl_ has quit [Remote host closed the connection]
chandankumar has quit [Ping timeout: 240 seconds]
threesome has joined #ruby
Domon has quit [Remote host closed the connection]
ntzrmtthihu777 has joined #ruby
<ntzrmtthihu777>
Hanmac: sup man
ningu has left #ruby [#ruby]
swex_ has joined #ruby
<ntzrmtthihu777>
Hanmac1: or you, whichever is active :P
apeiros has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Coffers has joined #ruby
<ntzrmtthihu777>
I don't suppose anyone here can assist me? I'm looking for info on writing ruby extensions in c++, but everything I find assumes swig or rice, and quite frankly I'm more of a manual/hands-on kinda guy (don't even use makefiles if I can avoid it, lol)
icole has joined #ruby
swex has quit [Ping timeout: 260 seconds]
<hoelzro>
ntzrmtthihu777: README.EXT is probably what you want
<Hanmac1>
ntzrmtthihu777: i can do it without swig and rice is only used for eating
Proshot has joined #ruby
<ntzrmtthihu777>
XD
<ntzrmtthihu777>
hoelzro: ahh, this is interesting.
orien has joined #ruby
<nightfly>
ntzrmtthihu777: you're gonna have hard time later in your programming career then
<ntzrmtthihu777>
nightfly: meh. I don't mind hard. I'll use what is needed when its needed, but I rather enjoy minimal tools.
sebastianb has quit [Ping timeout: 246 seconds]
dr_bob has joined #ruby
<Hanmac1>
nightfly: why a hard time? i also dont make makefiles because mkmf does that for me
ayaz has quit [Ping timeout: 240 seconds]
<ntzrmtthihu777>
I just think its ridiculous to have a makefile for code consisting of a few header and source files.
slainer68 has joined #ruby
monkegjinni has joined #ruby
<ntzrmtthihu777>
I can see a huge program with quite alot, but for little stuff? its just more crap to deal with that I don't feel like XD
kevinfagan has quit [Excess Flood]
slainer6_ has joined #ruby
skattyadz has joined #ruby
kevinfagan has joined #ruby
troessner has joined #ruby
Z_Mass has quit [Quit: Leaving]
<ntzrmtthihu777>
man, I got some tea the other day. it looks like potporri. It smells like potporri, and if this is how potporri *tastes* I'll just start buying that XD
afd__ has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
<ntzrmtthihu777>
more on-topic, when do you guys thing 2.0 will become the standard?
slainer68 has quit [Ping timeout: 246 seconds]
ayaz has joined #ruby
carcajou is now known as Veejay
monkegjinni has joined #ruby
ddfreyne has quit [Excess Flood]
ddfreyne has joined #ruby
kevinfagan has quit [Max SendQ exceeded]
kevinfagan has joined #ruby
ctp has joined #ruby
afd__ has joined #ruby
kevinfagan has quit [Max SendQ exceeded]
tommyvyo has quit [Quit:]
Domon has joined #ruby
kevinfagan has joined #ruby
kevinfagan has quit [Max SendQ exceeded]
kevinfagan has joined #ruby
kevinfagan has quit [Max SendQ exceeded]
monkegji_ has joined #ruby
monkegji_ has quit [Remote host closed the connection]
JumpMast3r has joined #ruby
monkegji_ has joined #ruby
Bry8Star{T2 has joined #ruby
kevinfagan has joined #ruby
niceguyjames has joined #ruby
dash__ has quit [Quit: Time to beer :)]
apeiros has quit [Remote host closed the connection]
DaniG2k has joined #ruby
phracker has joined #ruby
michele3 has joined #ruby
monkegjinni has quit [Ping timeout: 260 seconds]
monkegjinni has joined #ruby
Proshot has quit [Quit: Leaving]
aspiers has joined #ruby
monkegji_ has quit [Ping timeout: 260 seconds]
<ntzrmtthihu777>
hoelzro: how applicable is README.EXT to c++?
braoru has joined #ruby
thebastl has joined #ruby
jds_ has joined #ruby
<jds_>
Hi there
ellipse has joined #ruby
ghr has joined #ruby
<jds_>
I'm new to chef, and am confusing myself with the wide range of (conflicting?) instructions available on Google. I have the eventual aim of getting chef working with vagrant, but for now am just running chef-solo by hand on the assumption that things might become clearer...
elliptical has quit [Ping timeout: 256 seconds]
casheew has quit [Read error: Operation timed out]
skattyadz has quit [Quit: skattyadz]
ferno has quit [Ping timeout: 240 seconds]
<jds_>
I was trying to just install nginx, but got an error "undefined method `[]' for nil:NilClass" in ohai_plugin in nginx. Ended up having to add ohai, apt, build-essential, runit, and yum to the cookbooks directory before I could persuade it that all dependencies where available
<jds_>
At which point I get "NameError: undefined local variable or method `use_inline_resources'", which I guess is a chef 11 thing
larissa has quit [Quit: Leaving]
apeiros has joined #ruby
marr has joined #ruby
fierycatnet has quit [Quit: Leaving]
<jds_>
I tried to use chef 11 earlier, but I got "Resource.const_defined?(class_name, false)", which suggests it depends on ruby 1.9
<jds_>
Should I just upgrade everything to ruby 1.9 & chef 11, or am I better off trying to make things work in chef 10 ?
<ntzrmtthihu777>
ellipse: yeah, I'm aware its available, but I mean when 2.0 takes a majority over 1.9.3 and all the currently developed ruby tools come to 2.0 from 1.9.3?
<ntzrmtthihu777>
or rather, should I write against 1.9.3 and upgrade to 2.0, or just jump into 2.0
elaptics`away is now known as elaptics
<ellipse>
What is the dependency you're waiting for?
brianpWins has quit [Quit: brianpWins]
<ellipse>
Jump into 2.0 unless you need an old version for a specific reason.
<ntzrmtthihu777>
nothing in particular, just don't want to get half into 2.0 and have to redo it for lack of something.
camilasan has joined #ruby
<ellipse>
Are you planning on adding a large number of dependencies you can't replace or know beforehand?
r0bgleeson has joined #ruby
KhalilC has joined #ruby
<ntzrmtthihu777>
just c++, sfml2.0, and ruby. as far as I can forsee this should cover all that i need.
phracker has quit [Max SendQ exceeded]
noname001 has joined #ruby
<ellipse>
Then go with 2.0 unless it conflicts with one of those
<DaniG2k>
why is there no sum method in ruby?
<Hanmac1>
weh i need the eval.in author ... there are little bugs in evalin
<DaniG2k>
this thing has every method in the universe but not sum
phracker has joined #ruby
<Hanmac1>
DaniG2k: because we dont need sum
Rizzle has quit [Read error: Connection reset by peer]
<DaniG2k>
instead, it uses the obvious .inject(:+)
phracker has quit [Max SendQ exceeded]
takezawa has quit [Quit: Leaving...]
vigintas has joined #ruby
phracker has joined #ruby
<DaniG2k>
it would have been kind of matz to include a sum mehtod
<ntzrmtthihu777>
heh. another problem is all the ruby+c/++ info I can seem to find are all based on older versions of ruby :P
<DaniG2k>
.inject( :+) is a bit awkward
mahmoudimus has joined #ruby
<Hanmac1>
ntzrmtthihu777: for the newer questions you can ask me
JohnBat26 has joined #ruby
ehaliewicz has quit [Ping timeout: 276 seconds]
<ntzrmtthihu777>
Hanmac1: heh, thankya. I really needa hang out here more :P
pcarrier_ has quit [Quit: Computer has gone to sleep.]
<hoelzro>
ntzrmtthihu777: it shouldn't make much of a difference whether you use C or C++
jbpros has quit [Quit: jbpros]
kernel_panick has joined #ruby
phracker has quit [Max SendQ exceeded]
<ntzrmtthihu777>
hoelzro: alright. I've never had a go at C, lol. my (short) programming life started with C++, lol.
<hoelzro>
C isn't that different from C++ =)
kernel_panick is now known as kernelpanik
<Hanmac1>
you just need to look when the pointer are keep'd by the system (so ruby should not free them)
<ntzrmtthihu777>
yeah, so I hear.
Jedi_SCT1 has joined #ruby
KillerFox has joined #ruby
tonini has joined #ruby
mame0 has joined #ruby
LennyLinux has quit [Remote host closed the connection]
robustus has joined #ruby
razi has quit [Quit: Leaving.]
icole has quit [Remote host closed the connection]
redgirl has joined #ruby
<jds_>
The nginx recipe calls 'template "#{node['ohai']['plugin_path']}/nginx.rb"'. When I try to use it, node['ohai'] is nil. What am I missing that would usually set that up?
lkba has quit [Ping timeout: 260 seconds]
obs has quit [Quit: Konversation terminated!]
dawkirst has joined #ruby
daniel_- has joined #ruby
monkegji_ has joined #ruby
<dawkirst>
Would FilteUtils.move(foo, bar, :force=> true) create bar if it doesn't exit already?
jimg has joined #ruby
casheew has joined #ruby
<ntzrmtthihu777>
what is this ohai I keep seeing? the rubysdl page uses it as part of its url, what does it signify?
HecAtic has quit [Quit: Àá¼ö]
b0oh has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
Al___ has joined #ruby
monkegji_ has joined #ruby
Guest55966 has quit [Read error: Connection reset by peer]
monkegjinni has quit [Ping timeout: 256 seconds]
dangerousdave has joined #ruby
b0oh has left #ruby [#ruby]
<apeiros>
DaniG2k: Array#sum would be a method on a generic datastructure for a small subset of possible arrays
<apeiros>
if you want it, it's easy enough to add it
<DaniG2k>
nah its ok
<DaniG2k>
it would just be nice if it were there by default like in python
<apeiros>
DaniG2k: I disagree
<DaniG2k>
i think adding elements in an array is such a common thing
<apeiros>
array already has over 100 methods (!)
<DaniG2k>
so coudlnt't they make 101?
<jds_>
... wait, this totally isn't the #chef channel. Sorry for all the OT questions
<apeiros>
DaniG2k: what makes you think it'd stop at 101?
c0rn has quit [Quit: Computer has gone to sleep.]
<apeiros>
there's 1001 specific use-cases which only make sense for a small subset of possible arrays.
<DaniG2k>
that's my point, they could have added an add method since its so common to have an array and add the elements together
<apeiros>
wouldn't it be nice if it had .avg too? .mean also?, .stddev?
<apeiros>
and all kinds of other analytical methods
arya has joined #ruby
jds_ has quit [Remote host closed the connection]
ferno has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
sayan has joined #ruby
sayan has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
<ellipse>
That sounds like a good gem.
bigkevmcd has joined #ruby
<ellipse>
(which should be stdlibed)
fgro has joined #ruby
ntzrmtthihu777 has quit [Quit: leaving]
Takehiro has joined #ruby
<apeiros>
yes. and in 2.0 you can even make it a refinement for array/enumerable.
<Sargun>
Is there a more concise way to say -- if unit and unit != ""
orien has quit [Quit: Computer has gone to sleep.]
Domon has quit [Remote host closed the connection]
Guga_ has joined #ruby
akashj87 has joined #ruby
Xeago has joined #ruby
Al___ has quit [Quit: Al___]
<bnagy>
Sargun: btw re your q above, do_thing if a and not a.empty? will work even if a is nil
<bnagy>
because and shortcuts
camilasan has joined #ruby
tonini has joined #ruby
nfk has quit [Quit: yawn]
nfk has joined #ruby
nettoweb has joined #ruby
Eaven has quit [Remote host closed the connection]
<bnagy>
I mean && does too, but it binds tighter
<bnagy>
which would make the statement uglier
daniel_- has joined #ruby
senayar has joined #ruby
Domon has joined #ruby
Eaven has joined #ruby
KhalilC has quit [Ping timeout: 264 seconds]
afd__ has quit [Read error: Connection reset by peer]
thebastl has quit [Remote host closed the connection]
motto has quit [Ping timeout: 245 seconds]
Spami has joined #ruby
Spami has joined #ruby
afd__ has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
chxane has quit [Remote host closed the connection]
davetherat has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
davetherat has joined #ruby
evenix_ has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
chandankumar` has quit [Quit: Leaving]
Ortuna has joined #ruby
nari_ has joined #ruby
ghr has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
ntus1017 has joined #ruby
KhalilC has joined #ruby
daniel_- has quit [Ping timeout: 246 seconds]
b0oh has joined #ruby
Domon has quit [Remote host closed the connection]
m8 has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
noname001 has quit [Remote host closed the connection]
LennyLinux has quit [Remote host closed the connection]
Killerkeksdose has quit [Remote host closed the connection]
Ortuna has quit [Quit: Computer has gone to sleep.]
m8 has quit [Max SendQ exceeded]
noname001 has joined #ruby
Zeeraw has quit [Quit: Computer has gone to sleep.]
Zeeraw has joined #ruby
Giorgio has quit [Ping timeout: 256 seconds]
razi has quit [Quit: Leaving.]
m8 has joined #ruby
BizarreCake has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
b0oh has left #ruby [#ruby]
robustus has joined #ruby
Spooner has joined #ruby
m8 has quit [Ping timeout: 276 seconds]
mklappstuhl has joined #ruby
hamakn has quit [Remote host closed the connection]
eka has joined #ruby
m8 has joined #ruby
angusiguess has joined #ruby
Azulinho_ has quit [Ping timeout: 240 seconds]
_xvilka has joined #ruby
arr__ has quit [Quit: Lost terminal]
wmoxam has joined #ruby
moos3 has joined #ruby
mklappstuhl has quit [Ping timeout: 246 seconds]
<_xvilka>
hi! I'm installing gitlab dependencies using bundle, and have stupid ISA http proxy server, it works ok, except raphael-rails, which is using https://github.com/bla-bla/bla.git link
<_xvilka>
and it does return error
ioNull has quit [Ping timeout: 260 seconds]
<_xvilka>
is it possible download file from github, place it somewhere and point to this directory in GemFile?
malkomalko has quit [Remote host closed the connection]
johnrlive has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
afd___ has joined #ruby
Speed has joined #ruby
ioNull has joined #ruby
ttt has quit [Remote host closed the connection]
joshu has joined #ruby
sailias has joined #ruby
afd__ has quit [Ping timeout: 260 seconds]
talntid has quit [Read error: Connection reset by peer]
krz has quit [Ping timeout: 240 seconds]
akashj87 has quit [Ping timeout: 264 seconds]
DomKM has quit [Read error: Connection reset by peer]
talntid has joined #ruby
DomKM has joined #ruby
tommyvyo has joined #ruby
hogeo has quit [Ping timeout: 264 seconds]
ldnunes has joined #ruby
Killerkeksdose has joined #ruby
quazimodo has joined #ruby
jonahR has quit [Quit: jonahR]
kstephens has quit [Quit: PredictTheFuture]
wookiehangover has quit [Ping timeout: 264 seconds]
rmnuvg has quit [Ping timeout: 264 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
motto has joined #ruby
Guedes has quit [Ping timeout: 264 seconds]
cafk has quit [Ping timeout: 264 seconds]
kstephens has joined #ruby
m8 has quit [Read error: Connection reset by peer]
feedbackloop_ has quit [Read error: No buffer space available]
apeiros has joined #ruby
dfdf has joined #ruby
choobie has quit [Ping timeout: 264 seconds]
cafk has joined #ruby
wookiehangover has joined #ruby
feedbackloop_ has joined #ruby
rmnuvg has joined #ruby
tommyvyo has quit [Client Quit]
choobie has joined #ruby
choobie has joined #ruby
choobie has quit [Changing host]
<elaptics>
_xvilka: you'd have to clone the whole repository somewhere locally and then it is possible to point to the local file path
motto has quit [Max SendQ exceeded]
Guedes has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
<_xvilka>
elaptics: thx, will do
ghr has quit [Ping timeout: 245 seconds]
Bry8Star{T2 has joined #ruby
motto has joined #ruby
r0bgleeson has joined #ruby
sailias has quit [Quit: Leaving.]
Macaveli has joined #ruby
byprdct has joined #ruby
wmoxam has joined #ruby
dfdf has quit [Ping timeout: 258 seconds]
fwaokda has joined #ruby
apeiros has quit [Remote host closed the connection]
ioNull has quit [Ping timeout: 240 seconds]
<_xvilka>
elaptics: it is easy to do that inside Gemfile, but i should change Gemfile.lock, how i can do that?
mikecmpbll has joined #ruby
mljsimone|bnc is now known as mljsimone
<elaptics>
_xvilka: run: bundle install
wald0 has joined #ruby
<_xvilka>
elaptics: doesn't help
sayan has joined #ruby
ioNull has joined #ruby
<_xvilka>
elaptics: just print same msg "You are trying to install in deployment mode after changing your Gemfile. Run `bundle install' elsewhere and add the updated Gemfile.lock to version control."
sayan has quit [Read error: Connection reset by peer]
ioNull has quit [Max SendQ exceeded]
<wald0>
i recently discovered ruby and i still reading about, it is one of the most advanced / best programming languages ? I ask that because everything that i read about it good! except some articles on internet that says that is not (which i dont pay much attention)
ioNull has joined #ruby
<canton7>
wald0, different languages are good for different things
<wald0>
canton7: well, im specially interested in powerful (which doesnt means optimized)
<canton7>
what does it mean then, in your context? you can achieve a lot with little work, if that's what you mean
dr_bob has quit [Quit: Leaving.]
sayan has joined #ruby
<wald0>
i mean possibilites and quality of code, I have see that there's a lot nice things in the language itself and the big OO features, just like the C bindings (ffi) to any lib
<elaptics>
_xvilka: I don't understand that message about deployment mode? I presume that's something specific to gitlab?
<wald0>
(quality of code is good for powerful apps, if the coder dont understand it or is a pain to code the application will be poor)
wmoxam has quit [Ping timeout: 264 seconds]
srji has quit [Ping timeout: 248 seconds]
johnrlive has quit [Remote host closed the connection]
m8tt8 has joined #ruby
motto has quit [Read error: Connection reset by peer]
<_xvilka>
elaptics: is it safe just remove that Gemfile.lock?
<wald0>
and good structured code (not more like linear (line-to-line) coding)
cibs has quit [Ping timeout: 256 seconds]
Guest33987 has quit [Ping timeout: 248 seconds]
_ffio_ has quit [Quit: WeeChat 0.4.0]
srji has joined #ruby
ioNull has joined #ruby
<elaptics>
_xvilka: you shouldn't need to touch the .lock file. Where are you trying to install this? On your local dev machine?
<_xvilka>
elaptics: test production
<elaptics>
_xvilka: via capistrano or something?
hboon has joined #ruby
devoldmx3 has joined #ruby
<_xvilka>
elaptics: but i can't download directly from git (which is mentioned inside gemfile) because of poor proxy
<_xvilka>
elaptics: via bundle
<hboon>
Is there a way to get a reference to itself (the proc/lambda) from within a proc/lambda? e.g. proc { do_something_with(__magic_self__) }
pen has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 248 seconds]
pen has joined #ruby
<heftig>
hboon: nope, need to assign it to a var
<wald0>
canton7: in short im trying to move from bash (is very powerful using with the ton of existing commands for specific things) to move to be able to do more powerful apps, but ruby looks like a good alternative to C
<sheeny>
I know this is the ruby channel but It wont let me on rvm channel. Can anyone tell me why RVM keeps telling me that the ruby version isn't install when i cd around
<tcrayford>
Finished in 0.073026s, 1218.7440 runs/s, 2026.6754 assertions/s.
<tcrayford>
2:29 PM
<tcrayford>
and that's the end of the output
<tcrayford>
(ignore those timestamps, I copied and pasted from another irc channel)
BSaboia has joined #ruby
monkegjinni has joined #ruby
burlyscudd has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
monkegjinni has joined #ruby
jbinto has quit [Read error: Connection reset by peer]
chson has quit [Remote host closed the connection]
jbinto has joined #ruby
monkegji_ has quit [Ping timeout: 264 seconds]
jtharris has joined #ruby
kofno has joined #ruby
burlyscudd has quit [Client Quit]
jgarvey has joined #ruby
Michael__ has quit [Remote host closed the connection]
sailias1 has quit [Quit: Leaving.]
daniel_- has joined #ruby
jsaak has joined #ruby
Michael__ has joined #ruby
johnmilton has joined #ruby
sr78ger has joined #ruby
failshell has joined #ruby
adkron has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
mikecmpb_ has joined #ruby
Sherwyn has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
monkegjinni has joined #ruby
Lubinski has joined #ruby
Sherwyn has joined #ruby
tomzx_mac has joined #ruby
johnrlive has quit [Remote host closed the connection]
stillEPIK has joined #ruby
johnrlive has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
krislappy has joined #ruby
krislappy has joined #ruby
krislappy has quit [Changing host]
weeb1e has joined #ruby
bubbajoness has joined #ruby
kevinfagan has quit [Ping timeout: 256 seconds]
agjacome has joined #ruby
Michael__ has quit [Ping timeout: 241 seconds]
mikecmpbll has quit [Ping timeout: 246 seconds]
Dummies_freelanc has quit [Ping timeout: 246 seconds]
krisfremen has quit [Remote host closed the connection]
fermion has quit [Ping timeout: 246 seconds]
preller has quit [Ping timeout: 246 seconds]
bubbajones has quit [Ping timeout: 246 seconds]
EPIK has quit [Ping timeout: 246 seconds]
cespare has quit [Ping timeout: 246 seconds]
Guest33987 has quit [Ping timeout: 246 seconds]
cespare has joined #ruby
thebastl has quit [Remote host closed the connection]
weeb1e_ has quit [Read error: Connection reset by peer]
araujo has quit [Ping timeout: 246 seconds]
hekin has quit [Quit: hekin]
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
araujo has joined #ruby
Guest33987 has joined #ruby
moos3 has quit [Read error: Connection reset by peer]
kevinfagan has joined #ruby
fermion has joined #ruby
moos3 has joined #ruby
interactionjaxsn has joined #ruby
Takehiro has joined #ruby
Azulinho_ has joined #ruby
v0n has joined #ruby
Coolhand has joined #ruby
LennyLinux has quit [Remote host closed the connection]
thesheff17 has joined #ruby
sr78ger has quit [Quit: Qui]
machuga|away is now known as machuga
gasbakid__ has joined #ruby
Guest has joined #ruby
pothibo has quit [Quit: pothibo]
<Guest>
hi
sirecote_ is now known as sirecote
slainer68 has quit [Ping timeout: 276 seconds]
Guest has left #ruby [#ruby]
ananthakumaran has quit [Quit: Leaving.]
Proshot has quit [Quit: Leaving]
slainer68 has joined #ruby
daniel_- has quit [Ping timeout: 248 seconds]
cmarques has joined #ruby
gasbakid_ has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Write error: Connection reset by peer]
Coolhand has quit [Remote host closed the connection]
banister`shop has quit [Remote host closed the connection]
sleetdrop has joined #ruby
osvico has quit [Ping timeout: 276 seconds]
monkegjinni has joined #ruby
pencilcheck has joined #ruby
slainer6_ has joined #ruby
ixx has joined #ruby
pen has quit [Read error: Connection reset by peer]
wormwood_ has quit [Ping timeout: 246 seconds]
xybre has quit [Ping timeout: 246 seconds]
Guest86166 has quit [Ping timeout: 246 seconds]
ffranz has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
filipe_ has quit [Ping timeout: 256 seconds]
Debaser has quit [Ping timeout: 256 seconds]
Elfix has quit [Ping timeout: 256 seconds]
<wald0>
well, i wanted to know if ruby is just a "very powerful scripting language" or it is ok to do minimally powerful standard/common applications
codex has quit [Ping timeout: 246 seconds]
Elfix has joined #ruby
Coolhand has joined #ruby
burlyscudd has joined #ruby
yeltzooo has quit [Ping timeout: 246 seconds]
xybre has joined #ruby
xybre has quit [Changing host]
xybre has joined #ruby
tonini has joined #ruby
filipe_ has joined #ruby
ixx is now known as Guest26539
devoldmx has quit [Ping timeout: 248 seconds]
Debaser has joined #ruby
sleetdrop has quit [Client Quit]
wormwood_ has joined #ruby
<tobiasvl>
wald0: well, what do you want to make?
m8 has joined #ruby
yeltzooo has joined #ruby
devoldmx has joined #ruby
<tobiasvl>
ruby is powerful. it's also a scripting language, unlike C. it can make minimal applications, and also standard ones, and probably some powerful ones too.
Bry8Star{T2 has quit [Read error: Connection reset by peer]
mikewintermute has joined #ruby
Dummies_freelanc has joined #ruby
monkegji_ has joined #ruby
Bry8Star{T2 has joined #ruby
teclator_ has quit [Ping timeout: 240 seconds]
<Hanmac1>
wal0 you can extend your ruby with C(++) functions from other C(++) libraries
pinage404 has joined #ruby
ariedler has joined #ruby
DestinyAwaits has joined #ruby
ninjabot has joined #ruby
mocfive has joined #ruby
sayan has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
m8 has quit [Max SendQ exceeded]
m8 has joined #ruby
<nkr>
Guys
<nkr>
Is there a way to "extend" a included method on a module?
codex has joined #ruby
skattyadz has quit [Quit: skattyadz]
pyrac has quit [Quit: pyrac]
chrishunt has quit [Quit: ZzZzZz...]
mercwithamouth has joined #ruby
yshh has joined #ruby
chrishunt has joined #ruby
adkron has joined #ruby
yshh has quit [Remote host closed the connection]
m8 has quit [Max SendQ exceeded]
m8 has joined #ruby
yshh has joined #ruby
pitzips has joined #ruby
yshh_ has joined #ruby
wmoxam_ is now known as wmoxam
wmoxam has quit [Changing host]
wmoxam has joined #ruby
yshh has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
skattyadz has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
generalissimo has joined #ruby
skattyadz has quit [Client Quit]
Cyrus has quit [Quit: Cyrus.sleep()]
devoldmx3 has joined #ruby
kevinfagan has quit [Max SendQ exceeded]
Plumm3R has joined #ruby
<bnagy>
whee
Plumm3R has quit [Client Quit]
kevinfagan has joined #ruby
<wald0>
tobiasvl: common applications for users, so generic (not powerful, not basic ones, etc), actually im brainstorming how worth is to learn ruby instead of switch to C
thebastl has joined #ruby
<wald0>
Hanmac1: you mean ffi ?
devoldmx has quit [Read error: No route to host]
<bnagy>
wald0: don't learn C
ner0x has joined #ruby
devoldmx has joined #ruby
<bnagy>
nobody who is not writing drivers should be writing C. It is 2013.
sie has quit [Ping timeout: 260 seconds]
b0oh has joined #ruby
<wald0>
bnagy: i know a bit of C and there's an extremely nice framework of libs to use, fortunately they are also for ruby, so im thinking about which option to use
<Hanmac1>
wald0: ffi is one way to do it, the other one is to write an extension in C/C++ that connects the library with ruby through wrapping
jbinto has quit [Ping timeout: 248 seconds]
<wald0>
bnagy: that's not really like that, there's a ton of powerful apps in C in linux, most of them
LennyLinux has joined #ruby
akells` has joined #ruby
benweint has joined #ruby
<bnagy>
nah
<bnagy>
c++ maybe
kevinfagan has quit [Client Quit]
DaniG2k has quit [Quit: Leaving.]
<bnagy>
all the old commands are C but that was back when people knew how to code
<wald0>
bnagy: so you think that made apps in ruby is much better than in C ?
<bnagy>
I think they're a lot more secure
kevinfagan has joined #ruby
<canton7>
bnagy, or embedded engineers :P
devoldmx3 has quit [Ping timeout: 264 seconds]
kevinfagan has quit [Max SendQ exceeded]
pyrac has joined #ruby
ezotrank has joined #ruby
kevinfagan has joined #ruby
kevinfagan has quit [Max SendQ exceeded]
kevinfagan has joined #ruby
kevinfagan has quit [Max SendQ exceeded]
freerobby has joined #ruby
kristiandelay has joined #ruby
jlast has joined #ruby
<wald0>
bnagy: "when people know how to code", yeah but we are talking about to write code (so we are these ppl that knows how to code), we are not talking about the end-users
includex has quit [Quit: Leaving...]
kevinfagan has joined #ruby
forced_request has joined #ruby
<bnagy>
wald0: yeah no
Coolhand has quit [Remote host closed the connection]
<bnagy>
trouble is that people can become 'programmers' much more quickly now
wolcanus has joined #ruby
rhys has joined #ruby
pipework has joined #ruby
monkegjinni has quit [Ping timeout: 245 seconds]
<wald0>
bnagy: this is good or bad ? if ppl dont knows how memory works internally and cpu and bottlenecks of processing, the code/product will be less quality
<bnagy>
knowing how to code is more than 'it compiles'
<bnagy>
it is GOOD
F1skr has quit [Quit: WeeChat 0.4.1]
<bnagy>
the vast majority of "programmers" now should not be let anywhere near memory let alone the CPU
Coolhand has joined #ruby
<bnagy>
let the HLL make the pain go away
tw1sted has joined #ruby
Coolhand has quit [Remote host closed the connection]
teclator has joined #ruby
<bnagy>
the funny thing is, they're STILL finding bugs in shit like tac. I mean... been there for what 30 years?
ezotrank has quit [Ping timeout: 248 seconds]
<lupine>
at least 'true' works
Michael__ has joined #ruby
Fire-Dragon-DoL has joined #ruby
chson has joined #ruby
<wald0>
well, its needed C for much things too, like most of the applications that requires optimization (kernel/drivers, graphical system, big applications...), and also to write HLL languages like ruby (?)
<bnagy>
meh
mikepack has joined #ruby
_maes_ has joined #ruby
sayan has joined #ruby
<bnagy>
you just need to emit tight machine code
b0oh has quit [Quit: Leaving.]
<bnagy>
and not having GC helps for a lot of stuff
<bnagy>
but C is not magic
Coolhand has joined #ruby
Coolhand has quit [Remote host closed the connection]
<tobiasvl>
wald0: you specifically said you didn't need optimization though
b0oh has joined #ruby
_Renegade has joined #ruby
<wald0>
actually im thinking to learn ruby to use the efl-ffi bindings (the ones made by enlightenment), which is a kind of complete framework very powerful, i just wonder if will be easier to write something on ruby than in C, i assume that i should still need to free objects and stuff
<bnagy>
anyway as far as I am concerned, my ruby interpreter is java
Bleah has joined #ruby
wallerdev has quit [Quit: wallerdev]
<Fire-Dragon-DoL>
Uhm, guys I would like to call an instance method and all "overrides" that the instance method has from included modules, like class A#welcome module MB#welcome, module MA#welcome, how to do it? Better explained here on gist: https://gist.github.com/Fire-Dragon-DoL/5721865
<wald0>
tobiasvl: im just debating a bit with bnagy (which I agree with him in some aspects) which says that C is not worth to write any application with :)
<Fire-Dragon-DoL>
wald0: and I agree with you :P
Coolhand has joined #ruby
<wald0>
Fire-Dragon-DoL: which thing ?
<bnagy>
wald0: ruby has a great FFI
tw1sted has quit [Quit: tw1sted]
<Fire-Dragon-DoL>
wald0: I wrote a somewhat "big" project (university) in C and was a hell, expecially because they didn't teach us how to correctly organize and handle C code
phracker has joined #ruby
<Fire-Dragon-DoL>
wald0: C is not worth to write any application with
<bnagy>
and mostly it will GC for you, there are a few exceptions around managed pointers
DaniG2k has joined #ruby
tomzx_mac has quit [Ping timeout: 248 seconds]
<wald0>
Fire-Dragon-DoL: i dont think so, the efl-ffi bindings are made by the enlightenment (efl) project and they has a good amount of very nice applications, enlightenment (the desktop) itself is amazing
tw1sted has joined #ruby
<wald0>
and it is also used as the entire framework by Samsung for their next phones
phracker has quit [Max SendQ exceeded]
<bnagy>
and I am in awe of Samsung security, soooo....
phracker has joined #ruby
phracker has quit [Max SendQ exceeded]
garbados has left #ruby ["returns to the brocean"]
tagrudev has left #ruby ["lolst"]
<Fire-Dragon-DoL>
wald0: the application can be amazing, but when I think about a language, I think about writing the application with it. Plain C doesn't have function overloading, you know how much you'll miss it?
<Fire-Dragon-DoL>
I can do it with C++, or "clean C" (c with c++ features) but plain C is too much
supergiantrobot has joined #ruby
zigomir has quit [Quit: zigomir]
RORgasm has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
ananthakumaran has joined #ruby
<Mon_Ouie>
Fire-Dragon-DoL: (regarding your question) you need to call super in MB too, to call the welcome method from MA too
<Fire-Dragon-DoL>
Mon_Ouie: oh, thanks
<Fire-Dragon-DoL>
that's helpful
<Mon_Ouie>
The order actually matters (the last included module is the first in the ancestry chain). To avoid that you could use "super if defined? super"
<Fire-Dragon-DoL>
now I have to discover which method
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
<Fire-Dragon-DoL>
is "overriding" my module method
b0oh has left #ruby [#ruby]
dhruvasagar has joined #ruby
rhys has quit [Quit: Leaving]
sailias has joined #ruby
Uranio has joined #ruby
<Fire-Dragon-DoL>
(MB is not under my control so I have to find out what wrote it)
_JamieD_ has quit [Quit: _JamieD_]
wesside_ has joined #ruby
devoldmx3 has joined #ruby
Coolhand has quit [Remote host closed the connection]
Giorgio has quit [Ping timeout: 264 seconds]
nettoweb has quit [Quit: nettoweb]
LennyLinux has quit [Remote host closed the connection]
axl_ has quit [Ping timeout: 240 seconds]
Coolhand has joined #ruby
axl_ has joined #ruby
therealnoop has quit [Ping timeout: 246 seconds]
devoldmx has quit [Ping timeout: 248 seconds]
_maes_ has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
ezkl has quit [Ping timeout: 240 seconds]
rhys has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
newUser1234 has joined #ruby
slainer6_ has quit [Ping timeout: 245 seconds]
KarlHung1s is now known as KarlHungus
KarlHungus has quit [Changing host]
KarlHungus has joined #ruby
monkegji_ has joined #ruby
diegoviola has joined #ruby
Heskie has quit []
peta_ has quit [Quit: peta_]
pothibo has joined #ruby
<wald0>
Fire-Dragon-DoL: im just reading "what is a function overloading", in my experience, it is not this a bad practice? i mean, more bug-prone, more headache when trying to solve the bugs (dont let the function to be smart or change things, function should server only one purpose)
nomenkun_ has joined #ruby
nerdman has quit [Quit: leaving]
pcarrier_ has joined #ruby
<joshu>
hey guys
<joshu>
what's up apeiros and matti ;)
acrussell has joined #ruby
nomenkun has quit [Ping timeout: 260 seconds]
pcarrier_ has quit [Client Quit]
cofin has joined #ruby
<wald0>
on which language is written ruby ?
<hoelzro>
wald0: C
peta_ has joined #ruby
<apeiros>
java
<apeiros>
ruby
<apeiros>
javascript
<apeiros>
what other implementations do we have? is ironruby in C#?
peta_ has quit [Client Quit]
<apeiros>
joshu: not much
peta_ has joined #ruby
<apeiros>
joshu: your solution running?
<r0bgleeson>
python
crazymykl has quit [Ping timeout: 248 seconds]
Coolhand has quit [Ping timeout: 276 seconds]
anderson has joined #ruby
Astralum has joined #ruby
<bnagy>
apeiros: ironruby died
<apeiros>
oh?
<joshu>
apeiros yeah it's running and works fine, but it's not yet a gem and there a many things I don't quite understand in terms of refactoring it properly into a gem. Unit testing work but not as I would like. Many small things that are bugging me, but for the time being I have no choice but to leave the refactoring for when I have time. I'm starting my second ruby project now which I have to complete within 2 weeks and it's way more complex than
<joshu>
FFM ;)
<apeiros>
I knew that m$ ditched it, but didn't know that it died completely
crazymykl has joined #ruby
slash_nick has joined #ruby
slash_nick has joined #ruby
acrussell has left #ruby [#ruby]
mikewintermute has quit [Quit: mikewintermute]
Lubinski has quit [Read error: Connection reset by peer]
<interactionjaxsn>
bnagy: that's too bad
<interactionjaxsn>
i like my ironruby like i like my hookers; dead.
<bnagy>
apeiros: well I don't know what makes software die competely
<havenwood>
apeiros: Maglev and Topaz
<havenwood>
So Smalltalk and RPython.
<wald0>
why there's not much applications made in ruby ? (but websites instead)
<bnagy>
but it's not AFAIK looked at anymore or used by anyone
<havenwood>
Oh, Python already mentioned.
akells` has quit [Read error: Connection reset by peer]
mocfive has quit [Read error: No buffer space available]
palyer has joined #ruby
palyboy has quit [Read error: No buffer space available]
motto has joined #ruby
monkegji_ has quit [Ping timeout: 240 seconds]
m8 has quit [Read error: No buffer space available]
Davey has joined #ruby
b0oh has joined #ruby
pinage404 has quit [Read error: Connection reset by peer]
mocfive has joined #ruby
akells` has joined #ruby
<wald0>
bnagy: i just wonder, why you use a ruby interpreter in java? (instead of another one like C)
<havenwood>
Maglev is a neat implementation. Gemstone ftw.
<bnagy>
wald0: I gain a really good GC, total cross platform, and a bunch of really good profilers et
sethetter has joined #ruby
<Fire-Dragon-DoL>
wald0: nope, function overloading is really important
<bnagy>
wald0: plus it's actually faster than MRI for most stuff
<sethetter>
I'm bundling my projects deps with bundle package, but the system I'm deploying to doesn't have rubygems. How can I get around this and still make sure dependencies are present?
<wald0>
bnagy: what is GC btw ? i have you read it a few times but i dont know what means
sayan has quit [Read error: Connection reset by peer]
BSaboia has quit [Ping timeout: 248 seconds]
<bnagy>
garbage collector
<r0bgleeson>
wald0: GOOD COP
<Fire-Dragon-DoL>
wald0: think about this: strreplace(string s, char c) strreplace(string s, string s)
wallerdev has joined #ruby
<wald0>
Fire-Dragon-DoL: why ? (instead of name different fucntions for different purposes)
<Fire-Dragon-DoL>
wald0: two different functions, with a heavy difference, probably in implementation
<bnagy>
wald0: which bears thinking about, btw, re writing stuff in C
huoxito has joined #ruby
<wald0>
r0bgleeson: such thing doesn't exist
<bnagy>
the ruby interpreter on top of the JVM is faster than the one in C
michele3 has left #ruby ["WeeChat 0.4.0"]
<Fire-Dragon-DoL>
wald0: well, changing a character in c is just "loop over an array and change every instance of x with c"
<bnagy>
because hey, turns out a really good VM is hard
<Fire-Dragon-DoL>
wald0: replacing with a string, instead, involves a lot of mallocs here and there
<wald0>
havenwood: the benchmark of "ruby" (name) is the one in
apod has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
<bnagy>
I need to check out topaz tomorrow I guess :)
<wald0>
... is the one in C ? why is the slower one ?
_xvilka has left #ruby [#ruby]
sethetter has joined #ruby
<bnagy>
wald0: so Ruby is very dynamic, which means that you can't compile it, per se
<havenwood>
wald0: The ones with a JIT perform much better than those without on that benchmark.
allanm__ has quit [Ping timeout: 245 seconds]
peta_ has quit [Quit: peta_]
<bnagy>
you turn it into bytecode and then run it on a VM
allanm_ has joined #ruby
spider-mario has joined #ruby
<bnagy>
much like your C compiler does to create machine code that runs on a CPU
chson has quit [Remote host closed the connection]
<bnagy>
BUT it turns out that the MRI / KRI ( C ) VMs are not as good as the Java one
<bnagy>
which is forgivable given that Java had like 10 years head start
mikewintermute has joined #ruby
<havenwood>
bnagy: And millions of (wo)man-hours.
<apeiros>
and a couple of millions of research dollars spent on it
ereslibre has quit []
<ayonix>
can anyone help me with "`encode': U+00E4 from UTF-8 to ASCII-8BIT (Encoding::UndefinedConversionError)"? is there really no conversion from 'ä' in utf-8 to ascii?
devoldmx3 has quit [Read error: Connection reset by peer]
<bnagy>
matz ( I understand ) is now freaking on mruby which is a less dynamic version of ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
<wald0>
is there any suggested "nice" (big?) application made in ruby (not web app) that i can make a look ?
devoldmx has joined #ruby
<apeiros>
ayonix: yes, there is none
<Hanmac1>
BUT i prefer the MRI one because of the c-extensions
<bnagy>
which will allow them to do compilation, basically
ryan_turner_ is now known as ryan_turner
<ayonix>
hm..okay
<canton7>
ayonix, asciitable.com - that's your characters set
<apeiros>
though ascii is 7bit
<canton7>
*character
<havenwood>
One more commit and the JVM becomes SkyNet and kills us all. That said, JRuby is pretty awesome. Love that it can use Closure STM etc.
<bnagy>
so they will get 'close enough' speed to anything
<bnagy>
but less tweaky meta awesome
<bnagy>
this is why the python / lisp guys laugh at us sometimes
<bnagy>
until you need some metavoodoo
<ayonix>
canton7: i see, i thought the extended were included in the 8bit ascii..
allanm__ has joined #ruby
<apeiros>
ayonix: ascii does not define any characters beyond 7 bit
<bnagy>
ascii-8bit is just another name for 'raw'
<apeiros>
8bit ascii mostly means "ascii with bytes in the 8bit range in it"
allanm_ has quit [Ping timeout: 248 seconds]
<apeiros>
where the representation of those bytes is not defined
<bnagy>
although I am kind of surprised that does not work
kofno has joined #ruby
<apeiros>
which is why "ä".force_encoding('binary') # => "\xC3\xA4"
_Amaan has joined #ruby
bean has joined #ruby
<apeiros>
ruby has to resort to \xC3\xA4 because binary does not define a character for those two bytes.
<apeiros>
but a) it doesn't mean "C like speed for free" and b) it can't do everything
<ayonix>
i see, thanks for the clarification
<r0bgleeson>
rubymotion is ruby syntax with cocoa APIs :p
Speed has left #ruby ["WeeChat 0.4.1"]
<r0bgleeson>
still prefer it over ObjC
andikr has quit [Read error: Connection reset by peer]
<apeiros>
ayonix: somebody wrote up a nice little blog entry about the things every developer should know about encodings
aces1up has quit []
dmiller has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
<apeiros>
I'd google for "what every developer must know about encoding", I think that should yield that blog entry
<bnagy>
"always use utf-8, no srsly" ?
<wald0>
so is there not any good "known" app to "run here and see" written in ruby that i can try ?
<r0bgleeson>
runrubyrun also wrote a great book that covers encodings in 1.9
<apeiros>
bnagy: good default. not always feasible, though :(
<r0bgleeson>
sorry, runpaintrun
<bnagy>
apeiros: yeah tbh mostly I use ascii-8bit
<bnagy>
I have a lot of broken binary gunk in my day to dayy
<apeiros>
ew
<apeiros>
but well…
<bnagy>
meh it's a living
<apeiros>
rubys encoding support is still in a sorry state
Al____ has quit [Quit: Al____]
<apeiros>
i.e. you don't gain much from using the proper encoding
<apeiros>
no collation, no natural sorting, no transliteration, no…
mafolz has quit [Ping timeout: 256 seconds]
lukaszk has joined #ruby
aalmenar has quit [Write error: Connection reset by peer]
ereslibre has quit [Write error: Connection reset by peer]
ereslibre has joined #ruby
ereslibre has joined #ruby
mocfive has quit [Remote host closed the connection]
kernelpanik has quit [Quit: Leaving]
Guest85414__ has joined #ruby
jlast has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 248 seconds]
lukaszk has left #ruby [#ruby]
johnnyfuchs has joined #ruby
Inoperable_AWY is now known as inoperable
allaire has joined #ruby
rippa has joined #ruby
<wald0>
ppl told me that the focus interest of ruby is in web development, but i still not understand why nobody write apps in ruby if is "so good" as it seems
<bean>
wald0: there are lots of apps written in ruby.
tommyvyo has joined #ruby
<bnagy>
although you have to realise that the bulk of 'apps' now are stupid server side web shit apps
<sethetter>
wald0: Ara T Howard is an old school ruby legend basically. He wrote the image processing involved in sattelite images with ruby and it's been running unmanned for many years now.
aalmenar has joined #ruby
aalmenar has joined #ruby
jbinto has joined #ruby
jprovazn is now known as jprovazn_afk
Jackneill has joined #ruby
Jackneill has joined #ruby
choobie has quit [Ping timeout: 276 seconds]
GeissT has quit [Quit: MillBroChat AdIRC User]
garbados has joined #ruby
garbados has left #ruby ["returns to the brocean"]
<joshu>
guys I'm trying to get a sinatra app running on my own ubuntu server using puma, foreman and nginx.
<joshu>
I have this in my procfile
<sethetter>
I have a question: Is it difficult ( or even possible ) to deploy a sinatra app with ruby 1.8.7 on a system without rubygems?
<joshu>
web: bundle exec puma -e production -b unix:///var/run/docs.sock
<Hanmac1>
sethetter without rubygems you cant load sinatra currectly ;P
<havenwood>
wald0: Lockheed wrote hundreds of thousands of lines of Ruby to simulate fighter jet hardware/software (can't look at that code though). If you want to look at a big non-Rails app maybe take a look at Ronin or Metasploit.
generalissimo has quit [Remote host closed the connection]
<bnagy>
nononnonono
<bnagy>
don't look at metasploit
Lubinski has joined #ruby
<havenwood>
bnagy: It is terrible. Hehe. But BIG.
<joshu>
when I do havenwood really that's very cool ;)
Sherwyn has quit [Remote host closed the connection]
devoldmx has joined #ruby
<bnagy>
Ronin is...
inoperable is now known as Inoperable_AWY
<joshu>
don't know what the hell I was thinking havenwood when I put together that sentence ;)
<nettoweb>
so, sometimes it redirect two times… I need to check if theres a contact.type == 'site' otherwise, I redirect
arusso_znc has quit [Quit: Adios Amigos!]
mikepack has joined #ruby
generali_ has joined #ruby
Appineer has joined #ruby
johnnyfuchs1 has joined #ruby
l3thal- has joined #ruby
<Sou|cutter>
nettoweb: you don't want an each
arusso has joined #ruby
d2dchat has joined #ruby
<nettoweb>
but in my databae I have
mikepack has quit [Remote host closed the connection]
<nettoweb>
---
<nettoweb>
- !ruby/object:CIMM::ContactInfo
<nettoweb>
type: mobile
<nettoweb>
value: '0000'
<pipework>
havenwood: That's awesome. I want to play with mruby now. Is it hard to get started with?
<havenwood>
pipework: Nope, not too bad. Mostly just wrapping your head around its way of doing things.
<pipework>
havenwood: What about your compilation process?
BadDesign has joined #ruby
kofno has quit [Ping timeout: 248 seconds]
saarinen has joined #ruby
<pipework>
That's so cool!
<havenwood>
pipework: First you setup your mruby with the parts of the stdlib you want, using mgem. Then you can compile your Ruby to an Array of C byte-code, etc.
johnnyfuchs has quit [Ping timeout: 240 seconds]
MrZYX|off is now known as MrZYX
<pipework>
havenwood: Is there any good reading on this? I love man pages and even source code comments.
<havenwood>
pipework: I wrote a Ruby script to automate the process of wrapping the produced C byte-code in a little C to immediately initialize and then compile.
dmiller has quit [Remote host closed the connection]
<havenwood>
bubu: @uri isn't set to anything, so it is `nil` and when you call `nil.host` it blows up.
<nettoweb>
Sou|cutter: contact.type can be many things (phone,mobile,site,skype), but I want to get only the one with type = 'site'. your code works for thi case?
<havenwood>
bubu: You might want to use a wrapper around NetHTTP like HTTParty, RestClient, or Faraday. (Unless you're using NetHTTP just to learn.)
<havenwood>
Ruby's manpage is cheeky: "If you want a language for easy object-oriented programming, or you don't like the Perl ugliness, or you do like the concept of LISP, but don't like too many parentheses, Ruby might be your language of choice."
filipe_ has quit [Remote host closed the connection]
therealnoop has joined #ruby
m8 has quit [Read error: Connection reset by peer]
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
jlast has joined #ruby
Coolhand has joined #ruby
jbueza has quit [Read error: Connection reset by peer]
b0oh has joined #ruby
jbueza has joined #ruby
<avril14th>
Hello, I'm trying to have a module that allow a class' instance methods to be called with a keyword like c = Class.new c.keyword.some_method
tmorgan has joined #ruby
<avril14th>
any reference doc showing me how I could do that?
sie has quit [Read error: No buffer space available]
senayar has quit [Remote host closed the connection]
<apeiros>
c.class.some_method
mansi has quit [Read error: Connection reset by peer]
alex__c2022 has joined #ruby
nari_ has quit [Ping timeout: 245 seconds]
<apeiros>
wait… what?
bradhe has joined #ruby
mansi has joined #ruby
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
jeffreylevesque_ has joined #ruby
<apeiros>
avril14th: sorry, after reading your question again, I can't make any sense of it anymore
<avril14th>
ok :) one sec
Coolhand has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
wuest_ has quit [Quit: :q]
kaichanvong has quit [Ping timeout: 248 seconds]
rwz_ has quit [Ping timeout: 248 seconds]
davidboy_ has quit [Ping timeout: 245 seconds]
guilleiguaran_ has quit [Ping timeout: 245 seconds]
yeban has quit [Ping timeout: 276 seconds]
DestinyAwaits has quit [Quit: Leaving]
wuest has joined #ruby
karnowski has quit [Ping timeout: 256 seconds]
patricksroberts_ has quit [Ping timeout: 260 seconds]
ziyadb has quit [Ping timeout: 264 seconds]
LennyLinux has joined #ruby
NimeshNeema has quit [Ping timeout: 264 seconds]
niftylettuce has quit [Ping timeout: 264 seconds]
nyuszika7h has quit [Excess Flood]
Naeblis has quit [Ping timeout: 245 seconds]
henn1nk has quit [Ping timeout: 245 seconds]
threesome has quit [Max SendQ exceeded]
Guest85414__ has quit [Ping timeout: 240 seconds]
allaire has quit [Quit: allaire]
dnyy_ has quit [Ping timeout: 248 seconds]
crazymykl has joined #ruby
enebo has quit [Quit: enebo]
monkegjinni has joined #ruby
phasma has quit [Ping timeout: 252 seconds]
keyvan has quit [Ping timeout: 252 seconds]
wedgeV has joined #ruby
wedgeV_ has quit [Read error: Connection reset by peer]
threesome has joined #ruby
nyuszika7h has joined #ruby
wookiehangover has quit [Ping timeout: 241 seconds]
randym_ has quit [Ping timeout: 241 seconds]
taqutor has quit [Ping timeout: 241 seconds]
xargoon has quit [Ping timeout: 241 seconds]
m4dnificent has joined #ruby
chuk has quit [Ping timeout: 252 seconds]
caveat- has quit [Ping timeout: 245 seconds]
xargoon has joined #ruby
l3thal- has quit [Ping timeout: 252 seconds]
wookiehangover has joined #ruby
error404_ has quit [Ping timeout: 246 seconds]
apeiros has joined #ruby
madnificent has quit [Ping timeout: 252 seconds]
parus has quit [Ping timeout: 252 seconds]
kalleth_ has quit [Quit: No Ping reply in 180 seconds.]
swistak35 has quit [Ping timeout: 240 seconds]
nemesit|- has quit [Excess Flood]
bothra has quit [Ping timeout: 261 seconds]
iaj has joined #ruby
kyle___ has quit [Ping timeout: 261 seconds]
kyle____ has joined #ruby
kalleth has joined #ruby
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
chuk has joined #ruby
kapowaz has joined #ruby
nemesit|znc has joined #ruby
bothra has joined #ruby
weeb1e has joined #ruby
caveat- has joined #ruby
phasma has joined #ruby
<joshu>
I'm setting up a new ruby project. Some files in the project are not needed for the ruby app itself but for configuring an external service. Just curious but would these go in a config directory or where are these types of files usually placed in a ruby project?
dhruvasagar has quit [Ping timeout: 272 seconds]
swex_ has quit [Ping timeout: 272 seconds]
yeban has joined #ruby
swex has joined #ruby
sie has joined #ruby
sie has quit [Changing host]
sie has joined #ruby
randym_ has joined #ruby
whitedawg has joined #ruby
verto has joined #ruby
henn1nk has joined #ruby
sweet_kid has quit [Ping timeout: 246 seconds]
gyre007 has quit [Ping timeout: 248 seconds]
<havenwood>
joshu: Prolly under lib/ in a subfolder named for the external service.
Mon_Ouie has joined #ruby
chiel has quit [Ping timeout: 256 seconds]
<jacktrick>
Rails convention would have them in a vendor/ folder in the application's root directory.
chiel has joined #ruby
keyvan has joined #ruby
<jacktrick>
Or lib
<jacktrick>
^^
wedgeV_ has joined #ruby
wedgeV has quit [Read error: Connection reset by peer]
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby
<joshu>
ok so lib/externalservice/files*
guilleiguaran__ has joined #ruby
<joshu>
thank havenwood jacktrick
ccooke has quit [Quit: jabber]
ohcibi has quit [Read error: Connection reset by peer]
ziyadb has joined #ruby
gyre007 has joined #ruby
Senjai has quit [Ping timeout: 248 seconds]
<jacktrick>
np
nyuszika7h has quit [Remote host closed the connection]
<wald0>
it is much better to learn ruby 2.0 than 1.9.3 ?
* wald0
checking for books of ruby
<havenwood>
wald0: Think of Ruby 1.9.3 as a release candidate for 2.0.0.
<apeiros>
it makes little sense to start with 1.9 if you're learning ruby now
<apeiros>
go with 2.0 directly
<havenwood>
+1
<apeiros>
if you really ever need to write 1.9 compatible code, it won't be that difficult
<terrellt>
There's not much difference between the two.
swistak35 has joined #ruby
<wald0>
aparently there's only one (paying) book about ruby 2.0 (the axe one)
<jacktrick>
It's unlikely you'll need to at all unless tou
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
xardas has joined #ruby
KhalilC has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
kx has joined #ruby
johnrlive has joined #ruby
sailias has joined #ruby
JumpMast3r has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
sailias1 has quit [Quit: Leaving.]
nekschot has joined #ruby
brennanMKE has joined #ruby
pinpin404 has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
nomenkun has quit [Remote host closed the connection]
xardas has quit [Changing host]
xardas has joined #ruby
wolcanus has joined #ruby
dmiller has joined #ruby
dhruvasagar has joined #ruby
ivanoats_ has joined #ruby
<havenwood>
pipework: mruby has no thread or process built in, but you can enable via mgem or a fork. IIJ repo has a lot of the Posix stuff: https://github.com/iij/mruby#readme
timonv has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
<havenwood>
pipework: I don't know the plans for how the IIJ work will be merged in. Will be interesting to see.
ivanoats has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
timmow has quit [Ping timeout: 240 seconds]
ivanoats has joined #ruby
malkomalko has joined #ruby
dangerousdave has quit [Client Quit]
<havenwood>
pipework: Yeah, the one you linked appears to be the best mruby-thread. It is listed under mgem-list.
Spami has quit [Quit: This computer has gone to sleep]
ivanoats_ has quit [Ping timeout: 248 seconds]
sambao21 has joined #ruby
<momomomomo>
So, I'm looking for a replacement to Intellij IDEA - at least, I'll need an IDE that my workplace won't have to shell out $700 for (my personal version is much cheaper). Does anyone realllly prefer ST2 over a bigger ide environment? I've got it, and they've purchased it for me, but I'm also looking at netbeans / aptana. Any opinionated thoughts?
saarinen has quit [Quit: saarinen]
jdunck has quit [Ping timeout: 260 seconds]
<pipework>
havenwood: Oh nice. I was hoping it was, it seemed to have a nice api.
dmiller has quit [Read error: Connection reset by peer]
dmiller has joined #ruby
saarinen has joined #ruby
sailias has quit [Read error: Connection reset by peer]
sailias has joined #ruby
Uranio has joined #ruby
jdunck has joined #ruby
dmiller has quit [Read error: No route to host]
dmiller has joined #ruby
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
remkade has joined #ruby
burlyscudd has quit [Ping timeout: 260 seconds]
rdark has quit [Quit: leaving]
sguselnikov has joined #ruby
sguselnikov has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
atmosx has joined #ruby
tommyvyo has joined #ruby
arietis has joined #ruby
ybart has joined #ruby
<fryguy>
momomomomo: if you really must have an IDE, check out rubymine. Otherwise, most people in here just use a text editor, whether it's sublime, textmate, vim, emacs, or something else
ravster has joined #ruby
srji has quit [Quit: leaving]
<momomomomo>
fryguy: right on, Rubymine is an offshoot of IDEA, but maybe I'll try going back to a text editor for a while :)
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
elliottcable has joined #ruby
Michael__ has quit [Remote host closed the connection]
fcoury__ has quit [Read error: Operation timed out]
TheHodge has quit [Read error: Operation timed out]
Spaceghost|cloud has quit [Read error: Operation timed out]
Bish has quit [Read error: Operation timed out]
cool has quit [Read error: Operation timed out]
sonne has quit [Read error: Operation timed out]
lectrick has quit [Read error: Operation timed out]
ZadYree has quit [Read error: Operation timed out]
tw1sted has joined #ruby
newUser1234 has joined #ruby
setient has quit [Read error: Operation timed out]
setient has joined #ruby
Spaceghost|cloud has joined #ruby
TheHodge has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
sonne has joined #ruby
cool has joined #ruby
lectrick has joined #ruby
Michae___ has joined #ruby
Michae___ has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
harrymoreno has joined #ruby
ZadYree has joined #ruby
cj3kim has joined #ruby
Michae___ has joined #ruby
fcoury__ has joined #ruby
jprovazn_afk has quit [Quit: Odcházím]
Bish has joined #ruby
banjara has joined #ruby
daniel_- has quit [Ping timeout: 240 seconds]
<joshu>
anyone know to to get a simple nginx install on ubuntu to reverse proxy to a sinatra app? I keep getting the default nginx welcome page
madb055 has quit [Quit: Konversation terminated!]
Heskie has quit []
jonahR has joined #ruby
tjbiddle_ has joined #ruby
ExxKA has quit [Quit: Leaving]
Guedes has quit [Excess Flood]
DanKnox is now known as DanKnox_away
Guedes has joined #ruby
tjbiddle has quit [Ping timeout: 248 seconds]
tjbiddle_ is now known as tjbiddle
camilasan has quit [Ping timeout: 264 seconds]
kofno has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
jgarvey has quit [Ping timeout: 276 seconds]
axl_ has quit [Quit: axl_]
DonRichie has joined #ruby
postmodern has joined #ruby
slash_nick has quit [Ping timeout: 264 seconds]
jgarvey has joined #ruby
<atmosx>
joshu: I did under gentoo and freebsd
kristiandelay has joined #ruby
pencilcheck has quit [Remote host closed the connection]
wargasm has joined #ruby
<atmosx>
joshu: with unicorn/thin + nginx
sie has quit [Ping timeout: 264 seconds]
Maoko has joined #ruby
srji has joined #ruby
<joshu>
atmosx I don't really know what the hell I'm doing :( I've followed a few different tutorials, but I still get the nginx welcome page instead of my sinatra app
<momomomomo>
atmosx: so that when you tell him/her to do something, they know what resources they should look into when they want to make a change/customization
<atmosx>
k
kofno has joined #ruby
tommyvyo has quit [Quit:]
Heskie has joined #ruby
chrishough has joined #ruby
machuga is now known as machuga|away
johnrlive has quit [Remote host closed the connection]
razi has quit [Quit: Leaving.]
tonini has joined #ruby
<joshu>
atmosx sorry havenwood also sent me his config
x1337807x has joined #ruby
postmodern has quit [Quit: Leaving]
<atmosx>
joshu: no worreis
dmiller has quit [Remote host closed the connection]
<joshu>
this is what I have. standard ubuntu server install of nginx. Haven't changed /etc/nginx/nginx.conf at all.
rheilol has quit [Quit: leaving]
dhruvasagar has quit [Ping timeout: 248 seconds]
<havenwood>
joshu: If you edit /etc/nginx/sites-available/default with settings like atmosx's you should be good.
<joshu>
ok let me try
johnrlive has joined #ruby
<atmosx>
havenwood: he also needs to configure unicorn to run as a socket, involves also the file config.ru
BizarreCake has quit [Remote host closed the connection]
BadDesign has joined #ruby
<havenwood>
atmosx: Good point. I need to look into that. I usually just run it on a port and forward to that.
<atmosx>
although generally speaking, unicorn is safe enough
asteve has joined #ruby
<havenwood>
atmosx: So the reason it is best practice is security?
<asteve>
what's the official postgresql db connection gem for ruby?
zommi has joined #ruby
axl_ has joined #ruby
mocfive has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
interactionjaxsn has quit [Ping timeout: 276 seconds]
stkowski has joined #ruby
therealnoop has quit [Ping timeout: 248 seconds]
asgardBSD has joined #ruby
DrShoggoth has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 240 seconds]
Sherwyn has joined #ruby
asgardBSD has quit [Client Quit]
<joshu>
atmosx still no go. I've completely removed nginx and reinstalling now
asgardBSD has joined #ruby
sailias has joined #ruby
x1337807x has joined #ruby
nettoweb has joined #ruby
sethetter has left #ruby [#ruby]
<atmosx>
joshu: it's not that complicated.
<joshu>
Most things aren't but yet they are :p
<atmosx>
joshu: If you're not running a high traffic website though, you can just run unicorn.
kidoz has joined #ruby
<atmosx>
and secure it with a firewall
LennyLinux has quit [Remote host closed the connection]
<atmosx>
if you need additional security
<joshu>
this is all on a LAN for 5 users
<atmosx>
just use unicorn
<atmosx>
..
<nettoweb>
I'm working in a website writen with ruby 1.8.7. I know that it's bad, can someone suggest some resource to migrate my website to latest version of ruby (and rails)?
<atmosx>
don't waste too much time on config
dmiller has joined #ruby
<havenwood>
nettoweb: Rails 2?
<nettoweb>
havenwood: 2.3.2
<havenwood>
nettoweb: rails -v
<nettoweb>
;/
<joshu>
I've got my sinatra app running fine without nginx, but the problem is that users have to hit domain:5000. I want to remove the 5000 port and run on 80 but apparently nginx is required for this because I can't get foreman, puma, sinatra to run on port 80
Hanmac1 has joined #ruby
kofno has joined #ruby
<havenwood>
joshu: using apt-get install of Ruby?
<nettoweb>
I want migrate but I need to know whats will happen (problems) at migrating
<joshu>
havenwood nope rbenv
<havenwood>
joshu: Ah, I don't know how to get rbenv to work with sudo. RVM or the apt-get ruby1.9.1-full would work with sudo. Maybe an rbenv user knows if rbenv is possible with sudo?
<joshu>
havenwood this *should* be simple but it's a fucking PITA
jbpros has joined #ruby
<atmosx>
nettoweb: just copy the code in another directory. install ruby-2.0 with rvm/rben and see what happens.
<atmosx>
nettoweb: I don't think anyone can tell you on the fly what will happen or dig through your code to find inconsistenceis without being paid
<nettoweb>
atmosx: yeah
<nettoweb>
I agree with you
<havenwood>
nettoweb: On the Rails site there are migration guides from 2 to 3 to 4.
<havenwood>
nettoweb: 3 to 4 isn't bad.
monkegjinni has joined #ruby
m8 has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
<havenwood>
nettoweb: If you have tests, upgrade Rails via instructions and run tests, then upgrade Ruby with RVM, ruby-install or ruby-build and run tests again.
slash_nick has joined #ruby
slash_nick has joined #ruby
dmiller has quit [Ping timeout: 240 seconds]
kristiandelay has quit [Remote host closed the connection]
chrisja has quit [Quit: leaving]
<nettoweb>
ok, whats more complicated, ruby or rails? in migration
asgardBSD has quit [Remote host closed the connection]
m8 has joined #ruby
burlyscudd has quit [Quit: Leaving.]
asgardBSD has joined #ruby
<apeiros>
ruby 1.8 to 1.9 took about 1/10 of the time of migrating rails 2.3 to 3.2
sethetter has joined #ruby
machuga|away is now known as machuga
<sethetter>
I want to install rvm, but I'm on a really old machine and it has an incompatible version of bash.
<apeiros>
a good piece of the time was spent with cleaning up old junk, though
jdunck has quit [Quit: Computer has gone to sleep.]
<sethetter>
Is it possible to install without that bash script downloaded from rvm.io?
fermion has joined #ruby
<havenwood>
sethetter: Maybe look at chruby and ruby-install.
alvaro_o has joined #ruby
<havenwood>
sethetter: What version of bash do you have?
<asteve>
I'm attempting to upgrade a project from 1.8.7 to 1.9.3 and there is a gem that is failing to install called linecache; I'm not requiring the gem directly, is there a way to see which gem required the install of linecache?
xardas has quit [Read error: Connection reset by peer]
monkegji_ has quit [Ping timeout: 248 seconds]
<sethetter>
havenwood: 2.05a
<nettoweb>
so upgrade ruby is a lot easier, right?
takezawa has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros>
asteve: using bundler?
<asteve>
yes
takezawa has joined #ruby
<apeiros>
read the Gemfile.lock then
<asteve>
ah
kofno has quit [Remote host closed the connection]
<sethetter>
My main problem is getting all the ruby dependencies I need easy to recreate and deploy on new systems when needed. I installed ruby 1.8.7 from source but I also need gems and bundler, hence why I wanted to use rvm.
elaptics is now known as elaptics`away
<havenwood>
asteve: Fun to look at: bundle viz
ffio_ has joined #ruby
<havenwood>
asteve: Can be helpful to visualize dependencies. Just look at what points at what.
ffio has quit [Ping timeout: 240 seconds]
<asteve>
thanks
RORgasm has quit [Read error: Connection reset by peer]
<asteve>
what's the proper way to require a file in 1.9.3?
<havenwood>
asteve: require
<havenwood>
asteve: or require_relative
<asteve>
I see require File.join(File.dirname(__FILE__), 'path', 'to_file')
<asteve>
require_relative said that it cannot infer path
MrZYX has quit [Remote host closed the connection]
<havenwood>
asteve: from irb or pry?
<asteve>
irb
<havenwood>
asteve: yeah, __dir__ and require_relative etc don't work from the REPL
<havenwood>
asteve: If you want it to work in the REPL you can add the directory the file is in to the $LOAD_PATH or do as you wrote above with the verbose require.
<asteve>
ah, so is "require File.join(File.dirname(__FILE__), 'path')" the better choice?
Sherwyn has quit [Remote host closed the connection]
<asteve>
if I add the directory to $LOAD_PATH do I still have a relative require or will it be a require for the end file?
<havenwood>
asteve: I'd usually prefer just adding it to the $: and using require with the normal file name.
<asteve>
i.e. require 'path/to/file' or require 'file'
<havenwood>
asteve: just: require 'file'
mklappstuhl has joined #ruby
<asteve>
got it, thanks
nemesit|znc has joined #ruby
JZTech101 has joined #ruby
JZTech101 has quit [Max SendQ exceeded]
<havenwood>
asteve: $:.unshift blah blah blah - though half the time I just $: << blah because I want to know if i'm trampling and fail.
enebo has joined #ruby
ohcibi has joined #ruby
<apeiros>
$LOAD_PATH >> $:
ngoldman has quit [Remote host closed the connection]
<joshu>
havenwood atmosx finally got it working! magic :D thanks so much to both of you!
ananthakumaran has quit [Quit: Leaving.]
dmiller has joined #ruby
<atmosx>
joshu: no worries, enjoy.
zeade has quit [Quit: Leaving.]
BSaboia has quit [Ping timeout: 248 seconds]
blaxter has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
Spami has joined #ruby
rwz__ has joined #ruby
niceguyjames has joined #ruby
karnowski has joined #ruby
kaichanvong has joined #ruby
Mon_Ouie has quit [Ping timeout: 276 seconds]
moeSeth has joined #ruby
davidboy has joined #ruby
<Hanmac1>
playing with the load path and then wondering why the app has security holes ...
Guest85414__ has joined #ruby
patricksroberts_ has joined #ruby
khushildep has quit [Quit: khushildep]
niftylettuce has joined #ruby
taqutor has joined #ruby
jfelchner has quit [Ping timeout: 245 seconds]
bionhart has quit [Remote host closed the connection]
<atmosx>
I have items in the database, and DRb clients. let's say I have 5 clients. What's the best way to manage data that is send to each client for? Each client takes the data peforms actions on it and returns results
Mon_Ouie has joined #ruby
zmike has quit [Quit: Выходжу]
sailias1 has joined #ruby
brennanM_ has joined #ruby
<atmosx>
I'm thinking of adding a new field to the database which will have a status like "sent" "ok" if sent is not updated through let's say 1 hour is return to nil state if the data is returned successuflly goes to "ok/done" status
_Renegade has quit [Quit: _Renegade]
sailias has quit [Ping timeout: 240 seconds]
rezzack has joined #ruby
DanKnox_away is now known as DanKnox
icole has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
Spami has quit [Ping timeout: 260 seconds]
brennanMKE has quit [Ping timeout: 240 seconds]
NimeshNeema has joined #ruby
Davey has quit [Ping timeout: 248 seconds]
carloslopes has quit [Remote host closed the connection]
ariedler has quit [Remote host closed the connection]
bionhart has joined #ruby
jbinto has joined #ruby
pyrac has joined #ruby
MrZYX|off has joined #ruby
Xeago has quit [Ping timeout: 248 seconds]
zmike123 has joined #ruby
MrZYX|off is now known as MrZYX
<aedorn>
Sounds like a good place to put a state machine. So yes, extra field to track state.
Xeago has joined #ruby
wald0 has quit [Quit: leaving]
Davey has joined #ruby
<havenwood>
Hanmac1: My little sis is a graphics artist, trying to get here to do some textures for OpenRubyRMK. Found a png sprite of a row of existing textures. What should she add? Anywhere I can tell her to look for what needs to be drawn?
<Hanmac1>
some day later i will bundle some resources and make RTPs ... but we are not that far yet
<digitalcake>
trying to do conway's game of life using a matrix only, wanted to know if there is an quick way to get the surrounding cells of an indexwith a method in matrix?
jonathanwallace has quit [Ping timeout: 264 seconds]
Takehiro has quit [Remote host closed the connection]
DanKnox is now known as DanKnox_away
poga has quit [Remote host closed the connection]
whowantstolivef1 has joined #ruby
BSaboia has joined #ruby
Takehiro has joined #ruby
<sethetter>
havenwood: No I can't, I'm stuck with ruby 1.8.7, that's the highest I was able to go.
<apeiros>
purpleidea: use something else than inject. also, I assume in `["foo"].include?(key)`, the ["foo"] is a bigger array? if so, then you're using an inefficient construct.
<purpleidea>
apeiros: you're right... i'm writing this for puppet, so it helps that it's a oneliner
srji has joined #ruby
<apeiros>
purpleidea: IMO that's a stupid notion. sorry. it never helps to be a one-liner. it helps to be readable, understandable and maintainable.
MSG has joined #ruby
<purpleidea>
apeiros: i don't disagree, but it's a lot easier to include this way. if it's multiline, it has to be a separate template. it's something puppet will address eventually.
MSG is now known as codesoda
atno has joined #ruby
<apeiros>
puppet can't deal with multiple lines of code? wow…
<apeiros>
sounds horrible
tonini has joined #ruby
<purpleidea>
apeiros: if you're writing ruby, you're either adding it in a template, or a function, or a fact, which are separate files... if you want it *right there* next to your puppet code, you can use an inline_template which is easy for one line ideally.
Kar- has quit [Remote host closed the connection]
<purpleidea>
apeiros: it's a bit horrible
burlyscudd has joined #ruby
<purpleidea>
apeiros: any chance you can recommend the right replacement to my statement?
<apeiros>
make it a function then
benweint has quit [Quit: Computer has gone to sleep.]
<apeiros>
so it has a proper name and proper code
jeffreylevesque_ has quit [Quit: ChatZilla 0.9.90 [Firefox 20.0.1/20130409194949]]
gildo has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 256 seconds]
LennyLinux has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Banistergalaxy has joined #ruby
brennanM_ has quit [Remote host closed the connection]
chrishough has quit [Ping timeout: 260 seconds]
kirun has joined #ruby
workmad3 has joined #ruby
mocfive_ has joined #ruby
mocfive has quit [Read error: Connection reset by peer]
ivanoats has quit [Remote host closed the connection]
tockitj has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
chrishough has joined #ruby
DrShoggoth has joined #ruby
<sethetter>
Is there a flag I can pass when installing ruby from source to include openssl? Currently my install doesn't have it, and rvm isn't an option.
<havenwood>
sethetter: Which distro? Does it have a package manager? >.>
xardas has joined #ruby
apod has quit [Quit: apod]
vlad_starkov has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
xardas has quit [Changing host]
xardas has joined #ruby
<sethetter>
Not a reliable one.
DanKnox_away is now known as DanKnox
<sethetter>
I'm talking way too old here.
vlad_starkov has joined #ruby
hoaxtroll has joined #ruby
<hoaxtroll>
AUP
<sethetter>
That's why I need source for everything, but I can't really get around that with some of my ruby dependencies so I need a good gems install at the very least.
<hoaxtroll>
AUP
Takehiro has joined #ruby
<hoaxtroll>
need sum help m8s
carloslopes has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
<havenwood>
sethetter: How about use JRuby, then you only have to install Java 1.7 - no other deps.
hoaxtroll has quit [Disconnected by services]
atno has quit [Quit: Leaving]
Takehiro has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
tommyvyo has joined #ruby
burlyscudd has joined #ruby
sepp2k1 has joined #ruby
<sethetter>
havenwood: Hmm, what about gems?
vlad_sta_ has joined #ruby
<nettoweb>
whats better? migrate to 1.9 ou 2.0? 2.0 is stabel?
nomenkun has joined #ruby
<havenwood>
nettoweb: 2.0 is stable.
<havenwood>
sethetter: RubyGems comes with JRuby. If you need to package the gems you can.
<nettoweb>
so Is it reliable?
<havenwood>
nettoweb: Yes.
<nettoweb>
havenwood: thanks
sepp2k has quit [Ping timeout: 248 seconds]
wolcanus has quit [Remote host closed the connection]
<havenwood>
sethetter: Or Maglev's only dep is Gemstone, but it isn't as battle tested as JRuby yet.
<sethetter>
havenwood: NO JAVA >_<
<nettoweb>
the canpatibility with other gems is ok?
jdunck has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
cj3kim has quit [Remote host closed the connection]
<atmosx>
To put this error in a begin/rescue 404 Not Found (OpenURI::HTTPError)
<havenwood>
nettoweb: Yes. Maintained gems with C-ext are mostly updated. Those that aren't say so.
<atmosx>
I do rescue OpenURI::HTTPError
<atmosx>
?
Spami has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Ping timeout: 248 seconds]
<atmosx>
yeah nice
Spami has joined #ruby
Spami has joined #ruby
burlyscudd has quit [Ping timeout: 264 seconds]
benweint has joined #ruby
teddyp1cker has joined #ruby
<havenwood>
sethetter: So Maglev then, maybe? Un-tar it, install Gemstone, make a symlink, g2g.
Spami has quit [Quit: This computer has gone to sleep]
srji has joined #ruby
razi has joined #ruby
Eaven has quit [Read error: Connection reset by peer]
<sethetter>
havenwood: Should I use ruby-install for this?
<apeiros>
nettoweb: that's yaml serialization
fuleo has quit [Ping timeout: 277 seconds]
<apeiros>
so the technique is called 'serialization'
<nettoweb>
apeiros: thank you
<apeiros>
and the serializer used in your case is yaml
razi has quit [Client Quit]
<nettoweb>
is it recommended? in my case I'm storing contact info (phone, mobile, linkedin, twitter, skype)
cj3kim has joined #ruby
Eaven has joined #ruby
<havenwood>
sethetter: Maglev install isn't supported by ruby-install until v2.0, which isn't out quite yet. You'd have to clone from Github repo and make install for Maglev support.
timkohrumel has quit [Ping timeout: 276 seconds]
<havenwood>
sethetter: Clone ruby-install master from Github**
ctp has quit [Quit: Leaving...]
<nettoweb>
apeiros:
jkline has joined #ruby
<sethetter>
havenwood: Ah ok, I'm trying to install from gemstone source now first. I'm not sure if this machine even has git installed :(
<havenwood>
sethetter: So: git clone git://github.com/postmodern/ruby-install.git && cd ruby-install && sudo make install; ruby-install maglev
<apeiros>
nettoweb: it somewhat defeats the purpose of using and RDBMS
Jackneill has quit [Ping timeout: 240 seconds]
Michae___ has quit [Remote host closed the connection]
jamescarr has joined #ruby
Michael__ has joined #ruby
<jamescarr>
whats's a quick and dirty way to install a gem if it is not present?
<jamescarr>
bundler specificly ;)
<havenwood>
jamescarr: gem install bundler
mocfive has quit [Remote host closed the connection]
rfxhhq has quit [Remote host closed the connection]
<jamescarr>
thx
bricker has quit [Quit: leaving]
evenix_ has joined #ruby
bricker has joined #ruby
BSaboia has quit [Ping timeout: 248 seconds]
nezumi has joined #ruby
evenix_ has quit [Read error: Connection reset by peer]
BadDesign has quit [Read error: Connection reset by peer]
evenix has quit [Read error: Connection reset by peer]
teddyp1cker has quit [Remote host closed the connection]
evenix has joined #ruby
<apeiros>
lol?
coreinfo99 has quit [Ping timeout: 264 seconds]
Michael__ has quit [Ping timeout: 240 seconds]
<joshu>
apeiros have you done any backend dev for iOS apps?
l3thal- has quit [Quit: leaving]
<apeiros>
no
sambao21 has quit [Quit: Computer has gone to sleep.]
<sethetter>
havenwood: I got "This script only works on a 64-bit Linux, Mac OS X, or Solaris-x86 machine" :(
l3thal- has joined #ruby
<joshu>
apeiros have you used sinatra and/ or grape?
icole has joined #ruby
<apeiros>
I've only toyed with sinatra, never used grape
yekta has quit [Quit: yekta]
<havenwood>
sethetter: >.>
<apeiros>
ah well, I guess I also have modified an existing sinatra app to do my bidding
axl__ has joined #ruby
<havenwood>
joshu: I just did an API for iOS in Sinatra. Works well. :) Never used Grape.
jds_ has quit [Remote host closed the connection]
<joshu>
havenwood do you mind if I pick your brains a bit on this topic?
<havenwood>
joshu: sure
axl_ has quit [Ping timeout: 240 seconds]
axl__ is now known as axl_
x1337807x has joined #ruby
sailias1 has quit [Ping timeout: 264 seconds]
<joshu>
ok so I need to build both the backend and iOS app. The backend will not have a web interface, so the only interaction with it is via the iOS app.
<joshu>
How did you deal with authentication? I've looked at OAuth, basic http auth, HMAC auth
<joshu>
Btw I should say that this backend and iOS app are for internal use by 5 people
<joshu>
I'll host the backend on Heroku
fdelacruz has quit [Quit: EPIC5-1.1.5[1683] - amnesiac : if you know how to use it, it is outdated]
ehaliewicz has joined #ruby
<havenwood>
joshu: I rolled my own auth from a few methods plucked from Devise.
krislappy is now known as krisfremen
Michael__ has joined #ruby
<havenwood>
joshu: But then a Rails app got plugged into the DB, and now Rails Devise handles creating auth (with email etc) and the API just knows how to validate.
<joshu>
havenwood ok so Rails is involved as well.
<havenwood>
joshu: In my case, yeah.
sailias has joined #ruby
zommi has quit [Remote host closed the connection]
Takehiro has joined #ruby
malkomalko has quit [Remote host closed the connection]
<havenwood>
joshu: But Rails isn't needed, of course.
<nettoweb>
I tried to instal 2.0.0
<nettoweb>
There was an error while trying to resolve rubygems version for 'latest'.
<nettoweb>
Halting the installation.
<nettoweb>
my rubygem is 1.4.2
<nettoweb>
need I upgrade?
tvw has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
<joshu>
havenwood I'm wondering whether to use sinatra or grape for my project. I'm no expert on sinatra and never used grape, but from what I understand grape is built on sinatra a specific to developing an API. You have any suggestion?
<workmad3>
joshu: you could also consider Rails-API
airtonix has quit [Ping timeout: 256 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
haxrbyte_ has quit [Read error: Connection reset by peer]
<joshu>
workmad3 I know nothing about Rails
<workmad3>
joshu: well, you're considering two other frameworks that you have little or no experience in ;)
mansi has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
_Andres has quit [Ping timeout: 248 seconds]
mansi has joined #ruby
<havenwood>
joshu: Yeah, Grape has auth and stuff built in. Sinatra if you want to roll your own.
<workmad3>
joshu: and Rails-API is a stripped down version of rails tailored to providing APIs
estating56 has quit [Ping timeout: 264 seconds]
<havenwood>
joshu: Or what workmad3 said. :P
<joshu>
workmad3 yeah more or less. worked with sinatra for a couple of months
chrishough has quit [Quit: chrishough]
mansi has quit [Read error: Connection reset by peer]
c0rn has joined #ruby
mansi has joined #ruby
<workmad3>
authentication... oauth could be a good solution, or you could use a simple token authentication
amedeiros has quit [Ping timeout: 245 seconds]
jonathanwallace has quit [Ping timeout: 248 seconds]
zeade has joined #ruby
<workmad3>
that would provide a way to authenticate API requests, and then you'd build a way to create an account in your app and some mechanism to authenticate (either via oauth or with username/pw to get a token)
pipework has quit [Remote host closed the connection]
<atmosx>
Hanmac1: you're lazy to write correct but you use unit-test?
druonysus has quit [Client Quit]
emergion has joined #ruby
<atmosx>
Hanmac1: how is that possible
<atmosx>
my client/server app works fine.
snearch has quit [Quit: Verlassend]
<Hanmac1>
atmosx i mean sleepy ... its currently sleeping time at my place
<atmosx>
Hanmac1: aah
Lemtzas has quit [Read error: Connection reset by peer]
kirun_ has quit [Ping timeout: 248 seconds]
<atmosx>
Hanmac1: you're a professional programmer? I mean you get paid to write ruby?
fgro has joined #ruby
pyrac has quit [Quit: pyrac]
redgirl has quit [Quit: This computer has gone to sleep]
<Hanmac1>
not yet, i get paid for php code .. yeah i feel ashamed
Dummies_freelanc has joined #ruby
<digitalcake>
:'(
<aedorn>
I get paid for "making things work". Yay.
Spami_ has quit [Ping timeout: 256 seconds]
Lemtzas has joined #ruby
d2dchat has joined #ruby
ctp has quit [Quit: Leaving...]
<Hanmac1>
atmosx tomorrow i will show you my code where i get the stack error ... maybe you can solv that
<slash_nick>
aedorn: I get paid to make things... then I get paid again to make them work :p
jbpros has joined #ruby
<sethetter>
Hanmac1: I did too, I've recently convinced my boss to let me do ruby stuff, then I got stuck doing all that ruby stuff in ollllllllllllllldddddddddddd legacy systems that can't run rubygems, or ruby higher than 1.8.7 :(
Spami_ has joined #ruby
Michael__ has quit [Remote host closed the connection]
<aedorn>
slash_nick: Do you get paid a third time to support it when it breaks a year later? =p
<slash_nick>
sethetter: hell.
eka has joined #ruby
Michael__ has joined #ruby
<slash_nick>
aedorn: no, i get paid to answer someone else's questions about it then, mwahaha
cj3kim has quit [Remote host closed the connection]
<aedorn>
lol
jcromartie has joined #ruby
<atmosx>
Hanmac1: you traitor.
<Hanmac1>
sethetter: you should get angry because 1.8.7 will die this month
osvico has quit [Ping timeout: 276 seconds]
KillerFox has joined #ruby
<atmosx>
Hanmac1: If it's PHP code I wouldn't know where to start.
<sethetter>
Hanmac1: really?
<havenwood>
Game of Thrones style. R.I.P. 1.8.
khismetix has joined #ruby
<Hanmac1>
atmosx: no its my own free ruby code where i get the stack error
<atmosx>
I won't see the next episode of GoT I was all about Starks
<sethetter>
When you say die, you mean no more fixes, etc, right?
<aedorn>
There's hidden code in Ruby 1.8.x that deletes itself on a mystery day of this month.
<atmosx>
I won't even read the books
<atmosx>
that fucker
_Amaan has joined #ruby
<atmosx>
aedorn: that would so cool
<havenwood>
sethetter: 1.8.7 is End-of-Life after June 2013. Hasn't received patches in a year. No security patches after this month. Formally dead.
cj3kim has joined #ruby
<sethetter>
havenwood: :(
<slash_nick>
aedorn: it was supposed to happen on 12/21/2012 but ruby's really slow
thebastl has quit [Remote host closed the connection]
jamesaxl has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
<aedorn>
atmosx: It would be right up until Microsoft steals the idea and implements it into all service packs of Windows and forces the world to upgrade to Windows 8.
<havenwood>
aedorn: People are so gunna use XP post EoL and get burned for it.
<aedorn>
Then they'll somehow blame Ruby, and tell the world that it would be better in .NET
<havenwood>
Welcome to the giant XP botnet.
<Soeki>
hello, can someone please tell me if there is a way to check for all the methods related to an object via an irb command?
<havenwood>
Soeki: Install Pry with `gem install pry` then use pry instead of irb. Inside pry type `help` for a list of the pry commands.
<slash_nick>
Soeki: @obj.methods ?
<havenwood>
But yeah, #methods, #methods(false), etc, etc. Still use Pry. :P
tommyvyo has joined #ruby
tommyvyo has quit [Client Quit]
nomenkun_ has quit [Remote host closed the connection]
jwest has quit [Quit: WeeChat 0.4.0]
<Soeki>
thanks, I'm kinda newbie with ruby
devoldmx has quit [Read error: Connection reset by peer]
bhaarat has joined #ruby
<havenwood>
Soeki: Then you can `cd object_you_want_to_look_at; ls` to take a look at the objects methods in a nice format.
jwest has joined #ruby
<havenwood>
Soeki: (From inside Pry.)
<Soeki>
I just realized why you were suggesting pry
devoldmx has joined #ruby
<havenwood>
s/objects/object's
osvico has joined #ruby
<Soeki>
the amount of inherited methods is enormous o.0
tommyvyo has joined #ruby
<bhaarat>
This is completely unrelated to Ruby but I figured you guys would be able to give me good suggestions. What are some decent requirement management tools out there that aren't enterprise? Just basic needs like creating a project, creating a requirement with due date, assigning it to someone, and perhaps dividing them into sprints
ivanoats has joined #ruby
Meatant has joined #ruby
<jkline>
bhaarat: jira
jbinto has quit [Ping timeout: 248 seconds]
<bhaarat>
isn't that for bug tracking
<bhaarat>
bug/issue
ArchBeOS has quit [Read error: Connection reset by peer]
Davey has quit [Quit: Computer has gone to sleep.]
malkomalko has quit [Remote host closed the connection]
<bhaarat>
thanks!
devoldmx has joined #ruby
<aedorn>
You can even go shared task list style like Asana (asana.com)
jerius has quit [Ping timeout: 245 seconds]
RORgasm has quit [Read error: Connection reset by peer]
jbinto has joined #ruby
RORgasm has joined #ruby
teclator has quit [Ping timeout: 248 seconds]
<jkline>
bhaarat: jira is for bug and issue tracking, yes, but you can create different types of tickets including project tickets. It supports springs and agile boards too
robscomputer has quit [Read error: Connection reset by peer]
jbpros has quit [Quit: jbpros]
sailias has quit [Ping timeout: 248 seconds]
phipes has joined #ruby
<jkline>
you can define different workflows for user stories from bug reports, if you want
robscomputer has joined #ruby
<jkline>
but yeah, jira is not necessarily the easiest or fastest thing to get up and running. I don't have experience with those others though
pinpin404 has quit [Read error: Connection reset by peer]
emergion has quit [Ping timeout: 260 seconds]
<Soeki>
cute: someone from customer.rethemhosting.net [154.35.32.24] just tried to use a VMware server directory exploit on me :o good thing i'm not runny antyhing near related to that.
arya has quit [Ping timeout: 248 seconds]
<aedorn>
I went through a lot... ended up using something entirely different since I'm the only person on the "team" (yup, there's really "I" in "team" here!)
teclator has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bhaarat>
:)
srji_ has joined #ruby
<Soeki>
long time since I last joined an irc room xD I reallly need to setup a mask :/
<bhaarat>
we're around 5 people and I don't want to read a word doc more than 10 pages log for fucking requirements
<aedorn>
ooh, we have some of those. More like 30 pages, though. With 5 lines of information.
daniel_- has quit [Ping timeout: 276 seconds]
DomKM1 has joined #ruby
Davey has quit [Max SendQ exceeded]
jbueza has joined #ruby
jbueza has quit [Max SendQ exceeded]
DomKM has quit [Read error: Connection reset by peer]
Davey has joined #ruby
ner0x has quit [Quit: Leaving]
jbueza has joined #ruby
x1337807x has joined #ruby
mansi has quit [Read error: Connection reset by peer]
wwwq is now known as insel
mansi has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
vlad_starkov has joined #ruby
_Andres has joined #ruby
devoldmx3 has joined #ruby
jbinto has quit [Ping timeout: 260 seconds]
Neomex has joined #ruby
gyre007 has quit [Remote host closed the connection]
Neomex has quit [Client Quit]
mansi has quit [Read error: Connection reset by peer]
arya has joined #ruby
mansi has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
kristiandelay has quit [Remote host closed the connection]
brennanMKE has joined #ruby
kristiandelay has joined #ruby
<jkline>
brujoand: I am new to Ruby too. RSpec is pretty easy to get started with for testing. I used FakeFS to "mock" the file system. Later i'm going to try Cucumber and Aruba for more integration style command testing of command line.
wolcanus has quit [Remote host closed the connection]
srji_ has quit [Ping timeout: 248 seconds]
iamjarvo has joined #ruby
bubu has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
cj3kim has quit [Remote host closed the connection]
<iamjarvo>
what does open_args do in IO.read(:open_args)
kristiandelay has quit [Ping timeout: 264 seconds]
daniel_- has joined #ruby
kx has quit [Ping timeout: 248 seconds]
whowantstolivef1 has quit [Ping timeout: 240 seconds]
dash__ has quit [Quit: Time to beer :)]
ctp has joined #ruby
echevemaster has quit [Quit: Leaving]
bionhart has quit [Read error: Connection reset by peer]
xardas has quit [Read error: No buffer space available]
bionhart has joined #ruby
xardas has joined #ruby
kayloos has joined #ruby
xardas has quit [Changing host]
xardas has joined #ruby
ldnunes has quit [Quit: Leaving]
<terrellt>
jkline: I did not know that existed. That is super cool.