ulisescab has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
wyhaines has joined #ruby-lang
wmoxam has joined #ruby-lang
mfn has quit [Ping timeout: 246 seconds]
zspencer has joined #ruby-lang
ddd has joined #ruby-lang
HikkiJP has joined #ruby-lang
kurko_ has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
m3nd3s has quit [Ping timeout: 252 seconds]
fbernier has quit [Read error: Connection reset by peer]
fbernier has joined #ruby-lang
dous has quit [Remote host closed the connection]
erichmenge has joined #ruby-lang
thevaw_2 has joined #ruby-lang
thevaw_2 has quit [Client Quit]
nitti has joined #ruby-lang
nertzy2 has quit [Quit: This computer has gone to sleep]
erichmenge has quit [Quit: Be back later]
nitti has quit [Ping timeout: 246 seconds]
kentos has quit [Quit: Leaving]
Nisstyre-laptop has joined #ruby-lang
erichmenge has joined #ruby-lang
kurko_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
japhb has quit [Remote host closed the connection]
swarley has quit [Read error: Operation timed out]
dous has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
nertzy2 has joined #ruby-lang
kurko_ has quit [Ping timeout: 255 seconds]
HikkiJP has quit [Ping timeout: 252 seconds]
kurko_ has joined #ruby-lang
bhrgunatha has joined #ruby-lang
HikkiJP has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
bhrgunatha has quit [Client Quit]
bhrgunatha has joined #ruby-lang
bhrgunatha has quit [Client Quit]
kurko_ has quit [Ping timeout: 245 seconds]
robbyoconnor has joined #ruby-lang
kurko_ has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sandbags has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 246 seconds]
bhrgunatha has joined #ruby-lang
bhrgunatha has quit [Client Quit]
kurko_ has quit [Quit: Computer has gone to sleep.]
justinmcp has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
WillMarshall has joined #ruby-lang
nitti has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
robbyoconnor has joined #ruby-lang
nitti has quit [Ping timeout: 260 seconds]
tenderlove has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
nertzy2 has quit [Quit: This computer has gone to sleep]
CrazyHorse18 has joined #ruby-lang
<CrazyHorse18>
hey guys.. i've been trying to debug an error in capistrano for ages and i can't work it out. The issue ends up in net/ssh with net-ssh-2.6.1/lib/net/ssh/ruby_compat.rb:41:in `select': closed stream (IOError)
<CrazyHorse18>
i've checked every google post regarding this error and i can't work out why it won't work. I've manually tested the commands capistrano is running and it works
<CrazyHorse18>
so i'm guessing it has to be some issue with Net-SSH and/or with capistrano or my configuration
<erikh>
I don't want to get off topic but that's kind of one of those things you just don't turn on
<CrazyHorse18>
fuck knows
<CrazyHorse18>
hacked
<CrazyHorse18>
i'm guessing
ericwood has quit [Ping timeout: 246 seconds]
<erikh>
well, don't guess, know.
<erikh>
anyhow, you really have two roads from here
jmeeuwen has quit [Ping timeout: 276 seconds]
dRbiG has quit [Ping timeout: 276 seconds]
jmeeuwen_ is now known as jmeeuwen
ericwood has joined #ruby-lang
<erikh>
1) Enable DEBUG or lower loglevel (which will expose lots of stuff you really don't want in your logs), or 2) take what you have to the net-ssh people
rippa has joined #ruby-lang
<erikh>
I don't think I can really offer any help beyond this
<erikh>
if your box is compromised, there could be other things going on as well.
<CrazyHorse18>
yeah
<CrazyHorse18>
i'm thinking that
<CrazyHorse18>
:(
<erikh>
but again, be absolutely sure that's the case
<CrazyHorse18>
it did get hacked 3 months ago
<CrazyHorse18>
but i thought i plugged everything up
dRbiG has joined #ruby-lang
<erikh>
some advice from a crusty old admin: the only way you "plug everything up" is with an install disc and a copy of mkfs.
<CrazyHorse18>
yeah
<CrazyHorse18>
i think i'll try and setup a new vps now
<CrazyHorse18>
:(
<CrazyHorse18>
oh well, no sleep tonight
<CrazyHorse18>
:)
<CrazyHorse18>
haha
<erikh>
be sure first.
<CrazyHorse18>
thanks for all your help
<erikh>
can't emphasize this more than I am.
<CrazyHorse18>
i'm certain it got hacked
<CrazyHorse18>
last time
workmad3 has joined #ruby-lang
<CrazyHorse18>
and if i'm getting telnet sessions today
<erikh>
the file you want to edit is /etc/inetd.conf most likely. open it up and comment out anything that has the word "telnet" in it.
vlad_starkov has quit [Remote host closed the connection]
<erikh>
then restart inetd.
<CrazyHorse18>
i don't need that server
<CrazyHorse18>
so i'm just going to shut it down
<CrazyHorse18>
and set up a new one
<erikh>
ok.
<CrazyHorse18>
it will be better anyway
<erikh>
anyhow, I need to get to bed
<erikh>
good luck.
<CrazyHorse18>
because i can upgrade ruby/postgres etc
<CrazyHorse18>
thanks for the help erikh!
<CrazyHorse18>
hey
nitti has quit [Ping timeout: 246 seconds]
<CrazyHorse18>
before you go
<CrazyHorse18>
just tested our production server.. identical setup.. same error
<CrazyHorse18>
but they both got hacked .. so who knows
rolfb has joined #ruby-lang
workmad3 has quit [Ping timeout: 265 seconds]
<erikh>
well, there are tools out there that can help diagnosing these things.
<yorickpeterse>
Morning lads
<erikh>
CrazyHorse18: anyhow, if you want to be sure(r), I'd look into chkrootkit and tiger. both should be available via apt-get.
<erikh>
both are also notoriously good at delivering false positives, so don't jump to conclusions if it says you have a problem; follow up on it.
<CrazyHorse18>
ah right yeah
<CrazyHorse18>
problem is ive been so overloaded of work, i didn't spend the time to lock the server down properly
<CrazyHorse18>
which unforutnatly has even casued even more work
rue|w has joined #ruby-lang
<CrazyHorse18>
i really want to setup a full server with chef / apparmor / directory permissions / separated users for every application etc
<CrazyHorse18>
but just haven't got around too it
thone_ has joined #ruby-lang
<erikh>
it happens to everybody. the important thing is how you deal with it when it does.
<erikh>
and by everybody I really mean everybody. this is something even the biggest sites deal with from time to time.
thone has quit [Ping timeout: 268 seconds]
yxhuvud has quit [Ping timeout: 264 seconds]
rippa has quit [Ping timeout: 246 seconds]
siyusong has joined #ruby-lang
Nisstyre-laptop has quit [Ping timeout: 260 seconds]
HikkiJP has quit [Read error: Connection reset by peer]
vmoravec has quit [Remote host closed the connection]
HikkiJP has joined #ruby-lang
siyusong has quit [Quit: Computer has gone to sleep.]
lun_ has quit [Remote host closed the connection]
solars has joined #ruby-lang
fsvehla has joined #ruby-lang
cosah has joined #ruby-lang
lun_ has joined #ruby-lang
AnarchoTroll has joined #ruby-lang
HikkiJP has quit [Read error: Connection reset by peer]
HikkiJP has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
nitti has joined #ruby-lang
fsvehla has quit [Read error: Connection reset by peer]
lun_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
dc5ala has joined #ruby-lang
fsvehla has joined #ruby-lang
blacktulip has joined #ruby-lang
nitti has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
^sandbags^ has joined #ruby-lang
^sandbags^ has quit [Changing host]
^sandbags^ has joined #ruby-lang
^sandbags^ has quit [Remote host closed the connection]
^sandbags^ has joined #ruby-lang
^sandbags^ has quit [Changing host]
^sandbags^ has joined #ruby-lang
sush24 has joined #ruby-lang
cyri_ has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
sush24 has quit [Quit: This computer has gone to sleep]
hachiya has quit [Ping timeout: 245 seconds]
cosah has quit [Ping timeout: 276 seconds]
fsvehla has quit [Read error: Connection reset by peer]
hachiya has joined #ruby-lang
fsvehla has joined #ruby-lang
fsvehla has quit [Client Quit]
sush24 has joined #ruby-lang
coffeejunk has quit [Read error: Connection reset by peer]
coffeejunk has joined #ruby-lang
sepp2k has joined #ruby-lang
toretore has joined #ruby-lang
robotmay has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
HikkiJP has quit [Read error: Connection reset by peer]
WillMarshall has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 260 seconds]
HikkiJP has joined #ruby-lang
dhruvasagar has joined #ruby-lang
shtirlic has joined #ruby-lang
justinram has joined #ruby-lang
zz_chrismcg is now known as chrismcg
nitti has joined #ruby-lang
nitti has quit [Ping timeout: 246 seconds]
Averna has quit [Quit: Leaving.]
workmad3 has joined #ruby-lang
kain has joined #ruby-lang
futurechimp has joined #ruby-lang
d3vic3 has joined #ruby-lang
HikkiJP has quit [Read error: Connection reset by peer]
runeb has joined #ruby-lang
HikkiJP has joined #ruby-lang
jamjam has joined #ruby-lang
kitallis has joined #ruby-lang
CrazyHorse18 has quit [Quit: Leaving.]
kain has quit [Quit: exit]
<andrewvos>
Are we talking about Herpes?
irleif has joined #ruby-lang
HikkiJP has quit [Read error: Connection reset by peer]
HikkiJP has joined #ruby-lang
nitti has joined #ruby-lang
Guest4503 has left #ruby-lang [#ruby-lang]
therod has quit [Quit: Leaving...]
DefV has joined #ruby-lang
vlad_starkov has joined #ruby-lang
nitti has quit [Ping timeout: 246 seconds]
justinmcp has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 256 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
corsican has quit [Ping timeout: 260 seconds]
<masterkorp>
lol
irleif has joined #ruby-lang
HikkiJP has quit [Read error: Connection reset by peer]
HikkiJP has joined #ruby-lang
ruby-lang570 has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
x0F_ is now known as x0F
hachiya has quit [Ping timeout: 252 seconds]
HikkiJP has quit [Read error: Connection reset by peer]
HikkiJP has joined #ruby-lang
ruby-lang570 has quit [Ping timeout: 245 seconds]
HikkiJP has quit [Read error: Connection reset by peer]
HikkiJP has joined #ruby-lang
hachiya has joined #ruby-lang
anannie has quit [Ping timeout: 256 seconds]
CrazyHorse18 has joined #ruby-lang
anannie has joined #ruby-lang
CrazyHorse18 has quit [Ping timeout: 255 seconds]
CrazyHorse18 has joined #ruby-lang
jamjam has quit [Ping timeout: 272 seconds]
kain has joined #ruby-lang
jayeola has joined #ruby-lang
rmascarenhas has joined #ruby-lang
<jayeola>
hey all. how does one find out what a gem does before installing it? is there a gem equivalent of "yum info blah"?
<andrewvos>
haha
<andrewvos>
Why would you be installing it if you don't know what it does :)
jbsan has quit [Quit: JB.. OUT!]
jbsan has joined #ruby-lang
<ddd>
gem search gemname -dr
<ddd>
-d means description, -r means remote (versus being local on your machine)
<jayeola>
thanks.
<ddd>
np
gix has quit [Ping timeout: 245 seconds]
<jayeola>
example. i could write my own ruby equivalent of "which" or i could see what is available in gems ;-)
* jayeola
is lazy
<andrewvos>
jayeola: There is a `gem which`
<andrewvos>
jayeola: But what are you really trying to do?
<ddd>
the command i gave only searches for the text you gave it in the gem name itself. nothing else
ananna has joined #ruby-lang
<jayeola>
there seem to be a few "whiches", (geddit?). i think that i am sorted now
<ddd>
andrewvos: i think he's trying to see if something like which_works exists before attempting to write his own (or to grab it and see how *they* did it)
nitti has joined #ruby-lang
<jayeola>
uh-huh
<burgestrand>
Huh, given that both description and summary of gems are usually added to the gems you’d think there’s a command to show that information
anannie has quit [Ping timeout: 272 seconds]
<ddd>
burgestrand: yeah that would be nice
<burgestrand>
I couldn’t find one in gem help commands though.
<burgestrand>
You can get the gem specification out as YAML though ^.-
gix has joined #ruby-lang
cardoni has joined #ruby-lang
<ddd>
hehe yeah but you don't want to be doing that even on 30 gems returned for say 'which' ;)
<jayeola>
aha!
vlad_starkov has joined #ruby-lang
<ddd>
sorry couldn't resist recycling the whiches
nitti has quit [Ping timeout: 246 seconds]
<andrewvos>
Burn the which!
<andrewvos>
I'll just get my coat.
<jayeola>
ain't nothing but me and my witches up in here ;-)
vlad_starkov has quit [Ping timeout: 264 seconds]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
kurko_ has joined #ruby-lang
msch has quit [Ping timeout: 265 seconds]
woollyams has joined #ruby-lang
HikkiJP has quit [Quit: .•«UPP»•.]
LanceHaig has left #ruby-lang ["Leaving"]
irleif has quit [Quit: Computer has gone to sleep.]
m3nd3s has joined #ruby-lang
robotmay has quit [Ping timeout: 246 seconds]
kurko_ has quit [Ping timeout: 264 seconds]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
kurko_ has joined #ruby-lang
therod has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
<manveru>
but ruby regexps are pretty much on par with perl now
<Uranio>
that sound cool
<manveru>
except for that part where you can put whole programs inside your perl regexps :)
nettsundere has joined #ruby-lang
<matti>
Ohai manveru
mytrile has quit [Remote host closed the connection]
<manveru>
hoi matti
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
nettsundere has quit [Ping timeout: 244 seconds]
<Uranio>
I wonder how could be:
<Uranio>
Perl is a [insert an adjetive] programing langague
cantonic_ has joined #ruby-lang
<Uranio>
that adjetive... is... undescriptible
lcdhoffman has quit [Quit: lcdhoffman]
jgomez has joined #ruby-lang
cantonic has quit [Ping timeout: 246 seconds]
cantonic_ is now known as cantonic
philiphale has joined #ruby-lang
shtirlic has quit [Remote host closed the connection]
Artheist has joined #ruby-lang
slyphon has joined #ruby-lang
therod has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
nettsundere has joined #ruby-lang
justinseiter has joined #ruby-lang
philiphale has quit [Quit: Leaving.]
irleif has joined #ruby-lang
<Uranio>
for make an IRC o jabber aplication, like a bot. Event programing would be great, so come my cuestion... is event programing supported on ruby?
<matti>
Uranio: EventMachine
<Uranio>
matti: :D you alawys with the precise and fast reply, you would ne named a "vanguard" in muy country
sailias has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
<matti>
LOL
<matti>
Uranio: There are other frameworks too.
<matti>
Uranio: EM is the most popular one.
benanne has joined #ruby-lang
<Uranio>
but.. event machine look like what I looking for
* Uranio
say sorry for the typo's error
slyphon has quit [Ping timeout: 245 seconds]
<matti>
Uranio: No need to be sorry ;d
slyphon has joined #ruby-lang
aflynn_ has joined #ruby-lang
irleif has quit [Quit: Computer has gone to sleep.]
enebo has joined #ruby-lang
jbwiv has joined #ruby-lang
gsav has quit [Ping timeout: 248 seconds]
<andrewvos>
Anyone know how I can do this pseudocode in rspec: "array.should include 1 or 2"
sduckett has joined #ruby-lang
mistym has quit [Remote host closed the connection]
CrazyHorse18 has joined #ruby-lang
<matti>
andrewvos: include(1,2)?
<matti>
Not remmeber.
<andrewvos>
matti: That works? I try now.
corsican has joined #ruby-lang
<andrewvos>
Please excuse Borat type sentence.
<matti>
LOL
<matti>
;]
<matti>
Haha
nitti has joined #ruby-lang
<andrewvos>
matti: I'm guessing that syntax you mentioned is an AND not OR matcher.
<matti>
Yeah.
CrazyHorse181 has joined #ruby-lang
CrazyHorse18 has quit [Read error: Connection reset by peer]
<burgestrand>
andrewvos: would probably just do array.any? { |value| [1, 2].include?(value) }
<burgestrand>
andrewvos: and test for the truth
<matti>
burgestrand: He is looking at how to express this with Rspec DSL
<burgestrand>
matti: I in-explicitly told him I don’t think there’s not necessarily a way to do it. (:
slyphon has quit [Ping timeout: 245 seconds]
<burgestrand>
Wow, those negations went haywire.
<burgestrand>
andrewvos: you could write your own matcher for it.
<burgestrand>
array.should include_either(1, 2)
<matti>
+1
CrazyHorse181 has quit [Ping timeout: 245 seconds]
nettsundere has quit [Read error: Operation timed out]
<jMCg>
I'm sending SIGABRT to a passenger instance, but all I can see in the backtrace is how the app(server) is building up to spitting out the stacktrace, which is not particularly useful to debugging... oh.. I should perhaps do this under load.
jcaudle has left #ruby-lang [#ruby-lang]
<whitequark>
jMCg: what are you trying to debug?
carloslopes has joined #ruby-lang
<jMCg>
A performance issue.
<jMCg>
whitequark: kinda figures that such a thing is easier to debug when the application is actually under load, rather than sitting there doing nothing.
postmodern has quit [Quit: Leaving]
slyphon has joined #ruby-lang
tbuehlmann has joined #ruby-lang
<jMCg>
By "sitting there and doing nothing" I don't mean "it's blocked", but: "It's waiting for requests".
havenn has joined #ruby-lang
<jMCg>
Sometimes I'm just being *that* stupid, until I actually utter my stupidity :C
Serial_Killer_C has joined #ruby-lang
Serial_Killer_C has quit [Remote host closed the connection]
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
<erikh>
whitequark: I don't know many people who've read rspec's code that disagree with you
<erikh>
but yeah, I mean, if you've already written it, might as well push it back to them.
<erikh>
it's not like you're going to stop using it if they disagree.
<imperator>
and yet, somehow, it seems to be the framework of choice
<erikh>
imperator: in rails-land, definitely.
<whitequark>
erikh: see, it has some amount of internal rules. I need to check the source out, determine the correct place for my code, check if it adheres to standards...
<andrewvos>
Because people are sheep. I know I am.
<whitequark>
I have exactly zero incentive to do that
<erikh>
fair enough.
krohrbaugh has quit [Client Quit]
krohrbaugh has joined #ruby-lang
nettsundere has quit [Ping timeout: 244 seconds]
<erikh>
honestly, rspec doesn't bother me nearly as much as cucumber
<erikh>
I simply do not understand the attraction to cucumber.
<whitequark>
I don't understand why cucumber exists at all
<erikh>
exactly.
<whitequark>
it solves a problem which does not exist, and it does it badly.
<rking>
whitequark: Customer-visible specifications is a problem that exists.
<erikh>
rking: you have non-developers who read your cucumber specs?
<erikh>
I've been working @ rails shops for something like 5 or 6 years now. you'd be the first.
<whitequark>
rking: ask me to write a single file of that nonsense, and I'll quit at that precise moment
* imperator
asks whitequark to use cucumber
<andrewvos>
Heh
<whitequark>
imperator: it's not like you're my employer ;)
<whitequark>
or, after this line, will ever be :)
<andrewvos>
TWIST: HE IS!
<andrewvos>
Directed by M. Night Shymalan
<andrewvos>
Sorry I'll be quiet now.
<imperator>
ALSO: I'M A DUDE - SURPRISE!
<whitequark>
customers get a customer-readable specification. like, in plain [your language here].
<whitequark>
what tools are used to make sure the project works according to that specification is none of their concern.
<whitequark>
by "get" I mean "written in collaboration with customer" or something like that.
rue|w has joined #ruby-lang
<whitequark>
at least that's how things happen where I work
nitti has quit [Remote host closed the connection]
* imperator
releases sys-uptime 0.6.1 into the wild
rue|w has quit [Ping timeout: 252 seconds]
runeb has joined #ruby-lang
vlad_starkov has joined #ruby-lang
nitti has joined #ruby-lang
bfreeman has joined #ruby-lang
<rking>
erikh: I took a 6 year break from programming, and no, I haven't had the problem in the 6mo since I've been back — but there *are* situations where you have a customer that is technical enough that they could understand something like a Cucumber feature description, occasionally even edit them (e.g. the data tables).
klaut has joined #ruby-lang
<rking>
I'm not necessarily an advocate of Cucumber itself, since I haven't used it IRL, but the concept of customer-managed or customer-supervised tests is sound.
nettsundere has joined #ruby-lang
<rking>
whitequark: English docs go out of sync.
<rking>
It's not DRY
siyusong has joined #ruby-lang
__butch__ has joined #ruby-lang
<andrewvos>
rking: Exactly
<andrewvos>
rking: English docs that don't execute are just plain silly.
<rking>
Executable everything.™
runeb has quit [Ping timeout: 246 seconds]
<erikh>
you use the word 'could' as an argument that's equivalent to 'has actually'
<erikh>
I would also posit that the someone smart enough to understand how your application functions likely knows enough to write a proper test.
<erikh>
(or at least, edit the source code to one that exists already)
<erikh>
FIT's been around for well over a decade and tries to solve the same problem. it too is something a lot of people forced on developers and practically never solves what it was designed to solve
cosah has joined #ruby-lang
_aspen has joined #ruby-lang
<zzak>
my favorite is when your client knows enough to do harm, eg: bundle installs and commits a new Gemfile.lock breaking production
Austin__ has quit [Quit: Leaving.]
<whitequark>
rking: Cucumber "docs" go out of sync as well
<whitequark>
and it's a PITA to refactor them
erichmenge has joined #ruby-lang
<whitequark>
zzak: since when do clients have write access to the repo?
brianpWins has quit [Quit: brianpWins]
JohnBat26 has joined #ruby-lang
_aspen has left #ruby-lang ["WeeChat 0.3.9"]
carloslopes has quit [Quit: Leaving.]
__butch__ has quit [Quit: Leaving.]
uuair has joined #ruby-lang
<zzak>
whitequark: when they want to learn too
kurko_ has quit [Ping timeout: 245 seconds]
yxhuvud has joined #ruby-lang
kurko_ has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
carloslopes has joined #ruby-lang
alexkira has quit []
carloslopes has quit [Client Quit]
erichmenge has joined #ruby-lang
rcassidy has joined #ruby-lang
shevy has joined #ruby-lang
shevy has left #ruby-lang [#ruby-lang]
shevy has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
shevy has left #ruby-lang [#ruby-lang]
Hakon has joined #ruby-lang
cantonic_ has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
futurechimp has quit [Ping timeout: 245 seconds]
__butch__ has joined #ruby-lang
tbuehlmann has quit [Ping timeout: 244 seconds]
nettsundere has quit [Read error: Operation timed out]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
futurechimp has joined #ruby-lang
cantonic has quit [Ping timeout: 268 seconds]
cantonic_ is now known as cantonic
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
coderrr has joined #ruby-lang
coderrr has left #ruby-lang ["Ex-Chat"]
<TTilus>
CAPS LOCK DAY!
<TTilus>
\o/
<matti>
Nooes...
^sandbags^ has joined #ruby-lang
^sandbags^ has quit [Changing host]
^sandbags^ has joined #ruby-lang
^sandbags^ has quit [Remote host closed the connection]
^sandbags^ has joined #ruby-lang
^sandbags^ has quit [Changing host]
^sandbags^ has joined #ruby-lang
rippa has quit [Ping timeout: 264 seconds]
sandbags has quit [Ping timeout: 260 seconds]
kurko_ has quit [Ping timeout: 272 seconds]
kurko_ has joined #ruby-lang
rippa has joined #ruby-lang
brianpWins has joined #ruby-lang
<Uranio>
I'm using open-uri for "get things" but when is google, don't answer... I wonder if sending a fake "User-Agent" that could be fixed
philiphale has quit [Quit: Leaving.]
kurko_ has quit [Ping timeout: 244 seconds]
kurko_ has joined #ruby-lang
mrsolo has joined #ruby-lang
nettsundere has joined #ruby-lang
Austin__ has joined #ruby-lang
Carnage\ has joined #ruby-lang
<Uranio>
the answer is not :-/
workmad3 has quit [Ping timeout: 260 seconds]
ryanf_ has joined #ruby-lang
ryanf_ has quit [Client Quit]
runeb has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
pbjorklund has quit [Read error: Connection reset by peer]
pbjorklund has joined #ruby-lang
<zzak>
Uranio: you can pass headers as additional options: open("http://...", {'User-Agent' => 'chrome whatever'})
fletch_ has quit []
<Uranio>
zzak: yeah, I do it, but now work, anyway.. bing work fine
Hakon has quit [Quit: Leaving...]
runeb has quit [Ping timeout: 240 seconds]
alvaro_o has joined #ruby-lang
Ziioynx has joined #ruby-lang
robotmay_ has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
sepp2k1 has joined #ruby-lang
<imperator>
jruby 1.7.0 released today for those interested
robotmay has quit [Ping timeout: 246 seconds]
sepp2k has quit [Ping timeout: 246 seconds]
uuair has quit [Ping timeout: 264 seconds]
uuair has joined #ruby-lang
uuair_ has joined #ruby-lang
alexkane has quit [Quit: alexkane]
uuair has quit [Ping timeout: 248 seconds]
uuair_ is now known as uuair
kurko_ has quit [Ping timeout: 245 seconds]
codewrangler has joined #ruby-lang
kurko_ has joined #ruby-lang
robotmay_ has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
kurko_ has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
uuair has quit [Quit: uuair]
vlad_sta_ has quit [Remote host closed the connection]
nitti has quit [Remote host closed the connection]
symeog has joined #ruby-lang
<outoftime>
somewhat OT, but anyone have a web-based slideshow generator they like? i've enjoyed showoff in the past but seems a bit broken nowadays.
philiphale has joined #ruby-lang
<rcassidy>
google docs has a decent slideshow maker thing.
<steveklabnik>
outoftime: i sucked it up and started using keynote
<steveklabnik>
:/
<steveklabnik>
for that exact reason
m3nd3s_ has quit [Remote host closed the connection]
rwilcox has joined #ruby-lang
qpingu has joined #ruby-lang
rmascarenhas has joined #ruby-lang
nitti has joined #ruby-lang
areil has quit [Remote host closed the connection]
siyusong has quit [Quit: Computer has gone to sleep.]
retro|cz has quit [Ping timeout: 244 seconds]
nitti has quit [Remote host closed the connection]
<symeog>
hi, i am really new to ruby but not in programming. can you give me a complete example of a class Customer with just a name an address and a phone ?
chessguy has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
ryanlecompte has joined #ruby-lang
havenn has joined #ruby-lang
anjen has quit [Quit: anjen]
carloslo_ has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 256 seconds]
chessguy has joined #ruby-lang
kurko_ has joined #ruby-lang
Carnage\ has quit []
JohnBat26 has quit [Remote host closed the connection]
<whitequark>
zzak: learn? pull requests all the way!
<whitequark>
(note: I'm not completely serious here.)
dpatel has quit [Quit: dpatel]
justinmcp has quit [Ping timeout: 252 seconds]
<yorickpeterse>
earliest pull request is best pull request
sailias has quit [Quit: Leaving.]
chrismcg is now known as zz_chrismcg
<whitequark>
yorickpeterse: ... and how is this related
<yorickpeterse>
it's not
dc5ala has quit [Quit: Ex-Chat]
cardoni has quit [Quit: cardoni]
slyphon has quit [Quit: WeeChat 0.3.8]
voker57 has quit [Remote host closed the connection]
Torrieri has joined #ruby-lang
Torrieri has quit [Changing host]
Torrieri has joined #ruby-lang
Torrieri has quit [Client Quit]
voker57 has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
chessguy has quit [Remote host closed the connection]
erichmenge has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
cyri_ has quit [Quit: cyri_]
anannie has quit [Remote host closed the connection]
irleif has joined #ruby-lang
Kingy has joined #ruby-lang
nitti has quit [Remote host closed the connection]
<freedrull>
i want to learn how to use mocks and stubs ._______.
dospod has joined #ruby-lang
<dospod>
can somebody help me
<yorickpeterse>
that's pretty specific
<mistym>
dospod: Maybe. What's your problem?
<dospod>
I need to grab input from the user, all on one line , and then place the contents into an array
<nofxx>
freedrull, use it when you want to isolate your test
<yorickpeterse>
dospod: input of what, STDIN? A web form? etc
<dospod>
the only problem is the input is going to be all on one line so I know Im going to need chop up the input
<zenspider>
dospod: what have you alreday tried ?
<dospod>
stdin
cardoni has joined #ruby-lang
<dospod>
nothing yet , I'm pretty new to ruby and the site our teacher pointed us to isn't detailed enough
wyhaines has quit [Remote host closed the connection]
nitti has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
<zenspider>
dospod: so you're essentially asking us to do your homework. not gonna happen. We're happy to point you at resources and answer _specific_ questions.
<zenspider>
what site did your teacher point you at?
<dospod>
her own personal web site -_-
<zenspider>
and/or how is it not specific enough?
<zenspider>
heh
<zenspider>
ok
<dospod>
she will list stuff like chomp , etc.. but not show us the syntax
<dospod>
I don't know if she's going to use or antique ssh server on campus or her personal computer to test it so I figured the older the version the better it would run on her side
<dospod>
our*
mistym has joined #ruby-lang
<steveklabnik>
heh
justinmcp has quit [Remote host closed the connection]
dmwuw_ has quit [Remote host closed the connection]
<dospod>
hehe I don't know why I always over analyze stuff
m3nd3s has joined #ruby-lang
<dospod>
to copy an array could I just simply to an Array2 = arrayNum
sailias has joined #ruby-lang
<tdy>
Array2 would just reference arrayNum in that case.. and changes on Array2 would be seen in arrayNum
NOKAH has quit [Quit: Leaving...]
<tdy>
so it depends what's needed
<dospod>
I need a complete copy
<dospod>
I need to keep the original array in tact
<heftig>
array2 = array.dup
wyhaines has joined #ruby-lang
<heftig>
note that it's a shallow copy. it just duplicates the array, not its contents
<heftig>
(this isn't a problem if it's just an array full of numbers)
<dospod>
yea the array is nothing more than integer elements
<zenspider>
well... in the case of fixnums, it dups both, but that's an implementation detail
<dospod>
anyway to do a deep copy
<heftig>
marshal
<zenspider>
no need to do a deep copy
dhruvasagar has quit [Ping timeout: 260 seconds]
Kingy has quit [Quit: Leaving]
richardjortega has joined #ruby-lang
kain has joined #ruby-lang
<dospod>
hmm ruby doesn't seem to work like c++ when it comes to for loops >:|
<zenspider>
don't ever expect ruby to work like other languages
<dospod>
I'm learning the hard way not too
kurko_ has quit [Ping timeout: 245 seconds]
nitti has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
<zenspider>
the first thing I do when teaching someone who's coded before is start by showing all the differences against the languages they're familiar with.... it's worth it to spend an hour or two unlearning
<zenspider>
what were you expecting from C++?
<zenspider>
what aspect, that is
<dospod>
well I need to match an element in the array
<dospod>
I was planning on just going through the whole array using a while or for the array is at the end
kurko_ has joined #ruby-lang
justinmcp has joined #ruby-lang
<zenspider>
does your `ri` command work?L
<zenspider>
`ri Array` for example
<dospod>
and nesting an if statement with the condition that if arrayNum[i] = array2[1] print out the number and print out the value of I
<tdy>
well that specific task doesn't require a loop
<tdy>
in ruby at least
<zenspider>
tdy: slow down
<tdy>
for arrays
<zenspider>
dospod: type ri Array into your terminal
esad has quit [Quit: Computer has gone to sleep.]
<zenspider>
if it doesn't work, sudo gem install rdoc rdoc-data; sudo rdoc-data install; sudo gem uninstall rdoc-data
<dospod>
unable to locate package
headius has quit [Quit: headius]
<zenspider>
package?
<dospod>
dammit I used apt
<dospod>
I fail
kain has quit [Ping timeout: 246 seconds]
<dospod>
I'm installing gem now
sduckett has quit [Ping timeout: 240 seconds]
<zenspider>
ruby_parser 3.0.0.a9 released! I'm very close to going beta on this fucker...
<zenspider>
please beat on it and report bugs
BigFatFatty has left #ruby-lang [#ruby-lang]
<dospod>
so why am I typing ri array in the terminal
<zenspider>
ri Array
<zenspider>
do you get proper output?
<dospod>
no I'm about to input the gem install command
<zenspider>
kk. get back to me when it works
<dospod>
ahh looks like I need to install ruby 1.9.1
nitti has quit [Remote host closed the connection]
<zenspider>
no, you don't
<zenspider>
1.8.7 will work fine
sailias has quit [Ping timeout: 256 seconds]
<dospod>
it was telling me I didn't have gem installed but it was packaged with ruby1.9.1
<zenspider>
*sigh*
<zenspider>
I hate ubuntu so fucking much
<zenspider>
actually... this works fine. that's just their stupid stub handler thingy
<zenspider>
go to rubygems.org and download the rubygems tarball yourself
<dospod>
only distro so far that will work propery in vmware 9 -_-
<zenspider>
unpack, cd into it, run sudo ruby setup.rb
bfreeman has quit [Quit: bfreeman]
<dospod>
ati hasn't released proper drivers for my laptops video card :/
<dospod>
so no native linux install here
<zenspider>
this works out better anyhow... as ubuntu rapepatches rubygems to adhere to their dogma
__butch__ has quit [Quit: Leaving.]
jgomez has joined #ruby-lang
<zenspider>
sexp_processor 4.1.0 released
<dospod>
still doesn't work when I run the command
kurko_ has quit [Ping timeout: 255 seconds]
<zenspider>
"doesn't work"
<zenspider>
splain
<dospod>
sudo: rdoc-data: command not found
<dospod>
INFO: gem "rdoc-data" is not installed
kurko_ has joined #ruby-lang
<dospod>
also recieved a ERROR: Failed to build gem native extension