<offby1>
shevy: actually, I don't mind the strictness so much as I mind the misleading error. If it had simply failed with "NO SPACE BEFORE LEFT-PAREN, BITCH" I'd have shrugged and said "fine, sure, whatever".
<offby1>
ideally the error would be spoken in the voice of "Jesse Pinkman" :)
AndChat| has joined #ruby
<shevy>
it's basically becoming a new language
Sheehan has quit [Quit: Sheehan]
akem has quit [Read error: Connection reset by peer]
niku4i has quit [Remote host closed the connection]
<AndChat|>
Beware of shevy and his lies!
<shevy>
it's true!
<AndChat|>
Beware beware!
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
<shevy>
we have ... different warnings and errors, new foo: bla hash syntax, new -> operator... forced encoding... hmm not sure what else is different
<shevy>
and there is still some way to go before we are at 2.0
<offby1>
I encourage Matz to break backward-compatibility, if it leads to a better language, and if he can provide a reasonably easy way for developers to make old code conform
<Paradox>
few lines of eventmachine connecting to my bouncer
rudi_ has quit [Read error: Connection timed out]
Hanmac1 has joined #ruby
rudi_ has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
mnaser has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
ipoval has quit [Quit: ipoval]
RainbowDashh has joined #ruby
antonishen has joined #ruby
baroquebobcat has joined #ruby
havenn has joined #ruby
Nanuq has joined #ruby
wilmoore has joined #ruby
Pimentel-ES has joined #ruby
k_89 has quit [Ping timeout: 260 seconds]
baroquebobcat has quit [Client Quit]
andrewhl has joined #ruby
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
Bosma has joined #ruby
AndChat| has quit [Ping timeout: 265 seconds]
havenn has quit [Ping timeout: 245 seconds]
stephenjudkins has quit [Ping timeout: 250 seconds]
<RubyPanther>
offby1: mRuby is different in 2 primary ways, one is that it is an embeddable ruby that is just a collection of .h files, you can choose which parts you do or don't want. The other is that it doesn't have threads, the internationalization stuff, or the larger stdlib things
igaiga has quit [Remote host closed the connection]
<offby1>
RubyPanther: is it intended to ultimately replace ruby, or instead to evolve in parallel
<offby1>
?
<RubyPanther>
parallel
Pimentel-ES has quit [Quit: Pimentel-ES]
antonishen has quit []
prometheus has quit [Ping timeout: 250 seconds]
stephenjudkins has joined #ruby
<RubyPanther>
offby1: it is based on RiteVM which is a register-based virtual machine that Matz originally developed as the replacement for 1.8, but the YARV approach showed more promise for regular apps so that was adopted for Ruby 1.9/2.0
rudi_ has quit [Read error: Connection timed out]
<offby1>
you're beyond my pay grade now :)
<RubyPanther>
It is great because you can program normally in Ruby, but if you need to use C no problem, and actually you could also write RiteVM bytecode directly as a sort of OO ASM, since it is register based
Dreamer3 has quit [Quit: Computer has gone to sleep.]
macmartine_ has joined #ruby
macmartine has quit [Ping timeout: 245 seconds]
macmartine_ is now known as macmartine
atmosx has joined #ruby
noganex has quit [Ping timeout: 260 seconds]
frishi has quit [Quit: Leaving...]
noganex has joined #ruby
frishi has joined #ruby
freeayu has quit [Ping timeout: 244 seconds]
ramblex has quit [Quit: ramblex]
freeayu has joined #ruby
seanstickle has quit [Quit: Nihil sub sole novum]
banisterfiend` has quit [Ping timeout: 260 seconds]
amh345 has left #ruby [#ruby]
mikepack has joined #ruby
macmartine has quit [Quit: macmartine]
liluo has joined #ruby
hakunin has joined #ruby
alindeman has quit [Ping timeout: 240 seconds]
TheHunter_1039 has quit [Quit: TheHunter_1039]
alindeman has joined #ruby
gtuckerkellogg has quit [Ping timeout: 260 seconds]
blischalk has quit [Quit: blischalk]
S1kx has quit [Ping timeout: 245 seconds]
yankhates has joined #ruby
nari has quit [Ping timeout: 248 seconds]
frishi has quit [Quit: Leaving...]
wilmoore has joined #ruby
wilmoore has quit [Remote host closed the connection]
raja has joined #ruby
raja is now known as Guest63964
havenn has joined #ruby
sam1131011 has joined #ruby
ben_m has quit [Quit: Leaving]
tyman has joined #ruby
nari has joined #ruby
jamesaxl has quit [Read error: Operation timed out]
cj__ has joined #ruby
mockra has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
PatrickRobotham has joined #ruby
PatrickRobotham has left #ruby [#ruby]
wookiehangover has joined #ruby
kelseyhightower_ has joined #ruby
havenn has quit [Remote host closed the connection]
kelseyhightower_ has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
albemuth has joined #ruby
freeayu has quit [Ping timeout: 264 seconds]
ipoval has joined #ruby
Bosma has quit [Quit: leaving]
mnaser has quit [Remote host closed the connection]
freeayu has joined #ruby
jxf has joined #ruby
Ttech has quit [Quit: Your nick was overruled.]
mnaser has joined #ruby
mnaser has quit [Client Quit]
RainbowDashh has quit [Quit: SLEEP MODE. <REDACTED SUBORBITAL QUOTE HERE>]
jamesaxl has joined #ruby
banisterfiend has joined #ruby
jxf has quit [Ping timeout: 250 seconds]
yankhates has quit [Ping timeout: 250 seconds]
mockra has joined #ruby
xubuntu5 has joined #ruby
<xubuntu5>
does ruby support gtk2/3?
Beoran_ has quit [Ping timeout: 248 seconds]
mockra has quit [Remote host closed the connection]
Nanuq has quit [Quit: leaving]
tyman has quit [Read error: Connection reset by peer]
EXCHGR is now known as exchgr
<xubuntu5>
does ruby support gtk2/3?
circlicious has joined #ruby
Adran has joined #ruby
mockra has joined #ruby
mockra has quit [Remote host closed the connection]
mpereira has quit [Ping timeout: 246 seconds]
<sepp2k>
xubuntu5: Ruby supports C extensions. And there are ruby bindings for Gtk2. Not Gtk3 though as far as I am aware.
cj__ has quit [Quit: cj__]
<circlicious>
i install a ruby gem in a custom path, but its not loadable via require 'gem_name' , i need some help badly
<banisterfiend>
sepp2k: sup seppdogg, what's up, what's your go-to language these days
rippa has quit [Ping timeout: 265 seconds]
albemuth has quit [Quit: Computer has gone to sleep.]
<banisterfiend>
sepp2k: which language do you use in your regular programming?
Chryson has joined #ruby
Nanuq has joined #ruby
<sepp2k>
banisterfiend: Ruby at work, whatever I feel like at the moment for everything else.
vlad_starkov has quit [Remote host closed the connection]
<banisterfiend>
sepp2k: cool i'd just assumed ruby was a hobby language for u
Beoran_ has joined #ruby
<sepp2k>
It used to be.
mockra has joined #ruby
fantazo has joined #ruby
res0nat0r has joined #ruby
hunglin has quit [Quit: Leaving.]
sailias has quit [Ping timeout: 260 seconds]
kill-9_ has quit [Ping timeout: 246 seconds]
<xubuntu5>
thanks sepp2k
<sepp2k>
np
maletor has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
<xubuntu5>
sepp2k favorite language ruby?
yannis has quit [Read error: Operation timed out]
<sepp2k>
I don't know. Maybe. I think my favourite language just doesn't exist yet ;-)
<banisterfiend>
xubuntu5: sepp2k is a man of many mistresses, i'm sure he lovse them all equally
<xubuntu5>
hahahaha
exchgr has quit [Quit: exchgr]
<xubuntu5>
both of those answers are great
ryanf_ has joined #ruby
<banisterfiend>
sepp2k: what features do u wish ruby had
m0dmd has joined #ruby
<m0dmd>
anyone would happen to know why after I install haml or shotgun within MacOSX why they return command not found when run through terminal? Even after adding this path -> /usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems into my $PATH?
mjb2k has quit [Quit: Leaving]
nicolas_ has joined #ruby
jgrevich has quit [Read error: Connection reset by peer]
jgrevich has joined #ruby
tk___ has joined #ruby
ananthakumaran has joined #ruby
nicolas_ is now known as jellywheel
<sepp2k>
banisterfiend: That's hard to say. In general most of the features that are cool about other languages would be hard or impossible to add to Ruby without giving something else up. But as one example better namespace handling should be possible without any significant downsides.
sailias has joined #ruby
jellywheel has left #ruby [#ruby]
jellywheel has joined #ruby
pecor has joined #ruby
sailias has quit [Ping timeout: 260 seconds]
macmartine has joined #ruby
yugui_zzz is now known as yugui
baroquebobcat has joined #ruby
uc_ has quit [Remote host closed the connection]
baroquebobcat has quit [Client Quit]
iosctr has joined #ruby
uc has joined #ruby
grantbdev has joined #ruby
perryh is now known as perryh_away
td123 has quit [Quit: WeeChat 0.3.8]
manizzle has joined #ruby
pecor has quit [Remote host closed the connection]
res0nat0r has quit [Ping timeout: 260 seconds]
pecor has joined #ruby
oznek has quit [Quit: Saindo]
pecor has quit [Remote host closed the connection]
perryh_away is now known as perryh
manizzle has quit [Client Quit]
tyman has joined #ruby
res0nat0r has joined #ruby
RainbowDashh has joined #ruby
pecor has joined #ruby
mutandi has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
tewecske has joined #ruby
res0nat0r has quit [Client Quit]
ryanf_ has quit [Quit: broken pipes |||]
wookiehangover has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Quit: Leaving.]
pecor has quit [Remote host closed the connection]
xubuntu5 has quit [Ping timeout: 260 seconds]
wookiehangover_ has joined #ruby
wookiehangover_ is now known as wookiehangover
blownapart has joined #ruby
Synthead has joined #ruby
macmartine has quit [Quit: macmartine]
mikeycgto has quit [Remote host closed the connection]
Weems has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
baroquebobcat has joined #ruby
mikepack has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 245 seconds]
AlbireoX has quit [Read error: Connection reset by peer]
liluo has quit [Remote host closed the connection]
<richo>
This will sound ridiculous, but is there an accepted idiom for outputting the output of something (with \n for newlines) into an html page, that will format correctly without using active*?
<Paradox>
richo, you could use tilt or something
<Paradox>
but i dont really know of anything idiomatic
<Paradox>
that said
<Paradox>
im by no means an expert
<richo>
I can gsub("\n", "<br>") but that seems amazingly horrible
<richo>
I'll look into tilt
<Paradox>
tilt is just a template abstraction layer
<Paradox>
lets you use haml/markdown/erb/liquid/etc
<Paradox>
sinatra uses it
<richo>
Oh. I'm already using sinatra. my app is running some shell commands, and I just want to print the output in the browser
<Paradox>
oh just pass them as locals to your app
<Paradox>
ie in the controller haml :herp, locals: adfjasdf
<Paradox>
or something like htat
samfisher has joined #ruby
<regularfry>
richo: <pre><code>...</code></pre> is what's in my muscle memory for that job
<samfisher>
hi. is it advisable to learn ruby as the first language? i need to dev some win apps, linux system management scripts and why not, some webapps
<samfisher>
and don't want to learn C, perl and php
<Paradox>
samfisher, yup
<regularfry>
samfisher: depends on the win apps you want to build, I'm still not sure what the best gui library is there
<Paradox>
macs have Macruby
davidw has joined #ruby
<samfisher>
i don't really need gui. I need to copy files from win systems to a central server
<regularfry>
in that case, it'll be fine :-)
davidw is now known as Guest41099
Haydos has left #ruby [#ruby]
Shoobdidoo has joined #ruby
<richo>
regularfry: I found a css style that does what I'm after, seems like the best approach
igaiga has joined #ruby
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
<Hanmac>
richo imo dont use <br> !!! <br /> is better
<regularfry>
Hanmac: depends on the dotype
<regularfry>
doctype, even
nilg has joined #ruby
<Hanmac>
it may work but is very ugly ... i think the same guys open a <p> tag but dont close it
Shoobdidoo has quit [Quit: Verlassend]
niklasb has joined #ruby
<regularfry>
Again, whether that's actually wrong depends on the doctype
<regularfry>
HTML-wise, you're allowed not to close a <p>
<regularfry>
You're not in XHTML.
<regularfry>
If you don't know the doctype you're writing... well, you should :-)
rakm has quit [Quit: Computer has gone to sleep.]
<Hanmac>
yeah and <basefont> is allowed too :P (such a shit) ... i write my websites xhtml conform ... then it works in html too
* regularfry
prefers xhtml as well
<regularfry>
but I suspect knowing html5 is only going to get more important
tiripamwe_ has joined #ruby
tiripamwe has quit [Ping timeout: 245 seconds]
Criztian has joined #ruby
<Paradox>
technically, in html 5
<Paradox>
you dont need <html>, <head>, or <body>
tyman has quit [Ping timeout: 245 seconds]
<Hanmac>
ok you dont "need" it, but its better with
<Paradox>
yup
<Paradox>
maybe in 5 years i wont write em
<Paradox>
but you can sure as fuck bet my layout.haml is going to have %html and %head and %body
uc has quit [Ping timeout: 245 seconds]
uc has joined #ruby
<richo>
Hanmac: I avoided the problem
<richo>
white-space: pre-wrap;
<Hanmac>
CSS rocks :P
Banistergalaxy has quit [Ping timeout: 264 seconds]
dv_ has joined #ruby
tyman has joined #ruby
<samfisher>
Oh, forgot to ask something: can you compile ruby scripts into .exe?
ananthakumaran has quit [Quit: Leaving.]
<Hanmac>
samfisher look for ORCA
neku is now known as neku|away
<samfisher>
thanks
samfisher has quit [Quit: exit error code 434]
williamherry has joined #ruby
yugui_zzz is now known as yugui
Guest41099 has quit [Ping timeout: 260 seconds]
framling has quit [Read error: Connection reset by peer]
gtuckerkellogg has joined #ruby
Sheehan has joined #ruby
Banistergalaxy has joined #ruby
ChampS666 has quit [Ping timeout: 246 seconds]
charliesome has quit [Ping timeout: 250 seconds]
samuel02 has joined #ruby
<shevy>
what is <basefont>?
<Hanmac>
very outdated pre-HTML4 stuff ... it was depcated even in html4
yugui is now known as yugui_zzz
Kwpolska has quit [Ping timeout: 265 seconds]
qwerxy has joined #ruby
savage- has quit [Remote host closed the connection]
eurbach has joined #ruby
Sheehan has quit [Quit: Sheehan]
igotnolegs has quit [Quit: Computer has gone to sleep.]
jianxioy has joined #ruby
jianxioy has quit [Client Quit]
jianxioy has joined #ruby
ryanf has quit [Ping timeout: 260 seconds]
jellywheel has quit [Quit: jellywheel]
tyman has quit [Quit: tyman]
yiibu has joined #ruby
protomozoa has quit [Read error: Connection reset by peer]
yiibu is now known as protomozoa
uc has quit [Ping timeout: 240 seconds]
Synthead has quit [Ping timeout: 244 seconds]
uc has joined #ruby
vampirnata has joined #ruby
k_89 has quit [Quit: Leaving]
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
niku4i has joined #ruby
zomgbie has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
niku4i has quit [Ping timeout: 248 seconds]
pk1001100011 has joined #ruby
monkegjinni has joined #ruby
<shevy>
cool
<shevy>
:)
dr0p has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
thecreators has joined #ruby
henn1nk has joined #ruby
<henn1nk>
MyFile.prawn has the content pdf.text "foo" etc... How can i load the content inline? Prawn::Document.generate("foo.pdf") do |pdf| load MyPrawnFileContent end ?
maletor has quit [Quit: Computer has gone to sleep.]
manizzle has joined #ruby
maletor has joined #ruby
dr0p has quit [Remote host closed the connection]
Foxandxss has joined #ruby
ChampS666 has joined #ruby
zomgbie has joined #ruby
Banistergalaxy has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has quit [Ping timeout: 240 seconds]
neku|away is now known as neku
Drewch has quit [Ping timeout: 276 seconds]
<xbayrockx>
If i were to research and write an article on a field within information security - which topic would you find most interesting or beneficial to read?
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
<graspee>
the security of ruby, obviously
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby
<bnagy>
what kind of article?
<richo>
xbayrockx: generally speaking, the ones noone has thought of yet
<bnagy>
as in a formal paper or a blog post or a phrack article, or...
<richo>
But offhand, a new and interesting publication on how spectacularly quantum computing is going to screw asymettric key cryptography
<bnagy>
yeah don't do that
<bnagy>
a) it's not new b) it's not interesting c) it's not
tiripamwe_ has quit [Ping timeout: 245 seconds]
<richo>
I know. But what's out there makes for interesting reading
<richo>
realistically asking any group of people what to write about is totally moot
RainbowDashh has quit [Quit: SLEEP MODE. <REDACTED SUBORBITAL QUOTE HERE>]
<bnagy>
some of it, but I'm not sure that yet another lay opinion is going to add much
<bnagy>
especially asking and then wandering off
<xbayrockx>
blog post type
prometheus has quit [Ping timeout: 244 seconds]
<richo>
oh
<richo>
urgh
<richo>
If I can make one request, /please/ don't finish your blog post; decalre it a masterpiece and then submit it to HN
<bnagy>
circlicious: two people already gave you an answer, how many more do you need?
<circlicious>
bnagy: checked my comments ?
<bnagy>
Yep.
<circlicious>
also the answer by Amir does not work actually
<bnagy>
you're not asking for a solution, you're asking 'why doesn't this work'
<circlicious>
especially when the gem itself has dependencies that require other gems
<bnagy>
basically, don't install gems in weird places
AllanMacGregor has joined #ruby
<bnagy>
well if the dependencies are in the standard location that should just work
<circlicious>
depenencies are also in the non-standard location
<bnagy>
:)
<circlicious>
but it should work no ?
<circlicious>
i am adding the path to GEM_PATHs
<bnagy>
"Doctor, my arm hurts when I move it like this"
<richo>
circlicious: I answered the question, but by and large harassing people for help is very frowned upon
<circlicious>
i harrased ? :O
Kwpolska has joined #ruby
yugui_zzz is now known as yugui
<circlicious>
richo: thanks, i will use bundler and when everything works fine will mark that as correct answer :) but i did'nt harrass anyone :S
<sepp2k>
circlicious: You asked more than once. By IRC standards that's harassment. Technically we could sue you.
<circlicious>
my god, did'nt know that
<vampirnata>
Hello all
<vampirnata>
I could use some advice: I'm starting a new job next month where I will be requiring to do some network scripting. I'm very familiar with networking in general but never done any scripting. Is Ruby a good choice? Or should I rather go with something else?
<graspee>
won't they prescribe the scripting language they want you to use?
<vampirnata>
No, they said that it's my choice.
<bnagy>
how lowlevel do you want to get?
<vampirnata>
They don't have a "toolbox" yet written and I imagine that is what I will be starting to develop
<bnagy>
I mean it has all the basic primitives, but things like libdnet etc were pretty painful last time I tried
<vampirnata>
It's an ISP providing 100mbit pipes to companies and VPNs
<bnagy>
uh... and what are you scripting?
<bnagy>
like, I wouldn't want to put ruby in the middle of too many 100Mbit streams, for example
A124 has joined #ruby
<vampirnata>
Packet analysis mostly I imagine
<vampirnata>
Reports, etc
A124 has left #ruby [#ruby]
<banisterfiend>
vampirnata: you dont nkow any scripting languages already? you have to learn the langeuage you'll be using from scratch? :P are yo sure youer' the right guy for the job? hehe
<bnagy>
I'd look to wrap other stuff, and ruby is good for that
<vampirnata>
banisterfiend: the job is not for a scripter(programmer)
<vampirnata>
it's a sys admin 75%
<banisterfiend>
oh ok
<banisterfiend>
cool
<vampirnata>
but I want to be prepared :)
<vampirnata>
Trying to be proactive
<bnagy>
I've done stuff like munging wireshark xml dumps etc
<bnagy>
and as a general shell scripting language it's as goodf as anything I'd guess
<vampirnata>
bnagy: okay, sounds good. Since it's not very low level I can obviously switch to something more specific in the future. I just wanted to know if Ruby would be a good starting point.
<bnagy>
for quick and dirty stuff I would also consider python
<vampirnata>
I am really like the Ruby syntax. Very readable.
<Hanmac>
then you did not nee my ruby code :P
<vampirnata>
liking*
<bnagy>
we don't really have a scapy equivalent, afaik
<bnagy>
although it's kind of horrible (scapy)
<vampirnata>
Hanmac: do you mangle your ruby code? :)
<vampirnata>
Hanmac - Making Ruby more like Perl since 2001! ;p
yonggu_ has quit [Remote host closed the connection]
yonggu has joined #ruby
freeayu has joined #ruby
yonggu has left #ruby [#ruby]
<Hanmac>
in dont think my ruby code would work like this in perl :P
neku|away is now known as neku
protomozoa has quit [Quit: protomozoa]
Spooner has joined #ruby
abra has joined #ruby
qwerxy has quit [Quit: offski]
zomgbie has quit [Ping timeout: 255 seconds]
<shevy>
:)
akem has quit [Read error: Connection timed out]
bosphorus has quit [Remote host closed the connection]
JStoker has quit [Excess Flood]
ananthakumaran has quit [Ping timeout: 244 seconds]
<richo>
Ruby is concerningly like perl
<graspee>
yeah it's a programming language
<daed>
yeah. it has functions and stuff.
<richo>
actually, it doesn't
<richo>
ruby doesn't have first class functions
<daed>
...
<richo>
but that's purely semantic
akem has joined #ruby
<daed>
and this is where i back away from this discussion
<daed>
no good can come from this
<richo>
agreed
<richo>
the "like perl" remark was more about the number of magic variables and syntaxes though
JStoker has joined #ruby
<Spooner>
richo Yeah, the magic is horrible. I wish they'd made the English names of them standard at least :(
<graspee>
in what sense does ruby not have first class functions?
<richo>
in the sense that you can't fetch a method and bind it to a variable, you can only wrap it in a Proc and assign that
<graspee>
hmm
<richo>
I guess you could argue that the Proc is a first class callable in the purist sense of the word, but in real world terms, the language doesn't
<Hanmac>
richo? are you sure? i can get a method from Object class, and then bind it to an other object
<richo>
Hanmac: example code?
<Spooner>
Yes, you can use method(:frog), which gives you something that is callable just like a proc.
<richo>
The only syntax I'm aware of is Object#method which simply wraps that __send__() in a proc under the hood
<Spooner>
Oh right, but that is transparent (implementation detail) so I'm not sure that is 100% relevant.
<richo>
The argument relates more to the idioms of writing ruby code, rather than the ruby language itself. I'm also not suggesting it's necessarily a deficit
<richo>
in any case, the output of Object.method(:foo) isn't "the method foo", it's still a Proc which wraps Object#foo
<banisterfiend>
richo: not actually a proc, but proc-lie :P
<banisterfiend>
proc-like
<richo>
Procish
<richo>
yeah
<richo>
:)
<graspee>
i wouldn't say ruby "doesn't have first class functions" though
<graspee>
that would give people the impression there was no support for functional programming paradigms in ruby
RainbowDashh has joined #ruby
<banisterfiend>
RainbowDashh: are you a brony
<daed>
going to assume yes on that one
<Hanmac>
ruby is not functional ... it can only looks like that :D
Axsuul has quit [Ping timeout: 245 seconds]
<richo>
Even I'm not insane enough to get into the "FP in ruby" debate
<richo>
in any case, less talking about ruby more writing ruby. Danke guys
<Tasser>
graspee, depends... object-oriented is a subset of functional anyway, but the block iterators kinda remind you of functional
<banisterfiend>
richo: you're richoH ?
<richo>
banisterfiend: I am. or was.
<richo>
my GH username is actually richo now
<richo>
I presumed you were banister?
<banisterfiend>
richo: cool, seen you on a bunch of pry-related threads
<banisterfiend>
yeah
murgle has quit [Ping timeout: 255 seconds]
murgle has joined #ruby
<banisterfiend>
i have a 100 diff nicknames depending on what degree of anonymity i want to keep (channels are logged these days)
<richo>
I'm a bit the same
gtuckerkellogg has joined #ruby
<richo>
Thanks for pry by the way, I use it more and more these days
<banisterfiend>
richo: np
h4mz1d has joined #ruby
<banisterfiend>
#pry exists btw if u ever wanna stop by
<banisterfiend>
dead atm though
<richo>
ah awesome, saving it in my channel list now
bbuegler1 has joined #ruby
ben_m has joined #ruby
bbuegler1 has quit [Client Quit]
CheeToS has quit [Ping timeout: 272 seconds]
igaiga has quit [Remote host closed the connection]
cantonic has joined #ruby
bier has quit [Ping timeout: 248 seconds]
h4mz1d has quit [Ping timeout: 260 seconds]
tiripamwe has joined #ruby
yugui is now known as yugui_zzz
iocor has joined #ruby
bbuegler1 has joined #ruby
dr0p has joined #ruby
niku4i has joined #ruby
jonathanwallace has joined #ruby
dekroning has joined #ruby
fantazo has quit [Remote host closed the connection]
<richo>
undeclaredx: no, it's for pretty instance variable accessors
<undeclaredx>
inst_accessor?
<xximjasonxx>
I think I am seeing what you mean Tasser Richo, enums would be a good usage
<undeclaredx>
erm
umttumt has joined #ruby
<richo>
and it's friends attr_reader and attr_writer (I think, writer looks wrong)
<Tasser>
undeclaredx, nope, there's a rails extension that lets you do cattr_accessor
<undeclaredx>
hmm?
<Tasser>
richo, attr_reader is kinda equivalent to attr ;-)
<xximjasonxx>
is there a concept from another language that is similar to what symbols are for Tasser richo
<Tasser>
xximjasonxx, integers in C? *duck*
<richo>
xximjasonxx: C's pretty constants
<xximjasonxx>
inspiring :)
Morkel has joined #ruby
<xximjasonxx>
thats good information, thank you
<Tasser>
I'd call them magic numbers
cynosure has quit [Ping timeout: 252 seconds]
<richo>
pretty much. They are bound to their name in an interesting way in ruby that they aren't elsewhere
cynosure has joined #ruby
andreime has joined #ruby
<richo>
but for example if you use symbols to lookup the keys in a hash with 1 million members shit will be SLOOOOOW
cousine has quit [Remote host closed the connection]
<Tasser>
would you know smalltalk?
<Tasser>
richo, ruby doesn't scale, deal with it.
<xximjasonxx>
unforunately I do not
uris has joined #ruby
<xximjasonxx>
some of what I am seeing in Ruby reminds, just a bit, of JavaScript
<xximjasonxx>
*ducks*
<richo>
Tasser: I mean slow in comparison to the same hash with string or fixnum keys
<Tasser>
xximjasonxx, yeah, with a bit less fuckups and a great stdlib (which has a bit less inconsistencies)
<xximjasonxx>
Tasser: yup
<Tasser>
xximjasonxx, but javascript is lisp in its core, where ruby is object-oriented
<xximjasonxx>
Tasser: yes, I come from mostly static languages. Prior to diving into Ruby the only dynamic language I had worked with was PHP
<Hanmac>
does javascript has something like sprintf? i guess no :P
<Tasser>
I wouldn't even call php a language, it's just a collection of fuckups with a convention ^^
<xximjasonxx>
:)
<undeclaredx>
for an uninitialized class instance variable, how do I type that?
<undeclaredx>
lol
Markvilla has joined #ruby
<Tasser>
undeclaredx, just @foo
<undeclaredx>
locally?
<xximjasonxx>
Hanmac: there are libraries out there that provide that sort of functionality to JavaScript
<undeclaredx>
like class SOmething @foo
<undeclaredx>
done?
<undeclaredx>
okay
<xximjasonxx>
believe it or not, Microsofts JS library is quite nice for those sorts of operations
<Tasser>
undeclaredx, nah, in a method, if you reference @var and haven't used it before, it will return nil
<xximjasonxx>
ok I am out. After United was 2hrs late leaving Orlando last night, I missed my flight and got stuck in DC. Hoping to complete the journey back to Chicago today
<Tasser>
xximjasonxx, which sorts of ops?
<xximjasonxx>
Tasser: Date manipiulation and String manipulation for starters
<xximjasonxx>
they actually ported most (if not all) the functionality from the .NET classes to JavaScript
Neil___ has joined #ruby
<xximjasonxx>
Tasser: we are talking about JavaScript, Hanmac had asked a related question
ABK has quit [Read error: Connection reset by peer]
<shevy>
long live the rubyOS!
xximjasonxx has quit [Quit: xximjasonxx]
jxf has joined #ruby
liluo has joined #ruby
jimmy1980 has joined #ruby
<undeclaredx>
lol
<undeclaredx>
I think Ruby is good for a lot of stuff, but an OS.. not so sure
gtuckerkellogg has joined #ruby
remmy444 has joined #ruby
remmy444 has left #ruby [#ruby]
bbuegler1 has quit [Quit: Leaving.]
pk1001100011 has quit [Quit: I've got a feeling there's a fish in the floor; I'd better squish it or he'll swim out the door; Sometimes they take me for a walk in the sun; I see my fish and I have to run]
liluo has quit [Ping timeout: 244 seconds]
explody has quit [Remote host closed the connection]
explody has joined #ruby
pk1001100011 has joined #ruby
RainbowDashh has quit [Quit: SLEEP MODE. <REDACTED SUBORBITAL QUOTE HERE>]
shevy has quit [Ping timeout: 245 seconds]
qwerxy has quit [Quit: offski]
ABK has joined #ruby
bbuegler1 has joined #ruby
bosphorus has joined #ruby
<akem>
you could have most OS scripts in Ruby, why not.
b26 has joined #ruby
<akem>
Ruby kernel or drivers sounds crazy.
MarcWeber has joined #ruby
circlicious has quit [Quit: Lost terminal]
<MarcWeber>
/(.)*/ is there a way to get capture result for each character this way?
shevy has joined #ruby
kill-9_ has joined #ruby
<apeiros_>
no. quantified captures will always return the last. use .chars for this specific case.
<Spooner>
MarcWeber: str =~ /(.*)/; $1.split #=> does that
<Spooner>
$1.split('') rather
liuchong has joined #ruby
<apeiros_>
str[/.*/].chars
A124 has joined #ruby
<MarcWeber>
apeiros_: I want to do specific csv parsing - so this is only a special case.
freeayu has quit [Quit: 离开]
<apeiros_>
use the csv lib from stdlib to parse csvs
<MarcWeber>
I get different column counts - thus I suspect that the CSV format is bad.
<apeiros_>
csv doesn't mandate that all rows have the same column count
<apeiros_>
(just sayin, doesn't mean the csv you have isn't bad)
<MarcWeber>
apeiros_: I know. Thanks - but same cols should contain same data :)
Cxarea has joined #ruby
Cxarea has left #ruby [#ruby]
saschagehlich has joined #ruby
williamherry has quit [Quit: Leaving]
lkba has quit [Ping timeout: 246 seconds]
umttumt has quit [Remote host closed the connection]
ghanima has joined #ruby
A124 has quit [Quit: Leaving.]
nari has quit [Ping timeout: 255 seconds]
AllanMacGregor has quit [Remote host closed the connection]
minus273 has joined #ruby
tommyvyo has joined #ruby
TheVoid has joined #ruby
samuel02 has joined #ruby
<TheVoid>
i need help
AllanMacGregor has joined #ruby
<richo>
You have my permission to get it
<TheVoid>
i'm trying to make a ruby ircd without much knowledge of ruby...
<TheVoid>
if recv = "NICK #{w}"
<TheVoid>
session.puts "Hello #{recv}"
AllanMacGregor has quit [Read error: Connection reset by peer]
<TheVoid>
puts "\n
<TheVoid>
i can't get it correct
<TheVoid>
I want it to send Hello <nick>
AllanMacGregor has joined #ruby
<TheVoid>
mostly probably because
gtuckerkellogg has quit [Ping timeout: 248 seconds]
wubino has joined #ruby
<TheVoid>
i can't figure out regex
nilg has quit [Read error: Connection reset by peer]
ringotwo has joined #ruby
<wubino>
anyone know of a good tutorial / post on creating an ruby api from a raw json / rest api?
igaiga has quit [Remote host closed the connection]
workmad3 has quit [Read error: Operation timed out]
Tolnaiz has quit [Client Quit]
Synthead has joined #ruby
A124 has joined #ruby
vampirnata has quit [Ping timeout: 244 seconds]
krusty_ar has quit [Read error: Connection reset by peer]
vampirnata has joined #ruby
A124 has quit [Client Quit]
krusty_ar has joined #ruby
heftig has quit [Quit: leaving]
A124 has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
heftig has joined #ruby
uris has quit [Quit: leaving]
A124 has quit [Client Quit]
Morkel has quit [Quit: Morkel]
kirun has joined #ruby
liluo has joined #ruby
saschagehlich_ has joined #ruby
TheVoid has quit [Changing host]
TheVoid has joined #ruby
qwerxy has joined #ruby
saschagehlich has quit [Ping timeout: 272 seconds]
saschagehlich_ is now known as saschagehlich
Criztian has quit [Remote host closed the connection]
sailias has joined #ruby
<kapowaz>
I'm just looking into using Guard on a project for the first time, along with LESS, but I'm getting an error when I bundle install — is the guard-less gem very behind the current version of LESS?
Keva161 has quit [Remote host closed the connection]
tk___ has quit [Quit: ばいばい]
m_3 has joined #ruby
mengu has joined #ruby
seitensei has quit [Remote host closed the connection]
ePirat_ has joined #ruby
BeLucid_ has joined #ruby
BeLucid has quit [Ping timeout: 252 seconds]
ajhager has quit [Quit: Leaving]
BeLucid_ has quit [Read error: Connection reset by peer]
BeLucid has joined #ruby
nari has quit [Ping timeout: 264 seconds]
tommyvyo has joined #ruby
tommyvyo has quit [Client Quit]
ringotwo has quit [Remote host closed the connection]
mikeycgto has joined #ruby
mikeycgto has quit [Changing host]
mikeycgto has joined #ruby
Markvilla has quit [Ping timeout: 250 seconds]
ChampS666 has quit []
mjb2k has quit [Quit: Leaving]
yoklov has joined #ruby
mnaser has quit [Quit: Computer has gone to sleep.]
Markvilla has joined #ruby
Markvilla has quit [Read error: Connection reset by peer]
<wubino>
how can I start a script in intereactive mode (like python i.e. python -i script.py
Markvilla has joined #ruby
redgetan has joined #ruby
<Hanmac>
wubino look for irb
<Tasser>
wubino, or pry
Markvilla has quit [Client Quit]
<wubino>
Hanmac: Tasser: so irb script.rb ?
yoklov has quit [Quit: computer sleeping]
Markvilla has joined #ruby
<kapowaz>
anyone here familiar with using sprockets 2 ?
jimmy1980 has quit [Ping timeout: 265 seconds]
Enekoos has joined #ruby
dsa has joined #ruby
<kapowaz>
I'm just setting it up on a sinatra project, but the default config seems to map all files into /assets, rather than (say) /assets/stylesheets, /assets/javascripts etc.
<Hanmac>
kapowaz doesnt sinatra has an extra channel?
Markvilla has quit [Client Quit]
<kapowaz>
it does, and there is also a Mac OS X channel; the fact it's being configured with Sinatra is almost of zero bearing.
Markvilla has joined #ruby
Niamkik has quit [Ping timeout: 260 seconds]
<kapowaz>
it's a question about sprockets 2.
Niamkik has joined #ruby
frishi has quit [Quit: Leaving...]
<wubino>
got it: start irb / pry
<wubino>
require "./start.rb"
hynkle has joined #ruby
jimmy1980 has joined #ruby
hynkle has quit [Client Quit]
Poapfel has quit [Quit: Need a new quit message? Why not Zoidberg?"]
Poapfel has joined #ruby
ePirat_ has quit [Remote host closed the connection]
<Xethron>
I need some advice on .sample. I got: "arguments.split( ' or ' ).sample" to choose a random segment of text. However, it seems to favour the first choice... Is that true? Can I get it to favour all choices equally?
<Tasser>
wubino, nope
olovholm has joined #ruby
<Tasser>
wubino, yep, pry got a shortcut there, req <filename>
<wubino>
Tasser: it works for me so far, what am I missing?
<Tasser>
Xethron, take a look what your array consists of
<banisterfiend>
Tasser: we got rid of req on HEAD
<Tasser>
wubino, works
<Tasser>
banisterfiend, oh, thanks
<Tasser>
banisterfiend, nobody used it?
<banisterfiend>
Tasser: no body used it and it conflicted too much with ruby code as ppl would use 'req' for request
EzeQL has joined #ruby
<Hanmac>
banister would get a message if someone would use it :D
cousine has joined #ruby
<Tasser>
Hanmac, and then we'd travel back to earth?
<banisterfiend>
Hanmac: yeah i track usage, we upload which commands are invoked to our server and do stats
yoklov has joined #ruby
<Tasser>
banisterfiend, where's the corresponding code? :-P
dsa has quit [Ping timeout: 255 seconds]
riush has quit [Quit: leaving]
icrazyhack has joined #ruby
ramblex has joined #ruby
yoklov has quit [Client Quit]
Markvilla has quit [Quit: Markvilla]
ryan0x2 has joined #ruby
ePirat_ has joined #ruby
samuel02 has quit [Remote host closed the connection]
Progster has joined #ruby
caveat- has quit [Ping timeout: 265 seconds]
mnaser has joined #ruby
mnaser has quit [Client Quit]
seanstickle has quit [Quit: Nihil sub sole novum]
olovholm has quit [Read error: Connection reset by peer]
<icy`>
hi, i'm trying to write a 'restart' feature for my irc bot. On a certain message from me (inside irc), i'm trying to trigger 'controlscript.rb stop' , (using daemons gem), but i'm getting (Errno::EACCES) . Is this normal/how to avoid?
<icy`>
the control script is in same directory as the script, so i thought it should have access no? o.O
<icy`>
the error is about the pid of the script, btw
Vert has joined #ruby
bluenemo has quit [Ping timeout: 260 seconds]
<shevy>
dunn what are the permissions
<shevy>
perhaps the user that is running it, can not access the directory below
abra has quit [Ping timeout: 276 seconds]
<icy`>
er i guess what i'm basically trying to do is stop the script from within the script
<icy`>
using outside system command. this is probably bad ;P
<icy`>
it's not really dir permissions issue, it's the pid file that got created and locked or something
td123 has joined #ruby
federic has joined #ruby
<icy`>
this happens on stop or restart. gems/daemons-1.1.8/lib/daemons/pidfile.rb:94:in `initialize': Permission denied - /script.rb.pid (Errno::EACCES)
catphish has joined #ruby
abra has joined #ruby
<Hanmac>
:P the .pid path is wrong
<catphish>
can anyone explain why a ruby installation without libyaml produces warnings about yaml, but yaml still works fine?
<Tasser>
catphish, I suppose it uses a ruby implementation of a yaml parser
<catphish>
perhaps
<Tasser>
or syck
<icy`>
oh true Hanmac
<Tasser>
... which is a ruby implementation apparently
* Hanmac
solved the "is right" daily-quest
<icy`>
bug in dameons? ;P
Sou|cutter has quit [Quit: WeeChat 0.3.0]
<icy`>
daemons even
minus273 has left #ruby [#ruby]
<icy`>
if i run controlscript.rb stop from any terminal it works, yet not from within script with system(..)
ePirat_ has quit [Remote host closed the connection]
Whoop has quit [Remote host closed the connection]
cousine has quit [Remote host closed the connection]
<icy`>
in my control script, i had Daemons.run('script.rb') , and if I had written the fully expanded path, then there are no problems
Whoop has quit [Client Quit]
<icy`>
though I should not have to write the fully expanded path =/
imami|afk is now known as banseljaj
kalleth has quit [Ping timeout: 246 seconds]
yoklov has joined #ruby
Whoop has joined #ruby
Whoop has quit [Changing host]
Whoop has joined #ruby
mayankkohaley has quit [Ping timeout: 245 seconds]
delinquentme has joined #ruby
<delinquentme>
is it normal practice to run autotests via rake?
<catphish>
autotests?
mneorr has joined #ruby
<catphish>
tests are often run with rake, yes
<delinquentme>
really
<delinquentme>
Hmm
<delinquentme>
im so used to rspec
<deryl>
rake tests calls rspec spec if you've configured your app to use rspec
<deryl>
its a difference of calling manually and through a rake task. underlying is the same
<catphish>
rake is just a way to execute scripts
jgrevich has joined #ruby
<deryl>
like thor
<delinquentme>
now what should be done if im having issues with tests failing bc permissions?
<delinquentme>
sudo is not to be used here right?
<delinquentme>
it sounds like more of a chmod issue? or is that more a " depends on the situation"
mneorr4 has quit [Ping timeout: 252 seconds]
k_89 has joined #ruby
<catphish>
if tests fail because of permissions, just fix the file permissions
liuchong has joined #ruby
<atmosx>
guys, the most popular/easy to configure httpd with ruby is lighttpd, apache or nginx?
<atmosx>
or something that I missed?
s1n4 has joined #ruby
umttumt has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
rippa has joined #ruby
visof has joined #ruby
<Tasser>
atmosx, nginx + unicorn often
<shevy>
atmosx apache!
<shevy>
though not the newest
<shevy>
the bastards changed the configuration format
<atmosx>
oh apache
<atmosx>
I avoid it like the plague
<atmosx>
too many bugs/errors over the years and really messed up config file, I haven't configure apache2 for years
<atmosx>
I'll loose to much time there
tommyvyo has joined #ruby
<shevy>
yeah
<shevy>
I spend hours fiddling with the new configuration format
Neil___ has quit [Remote host closed the connection]
<shevy>
I then gave up and decided, I will store all my configuration stuff for ANY webserver in yaml, and then let ruby generate the proper scripts for me
mpereira has joined #ruby
<atmosx>
hm
<atmosx>
not bad idea
<shevy>
well
<shevy>
I have not finished it :(
<atmosx>
it will take me a lifetime to do it
<atmosx>
hehehe
<atmosx>
I can imagine why
<shevy>
but that was the last time I played with a configuration format
<shevy>
if I would have spent the time writing the script instead, it would have been finished already
<shevy>
but I kinda do that for everything already
<shevy>
all ENV settings I use are stored in yaml files
<atmosx>
I see
Synthead has joined #ruby
<atmosx>
what about nginx + passenger?
CheeToS has joined #ruby
<shevy>
yeah Tasser what about that!
td123 has quit [Read error: Connection reset by peer]
td123 has joined #ruby
Eldariof-ru has joined #ruby
wubino has quit [Quit: Leaving]
<atmosx>
I'm so stoned! gonna get a run until this thing compiles on the 3350mx
samuel02 has joined #ruby
<atmosx>
(will take 15-20 minutes)
Notimik has joined #ruby
selvakumaran has quit [Ping timeout: 260 seconds]
gmci_ has joined #ruby
gmci has quit [Ping timeout: 240 seconds]
s1n4 has quit [Quit: Leaving]
ph^ has joined #ruby
s1n4 has joined #ruby
UdontKnow is now known as root
abra has quit [Remote host closed the connection]
moshee has quit [Ping timeout: 244 seconds]
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
abra has joined #ruby
Enekoos has quit [Remote host closed the connection]
<Jackneill>
i have require "tabornok/irc" and irc.rb in the tabornok folder. i got cannot load such file. can you help me?
bluenemo_ has joined #ruby
bluenemo_ has quit [Changing host]
bluenemo_ has joined #ruby
<Jackneill>
where the require is there is the tabornok folde.r
visof has quit [Ping timeout: 260 seconds]
manizzle has quit [Read error: Connection reset by peer]
<Jackneill>
do i need $LOAD_PATH << './tabornok'?
<Hanmac>
jackneill NO, you need require_relative
<Jackneill>
hanmac thanks i will google for it.
kstephens has quit [Ping timeout: 272 seconds]
kstephens has joined #ruby
<Jackneill>
hanmac: i still get the same error
akafurious has joined #ruby
yfeldblum has joined #ruby
<akafurious>
#join #javascript
<Jackneill>
with require_relative do i need to use relative path?
<Hanmac>
require_relative "tabornok/irc" should work
<Jackneill>
require_relative "tabornok/irc"
<Jackneill>
i have that but doesnt working, i paste the error, sec
Niamkik has quit [Remote host closed the connection]
selvakumaran has joined #ruby
wallerdev has quit [Quit: wallerdev]
<Hanmac>
hm are you sure the error is currect? (it still looks that its call require and not require_relative)
<Hanmac>
if that not helps, try another subdir
antonishen has joined #ruby
mpereira has quit [Remote host closed the connection]
<Jackneill>
hanmac: with another subdir it works
horrror has joined #ruby
<Hanmac>
oO
redgetan has quit [Ping timeout: 255 seconds]
yoklov has quit [Quit: computer sleeping]
antonishen has quit []
<icy`>
hm, if i have a class C ; def run_bot; bot = Cinch::Bot.new do ... end; end; end; Then how can I pass an object from C so that the bot can work with it? (inside ...) . Without using $
<Hanmac>
def run_bot; bot = Cinch::Bot.new(self)
beilabs has joined #ruby
beilabs_ has joined #ruby
<Jackneill>
hanmac: recreated the dir and it works now.. :O
bluenemo_ has quit [Quit: Verlassend]
<icy`>
Hanmac, Bot only takes 0 arguments
<Jackneill>
and can someone help me? @tcpsocket = TCPSocket.open server, port | `connect': uninitialized constant Irc::TCPSocket (NameError)
<Hanmac>
icy` you could pass self inside the do end block
redgetan has joined #ruby
<icy`>
Hanmac, i'm not sure what you mean, as the Bot has its own self
akafurious has quit [Quit: This computer has gone to sleep]
<Hanmac>
depends on how the do end block is called ... what happend if you do p self in the do end block?
<icy`>
#<Bot nick=nil>
<icy`>
Cinch is not my class
akafurious has joined #ruby
cakehero has joined #ruby
<Hanmac>
ok, when: def run_bot; c = self; bot = Cinch::Bot.new do ... c ... end
DanBoy has quit [Remote host closed the connection]
bluenemo has quit [Read error: Connection reset by peer]
<shevy>
Jackneill require socket first. then check where is class Irc
schovi has joined #ruby
umttumt has joined #ruby
fantazo has quit [Remote host closed the connection]
umttumt has quit [Remote host closed the connection]
perryh_away is now known as perryh
jellywheel has joined #ruby
jellywheel has quit [Client Quit]
schaerli has quit [Read error: Operation timed out]
bitsar2 has joined #ruby
jellywheel has joined #ruby
jellywheel has quit [Client Quit]
jellywheel has joined #ruby
whatever is now known as e
jellywheel has quit [Read error: Connection reset by peer]
s1n4 has quit [Quit: Leaving]
<icy`>
Hanmac, sorry was afk a bit. Great idea, works, ty =)
fayimora has joined #ruby
<icy`>
is this typical procedure for cases like this? assigning self to a variable?
<Hanmac>
depends on how the block is handled
prometheus has joined #ruby
<Jackneill>
i have a file irc.rb and in the same folder parser.rb, in irc.rb i have require "parser", but i got no such file error
<offby1>
apeiros_: drat. Maybe I'll google "require_relative evil" :-)
<icy`>
but while still testing/changing, simply $LOAD_PATH<<'.' is ok right?
<Jackneill>
apeiros_:
mayankkohaley has joined #ruby
lkba has quit [Quit: Bye]
<Jackneill>
i have a lib/tabornok/irc.rb, parser.rb
bluenemo has quit [Client Quit]
tommyvyo has joined #ruby
liuchong has quit [Remote host closed the connection]
maletor has joined #ruby
Sheehan has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
bluenemo_ has joined #ruby
bluenemo_ has quit [Read error: Connection reset by peer]
tommyvyo has quit [Client Quit]
bluenemo has left #ruby [#ruby]
gmci has joined #ruby
Foxandxss has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
mockra has joined #ruby
Foxandxss has quit [Client Quit]
Foxandxss has joined #ruby
ghanima has quit [Quit: Leaving.]
tiripamwe has quit [Ping timeout: 245 seconds]
ph^ has quit [Remote host closed the connection]
araujo has quit [Read error: Connection reset by peer]
ph^ has joined #ruby
ken_barber has joined #ruby
artOfWar has joined #ruby
ph^ has quit [Ping timeout: 246 seconds]
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby
Eldariof-ru has quit []
mockra has quit [Remote host closed the connection]
wallerdev has joined #ruby
robotmay has joined #ruby
<apeiros_>
Jackneill: then the requires should be require 'tabornok/irc' and require 'tabornok/parser'
ryanf has joined #ruby
<apeiros_>
and props for namespacing.
Enekoos has joined #ruby
<Jackneill>
apeiros_ really? actually these are the same folder, but ok thanks
<Jackneill>
apeiros_, same error
wallerdev has quit [Client Quit]
<shevy>
icy` why do you ask, simply do it man
tyman has joined #ruby
wallerdev has joined #ruby
<Mon_Ouie>
icy`: the problem with it is, it means you have to be in the same directory as your script for it to work
<Hanmac>
if you are in the SAME dir use require_relative "file"
ddv has quit [Read error: Connection reset by peer]
<Jackneill>
hanmac: i dont understand why require doesnt work..
<apeiros_>
Jackneill: then your lib dir is not in the load path
<apeiros_>
if you install that thing as a gem, it'll automatically be the case. but since you're working on it, it's probably not added to the load path
<Hanmac>
and its not a good style to change the load path
<Jackneill>
lib/tabornok.rb is the main file
<apeiros_>
use e.g. `ruby -Ilib ./bin/yourircthingy`
kevinbond has joined #ruby
<apeiros_>
man, I need to write a blog entry or a gist about that topic. this topic is recurring so frequently…
<Jackneill>
sorry im just getting started, my 2 days ruby knowledge isnt too much
<Jackneill>
:D
dekronin1 has quit [Read error: Operation timed out]
<apeiros_>
Jackneill: oh, that wasn't directed at or against you
qwerxy has joined #ruby
<Jackneill>
ok, np
<Hanmac>
offby1 i google'd "require_relative evil" ... it has NO hits :P so that means its not evil XD
<apeiros_>
that just means it's so universally well known that nobody thought it was necessary to write about it
<apeiros_>
(there's some logical fallacy in there… hope nobody spots it…)
<mrbrdo>
Is there a current solution for TextMate 1.5 and Ruby 1.9 for copying code with style to Keynote? I tried copy-as-rtf and copy-with-style but they both have errors (jcode dependency)
<apeiros_>
platzhirsch: if you use that patch, I'd rename it to numeric?, to stay in line with ruby naming conventions
<catphish>
how do you make tcpserver listen on ipv6? right now i am only providing a port number, but it listens on 0.0.0.0 :(
<platzhirsch>
apeiros_: good hint thanks
prtksxna has quit [Ping timeout: 244 seconds]
<apeiros_>
(numeric classes inherit from Numeric, is_ prefixes are javaish)
prtksxna has joined #ruby
<shevy>
platzhirsch there is no built in alternative
<Tasser>
mrbrdo, org-mode + begin_src :-)
<Hanmac>
oO they use the recuse modifier? oO thats bad!
<mrbrdo>
TextMate...
<Tasser>
mrbrdo, I know, I know ;-)
frishi has joined #ruby
qwerxy has quit [Quit: offski]
BeLucid_ has joined #ruby
graspee has quit [Quit: leaving]
BeLucid has quit [Read error: Connection reset by peer]
fayimora has quit [Ping timeout: 240 seconds]
eurbach has quit [Ping timeout: 265 seconds]
Eldariof-ru has quit [Remote host closed the connection]
sent-hil has quit [Remote host closed the connection]
fayimora has joined #ruby
Eldariof-ru has joined #ruby
fayimora_ has joined #ruby
fayimora_ has quit [Read error: Connection reset by peer]
Sheehan has quit [Quit: Sheehan]
Spooner_ has joined #ruby
fayimora has quit [Ping timeout: 264 seconds]
Spooner has quit [Ping timeout: 255 seconds]
Spooner_ has quit [Ping timeout: 252 seconds]
Axsuul has joined #ruby
Spooner has joined #ruby
Eldariof-ru has quit []
ipoval has joined #ruby
davidcelis has quit [Ping timeout: 252 seconds]
mvangala_home has joined #ruby
prtksxna has quit [Remote host closed the connection]
banghouse is now known as banghouseAFK
ryanf has quit [Ping timeout: 255 seconds]
Axsuul has quit [Read error: Connection reset by peer]
Nick___ has joined #ruby
Axsuul has joined #ruby
ph^ has joined #ruby
Nick___ has quit [Client Quit]
KevinSjoberg has joined #ruby
Nick___ has joined #ruby
jimeh has joined #ruby
emmanuelux has joined #ruby
baroquebobcat has joined #ruby
<KevinSjoberg>
I've got a really weird error. I'm trying to get a ruby script to work with Ruby 1.8.7 patchlevel 357. But it seems that it complaining on me setting a default value for a initialize parameter. "def initialize(variable = nil, other variable)". If I remove the = expression everything works. If I remember correctly that should be valid?
schovi has quit [Remote host closed the connection]
mnaser has quit [Ping timeout: 272 seconds]
<apeiros_>
catphish: might be with SecureRandom
shadoi has joined #ruby
<catphish>
apeiros_: yep, that looks like a good interface to /dev/random and the windows equiv
<cherrypeel>
hey folks. i'm trying my hand at some "serious" ruby development and i'm trying to keep a gem-esque project structure. where would be a reasonable place to put stuff like YAML seed files or AWS creds?
<apeiros_>
cherrypeel: PROJECT/data
<cherrypeel>
apeiros_: sounds good, thanks
<ij>
I'm getting a bug upon this line: "if ages[segment].nil? || (now - ages[segment] > 0.5)", when running manually-started MRI 1.9.3 in my app, seperate thread. Why I'm bothering #ruby is the 5th line in the log: http://sprunge.us/WijK?f What wrong could I've done?
williamcotton has joined #ruby
<Mon_Ouie>
Your program seems to include a C extension, which probably has a bug
dv_ has quit [Remote host closed the connection]
<ij>
I am making the C extension.
<Mon_Ouie>
Doesn't mean it's bug-free.
<ij>
Okay nevermind, I don't think this is something common, which at first I thought it was.
josefig has joined #ruby
josefig has quit [Changing host]
josefig has joined #ruby
<Hanmac>
i hope you did not use swiq :D
<Mon_Ouie>
When Ruby throws a C backtrace at you, there's a bug in C code — and it's more likely to be in your own C extension or one that you're using than in Ruby's own code
jianxioy has joined #ruby
<Hanmac>
ij: show me your free method you use for deleting your objects
<ij>
What's that?
<ij>
Free method? Ruby code?
<Hanmac>
no C code
<ij>
umm
banghouseAFK is now known as banghouse
<deryl>
alloc/malloc and free
<deryl>
man free
<ij>
^
<deryl>
no, thats the command. in your terminal type: man free
<ij>
This is all my C code for ruby and it doesn't feature any free methods: http://sprunge.us/EVeh?c
fridim_ has joined #ruby
<ij>
.. I know.
<deryl>
and also: man malloc
<Hanmac>
deryl i dont think this helps at the moment ...
cjs226 has quit []
mikepack has joined #ruby
<ij>
I know what free/malloc does.
<deryl>
what doesn't help? telling a man who obviously doesn't know what 'free' is how to find the info?
<deryl>
that definitely helps
<Mon_Ouie>
deryl: what makes you think that he doesn't know what free is?
<deryl>
Hanmac: ij: show me your free method you use for deleting your objects
<deryl>
[4:29pm] ij: What's that?
<ij>
_method_
<ij>
not function
<ij>
Meaning in ruby code.
<deryl>
followed by Free method? like he didn't know what it was
<deryl>
wait a minute
<Mon_Ouie>
Yeah, and you seem not to know what Hanmac was referring to either
<deryl>
why the fuck are you jumping my bones for telling someone where to find some info?
<ij>
Mon_Ouie: Me?
<Mon_Ouie>
No, deryl
<Mon_Ouie>
ij: Not sure if it can cause a crash, but the type of your function is wrong
<Hanmac>
my first thought is that he used DATA_WRAP_STUCT wrong
<ij>
exit()?
<deryl>
he didn't seem to know. Its C related. I thought he meant calling free on a C object, he didn't seem to know what it was so I pointed him at info
<deryl>
christ
<Mon_Ouie>
it should be VALUE logic_data(VALUE)
<ij>
Arguments can be ignored.
<ij>
in c, and that shouldn't produce any errors
Sgeo has joined #ruby
<ij>
Also, weird thing is that it runs for like a minute in a loop and only then it crashes.
<ij>
So it works for a while.
danishman has joined #ruby
<Mon_Ouie>
That's because it's GC-related — your loop is run a few times before the GC runs
cbuxton has quit [Quit: Leaving.]
<ij>
Oh, right.
CheeToS has quit [Ping timeout: 248 seconds]
lopex has joined #ruby
* Hanmac
sings "the GC is comming to collect you" :P
Sgeo has left #ruby [#ruby]
francisfish has quit [Remote host closed the connection]
Scrivener has joined #ruby
francisfish has joined #ruby
daym0n has joined #ruby
noganex has quit [Read error: Operation timed out]
Asher has quit [Quit: Leaving.]
sailias has joined #ruby
noganex has joined #ruby
francisfish has quit [Ping timeout: 248 seconds]
<ij>
Oh, sweet. When I run GC.start in the entry point(def main) it fails already, so it's got something to do with my initialization.
Asher has joined #ruby
<ij>
Is my initialization of ruby environment okay?
mnaser has joined #ruby
linoj has joined #ruby
ryan0x2_ has joined #ruby
berserkr has joined #ruby
Neil___ has quit [Remote host closed the connection]
mnaser has quit [Quit: Computer has gone to sleep.]
red-panda has joined #ruby
sailias has quit [Ping timeout: 265 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
ryan0x2_ has quit [Remote host closed the connection]
<catphish>
i need to learn how to write c extensions
andreime has quit [Ping timeout: 240 seconds]
macmartine has quit [Quit: macmartine]
ph^ has joined #ruby
nowthatsamatt has joined #ruby
nowthatsamatt has left #ruby [#ruby]
<undeclaredx>
:)
<undeclaredx>
that'd be coolh eh
<undeclaredx>
heh*
jgrevich has quit [Read error: Connection reset by peer]
tomb_ has quit [Quit: Computer has gone to sleep.]
<catphish>
can't say i've ever needed to so far though :)
jgrevich has joined #ruby
tomb_ has joined #ruby
<catphish>
i really wish someone could write an interface to irrlicht
banisterfiend has joined #ruby
<catphish>
sadly as c++ it's well beyond my skills
macmartine has joined #ruby
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
<Hanmac>
catphish look at README.ext
iocor has quit [Quit: Computer has gone to sleep.]
<catphish>
well thats some heavy reading :)
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Habib has joined #ruby
<Habib>
hey/ i'm installing linuxmint to work with ruby
saschagehlich has quit [Quit: saschagehlich]
<catphish>
good :)
<Habib>
what to install? MATE or Cinnamon?
<catphish>
that's not at all relevant to ruby
<Habib>
cos on linuxmint chanel they didn't tell me
<workmad3>
kapowaz: no... it means your gem list has impossible to match dependencies
<workmad3>
kapowaz: you might be able to fork one of the gems, update the dependencies and hope it works ok, and then use that gem from a git repo though... but YMMV
<kapowaz>
it looks like I'm getting weird results from bundler though
ePirat_ has joined #ruby
<kapowaz>
the gemspec for sprockets 2 says it only needs multi_json ~> 1.0
<kapowaz>
yet bundler is saying I need 1.3.6
ryanf has quit [Quit: leaving]
<workmad3>
kapowaz: ah, that's a different issue
<kapowaz>
so they should be compatible but they're not
cherrypeel has joined #ruby
jimeh has quit [Ping timeout: 250 seconds]
<kapowaz>
I have no idea how to diagnose further though
red-panda has quit [Remote host closed the connection]
<workmad3>
kapowaz: your Gemfile.lock is saying you're locked to 1.3.6 atm
<kapowaz>
ah
<kapowaz>
so I should remove my .lock file
<workmad3>
kapowaz: so you'd need to bundle update both gems at once
atmosx has quit [Ping timeout: 276 seconds]
<workmad3>
kapowaz: no, don't remove the .lock file
<kapowaz>
how would you update both together then?
<ryanw>
I have a rake task that calls a shell command using system(). The command outputs colour but when used via the rake task the colour codes appear as 3[31m. Is there a way to fix this?
workmad3 has quit [Ping timeout: 264 seconds]
QaDeS has quit [Quit: Ex-Chat]
atmosx has quit [Ping timeout: 276 seconds]
DanBoy_ has quit [Ping timeout: 260 seconds]
indian has quit [Ping timeout: 248 seconds]
niku4i has joined #ruby
tomb_ has joined #ruby
RudyValencia has quit [Quit: My IRC client doesn't advertise in /quit messages.]
prometheus has joined #ruby
workmad3 has joined #ruby
bbuegler1 has quit [Quit: Leaving.]
h4mz1d has joined #ruby
josefig has joined #ruby
josefig has quit [Changing host]
josefig has joined #ruby
krusty_ar has quit [Read error: Connection reset by peer]
krusty_ar has joined #ruby
itnomad has quit [Ping timeout: 260 seconds]
gtuckerkellogg has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
banseljaj has quit [Ping timeout: 246 seconds]
atmosx has joined #ruby
wilmoore has joined #ruby
banseljaj has joined #ruby
wilmoore has quit [Remote host closed the connection]
vladiim has quit [Quit: vladiim]
itnomad has joined #ruby
<atmosx>
anyone alive?
<atmosx>
:-P
<undeclaredx>
no
<cherrypeel>
dunno
seanstickle has joined #ruby
<atmosx>
good
fridim_ has quit [Quit: Quitte]
<atmosx>
just a questoin, all these 5.000 proggies for runnig rails: webrick, passenger, uro-something, etc
<atmosx>
are like a sort of internal httpds for rails apps which I should proxy through a nornal httpd to run?
ben_m has quit [Quit: Leaving]
<atmosx>
liek lighttpd/nginx/etc?
<atmosx>
this is what I understand from the hotwo's I find online in order to setup a local ror app
ben_m has joined #ruby
<cherrypeel>
would probably get a better answer on #rubyonrails
<cherrypeel>
but i don't think you have to proxy it
<atmosx>
ah k I'll ask there
<atmosx>
thanks
<atmosx>
cherrypeel: you mean I run it directly?
<epitron>
you don't have to proxy anything for local development :)
<atmosx>
all guides proxy them
<atmosx>
I don't understand exactly why
<epitron>
just connect to localhost:3000 or whatever
<epitron>
proxying is for deployment
<atmosx>
epitron: no no, it's for a blog system
<atmosx>
epitron: it will be accessibla via internet
<epitron>
proxying is for scalability
<epitron>
i suppose webrick might be buggy too
<epitron>
some exploits perhaps
<epitron>
you can run one of those standalone ruby webservers though (probably thin is your best bet) if you don't need to host anything else on that box
<epitron>
passenger is nice because it can manage all your processes
<epitron>
and spawn new ones, if needed
<epitron>
that runs on apache or nginx
<atmosx>
I used unicorn
Guest41099 has quit [Ping timeout: 248 seconds]
<atmosx>
now I need to configure unicorn & nginx somehow but as I get it, it's just proxying
vladiim has joined #ruby
<epitron>
you don't really need nginx
<epitron>
just stick unicorn on port 80, and you're done :)
<atmosx>
what I don't get is: apache/nginx/lighttpd are just proxies for all these rails handlers or more?
<epitron>
but, again, there may be security concerns
<atmosx>
epitron: which nginx will permit me to address somehow?
<epitron>
they can act as a proxy, or as an appserver manager
<epitron>
apache by itself can't run rails
<epitron>
apache + passenger can
baroquebobcat has quit [Quit: baroquebobcat]
<epitron>
nginx would intercept the actual tcp requests
<epitron>
it would be like a firewall
<epitron>
packets roll off nginx like water off a duck's back
<epitron>
anyhow, the bottom line is, it probably doesn't matter
<epitron>
anything you pick willl work fine
<epitron>
(except webrick)
bosphorus has quit [Remote host closed the connection]
kylemcgill has joined #ruby
<atmosx>
epitron: So you say, it's better to use directly unicorn?