TheFuzzball has quit [Quit: Computer has gone to sleep.]
fir_ed has quit [Quit: Leaving]
zastern has quit [Remote host closed the connection]
poikon has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
dmiller has quit [Ping timeout: 252 seconds]
reppard has joined #ruby
guns has joined #ruby
dougireton has joined #ruby
v0n has quit [Ping timeout: 240 seconds]
mahmoudimus has joined #ruby
ThePicard has joined #ruby
<havenn>
aedornm: What is sprint.y?
<havenn>
*sprint.ly
cha1tanya has quit [Ping timeout: 256 seconds]
SrPx has quit [Quit: SrPx]
<havenn>
aedornm: "An error has occurred. Please try again"
cha1tanya has joined #ruby
miskander has joined #ruby
DrCode has quit [Remote host closed the connection]
benlieb has joined #ruby
peregrine81 has quit [Quit: Computer sleeping.]
squidBits has joined #ruby
SrPx has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
xk_id has joined #ruby
Kingy has quit [Quit: Leaving]
nateberkopec has quit [Quit: Leaving...]
zigomir has quit [Read error: Operation timed out]
<reppard>
all your sprint.y are belong to us
<aedornm>
havenn: project management app. Integrates with github, has a simple story editor, can email it bug reports and so forth. Mostly for project tracking, though.
nateberkopec has joined #ruby
nateberkopec has quit [Remote host closed the connection]
DrCode has joined #ruby
<aedornm>
We use Mantis and right now and nobody really likes it. Way too cumbersome for what it does, and feature limited for what it does have. So now people are getting in the habit of sending me email when they have bugs to report, or need an update on a project .. I'd like to avoid all that so looking around.
<reppard>
aedornm: we use mingle at my job
TomyLobo has quit [Quit: Standby mode...]
<reppard>
i've got a few complaints about it but all in all it does its job
<reppard>
the filtering is kind of jacked up sometimes
yshh has quit [Remote host closed the connection]
tomzx_mac has joined #ruby
squidBits has quit [Quit: squidBits]
wyhaines has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
JackyAlcine has joined #ruby
JackyAlcine has quit [Changing host]
JackyAlcine has joined #ruby
poikon has quit [Remote host closed the connection]
d2dchat has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
mmitchell has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
dpbus has quit [Quit: Computer has gone to sleep.]
adkron has joined #ruby
adkron_ has joined #ruby
peteyg has quit [Ping timeout: 264 seconds]
banjara has quit [Quit: Leaving.]
robert__ has joined #ruby
carlyle has quit [Remote host closed the connection]
quest88_ has quit [Quit: quest88_]
bradhe has quit [Remote host closed the connection]
nipara has joined #ruby
apok has quit [Quit: apok]
robert_ has quit [Read error: Connection reset by peer]
nipar has quit [Read error: Connection reset by peer]
karupanerura has quit [Ping timeout: 276 seconds]
arya has quit [Ping timeout: 248 seconds]
aryasam has quit [Ping timeout: 264 seconds]
joeycarm_ has quit [Remote host closed the connection]
tigris_ has joined #ruby
adkron_ has quit [Ping timeout: 264 seconds]
psyl0n has quit [Quit: psyl0n]
jeffreybaird has joined #ruby
oinkon has quit [Ping timeout: 276 seconds]
adkron has quit [Ping timeout: 244 seconds]
toekutr has joined #ruby
ryanh has joined #ruby
<tigris_>
I don't see anywhere that ruby's Net::FTP changes file permissions, but if I upload a file with CLI linux FTP, it goes up as 644, but with ruby it goes up as 664. Anyone got ideas on how to debug?
arya has joined #ruby
dagnachew has quit [Quit: Leaving]
drago757 has quit [Quit: drago757]
techlife has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
karupanerura has joined #ruby
generali_ has joined #ruby
jerius has quit []
jon_wingfield has joined #ruby
AndChat|102836 has joined #ruby
<heftig>
tigris_: the cli client probably supports umask, and uses it
<heftig>
ruby ftp client doesn't
<heftig>
so it just uses the server default
generalissimo has quit [Ping timeout: 248 seconds]
daniel_- has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
stormetrooper has quit [Quit: Death Star is under attack, bbl]
solitude88 has joined #ruby
jrist-dinner is now known as jrist
<heftig>
tigris_: try ftp.sendcmd("UMASK 022") before you put the file
techlife has joined #ruby
solitude88 has left #ruby [#ruby]
<tigris_>
heftig: thanks i will give it a shot
dpbus has joined #ruby
ryanf has joined #ruby
slash_nick has joined #ruby
oinkon has joined #ruby
jaequery has joined #ruby
jon_wingfield has quit [Ping timeout: 276 seconds]
templaedhel has joined #ruby
jbw has quit [Ping timeout: 256 seconds]
benwoody has quit [Remote host closed the connection]
Goles has quit [Quit: Computer has gone to sleep.]
benwoody has joined #ruby
NihilistDandy has joined #ruby
steffes has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
jonathanwallace1 has quit [Ping timeout: 256 seconds]
frem has quit [Ping timeout: 255 seconds]
v0n has quit [Ping timeout: 245 seconds]
joeycarmello has joined #ruby
jaequery has quit [Quit: Computer has gone to sleep.]
ilyam has quit [Quit: ilyam]
jpfuentes2 has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
jonathanwallace1 has joined #ruby
steffes has quit [Remote host closed the connection]
bradhe has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
rakl has joined #ruby
daniel_- has quit [Client Quit]
tjbiddle_ has joined #ruby
timonv has joined #ruby
mrbloo has quit [Quit: mrbloo]
techhelp has quit [Quit: This computer has gone to sleep]
therod has joined #ruby
reppard has quit [Ping timeout: 248 seconds]
mrbloo has joined #ruby
mrbloo has left #ruby [#ruby]
tjbiddle_ has quit [Client Quit]
tjbiddle has quit [Ping timeout: 248 seconds]
elake is now known as etank
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
tjbiddle has joined #ruby
Takehiro has quit [Remote host closed the connection]
therod has quit [Ping timeout: 264 seconds]
tjbiddle_ has joined #ruby
Goles has joined #ruby
pcarrier has quit []
timonv_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
nat2610 has quit [Quit: Leaving.]
zeade has quit [Quit: Leaving.]
tjbiddle has quit [Ping timeout: 256 seconds]
tjbiddle_ has quit [Ping timeout: 248 seconds]
asteve has joined #ruby
danneu has joined #ruby
ebobby has joined #ruby
banjara has joined #ruby
R3dy has joined #ruby
maletor has joined #ruby
<R3dy>
can you use native Ruby (no gems) to take an http page and parse out just the <a href tags
<R3dy>
something like string.split("<a href=") and then stop and the end with </a>
nopolitica has joined #ruby
<danneu>
R3dy: sure
ibash has joined #ruby
robert__ is now known as robert_
cajone has left #ruby [#ruby]
<danneu>
R3dy: it won't be as robust as using an html parser that can rebuild the DOM, but the html body is just a stirng.
<danneu>
R3dy: try for yourself, mate. `require "open-uri"; html = open("http://google.com")`
miskander has quit [Quit: miskander]
etank has quit [Ping timeout: 240 seconds]
niklasb has quit [Ping timeout: 252 seconds]
AndChat| has joined #ruby
jeffreybaird has quit [Read error: Connection reset by peer]
Banistergalaxy has quit [Ping timeout: 248 seconds]
<R3dy>
nothing with the .split string command though?
<R3dy>
you can liek tell split where to end or something?
ixti has quit [Quit: Ex-Chat]
dpbus has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
nanny_ has joined #ruby
forced_request has quit [Ping timeout: 248 seconds]
mrsolo has joined #ruby
<nanny_>
hey folks, what CMS would you say has the largest community? It can be on/off Rails
<bigmac>
any ideas on how i can create a seed for p2p network with ruby
<bigmac>
should be simple if i snoop threw wireshark
mneorr_ has quit [Remote host closed the connection]
slainer68 has joined #ruby
mneorr has joined #ruby
<ryanf>
nanny_: on/off Rails but only Ruby ones? or do you literally mean any CMS in any language?
<tigris_>
nanny_: hosted or one you install yourself?
dpbus has quit [Client Quit]
nga4 has quit []
a_a_g has joined #ruby
<tigris_>
nanny_: hosted - cushycms, installable - wordpress (yuck, but you said biggest community)
recycle has joined #ruby
sailias has joined #ruby
<danneu>
hard for me to see the usecase between Wordpress and just rolling your own.
<nanny_>
no I meant ruby ones
<nanny_>
That's why i'm in #ruby :0
<nanny_>
:)
<Quadlex>
'
<Quadlex>
My own investigation showed nothing that jumped out at me
<Quadlex>
But that was a couple of years ago
<Quadlex>
When I still thought rolling my own solution was more interesting then building totally new stuff
<danneu>
yeah, the reason why i'd use something like wordpress is that i can leverage the community.
pavilionXP has quit [Read error: Operation timed out]
<danneu>
so using a CMS with no community, i'd just roll my own.
<danneu>
what's the point
renanoronfle has joined #ruby
pavilionXP has joined #ruby
dpbus has joined #ruby
kold has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
<nanny_>
I wanted to learn ruby, and I've been looking for a cms for my personal site so I thought it would be a good compromise
mneorr has quit [Ping timeout: 248 seconds]
pcarrier has joined #ruby
jrist is now known as jrist-afk
<nanny_>
I suppose I can't learn better than building it myself though!
renanoronfle has quit [Client Quit]
Metaphor has joined #ruby
<danneu>
nanny_: well, CMS are pretty trivial. rather standard CRUD.
Goles has quit [Quit: Computer has gone to sleep.]
Metaphor has left #ruby ["Leaving..."]
<danneu>
a good next project if you can build your own blog system.
mneorr has joined #ruby
johndouthat has joined #ruby
mneorr has quit [Remote host closed the connection]
techhelp has joined #ruby
mneorr has joined #ruby
<shevy>
hehe
`brendan has quit [Ping timeout: 260 seconds]
mockra has joined #ruby
<shevy>
nanny_ you can always include third party code, for instance - if you use markdown files, for your blog, you can easily use kramdown (gem install kramdown)
techhelp has quit [Client Quit]
<tigris_>
roll your own cms to maintain your own site? one of those seems more complex than the other :)
ilyam has joined #ruby
<shevy>
tigris_ I'd do that too, one has at least two advantages - learn a lot, and able to specialize for your needs. of course one big drawback is the extra time
Loaft has quit [Ping timeout: 246 seconds]
<nanny_>
it's more for learning and portfolio purposes
_veer has joined #ruby
<tigris_>
the learning i can understand, but if it's just a website your maintaining content for, i'd just edit the HTML, i mean if you know ruby enough to write a cms, surely you know HTML enough to edit content
pcarrier has quit []
alta has joined #ruby
<nanny_>
yes I definitely know the HTML plenty well. I'm looking to expand.
<tigris_>
not if you know HTML well enough... i know SQL plenty well and everyone says stuff like ActiveRecord is "easier to use"... yeah right
<danneu>
my blog was a rails app with page caching for a year.
<shevy>
I'd never store information in .html files directly
<shevy>
I am ashamed to admit that I still use .cgi :(
<danneu>
i recently moved to jekyll + github pages. honestly harder than just making my own blog with rails.
<shevy>
but one specialized class per one .cgi file at least
<ddilinger>
tigris_: well, obviously easier to use is from a different standpoint. If all you want is crud and a few lazy-loading relationships, active record, data mapper, heck any abstraction can remove a ton of boiler plate. If your not doing generic crud, all bets are off
<shevy>
and a common base for all .cgi files, too
<tigris_>
ddilinger: true, i just find myself brute forcing any ORM to DWIM too many times
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
Spooner has quit [Remote host closed the connection]
ereslibre has joined #ruby
ilyam has quit [Quit: ilyam]
reset has quit [Ping timeout: 244 seconds]
jjbohn has quit [Quit: Leaving...]
tigris_ has quit [Quit: Leaving]
nanny_ has quit [Quit: Leaving]
rakl has quit [Quit: sleeping]
tcstar has joined #ruby
ilyam has joined #ruby
ossareh has quit [Ping timeout: 256 seconds]
Michael_ has quit [Remote host closed the connection]
stormetrooper has joined #ruby
a_a_g has joined #ruby
elux has joined #ruby
ossareh has joined #ruby
elux has quit [Read error: Connection reset by peer]
elux has joined #ruby
i_s has joined #ruby
ananthakumaran has joined #ruby
vinax has quit []
twoism has joined #ruby
<RubyPanther>
AR doesn't discourage foreign keys, it just doesn't know or care about them. Some rails devs discourage it, but luckily rails itself is agnostic
<aedornm>
I hate when I come back to projects and after a few days of reacquainting myself with the code I say to myself: Was I drunk when I wrote this!?! Sure enough, the git commit message is "drunk - might not work - forgot what this was half way through"
<shevy>
aedornm pffft when I am drunk, I wont use git!
anonymuse has joined #ruby
<shevy>
aedornm are you still sitting in your prison :P
<aedornm>
no, I'm sitting on my couch! There's a lot of boxes around me, so it's ALMOST like prison! Except for the guy that hums all the time, and the random shankings
tjbiddle has quit [Quit: tjbiddle]
arkiver has joined #ruby
butblack has quit [Quit: butblack]
pyro111 has joined #ruby
butblack has joined #ruby
<danneu>
RubyPanther: I don't think Rails is agnostic. I think it lacks best practices for data integrity.
elux has quit [Quit: Leaving...]
<RubyPanther>
being agnostic about data integrity _is_ being agnostic. If you want that in the database, fine, use it.
mmitchell has quit [Remote host closed the connection]
<RubyPanther>
the app level doesn't need to know
<RubyPanther>
er, being agnostic _is_ lacking it.
ebobby has quit [Quit: Lost terminal]
sepp2k has quit [Ping timeout: 248 seconds]
ryanf has quit [Ping timeout: 260 seconds]
ebobby has joined #ruby
yourmysin has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
sepp2k has joined #ruby
baphled has quit [Ping timeout: 248 seconds]
<danneu>
RubyPanther: yeah, i agree. rather i just think rails drops the ball on best practices that i would like to see more prevalent in the community.
arkiver has quit [Quit: Leaving]
timonv_ has quit [Read error: Connection reset by peer]
<danneu>
Xavier Shaw has a good talk at LA Ruby on the matter
timonv has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
stormetrooper has quit [Remote host closed the connection]
<RubyPanther>
danneu: I like the current system because the more rails knew about what I'm doing on the db side, the more conventions I'd be swimming upstream against. As it is I can do crazy stuff and AR doesn't even notice. Like use postgres MTI and let AR think it is STI.
sepp2k has quit [Ping timeout: 248 seconds]
postmodern has joined #ruby
arkiver has joined #ruby
crackfu has joined #ruby
a_a_g1 has joined #ruby
pcarrier has joined #ruby
dcwu has joined #ruby
crackfu has quit [Read error: Connection reset by peer]
AlSquire has quit [Read error: Connection reset by peer]
bradhe has quit [Remote host closed the connection]
erichmenge has quit [Quit: Arrivederci!]
davidcelis has quit [Quit: K-Lined.]
techlife has quit [Ping timeout: 245 seconds]
ananthakumaran has quit [Quit: Leaving.]
pcarrier has quit [Client Quit]
berserkr has quit [Quit: Leaving.]
arkiver has quit [Quit: Leaving]
a_a_g has quit [Ping timeout: 244 seconds]
timonv has quit [Ping timeout: 264 seconds]
Takehiro has joined #ruby
bricker is now known as bricker`work
radic has joined #ruby
davidcelis has joined #ruby
slainer68 has joined #ruby
erichmenge has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
anonymuse has quit [Quit: Leaving.]
radic_ has quit [Ping timeout: 272 seconds]
skcin7 has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
quest88_ has joined #ruby
Takehiro has joined #ruby
mockra has quit [Remote host closed the connection]
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
slainer68 has quit [Ping timeout: 264 seconds]
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
timonv has joined #ruby
Retistic has joined #ruby
<Retistic>
is there a way to make ' message login: "hello", password: "password", body: "endless" ' multiline?
techlife has joined #ruby
jonathanpenn has joined #ruby
R3dy has quit [Ping timeout: 252 seconds]
tjbiddle has joined #ruby
twoism has quit [Remote host closed the connection]
Targen has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
yakko has joined #ruby
timonv has joined #ruby
sepp2k has joined #ruby
jaequery has quit [Quit: Computer has gone to sleep.]
R3dy has joined #ruby
maletor has joined #ruby
bradhe has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
kylescottmcgill has quit [Ping timeout: 252 seconds]
generali_ is now known as CoolCorp
asteridz has joined #ruby
sailias has quit [Quit: Leaving.]
jaequery has joined #ruby
asteridz has quit [Quit: Leaving.]
__BigO__ has joined #ruby
asteridz has joined #ruby
peregrine81 has quit [Quit: Goodbye.]
maletor has quit [Client Quit]
peregrine81 has joined #ruby
x82_nicole has joined #ruby
skcin7 has joined #ruby
v0n has quit [Ping timeout: 246 seconds]
<danneu>
Retistic: \
butblack has quit [Quit: butblack]
<Retistic>
danneu: eh, thats not so pretty :-(
<danneu>
:(
benlieb has quit [Quit: benlieb]
maletor has joined #ruby
dpbus has quit [Quit: Computer has gone to sleep.]
mcqueenorama has joined #ruby
<danneu>
Retistic: when i'm passing in a hash like that, i just put the key/val pairs on a new line each
taoru_ has joined #ruby
<danneu>
i think that's the best you can get
<Retistic>
danneu: and you use parenthesis around the hash?
<danneu>
Retistic: yeah
<Retistic>
danneu: i think i'll just define a hash separately and pass it in
taoru_ has quit [Remote host closed the connection]
taoru has quit [Read error: No route to host]
brianpWins has quit [Quit: brianpWins]
taoru has joined #ruby
<danneu>
i've seen that, but i think it's a downgrade unless you're actually manipulating that intermediate hash. but all depends on what's going on in that file
<danneu>
but hey my opinion matters no more at that point
dallasm has quit [Remote host closed the connection]
__BigO__ has quit [Remote host closed the connection]
jaequery has quit [Quit: Computer has gone to sleep.]
<aedornm>
oooh, dynamic web page: document.getElementById("wireless_primaryssid").innerHTML = "BELLALIANT0040" - on load. Yeah. Setting static text on an element on load. Real useful javascript there.
<jrabbit>
tyangerine: that'd work just fine.
<tyangerine>
cool testing now thx
dhruvasagar has joined #ruby
R3dy has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 248 seconds]
cableray has quit [Quit: cableray]
sn0wb1rd has joined #ruby
heyitsdave has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
<tyangerine>
what are these binary rubies that you speak of
jfelchner has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<shevy>
question
<shevy>
I have a sentence like this:
frem has quit [Quit: Computer has gone to sleep.]
<shevy>
"fence the over jumped cat The."
<shevy>
ah, the '.' is on the left side... anyway, every word is reversed
<jrabbit>
tyangerine: rvm isntalled one for me once :P
<jrabbit>
i think it was macruby though
<shevy>
it should be "The cat jumped over the fence."
rippa has joined #ruby
danneu has joined #ruby
<tyangerine>
ah, yea im not sure why rvm didnt do that in the first place
cableray has joined #ruby
x82_nicole has quit [Ping timeout: 244 seconds]
proph3t has joined #ruby
<proph3t>
hello
dhruvasagar has quit [Ping timeout: 252 seconds]
Myconix has quit [Ping timeout: 256 seconds]
frem has joined #ruby
pu22l3r has quit [Ping timeout: 264 seconds]
joeycarmello has joined #ruby
x82_nicole has joined #ruby
jfelchner has quit [Quit: WeeChat 0.3.9.2]
x82_nicole has quit [Max SendQ exceeded]
jfelchner has joined #ruby
freezway has quit [Ping timeout: 276 seconds]
x82_nicole has joined #ruby
idiocrash has joined #ruby
<idiocrash>
off topic, but how can I get #php?
<idiocrash>
er, join
bilalq has quit [Remote host closed the connection]
chimkan has joined #ruby
timonv_ has joined #ruby
tyangerine has quit [Ping timeout: 245 seconds]
recycle has quit [Remote host closed the connection]
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
timonv has quit [Read error: Connection reset by peer]
recycle has joined #ruby
cparen has quit [Quit: cparen]
chrishough has joined #ruby
omg765 has joined #ruby
recycle has quit [Remote host closed the connection]
jfelchner has left #ruby ["WeeChat 0.3.9.2"]
mockra has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
ananthakumaran has joined #ruby
chimkan has quit [Ping timeout: 264 seconds]
beneggett has joined #ruby
nazty has joined #ruby
nignaztic has quit [Ping timeout: 272 seconds]
x82_nicole has joined #ruby
osaut has joined #ruby
cparen has joined #ruby
zeade has quit [Quit: Leaving.]
zeade has joined #ruby
cha1tanya has quit [Read error: Connection reset by peer]
joeycarmello has quit [Ping timeout: 264 seconds]
generalizzimo has quit [Remote host closed the connection]
chimkan_ has joined #ruby
x82_nicole has quit [Client Quit]
cha1tanya has joined #ruby
generalissimo has joined #ruby
<shevy>
idiocrash NOOO
<shevy>
please man
<shevy>
DO NOT JOIN THE EVIL SIDE
<shevy>
STAY HERE!!!
<proph3t>
lol
<shevy>
idiocrash first, sacrifice 3 kittens
<proph3t>
it's caused the ruby gems have been exploited
<proph3t>
=(
<shevy>
then make love to a car
<shevy>
and last but not least, idiocrash, register at freenode, then join #php
<shevy>
proph3t I used to hate gems
<shevy>
but they are somewhat ok-ish
<shevy>
"gem install bla" is useful, when it is kept simple
n1x has joined #ruby
mercwithamouth has quit [Quit: leaving]
mercwithamouth has joined #ruby
mahmoudimus has joined #ruby
nomenkun has joined #ruby
timonv_ has quit [Ping timeout: 256 seconds]
n1x has quit [Max SendQ exceeded]
huoxito has quit [Ping timeout: 248 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
n1x has joined #ruby
chimkan__ has joined #ruby
blacktulip has joined #ruby
innohero has quit [Ping timeout: 264 seconds]
quest88_ has quit [Quit: quest88_]
ilyam has joined #ruby
ilyam has quit [Client Quit]
<mehwork>
i love when phpers diss ruby for the recent security issues when php has and will continue to have far more vulernabilities
chimkan_ has quit [Ping timeout: 264 seconds]
chrishough has quit [Quit: chrishough]
<aedornm>
biasness is glorious.
jimeh has quit [Ping timeout: 245 seconds]
davidcelis has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
erichmenge has quit [Ping timeout: 248 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
<dyeske>
how do I just get the top level "IRB" from that?
bradhe has joined #ruby
jimeh has joined #ruby
erichmenge has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
module has joined #ruby
Takehiro has joined #ruby
<module>
I have this module (http://pastie.org/5980649) which I'm extending into classes. Is there any better way to achieve lines 7-9? Overriding self.extended seems to be hackish.
jonathanpenn has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 252 seconds]
<mehwork>
how can i find the source code to ruby's 'time' module?
slainer68 has joined #ruby
a_a_g1 has joined #ruby
jbhewitt has joined #ruby
skcin7 has quit [Quit: Computer has gone to sleep.]
xAndy is now known as xandy
dwn has joined #ruby
dwn has quit [Changing host]
dwn has joined #ruby
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
a_a_g has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
x82_nicole has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
<idiocrash>
anyone in here using TextMate 2?
beneggett has joined #ruby
mercwithamouth has quit [Quit: leaving]
mercwithamouth has joined #ruby
d2dchat has joined #ruby
frem has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
joeycarmello has joined #ruby
skcin7 has joined #ruby
mercwithamouth has quit [Client Quit]
nomenkun has quit [Remote host closed the connection]
johndouthat has quit [Read error: Connection reset by peer]
dekronin1 has joined #ruby
johndouthat has joined #ruby
mercwithamouth has joined #ruby
mockra has quit [Remote host closed the connection]
hackerdude has quit [Remote host closed the connection]
joeycarmello has quit [Read error: Operation timed out]
locriani has quit [Read error: Connection reset by peer]
DrCode has quit [Remote host closed the connection]
kenichi has joined #ruby
crazed has quit [Ping timeout: 256 seconds]
ryanf has quit [Quit: broken pipes |||]
zz_chrismcg is now known as chrismcg
DrCode has joined #ruby
brook has quit []
johndouthat has quit [Quit: johndouthat]
maletor has quit [Quit: Computer has gone to sleep.]
havenn has quit [Ping timeout: 255 seconds]
ryanf has joined #ruby
sayan has joined #ruby
SeySayux has joined #ruby
haxrbyte has joined #ruby
jaequery has quit [Quit: Computer has gone to sleep.]
icole has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
adeponte has joined #ruby
hoelzro|away is now known as hoelzro
sayan has quit [Excess Flood]
<heftig>
pyro111: the first is the node for the doctype, not a html node
haxrbyte has quit [Remote host closed the connection]
sayan has joined #ruby
haxrbyte has joined #ruby
moos3 has quit [Ping timeout: 245 seconds]
freeayu has quit [Quit: 离开]
vlad_starkov has quit [Remote host closed the connection]
ph^ has quit [Ping timeout: 276 seconds]
adeponte has quit [Ping timeout: 252 seconds]
robotmay has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
ChampS666 has joined #ruby
vlad_starkov has joined #ruby
chimkan__ has quit [Read error: Connection reset by peer]
<pyro111>
heftig: thanks, now it can be safely ignored p doc.children.map &:class # => [Nokogiri::XML::DTD, Nokogiri::XML::Element]
maxmanders has joined #ruby
chimkan_ has joined #ruby
main_ has joined #ruby
timonv has joined #ruby
tjbiddle has joined #ruby
blaxter has joined #ruby
Takehiro has joined #ruby
havenn has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
chimkan_ has quit [Ping timeout: 246 seconds]
ddv has quit [Ping timeout: 240 seconds]
mneorr has joined #ruby
chimkan has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
enviable has joined #ruby
AntiTyping has quit [Quit: AntiTyping]
ddv has joined #ruby
ryanf has quit [Quit: leaving]
TheFuzzball has joined #ruby
Tau has left #ruby [#ruby]
TheFuzzball has quit [Max SendQ exceeded]
mneorr has quit [Ping timeout: 256 seconds]
TheFuzzball has joined #ruby
dr_bob has joined #ruby
HHRy has joined #ruby
wreckimnaked has joined #ruby
tvw has joined #ruby
Hypn has joined #ruby
nomenkun has joined #ruby
elkclone has joined #ruby
cha1tanya has quit [Excess Flood]
AndChat|102836 has quit [Read error: Connection reset by peer]
cha1tanya has joined #ruby
Elhu has joined #ruby
jon_wingfield has joined #ruby
cha1tanya has quit [Read error: Connection reset by peer]
lkba has joined #ruby
cha1tanya has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
icole has joined #ruby
spider-mario has joined #ruby
banseljaj has quit [Ping timeout: 248 seconds]
imami has joined #ruby
imami is now known as banseljaj
ddv has quit [Changing host]
ddv has joined #ruby
gia has quit [Ping timeout: 245 seconds]
v1p has joined #ruby
Trudko has joined #ruby
skrewler has joined #ruby
Morkel has quit [Quit: Morkel]
slainer68 has joined #ruby
Morkel has joined #ruby
Gajanan has quit [Quit: Leaving.]
chussenot has joined #ruby
workmad3 has joined #ruby
icole_ has joined #ruby
adambeynon has joined #ruby
noxoc has joined #ruby
icole has quit [Read error: Connection reset by peer]
cparen has quit [Quit: cparen]
dhruvasagar has joined #ruby
jgrevich has quit [Remote host closed the connection]
berkes has joined #ruby
louisror has joined #ruby
bradhe has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 255 seconds]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
elaptics`away is now known as elaptics
skrewler has left #ruby [#ruby]
jbw has joined #ruby
nomenkun_ has joined #ruby
Vainoharhainen has joined #ruby
arya_ has joined #ruby
wudofyr_ has quit [Ping timeout: 244 seconds]
cibs has quit [Ping timeout: 256 seconds]
cibs has joined #ruby
berkes has quit [Ping timeout: 245 seconds]
br4ndon has joined #ruby
aryatosh has quit [Ping timeout: 255 seconds]
flyingWhale has joined #ruby
arya has quit [Ping timeout: 244 seconds]
flyingWhale has left #ruby [#ruby]
<zeppelin>
canton7: ok, there aint nothing in core, i tried something like Hash.new({}).merge(my_hash)[:foo1][:foo2][:foo3]
tagrudev has quit [Remote host closed the connection]
reinaldob has joined #ruby
flyingWhale has joined #ruby
tagrudev has joined #ruby
toekutr has quit [Read error: Connection reset by peer]
poikon_ is now known as poikon
dekroning has joined #ruby
Takehiro has quit [Remote host closed the connection]
sayan has quit [Read error: Connection reset by peer]
<flyingWhale>
having troubles Ruby, bundle install says Could not reach rubygems repository https://rubygems.org
m8 has joined #ruby
dekronin1 has quit [Ping timeout: 248 seconds]
<HHRy>
flyingWhale: Hi, there. Rubygems are having some troubles just now, I'd guess that's why. If you go to their website and the status page, you'll see more details.
wudofyr_ has joined #ruby
<flyingWhale>
no i hav done the install in my laptop(no proxy involved), but cant do it in a desktop that is behind a proxy
emergion has joined #ruby
banjara has quit [Quit: Leaving.]
timmow has joined #ruby
<flyingWhale>
created .gemrc to specify i m using proxy, still cant make it work
Vainoharhainen has quit [Read error: Connection reset by peer]
rippa has joined #ruby
Ins3kt has joined #ruby
Ins3kt has left #ruby [#ruby]
guille has joined #ruby
Xeago has joined #ruby
aaronmcadam has joined #ruby
Vainoharhainen has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
jonathanpenn has joined #ruby
<guille>
do you happen to know how to force rvm to use gcc instead of clang?
bradhe has joined #ruby
chussenot has quit [Quit: chussenot]
jonathanpenn has quit [Ping timeout: 248 seconds]
Hypn is now known as Hypn_
kylescottmcgill has quit [Ping timeout: 260 seconds]
chussenot has joined #ruby
fubhy has joined #ruby
<dawkirst>
New to Ruby (and programming in general) and definitely new to TDD - busy playing around with Cucumber. My question is, should it be used for unit tests as well?
hakunin has quit [Remote host closed the connection]
Hypn has joined #ruby
hakunin has joined #ruby
Hypn_ has quit [Quit: Page closed]
<fubhy>
Morning! I am trying to run 'bundle exec guard' from another directory without cd'ing into it. This is what I have so far: "BUNDLE_GEMFILE=/path/to/gemfile bundle exec guard"
nomenkun_ has quit [Remote host closed the connection]
<fubhy>
however, it gives me ERROR - No Guardfile found, please create one with `guard init`.
apok has quit [Quit: apok]
<fubhy>
even though the guardfile is in the same directory as the gem file
havenn has quit [Remote host closed the connection]
niklasb has joined #ruby
icole_ has quit [Remote host closed the connection]
havenn has joined #ruby
fyolnish has quit [Ping timeout: 276 seconds]
dwn has quit [Ping timeout: 256 seconds]
sbear has quit [Ping timeout: 245 seconds]
flyingWhale has quit [Excess Flood]
hakunin has quit [Ping timeout: 248 seconds]
flyingWhale has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 244 seconds]
Virunga has joined #ruby
AndChat| has quit [Ping timeout: 276 seconds]
bjeanes has quit [Ping timeout: 244 seconds]
buibex has joined #ruby
Banistergalaxy has joined #ruby
havenn has quit [Ping timeout: 255 seconds]
dcwu has quit [Quit: Leaving.]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
banseljaj is now known as imami|afk
browndawg has joined #ruby
ebouchut has joined #ruby
blueOxigen has quit [Ping timeout: 240 seconds]
kylescottmcgill has joined #ruby
icole has joined #ruby
innohero has joined #ruby
dekroning has quit [Ping timeout: 255 seconds]
ABK has joined #ruby
ChampS666 has quit [Ping timeout: 276 seconds]
backjlack has joined #ruby
<hoelzro>
is there an issue with using Date.today in a thread while the main thread is sleeping?
renanoronfle has joined #ruby
Rydefalk is now known as Pufferfood
Pufferfood has quit [Remote host closed the connection]
Rydefalk has joined #ruby
berkes has joined #ruby
Rydefalk is now known as Pufferfood
osaut has joined #ruby
fubhy has left #ruby ["Leaving"]
beliveyourdream has joined #ruby
keymone has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
gestahlt has joined #ruby
Koshian has quit [Ping timeout: 255 seconds]
<gestahlt>
Hi
<gestahlt>
Im a bit stuck
icole has quit [Remote host closed the connection]
Koshian has joined #ruby
<gestahlt>
Im trying to put the output of a linux command into a string
<tobiasvl>
gestahlt: what have you tried?
<gestahlt>
but my variable is of class True and not string
<gestahlt>
tobiasvl: fdisk_outout = fdisk -l
<hoelzro>
oh, I see now
<gestahlt>
I kinda think i know why it is that way
<gestahlt>
Because you return true or false depending on success (at least thats what i think)
megha has joined #ruby
<gestahlt>
but i need a string
thisirs has joined #ruby
<tobiasvl>
gestahlt: do you mean fdisk_output = `fdisk -l`
<gestahlt>
fdisk_output = system "fdisk -l" thats the 1:1 line
<tobiasvl>
gestahlt: system() returns true/false
<gestahlt>
aaaah
<tobiasvl>
you want `` or %x() instead
<tobiasvl>
fdisk_output = `fdisk -l`
<tobiasvl>
for example
BizarreCake has joined #ruby
heftig has quit [Quit: leaving]
<gestahlt>
good to know! So with system i can validate a successful command. Thats also very useful
<gestahlt>
Ah great! Works as expected, lets grep this and build an array
<gestahlt>
Thanks for the help
heftig has joined #ruby
nomenkun has joined #ruby
inverse has quit [Client Quit]
Guest38915 is now known as DaZ
Virunga has quit [Remote host closed the connection]
ebouchut has quit [Remote host closed the connection]
browndawg1 has joined #ruby
baphled has quit [Ping timeout: 264 seconds]
browndawg has quit [Ping timeout: 240 seconds]
therod has joined #ruby
horofox has quit [Quit: horofox]
nomenkun has quit [Ping timeout: 276 seconds]
icole has joined #ruby
kylescottmcgill has quit [Ping timeout: 256 seconds]
oinkon has quit [Ping timeout: 276 seconds]
ChampS666 has joined #ruby
baphled has joined #ruby
JackyAlcine is now known as jalcine
wargasm1 has joined #ruby
asteridz has quit [Quit: Leaving.]
wargasm has quit [Ping timeout: 264 seconds]
enviable has quit [Quit: enviable]
emergion has quit [Quit: Computer has gone to sleep.]
radic has quit [Ping timeout: 252 seconds]
psyl0n has joined #ruby
therod has quit [Read error: Connection reset by peer]
JonnieCache has quit [Quit: Reconnecting]
JonnieCache has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
dekroning has joined #ruby
kylescottmcgill has joined #ruby
icole has quit [Remote host closed the connection]
chimkan has quit [Ping timeout: 264 seconds]
Takehiro has joined #ruby
browndawg1 has quit [Ping timeout: 248 seconds]
aapzak has joined #ruby
gyre007 has joined #ruby
Takehiro has quit [Ping timeout: 276 seconds]
joonty has joined #ruby
flyingWhale has left #ruby [#ruby]
<joonty>
hey peeps
<joonty>
anyone intimately acquainted with jruby? am on the jruby channel too but no-one is alive
eka has joined #ruby
RurouniJones has joined #ruby
Virunga has joined #ruby
megha has quit [Ping timeout: 245 seconds]
arturaz has joined #ruby
icole has joined #ruby
dawkirst has quit [Ping timeout: 264 seconds]
joonty has quit [Ping timeout: 240 seconds]
Bry8Star has quit [Remote host closed the connection]
joonty has joined #ruby
Pandaen has joined #ruby
fermion has joined #ruby
pskosinski has joined #ruby
<joonty>
no jruby users here?
yshh has quit [Remote host closed the connection]
Michael_ has joined #ruby
shtirlic has joined #ruby
carloslopes has joined #ruby
keymone has quit [Quit: keymone]
mjolk has joined #ruby
nateberkopec has joined #ruby
robotmay has quit [Ping timeout: 248 seconds]
robotmay has joined #ruby
reuven has joined #ruby
mklappstuhl has joined #ruby
dexcs has joined #ruby
dexcs has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
RonScagz has joined #ruby
sbear has joined #ruby
TomyLobo has joined #ruby
answer_42 has joined #ruby
ereslibre has joined #ruby
mrbloo has joined #ruby
mrbloo has quit [Client Quit]
bradhe has joined #ruby
daniel_- has joined #ruby
megha has joined #ruby
<shevy>
joonty not me, I avoid java more than cholera
skum has joined #ruby
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby
jonathanpenn has joined #ruby
<gestahlt>
Does anyone know how to invert matches with grep in ruby? Just like fgreb -v?
rippa has quit [Read error: Connection reset by peer]
<gestahlt>
fgrep -v
rippa has joined #ruby
<hoelzro>
gestahlt: are you shelling out to grep?
bradhe has quit [Ping timeout: 255 seconds]
Vainoharhainen has quit [Ping timeout: 240 seconds]
<tobiasvl>
gestahlt: what's the code?
<gestahlt>
hoelzro: No, i use array.grep
<tobiasvl>
there are several ways to "invert"
Goles has joined #ruby
<tobiasvl>
use array.reject instead maybe?
<hoelzro>
gestahlt: so invert your condition
<hoelzro>
or yeah, use reject
<gestahlt>
Im currently building an array with an fdisk output
<gestahlt>
i grepped /dev/sd[a-z] so gar
<gestahlt>
now i need to remove "Disk"
tiennou has joined #ruby
<gestahlt>
okay
<gestahlt>
i look at reject
Goles has quit [Max SendQ exceeded]
<tobiasvl>
pretty simple
<tobiasvl>
Array.reject {|x| x =~ /Disk/ }
<tiennou>
hi ! i'm having a hard time using 1.9.3 CSV on a UTF-16 file
Goles has joined #ruby
Goles has quit [Max SendQ exceeded]
bluOxigen has joined #ruby
jonathanpenn has quit [Ping timeout: 255 seconds]
<tiennou>
it's a nono-standard CSV format with an additional "**Thing" marker at the start, so I have to split the IO from a File (so that I can gets the first line)
<gestahlt>
thanks!
Goles has joined #ruby
<tiennou>
but then I get an exception when doing CSV.each : csv.rb:1851:in `gets': "A\x00" on UTF-16 (Encoding::InvalidByteSequenceError)
<gestahlt>
Yay
<gestahlt>
Now we get 2 dimensional!
icole has quit [Remote host closed the connection]
Goles has quit [Max SendQ exceeded]
ebouchut has joined #ruby
Goles has joined #ruby
nomenkun has joined #ruby
keymone has joined #ruby
keymone has quit [Remote host closed the connection]
Goles has quit [Client Quit]
keymone has joined #ruby
therod has joined #ruby
arkiver has quit [Quit: Leaving]
gyre008 has joined #ruby
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby
bartj3 has quit []
buibex has quit [Remote host closed the connection]
Virunga has quit [Remote host closed the connection]
nari has joined #ruby
girija_ has quit [Ping timeout: 255 seconds]
gyre007 has quit [Ping timeout: 264 seconds]
Dwarf has quit [Remote host closed the connection]
kylescottmcgill has quit [Ping timeout: 256 seconds]
bartj3 has joined #ruby
sepp2k has joined #ruby
codespectator has joined #ruby
zigomir has quit [Quit: zigomir]
Giorgio has quit [Ping timeout: 264 seconds]
lele has quit [Ping timeout: 246 seconds]
moos3 has joined #ruby
freeayu has joined #ruby
krz has quit [Ping timeout: 252 seconds]
buibex has joined #ruby
mrc_ has joined #ruby
Goles has joined #ruby
lele has joined #ruby
Giorgio has joined #ruby
samuel02 has joined #ruby
larissa has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
_br_ has quit [Excess Flood]
sbear has quit [Ping timeout: 245 seconds]
kylescottmcgill has joined #ruby
nkr has joined #ruby
girija_ has joined #ruby
mthscndd has joined #ruby
_br_ has joined #ruby
RagingDave has joined #ruby
ddv has quit [Ping timeout: 240 seconds]
jjbohn has joined #ruby
RagingDave has quit [Client Quit]
atno has joined #ruby
ddv has joined #ruby
samuel02 has quit [Ping timeout: 256 seconds]
keymone has quit [Quit: keymone]
Squarepy has joined #ruby
daniel_- has quit [Quit: WeeChat 0.3.9.2]
Goles has quit [Quit: Computer has gone to sleep.]
samuel02 has joined #ruby
samuel02_ has joined #ruby
spinagon has joined #ruby
ahokaomaeha has joined #ruby
psyl0n has left #ruby [#ruby]
deed02392 has quit [Ping timeout: 240 seconds]
spinagon has quit [Read error: Connection reset by peer]
spinagon has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
mthscndd has left #ruby [#ruby]
hybris has joined #ruby
coder_neo has joined #ruby
arkiver has joined #ruby
v1p has quit [Ping timeout: 276 seconds]
girija_ has quit [Ping timeout: 244 seconds]
samuel02 has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Ping timeout: 255 seconds]
zommi has left #ruby [#ruby]
deed02392 has joined #ruby
cha1tanya has quit [Quit: Leaving]
Squarepy has quit [Changing host]
Squarepy has joined #ruby
s1n4 has joined #ruby
v0n has joined #ruby
ahokaomaeha has quit [Ping timeout: 245 seconds]
ahokaomaeha has joined #ruby
Urtokk has joined #ruby
SrPx has quit [Quit: SrPx]
love_color_text has joined #ruby
samphippen has joined #ruby
mmitchell has joined #ruby
nomenkun_ has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
h8R has quit [Read error: Connection reset by peer]
moshee has quit [Ping timeout: 276 seconds]
moshee has joined #ruby
h8R has joined #ruby
otherj has joined #ruby
h8R has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
anonymuse has joined #ruby
h8R has joined #ruby
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
angusiguess has joined #ruby
Banistergalaxy has quit [Ping timeout: 256 seconds]
Teduardo has quit [Ping timeout: 276 seconds]
Teduardo has joined #ruby
<shevy>
hmmm
zommi has joined #ruby
ryanh has quit [Quit: Computer has gone to sleep.]
gyre008 has quit [Remote host closed the connection]
gyre007 has joined #ruby
AsgardBSD_ has joined #ruby
niklasb has quit [Ping timeout: 245 seconds]
asgardBSD has quit [Ping timeout: 246 seconds]
<gestahlt>
Okay, i got my 2 dimensional array
<gestahlt>
wohoo
ereslibre has quit [Remote host closed the connection]
<gestahlt>
I just need to add a char
<gestahlt>
hm
guille has quit [Remote host closed the connection]
ereslibre has joined #ruby
oerrze has quit [Quit: Leaving...]
dekroning has quit [Ping timeout: 255 seconds]
girija_ has joined #ruby
<gestahlt>
ive got a 2 dimensional array now. The only problem is: one array has lenght of 8 and the others have the lenght of 8. i need to have all the lenght of 8
love_color_text has quit [Remote host closed the connection]
<gestahlt>
uh the others have the lenght of 7
<gestahlt>
i know why this happens. When i convert the string to array, the missing char is a whitespace
<gestahlt>
I basically need to add a char to the string behind a certain matching word and then all would be good
sailias has joined #ruby
<gestahlt>
When you get the output of fdisk -l, you see $drivename $bootflag $cylinder_start etc..
dawkirst has joined #ruby
<dawkirst>
what is the ||= operator?
spinagon has quit [Ping timeout: 240 seconds]
innohero has quit [Quit: Leaving]
<gestahlt>
When you dont have on a partition a $bootflag, then you will miss an element in the array. So i basically have to add a bootflag char.. i would use X or N for validation later
tgraham has joined #ruby
innohero has joined #ruby
innohero has quit [Client Quit]
<gestahlt>
so what would be the better method? Adding an element to the array? (if lenght < 8 then add char after array[0] (so it totals up to 8)) or to add it in the string before converting to array?
Pandaen has quit [Remote host closed the connection]
Pandaen has joined #ruby
Ergo^ has joined #ruby
<invisime>
backjlack: like, on accident? my project uses bundler to lock our gem versions to a slightly older version because we're deploying to ARM7 hardware via cross-compiler.
browndawg has left #ruby [#ruby]
<arturaz>
invisime, why should he use curl or wget instead of net/http?
<arturaz>
that doesn't make any sense
angusiguess has joined #ruby
<arturaz>
fuzai, net/http is the right module
ij has joined #ruby
<ij>
Why doesn't this work and how come the stack trace's incorrect? http://sprunge.us/PHYg
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
pu22l3r has joined #ruby
beaky has joined #ruby
<beaky>
hello
pu22l3r has quit [Remote host closed the connection]
<hoelzro>
which (iirc) defaults to insertion order
<joonty>
oops
aaronmcadam has joined #ruby
crazed_ is now known as crazed
robotmay has joined #ruby
<joonty>
in php as soon as you define a key yourself, it breaks natural order
Goles has joined #ruby
Michael_ has quit [Remote host closed the connection]
<joonty>
it's dodgy
norm has joined #ruby
sayan has quit [Read error: Connection reset by peer]
sbear has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
postmodern has quit [Quit: Leaving]
<norm>
i've got a method on an object that calls "super" to invoke the same method on the object's parent. is there a way to metaprogramly add a method in between the child and parent?
DaltonUS has joined #ruby
browndawg1 has joined #ruby
v0n has joined #ruby
<banisterfiend>
norm: yes
<banisterfiend>
norm: can you gist some code though?
<norm>
oh sure
<banisterfiend>
im not sure if your'e tlaking about subclass/superclass relationship or instance/class relationship
fixl has quit [Remote host closed the connection]
mmitchel_ has joined #ruby
jgarvey has joined #ruby
miskander has joined #ruby
love_color_text has quit [Ping timeout: 244 seconds]
dorei has joined #ruby
mmitchell has quit [Ping timeout: 248 seconds]
js-coder has joined #ruby
<dorei>
hello, do you know how can I play a sound from within ruby?
<norm>
banisterfiend: if i'm not mistaken, the instance/class relationship would be solved with the instance's eigenclass
<js-coder>
Hey guys, is there something like underscore.js's pluck method in Ruby or activesupport? I got [{a: 1, b: 2}, {a: 3, b: 4}] and want to collect the values for :[1, 3]
<banisterfiend>
norm: yeah
<banisterfiend>
norm: in this case, include a module
<hoelzro>
js-coder: array.map { |h| h[:a] }
solidoodlesuppor has joined #ruby
<banisterfiend>
norm: modules are inserted between the subclass/superclass and any methods they have are looked up after subclass methods but before superclass methods
<norm>
banisterfiend: ahh yes
adkron has joined #ruby
<norm>
banisterfiend: and you can have multiple modules with the same method defined, all in a chain?
<banisterfiend>
norm: yes
<banisterfiend>
norm: most recently included gets precedence
<norm>
banisterfiend: super thanks.
arturaz has quit [Ping timeout: 245 seconds]
<js-coder>
hoelzro: Thanks!
<hoelzro>
np
zph has joined #ruby
maycon has quit [Remote host closed the connection]
<norm>
banisterfiend: thanks. i need to re-read the Metaprogramming book
<fuzai>
I see each_line for StringIO, is there something that would only give me the first line? i looked for a first_line and a first and i see nothing
<fuzai>
or do i need to do something like test.each_line.shift ?
<dorei>
fuzai: something.to_a.first ?
<hoelzro>
fuzai: test.lines.first?
god has joined #ruby
god is now known as Guest66236
<fuzai>
ok i'll try that
niklasb has joined #ruby
<pyro111>
gestahlt: you may try hash with array as a key
rippa has quit [Read error: Connection reset by peer]
Kuifje has joined #ruby
moofy has joined #ruby
<moofy>
ahoy
<moofy>
I have a question and i'm not sure quite where to ask. but here goes
jrist-mtg is now known as jrist
stopbit has joined #ruby
maxmanders has quit [Ping timeout: 252 seconds]
axl_ has joined #ruby
krz has joined #ruby
<moofy>
what would you suggest as a ruby framework to a newbie for learning? I want to make myself a simplish blog/personal site as a learning exercise
jonathanpenn has quit [Remote host closed the connection]
otters has joined #ruby
<moofy>
but rails seems to be huge overkill and i don't know if sinatra would let me do interactive stuff. any thoughts?
dorei has joined #ruby
<moofy>
or places you can send me that i should have googled but missed
maxmanders has joined #ruby
carloslopes has quit [Ping timeout: 252 seconds]
louisror has joined #ruby
<JonnieCache>
start in rails because it will teach you the sensible way to organise things
wyhaines has joined #ruby
<JonnieCache>
then move onto sinatra
PolPot_ has quit [Ping timeout: 276 seconds]
<JonnieCache>
sinatra is very freeform, which is good once you know which way to do things and why
fmcgeough has joined #ruby
carloslopes has joined #ruby
<JonnieCache>
but if youre inexperienced you can shoot yourself in the foot with it
<JonnieCache>
moofy: my advice would be to make your personal site in rails, then remake it in sinatra. you'll learn a hell of a lot doing that
<solidoodlesuppor>
Basically I was getting errors that said that I didn't have the gems I installed
<eka>
moofy: I would recommend you the book "agile web development with rails"
<moofy>
yeah i'm going through the michael hartl tutorial now
<solidoodlesuppor>
Like I would "require wx" and it would drop an error saying it couldn't find it
<moofy>
but it's a bit overwhelming to take it in
ananthakumaran has joined #ruby
freeayu has quit [Remote host closed the connection]
<workmad3>
solidoodlesuppor: that's nothing to do with rubygems.org
<JonnieCache>
moofy: yeah. just do it slowly. if you get through all of it you will have a formidable skillset
<solidoodlesuppor>
right. But I obviously downloaded the gem. So what is the issue? do you know?
<solidoodlesuppor>
it does this for tk too. And rubygems itself.
<moofy>
all i want to try and make right now is something i can write blog posts in and/or upload some markdown. seemed like something i could work out
<solidoodlesuppor>
Is it a path issue?
<workmad3>
solidoodlesuppor: at a guess, you're using ruby 1.8 and didn't do 'require "rubygems" '... or possibly you forgot to quote the string with the gem name
<workmad3>
solidoodlesuppor: or it could be a screwed up rubygems install
<moofy>
though i know there's a million cms/blog things that do it already
<solidoodlesuppor>
I have 1.9, I did do "require rubygems" I had the quotes and it threw an error on everything
<JonnieCache>
moofy: half the point of rails is to do everything the Right Way(tm) thats largely why the tutorial is so heavy
<moofy>
yeah
<JonnieCache>
moofy: if it left stuff out that would be missing the point
<moofy>
there's so many
<moofy>
'you can do this or you can use that'
<moofy>
without explaining why
<moofy>
like what's webrick/thin/unicorn/puma and why does it matter
<workmad3>
solidoodlesuppor: require "rubygems", not "require rubygems"
<solidoodlesuppor>
I copy pasted this from another source. Didn't screw it up.
<otters>
heh "require rubygems" is just a string
<moofy>
rails feels half the time like it's a magic black box that never explains what it's actually doing
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
<solidoodlesuppor>
At any rate it choked on every library I tried to include
beardyjay has quit [Ping timeout: 240 seconds]
TotalEvil has joined #ruby
<TotalEvil>
hi everyone
<TotalEvil>
can someone help with script
Dwarf has joined #ruby
<moofy>
<othello> enters stage left
arturaz has joined #ruby
<moofy>
<iago> "My leige, desdemona is waiting for you"
<solidoodlesuppor>
If I screwed up and just put a string, it wouldn't have looked for the library in the first place
<shevy>
moofy I think you will have this problem for every piece of software that becomes very complex
Hypn has joined #ruby
<shevy>
or just big
<moofy>
yeah i guess so
browndawg1 has quit [Quit: Leaving.]
beiter has joined #ruby
<moofy>
some i get
<moofy>
but what's unit and integration testing?
<moofy>
so much jargon for a non programmer sometimes :/
<shevy>
I have two large projects myself - ruby build tools (compile or install software), and dia-shell (should one day be able to replace bash with this), and I feel as if I put like 10 hours work into each, and I get only like a 0.05% improve of its overall featureset
<shevy>
whereas with a small, new project, I can focus on what I really need, what it really solves... and it feels as if my time spent there is muuuch more productive and useful
buibex has quit [Remote host closed the connection]
<shevy>
well some software requires tests
<shevy>
if you want to fly to the sun
lunarjar has joined #ruby
<shevy>
and it costs 3 billion dollars
<shevy>
so yeah, you need tests!
megha has quit [Read error: Operation timed out]
jackyalcine has joined #ruby
<shevy>
but "def foo(i); i.to_i * i.to_i; end" will that need many tests!!!
<TotalEvil>
can someone help?
<shevy>
I think many of those tests will come down to "but ruby has no strict typing so we can never rely on the input to be good"
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
<shevy>
TotalEvil always describe the problem with the link ok
larissa has quit [Quit: Leaving]
PragCypher has joined #ruby
<shevy>
I dont know in advance if I can help
<TotalEvil>
oh sorry)
<shevy>
if it is a problem like "need help with activerecord", I know I can not help
<TotalEvil>
i have problem with hostname command
<shevy>
if it is a general ruby problem, I can try to help
<TotalEvil>
and hostname -I
<shevy>
hmmm what is that
<TotalEvil>
it's command-line linux tool
<shevy>
argh
<shevy>
can you please use a pastie with syntax highlighting
<shevy>
pleaaaaase
<TotalEvil>
i need put ouput of that toll to variable
browndawg has joined #ruby
<TotalEvil>
ohh
<TotalEvil>
sure
kristofers has joined #ruby
Banistergalaxy has quit [Ping timeout: 276 seconds]
<TotalEvil>
bash: -c: line 0: unexpected EOF while looking for matching `"'
<TotalEvil>
bash: -c: line 1: syntax error: unexpected end of file
<TotalEvil>
sh: line 1: ": command not found
<TotalEvil>
sh: line 2: ": command not found
<TotalEvil>
Error performing action:
<shevy>
no that is bad
<TotalEvil>
sure
headius has joined #ruby
<TotalEvil>
ohh sry(( but it;s my output
<shevy>
yeah
<shevy>
I tell you
<shevy>
assemble the string you want into _
<shevy>
_ = ''
<shevy>
_ << 'hostname'
<Kobrakao>
algum brazuka ai?
<shevy>
Kobrakao ENGLISH MAN
<TotalEvil>
i used urs erver_name=`hostname` # => "computer\n"
nari has quit [Ping timeout: 246 seconds]
<shevy>
Kobrakao we are people from planet earth. we all must learn english
<shevy>
TotalEvil ok so you have a string there
<TotalEvil>
shevy sry(( but i newbie to ruby
<TotalEvil>
more bash specific
<TotalEvil>
trying) learn
Banistergalaxy has joined #ruby
<shevy>
ok see
<TotalEvil>
if u can) show with some examples
<shevy>
let's say I want to use mplayer to play a file called foo.avi
<TotalEvil>
i will be very thankfull
<shevy>
I usually do it like this:
<shevy>
_ = ''
<shevy>
_ << 'mplayer'
<shevy>
# _ << ' ' # here we add some extra options to mplayer
<shevy>
_ << ' foo.avi'
anonymuse has joined #ruby
<shevy>
puts _
adkron_ has quit [Ping timeout: 244 seconds]
<shevy>
system _
adkron has quit [Ping timeout: 276 seconds]
<shevy>
in reality, I make this even shorter. I use esystem(_) which outputs the command, then runs system() call on it
<shevy>
so whatever the string you used, it was incorrect TotalEvil
<TotalEvil>
can i redicted output to #{} variable
<shevy>
what is #{}
<shevy>
there is no variable there
<shevy>
it has no content
<shevy>
you need to fill in something ;)
<tobiasvl>
#{a} interpolates the variable a
<TotalEvil>
#{server_ip}
<shevy>
yeah!
<TotalEvil>
i tried system
<TotalEvil>
exec and ``
<shevy>
TotalEvil you need #{} only if you want to make string substitution
the_mentat has joined #ruby
<TotalEvil>
all shows or syntacs error or not puts into variable
<shevy>
TotalEvil ok FIRST STEP - build the proper command, BEFORE using system() ok?
<shevy>
so for now, forget about system, exec and ``
<TotalEvil>
i have correct command
ChampS666 has quit [Ping timeout: 256 seconds]
<shevy>
ok what is the command, paste it here
<Kobrakao>
shevy: :/
<TotalEvil>
hostname -I and hostname
<shevy>
no the full command
<Kobrakao>
my english is more or less
<shevy>
I tell you, I used "hostname -I" before and I got no error
<shevy>
Kobrakao does not matter. english is simple. use 100 words. not more ... :)
<TotalEvil>
error gets only at #{server_ip} and #{server_name}
<TotalEvil>
parsing
imami|afk is now known as banseljaj
<TotalEvil>
when) it must put ouput to that variables
peregrine81 has joined #ruby
<Kobrakao>
puts cliente.methods
<Kobrakao>
listing all methods
liquid-silence has joined #ruby
<Kobrakao>
of cliente?
liquid-silence has quit [Changing host]
liquid-silence has joined #ruby
<shevy>
TotalEvil you did not answer my question
drewtemp has joined #ruby
<shevy>
you still did not tell me the command
theRoUS has joined #ruby
theRoUS has joined #ruby
<norm>
i'm defining instance methods via a module that is dynamically included into a class, but need to access a variable from outside the module. i've figured out one way, but it seems awfully dirty, any other ideas? https://gist.github.com/4683679
rakuN has joined #ruby
<shevy>
Kobrakao yeah
<TotalEvil>
ohh i trying to explain
<TotalEvil>
if u run in linux console
<TotalEvil>
hostname
<TotalEvil>
u will get servername
joofsh has quit [Remote host closed the connection]
<banisterfiend>
norm: are you sure you need to do that?
<banisterfiend>
norm: can't you design it in a different way so you dont have to?
ddd has quit [Ping timeout: 245 seconds]
<banisterfiend>
i've never had to do anything like that afaicr
wallerdev has joined #ruby
_nitti has joined #ruby
<shevy>
TotalEvil yes, and you get this from ruby too: servername = `hostname` now servername has this information. it is a string
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
<norm>
banisterfiend: yeah i'd love to redesign it :-/
<TotalEvil>
yes i get it
<TotalEvil>
but
dkannan has quit [Quit: dkannan]
<banisterfiend>
norm: define_method methods are closures
<TotalEvil>
my #{servername}
Guest93977 has joined #ruby
<TotalEvil>
didn't get that output
<shevy>
TotalEvil why do you use #{}
<norm>
banisterfiend: bingo thanks
<TotalEvil>
that was basic in script
<TotalEvil>
so idk) really
Guest93977 has quit [Client Quit]
<TotalEvil>
can u suggest me) what i need to use
<shevy>
TotalEvil ok so you do not know why you use that
<shevy>
first use only what you need
<TotalEvil>
script from geeks
samphippen has quit [Read error: Operation timed out]
<TotalEvil>
i;m just try modify it
aquaranto has quit [Remote host closed the connection]
<shevy>
TotalEvil it is often easier to start from zero
hoelzro is now known as hoelzro|away
hoelzro|away is now known as hoelzro
megha has joined #ruby
abcdefg_ has joined #ruby
<TotalEvil>
have very short deadline
generalissimo has joined #ruby
<TotalEvil>
but this scipt exactly what i need
<TotalEvil>
just need find way correct that 2 variables
jackyalcine has quit [Ping timeout: 252 seconds]
<gestahlt>
Ah damn
<gestahlt>
still stuck with multidimensional arrays
<gestahlt>
hrm
<shevy>
TotalEvil use puts statements to debug
<shevy>
find the line that is the error, BEFORE the error happens
jonathanpenn has joined #ruby
<shevy>
you have a missing '"' surely somewhere in that string
<shevy>
so if you would append a '"' to your string variable, it could work
jonathanpenn has left #ruby [#ruby]
erichmenge is now known as foobot
rakuN has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
kpshek has joined #ruby
samphippen has joined #ruby
arturaz has quit [Ping timeout: 244 seconds]
angusigu1ss has joined #ruby
bradhe has joined #ruby
<TotalEvil>
not sure
<TotalEvil>
what u talking about
foobot is now known as erichmenge
renanoronfle has joined #ruby
joofsh has joined #ruby
tagrudev has quit [Remote host closed the connection]
bcuz has joined #ruby
<shevy>
TotalEvil the error gives an indication of the problem
<bcuz>
\join #python
<shevy>
TotalEvil use puts statement before that error happens, then look at what the line does with the error
<TotalEvil>
yes i saw "
<TotalEvil>
puts server_name ?
<shevy>
simply do and run the script and look at the output
bradhe has quit [Ping timeout: 240 seconds]
<TotalEvil>
sveny
<TotalEvil>
*shevy
<TotalEvil>
what i need write exactly
chimkan has joined #ruby
<shevy>
TotalEvil cant you simply tell me the full string you would use in bash
angusiguess has quit [Disconnected by services]
angusigu1ss is now known as angusiguess
danneu has joined #ruby
<TotalEvil>
[root@NewAntares ~]# hostname -I
<TotalEvil>
192.168.7.101
berkes has joined #ruby
<TotalEvil>
2nd is output
<shevy>
we solved this already
<tobiasvl>
I'm sure you're aware, but that's a local IP
jaequery has joined #ruby
<shevy>
I told you already that this works
<shevy>
your_ip = `hostname -I`
nga4 has joined #ruby
browndawg1 has joined #ruby
joshman_ has joined #ruby
browndawg1 has quit [Max SendQ exceeded]
ChampS666 has joined #ruby
<TotalEvil>
bro i use same
krainboltgreene has joined #ruby
<TotalEvil>
but #{server_name} didn't get it
Targen has joined #ruby
buibex has quit [Remote host closed the connection]
<TotalEvil>
i also tried ${server_name}
<TotalEvil>
and $server_name same no luck
bluOxigen has joined #ruby
<tobiasvl>
where would you put that?
browndawg has quit [Ping timeout: 248 seconds]
aquaranto has joined #ruby
<TotalEvil>
see pastie 67 line
<axl_>
is there an iPhone app that will help me stay up to date with important news in the ruby community, especially one which has push notifications?
browndawg has joined #ruby
<tobiasvl>
${server_name} doesn't MEAN anything
<shevy>
TotalEvil why do you use #{} again
testttts has joined #ruby
mikepack has joined #ruby
<axl_>
i feel embarrassed about finding out about the rubygems.org thing a day late
<shevy>
why is this still in your head TotalEvil
<testttts>
hello guys
<TotalEvil>
as i say i tried diff way
<TotalEvil>
$ and ${}
<TotalEvil>
also gets same
<Ergo^>
hey guys anyone willing to help me test something for error collection in ruby?
<TotalEvil>
what i can use
jjbohn has joined #ruby
<shevy>
TotalEvil no, you dont know ruby, you dont want to learn it. you poke into things without understanding... listen. x = 'world'; puts " hello #{x}" <--- do you understand what #{} does now
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
testttts has quit [Client Quit]
<tobiasvl>
TotalEvil: $variable means that variable is a global variable. ${variable} doesn't mean anything at all. #{variable} interpolates variable into a string
cparen has joined #ruby
chiel is now known as chiel`afk
chiel`afk is now known as chiel
bcuz has left #ruby [#ruby]
therod has quit [Read error: Connection reset by peer]
therod has joined #ruby
<shevy>
TotalEvil do you understand when you want to use #{} now
berkes has quit [Ping timeout: 245 seconds]
<shevy>
we can not continue until this makes it into your head
<dareign85>
you guys freelance?
<dareign85>
seems to be money in ruby im seeing :)
kristofers has quit []
<shevy>
there is only money in rails, not ruby
kristofers has joined #ruby
<dareign85>
yes
<TotalEvil>
yes i get u
<shevy>
TotalEvil will you use puts #{xyz} again then
<dareign85>
im doing an irc bot in ruby for my portfolio
derekprior has joined #ruby
<dareign85>
than ill do something in rails
<TotalEvil>
bro) i not using it after u say
<TotalEvil>
that was just old pastie
<Spooner>
dareign85, shevy Seems to be mostly Rails that I'm seeing.
rippa has joined #ruby
<shevy>
TotalEvil ok GOOD there is hope then
<Ergo^>
dareign85: id risk to say that theres more money in python if you want something else than just webdev
ChampS666 has quit [Ping timeout: 246 seconds]
<shevy>
TotalEvil you do not get any error now. right?
<TotalEvil>
if i get u correct
<TotalEvil>
i must use $
<dareign85>
i dont see much shit for python on odesk...guru..elance...etc
<shevy>
...
<tobiasvl>
TotalEvil: NO
<shevy>
I did not say anything about $
<tobiasvl>
TotalEvil: $ is for GLOBAL variables
<TotalEvil>
$variable
<shevy>
TotalEvil no please from WHERE do you get this information
<tobiasvl>
TotalEvil: do you have a GLOBAL variable?
Banistergalaxy has quit [Ping timeout: 276 seconds]
<TotalEvil>
args= "-a add -w -l \"#{service}\"
<TotalEvil>
etc
<aedornm>
oh. Shell script that was Rubified .. exciting.
samphippen has quit [Quit: Computer has gone to sleep.]
blf has joined #ruby
jgrevich has joined #ruby
<tobiasvl>
TotalEvil: but what doesn't work?
<shevy>
TotalEvil why is the last " with a \"
<shevy>
TotalEvil do you understand that you must have proper quotes
<shevy>
x = "foo" # <-- this is ok yes
<tobiasvl>
line 67 in your pastie works fine here (except that you should probably strip some newlines and use single quotes instead of double)
bean__ has joined #ruby
bean__ is now known as bean|work
pu22l3r has quit [Remote host closed the connection]
<tobiasvl>
s/double/escaped double quotes/
<blf>
Is it acceptable to validate the type of an object before adding it to an array? It seems like I'm trying to make Ruby work like a static language, but I can't think of any other way to validate the object.
techhelp has joined #ruby
<shevy>
x = "abc \"def\" # <--- this is of course wrong, you must use your eyes TotalEvil and count. you can count 2x \" but only 1x ", are you able to count and see this with your eyes TotalEvil
whowantstolivefo has quit [Quit: who wants to live forever ?]
<Spooner>
blf, You can do what you want. If you don't trust the object, then that is fine, but if it is your code, then it shouldn't be an issue.
<mehwork>
i've seen that, i mean this behavior in general
<krainboltgreene>
Looks like parsing stuff.
ilyam has joined #ruby
beliveyourdream has quit [Read error: Connection reset by peer]
<krainboltgreene>
You mean all the stdlib?
<mehwork>
i mean require'ing to get more access to more methods for built-in classes in general
ahokaomaeha has joined #ruby
Hypn has quit [Remote host closed the connection]
blf has quit [Quit: Page closed]
alanjc has joined #ruby
frankkany has quit [Remote host closed the connection]
<mehwork>
or is Time the only one that behaves like that
gosshedd has quit [Ping timeout: 252 seconds]
<krainboltgreene>
One of a few.
frankkany has joined #ruby
gestahlt has quit [Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121129151842]]
<krainboltgreene>
It just so happens that there's a built-in AND standard library for Time.
rodrigo- has quit [Read error: Connection reset by peer]
therod has joined #ruby
thatRD has quit [Ping timeout: 248 seconds]
shtirlic has quit [Remote host closed the connection]
vxgnjf has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
thatRD_ has quit [Read error: Operation timed out]
<mehwork>
i like not having to import something every time i wanna do the most basic thing -- unlike in python
apoch632 has quit [Quit: Leaving.]
cdt has quit [Quit: Ex-Chat]
<hoelzro>
interestingly enough, the module system is one of the things I actually like about Python
cdt has joined #ruby
therod has quit [Read error: Connection reset by peer]
rodrigo- has joined #ruby
<mehwork>
how come. I'd rather just Dir.chdir than have to import os first just so i can os.chdir()
<csmrfx>
whats python modules got that ruby dont?
ABK has joined #ruby
<mehwork>
you end up with a TON of imports at the top of every python file sometimes, just clutters things
cdt has quit [Client Quit]
<hoelzro>
csmrfx: I like that each module is in its own namespace
brimil01 has joined #ruby
<hoelzro>
and you have to access that namespace explicitly when using it from other modules
<mehwork>
sounds java-ish
<krainboltgreene>
standard libraries and built in libraries are a relic of the past, when you didn't have 24/7 high speed internet connections.
<csmrfx>
hoelzro: I dont get it. How does that differ from ruby?
<mehwork>
granted it's a ton better than php where everything is in the global namespae as a function or class
<hoelzro>
csmrfx: if I do require 'foo'
samuel02 has joined #ruby
browndawg has quit [Quit: Leaving.]
<hoelzro>
I have no idea what foo.rb is putting into the global environment
<hoelzro>
it may be nothing
<hoelzro>
it may be a suite of classes
<csmrfx>
ok I see
<hoelzro>
it may be a module containing a suite of classes
cdt has joined #ruby
rodrigo- has quit [Read error: Connection reset by peer]
<csmrfx>
well, I've always preferred freedom and enlightenment to strict rules
pu22l3r has joined #ruby
cha1tanya has quit [Quit: Leaving]
krainboltgreene has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
therod has joined #ruby
bluenemo has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
<fuzai>
whats the easiest way to open up a network socket and then close it right afterwards.
<hoelzro>
normally I do as well, but there's something to be said for consistency
<hoelzro>
fuzai: why would you want to?
bartj3 has quit []
<fuzai>
because i have a web socket wrapper that seems to block until it's had a socket open once
<mehwork>
probably a port scanner
<fuzai>
neither
jaequery has quit [Ping timeout: 264 seconds]
<mehwork>
that doesnt seem like it should be the solution though
vlad_starkov has quit [Remote host closed the connection]
ilyam has quit [Quit: ilyam]
<fuzai>
i'm sure there is a better one, i'm basically taking the stdin / stdout of a child process and tieing them to a websocket
recycle has quit [Read error: Connection reset by peer]
<fuzai>
everything works once that socket has happened one time
jaequery has joined #ruby
tjbiddle has joined #ruby
<fuzai>
the problem is it seems to block on that first socket handler for em-websocket
daniel_- has joined #ruby
<tiennou>
can someone help me with my CSV problem ? i'm still stuck and I don't know what I'm doing wrong
anderse has quit [Quit: anderse]
F1skr has quit [Quit: WeeChat 0.4.0]
bluOxigen has joined #ruby
<Spooner>
tiennou, Ask. Don't ask if you can ask.
fgro_ has joined #ruby
<tiennou>
i suspect a bug that makes a difference between using a string as input as opposed to using a File
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
fgro has quit [Read error: Connection reset by peer]
pyro111 has quit [Quit: Leaving]
<tiennou>
okay, i'm try to change the formatting of a 50mb CSV file with customers contact info
<tiennou>
this file is mostly-CSV, encoded in UTF-16-LE, the mostly being a **Manager\tCustomer on the first line, and column header names in the second line (the rest is normal CSV data)
koos303 has quit [Quit: leaving]
<tiennou>
since I can't depend on :headers => true doing the right thing, I'm creating a File object with 'r:UTF-16:UTF-8', gets-ing the first line to remove, then pass the File to CSV.new with the correct options
blueOxigen has quit [Ping timeout: 276 seconds]
<tiennou>
except I'm getting
<tiennou>
ruby-1.9.3-p327/lib/ruby/1.9.1/csv.rb:1851:in `gets': "#\x00" on UTF-16 (Encoding::InvalidByteSequenceError)
<tiennou>
somewhere down in my each call (on the header line in fact)
pu22l3r has quit [Remote host closed the connection]
<tiennou>
the thing I don't get is that my encodings look right, I have the utf8 marker at the top of the file, the File mode ought to take care of transcoding
Kobrakao has quit [Ping timeout: 248 seconds]
alanjc has quit [Quit: alanjc]
slash_nick has quit [Ping timeout: 255 seconds]
Banistergalaxy has quit [Ping timeout: 264 seconds]
<tiennou>
it works if I read the whole File in a string and then use that in CSV.new, but it's a little hard on ruby (right ? ;-))
<shevy>
now the kde folks will surely start kde 5, which will take 8 years until it is half stable
Guest38407 has quit [Ping timeout: 252 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
<eka>
lol
<atmosx>
I innstalled opensuse and KDE 4.x-something
cparen has quit [Ping timeout: 264 seconds]
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
altamic has quit [Quit: altamic]
<atmosx>
it was the omst stable KDE ever seen actually. Nothing crashed
* atmosx
was amazed
<atmosx>
Then I came back to my back in order to get the job done :-P
<atmosx>
err back=mac
s1n4 has quit [Quit: leaving]
undersc0re97 has joined #ruby
havenn has joined #ruby
headius has quit [Quit: headius]
nat2610 has joined #ruby
ilyam has joined #ruby
hakunin has joined #ruby
sailias1 has quit [Quit: Leaving.]
cr3 has joined #ruby
Giorgio has joined #ruby
brianpWins has joined #ruby
<aedorn>
Still need Qt5 Ruby bindings!
tjbiddle_ has joined #ruby
undersc0re97 has quit [Remote host closed the connection]
maletor has joined #ruby
<cr3>
if anyone happens to be familiar with net/ssh, I'm seeing a few pages on the web that claim that it's possible to call 'scp' on an ssh session object but I'm getting undefined method :(
jaequery has quit [Quit: Computer has gone to sleep.]
timonv_ has quit [Read error: Connection reset by peer]
timonv has joined #ruby
samphippen has joined #ruby
havenn has quit [Ping timeout: 248 seconds]
zeade has joined #ruby
jrafanie has quit [Quit: jrafanie]
sbear has quit [Ping timeout: 255 seconds]
<aedorn>
Should be there as long as you are requiring net/scp
tjbiddle has quit [Ping timeout: 276 seconds]
tjbiddle_ is now known as tjbiddle
BeanDip_ has joined #ruby
<cr3>
aedorn: aha! that was it :)
maletor has quit [Client Quit]
nomenkun_ has quit [Remote host closed the connection]
sailias has joined #ruby
jjbohn has joined #ruby
fuzai has quit [Ping timeout: 264 seconds]
<shevy>
atmosx did you write a ruby game yet?
<shevy>
for some reason, the todo-things in a game never seem to stop :(
oinkon has quit [Ping timeout: 245 seconds]
<shevy>
the qtruby bindings were nice
<shevy>
but qtruby seems to have died
<shevy>
I hate that the toolkits favour python ... :(
<Xeago>
shevy: if you see apeiros, can you tell him to get well soon?
whowantstolivefo has joined #ruby
<atmosx>
shevy: nope
<shevy>
he is ill?
<shevy>
that's what he got from eating too much swiss chocolate
<shevy>
atmosx you should try it one day
<shevy>
I wrote my first game 6 yeas ago - abandoned it
<atmosx>
shevy: maybe after 10/02 that exam session ends
<aedorn>
shevy: qtbindings .. not quite dead
<shevy>
haha I can understand that
<atmosx>
tomorrow I have molecular biology and I'm killing myself right now
<atmosx>
studying from 9 am and I think I'll go till 3 am
<shevy>
atmosx cool! name one difficult possible question
BizarreCake has quit [Ping timeout: 264 seconds]
<aedorn>
Not exactly the fastest updates... but it's still more updated than qtruby
<shevy>
atmosx I had to make a "general biology" exam today, so I studied evolution and allele frequences in population, but the bastards then asked about biotech and biochem instead...
<shevy>
I see aedorn
<atmosx>
shevy: how DNA Polymerase performs proofreading?
<shevy>
I really need a GUI toolkit accessible from ruby
<shevy>
atmosx ah cool. two modes right? phosphorolytic editing and... this other ... hydrolytic editing I think it was. the one with the backtracking of the polymerase
kristofers has quit [Ping timeout: 264 seconds]
<atmosx>
shevy: I got ditched because I didn't knew the fucking AA structures. Didn't study them. Now I've heard that the exam got 10 times harder because he is pissed and he doesn't give as much points as before to the AA's.
<sullenel>
shevy: gtk3?
rakl has quit [Quit: sleeping]
gosshedd has joined #ruby
<atmosx>
shevy: I have no fucking idea, I'm asking you :-P it's not a question I have to know actually (or maybe I should) it's just something I don't understand.
<atmosx>
shevy: how can an Adenine be "wrong".
<shevy>
atmosx eh, those exams are always designed to fail ;) we have here honest teachers telling people "hey, you will need at least 70% of the total points, then you will pass"... sometimes they say "you will need 70% but the exam is split in two, and you need 50% at least on both to pass"
tjbiddle has quit [Quit: tjbiddle]
<atmosx>
now I know it's structure and hydrogen bonds, maybe If I see one I'll get it
<shevy>
atmosx, I am pretty sure it are those two modes, I remember we had a slide showing that in gene expression
<shevy>
atmosx I dont "understand" how it works either...
slash_nick has joined #ruby
mneorr has quit [Remote host closed the connection]
arietis has joined #ruby
coder_neo has joined #ruby
<shevy>
it's a bit like black magic - they just tell you that it works :\
zastern has joined #ruby
<atmosx>
shevy: so by phospholytic and hydrolytic editing it adjusts the erroneous codons?
<shevy>
sullenel hmm yeah... I need to try these
<shevy>
I am still on gtk2
fgro_ has quit [Read error: Operation timed out]
<shevy>
atmosx no, I dont think it can work on codons at all, because you are still in transcription-mode. this is before translation and you wrote DNA polymerase, these enzymes only work on transcription
sn0wb1rd has joined #ruby
<atmosx>
shevy: chemistry is like black magic… they don't know nothing, it's all speculation and theories. No one ever seen and DNA polymerase in vivo actually adjusting the fucking dna :-(
BoomCow has joined #ruby
<atmosx>
shevy: eyah wrong terminology. For codons I meant AGCT
dr_bob has quit [Quit: Leaving.]
xAndy is now known as xandy
<shevy>
I googled a bit
<shevy>
one document has this: "These include phosphorolytic editing, in which the polymerase removes a single incorrectly incorporated nucleotide using its active site, and hydrolytic editing"
<atmosx>
shevy: I told you that I might take my thesis in molecular biology?
SrPx has joined #ruby
<shevy>
ok so I just remember... phosphorolytic works on one nucletotide
<shevy>
cool
<shevy>
with bioinformatics?
nat2610 has quit [Quit: Leaving.]
<atmosx>
yeah
<shevy>
nice :D
joeycarmello has joined #ruby
<shevy>
hope you'll use ruby :P
<atmosx>
if tomorrow the exam goes well…
<atmosx>
sure
nat2610 has joined #ruby
timonv has quit [Remote host closed the connection]
<shevy>
eh just squeeze out all your brain has
<atmosx>
My prof doesn't give a damn about what language so it's all ruby.
renanoronfle has quit [Ping timeout: 256 seconds]
<atmosx>
I'll try
<atmosx>
anyway got to go continue with prokaryotes :-P
<atmosx>
bbl
<shevy>
nice ... I still have to talk to the folks around here, they prefer java and python... python is ok but jaaava... no thanks...
<Xeago>
shevy: yes, it seems form his twitter he is ill
banisterfiend has quit [Remote host closed the connection]
<Xeago>
haven't seen him all week either
<shevy>
I see Xeago
<Xeago>
monday for an hours around noon
<Xeago>
-s
<atmosx>
Xeago: give me your twitter :-P
<Xeago>
mine?
<atmosx>
shevy: you have twitter too?
<Xeago>
find it
<atmosx>
Xeago: yeap
timonv has joined #ruby
<atmosx>
no!
<Xeago>
... blog.xeago.nl
the_mentat has joined #ruby
<Xeago>
find it ;)
lele has left #ruby ["Leaving"]
<atmosx>
ah k already following
Goles has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby
Solnse has joined #ruby
mahmoudimus has joined #ruby
tommyvyo has joined #ruby
<aedorn>
I should offer my artistic skills for games involving Ruby
<Mon_Ouie>
Zelda is a good example of a game involving rubies :)
headius has joined #ruby
tangledhelix has joined #ruby
<aedorn>
...
unsay has joined #ruby
<bean|work>
thats rupees
<bean|work>
btw
arturaz has joined #ruby
tiennou has quit [Ping timeout: 256 seconds]
daniel_- has quit [Read error: Connection reset by peer]
dawkirst has quit [Read error: Connection reset by peer]
roadt_ has quit [Ping timeout: 252 seconds]
DrCode has quit [Remote host closed the connection]
JumpMast3r has quit [Quit: JumpMast3r]
daniel_- has joined #ruby
angusiguess has joined #ruby
<v0n>
what the easiest way to test that a, b and c are different?
<v0n>
(where they all are integers)
Goles has joined #ruby
jonathanwallace1 has quit [Ping timeout: 248 seconds]
mahmoudimus has quit [Client Quit]
god has joined #ruby
timonv has quit [Remote host closed the connection]
<reactormonk>
v0n, do two inequalitites?
god is now known as Guest14086
<v0n>
does a != b != c means they are *all* different?
<aedorn>
no, that means false/true != c
<reactormonk>
v0n, nope, because a!=b returns a boolean
hackerdude has joined #ruby
<Mon_Ouie>
Not in Ruby code, but that's what is meant by it…
<Mon_Ouie>
a != b && b != c && c != a
bradhe has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
jaequery has joined #ruby
<v0n>
they are all in an array, btw
dr_neek has quit [Quit: dr_neek]
<Muz>
array.size != array.uniq.size
<v0n>
if we could do something with map or something
eldariof has joined #ruby
<v0n>
Muz: smart !
<Muz>
If there are any duplicates the output of .uniq won't be the same size as the original array.
tenmilestereo has joined #ruby
tvw has quit [Remote host closed the connection]
<v0n>
that a good clue, thanks ;)
<aedorn>
do you even need size
<arturaz>
its faster
<aedorn>
by how many nano seconds? =p
osaut has quit [Ping timeout: 245 seconds]
<aedorn>
On 3 items anyway
<Mon_Ouie>
Imagine there are thousands of elements, not just three
<arturaz>
Mon_Ouie, then uniq approach sucks too
joofsh_ has quit [Remote host closed the connection]
<Mon_Ouie>
#uniq is O(n) in theory, you can't do much better (except it doesn't short-circuit)
banisterfiend has joined #ruby
moted has joined #ruby
codespectator has quit [Ping timeout: 244 seconds]
dcwu has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
<Muz>
arturaz: that was never one of the requirements. 3 items were all that was stipulated and no need to scale!
<asym>
I'm trying to create a module that when mixed into a class will add some functionality before 'initialize' is called. I first tried to do this by adding a class method for 'new' and aliasing previous new to something else, creating the state and then calling the original. however, i can't do alias_method from a module and adding a global Class mixin that behaves appropriately seems wasteful. is there a standard way to accomplish this? (i am keeping track of all th
adeponte has quit [Remote host closed the connection]
s__dana has quit [Ping timeout: 245 seconds]
pyreal has quit [Ping timeout: 272 seconds]
s__dana_ is now known as s__dana
ebobby has joined #ruby
ffranz has quit [Ping timeout: 276 seconds]
adeponte has joined #ruby
arturaz has quit [Read error: Connection reset by peer]
arturaz has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
noxoc has quit [Quit: noxoc]
pu22l3r has joined #ruby
rupee has joined #ruby
embs has quit [Ping timeout: 248 seconds]
end_guy has quit [Ping timeout: 276 seconds]
BoomCow has left #ruby ["Leaving"]
SrPx has quit [Ping timeout: 264 seconds]
jjbohn has quit [Ping timeout: 248 seconds]
headius has quit [Quit: headius]
dougireton has quit [Quit: Leaving.]
jgrevich_ has joined #ruby
timmow has quit [Quit: is having a nap]
jgrevich has quit [Read error: Operation timed out]
slainer68 has quit [Remote host closed the connection]
gyre007 has joined #ruby
baphled has quit [Read error: Connection reset by peer]
therod has quit [Read error: Connection reset by peer]
banisterfiend has quit [Remote host closed the connection]
arya has joined #ruby
unsay has quit [Quit: leaving]
sailias1 has joined #ruby
miskander has quit [Client Quit]
gyre008 has quit [Ping timeout: 248 seconds]
rodrigo has quit [Ping timeout: 245 seconds]
brisbin_ has joined #ruby
Uranio has joined #ruby
miskander has joined #ruby
brisbin_ has quit [Client Quit]
sailias has quit [Ping timeout: 264 seconds]
osaut has joined #ruby
<blaines>
asym lookup included
joofsh has joined #ruby
<blaines>
it's a module method
dyrot has joined #ruby
<Gate>
beaky: not terribly, but it was making waves in IT scripting as a perl replacement, such as puppet
<asym>
blaines: that's what i've been using, but i couldn't figure out how to add an alias. i've since got it (via base.class.class_eval { alias_method :... })
anonymuse has quit [Quit: Leaving.]
chrishough has quit [Quit: chrishough]
hashtree has joined #ruby
adeponte has quit [Remote host closed the connection]
alanjc has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 246 seconds]
recycle has quit [Remote host closed the connection]
<blaines>
asym yeah that's one way, kinda hackish
<blaines>
why are you doing such things?
dormiens has quit [Ping timeout: 245 seconds]
dormiens has joined #ruby
alanjc has joined #ruby
banisterfiend has joined #ruby
dyrot has quit [Ping timeout: 248 seconds]
jrist-afk is now known as jrist
fflush has joined #ruby
codespectator has quit [Ping timeout: 255 seconds]
Takehiro has joined #ruby
axl_ has quit [Quit: axl_]
Takehiro has quit [Read error: Connection reset by peer]
zigomir has quit [Read error: Connection reset by peer]
michaelmartinez has quit [Quit: michaelmartinez]
nat2610 has quit [Quit: Leaving.]
niklasb has quit [Ping timeout: 245 seconds]
miskander has quit [Quit: miskander]
_nitti has quit [Remote host closed the connection]
mbulat has joined #ruby
_nitti has joined #ruby
uris has joined #ruby
mephux has quit [Excess Flood]
jimeh has quit [Quit: Computer has gone to sleep.]
icole has joined #ruby
axl_ has joined #ruby
mephux has joined #ruby
wmoxam has quit [Ping timeout: 245 seconds]
DaltonUS has quit [Quit: DaltonUS]
mbulat has left #ruby [#ruby]
chimkan has quit [Quit: chimkan]
omg765 has joined #ruby
cwood has joined #ruby
<cwood>
Good afternoon. Which one here is the channel bot?
omg765 has left #ruby [#ruby]
marr has joined #ruby
DaltonUS has joined #ruby
mephux has quit [Excess Flood]
inokenty has quit [Quit: Leaving.]
mephux has joined #ruby
<oz>
it hasn't learnt how to answer to that apparently :)
miskander has joined #ruby
Elhu has joined #ruby
<cwood>
Drat.
mockra has quit [Remote host closed the connection]
<kapowaz>
anyone here know how to grab the returned output from pretty print rather than have it go to stdout?
frem has joined #ruby
<oz>
kapowaz: pretty print?
<kapowaz>
pp
bluOxigen has quit [Remote host closed the connection]
<oz>
oh
<cwood>
My question: For now I'm stuck with soap4r, are there any guides to creating complex SOAP messages? Or similar for savon/handsoap so that I can maybe ask for a change? My google-fu has failed me.
asteve has quit [Quit: Computer has gone to sleep.]
<cwood>
reactormonk: The ultimate objective is to manage my F5 BigIP via the iControl (SOAP) interface. I'd rather do this in Ruby so I'm not tempted to use SOAP::Lite in perl.
alex__c2022 has joined #ruby
<v0n>
Retistic: nil.to_i == 0
<cwood>
Right how I'm having trouble sending anything but the most simplistic of SOAP requests using soap4r.
<Retistic>
cwood: use savon
<v0n>
lol
<Retistic>
v0n: not bad
<cwood>
I tried savon, it broke for me using something I thought was a bug. I will of course try again.
angusiguess has joined #ruby
recycle has joined #ruby
_nitti has quit [Remote host closed the connection]
dougireton has joined #ruby
<Retistic>
cwood: what version?
nat2610 has quit [Ping timeout: 255 seconds]
<Retistic>
cwood: there have been quite a few breaking api changes, make sure you're using the right code for the right version
_nitti has joined #ruby
<cwood>
I'm using 2.0.3, I'll see if I'm doing this right.