<Eiam>
I saw one of the videos and thought certainly some of the concepts applied to me, but some of the mechanisms (like Maybe) I hestitate to enter into a production code base
<Eiam>
not because its production, I should have said "multiple team members"
horofox has quit [Quit: horofox]
workmad3 has quit [Ping timeout: 276 seconds]
dmiller1 has quit [Ping timeout: 256 seconds]
pavilionXP has joined #ruby
jonahR has quit [Quit: jonahR]
SCommette has joined #ruby
doktrin has joined #ruby
jblack has joined #ruby
tethra has quit [Ping timeout: 245 seconds]
jfl0wers has joined #ruby
afarazit|atno is now known as afarazit
otters has quit [Ping timeout: 252 seconds]
robotmay_ has quit [Ping timeout: 248 seconds]
nateberkopec has quit [Ping timeout: 276 seconds]
sepp2k1 has quit [Remote host closed the connection]
xsarin has quit [Read error: Connection reset by peer]
SCommette has quit [Client Quit]
robacarp has quit [Ping timeout: 240 seconds]
nwertman_ has quit [Remote host closed the connection]
emocakes has quit [Quit: emocakes]
emocakes has joined #ruby
piotr__ has quit [Read error: Operation timed out]
ben______ has quit [Quit: ben______]
jblack has quit [Ping timeout: 276 seconds]
froy has joined #ruby
robacarp has joined #ruby
horofox has joined #ruby
Kingy_ has joined #ruby
miskander has joined #ruby
tethra has joined #ruby
Kingy has quit [Ping timeout: 244 seconds]
tatsuya_o has quit [Remote host closed the connection]
<Ontolog>
It seems that require 'some/path' and require './some/path' are different? in my case, even though i'm adding the current directory to $:, require 'some/path' gives me a LoadError
etcetera has quit []
baroquebobcat has quit [Quit: baroquebobcat]
<Eiam>
kind of wish array.zip when given a block would return the result instead of nil
karasawa has joined #ruby
<havenn>
Ontolog: In 1.9, '.' is no longer in LOAD_PATH by default.
baroquebobcat has joined #ruby
<havenn>
Ontolog: If you add '.' to $: you still have the issue?
<Ontolog>
havenn: I'm explicitly adding the current directory and doing it by getting the fully qualified path and adding that to $:
tethra has quit [Remote host closed the connection]
<havenn>
Ontolog: and its in $: when you check?
<Ontolog>
yes
<havenn>
Ontolog: how odd
<Eiam>
when doing a zip is there a more simple way to make it fill with something other than nil when their is a size mismatch?
emmanuelux has quit [Quit: emmanuelux]
<Eiam>
right now I've got the block doing a check in the zip and pushing into another array outside the chain
<Ontolog>
even if I just do $:.unshift '.' i still get the same problem
slainer68 has quit [Remote host closed the connection]
<Eiam>
i could check the arrays before hand and 0 fill them before the zip i guess
aaronmacy has quit [Quit: Leaving.]
skcin7 has joined #ruby
spathi has left #ruby [#ruby]
ner0x has quit [Quit: Leaving]
dmiller1 has joined #ruby
baphled has joined #ruby
emmanuelux has joined #ruby
r3nrut has joined #ruby
Michae___ has joined #ruby
<havenn>
Ontolog: Does?: __FILE__ == $0
<Ontolog>
no
<Ontolog>
__FILE__ is Rakefile and I'm running rake
miskander has quit [Quit: miskander]
DatumDrop has joined #ruby
karasawa has quit [Ping timeout: 276 seconds]
RagingDave has quit [Quit: Ex-Chat]
marr has quit [Ping timeout: 248 seconds]
karupanerura has quit [Excess Flood]
karupanerura has joined #ruby
Fuzai has quit [Ping timeout: 245 seconds]
DatumDrop has quit [Ping timeout: 256 seconds]
apeiros has joined #ruby
jonathancutrell has joined #ruby
<jonathancutrell>
Hey folks! I've encountered a very strange problem while using make with a ruby executable
gyre007 has joined #ruby
<jonathancutrell>
For some reason, I can't open and read from a file.
<jonathancutrell>
I can read the argument being passed to the script (the file name) and even extrapolate a full path from that name.
jblack has joined #ruby
<jonathancutrell>
However, when I run any of the File.read(path) options, none of them are working.
<jonathancutrell>
Note, this works when running the file on its own, but doesn't work when it is executed by make.
<jonathancutrell>
Has anyone experienced something like this?
volk_ has quit [Quit: volk_]
MattRb has quit [Quit: This computer has gone to sleep]
jrajav has quit [Quit: I tend to be neutral about apples]
<jonathancutrell>
When I put a "puts css" in there, it doesn't work either.
lkba has quit [Ping timeout: 252 seconds]
<andresama>
i have some xml files that contains the XSD files to validate it inside a schemaLocation node inside the XML is there a way to validate it against those XSD files URLs ?
<havenn>
jonathancutrell: Is it maybe a file ownership or permissions issue, or that ruled out?
Cicloid has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
moos3 has quit [Quit: Computer has gone to sleep.]
<jonathancutrell>
havenn: I would only need read permissions, correct?
Kingy_ has quit [Ping timeout: 244 seconds]
<jonathancutrell>
havenn: Also - if I can run the script as a user, wouldn't Make be running as that same user?
theRoUS has joined #ruby
theRoUS has joined #ruby
<Eiam>
Is there a way to cut/slice an array on a specific element? like x = [1,2,3,4,5]; x.slice(3…) and note I don't mean slice on the 3rd element, I mean slice on the element in the array that is 3, so from it onward
<Eiam>
without knowing the actual position of 3
<Eiam>
I suppose I'm going to hear "just get the index, and slice on that"
<jonathancutrell>
Eiam: there is a way
<Eiam>
x.slice(x.index(3))
jgrevich has quit [Remote host closed the connection]
TheFuzzball has quit [Quit: Computer has gone to sleep.]
jgrevich has joined #ruby
afarazit is now known as afarazit|atno
miskander has joined #ruby
<jonathancutrell>
Eh perhaps there isn't a way.
pac1 has joined #ruby
<jonathancutrell>
you could always extend array. :)
<Eiam>
meh ill just do as I mentioned above =)
horofox has quit [Quit: horofox]
apeiros has quit [Ping timeout: 255 seconds]
nga4 has quit [Ping timeout: 256 seconds]
<havenn>
Eiam: would it work to: x.slice 3..-1
<Eiam>
i don't care about extending array its just functionality I needed once; just wanted to know if there was some mojo in slice, or something like 'cut' that would do it
<Eiam>
havenn: that slices on the index 3
TheFuzzball has joined #ruby
TheFuzzball has quit [Remote host closed the connection]
<jonathancutrell>
Could it be an escaping issue havenn ?
<jonathancutrell>
havenn: although the file.expand_path should circumvent that...
<Eiam>
havenn: say the array is instead x=["a","b","c","d"] and i want to slice on "c" without saying x.slice(2..-1) but instead x.slice("c"..-1)
<havenn>
jonathancutrell: I don't know. I haven't run into this one. Hrm...
jrist is now known as jrist-afk
<Eiam>
havenn: thats not a valid range object
codezombie is now known as codezombie|away
Fuzai has joined #ruby
main has quit [Ping timeout: 276 seconds]
<havenn>
Eiam: ahhh, get it now :)
<Eiam>
and I posted a solution, I was just curious if there was something that felt less 'meh' to e
<Eiam>
me
opettaja has joined #ruby
kenneth has quit [Quit: kenneth]
<havenn>
Eiam: 'c'.till(last)
dormiens has joined #ruby
<havenn>
Eiam: But alas...
reppard has quit [Quit: Lost terminal]
pavilionXP has quit [Read error: Connection reset by peer]
havenn has quit [Remote host closed the connection]
<Eiam>
not sure I follow that one..
Michae___ has quit [Remote host closed the connection]
reppard has joined #ruby
<Eiam>
that assumes the data is an ordered set like a,b,c,d,e, or 1,2,3,4,5, but its really just a set of strings that have no order except the order within the array
Virunga has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
<reppard>
if someone in here is familar with mocks and stubs using rspec-mocks i would appreciate some help
<carlzulauf>
i wish i could completely avoid raw SQL. even with something awesome like Squeel though, raw sql always ends up being a necessity at some point
twoism has quit [Remote host closed the connection]
jaimef has joined #ruby
zehrizzatti has joined #ruby
yakko has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
AndChat| has quit [Ping timeout: 245 seconds]
baphled has quit [Ping timeout: 244 seconds]
cyong has quit [Quit: Leaving.]
bean_ has joined #ruby
baroquebobcat has joined #ruby
bean_ has quit [Client Quit]
apeiros has joined #ruby
syamajala has quit [Quit: leaving]
slainer68 has joined #ruby
aeontech has quit [Quit: aeontech]
gyre007 has quit [Remote host closed the connection]
pencilcheck has quit [Remote host closed the connection]
jds_ has quit [Remote host closed the connection]
theRoUS has joined #ruby
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
opettaja has quit [Remote host closed the connection]
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
slainer68 has quit [Ping timeout: 276 seconds]
BlubProgrammer has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
rakl has quit [Quit: sleeping]
jonathanwallace has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
Playground has joined #ruby
pac1 has quit [Quit: I got it one line of code at a time]
gyre007 has quit [Read error: Connection reset by peer]
SCommette has joined #ruby
SCommette has quit [Client Quit]
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
jonathanwallace has joined #ruby
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
yugui_zzz is now known as yugui
seich- is now known as Seich
gyre007 has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
gyre007 has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
MattRb has quit [Quit: This computer has gone to sleep]
visionary has quit [Quit: Leaving.]
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
<unstable>
Is there a source of rspecs for large programs anywhere? So for writing a command line chess, or for writing different command line programs.
Asym has quit [Ping timeout: 255 seconds]
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
melisaa has joined #ruby
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
reset has quit [Ping timeout: 245 seconds]
MattRb has joined #ruby
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
aaronmacy has joined #ruby
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
jbw has quit [Ping timeout: 256 seconds]
entrenador has joined #ruby
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
nathancahill has joined #ruby
benlieb has joined #ruby
gyre007 has joined #ruby
aaronmacy has quit [Client Quit]
gyre007 has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
pencilcheck has joined #ruby
MattRb has quit [Client Quit]
gyre007 has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
bricker`1A is now known as bricker
toekutr has joined #ruby
gyre007 has joined #ruby
baphled has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
benlieb has quit [Ping timeout: 252 seconds]
gyre007 has joined #ruby
aaronmacy has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
melisaa has quit [Remote host closed the connection]
gyre008 has quit [Remote host closed the connection]
gyre007 has joined #ruby
opettaja has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
Targen has quit [Ping timeout: 248 seconds]
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
melisaa has joined #ruby
frem has quit [Ping timeout: 246 seconds]
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
f03lipe has joined #ruby
nathancahill has quit [Ping timeout: 248 seconds]
miskander has quit [Quit: miskander]
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
opettaja has quit [Remote host closed the connection]
AsgardBSD has joined #ruby
cakeboss has quit [Excess Flood]
Liothen has joined #ruby
Liothen has joined #ruby
cakeboss has joined #ruby
az7ar has quit [Remote host closed the connection]
<shevy2>
hmm if I have a project called "foobar", which has 50 classes, and one class has a dependency on another project, will my project "foobar" thus depend on this other project?
cakeboss has quit [Disconnected by services]
ducktator has joined #ruby
<shevy2>
I mean via ruby-gem addons
<shevy2>
the .gemspec dependency listing will get huge in this case ... :(
Michael_ has quit [Read error: Connection reset by peer]
chendo_ has quit [Ping timeout: 248 seconds]
Michael_ has joined #ruby
MattRb has joined #ruby
chendo_ has joined #ruby
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby
opettaja has joined #ruby
hadees has quit [Quit: hadees]
f03lipe has quit [Read error: Connection reset by peer]
locriani_ has quit [Read error: Connection reset by peer]
apeiros has quit [Ping timeout: 252 seconds]
Asym has quit [Ping timeout: 255 seconds]
aaronmacy has joined #ruby
aaronmacy has left #ruby [#ruby]
locriani has joined #ruby
ducktator has quit []
banisterfiend has quit [Ping timeout: 260 seconds]
baphled has quit [Ping timeout: 256 seconds]
dankest has joined #ruby
rohit has joined #ruby
fivetwentysix_ has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
templaedhel has joined #ruby
<Quadlex>
Ugh
<Quadlex>
Want to add a method to a class to avoid an error
<Quadlex>
Don't want to wait until it's accepted up the chain
<Quadlex>
But it needs to be there at require tiem
<Quadlex>
time
<reppard>
anyone have a suggestion on how to mock a class and stub its constructor?
<Quadlex>
So I either require a bunch of crap BEFORE calling Bundler.require
<Quadlex>
OR... something
<shevy2>
Quadlex how can you modify something if you did not require it
aeontech has joined #ruby
ilyam has quit [Quit: ilyam]
<Quadlex>
shevy2: Because that makes the require an extention of the existing code
<Quadlex>
I know it's a hack
mneorr has joined #ruby
<mneorr>
hey guys, has anybody used amazon_flex_pay gem?
syamajala has joined #ruby
<mneorr>
i'm interested if there's any way of getting notified when the user cancels authorization on Amazon's website
sn0wb1rd has joined #ruby
iamjarvo has joined #ruby
fivetwentysix has quit [Ping timeout: 252 seconds]
fivetwentysix_ is now known as fivetwentysix
mockra has joined #ruby
pu22l3r has joined #ruby
nathancahill has joined #ruby
<Quadlex>
I must be fucking stupid
<Quadlex>
I'm clobbering the actual implementation with my extra method and I've no idea why
<sn0wb1rd>
Quadlex: Don't be like that :)
<reppard>
man, i think i have been completely misunderstanding should_receive
slainer68 has joined #ruby
<reppard>
i was looking at that like it was an assertion and not the actually stubbing of the method
<reppard>
WTF!!
<sn0wb1rd>
on rspec-mock?
gyre007 has joined #ruby
<reppard>
sn0wb1rd: yes
<Quadlex>
sn0wb1rd: Oh, I'm just frustrated I can't think today
<reppard>
you've got to be kidding me..i'm an idiot
MattRb has quit [Quit: This computer has gone to sleep]
slainer68 has quit [Ping timeout: 260 seconds]
Michael_ has quit [Remote host closed the connection]
<sn0wb1rd>
should_receive is not just an assertion and you also have to specify whatever calls you make to the mock object. that is my understanding.
shevy2 is now known as shevy
mikeg has quit [Ping timeout: 276 seconds]
pu22l3r has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
<reppard>
right
<shevy>
left!
<reppard>
I am trying to Mock the Soundcloud api so as not to require network connection to run my test
<reppard>
finally got what i wanted with a before block and Soundcloud.should_receive(:new).at_least(:once).and_return(client)
ilyam has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
gyre007 has quit [Ping timeout: 246 seconds]
<reppard>
i was putting that in my test case thinking it was the assertion when i had Soundcloud.stub(:new).blah blah in my before block
<Quadlex>
DOOOOOOP
<reppard>
so i was effectively overwritting my Mock
rohit has quit [Ping timeout: 255 seconds]
crackfu has joined #ruby
generalissimo has joined #ruby
yacks has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
apeiros has joined #ruby
AsgardBSD_ has joined #ruby
dustint_ has joined #ruby
niklasb has quit [Read error: Operation timed out]
dustint has quit [Ping timeout: 260 seconds]
jonathancutrell has quit [Quit: jonathancutrell]
AsgardBSD has quit [Ping timeout: 256 seconds]
Targen has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
DatumDrop has quit [Remote host closed the connection]
krz has joined #ruby
pu22l3r has quit [Remote host closed the connection]
uris has quit [Quit: Leaving]
pu22l3r has joined #ruby
reppard has quit [Ping timeout: 244 seconds]
hackerdude has joined #ruby
yakko has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
apeiros has quit [Ping timeout: 244 seconds]
rohit has joined #ruby
ryanf has quit [Quit: leaving]
ryanh has joined #ruby
ryanh has quit [Max SendQ exceeded]
templaedhel has quit [Quit: Leaving...]
jblack has quit [Ping timeout: 260 seconds]
dustint has joined #ruby
dankest has quit [Quit: Leaving...]
aeontech has left #ruby [#ruby]
nwertman has quit [Read error: Connection reset by peer]
nwertman_ has joined #ruby
r3nrut has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
connor_ has joined #ruby
connor_ has quit [Remote host closed the connection]
dr_neek has quit [Read error: No route to host]
dr_neek has joined #ruby
x82_nicole has joined #ruby
haxrbyte_ has joined #ruby
jblack has joined #ruby
aaronmacy has joined #ruby
cobragoat has joined #ruby
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
jekotia has quit [Quit: sleeeeeeeeeeeeep]
nwertman_ has quit [Read error: Connection reset by peer]
haxrbyte has quit [Ping timeout: 256 seconds]
kil0byte has quit [Remote host closed the connection]
krz has quit [Quit: krz]
karasawa has quit [Remote host closed the connection]
MattRb has joined #ruby
karasawa has joined #ruby
cobragoat has quit [Ping timeout: 252 seconds]
hackerdude has quit [Remote host closed the connection]
dwu1 has joined #ruby
nwertman has joined #ruby
brianpWins has joined #ruby
jjbohn has quit [Quit: Leaving...]
joeycarmello has quit [Remote host closed the connection]
breakingthings has quit []
krz has joined #ruby
joeycarmello has joined #ruby
MattRb has quit [Quit: This computer has gone to sleep]
apeiros has joined #ruby
dukedave has quit [Quit: Leaving.]
bigthyme has joined #ruby
blazes816 has joined #ruby
joeycarmello has quit [Ping timeout: 276 seconds]
kenneth has quit [Quit: kenneth]
cobragoat has joined #ruby
niklasb has joined #ruby
matthias_ has joined #ruby
dustint has quit [Quit: Leaving]
zastern has joined #ruby
a_a_g has joined #ruby
hackerdude has joined #ruby
etcetera has quit []
SCommette has quit [Quit: SCommette]
jlast has quit [Remote host closed the connection]
etcetera has joined #ruby
apeiros has quit [Ping timeout: 255 seconds]
tjbiddle has joined #ruby
banisterfiend has joined #ruby
radic has joined #ruby
jduan1981 has quit [Ping timeout: 260 seconds]
dougireton has joined #ruby
JohnBat26 has joined #ruby
maycon has quit [Quit: Saindo]
S1kx has joined #ruby
S1kx has joined #ruby
S1kx has quit [Changing host]
drago757 has quit [Quit: drago757]
radic_ has quit [Ping timeout: 255 seconds]
aaronmacy has quit [Quit: Leaving.]
MattRb has joined #ruby
wallerdev has quit [Quit: wallerdev]
mrsolo has joined #ruby
wallerdev has joined #ruby
yoshie902a has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
joeycarmello has joined #ruby
<yoshie902a>
does Nokogiri have any function to grab the opening tag and closing tag? For example, node.text strips the tags, I was hoping for something like node.open_tag to get the opening tag and node.closing_tag to get the closing tag
jduan1981 has quit [Read error: Connection reset by peer]
mockra has joined #ruby
mockra has quit [Remote host closed the connection]
jduan1981 has joined #ruby
piotr_ has joined #ruby
daniel_- has joined #ruby
fschuindt has joined #ruby
bigthyme has joined #ruby
djones___ has joined #ruby
<fschuindt>
Somebody can help me here with permutation combinations? Its all commented here: https://gist.github.com/4554168
etcetera has quit []
solitude88 has joined #ruby
djones_ has quit [Ping timeout: 255 seconds]
Zolo has quit [Remote host closed the connection]
dormiens has quit [Quit: ThrashIRC v2.8 sic populo comunicated]
locriani has quit [Read error: Connection reset by peer]
icole has joined #ruby
djones___ has quit [Quit: djones___]
generalissimo has quit [Remote host closed the connection]
zwevans has quit [Quit: Computer has gone to sleep.]
locriani has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
dankest is now known as dankest|away
wallerdev has quit [Quit: wallerdev]
dankest|away has quit [Quit: Leaving...]
x82_nicole has joined #ruby
icole has quit [Remote host closed the connection]
pu22l3r_ has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
v0n has joined #ruby
mockra has joined #ruby
locriani has quit [Read error: Connection reset by peer]
browndawg has quit [Ping timeout: 252 seconds]
locriani has joined #ruby
wallerdev has joined #ruby
browndawg has joined #ruby
dhruvasagar has joined #ruby
goraxe has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
chendo_ has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
dawkirst_ has joined #ruby
io_syl has joined #ruby
apeiros has joined #ruby
chendo_ has joined #ruby
nomenkun has quit [Remote host closed the connection]
hbpoison has joined #ruby
<TTilus>
dawkirst_: CGI?
dawkirst_ has quit [Quit: Nettalk6 - www.ntalk.de]
dmiller1 has joined #ruby
osaut has quit [Quit: osaut]
apeiros has quit [Remote host closed the connection]
timonv has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
r0bby has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
visionary has joined #ruby
visionary has quit [Client Quit]
r0bby has joined #ruby
yakko has quit [Read error: Connection reset by peer]
cb0ss- has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
yakko has joined #ruby
dmiller1 has quit [Ping timeout: 248 seconds]
tps__ has quit [Quit: tps__]
samuel02 has joined #ruby
cb0ss has quit [Ping timeout: 256 seconds]
visionary1 has joined #ruby
visionary1 has left #ruby [#ruby]
sayan has joined #ruby
samuel02 has quit [Remote host closed the connection]
advorak has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
clocKwize has joined #ruby
fschuindt has quit [Remote host closed the connection]
jean-louis has quit [Read error: Connection reset by peer]
jean-lou` has joined #ruby
scrr has joined #ruby
guns has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
pyro111 has quit [Remote host closed the connection]
Kakera has joined #ruby
kil0byte_ has joined #ruby
robustus has joined #ruby
mrsolo has quit [Quit: Leaving]
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
kil0byte has quit [Ping timeout: 264 seconds]
kil0byte has joined #ruby
jean-lou` has quit [Ping timeout: 252 seconds]
v0n has quit [Ping timeout: 252 seconds]
r0bby is now known as robbyoconnor
Elhu has joined #ruby
hakunin has quit [Ping timeout: 240 seconds]
kil0byte_ has quit [Ping timeout: 276 seconds]
lledet has joined #ruby
wallerdev has quit [Quit: wallerdev]
<lledet>
hi, is there a fast way to get the first and last elements of an array into separate variables? i want something like last, first = array[-1..1] but that of course doesn't work
yisun has joined #ruby
DrShoggoth has quit [Quit: Leaving]
tonini has joined #ruby
emergion has joined #ruby
burgestrand has quit [Quit: Leaving.]
slainer68 has joined #ruby
whowantstolivefo has quit [Quit: who wants to live forever ?]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
diego has joined #ruby
diegoviola is now known as Guest19972
diego is now known as diegoviola
Guest19972 has quit [Ping timeout: 264 seconds]
arturaz has joined #ruby
whowantstolivefo has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
slainer68 has quit [Ping timeout: 260 seconds]
ilyam has quit [Quit: ilyam]
ChampS666 has joined #ruby
mockra has quit [Remote host closed the connection]
noyb has quit [Ping timeout: 276 seconds]
fivetwentysix has quit [Quit: fivetwentysix]
workmad3 has joined #ruby
cha1tanya has quit [Quit: Leaving]
reuven has joined #ruby
pskosinski has joined #ruby
jimeh has joined #ruby
main has joined #ruby
browndawg has quit [Read error: No route to host]
<krz>
any difference with 1.day.to_i or 24.hours.to_i ?
Morkel has joined #ruby
browndawg has joined #ruby
kil0byte_ has joined #ruby
jonahR has quit [Quit: jonahR]
yisun has quit [Quit: leaving]
zommi has joined #ruby
hotovson has joined #ruby
kil0byte has quit [Ping timeout: 252 seconds]
Morkel_ has joined #ruby
filipe has joined #ruby
jgrevich has quit [Remote host closed the connection]
Morkel has quit [Ping timeout: 248 seconds]
Morkel_ is now known as Morkel
guns has quit [Quit: guns]
brianpWins has joined #ruby
icole has joined #ruby
aganov has joined #ruby
<shevy>
both seems non-standard ruby
<shevy>
I suppose there are some days not equal 100% to 24 hours
dmiller1 has joined #ruby
reuven` has joined #ruby
mafolz has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
reuven has quit [Ping timeout: 244 seconds]
icole has quit [Ping timeout: 252 seconds]
friskd has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
emergion has joined #ruby
dmiller1 has quit [Ping timeout: 252 seconds]
jprovazn has joined #ruby
mossplix has quit [Read error: Connection reset by peer]
MattRb has quit [Quit: This computer has gone to sleep]
wargasm has quit [Ping timeout: 252 seconds]
razibog has joined #ruby
guns has joined #ruby
mossplix has joined #ruby
emergion has quit [Client Quit]
Mon_Ouie has joined #ruby
timonv has quit [Ping timeout: 256 seconds]
haxrbyte has joined #ruby
zigomir has joined #ruby
Kakera has quit [Ping timeout: 276 seconds]
browndawg has quit [Quit: Leaving.]
apeiros has joined #ruby
az7ar has joined #ruby
haxrbyte_ has quit [Ping timeout: 248 seconds]
headius has joined #ruby
headius has quit [Client Quit]
<gen0cide>
I figured it out it was a phusion problem, I compiled a new verstion and told apache to load the new version.
chussenot has joined #ruby
robert___ has joined #ruby
karasawa has quit [Ping timeout: 255 seconds]
robert___ has quit [Changing host]
robert___ has joined #ruby
swingha has quit [Quit: WeeChat 0.3.9.2]
karasawa has joined #ruby
blaxter has joined #ruby
djones_ has joined #ruby
main has quit [Ping timeout: 276 seconds]
jduan1981 has quit [Quit: jduan1981]
djones_ has quit [Client Quit]
wargasm has joined #ruby
robert__ has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
haxrbyte_ has joined #ruby
blaxter has quit [Ping timeout: 246 seconds]
tjbiddle has quit [Quit: tjbiddle]
haxrbyte has quit [Ping timeout: 248 seconds]
ephemerian has joined #ruby
osaut has joined #ruby
aaronmacy has joined #ruby
chendo_ has quit [Quit: Computer has gone to sleep.]
lledet has left #ruby [#ruby]
chendo_ has joined #ruby
timonv has joined #ruby
jds_ has joined #ruby
BizarreCake has joined #ruby
aaronmacy has quit [Client Quit]
dawkirst has joined #ruby
robotmay has joined #ruby
a_a_g1 has joined #ruby
a_a_g has quit [Ping timeout: 252 seconds]
blaxter has joined #ruby
chendo_ has quit [Quit: Leaving...]
marr has joined #ruby
aaronmacy has joined #ruby
slainer68 has joined #ruby
yakko has quit [Remote host closed the connection]
greenarrow has joined #ruby
DuoSRX has joined #ruby
ikolito has quit [Ping timeout: 252 seconds]
DuoSRX has quit [Remote host closed the connection]
cobragoat has quit [Remote host closed the connection]
nomenkun has joined #ruby
aaronmacy has quit [Quit: Leaving.]
foofoobar has joined #ruby
gyre007 has quit [Ping timeout: 248 seconds]
LouisGB has joined #ruby
nomenkun has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 264 seconds]
nomenkun has joined #ruby
osaut has quit [Quit: osaut]
<foofoobar>
Hi. I have a list of ID's (int) e.g. [1,4,6,8,12]. The size/length of this list is variable. The id's in the list are something like an "shopping cart". If the user checks out, the should get an unique generated number where the item list should be reproduced with. The simplest would be to generate him the number 1-4-6-8-12 so you can easy reproduce the items of the list
nomenkun has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
mockra has quit [Ping timeout: 276 seconds]
<foofoobar>
It would be nice if this list could be "compressed" so that e.g. I can give him something like "e6b1" which can be calculated to 1-4-6-8-12
io_syl has quit [Quit: Computer has gone to sleep.]
<foofoobar>
I don't want to create a table with a "items" => "generated hash", I want to calculate this
<foofoobar>
Does someone has an idea how I can do this?
<carlzulauf>
you might want to try and find a way to binary pack the ids and then maybe base64 encode the result
<carlzulauf>
but i haven't actually done that, so I don't know how good the results would be
<carlzulauf>
you could also actually compress the ids, maybe with gzip or similar, and base64 encode that
<carlzulauf>
but why is ary.pack("v*") and ary.pack("S*") the same size for me?
<apeiros>
(or 30% more - depending from where to where you look)
<apeiros>
coincidence
asobrasil has quit [Read error: Operation timed out]
<apeiros>
ary = Array.new(100) { case rand(4) when 0 then rand(100); when 1 then rand(1000); when 2 then rand(100000); when 3 then rand(10_000_000) end }
cha1tanya has quit [Read error: Connection reset by peer]
<apeiros>
this is what I used to generate differently sized numbers
matthia__ is now known as matthias_
main has joined #ruby
matthias_ is now known as mgeorgi
<apeiros>
the smaller your numbers are on average, the better v will become. also, isn't S 16bit?
<apeiros>
you'd need N I think
<carlzulauf>
yeah
asobrasil has joined #ruby
pavilionXP has joined #ruby
<apeiros>
uh oh, I think v was the wrong one…
<apeiros>
aaah, w, not v
<carlzulauf>
oh
<apeiros>
ary.pack("w*").bytesize # => 227
<apeiros>
v is 16bit too
<apeiros>
w is arbitrary size
<carlzulauf>
yeah, w saves a little space for me
<apeiros>
sadly, not the most efficient
<apeiros>
+15% / -13% for my sample set
az7ar has joined #ruby
emergion has joined #ruby
<Hanmac_>
on my test array w is a littble bit bigger than v ...
browndawg has quit [Ping timeout: 255 seconds]
fschuindt has quit [Remote host closed the connection]
* Hanmac_
thinks he should take a look on an xz compressor :D
<apeiros>
Hanmac_: of course
<apeiros>
it's hard to beat 2 bytes with variable size
<apeiros>
but v will not work for any number > 65535
DuoSRX has joined #ruby
<carlzulauf>
i learned something new today. thanks apeiros.
<carlzulauf>
GZip still outperforms packing even on my 100 id array
Criztian has quit [Remote host closed the connection]
<Hanmac_>
apeiros fu you are right :/
joshwines has joined #ruby
<carlzulauf>
but pack+Zlib procudes an even smaller result yet
<Hanmac_>
carlzulauf you could loook at xz-lzma comressing :D
timonv_ has joined #ruby
bigthyme has quit [Quit: bigthyme]
nathancahill_ has quit [Quit: nathancahill_]
tatsuya_o has quit [Remote host closed the connection]
RagingDave has joined #ruby
hamed_r has quit [Quit: Leaving]
timonv has quit [Read error: Connection reset by peer]
Vainoharhainen has joined #ruby
tatsuya_o has joined #ruby
Criztian has joined #ruby
<carlzulauf>
is it good at compressing integers?
mgeorgi has quit []
Dreamer3 has quit [Ping timeout: 252 seconds]
<carlzulauf>
oh. reading now. guess its good at compressing pretty much anything
osaut has joined #ruby
artOfWar has quit [Ping timeout: 255 seconds]
Dreamer3 has joined #ruby
<apeiros>
carlzulauf: in your test, make sure your numbers aren't all short numbers
robert___ is now known as robert_
<apeiros>
for me, w* is more efficient than zip
diegoviola has quit [Quit: WeeChat 0.3.9.2]
hbpoison has quit [Ping timeout: 244 seconds]
<carlzulauf>
they are mostly 6 digit numbers
tatsuya_o has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
arkiver has joined #ruby
timmow has joined #ruby
cdt has joined #ruby
aaronmacy has joined #ruby
Xeago has joined #ruby
solars has joined #ruby
browndawg has joined #ruby
<solars>
hey, is there any way to check if a range includes a range? e.g. a=1..4; b=2..3; a === b -> false
<robert_>
the and keyword?
lkba has quit [Ping timeout: 256 seconds]
<dawkirst>
Ok, *very* silly question here (but bear with me, I'm new to all this): I want to use AWS, and I have a access key pair. But obviously I can't include that in my main file, since that would be then be public when I push it to a public git repo. What is the convention? Do I put it in a config file and add that to .gitignore? This is a Sinatra app, if that's going to help (with something product-specific). Any advice regarding bes
<dawkirst>
t practice?
<robert_>
solars: a=1..4 and b=2..3 and a==b
<robert_>
?
JonnieCache has quit [Ping timeout: 260 seconds]
apeiros has quit [Ping timeout: 256 seconds]
rdark has joined #ruby
diego has joined #ruby
diego is now known as diegoviola
jwang has quit [Ping timeout: 264 seconds]
elaptics`away is now known as elaptics
<carlzulauf>
heh. xz ended up performing almost as bad as ids.join
Criztian has quit [Remote host closed the connection]
malte_ has joined #ruby
<solars>
robert_, that returns false..
<carlzulauf>
my fun with packing and compressing is probably over for the nigh
<carlzulauf>
t
malte_ has quit [Client Quit]
beiter has joined #ruby
aloshkarev has joined #ruby
Kovensky has joined #ruby
francisfish has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
fermion has joined #ruby
blazes816 has quit [Quit: blazes816]
cobragoat has joined #ruby
slainer68 has joined #ruby
swingha has joined #ruby
<mpfundstein>
win 7
emergion has quit [Quit: Computer has gone to sleep.]
alup has joined #ruby
horofox has joined #ruby
vlad_starkov has joined #ruby
end_guy has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
workmad3 has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
end_guy has joined #ruby
timonv has joined #ruby
mikecmpbll has joined #ruby
JonnieCache has joined #ruby
ABK has joined #ruby
cobragoat has quit [Ping timeout: 240 seconds]
Virunga has joined #ruby
zz_chrismcg is now known as chrismcg
cha1tanya has quit [Read error: Connection reset by peer]
cha1tanya has joined #ruby
djones_ has joined #ruby
hbpoison has joined #ruby
adeponte has quit [Remote host closed the connection]
cha1tanya has quit [Read error: Connection reset by peer]
aloshkarev has quit [Quit: aloshkarev]
yacks has quit [Ping timeout: 248 seconds]
cha1tanya has joined #ruby
nari has quit [Ping timeout: 248 seconds]
xpen has joined #ruby
osaut has quit [Quit: osaut]
yshh has quit [Remote host closed the connection]
horofox has quit [Quit: horofox]
apeiros has joined #ruby
kil0byte has quit [Ping timeout: 256 seconds]
kil0byte has joined #ruby
karasawa has quit [Ping timeout: 248 seconds]
emergion has joined #ruby
karasawa has joined #ruby
nkr has joined #ruby
sayan has quit [Quit: Leaving]
razibog1 has joined #ruby
fyolnish has quit [Ping timeout: 264 seconds]
viario has joined #ruby
razibog has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
jds_ has joined #ruby
timonv_ has joined #ruby
rdark_ has joined #ruby
emocakes has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
blaxter has quit [Quit: foo]
djones__ has joined #ruby
horofox has joined #ruby
rdark has quit [Ping timeout: 252 seconds]
pyreal has quit [Read error: Connection reset by peer]
jds_ has quit [Ping timeout: 244 seconds]
blaxter has joined #ruby
swingha has quit [Quit: WeeChat 0.3.9.2]
berserkr has joined #ruby
pyreal has joined #ruby
mahmoudimus has joined #ruby
cobragoat has joined #ruby
djones__ has quit [Client Quit]
djones_ has quit [Ping timeout: 260 seconds]
tatsuya_o has joined #ruby
moshee has quit [Ping timeout: 245 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
yacks has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
rdark has joined #ruby
nomenkun has joined #ruby
aaronmacy has quit [Quit: Leaving.]
rdark_ has quit [Ping timeout: 240 seconds]
az7ar has quit [Quit: Leaving]
tonini has quit [Remote host closed the connection]
cobragoat has quit [Ping timeout: 240 seconds]
kil0byte_ has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
pen has joined #ruby
malte_ has joined #ruby
yugui is now known as yugui_zzz
daniel_- has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
razibog1 has quit [Ping timeout: 276 seconds]
joran has joined #ruby
kil0byte has quit [Ping timeout: 276 seconds]
robotmay has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
timonv_ has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 256 seconds]
timonv has joined #ruby
<joran>
Hi all, I'm trying to replicate an existing setup but having issues - to ensure there are no bugs created by upgrading to latest rails2 on a legacy system I need to ensure that the app works locally first on the same versions of the gems etc that are on the live server, and it appears impossible to do so...
nkts has joined #ruby
<joran>
the main issue is that several gems (sanitize_email, authlogic and hoptoad_notifier) seem to depend on multi_json which will not install on rubygems 1.3.5 (which is what is running live) even though the version is the same as on live
<joran>
colour me confused but I can't see a route forward :(
<Hanmac_>
joran: #rubyonrails
<Xeago>
you could always manually isntall the gem
<Xeago>
and bypass rubygems
postmodern has quit [Quit: Leaving]
razibog has joined #ruby
<joran>
Xeago: sounds like a plan, I'm concerned though - it appears in gem list on the server, would that normally be so if it has been done that way?
timonv has quit [Ping timeout: 256 seconds]
b1rkh0ff has joined #ruby
<joran>
Hanmac_: sorry, I'm not quite sure where the line lies between ruby, gems and rails - I thought gem was part of ruby (which is why you gem install rails)?
RagingDave has quit [Quit: Ex-Chat]
Kakera has joined #ruby
<Hanmac_>
gem is part of ruby, but i thoughts that your problems are rails related?
<Hanmac_>
(or to old ruby versions)
<JonnieCache>
you could try running rake gems:freeze or whatever it is in your current production environment and then copying that down to local
<JonnieCache>
but that would be kind of perverse
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<JonnieCache>
:)
timonv has joined #ruby
<JonnieCache>
it would probably work quite well though
<dagobah>
best way of turning a hash of nodes and parents to a nested tree? e.g {:node1 => [:parent], :node2 =>[:parent]} #=> {:parent=>[:node1=>{},:node2=>{}]}
<joran>
Hanmac_ : not rails related per se as far as I can tell, more environment setuo
<Hanmac_>
jonan you should update your ruby version ... there was an new one publisched today ... and/or your rubygems version is WAY to old .. i have 1.8.23
<joran>
JonnieCache: the "or whatever it is" bit is kinda beyond me - ruby is not my first language (kinda in the 20s)
<joran>
Hanmac_: the whole point is to do so but I can't just go "oh, update live" without having a dev environment that matches live first
hbpoison has quit [Ping timeout: 255 seconds]
robotmay has joined #ruby
gyre007 has joined #ruby
<JonnieCache>
joran: its actually called unpack. there is a rake (like make) task you can run in rails 2 called "gems:unpack" which extracts all the depdendencies of your app into the vendor directory so they can live with the source code
<JonnieCache>
joran: its designed for going the other way, youre supposed to run it on your dev machine to set your deps in stone before you go to produciton
<JonnieCache>
joran: but theres no reason you couldnt use it the other way around
<JonnieCache>
so basically go to your app dir and run "rake gems:unpack" then copy the vendor dir down to the same place on your dev box
hemanth has quit [Quit: Leaving]
<joran>
JonnieCache: I don't want the deps copying to the app, that would make the problem of outdated things worse because a. that would be making changes on live and b. they're then not updated at a system level
<joran>
also, there is no Gemfile in the app (yet)
<JonnieCache>
joran: i wouldnt suggest your left the deps there, you could remove the dir after youd copied it
<JonnieCache>
its just a convenient way of getting a rails 2 app to spit out the exact gems its using
<joran>
JonnieCache: does it do that when it doesn't contain a Gemfile?
<joran>
(yes, this app is horrid and needs sorting out)
rdark has quit [Read error: Operation timed out]
samuel02 has joined #ruby
dmiller1 has joined #ruby
* Hanmac_
images what would happen when ruby1.8 is droped from the packages list :D
<JonnieCache>
joran: gemfiles didnt exist in rails2 days
hbpoison has joined #ruby
a_a_g1 has quit [Quit: Leaving.]
<JonnieCache>
joran: its possible to add bundler (which is the thing that uses gemfiles) into a rails2 project but they dont expect to have them
razibog has quit [Quit: Leaving.]
razibog1 has joined #ruby
whowantstolivef1 has joined #ruby
nari has joined #ruby
<JonnieCache>
here, gems:unpack is kind of a way to go backwards to a gemfile
whowantstolivefo has quit [Disconnected by services]
nomenkun_ has joined #ruby
* Hanmac_
prefers rake more over bundler ... i only write gemspec files and no Gemfiles ...
whowantstolivef1 has quit [Client Quit]
<JonnieCache>
because you could look at what it produces and use it to write a gemfile
whowantstolivef1 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
whowantstolivef1 is now known as whowantstolivefo
<JonnieCache>
joran: actually im being an absolute idiot
gyre007 has joined #ruby
<JonnieCache>
joran: just run "rake gems" and it spits out a list of the gems in the rails2 project onto stdout
<JonnieCache>
joran: then take that info and write a gemfile, and add bundler to your project like this http://gembundler.com/rails23.html
dmiller1 has quit [Ping timeout: 240 seconds]
<joran>
JonnieCache: that's great, but "gem install --version 2.1.3 authlogic" refuses to work because of outdated gems, surely that will apply to bundler too?
<JonnieCache>
refuses to work? because of unresolved dependencies?
<JonnieCache>
what error do you get
<joran>
#ERROR: Error installing authlogic:
<joran>
#multi_json requires RubyGems version >= 1.3.6
<JonnieCache>
oh shit. hmm cant you upgrade rubygems
malte_ has quit [Remote host closed the connection]
cobragoat has joined #ruby
<joran>
exactly because I want the same version as is on live
razibog1 has quit [Ping timeout: 264 seconds]
<joran>
which is 1.3.5
<JonnieCache>
well youre going to run into no end of problems with that
malte_ has joined #ruby
<JonnieCache>
i dont think bundler will work either
<Xeago>
it is only a minor version bump, read the changelog of 1.3.5 to 1.3.6
<Xeago>
and otherwise do what JonnieCache first thought what was stupid
<Xeago>
imo it is not :)
<joran>
Xeago: I'm not willing to start any upgrades before having a dev platform. end of.
<Xeago>
still, you should be aware of the differences
<joran>
minor bump or not, the system is running live with a particular set of dependencies, before upgrading I want it running locally with the same set of deps - otherwise there is no guarantee that breakage is not due to differences in environment
nomenkun_ has quit [Read error: Connection reset by peer]
<JonnieCache>
joran: find which old version of multi_xml is installed on your production box and install that first
<joran>
JonnieCache: there isn't one, hence the problem
<JonnieCache>
that will satisfy authlogic and it wont try and install a newer one
nomenkun has joined #ruby
<joran>
not according to gem list
<JonnieCache>
there must be one
malte__ has joined #ruby
emergion has joined #ruby
<Xeago>
how did we get to multi-xml?
<Xeago>
it was multi_json that was throwing up rubygems>=1.3.6
nomenkun_ has joined #ruby
<joran>
yeah, that's a typo I assume
jrabbit has quit [Ping timeout: 252 seconds]
nomenkun has quit [Read error: Connection reset by peer]
<JonnieCache>
yep
<JonnieCache>
maybe you didnt run gem list --local
jrabbit has joined #ruby
<JonnieCache>
gem list on its own queries rubygems.org
<JonnieCache>
i think
<JonnieCache>
oh no its the other way round isnt it
malte_ has quit [Ping timeout: 264 seconds]
malte__ is now known as malte_
rohit has joined #ruby
Michae___ has joined #ruby
dwu1 has quit [Quit: Leaving.]
malte_ has quit [Read error: Connection reset by peer]
<joran>
seems to be
gyre007 has quit [Remote host closed the connection]
malte_ has joined #ruby
cobragoat has quit [Ping timeout: 244 seconds]
gyre007 has joined #ruby
_br_ has quit [Excess Flood]
hbpoison has quit [Ping timeout: 260 seconds]
<joran>
doing a "locate multi_json" on the server only yields .gemspec files, nothing else :(
catphish has joined #ruby
<catphish>
is there any way to return a hash with a value removed?
<JonnieCache>
that file should be in the gem dir
malte_ has quit [Remote host closed the connection]
<joran>
it's in /root/.gem/specs/gems.rubyforge.org%80/quick/Marshal.4.8/ along with a whole load of other gemspec files
rohit has quit [Ping timeout: 248 seconds]
malte_ has joined #ruby
_br_ has joined #ruby
Donkeycoder has joined #ruby
krz has quit [Ping timeout: 246 seconds]
<joran>
I suspect I'm going to have to start with --ignore-dependencies
<joran>
:(
<JonnieCache>
did you try gems:unpack
<catphish>
i think hash#reject will work for me
_br_ has quit [Excess Flood]
xpen has quit [Ping timeout: 255 seconds]
<joran>
JonnieCache: I'm not willing to do anything on live that will create files inside the source dir - that's contrary to good practice.
carloslopes has joined #ruby
_br_ has joined #ruby
<JonnieCache>
well try rake gems to get the list of gems used by the app
<joran>
I'm fighting a battle here to get time to build a dev environment because best practice requires it, I'm not going to do anything that could be seen as sidestepping it
<JonnieCache>
then install them all one by one with --ignore-dependencies
niklasb has quit [Ping timeout: 246 seconds]
<joran>
it's only those three that I don't already have, so I'll just install them with it
aflynn has joined #ruby
<JonnieCache>
the first thing you should do after fixing it is get bundler into your project
<JonnieCache>
this is the exact nightmare that bundler was created to solve
<joran>
JonnieCache: yep
mossplix has quit [Ping timeout: 248 seconds]
<JonnieCache>
and it does it well
dhruvasagar has quit [Ping timeout: 244 seconds]
reppard has joined #ruby
<Xeago>
joran: you can modify the output location
<JonnieCache>
of the unpack command? that makes sense. try that
dhruvasagar has joined #ruby
<Xeago>
and let it write to /var/dump/gems f.ex
Shrink has quit [Read error: Connection reset by peer]
Michae___ has quit [Remote host closed the connection]
<darkskiez>
max version? how come the example says >= for a max version
_br_- has joined #ruby
jonahR has quit [Client Quit]
himsin has joined #ruby
beiter has quit [Ping timeout: 244 seconds]
<darkskiez>
oh, is it just a list of equally applicable rules, ie, this is specifying 1.1.4 as minimum and 1.99... as maximum
baphled has joined #ruby
guns has quit [Ping timeout: 248 seconds]
catphish has left #ruby ["Leaving"]
Michae___ has quit [Remote host closed the connection]
_br_- has quit [Excess Flood]
gyre008 has joined #ruby
rohit has quit [Quit: Leaving]
gyre007 has quit [Read error: Connection reset by peer]
Michae___ has joined #ruby
moos3 has joined #ruby
Neomex has joined #ruby
gyre007 has joined #ruby
Spooner has joined #ruby
Michae___ has quit [Remote host closed the connection]
jfl0wers has quit [Ping timeout: 248 seconds]
<Hanmac_>
darkskiez i think they are both used with an and connection ... so the first one says that all 1.1.* are allowed and the second says that it does only allows >1.1.14 so 1.1.99 is allowed but 1.2 is not (or similar)
cobragoat has joined #ruby
_br_ has joined #ruby
koderde has quit [Quit: Leaving]
slainer68 has quit [Remote host closed the connection]
gyre008 has quit [Ping timeout: 260 seconds]
pcarrier has joined #ruby
TomyLobo has joined #ruby
horofox has quit [Quit: horofox]
reppard has quit [Ping timeout: 276 seconds]
ikolito is now known as iko1
iko1 has quit [Quit: Changing server]
alex_ has joined #ruby
alex_ is now known as iko1
baphled has quit [Ping timeout: 260 seconds]
zmo_ has quit [Ping timeout: 252 seconds]
main has quit [Ping timeout: 255 seconds]
clocKwize has quit [Quit: clocKwize]
reuven`` has joined #ruby
gyre007 has quit [Ping timeout: 248 seconds]
reuven` has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
<joran>
Xeago, JonnieCache : sorry, got busy fixing passenger so it will compile with recent gcc...
reppard has joined #ruby
<yoshie902a>
is there a function like string.index that gives the boundaries? not just the starting point?
conorwade has joined #ruby
[Neurotic] has quit [Remote host closed the connection]
joshwines has quit [Remote host closed the connection]
iko1 has quit [Quit: leaving]
emocakes has quit [Quit: emocakes]
kil0byte_ has joined #ruby
<yoshie902a>
that makes since, I was just a little concerned that match and index would not match up exactly for some unknown reason
dmiller1 has quit [Ping timeout: 256 seconds]
<yoshie902a>
s/since/sense
jjbohn has joined #ruby
jwang has joined #ruby
jlebrech_ has joined #ruby
nfk has joined #ruby
afarazit|atno has quit [Read error: Connection reset by peer]
jlebrech_ has quit [Client Quit]
jlebrech has joined #ruby
<jlebrech>
does anyone know anything about typus?
doctorbh has joined #ruby
afarazit|atno has joined #ruby
kil0byte has quit [Ping timeout: 276 seconds]
sepp2k has joined #ruby
fyolnish has joined #ruby
pyreal has quit [Ping timeout: 260 seconds]
doctorbh is now known as pyreal
<nfk>
jlebrech, sounds like typhus but it's probably just bad naming
fermion has quit [Ping timeout: 255 seconds]
pyreal has quit [Client Quit]
<jlebrech>
i'd rather have typhus than use typus
Neomex has quit [Quit: Neomex]
viario has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 264 seconds]
beiter has joined #ruby
Fradin has joined #ruby
samuel02 has quit [Remote host closed the connection]
clocKwize has joined #ruby
wallerdev has joined #ruby
razibog has joined #ruby
<shevy>
lol
browndawg has joined #ruby
<jlebrech>
is there no advanced demo of typus? when I look at rails_admin having all the features I need it makes me want to switch. but not my decision.
moos3 has quit [Quit: Computer has gone to sleep.]
hybris has joined #ruby
chussenot has quit [Quit: chussenot]
reppard has quit [Ping timeout: 260 seconds]
razibog has quit [Ping timeout: 256 seconds]
foofoobar has quit [Quit: Computer has gone to sleep.]
<JonnieCache>
so romaint to reconstruct your json cant you just be careful to insert your values into your hash in the right order, then call .to_json on it?
haxrbyte_ has quit [Ping timeout: 248 seconds]
<romaint>
i hope to_json will not mess my hash :p
cobragoat has joined #ruby
<JonnieCache>
i was thinking that. dont see why it would.
<lupine>
but the problem you're trying to solve is probably best approached by parsing the existing file and comparing the parsed result with the object you were about to serialise
<Hanmac_>
hm it seems that true can not be untrusted :D
<lupine>
only overwrite if they don't match
kpshek has quit []
BizarreCake has joined #ruby
asteve has joined #ruby
<lupine>
md5sum does not accurately do what you're asking it to do here, so trying to work around that is going to be nasty
haxrbyte has quit [Ping timeout: 248 seconds]
<lupine>
you just need a different tool called "jsoncmp" or something, which would not be hard to write
Virunga has joined #ruby
iamvery has joined #ruby
<lupine>
(didn't this come up last week? same person?)
<romaint>
In my case, the configuration of some mobile devices (GPS tracker and so on) is registered on it as a hash and on our servers too. The fact is we often compare md5 of configs to know if they are the same
iPhoneMRZ has joined #ruby
<romaint>
Not me :p
iamvery has quit [Remote host closed the connection]
<lupine>
yes, but md5 doesn't tell you if the configs are the same
<lupine>
many identical configs will have different md5sums
<romaint>
Unless i export the hash as ordered JSON and MD5 that
<lupine>
you can indeed invent a new standard and use that instead
iPhoneMRZ has quit [Client Quit]
beiter has quit [Quit: beiter]
<lupine>
converting all your objects to two-element arrays would be a way to kind-of do that and retain ordinary json semantics
Kakera has quit [Ping timeout: 248 seconds]
<lupine>
(so {a: b, c:{d: e}} would become [[a,b],[c,[d,e]]]
<romaint>
Since we dont care to unserialize the string representation used for MD5, we could even be destructive
<lupine>
Ruby's Hash object has syntax for converting a 2n array into a Hash
grzywacz has joined #ruby
grzywacz has joined #ruby
JumpMast3r has joined #ruby
timonv has quit [Remote host closed the connection]
libryder has joined #ruby
timonv has joined #ruby
clocKwize has quit [Quit: clocKwize]
jonahR has joined #ruby
jeffreybaird has joined #ruby
cobragoat has quit [Ping timeout: 248 seconds]
_nitti has joined #ruby
samuel02 has joined #ruby
browndawg has quit [Quit: Leaving.]
timonv_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
segv- has joined #ruby
kil0byte_ has joined #ruby
pen has joined #ruby
arkiver has quit [Quit: Leaving]
kpshek has joined #ruby
kil0byt__ has joined #ruby
adambeynon has joined #ruby
pencilcheck has joined #ruby
kil0byte has quit [Ping timeout: 248 seconds]
reuven``` has joined #ruby
Fradin has quit [Remote host closed the connection]
reppard has joined #ruby
kil0byt__ has quit [Remote host closed the connection]
<OldOats>
Has anyone ever experienced a situation where running a ruby script as root versus running it as a regular user with sudo privileges causes a difference in how interrupt signals are handled?
telli has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
kil0byte_ has joined #ruby
<atmosx>
OldOats: no but makes sense. Root has different paths set then suser + sudo
<atmosx>
so they use different versions of ruby and maybe different gems
<atmosx>
except if ruby is installed system wide and they both give priority to the same paths.
reuven``` has quit [Ping timeout: 255 seconds]
<atmosx>
but the 2nd situation is rare in my exp
d2dchat has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
kil0byte has quit [Ping timeout: 264 seconds]
Dreamer3__ has joined #ruby
foofoobar has joined #ruby
RagingDave has joined #ruby
afarazit|atno has quit [Remote host closed the connection]
nateberkopec has joined #ruby
joeycarmello has joined #ruby
moshee has quit [Ping timeout: 264 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
swingha has joined #ruby
joshman_ has quit [Quit: Computer has gone to sleep.]
cobragoat has quit [Ping timeout: 255 seconds]
joeycarmello has quit [Ping timeout: 248 seconds]
Nisstyre has quit [Quit: Leaving]
joshman_ has joined #ruby
browndawg has left #ruby [#ruby]
geekbri has quit [Remote host closed the connection]
Virunga has quit [Remote host closed the connection]
ndboost has quit [Remote host closed the connection]
ckrailo has joined #ruby
<OldOats>
It's weird, I'm trapping the interrupt for debugging purposes and the trap message I print out shows up twice when run as a regular user with sudo, but only once when I run it as root.
codezombie has joined #ruby
a_a_g has joined #ruby
samuel02 has joined #ruby
ndboost has joined #ruby
danneu has joined #ruby
rdark_ has quit [Ping timeout: 276 seconds]
nobuoka has joined #ruby
nobuoka has quit [Client Quit]
philcrissman has quit [Remote host closed the connection]
<r0f0>
OldOats : mind sharing your source ?
rdark has joined #ruby
Udom0 has quit [Quit: Leaving.]
d2dchat has quit [Remote host closed the connection]
philcrissman has joined #ruby
chussenot has quit [Quit: chussenot]
dmiller1 has joined #ruby
reppard has joined #ruby
nari has quit [Ping timeout: 252 seconds]
<OldOats>
I cannot, which unfortunatly makes helping me on this issue more difficult.
<r0f0>
eh secret project,like secret affairs , good :D
chussenot has joined #ruby
brandon|work has joined #ruby
Mon_Ouie has joined #ruby
odyssey4me has quit [Remote host closed the connection]
maxmanders has joined #ruby
<OldOats>
haha
carloslopes has joined #ruby
odyssey4me has joined #ruby
odyssey4me has quit [Client Quit]
ben____ has joined #ruby
endre has joined #ruby
<atmosx>
OldOats: are you building a new social network?
maxmanders has quit [Client Quit]
blazes816 has joined #ruby
ohcibi_ is now known as ohcibi
<OldOats>
I was just wondering off hand if anyone had seen something similar before.
geekbri has joined #ruby
<space0022s>
how can i do "gem install rails -v=2.3.8 pg zip rails -v=2.3.11" in one line
Norrin has joined #ruby
geekbri has quit [Remote host closed the connection]
maxmanders has joined #ruby
reppard has quit [Ping timeout: 264 seconds]
browndawg has quit [Ping timeout: 248 seconds]
dmiller1 has quit [Ping timeout: 276 seconds]
geekbri has joined #ruby
nazty has quit [Read error: Connection reset by peer]
karasawa has quit [Ping timeout: 255 seconds]
karasawa has joined #ruby
BizarreCake has quit [Quit: Leaving]
timonv has joined #ruby
undersc0re97 has joined #ruby
geekbri has quit [Remote host closed the connection]
dougireton has joined #ruby
OldOats has quit [Quit: Page closed]
kil0byte has joined #ruby
nazty has joined #ruby
tPl0ch has quit [Quit: Verlassend]
maxmanders has quit [Client Quit]
kil0byte_ has quit [Ping timeout: 248 seconds]
FlyingFoXy has joined #ruby
JonnieCache has quit [Quit: Reconnecting]
FlyingFoX has quit [Read error: Connection reset by peer]
JonnieCache has joined #ruby
dougireton has quit [Ping timeout: 252 seconds]
geekbri has joined #ruby
Virunga has joined #ruby
rakl has joined #ruby
banister_ has quit [Read error: Connection reset by peer]
jacktrick has quit [Quit: Leaving]
banisterfiend has joined #ruby
reppard has joined #ruby
ndboost has quit [Remote host closed the connection]
daniel_- has joined #ruby
cobragoat has joined #ruby
<Spaceghost|cloud>
space0022s: &&
<Spaceghost|cloud>
or ;
miskander has quit [Quit: miskander]
RJ3 has joined #ruby
<hoelzro>
for target in 'rails -v=2.3.8', 'pg', 'zip', 'rails -v=2.3.11'; do gem install $target; done
zigomir has quit [Quit: zigomir]
end_guy has quit [Ping timeout: 276 seconds]
end_guy has joined #ruby
Virunga has quit [Ping timeout: 256 seconds]
miskander has joined #ruby
reppard has quit [Ping timeout: 246 seconds]
<Spaceghost|cloud>
^
baroquebobcat has joined #ruby
maxmanders has joined #ruby
moomerman has joined #ruby
emocakes has joined #ruby
timonv_ has joined #ruby
philcrissman has quit [Remote host closed the connection]
generalissimo has joined #ruby
aganov has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 255 seconds]
toto_ has joined #ruby
toto- has joined #ruby
Ankhers has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
sailias has quit [Quit: Leaving.]
cobragoat has quit [Ping timeout: 256 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
vonsar has joined #ruby
timonv_ has quit [Ping timeout: 240 seconds]
ddv has quit [Ping timeout: 240 seconds]
philcrissman has joined #ruby
toto_ has quit [Ping timeout: 240 seconds]
maxmanders has joined #ruby
ToTo has quit [Ping timeout: 248 seconds]
emocakes has quit [Quit: emocakes]
arturaz has quit [Ping timeout: 252 seconds]
nwertman has quit [Read error: Connection reset by peer]
apeiros has quit [Remote host closed the connection]
ddv has joined #ruby
Zolo has joined #ruby
abalsam has joined #ruby
conurb has joined #ruby
hackerdude has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<workmad3>
JMcAfreak: that particular one actually pushes shoes into rubygems :)
<lord4163>
what about qt or gtk?
<aedornv>
Kovensky: me too. I want my Wayland compositer
<JMcAfreak>
lord4163: you may want to look at workmad3's comments. There is a fork of shoes out there
sn0wb1rd has quit [Quit: sn0wb1rd]
<JMcAfreak>
workmad3: sweet.
denken has joined #ruby
<Kovensky>
it seems that qt is c++-only though
<Kovensky>
or at least ALL bindings eventually are abandoned and die
kold_ has joined #ruby
<Kovensky>
that is true of the Java bindings, of the Perl bindings, of the Ruby bindings, of the D bindings...
Ontolog has joined #ruby
<JMcAfreak>
qt and gtk are probably not [good] options to my knowledge
end_guy has joined #ruby
<Kovensky>
qt is pretty much the least bad option for guis these days though
<aedornv>
Kovensky: I think the Python bindings keep up to date
<workmad3>
Kovensky: why does this surprise you? Qt was bought by nokia, and if there's one thing Nokia is good at, it's destroying any and all developer communities around their stuff
<JMcAfreak>
workmad3: ew.
<aedornv>
But to be fair, qtbindings for Ruby (the actual gem called qtbindings) was recently updated and it does still work with 4.9.x so
<Kovensky>
gtk has text rendering and IME issues on windows, plus their stupid file dialog
<workmad3>
Kovensky: although a quick google and it seems that Qt has at least been sold off again, so maybe the situation will improve again soon :)
<aedornv>
workmad3: Nokia doesn't own Qt anymore
<Kovensky>
wx is atrocious on anything other than windows
<Kovensky>
tk is ugly everywhere
<Kovensky>
cocoa is osx only (gnustep doesn't count)
<JMcAfreak>
lord4163: so yeah... try out green_shoes, then see if you need any more help
<workmad3>
but that's only been the case for the last 4 months :)
<havenn>
ooooh, Ruby Gnome team picked up Yorick's gtk3 project! :D
<aedornv>
Digia owns Qt now, and most of the original developers that work on Qt are still there
gyre008 has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
<lord4163>
but basically green shoes is an updated version of shoes, syntax is the same?
gyre007 has joined #ruby
emocakes has joined #ruby
tatsuya_o has joined #ruby
<lord4163>
Installation failed :(
hukl has joined #ruby
maxmanders has quit [Client Quit]
a_a_g has joined #ruby
tatsuya_o has quit [Read error: Connection reset by peer]
<havenn>
lord4163: do you have gtk+ installed?
tatsuya_o has joined #ruby
<lord4163>
I dont know?
luckyruby has joined #ruby
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
<lord4163>
What is it? GTK+?
moshee has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
_br_ has quit [Excess Flood]
gyre007 has quit [Remote host closed the connection]
breakingthings has quit []
carloslopes has quit [Remote host closed the connection]
gyre007 has joined #ruby
_br_- has joined #ruby
_br_- has quit [Excess Flood]
_br_ has joined #ruby
maxmanders has joined #ruby
cobragoat has joined #ruby
<Kovensky>
wth, suddenly phone rebooted :S
Elhu has quit [Quit: Computer has gone to sleep.]
sn0wb1rd has joined #ruby
<lord4163>
any other alternative which works? :P
<Kovensky>
anyway greedy map/grep ofc made that one function explode the memory use of the script when called, specially with a long list :(
maxmanders has quit [Client Quit]
tjbiddle has joined #ruby
dmiller1 has joined #ruby
abalsam has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
mikepack has quit [Remote host closed the connection]
JumpMast3r has quit [Quit: JumpMast3r]
brianpWins has quit [Quit: brianpWins]
crank_ has quit [Ping timeout: 260 seconds]
Criztian has joined #ruby
kevin_e has quit [Ping timeout: 264 seconds]
llaskin has joined #ruby
llaskin has quit [Changing host]
llaskin has joined #ruby
dmiller1 has quit [Ping timeout: 246 seconds]
syamajala has joined #ruby
eldariof has joined #ruby
<atmosx>
anyone uses kdevelop as a ruby ide?
<atmosx>
I wonder
Udom0 has left #ruby [#ruby]
skcin7 has quit []
<syamajala>
anyone use ruby-libnotify?
<llaskin>
hi, I was able to isntall the ruby gem curb version 0.8.3 on windows using instructions from here: http://beginrescue.blogspot.com/2010/07/installing-curb-with-ruby-191-in.html but am getting errors that say "The specified module could not be found. - C:/Ruby193/lib/ruby/gems/1.9.1/gems/curb-0.8.3/lib/curb_core.so (LoadError)"
syamajala has quit [Client Quit]
<llaskin>
any suggestions?
syamajala has joined #ruby
Criztian has quit [Remote host closed the connection]
Guest47587 is now known as Astrals
Coolhand has quit [Remote host closed the connection]
slainer68 has quit [Remote host closed the connection]
zommi has joined #ruby
osaut has joined #ruby
<carlzulauf>
ruby and curl on windows. you are a brave man llaskin
<Kovensky>
speaking of "random gem on windows", celluloid-io hardcodes parsing /etc/resolv.conf and barfs if parsing fail :(
<llaskin>
carlzulauf: i just want it to work:)
<Kovensky>
...which it ofc always will on non-unix
nik_-_ has joined #ruby
Coolhand|laptop has joined #ruby
<carlzulauf>
llaskin: if work-at-all-costs is your think, i'm pretty sure an ubuntu/ubuntu-server vm would have you up and running quick with curb
vlad_starkov has joined #ruby
kil0byte has quit [Remote host closed the connection]
io_syl has joined #ruby
drewtemp has quit [Quit: drewtemp]
<carlzulauf>
but as for windows, I'm sure its possible but not sure how
zommi has quit [Remote host closed the connection]
<carlzulauf>
wait. i'm on windows and i have a gem that uses curb. maybe worth trying...
kold_ has quit [Remote host closed the connection]
space0022s has quit [Quit: Page closed]
<aedornv>
ooh... 1.9.3-p374
phwd has joined #ruby
chrismcg is now known as zz_chrismcg
jblack_ has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
<phwd>
what's the correct way to pull a reponse using net/http? I am using http.get('http://graph.facebook.com/boo', nil) which seems to be the wrong syntax or something
ilyam has joined #ruby
zommi has joined #ruby
jarjar_prime has quit [Quit: Ready? Set? Go!]
dfr|work has quit [Remote host closed the connection]
<llaskin>
carlzulauf: I tried to copy my core.so over from my ubuntu isntall(develop on Windows, run on linux), and it blew up in a different way
yacks has quit [Remote host closed the connection]
yfeldblum has quit [Quit: Leaving]
<heftig>
aedornv: was that supposed to be a six-sided die? because it's not
<aedornv>
heftig: *shrug* It was from fuzai ...
<heftig>
rand(1..6)
<heftig>
fuzai: ^
timmow has quit [Ping timeout: 252 seconds]
<fuzai>
hmmm
<aedornv>
maybe it was really a 1d5 +1!
<phwd>
xybre: I am getting a "Connection reset by peer" using the cheatsheet method, I feel as though it's something really simple, here is a skeleton from what I am working from https://gist.github.com/4558367
<apeiros>
and with rand(n)+m it'd be rand(6)+1
<heftig>
aedornv: rand(5)+1 is 1d5, not 1d5+1
<fuzai>
no it's not i thought rand was from 0 to the max number - 1
<fuzai>
well thanks for the heads up
<apeiros>
rand(n) gives n possible results, i.e. 0-n
<apeiros>
gah, 0-(n-1)
<fuzai>
so it does then
<aedornv>
... 1d4 +1!
brianpWins has joined #ruby
<aedornv>
Well, last I checked there was no 5 sided die use in D&D, so that makes way more sense as a 4
j^2 has quit [Quit: leaving]
Guest98113 is now known as robacarp
j^2 has joined #ruby
<heftig>
aedornv: 1d4+1, you'd need rand(4) + 2
Criztian has joined #ruby
syamajala has quit [Quit: leaving]
<aedornv>
It's far too early for me to be doing basic addition.
Criztian has quit [Remote host closed the connection]
danishman has joined #ruby
krawchyk_ has joined #ruby
hydrozen has joined #ruby
banisterfiend is now known as banister`cnc
chrismhough has joined #ruby
atmosx has quit [Quit: And so the story goes…]
fyolnish has quit [Remote host closed the connection]
krawchyk has quit [Ping timeout: 255 seconds]
nomenkun has quit [Remote host closed the connection]
Zolo has joined #ruby
c0rn has joined #ruby
grzywacz has quit [Ping timeout: 255 seconds]
chrismhough has left #ruby [#ruby]
syamajala has joined #ruby
chrismhough has joined #ruby
phrame has quit [Read error: Operation timed out]
phrame_ has joined #ruby
rotor has quit [Read error: Operation timed out]
gyre008 has joined #ruby
phrame_ is now known as phrame
<aedornv>
I find it hard to get things done at the office... where everyone is cubes and I can hear everything. Anyone else deal with that? I have one guy on the phone constantly to my right, and another guy that watches TV shows and plays video games all day to my left
rotor has joined #ruby
rmc3 has quit [Ping timeout: 255 seconds]
willcodeforfoo has quit [Ping timeout: 255 seconds]
malte_ has quit [Quit: malte_]
rmc3 has joined #ruby
willcodeforfoo has joined #ruby
<apeiros>
aedornv: wtf? a guy in the office watches tv shows all day? o0
<aedornv>
apeiros: and plays video games. Mostly League of Legends
<apeiros>
aedornv: and he doesn't get fired? o0
chrismhough has quit [Client Quit]
chussenot_ has joined #ruby
chussenot_ has quit [Client Quit]
chrismhough has joined #ruby
mjolk has joined #ruby
az7ar has joined #ruby
chrismhough has quit [Client Quit]
elaptics is now known as elaptics`away
drewtemp has joined #ruby
<aedornv>
apeiros: Well... it's hard to get fired here. Very hard. The guy that should be helping me on all these projects hasn't done a single thing in the past 4 months. Just listens to talk radio all day in his cube.
syamajala has quit [Client Quit]
gyre007 has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
hasse has quit [Ping timeout: 245 seconds]
syamajala has joined #ruby
gyre007 has joined #ruby
<apeiros>
tell them to help or get the fuck out of the office
drewtemp has quit [Client Quit]
etcetera has quit []
<apeiros>
if they don't get fired, they can at least leave the people who work alone…
chrismhough has joined #ruby
foofoobar has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby
gyre008 has quit [Ping timeout: 244 seconds]
<apeiros>
amazing… I wonder where you work and how it comes that people can get off with that…
krz has quit [Quit: krz]
marr has quit [Ping timeout: 255 seconds]
jaequery has quit [Ping timeout: 255 seconds]
mgeorgi has joined #ruby
<aedornv>
apeiros: Actiontec Electronics.. and we're just too laid back in some cases. Most of it stems from our HR lady being absolutely terrified of having an employee coming back and suing for wrongful termination ...
chussenot has quit [Ping timeout: 256 seconds]
Coolhand|laptop_ has quit [Ping timeout: 264 seconds]
Coolhand|laptop has joined #ruby
<aedornv>
and the CEO doesn't care as long as profit is increased by X dollars every year, which it has been
<robacarp>
aedornv: I work in a similar place.
chrismhough has quit [Client Quit]
perlsyntax has quit [Quit: Leaving]
asteve has quit [Quit: Computer has gone to sleep.]
tps_ has quit [Read error: Connection reset by peer]
<apeiros>
and payment is good?
<aedornv>
In reality, only about 20 people run the company out of the 100+
chrismhough has joined #ruby
tps_ has joined #ruby
etcetera has joined #ruby
syamajala has quit [Quit: leaving]
<robacarp>
apeiros: well, when I started, it wasn't. but they went through and spiced up our wages every 6mo over the last two years
<aedornv>
And if those 20 or so left, it would implode over night .. but yes, pay is okay. It's average , anyway.
<robacarp>
now we're at the literal average.
zommi has quit [Ping timeout: 248 seconds]
end_guy has quit [Ping timeout: 276 seconds]
BizarreCake has quit [Quit: Leaving]
aeontech has joined #ruby
McAfreak has joined #ruby
clocKwize has joined #ruby
syamajala has joined #ruby
JMcAfreak has quit [Remote host closed the connection]
McAfreak has quit [Remote host closed the connection]
jaequery has joined #ruby
dougireton has joined #ruby
JMcAfreak has joined #ruby
<aedornv>
robacarp: Is yours a semi-Chinese company?
end_guy has joined #ruby
dougireton has quit [Client Quit]
interactionjaxsn has quit [Remote host closed the connection]
afarazit|atno has quit [Read error: Connection reset by peer]
sorbo_ has joined #ruby
afarazit|atno has joined #ruby
chrismhough has quit [Client Quit]
nomenkun has joined #ruby
syamajala has quit [Client Quit]
jaequery_ has joined #ruby
jaequery has quit [Read error: Connection reset by peer]
breakingthings has joined #ruby
DuoSRX has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
jaequery_ is now known as jaequery
McAfreak has joined #ruby
aeontech has left #ruby [#ruby]
jrist is now known as jrist-lunch
miskander has joined #ruby
JMcAfreak has quit [Disconnected by services]
sayan has joined #ruby
parallel21 has joined #ruby
McAfreak is now known as JMcAfreak
chrismhough has joined #ruby
chrismhough has left #ruby [#ruby]
carloslopes has joined #ruby
crank_ has joined #ruby
crank_ has quit [Remote host closed the connection]
<aedornv>
I only ask because I know of several that are about the same. I think it's the same progress the US industry took for awhile ... until just recently when trimming people and running lean became somewhat standard. Wondering if those said companies will follow the same path eventually.
nathancahill has quit [Quit: nathancahill]
ddd has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
zastern has joined #ruby
timonv has joined #ruby
asteve has joined #ruby
rdark has quit [Quit: leaving]
llaskin1 has joined #ruby
dougireton has joined #ruby
aaroncm has joined #ruby
nkts has quit [Ping timeout: 248 seconds]
braoru has joined #ruby
banister`cnc has quit [Remote host closed the connection]
macmartine has joined #ruby
cantonic_ has joined #ruby
jjbohn is now known as jjbohn|afk
llaskin has quit [Ping timeout: 264 seconds]
zommi has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
Hanmac_ has joined #ruby
kenneth has joined #ruby
cantonic has quit [Ping timeout: 256 seconds]
cantonic_ is now known as cantonic
<kenneth>
hey, how would you go about debugging memory leaks in ruby?
carloslopes has quit [Remote host closed the connection]
mgeorgi has quit [Remote host closed the connection]
<Hanmac_>
put it under water and where the bubbles came out, there is the leak
<kenneth>
lol; if only programming was so simple :)
Elhu has joined #ruby
Banistergalaxy has joined #ruby
Yorzack has joined #ruby
<Hanmac_>
what kind of leaks are you looking for? in a C-ext or in pure ruby code? (or in some kind of hybrid?)
mahlon has quit [Quit: nine foot long outhouse ladle]
ged has quit [Quit: WeeChat 0.3.8]
io_syl has quit [Ping timeout: 252 seconds]
<kenneth>
ruby code / gc
<kenneth>
i have a program that crashes with can't allocate memory
dougireton has quit [Quit: Leaving.]
jeremy``` has left #ruby [#ruby]
jjbohn|afk is now known as jjbohn
chrismhough has joined #ruby
sayan has quit [Quit: Leaving]
<Hanmac_>
kenneth then a pastie may helpfull ... do you use IO objects, and if yes how do you open them?
Elhu has quit [Client Quit]
icole has joined #ruby
io_syl has joined #ruby
<Yorzack>
Hello, i'm looking for help (newbie here). I have 2 arrays of 4 integers, I want to check the match for both number AND position so that [1,2,3,4] and [1,4,2,3] just make the array [1]. Is it possible?
shorts has quit [Quit: shorts]
mark_locklear has quit [Ping timeout: 255 seconds]
<heftig>
a.select.with_index { |x,i| x == b[i] }
etcetera has quit []
<Yorzack>
i love you
<kenneth>
should be fairly easy, Yorzack: a1.zip(a2).select {|t| t[0] == t[1] }.map {|t| t[0] }
<kenneth>
wait, why can't you reduce with ==? i though == was a method like other operators
kirun has joined #ruby
<Hanmac_>
>> p [a,b].transpose.select(&:uniq!).transpose.first
<eval-in>
Hanmac_: Output: "/tmp/execpad-577e82de7153/source-577e82de7153:1:in `<main>': undefined local variable or method `a' for main:Object (NameError)\n" (http://eval.in/6943)
<heftig>
because 1 == 1 is true, not 1
<kenneth>
>> a, b, c = [1,4,3,2], [1,2,3,4], [1,2,4,3]; p a.zip(b, c).select {|a| a.reduce(&:==) }.map(&:first)
biff_tannen has quit [Read error: Connection reset by peer]
zommi has quit [Client Quit]
fyolnish has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
apeiros has quit [Remote host closed the connection]
<appamatto>
I heard about Sinatra a while ago
<appamatto>
Curious whether that or Rails is more popular for web services now
apeiros has joined #ruby
jblack_ has quit [Ping timeout: 264 seconds]
<kenneth>
appamatto: sinatra is what i usually recommend
* Hanmac_
uses ruby for better things than r
<Hanmac_>
we
<Hanmac_>
web
<kenneth>
appamatto: i use kenji myself
c0rn has quit [Ping timeout: 248 seconds]
clocKwize has quit [Quit: clocKwize]
colonolGron has joined #ruby
<colonolGron>
hi
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
dmiller1 has joined #ruby
philips_ has joined #ruby
hydrozen has joined #ruby
<appamatto>
kenneth: What is kenji?
atmosx has quit [Quit: And so the story goes…]
<kenneth>
appamatto: one of my pet projects, a backend web framework
miskander has quit [Quit: miskander]
<colonolGron>
i try to use Ruby-IRC. installed it with gem. and then wrote the "require 'Ruby-IRC'". ruby sais it cant find that. isnt the gem name the name i have to write after the require?
DatumDrop has quit [Remote host closed the connection]
<Hanmac_>
colonolGron whats your ruby version?
marr has joined #ruby
Mchl has joined #ruby
ping-pong has joined #ruby
<colonolGron>
Hanmac_: 1.8.7
MattRB has quit [Quit: This computer has gone to sleep]
krawchyk_ has quit [Remote host closed the connection]
<appamatto>
kenneth: does Sinatra have things like ActiveRecord?
Virunga has quit [Remote host closed the connection]
<arturaz>
appamatto, you can use ActiveRecord as a separate lib
<arturaz>
:)
<kenneth>
appamatto: no, the idea is you pick your pieces. you can use active record with sinatra if you'd like, or another orm
timonv has quit [Remote host closed the connection]
<kenneth>
appamatto: but really, don't. ORMs are evil
<Hanmac_>
colonolGron do an require "rubygems" before you require gems
jenrzzz has joined #ruby
timonv has joined #ruby
<colonolGron>
Hanmac_: what does it do?
<appamatto>
kenneth: Don't ORMs give you a lot of things for free?
d2dchat has joined #ruby
kpshek has quit []
<kenneth>
appamatto: they'll come back and bite you in the ass later
<kenneth>
if you ever need to scale whatever it is you're making
<Hanmac_>
colonolGron it does enable gems, so you can require them
lord4163 has left #ruby [#ruby]
Coolhand|laptop has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
atmosx has joined #ruby
eldariof has quit []
Proshot is now known as prio
prio is now known as Proshot
miskander has joined #ruby
zommi has quit [Quit: Leaving.]
interactionjaxsn has joined #ruby
maletor has joined #ruby
foofoobar has joined #ruby
Coolhand has joined #ruby
cableray has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
kpshek has joined #ruby
<colonolGron>
Hanmac_: thank you. it worked. when i started informing myself about ruby i read somewhere that i shouldnt do a "require 'rubygems'" in source that i want to share with others, but they didnt say why.
kold_ has quit [Remote host closed the connection]
falsetto has quit [Quit: Computer has gone to sleep.]
<Hanmac_>
in recent ruby it is done automaticly ... and IMO 1.8 should not be used anymore
Coolhand has quit [Remote host closed the connection]
<colonolGron>
good to know!
miskander has quit [Client Quit]
n1x has joined #ruby
Jackneill has quit [Remote host closed the connection]
hydrozen has quit [Quit: Computer has gone to sleep.]
Vainoharhainen has joined #ruby
<Spaceghost|cloud>
Yeah 1.9 pulled in rubygems.
<Spaceghost|cloud>
So it's already there! And stop using 1.8 please.
<cr3>
is there a preference between doing File.open('/some/file').each, or File.open('/some/file').each, or File.foreach('/some/file')?
jrajav has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
<arturaz>
cr3, first two are the same?
<Hanmac_>
cr3 ... not use open without block ... otherwise it bites in your ass
alvaro_o_ has joined #ruby
blueOxigen has quit [Ping timeout: 251 seconds]
Spitfire_ has quit [Changing host]
Spitfire_ has joined #ruby
Spitfire_ is now known as Spitfire
alvaro_o has quit [Ping timeout: 276 seconds]
kil0byte has quit [Remote host closed the connection]
albakry has joined #ruby
albakry has quit [Changing host]
albakry has joined #ruby
<Hanmac_>
cr3 its like open your front door ... and then you dont close the door
DatumDrop has joined #ruby
kenneth has quit [Read error: Operation timed out]
<rismoney>
anyone familiar with win32ole?
rads has quit []
swingha has quit [Quit: WeeChat 0.3.9.2]
kenneth has joined #ruby
bluOxigen has joined #ruby
falsetto has joined #ruby
Dreamer3__ has quit [Ping timeout: 240 seconds]
phantasm66 has quit [Quit: *sleeeep….]
interactionjaxsn has joined #ruby
a_a_g has quit [Quit: Leaving.]
tjbiddle has quit [Read error: Connection reset by peer]
MattRB has quit [Quit: This computer has gone to sleep]
tjbiddle has joined #ruby
rads has joined #ruby
kenneth has quit [Ping timeout: 244 seconds]
etcetera has quit []
JMcAfreak has joined #ruby
MattRB has joined #ruby
Dreamer3 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
albakry has quit [Read error: Connection reset by peer]
<reactormonk>
rismoney, nope
carloslopes has joined #ruby
<cr3>
arturaz: sorry, the second was suppose to be each_line
_alejandro has joined #ruby
<Kovensky>
cr3: there is no File#foreach
<Kovensky>
oh, nvm, there is a File.foreach
<Kovensky>
cr3: use File.foreach
<cr3>
Kovensky: yeah, as Hanmac_ pointed out, no need to worry about closing the file. neato!
<Kovensky>
yep
JMcAfreak has quit [Quit: They're coming to take me away, ha-haa!]
chrismhough has quit [Quit: chrismhough]
ryannielson has joined #ruby
JMcAfreak has joined #ruby
carloslopes has quit [Ping timeout: 272 seconds]
buibex has joined #ruby
whowantstolivef1 has quit [Quit: quit]
<ryannielson>
Can anyone recommend any online Ruby tutorials? I'm creating a learning resources list, and I want to add some online resources in addition to the books I already have on the list.
<epochwolf>
He thought beacuse I can build a new server on rackspace in 2 hours from my personal checklist, I should be able to install a new application to an existing server with existing services in the same amount of time.
<epochwolf>
workmad3: I don't think yum is working at all.
<workmad3>
wouldn't surprise me
<epochwolf>
Error: No Package Matching autoconf
<epochwolf>
It's also missing libffi-devel
<aedornv>
yeah, I'm sure the repository is dead for RH5 already
<workmad3>
epochwolf: yum whatprovides autoconf
<epochwolf>
autoconf-2.59-12.noarch : A GNU tool for automatically configuring source code.
<epochwolf>
Repo : installed
<epochwolf>
Other : Provides-match: autoconf
<epochwolf>
Matched from:
<workmad3>
ah, so probably aedornv is right, repo is dead
moos3 has quit [Ping timeout: 260 seconds]
<epochwolf>
great
<reactormonk>
more security holes than a swiss?
slainer68 has joined #ruby
<epochwolf>
reactormonk: it's firewalled to an internal vlan with 6 computers allowed to access it.
<reactormonk>
epochwolf, welcome to pivots
<epochwolf>
reactormonk: I can't get access to this box outside the switch it's on.
heyitsdave has quit [Read error: Operation timed out]
<epochwolf>
so I really don't care about security much
<epochwolf>
and my manager has pretty much told me I'm not paid to care about security
Proshot has quit [Quit: Leaving]
Asher has quit [Quit: Leaving.]
blacktulip has quit [Remote host closed the connection]
<reactormonk>
epochwolf, so go with password 'password1' :>
<epochwolf>
reactormonk: that's the root password
headius has quit [Quit: headius]
<epochwolf>
reactormonk: this is an internal test box for our applications. Security really isn't important.
<reactormonk>
data directly form R&D \o/
<epochwolf>
workmad3 or aedornv: is there an alternative source I can configure for redhat?
<workmad3>
I don't know personally... it's been a long time since I last used anything redhat related
<epochwolf>
reactormonk: you mean our test insurance policies? Enjoy.
mahlon has joined #ruby
<epochwolf>
reactormonk: trust me, this application is useless to anyone outside this company.
<aedornv>
you're down to RPM really.. or source
<workmad3>
last time was... I think a centos 5 server I installed to try out a package about 3 years ago? that I gave up on and got working on ubuntu instead
<epochwolf>
aedornv: that's going to be painful.
<aedornv>
mmm shouldn't be
Kakera has quit [Ping timeout: 276 seconds]
maxmanders has quit [Ping timeout: 260 seconds]
MattRB has quit [Quit: This computer has gone to sleep]
<reactormonk>
aedornv, a linux without repos is doomed
<aedornv>
reactormonk: yes, but there's plenty of places to get things for older versions of RedHat and Debian ... not true of other distributions
Mon_Ouie has quit [Ping timeout: 248 seconds]
<epochwolf>
aedornv: okay, so how do I find an rpm that will work with redhat 5?
<reactormonk>
aedornv, debian has backports
<workmad3>
epochwolf: I think he gave you one ;)
<jblack>
anyone familiar with Datamapper? I'm trying to sort descenting by an aggregate count ( res = Party.aggregate(:all.count.desc, :filing_id, args.merge(pargs))
<epochwolf>
workmad3: and the next 4 missing packages I need to compile?
<jblack>
and I can't seem to get it right
<workmad3>
epochwolf: err...
<reactormonk>
aedornv, other distros - only to a certain amount. Official support cycles
<workmad3>
epochwolf: get a ubuntu VM running on the box and install in that inshead?
jjbohn is now known as jjbohn|afk
<epochwolf>
workmad3: I wish.
<workmad3>
epochwolf: tell your manager that you don't do red hat?
<epochwolf>
I'll go talk to the IT team here and see if they have any ideas.
<epochwolf>
workmad3: already tried that. He said it's the same as ubuntu.
jxf has joined #ruby
<workmad3>
epochwolf: tell your manager he's an idiot that's talking out his ass?
<workmad3>
epochwolf: and then look for a new job?
<epochwolf>
workmad3: several times, with a witness.
grzywacz has quit [Quit: :wq]
<epochwolf>
last night.
tPl0ch has quit [Quit: Verlassend]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
DrShoggoth has joined #ruby
luckyruby has quit [Remote host closed the connection]
jfl0wers has quit [Ping timeout: 240 seconds]
<aedornv>
epochwolf: what *isn't* blocked then?
<epochwolf>
yay, IT says nuke it and rebuild it.
<epochwolf>
aedornv: servers in the US and Europe.
elico has quit [Ping timeout: 264 seconds]
philcrissman has quit [Remote host closed the connection]
<epochwolf>
sorry, Western Europe
<aedornv>
oh, if you get to nuke it then nevermind
timonv_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
<epochwolf>
aedornv: just covering ass here.
timonv_ has quit [Remote host closed the connection]
timonv has joined #ruby
Michael_ has quit [Remote host closed the connection]
maxmande_ has joined #ruby
rking has quit [Ping timeout: 276 seconds]
sjuxax has joined #ruby
<sjuxax>
Hello. I am using Sinatra. I am trying to spawn a process from Sinatra. It initially appears to spawn all right, but the spawned process dies and goes to a zombie a few seconds after generation. Any ideas on resolutions for this?
Skyrunner has joined #ruby
<hackeron>
I have a date/time string 2232051313 (format is hhmmMMDDYY) - how would I turn it into a ruby time object?
<reactormonk>
sjuxax, source plz
<reactormonk>
hackeron, take a look at Time.parse
<hackeron>
reactormonk: it returns 2232-05-13 13:00:00 +0100, heh
Skyrunner has left #ruby [#ruby]
<epochwolf>
aedornv: this was fun, thanks for your time :)
drewtemp has quit [Quit: drewtemp]
<reactormonk>
hackeron, or generally time docs - maybe you can provide a format string
timonv has quit [Ping timeout: 252 seconds]
<aedornv>
epochwolf: lol, sure
chrismhough has quit [Quit: chrismhough]
Ankhers has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<hackeron>
reactormonk: I'm looking at docs for Time.parse, it doesn't provide a format string - any specific method?
<reactormonk>
hackeron, no idea
<epochwolf>
aedornv: I can't wait to get bitched out for not getting it to compile.
chrismhough has joined #ruby
<reactormonk>
hackeron, otherwise regexp...
<hackeron>
reactormonk: yeh, I was thinking regex
kpshek has joined #ruby
<hackeron>
was just wondering if there was a time format in ruby to go from string to time, rather than from time to string
<sjuxax>
it may be due to output redirection, because the script runs fine if I run it on the console
<hackeron>
everything seeems to go from Time to String, not the other way around :(
<reactormonk>
sjuxax, you know of finally?
ilyam has joined #ruby
dougireton has quit [Quit: Leaving.]
<sjuxax>
reactormonk: yes, just don't think of it very often
<sjuxax>
would it affect this case?
<sjuxax>
*issue
banister_ has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
Rix has quit [Ping timeout: 260 seconds]
MattRB has joined #ruby
<sjuxax>
ah, perhaps I don't know of finally if it pretains to a Ruby thing. Looks like it's called "ensure" in Ruby.
jds_ has quit [Remote host closed the connection]
jds_ has joined #ruby
dougireton has joined #ruby
<reactormonk>
sjuxax, duh. good to know, mixed up langs
jenrzzz has joined #ruby
kaen has quit [Quit: Leaving]
robotmay has joined #ruby
kaen has joined #ruby
DatumDrop has quit [Remote host closed the connection]
Vert has joined #ruby
malte_ has joined #ruby
emergion has joined #ruby
<reactormonk>
sjuxax, you want to do a blocking call?
banister`cnc has joined #ruby
<sjuxax>
reactormonk: no, i want it to run that process non-blocking
interactionjaxsn has quit [Remote host closed the connection]
<reactormonk>
sjuxax, why the Process.wait() ?
JJMalina has quit [Quit: Leaving...]
maxmande_ has quit [Quit: Computer has gone to sleep.]
atno has quit [Ping timeout: 252 seconds]
jds_ has quit [Ping timeout: 248 seconds]
<sjuxax>
so that the forked process waits. I don't mind if the forked parent waits because it won't be interrupting my workflow. I suppose I could try it iwht process.detach
<sjuxax>
ah, also because I don't want the kill_spawn_lock function to run until the process is done
tessier has joined #ruby
<sjuxax>
reactormonk: no difference in results with Process.detach anyway
vlad_starkov has joined #ruby
<sjuxax>
process runs for a few moments and then goes defunct
maxmanders has joined #ruby
diegoviola has quit [Quit: WeeChat 0.3.9.2]
RagingDave has quit [Quit: Ex-Chat]
maxmanders has quit [Client Quit]
<sjuxax>
ah, works fine without output redirectoin. I'll have to use the spawn parameters I guess. Thanks.
<Xeago>
it was just interesting to see what I can do with it, not really using it
mjolk has quit [Quit: This computer has gone to sleep]
cableray has joined #ruby
cr3 has quit [Quit: leaving]
<banister`cnc>
i didnt check out pry-command_result, that's another one by him?
<Xeago>
yea
hbpoison has quit [Ping timeout: 276 seconds]
apeiros has quit [Ping timeout: 255 seconds]
<Banistergalaxy>
Very cool
Michael_ has joined #ruby
<Banistergalaxy>
I think the same fix will correct this one too
robert_ has joined #ruby
robert_ has joined #ruby
robert_ has quit [Changing host]
<Xeago>
I am eager :3
Mon_Ouie has joined #ruby
Spooner has quit [Read error: Connection reset by peer]
interactionjaxsn has quit [Remote host closed the connection]
reppard has quit [Ping timeout: 252 seconds]
freakazoid0223 has joined #ruby
kirun has quit [Quit: Client exiting]
Asher has joined #ruby
banister`cnc has quit [Read error: Connection reset by peer]
Spooner has joined #ruby
vlad_starkov has joined #ruby
banister`cnc has joined #ruby
<xybre>
So if I File.open a log file and loop over it until the end, it will automatically close the file (when using #readline), instead I don't want it to close and I want it to block until there's another line. Ideas?
<xybre>
(sorry File#each_line not #readline)
darkc0met has joined #ruby
<xybre>
If I was using a socket I could just do a #gets and it would block until the next newline, but would it explode on EOF?
Amnesia has joined #ruby
<Amnesia>
hi, is anyone over here known with ruby's expect method?
robert_ has quit [Ping timeout: 272 seconds]
<Spooner>
Amnesia, #expect? Can you give some context?
<Amnesia>
^ only outputs: The authenticity of host 'welchia.on2it.net (85.17.178.42)' can't be established.
<Amnesia>
RSA
Virunga has quit [Remote host closed the connection]
blaxter has joined #ruby
<Amnesia>
(most likely it's related to the regex)
v0n has quit [Ping timeout: 240 seconds]
<Spooner>
Sorry, I haven't a clue. I was just wondering which #expect you meant ;)
<Amnesia>
ah k
tommyvyo_ has joined #ruby
MattRB has quit [Quit: This computer has gone to sleep]
arturaz has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
vlad_starkov has quit [Ping timeout: 244 seconds]
reppard has joined #ruby
Playground has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
<Spooner>
Amnesia, I'm sure that /^.*RSA/m is actually the same as /RSA/ - I'd read the output and print it out to see if you can see what you are expecting.
<Amnesia>
well, dunno how to output everything ^^
celinedior has joined #ruby
<Amnesia>
actually that's my current goalXD
zph has joined #ruby
<Amnesia>
(at least the fingerprint should be included)
cableray has quit [Quit: cableray]
<xybre>
Ah, I can just use File#gets, it'll return nil if its invalid
<xybre>
er, eof
<Spooner>
Yep.
<xybre>
But I still need to reloop over it, since new data will come in on that same file
advorak has quit [Remote host closed the connection]
<xybre>
And I'd prefer it blocked
<Spooner>
Use #select?
templaedhel has quit [Quit: Leaving...]
templaedhel has joined #ruby
drpaulruth has joined #ruby
<xybre>
Doh I always forget about select
<Spooner>
It is what expect relies on.
maletor has quit [Quit: Computer has gone to sleep.]
__BigO__ has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 272 seconds]
wargasm has joined #ruby
<Amnesia>
Spooner: [] is an acronym for select right?
<Amnesia>
so ssh_out[0] would mean the same ?
<drpaulruth>
Question about symbols. This is from the Ruby Koans. What does it mean to make a symbol out of :"cats and dogs"? Is that not already a symbol?
evanx has quit [Read error: Connection reset by peer]
joshman_ has quit [Ping timeout: 248 seconds]
piotr__ has quit [Ping timeout: 252 seconds]
<Spooner>
drpaulruth, That is a symbol, but you are making a string and converting it to a symbol in that example.
jonahR has quit [Quit: jonahR]
<Spooner>
drpaulruth, Same as if you did "cats and dogs".to_sym
<Spooner>
Amnesia, No idea. If it works, it works ;)
<Amnesia>
k ty:)
<drpaulruth>
Spooner: OK. I really appreciate it. So it's synonymous: ":cats and dogs" with :"cats and dogs"?
<Spooner>
No, the former is a string with a colon in it. The latter is a symbol.
frem has quit [Ping timeout: 248 seconds]
jonahR has joined #ruby
<Spooner>
You need to make it like that because there are spaces in it. Normally you could just do :cats, say.
<drpaulruth>
Spooner: OK. Right. Apologies.
maletor has joined #ruby
<drpaulruth>
Spooner: I see.
<drpaulruth>
Spooner: Thanks. Wasn't sure of the reasoning behind it.
jonahR has quit [Client Quit]
<Spooner>
<< p [:"cat", :"cats and dogs", :cat]
<Spooner>
>> p [:"cat", :"cats and dogs", :cat]
<eval-in>
Spooner: Output: "[:cat, :\"cats and dogs\", :cat]\n" (http://eval.in/6969)
dougireton has quit [Quit: Leaving.]
<drpaulruth>
Spooner: Ahhhh, thanks. I had been away from symbols a long time and am trying to re-learn them.
huoxito has joined #ruby
dankest has joined #ruby
<xybre>
Hmm. select is returning even when the file has hit EOF
<Spooner>
xybre, Did you look at the source on the select doc page?
<xybre>
Doing so now
<xybre>
Ah, still nonblocking, thats right
samphippen has joined #ruby
lateau has quit [Ping timeout: 252 seconds]
IrishGringo has quit [Ping timeout: 248 seconds]
<Kovensky>
< xybre> Hmm. select is returning even when the file has hit EOF <-- what was it supposed to do, deadlock? :)
pcarrier has joined #ruby
ChampS666 has quit [Ping timeout: 272 seconds]
<xybre>
I want io/wait
zastern has quit [Remote host closed the connection]
dougireton has joined #ruby
Banistergalaxy has quit [Ping timeout: 272 seconds]