<harushimo>
I got two bugs in this program which I can figure out
eignerch_ has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 276 seconds]
mercwithamouth has joined #ruby
<harushimo>
why am I getting the wrong winner for my first test case and how do I test for if people have the same choice
rabidpraxis has joined #ruby
<A124>
Paradox: Define 'inspect' method inside the class.
<cwron>
Hi, guys. I'm trying to improve https://github.com/compwron/radarTranslator/blob/master/lib/items.rb so that it can make an attr_accessor :parser and therefore only has to call Parser.new once, but neither class << self nor self.methodname are working for me in Parser and my googling says that it should be. Any suggestions?
luckyruby has quit [Remote host closed the connection]
<davetoo>
I would like to try to use rbenv under Windoze 7 (for veewee/vagrant work) but am not having much luck searching for the windows equivalent of eval "$(rbenv init -)" is
lggr has joined #ruby
<davetoo>
s/is$//
blazes816 has quit [Read error: Connection reset by peer]
blazes816 has joined #ruby
cjk101010 has quit [Ping timeout: 272 seconds]
davetoo has quit [Quit: Leaving.]
cjk101010 has joined #ruby
QKO has quit [Ping timeout: 245 seconds]
jeffreybaird has joined #ruby
<Michael_>
cwron, is Parser being created during get_recomendations_in_dir?
CaptainJet has joined #ruby
Bosox20051 has joined #ruby
jeffreybaird has quit [Client Quit]
QKO has joined #ruby
werdnativ has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 260 seconds]
<cwron>
Michael_, yes. Three times.
blazes816 has quit [Read error: Connection reset by peer]
blazes816 has joined #ruby
<cwron>
Michael_ I can break it out at the method level but I want all of Items to call one Parser, and I'm not sure how to do that :/
josh__ has quit [Remote host closed the connection]
<Michael_>
the problem is attr_accesor :parser means that there is an instance variable in the init function named parser, not that three instances of a class will be created, which btw will end up being called something lie <Parser: #8fe732>. If you wanted to make those available, i'd make an array and store the parsers in their, and make that array an attr_accesor
eikko has quit [Ping timeout: 240 seconds]
yshh has quit [Remote host closed the connection]
lggr has joined #ruby
CJNE has joined #ruby
hotovson_ has quit [Remote host closed the connection]
cburyta has quit [Remote host closed the connection]
<cwron>
Michael_ hmm, that makes sense. Ideally I would only ahve one parser, and call its static methods to parse different bits of text
<Michael_>
yeah, why can't you use the same parser in your map function?
drago757 has joined #ruby
<cwron>
Not sure. Here's what I'm seeing... So if you look at get_items in https://github.com/compwron/radarTranslator/blob/master/lib/items.rb I wish it could use the attr_accessor parser that get_recommendations_in_dir is using, but when I do so, I see "cannot call method on nil", implying that @parser is nil... which I don't understand
CJNE has quit [Ping timeout: 246 seconds]
hotovson has joined #ruby
<Michael_>
I think to make a class variable, you preface it with @@, so @@parser= Parser.new, and then @@parser.get_recomentdation ...
<Michael_>
your welcome. Wha's this project about?
cakehero has joined #ruby
hotovson has quit [Read error: No route to host]
lggr has joined #ruby
havenn has joined #ruby
<cwron>
I want to make a prettier picture using some data, so I hand-scraped it out of PDFs and parsed it into csv. Next step is to use D3 javascript lib to make pretty pictures; I'm still struggling with that part, so I decided to refactor first.
<Michael_>
sounds cool
<Michael_>
good luck
<cwron>
thx
niklasb has quit [Read error: Operation timed out]
slainer68 has joined #ruby
Takehiro has joined #ruby
twoism has quit [Remote host closed the connection]
Carsekyx has joined #ruby
yshh has joined #ruby
samflores has joined #ruby
vitor-br has joined #ruby
SegFaultAX|work has joined #ruby
anachronistic has joined #ruby
mrsolo has left #ruby ["Leaving"]
ryanlecompte has quit [Remote host closed the connection]
hgf_ has joined #ruby
iori has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
yxhuvud has joined #ruby
uris has quit [Read error: Connection reset by peer]
uris has joined #ruby
samflores has quit [Client Quit]
fyolnish has joined #ruby
Takehiro has quit [Ping timeout: 260 seconds]
havenn has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
lggr has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
mahmoudimus has joined #ruby
SegFaultAX|work has quit [Ping timeout: 256 seconds]
chrishunt has quit [Ping timeout: 276 seconds]
jarred has quit [Quit: jarred]
Spooner has quit [Ping timeout: 245 seconds]
SegFaultAX|work has joined #ruby
zenformatics1 has joined #ruby
<harushimo>
be right back. I'm having with fixing this bug
<harushimo>
I'm having a hard time fixing this bug in my program
lggr has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
lggr has joined #ruby
AlbireoX has joined #ruby
Carsekyx has left #ruby ["Leaving"]
ken_barber has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
SegFaultAX|work has quit [Ping timeout: 244 seconds]
hsbt has quit [Read error: Connection reset by peer]
ken_barber has joined #ruby
lggr has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
ken_barber has quit [Remote host closed the connection]
Michael_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
hsbt_ is now known as hsbt_away
hsbt_away is now known as hsbt
tjbiddle has joined #ruby
cburyta has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
<harushimo>
I can't seem to figure out why I'm returning the correct winner
rakl has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<harushimo>
I mean I'm not returning the correct winner for my program
bricker_ has quit [Ping timeout: 276 seconds]
rovalent has joined #ruby
Pochacco has joined #ruby
Pochacco has quit [Client Quit]
havenn has joined #ruby
<rovalent>
All, qq - In terms of ERB, am I missing something regarding checking this for regex? <% if hostname != /^foo-.+-bar\.domain\.tld$/ %> text <% end %>
vlad_starkov has quit [Ping timeout: 260 seconds]
Vert has quit [Remote host closed the connection]
elux has joined #ruby
SegFaultAX|work has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
thinkclay has joined #ruby
marcux has quit [Quit: marcux]
GeekOnCoffee has joined #ruby
<profx_>
easy one, what is =~ ?
wedtm is now known as wedtm|away
Tearan has quit [Quit: Sleepy Badger....]
dblandin has joined #ruby
havenn has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 248 seconds]
<ddd>
used like: @var = "plus" ; @var =~ /us/ basically checks to see if the string value in @var contains what is between the / / and returns the position where it was found.
<ddd>
starting from 0. so that example would return 2 because us is found in plus and starts at pos 2
mikepack has quit [Remote host closed the connection]
rubious has quit [Quit: Leaving...]
<ddd>
returns nil if the wanted chars are not found
<profx_>
so it does perform an assignment
<profx_>
and it works left to right, and evaluates
xaq has quit [Remote host closed the connection]
<ddd>
no it does no assignment. it checks for
jeffreybaird has joined #ruby
lggr has joined #ruby
roadt has joined #ruby
rakl has quit [Quit: sleeping]
lagzilla has quit [Quit: Leaving]
rakl has joined #ruby
nitti has joined #ruby
mikeg has quit [Quit: Leaving]
apok has quit [Ping timeout: 260 seconds]
Michael has joined #ruby
<rovalent>
FYI, i just needed to use unless instead of !=
jeffreybaird has quit [Ping timeout: 260 seconds]
nitti has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 260 seconds]
adeponte has quit [Remote host closed the connection]
brianpWins has joined #ruby
lggr has joined #ruby
nari has joined #ruby
thinkclay has quit [Quit: Leaving.]
thinkclay has joined #ruby
v0n has quit [Ping timeout: 255 seconds]
Michael has quit [Remote host closed the connection]
joeycarmello has joined #ruby
havenn has joined #ruby
chrishunt has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Takehiro has joined #ruby
dblandin has quit [Quit: dblandin]
chin-tastic has joined #ruby
justsee has joined #ruby
justsee has quit [Remote host closed the connection]
lggr has joined #ruby
shadoi has joined #ruby
bapa has quit [Remote host closed the connection]
JonnieCache has joined #ruby
roadt has quit [Ping timeout: 260 seconds]
joshman_ has joined #ruby
wedtm|away is now known as wedtm
ttt has joined #ruby
slainer68 has joined #ruby
sebastorama has joined #ruby
Takehiro has quit [Ping timeout: 245 seconds]
pipopopo has quit [Ping timeout: 246 seconds]
daniel_- has quit [Ping timeout: 245 seconds]
Ruler_Of_Heaven_ has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
elux has quit [Quit: Bye!]
kaawee has quit [Quit: Konversation terminated!]
joshman_ has quit [Ping timeout: 260 seconds]
kaawee has joined #ruby
v0n has joined #ruby
manizzle_ has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 276 seconds]
freeayu has joined #ruby
beneggett has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
rburton- has joined #ruby
lggr has joined #ruby
Lemon|mbp has joined #ruby
<Lemon|mbp>
is there any defactor lib for generating images in ruby?
<tgriffin2081>
I am a n00b in ruby, I am trying to get it set up on the mac, and I added this repository from github, but when I run ruby thefile.rb ... it tells me tha tthe ruby gems 'require' cannot load such file
<tgriffin2081>
i have 1.9.3-p194
beneggett has quit [Ping timeout: 246 seconds]
<digerati_>
tgriffin2081: do macs have console?
<tgriffin2081>
yes i am in teh console
<tgriffin2081>
well terminal
<digerati_>
can you get to irb console?
<digerati_>
just type irb in terminal
<tgriffin2081>
ok that worked
<digerati_>
you should get irb(main):001:0>
<tgriffin2081>
its awaiting code
<tgriffin2081>
yes
<digerati_>
nice :)
Tearan has quit [Quit: Sleepy Badger....]
<digerati_>
im a noob also
<digerati_>
type require 'rubygems'
<digerati_>
does it come back with => True
<tgriffin2081>
i did and it shows => false
<digerati_>
That means it wasnt already loaded
<digerati_>
so its finding it
manizzle has joined #ruby
<digerati_>
er i mean, that it WAS already loaded
<tgriffin2081>
do you have to load ruby gems prior to running the code?
<digerati_>
yes
<digerati_>
typically
<digerati_>
so at the top, in some of the code in studying
<digerati_>
they have require 'rubygems'
<tgriffin2081>
yes
lggr has quit [Ping timeout: 245 seconds]
<tgriffin2081>
but i assume its failing because i haven't loaded it prior to running code
ewag has joined #ruby
beneggett has joined #ruby
<digerati_>
can you add that to the top to be sure?
<digerati_>
it will just come back with false if its already loaded
<tgriffin2081>
it has require 'rubygems'
<digerati_>
wont hurt
<digerati_>
:)
<digerati_>
you have a pastbin of the error?
<tgriffin2081>
i can get one
<burgestrand>
You don’t have to require rubygems since ruby 1.9
lggr has joined #ruby
<burgestrand>
tgriffin2081: you are probably missing some gem dependency of the code. The name of the file it is trying to load tells you which it is.
<tgriffin2081>
pastebin.com/zCaQKG5F
kuzushi has quit [Ping timeout: 256 seconds]
a_a_g has joined #ruby
<tgriffin2081>
OH oops..I'm missing hpricot.. I'm knew to ruby
<tgriffin2081>
i figured that it would get the gem automatically
<tgriffin2081>
so I have to gem install all the required
manizzle has quit [Ping timeout: 260 seconds]
<burgestrand>
tgriffin2081: most of them, anyway. You load gem libraries the same way you load local files.
cakehero has joined #ruby
<burgestrand>
tgriffin2081: so the name is not *always* a gem, but usually is.
<tgriffin2081>
like how do I check if I have the gem prior to loading it?
cburyta has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
Gal3rielol has quit [Quit: Computer has gone to sleep.]
Gal3rielol has joined #ruby
Gal3rielol has quit [Client Quit]
lggr has joined #ruby
cburyta has quit [Ping timeout: 245 seconds]
<tgriffin2081>
I got it to work.. thanks guys
Tearan has joined #ruby
<tgriffin2081>
does anyone know the hot key to run rspec from vim?
adeponte has joined #ruby
werdnativ has joined #ruby
ken_barber has quit [Quit: Leaving...]
rippa has quit [Ping timeout: 240 seconds]
ananthakumaran has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
manizzle has joined #ruby
lggr has joined #ruby
tagrudev has joined #ruby
ryanf has quit [Ping timeout: 245 seconds]
sagax has joined #ruby
emb_ has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
cakehero has quit [Quit: Computer has gone to sleep.]
nitti has joined #ruby
wallerdev has quit [Quit: wallerdev]
emb_ has left #ruby [#ruby]
lggr has quit [Ping timeout: 240 seconds]
Tearan has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
hemanth has quit [Read error: Connection reset by peer]
mds2 has joined #ruby
lggr has joined #ruby
daslicious_ has quit [Quit: daslicious_]
Takehiro has quit [Remote host closed the connection]
CJNE has joined #ruby
darule has quit [Ping timeout: 248 seconds]
mahmoudimus has joined #ruby
AlbireoX has quit [Remote host closed the connection]
AlbireoX has joined #ruby
lushious has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
answer_42 has joined #ruby
<tgriffin2081>
does anyone have a good startup guide that shows how to use vim , rspec and ruby (also tmux) to set up your windows with the tests in 1 "window" and the code in another?
lggr has joined #ruby
AlbireoX has quit [Ping timeout: 248 seconds]
Tearan has quit [Quit: Sleepy Badger....]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
lushious has joined #ruby
Tearan has joined #ruby
adeponte has quit [Remote host closed the connection]
samuel02 has joined #ruby
ken_barber1 has joined #ruby
ken_barber1 has quit [Client Quit]
samuel02 has quit [Read error: Connection reset by peer]
reset has joined #ruby
mohits has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
samuel02 has joined #ruby
ryanf has joined #ruby
Takehiro has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
evilsushi has joined #ruby
evilsushi has quit [Changing host]
evilsushi has joined #ruby
alecchen has joined #ruby
hemanth has joined #ruby
lggr has joined #ruby
und3f has joined #ruby
acrocity- has joined #ruby
nat2610 has joined #ruby
rakl has joined #ruby
Hanmac has joined #ruby
nat2610 has quit [Client Quit]
acrocity has quit [Ping timeout: 244 seconds]
yoklov has quit [Quit: computer sleeping]
mds2 has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
lggr has quit [Ping timeout: 252 seconds]
thmzlt has quit [Remote host closed the connection]
maesbn has joined #ruby
wedtm|away is now known as wedtm
alecchen has quit [Quit: alecchen]
daniel_hinojosa has quit [Quit: Leaving.]
timonv has joined #ruby
lggr has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
chussenot has joined #ruby
shadoi has quit [Quit: Leaving.]
manizzle has quit [Ping timeout: 276 seconds]
Hanmac has quit [Ping timeout: 256 seconds]
bapa has quit [Ping timeout: 246 seconds]
burgestrand has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 240 seconds]
bradleyprice has quit [Remote host closed the connection]
ABK has joined #ruby
cburyta has joined #ruby
dmiller has quit [Remote host closed the connection]
lggr has joined #ruby
Jamone has joined #ruby
Jamone has joined #ruby
Jamone has quit [Changing host]
Monie has quit [Read error: Connection reset by peer]
aganov has joined #ruby
kyletcarey has joined #ruby
<kyletcarey>
Is there any specific channel for people new to Ruby?
<rking>
tgriffin2081: There are many different ways to set all of that up.
cburyta has quit [Ping timeout: 256 seconds]
<rking>
tgriffin2081: I generally go all the way to guard, guard+spork if it's a slow project.
xaq_ has joined #ruby
xaq has quit [Read error: Connection reset by peer]
elsifaka has joined #ruby
<rking>
tgriffin2081: But I also :map <f4> :up<cr>:!rake<cr>
Takehiro has quit [Remote host closed the connection]
CJNE has quit [Remote host closed the connection]
evilsushi has quit [Quit: Lost terminal]
lggr has quit [Ping timeout: 260 seconds]
dmiller has joined #ruby
lggr has joined #ruby
hotovson_ has joined #ruby
manizzle has joined #ruby
<rking>
tgriffin2081: Let me/us know if you have trouble setting up Guard. It's a little gnarly.
margle has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
eldariof has joined #ruby
xclite has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
lolmaus has joined #ruby
nitti has joined #ruby
jlwestsr has quit [Ping timeout: 246 seconds]
_mak has joined #ruby
rakl has quit [Quit: sleeping]
Morkel has joined #ruby
lggr has joined #ruby
justsee has joined #ruby
hotovson_ has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
seoaqua has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
timonv has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
xaq_ has quit [Ping timeout: 260 seconds]
mohits has quit [Read error: Connection reset by peer]
havenn has quit [Remote host closed the connection]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
ZubKonst has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 244 seconds]
dhruvasagar has joined #ruby
hbpoison has joined #ruby
Eplemosen has joined #ruby
ZubKonst_ has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
lggr has joined #ruby
AMfish has joined #ruby
ngoldman has joined #ruby
Companion has quit [Ping timeout: 246 seconds]
mucker has joined #ruby
zigomir has joined #ruby
Companion has joined #ruby
xaq has joined #ruby
Takehiro has joined #ruby
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
mneorr has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
brianpWins has quit [Quit: brianpWins]
JonnieCache has joined #ruby
Bosox20051 has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
dr_bob has joined #ruby
chussenot has joined #ruby
artem has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
artem has quit [Remote host closed the connection]
artnez has quit [Read error: Connection reset by peer]
g_bleezy has quit [Read error: Connection reset by peer]
lggr has joined #ruby
dmiller has quit [Remote host closed the connection]
skogis has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
g_bleezy has joined #ruby
tonini has joined #ruby
AMfish has quit [Ping timeout: 246 seconds]
Virunga has joined #ruby
dhruvasagar has joined #ruby
Virunga is now known as LennyLinux
_cheney has quit [Read error: Connection reset by peer]
SohKai has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
mhodgson has quit []
lggr has quit [Ping timeout: 260 seconds]
Tearan has quit [Quit: Sleepy Badger....]
burgestrand has joined #ruby
wedtm is now known as wedtm|away
timonv has quit [Remote host closed the connection]
lggr has joined #ruby
Gal3rielol has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
eilyx has quit [Remote host closed the connection]
cburyta has joined #ruby
awestroke has joined #ruby
frihd has joined #ruby
vlad_starkov has joined #ruby
Jork1 has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
cburyta has quit [Ping timeout: 264 seconds]
maasha has joined #ruby
arturaz has joined #ruby
emergion has joined #ruby
gani has joined #ruby
rabidpraxis has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
<maasha>
Hello. Is there a way to find out from within Ruby the number of bits used for pack template directives?
reset has quit [Quit: Leaving...]
<maasha>
i.e that C is 8 bits
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<dr_bob>
maasha: I think this is fixed by specification (i.e. in the docs)
hoelzro|away is now known as hoelzro
<maasha>
hm, ok
daslicious has quit [Ping timeout: 256 seconds]
rabidpraxis has joined #ruby
mahmoudimus has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
fphilipe has joined #ruby
Elhu has joined #ruby
don9z has joined #ruby
rabidpraxis has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
nitti has joined #ruby
cezar has joined #ruby
cezar has quit [Remote host closed the connection]
don9z has left #ruby [#ruby]
xaq has quit [Ping timeout: 246 seconds]
chussenot has quit [Quit: chussenot]
<dr_bob>
What do you need that for?
ewag has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
Averna has quit [Quit: Leaving.]
xorgnak has quit [Ping timeout: 260 seconds]
mohits has quit [Remote host closed the connection]
nitti has quit [Ping timeout: 260 seconds]
werdnativ has quit [Quit: werdnativ]
bluenemo_ has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
vjt has quit [Ping timeout: 272 seconds]
vjt has joined #ruby
fixl has joined #ruby
lggr has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
twoism has quit [Ping timeout: 245 seconds]
answer_42 has quit [Quit: WeeChat 0.3.9]
mneorr has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
timonv has quit [Remote host closed the connection]
mucker has quit [Quit: leaving]
lggr has quit [Ping timeout: 264 seconds]
mucker has joined #ruby
gani has quit [Quit: leaving..]
lukaszk has joined #ruby
jamjam has joined #ruby
lukaszk has quit [Client Quit]
lggr has joined #ruby
<maasha>
dr_bob: I was messing around with a class for encapsulating some inline C. I want to allocate memory from Ruby and manipulate byte strings with C. Very crufty :o)
dhruvasagar has quit [Ping timeout: 256 seconds]
SmoothSage has joined #ruby
xbayrockx has joined #ruby
jimeh2 has joined #ruby
dhruvasagar has joined #ruby
mengu has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
SmoothSage has quit [Max SendQ exceeded]
SmoothSage has joined #ruby
lukaszk has joined #ruby
tchebb has quit [Quit: Leaving.]
monkegjinni has joined #ruby
lukaszk has quit [Client Quit]
manizzle has quit [Ping timeout: 255 seconds]
lggr has quit [Ping timeout: 245 seconds]
dmiller has joined #ruby
_md has joined #ruby
SmoothSage has quit [Max SendQ exceeded]
DuoSRX has joined #ruby
SmoothSage has joined #ruby
tchebb has joined #ruby
elaptics`away is now known as elaptics
lggr has joined #ruby
lukaszk has joined #ruby
SmoothSage has quit [Max SendQ exceeded]
dmiller has quit [Ping timeout: 244 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
mucker has quit [Quit: Lost terminal]
chichou has joined #ruby
mucker has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
SmoothSage has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
robotmay has joined #ruby
sebastorama has quit [Quit: Computer has gone to sleep.]
tgriffin2081 has quit []
beiter has joined #ruby
timonv has joined #ruby
bluenemo has quit [Remote host closed the connection]
bluenemo_ has quit [Remote host closed the connection]
lggr has joined #ruby
chussenot has joined #ruby
seoaqua has quit [Ping timeout: 248 seconds]
sepp2k has joined #ruby
holden2471 has joined #ruby
burgestrand has quit [Ping timeout: 245 seconds]
skryking has quit [Ping timeout: 246 seconds]
jimeh2 has quit [Quit: bye]
burgestrand has joined #ruby
AMfish has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
haxrbyte has joined #ruby
cburyta has joined #ruby
holden2471 has left #ruby [#ruby]
lggr has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
jimeh has joined #ruby
emergion has joined #ruby
darule has joined #ruby
brtdv has joined #ruby
don9z has joined #ruby
don9z has left #ruby [#ruby]
drule has joined #ruby
cburyta has quit [Ping timeout: 255 seconds]
mucker has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
darule has quit [Ping timeout: 240 seconds]
pskosinski has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
slainer68 has joined #ruby
flype has joined #ruby
ananthakumaran has quit [Read error: Operation timed out]
rabidpraxis has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
ananthakumaran has joined #ruby
hotovson has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
dhruvasagar has joined #ruby
lggr has joined #ruby
slainer6_ has joined #ruby
xorgnak has joined #ruby
poseid has joined #ruby
slainer68 has quit [Ping timeout: 252 seconds]
rabidpraxis has quit [Ping timeout: 260 seconds]
<dr_bob>
ah
codecop has joined #ruby
<dross>
hmm
cantonic has quit [Quit: cantonic]
_md has quit [Quit: Leaving...]
cantonic has joined #ruby
AMfish has quit []
lggr has quit [Ping timeout: 276 seconds]
piotr_ has joined #ruby
lggr has joined #ruby
haxrbyte has quit [Remote host closed the connection]
timmow has joined #ruby
haxrbyte has joined #ruby
deadghost has quit [Ping timeout: 264 seconds]
ankso has joined #ruby
<dr_bob>
well well
ankso has left #ruby [#ruby]
greenarrow has joined #ruby
<dross>
dr_bob: o.o
lggr has quit [Ping timeout: 256 seconds]
<matti>
;]
lggr has joined #ruby
frogprince_mac has joined #ruby
* dr_bob
loves these intellectual challenging discusssions
_md has joined #ruby
<matti>
Ohai dr_bob
<matti>
dr_bob: We always have these here.
<matti>
;]
lggr has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Quit: Lost terminal]
dhruvasagar has joined #ruby
lggr has joined #ruby
nari has quit [Ping timeout: 245 seconds]
haxrbyte has quit [Read error: Connection reset by peer]
manizzle has joined #ruby
prtksxna has joined #ruby
tonini has quit [Remote host closed the connection]
thedeadghost has joined #ruby
thisirs has joined #ruby
tvw has joined #ruby
timonv has quit [Remote host closed the connection]
sa125 has joined #ruby
sa125 has left #ruby [#ruby]
chussenot has joined #ruby
brtdv has quit [Quit: Bye]
hotovson has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
brtdv has joined #ruby
beiter has quit [Read error: Connection reset by peer]
brtdv has quit [Remote host closed the connection]
brtdv has joined #ruby
vlad_starkov has joined #ruby
brtdv has quit [Client Quit]
beiter has joined #ruby
haxrbyte has joined #ruby
brtdv has joined #ruby
daniel_- has joined #ruby
lggr has joined #ruby
seoaqua has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
Neomex has joined #ruby
Neomex has quit [Client Quit]
timonv has joined #ruby
nari has joined #ruby
hotovson has quit [Remote host closed the connection]
thisirs has quit [Remote host closed the connection]
cburyta has joined #ruby
vaclavt has joined #ruby
slainer6_ has quit [Read error: Operation timed out]
brtdv has quit [Quit: Gone]
timonv has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
ad_da has joined #ruby
<ad_da>
hi
beneggett has quit [Quit: Computer has gone to sleep.]
havenn has quit [Remote host closed the connection]
<ad_da>
I have a interger variable like n=5. how can I do something similar to n.each do ..... end
<ad_da>
I mean repeat the times of the integer
<lukaszk>
5.times.do ....
<ad_da>
lukaszk: thank you
lggr has quit [Ping timeout: 240 seconds]
<lukaszk>
bp
<lukaszk>
np
hotovson_ has joined #ruby
<matti>
.do?
cburyta has quit [Ping timeout: 240 seconds]
<matti>
;]
zz_chrismcg is now known as chrismcg
<lukaszk>
it's a typo, not enough coffee :-)
<matti>
Haha
<matti>
I know, no worries ;]
<matti>
Reminded me about MSSQL.
<matti>
Where you have to call statent-handle.do
<matti>
;D
<lukaszk>
ewwww
slainer68 has joined #ruby
<matti>
lukaszk: ... are you based in London?
<lukaszk>
yeah, why?
<matti>
Do you like Anime by any chance too?
cascalheira has joined #ruby
eldariof has quit []
* lukaszk
gets uncomfortable
timonv has joined #ruby
<matti>
I know Lukasz who is based in London, likes anime and Korean food ;d
<matti>
Might that be you?
<matti>
Based in Shoreditch?
<lukaszk>
internet is a small place ;-)
lggr has joined #ruby
<matti>
Indeed it is ;d
* matti
-> kwilczynski
ephemerian has joined #ruby
* matti
goes *yay*
dhruvasagar has quit [Ping timeout: 246 seconds]
Jrz has joined #ruby
samphippen has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
hotovson_ has quit [Remote host closed the connection]
brtdv has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
lggr has joined #ruby
brtdv has quit [Client Quit]
brtdv has joined #ruby
mmitchell has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
mmitchell has quit [Remote host closed the connection]
jlebrech has joined #ruby
<jlebrech>
Is it possible for cucumber to dump you into an irb session?
<lukaszk>
jlebrech: yeah, with pry
<withnale>
is there any ruby 1.9.x version available packaged for centos6.3? (inc jruby) I don't want to have to install compilers on all my machines. alternatively, how easy is it to package ruby and gems myself?
<lukaszk>
require 'pry'; binding.pry in one of your features
<matti>
withnale: What distribution?
<matti>
withnale: You can build Ruby of your chocie easily with FPM.
prtksxna has quit [Remote host closed the connection]
lggr has joined #ruby
<matti>
withnale: Aside of trying to mingle with rvm and likes.
timonv has quit [Remote host closed the connection]
Nathandim has joined #ruby
timonv has joined #ruby
<workmad3>
withnale: latest version of RVM can install binary distributions rather than source
<withnale>
yeah. I just thought of using fpm. and saw it also had an interface for packaging gems
<matti>
withnale: It does.
<matti>
withnale: And its dead easy to use.
<workmad3>
withnale: however, many gems use native extensions so you're likely to want/need compilers available anyway
<matti>
withnale: I ship 1.9.2 and all gems as debs built with it.
<withnale>
yeah. used it for source -> pkg before.
<matti>
withnale: :)
<matti>
withnale: The annoyance is that you have to sway from the Debian and/or RH way.
<workmad3>
ah, packaging gems... always 'fun'
<matti>
withnale: If you want to remain sane.
<matti>
withnale: I install my Rubies under /opt
<dr_bob>
matt, you believe you are still sane???
<dr_bob>
That's a clear indication of insanity.
<matti>
dr_bob: No. Sanity was destroyed long time ago by banister ;d
no_worries has quit [Remote host closed the connection]
<banisterfiend>
lukaszk: yeah, we have some pretty powerful exception handling stuff now, we even have a 'continue-exception' that allows you to recover from errors after fixing them, in some situations
manizzle has joined #ruby
<banisterfiend>
matti: irb doesnt fizz and pop enough
dr_bob has quit [Quit: Leaving.]
<matti>
banisterfiend: :<
<matti>
banisterfiend: Not shiny enough?
<lukaszk>
irb is for hipsters imo
<banisterfiend>
hehe
<matti>
LOL
* matti
felt bad just now
<banisterfiend>
matti: not powerful enough :) and not pretty enough
<matti>
I need to put my skinny jeans, old shoes and thick-frame glassessss now...
<matti>
banisterfiend: Get pry into the Core.
Vert has joined #ruby
seoaqua has quit [Ping timeout: 248 seconds]
<matti>
banisterfiend: Hint: Japanese like good food, in case you have to bribe Matz.
<banisterfiend>
matti: nah, then it's hard to update :)
<banisterfiend>
gem is good for us
<lukaszk>
a gem is enough, easier to update if it's not in std lib
<matti>
;]
<banisterfiend>
yeah
<matti>
I guess makes sense
lggr has joined #ruby
dr_bob has joined #ruby
<matti>
Hey dr_bob
jgrevich has quit [Quit: jgrevich]
cburyta has joined #ruby
<dr_bob>
reboot
lggr has quit [Ping timeout: 260 seconds]
Jake232 has joined #ruby
marcux has joined #ruby
aknagi has joined #ruby
arietis has joined #ruby
<jlebrech>
i cucumber I want to "click 'foo' link' but I also have a 'foobar' link. how do specify in the string that I want to match 'foo' precisely?
nowhereman has quit [Remote host closed the connection]
lggr has joined #ruby
<JonnieCache>
i need some regex help. how to I make a whole substring optional? I have this: `/foo (bar)? baz/ =~ "foo baz"`
<JonnieCache>
which should match, but doesnt. what am i missing?
<DarkStar1>
I'm at the part where I have to install ruby :)
banisterfiend has quit [Read error: Connection reset by peer]
<lukaszk>
DarkStar1: you can use rvm, or get ruby1.9 via apt and make it a system ruby (replacing old 1.8.7) via update alternatives magic
<matti>
DarkStar1: Oh ;]
<JonnieCache>
you want the latest 1.9.3
<JonnieCache>
its 1.9.3-p194 iirc
xpen has joined #ruby
haxrbyte has quit [Ping timeout: 256 seconds]
Jake232 has quit [Quit: Computer has gone to sleep.]
nitti has quit [Ping timeout: 246 seconds]
nari has quit [Ping timeout: 245 seconds]
baphled has joined #ruby
haxrbyte has joined #ruby
matti has quit [Quit: 8-X]
lggr has quit [Ping timeout: 276 seconds]
<DarkStar1>
thx guys
timonv has quit [Remote host closed the connection]
xpen has quit [Remote host closed the connection]
nari has joined #ruby
rakunHo has quit [Remote host closed the connection]
lggr has joined #ruby
matti has joined #ruby
hotovson_ has joined #ruby
Jork1 has quit [Quit: Jork1]
morozovm has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
rakl has quit [Quit: sleeping]
lggr has joined #ruby
Shipow has joined #ruby
hotovson_ has quit [Remote host closed the connection]
eikko has quit [Excess Flood]
Jork1 has joined #ruby
fyolnish_ has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
hotovson has joined #ruby
lggr has joined #ruby
eikko has joined #ruby
awestroke has quit [Remote host closed the connection]
hotovson has quit [Ping timeout: 245 seconds]
xaq has joined #ruby
hsbt_away is now known as hsbt
lggr has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Quit: leaving]
LennyLinux has quit [Remote host closed the connection]
seoaqua has joined #ruby
dhruvasagar has joined #ruby
lggr has joined #ruby
Neomex has quit [Quit: Neomex]
dhruvasagar has quit [Client Quit]
dhruvasagar has joined #ruby
maasha has quit [Quit: Page closed]
seoaqua has quit [Ping timeout: 246 seconds]
verto|off is now known as verto
dagnachewa has joined #ruby
morozovm has quit [Read error: Connection reset by peer]
Vainoharhainen has joined #ruby
morozovm has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
Foxandxss has joined #ruby
take_cheeze has quit [Quit: Leaving.]
take_cheeze has joined #ruby
lggr has joined #ruby
cburyta has joined #ruby
realniko_ has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
ltsstar has joined #ruby
mneorr has quit [Remote host closed the connection]
cburyta has quit [Ping timeout: 246 seconds]
uris has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
[Neurotic] has quit [Remote host closed the connection]
realniko_ has quit [Ping timeout: 245 seconds]
eikko is now known as akemEikko
sepp2k has quit [Quit: Leaving.]
mgrayson has joined #ruby
lggr has joined #ruby
dhruvasagar has quit [Quit: Lost terminal]
dhruvasagar has joined #ruby
dhruvasagar has quit [Client Quit]
krz has quit [Quit: krz]
dhruvasagar has joined #ruby
_md has quit [Quit: Leaving...]
MikeyV27 has joined #ruby
dhruvasagar has quit [Client Quit]
lggr has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
gani has joined #ruby
ltsstar has quit [Quit: ltsstar]
frogprince_mac has quit [Quit: Leaving...]
bapa has joined #ruby
akemEikko has quit [Ping timeout: 246 seconds]
gani has quit [Client Quit]
lggr has joined #ruby
bapa has quit [Client Quit]
larissa has joined #ruby
piotr__ has joined #ruby
Morkel has quit [Quit: Morkel]
piotr_ has quit [Ping timeout: 260 seconds]
josh^ has quit [Ping timeout: 260 seconds]
ad_da has quit [Quit: leaving]
eikko has joined #ruby
eikko has quit [Excess Flood]
nari has quit [Ping timeout: 245 seconds]
bapa has joined #ruby
nari has joined #ruby
bapa has quit [Client Quit]
bapa has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
bapa has quit [Client Quit]
<A124>
I could not figure out "EOFError: end of file reached from /usr/share/ruby/net/protocol.rb:141:in `read_nonblock'" Any ideas?
lggr has joined #ruby
frogprince_mac has joined #ruby
mneorr has joined #ruby
baphled has quit [Ping timeout: 246 seconds]
hotovson_ has joined #ruby
heftig has joined #ruby
arielpts has quit [Excess Flood]
<A124>
(in Net::HTTP.post)
arielpts has joined #ruby
und3f1 has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
und3f has quit [Ping timeout: 246 seconds]
palyboy has joined #ruby
samflores has joined #ruby
horofox has joined #ruby
yshh has quit [Remote host closed the connection]
nari has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
frihd has joined #ruby
knuskrot has joined #ruby
fixl has quit [Ping timeout: 245 seconds]
geekbri has joined #ruby
bapa has joined #ruby
answer_42 has joined #ruby
kaawee has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
Shipow has quit [Quit: Leaving...]
rabidpraxis has joined #ruby
peanuts___ has joined #ruby
<peanuts___>
Hi all, how to do pending test with Test::Unit ?
<peanuts___>
it seems it's not possible by using pending "my test"
lggr has quit [Ping timeout: 245 seconds]
mark_locklear has joined #ruby
Virunga has joined #ruby
rabidpraxis has quit [Ping timeout: 246 seconds]
siril has joined #ruby
zommi has quit [Quit: Leaving.]
dpk has joined #ruby
<shevy>
A124 perhaps something is trying to read input, and that fails
SirRamonGabriel has joined #ruby
<shevy>
A124 I have something similar when I try to use cgi in irb
aganov has quit [Read error: Connection reset by peer]
lggr has joined #ruby
aganov has joined #ruby
siril has left #ruby ["WeeChat 0.3.7"]
kyktommy has joined #ruby
<A124>
shevy: Yes. But the thing is I don't see what or where is the catch.
burgestrand has quit [Ping timeout: 246 seconds]
<shevy>
hehe
Rydefalk_ has joined #ruby
kyktommy has quit [Client Quit]
Rydefalk has quit [Read error: Connection reset by peer]
<A124>
I just need to fill in captcha, that is there as DoS prevention. (The site is probably target for spammers, as it contains personal information.
eikko has joined #ruby
elico has quit [Quit: elico]
eikko has quit [Max SendQ exceeded]
eikko has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
krawchyk has joined #ruby
Shipow has joined #ruby
lggr has joined #ruby
timonv has joined #ruby
gmurphey has quit [Ping timeout: 260 seconds]
zenformatics1 has quit [Quit: Leaving.]
ctevie has joined #ruby
ctevie has quit [Changing host]
ctevie has joined #ruby
cburyta has joined #ruby
fbernier has quit [Ping timeout: 245 seconds]
Jork1 has quit [Quit: Jork1]
_bart has joined #ruby
vitoravelino`afk is now known as vitoravelino
lggr has quit [Ping timeout: 240 seconds]
Jork1 has joined #ruby
zenformatics1 has joined #ruby
Jork1 has quit [Client Quit]
cburyta has quit [Ping timeout: 246 seconds]
elico has joined #ruby
lggr has joined #ruby
uris has quit [Quit: leaving]
jeffreybaird has joined #ruby
horofox has quit [Quit: horofox]
reinaldob has joined #ruby
xaq has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 240 seconds]
tommyvyo has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
kaawee has quit [Ping timeout: 252 seconds]
nitti has joined #ruby
lggr has joined #ruby
xaq has joined #ruby
knuskrot has left #ruby [#ruby]
vlad_starkov has joined #ruby
beiter has quit [Quit: beiter]
aquaranto has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
invisime has joined #ruby
mneorr has quit [Remote host closed the connection]
<A124>
shevy: Ok. The server replies gzip even with no accept encoding, also closes connection though keepalive, and even if I cope with all it replies again 403 even after I fill in the captcha. This stupid no-clue things are the worst.
Elhu has joined #ruby
callenb has joined #ruby
DarkStar1 has left #ruby [#ruby]
<shevy>
hehehe
<shevy>
you sound happy :)
<shevy>
I hate captchas
<shevy>
I think they were done to annoy humans
<shevy>
because a bot can surely solve it quickly
xaq has quit [Remote host closed the connection]
<A124>
It's just simple captcha to nail bots that crawl whole internet, except google and such.
burgestrand has joined #ruby
<A124>
I want to fill it with hand, but the problem is the request strangely
lggr has quit [Ping timeout: 260 seconds]
morozovm has quit [Ping timeout: 260 seconds]
fermion has joined #ruby
_bart has left #ruby [#ruby]
lggr has joined #ruby
awarner has joined #ruby
mneorr has joined #ruby
samflores has quit [Ping timeout: 252 seconds]
fermion_ has joined #ruby
xaq has joined #ruby
sspiff has quit [Remote host closed the connection]
fermion has quit [Read error: Connection reset by peer]
fermion_ is now known as fermion
jlwestsr has joined #ruby
awarner has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
atmosx has joined #ruby
frogprince_mac has quit [Quit: Leaving...]
xaq has quit [Remote host closed the connection]
und3f1 has quit [Read error: Connection reset by peer]
peanuts___ has quit [Quit: peanuts___]
<atmosx>
hello
<atmosx>
peanuts!
<atmosx>
I'dhave some
lggr has joined #ruby
samflores has joined #ruby
joofsh has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
linoj has joined #ruby
cdzombak has joined #ruby
g-ram has joined #ruby
g-ram has quit [Client Quit]
und3f has joined #ruby
<A124>
shevy: LoooL
KevinSjoberg has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
<A124>
shevy: I got it. All was needed was User-Agent header conforming to Mozilla.
jrajav has joined #ruby
enroxorz-work has joined #ruby
yshh has joined #ruby
Spooner has joined #ruby
cburyta has joined #ruby
sailias has joined #ruby
hobana has joined #ruby
carloslopes has joined #ruby
<hobana>
how do i do (echo "hi" | ./run) in ruby?
<hobana>
i just want to write to a subprocess's stdin
xaq has joined #ruby
lggr has joined #ruby
<hobana>
i am using IO.popen to open the subprocess, but i cant figure out how to write to that processes stdin
<lukaszk>
ARGF.each_line etc
Criztian has joined #ruby
<lukaszk>
ah, subprocess
Takehiro has quit [Remote host closed the connection]
heftig has quit [Quit: leaving]
bwlang has quit [Excess Flood]
bwlang has joined #ruby
theRoUS has quit [Ping timeout: 240 seconds]
nanderoo has joined #ruby
awarner has joined #ruby
<hobana>
got it, i needed "mode='r+'" as an argument for popen
ffranz has joined #ruby
baphled has joined #ruby
<hobana>
now, how can i hook a shell that is executed by that command?
<Mon_Ouie>
Which you can use for both reading and writing if you used the appropriate mode at creation time
<burgestrand>
hobana: perhaps https://github.com/gdb/rubysh might be interesting to you. Haven’t used it myself, just remembered seeing it a while ago.
<hobana>
Mon_Ouie: I need to first write to the process via ruby, and then hook into the command line. what mode could be used for this?
<Mon_Ouie>
"hook into the command line"?
<hobana>
aka: exec bin/sh -> via ruby exec whoami -> give me a bash prompt
<hobana>
so that the first command gets executed by ruby, but then i am given an interactive shell
<hoelzro>
hobana: what exactly are you trying to do?
<Mon_Ouie>
You could use Readline from the Ruby process and send input programatically that way
<hobana>
i am writing exploit code for a ctf
<hoelzro>
from the high level, I mean
<hobana>
so i send a payload to a vulnerable program, which executes shellcode
<hobana>
which in turn executes a bash shell
chin-tastic has joined #ruby
<hoelzro>
hobana: so you need to create a shell in a vulnerable process, send it some shell script, and drop yourself into the shell when you're done?
<hoelzro>
*drop yourself into that shell
<hobana>
yes, exactly
<hoelzro>
ok
<hoelzro>
I would use a pty
<Xeago>
could you explain a pty?
slainer6_ has joined #ruby
<hoelzro>
painful.
<Xeago>
lol, that's what I know aswell :)
gmurphey has joined #ruby
<hoelzro>
the gist is you have a filehandle corresponding to the PTY
kaawee has joined #ruby
<hoelzro>
writing characters to that handle is like typing them into a terminal
<hoelzro>
and reading from that handle yields bytes from whatever's on the other end
<Xeago>
you can hook multiple pty\s to a single device right?
lggr has quit [Ping timeout: 255 seconds]
<hoelzro>
(it's been a while since I've messed with them)
<Xeago>
I think thats what man says
Vert has quit [Read error: Connection reset by peer]
jrist-afk is now known as jrist
<hoelzro>
most "terminals" you interact with these days are actually ptys
<Xeago>
my terminal is a ttys
arkiver has joined #ruby
<Xeago>
all mine are actually
maesbn_ has joined #ruby
slainer68 has quit [Ping timeout: 240 seconds]
<hoelzro>
you don't use a GUI or a terminal multiplexer?
<Xeago>
I just use osx's terminal
callenb has quit [Quit: Leaving.]
awarner has quit [Read error: Connection reset by peer]
cheetahw26 has joined #ruby
<hobana>
would python be a better choice in this situation then?
<hoelzro>
I'm not familiar with OS X's internals, but I'm pretty sure that's still a pty
lggr has joined #ruby
<Xeago>
I don't think terminal.app uses a pty, I think it emulates a terminal
<cheetahw26>
what's the best/recommended way to install rubygems on freebsd?
<hoelzro>
hobana: not really; ptys are always a PITA
<hoelzro>
Xeago: tty says otherwise =)
a_a_g has quit [Quit: Leaving.]
<Xeago>
output of /usr/bin/tty gives me ttys00x
<Xeago>
how to find pty?
maesbn has quit [Ping timeout: 256 seconds]
<hoelzro>
ttys* is a slave pty
<Tarential>
gives you /dev/tty for true tty
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
<Xeago>
uh yea, /dev/ttys00x
<Tarential>
/dev/tty1
<Tarential>
ttyX
awarner has joined #ruby
<atmosx>
cheetahw26: rvm by far.
<atmosx>
second best is manually, there's a fine /usr/local/ directory there
<Xeago>
atmosx: why?
<atmosx>
cool my octopress blog conversion is ... finnished! yay!
<atmosx>
Xeago: because the default in FreeBSD is ruby-1.8.x
<atmosx>
so the system for 'ruby' understand 1.8, if you really wanna stuck with it, go for it.
mfridh has quit [Ping timeout: 252 seconds]
<Xeago>
wouldn't any ruby version manager be equal then?
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
kaawee has quit [Ping timeout: 246 seconds]
<atmosx>
rvm is independent, so the system can compile everything with 'ruby' support without getting in the way. You won't face 'path' and gem versioning issues, which is a major issue in ruby, etc.
<cheetahw26>
thank you...
allanm has quit [Read error: Connection reset by peer]
<atmosx>
Xeago: I don't know of any other system-independent ruby version manager... Never used anything else. Either I do it manually in /usr/local/ or use rvm.
lggr has quit [Ping timeout: 255 seconds]
<Xeago>
rbenv
mfridh has joined #ruby
elico has quit [Ping timeout: 256 seconds]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
lggr has joined #ruby
Rydefalk has joined #ruby
Rydefalk_ has quit [Read error: Connection reset by peer]
Axsuul has quit [Ping timeout: 256 seconds]
awarner has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
rabidpraxis has joined #ruby
_cheney has joined #ruby
linoj_ has joined #ruby
v0n has joined #ruby
robertotauille has joined #ruby
rabidpraxis has quit [Remote host closed the connection]
thmzlt has joined #ruby
linoj has quit [Ping timeout: 255 seconds]
linoj__ has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
lggr has quit [Ping timeout: 245 seconds]
hotovson_ has quit [Remote host closed the connection]
<josemota>
Spooner: thank you. I'll take a look at it. I appreciate it.
irleif has joined #ruby
Takehiro has quit [Remote host closed the connection]
<pothibo>
Every time I type "=> " using my current keyboard layout, I press the spacebar while holding alt. Now with my keyboard layout (Canadian Multi) it generates an alternate space character which makes the ruby parser go boom. Anyone would know how to fix this?
<JonnieCache>
stop being canadian?
whaley has quit [Remote host closed the connection]
joshman_ has joined #ruby
<JonnieCache>
or, remap the keys in your terminal software
xyzodiac has joined #ruby
<josemota>
pothibo: it's a non-breaking space. I can't count the times I had that issue.
<Spooner>
pothibo : Perhaps force utf-8 encoding on the file so it can handle it (just a guess).
<Elhu>
pothibo: you also might be able to configure your editor to strop or replace this character on save
<workmad3>
non-breaking spaces are awesome... they're a valid identifier name in ruby :D
<pothibo>
josemota: I know, me too. I'm just fed up today and wants to be done with it
<josemota>
if you're using Vim for instance, you can detect it with the listchars option
<Elhu>
s/strop/strip/
<pothibo>
Spooner: no, it's valid identifier like workmad3 said. It parses it as a variable
<pothibo>
Elhu: I guess..
<JonnieCache>
thats nice to know that its valid though, you could cause havok with that
<JonnieCache>
one to remember
<pothibo>
yeah, like the first time it happened to me… searched for 2 horus
<workmad3>
JonnieCache: I've used it for a few 'interesting' code samples before :)
<pothibo>
hours*
rostislav has joined #ruby
<workmad3>
JonnieCache: like 'def hello world; end; hello world'
josemota has quit [Quit: WeeChat 0.3.5]
sspiff has joined #ruby
sspiff has joined #ruby
<rostislav>
hi
<rostislav>
please tell me how i can calculate and display interest ?
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dummies_freelanc has joined #ruby
burgestrand has quit [Quit: Leaving.]
<pothibo>
I'll remap the keyboard I guess. never did that before.
lggr has quit [Ping timeout: 255 seconds]
<Spooner>
rostislav : simple or compound? This isn't really a Ruby question if you don't know that.
<JonnieCache>
pothibo: what os you on?
<pothibo>
os x
<Xeago>
rostislav you compute the the common divider of pi^e and e^pi
<hashpuppy>
thanks. do you think my original question is more rails related?
freeayu has joined #ruby
beit has quit [Quit: beit]
lggr has quit [Ping timeout: 260 seconds]
<pothibo>
JonnieCache: Have you remapped stuff with the app?ç
morozovm_ has joined #ruby
<JonnieCache>
pothibo: not on this machine, and not for a while, but yes
<Spooner>
hashpuppy : Not a clue. Seems fine in "pure Ruby" terms. I would say that returning the things that you do looks more like you should just re-raise the error, but that is stylistic, not going to break it.
<pothibo>
JonnieCache: oh nevermind, just saw the private xml thing
no_worries has joined #ruby
starship has quit [Quit: Leaving]
duracrisis has joined #ruby
peregrine81 has joined #ruby
morozovm has quit [Ping timeout: 246 seconds]
morozovm_ is now known as morozovm
duracrisis is now known as starship
<pothibo>
Even better it has that settings already. Finally. I'm free
lggr has joined #ruby
<JonnieCache>
pothibo: i used it to remap § to #
<JonnieCache>
god knows why apple decided § was so important
eldariof has quit []
<JonnieCache>
lawyers and politicians surely arent big mac users
<pothibo>
lol
<sakh>
they only need $ anyway
<pothibo>
Finally, I will be able to type faster than 5 characters a minute to make sure I typed => properly
<JonnieCache>
SATIRE!
<shevy>
lol
whaley has quit [Remote host closed the connection]
macmartine has joined #ruby
<pothibo>
sakh: lol
brtdv has quit [Quit: bye]
carloslopes has quit [Quit: Leaving.]
brtdv has joined #ruby
lolmaus has quit []
larissa has quit [Quit: Leaving]
lukasz1 has quit [Ping timeout: 260 seconds]
<Tarential>
hmm I never thought about how annoying => would be to type on qwerty
kuzushi has joined #ruby
<Tarential>
that is a rather silly combo
samflores has quit [Quit: Leaving...]
<sakh>
btw whats the story or ruby using it?
<Tarential>
oh well, on dvorak it works fine
rippa has joined #ruby
<Spooner>
We can use { a: b } the vast majority of time (That is, when using symbolic keys in 1.9) so I don't have a problem with rockets any more ;)
<rostislav>
please tell me how i can calculate and display %
<rostislav>
in ruby
aganov has quit [Remote host closed the connection]
freeayu has quit [Remote host closed the connection]
brtdv has quit [Client Quit]
awestroke has quit [Remote host closed the connection]
<A124>
rostislav: From what?
<Spooner>
rostislav : That is a vague question. Here is an answer puts "24%" ;)
brtdv has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<rostislav>
my code puts 2475+5%
wallerdev has joined #ruby
<rostislav>
syntax error, unexpected $end
<Spooner>
Right, now you are asking a question.
ltsstar has joined #ruby
<A124>
a) 5% of what?
<Tarential>
well, he's implying a question anyway
<rostislav>
of 2475
<Spooner>
% isn't a percentage sign. It is a shortcut for the modulo method.
<rostislav>
sorry i use ruby 2 days (
<Spooner>
Tarential : Before it was not even a question ;)
xyzodiac has quit [Quit: Computer has gone to sleep.]
<shevy>
yo my peeps
<shevy>
samuelj there was gruff
<samuelj>
shevy gruff depends on imagemagick and i'm using jruby
<samuelj>
would like to avoid that
hobana has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 245 seconds]
monkegjinni has quit [Remote host closed the connection]
<shevy>
aha so you have some constraints
Jork1 has joined #ruby
xyzodiac has joined #ruby
adeponte has joined #ruby
lggr has joined #ruby
adeponte has quit [Remote host closed the connection]
jrajav has quit []
ephemerian has quit [Quit: Leaving.]
lavaca_ has joined #ruby
lavaca has quit [Ping timeout: 252 seconds]
lavaca_ is now known as lavaca
carloslopes has joined #ruby
flype has joined #ruby
roadt has quit [Ping timeout: 260 seconds]
eikko has joined #ruby
chrishunt has joined #ruby
a_a_g has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
Criztian has joined #ruby
harushimo has joined #ruby
kn330 has quit [Ping timeout: 246 seconds]
jlebrech has quit [Ping timeout: 276 seconds]
Takehiro has quit [Remote host closed the connection]
<harushimo>
hello to my favorite channel
kn330 has joined #ruby
<harushimo>
I have to one thing: I've learned so much ruby from this channel. I hope you can continue teach me. I want to thank everyone
Synthead has quit [Read error: Connection reset by peer]
<Tarential>
you're welcome! even though I just got here, only started learning two weeks ago and haven't helped you at all I'm happy to receive your blessing
Eplemosen|away is now known as Eplemosen
<Spooner>
Tarential : :D
bricker has joined #ruby
<harushimo>
I started learning ruby about 3 weeks ago
lggr has joined #ruby
<Tarential>
then you have me beat lol
<harushimo>
hehe
<harushimo>
its all about practice and looking at problems
<JonnieCache>
samuelj: all the best charting stuff these days tends to be in the browser
<JonnieCache>
raphael and the charting thing that goes with it (i forget the name) are excellent
<harushimo>
there is a good book I'm been doing online called learn ruby the hard way
beneggett has joined #ruby
nadendla has joined #ruby
<JonnieCache>
samuelj: d3 is also amazing
cantonic_ has joined #ruby
<JonnieCache>
or you could just generate your own svg in whatever way
<Tarential>
I dunno, I thought d3 was pretty boring in gameplay compared to d2 </joke>
gmurphey has quit [Ping timeout: 244 seconds]
<JonnieCache>
apparently d3 is a love poem to neoliberalism
DrShoggoth has quit [Ping timeout: 255 seconds]
katherinem13 has quit [Quit: Might IS right.]
<JonnieCache>
i think that might be just my friend exaggerating based on his dislike for the trading system :)
<Tarential>
lmao
katherinem13 has joined #ruby
DrShoggoth has joined #ruby
Mon_Ouie has joined #ruby
samphippen has joined #ruby
cantonic has quit [Ping timeout: 256 seconds]
cantonic_ is now known as cantonic
lggr has quit [Ping timeout: 260 seconds]
DrShoggoth has quit [Excess Flood]
DrShoggoth has joined #ruby
mva3212 is now known as smi|es
Takehiro has joined #ruby
jrist-afk is now known as jrist
frihd has quit [Quit: Leaving.]
Synthead has joined #ruby
kn330 has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
frederic has quit [Remote host closed the connection]
sent-hil has quit [Remote host closed the connection]
awestroke has joined #ruby
mando has joined #ruby
mucker has quit [Quit: leaving]
twoism has joined #ruby
dagnachewa has quit [Remote host closed the connection]
twoism has quit [Remote host closed the connection]
tjbiddle has joined #ruby
tjbiddle has quit [Remote host closed the connection]
tjbiddle has joined #ruby
twoism has joined #ruby
asobrasil has joined #ruby
jgrevich has joined #ruby
timonv has quit [Remote host closed the connection]
alfism has joined #ruby
Michael_ is now known as lampe2
erichmenge has joined #ruby
blazes816 has quit [Quit: blazes816]
timonv has joined #ruby
blazes816 has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
nitti has quit [Remote host closed the connection]
nitti has joined #ruby
nitti has quit [Remote host closed the connection]
robertotauille has joined #ruby
daniel_- has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
beneggett has quit [Quit: Computer has gone to sleep.]
frogstarr78 has quit [Remote host closed the connection]
zenformatics has quit [Quit: Leaving.]
<samuelj>
ok everyone, if i knock up a simple sinatra app to display my chart, what lib should i use now? highcharts doesn't seem to have a gem or anything?
<shevy>
harushimo I think your thoughts are not yet in alignment with your body
<matti>
otters: SDK
<shevy>
you must zen meditate first
wpaulson has joined #ruby
<A124>
Same for me. But I'm aware of it.
<otters>
matti: it doesn't just work
<otters>
that's why I'm asking
colinbm has joined #ruby
<matti>
otters: Ah.
<matti>
otters: What's the problem?
LennyLinux has quit [Remote host closed the connection]
<otters>
The Content-MD5 header is either ignored or not sent
<shevy>
how can you be so mean to cuddly otters matti!
cardoni has quit [Quit: cardoni]
gmurphey has joined #ruby
<otters>
last time I used this thing, I somehow got it to log every HTTP request
<harushimo>
thanks guys
<harushimo>
I'm just looking at the code
<otters>
but how to do that now escapes me
<harushimo>
it didn't seem right to me
Cascador has left #ruby ["Leaving"]
<harushimo>
I'm trying to rearrange the letters. I know there is a reverse method but that is only reverse the characters
jeffreybaird has joined #ruby
heftig has quit [Ping timeout: 246 seconds]
<otters>
ha
<otters>
Content-MD5 is not getting sent
<harushimo>
i'm still working on it
kaawee has quit [Ping timeout: 255 seconds]
Russell^^ has joined #ruby
Agis__ has quit [Quit: Agis__]
knuskrot has joined #ruby
<matti>
harushimo: I did this once:
<matti>
time head -20000 /usr/share/dict/words | ruby -e 'words = STDIN.read; a = {}; for w in words; w.strip!.downcase!; (a[w.unpack("c*").sort.pack("c*")] ||= []).push(w); end; END { for (k,v) in a; k = v.shift; puts "#{k}: #{v.join(" ")}" if v[1]; end }'
lggr has quit [Ping timeout: 244 seconds]
<harushimo>
thats okay
colinbm has quit [Quit: colinbm]
<harushimo>
that is a lot
carlyle has joined #ruby
<harushimo>
why are using STDIN.read
<harushimo>
are you inputting the word list?
JonnieCache has quit [Ping timeout: 260 seconds]
<harushimo>
I'm curious
lggr has joined #ruby
<matti>
Yes
<matti>
time head -20000 /usr/share/dict/words
<shevy>
harushimo always remain flexible
<harushimo>
I am
<harushimo>
I'm thinking
<matti>
shevy: LOL
<shevy>
"if user gives no input, use /usr/share/dict/words, else use his input"
SegFaultAX|work has quit [Ping timeout: 256 seconds]
<matti>
shevy: Like a self-help class ;]
alvaro_o has joined #ruby
<shevy>
hehe
<shevy>
I am trying to make harushimo think on his own!
<harushimo>
thanks make fun of the newbie
<matti>
shevy: In a second you will be convincing him that life is beautiful etc ;p
Eplemosen has joined #ruby
<shevy>
man harushimo don't listen to matti, he will spoil you
<shevy>
listen to me
<matti>
;p
<matti>
harushimo +1
<harushimo>
haha
<matti>
harushimo: Nobody makes fun :)
<matti>
Go team harushimo Go
<shevy>
I am like the striped thin animal in the old Junglebook movie
<harushimo>
thanks guys
<matti>
:>
frogstarr78 has quit [Remote host closed the connection]
heftig has joined #ruby
<shevy>
and matti is on of the vultures
<harushimo>
i'll be going to my first ruby hackthon
<shevy>
*one
<harushimo>
interesting
knuskrot has left #ruby [#ruby]
<shevy>
harushimo, in some months you will have written so much ruby code
timonv has joined #ruby
<shevy>
that you end up maintaining stuff only :(
alvaro_o has quit [Read error: Connection reset by peer]
<shevy>
enjoy the creative first phase!
<harushimo>
right
<harushimo>
got it
<atmosx>
`block in ffi_lib': Could not open library 'lib.dylib': dlopen(lib.dylib, 9): image not found (LoadError) <--- any idea how to get over this?
alvaro_o has joined #ruby
<shevy>
with some beer perhaps
dblandin has quit [Ping timeout: 240 seconds]
<shevy>
on linux I would typically try to find that file
<matti>
LOL
<matti>
shevy: +1
<shevy>
this is an odd name though
<shevy>
lib.dylib ... what kind of name is that?
<shevy>
is that mac?
lggr has quit [Ping timeout: 260 seconds]
Sou|cutter has quit [Quit: WeeChat 0.3.7]
jenrzzz has quit [Ping timeout: 260 seconds]
<atmosx>
yes
punkrawkR has joined #ruby
<atmosx>
mdfind doesn't give much, I'll run a find on / and see ...
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
<shevy>
linux is such a huge mess
rtl has left #ruby [#ruby]
frogstarr78 has joined #ruby
rtl has joined #ruby
<atmosx>
yeah, freebsd is better in that respect.
<atmosx>
ah didn't find anything
lggr has joined #ruby
daniel_hinojosa has joined #ruby
artnez has joined #ruby
<shevy>
hmm
robotmay has quit [Read error: No route to host]
robotmay_ has joined #ruby
daniel_- has quit [Ping timeout: 245 seconds]
samphippen has joined #ruby
dummies_freelanc has quit [Ping timeout: 246 seconds]
philcrissman has joined #ruby
cardoni has joined #ruby
GoGoGarrett has joined #ruby
nateberkopec has joined #ruby
dummies_freelanc has joined #ruby
Tearan has joined #ruby
daniel_- has joined #ruby
<harushimo>
i'm stuck
<harushimo>
I can't figure it out
jrist is now known as jrist-afk
<harushimo>
how to rearrange the letters
<harushimo>
its bugging me
red_ has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
Tearan has quit [Client Quit]
kn330 has quit [Ping timeout: 256 seconds]
<harushimo>
brb lunchtime
bbttxu_ has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
nateberkopec has quit [Client Quit]
mark_locklear has quit [Remote host closed the connection]
saschagehlich has joined #ruby
lggr has joined #ruby
kn330 has joined #ruby
SegFaultAX|work has joined #ruby
twoism has joined #ruby
hotovson has quit [Remote host closed the connection]
red_ has quit []
nateberkopec has joined #ruby
twoism has quit [Remote host closed the connection]
nitti_ has quit [Remote host closed the connection]
twoism has joined #ruby
xyzodiac has joined #ruby
red_ has joined #ruby
Xeago has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Ping timeout: 256 seconds]
jerrad has joined #ruby
skaczor has joined #ruby
jcoglan has quit [Ping timeout: 256 seconds]
<jeffreybaird>
Anyone have an idea on how to do this better? (Context: I had a csv of about 100000 rows of data littered with duplicates) https://gist.github.com/3861705
<uncommitted>
Trying to come up with a ruby way to edit config files, is there a module for this?
emmanuelux has joined #ruby
daniel_- has quit [Ping timeout: 245 seconds]
<oz>
uncommitted: try YAML maybe
timonv has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
<oz>
uncommitted: it actually depends on what type of config file you wish to edit or generate :)
Tearan has joined #ruby
frihd has joined #ruby
robotmay has joined #ruby
timonv has joined #ruby
sent-hil has quit [Remote host closed the connection]
<uncommitted>
two come to mind… /etc/network/interfaces, and then uncommenting things if they are commented out
red_ has quit [Ping timeout: 240 seconds]
<shevy>
so you already have an existing config file
robotmay_ has quit [Ping timeout: 246 seconds]
<uncommitted>
yes, exactly
Emmanuel_Chanel_ is now known as Emmanuel_Chanel
<shevy>
you can read in the data like ... data = File.readlines("location of your file here")
<shevy>
then modify this data variable
<shevy>
then save it
lggr has joined #ruby
<shevy>
data.each do |line| # check if line includes a '#' character, if yes you could get rid of it, then save that
Jrz has quit [Quit: Computer has gone to sleep.]
red_ has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<uncommitted>
seems easy enough, doing that exact same thing with bash at the moment
thmzlt has quit [Remote host closed the connection]
<uncommitted>
writing erg's for some things though, curious if there was a more elegant way :)
irleif has joined #ruby
xaq has joined #ruby
irleif has quit [Client Quit]
nateberkopec has quit [Quit: Leaving...]
macmartine has joined #ruby
whaley has quit [Remote host closed the connection]
Juul has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
LennyLinux has joined #ruby
stephenjudkins has joined #ruby
nateberkopec has joined #ruby
daniel_-_ has quit [Ping timeout: 245 seconds]
Neomex has joined #ruby
Neomex has quit [Client Quit]
saschagehlich has quit [Remote host closed the connection]
saschagehlich has joined #ruby
elico has quit [Quit: elico]
havenn has quit [Remote host closed the connection]
lggr has joined #ruby
timonv has quit [Remote host closed the connection]
danishman has joined #ruby
cespare has quit [Quit: WeeChat 0.3.7]
djbender has joined #ruby
djbender has quit [Client Quit]
thmzlt has joined #ruby
nitti_ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
timonv has joined #ruby
slainer6_ has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 248 seconds]
codeFiend has quit [Quit: codeFiend]
niklasb has quit [Read error: Operation timed out]
Hanmac has joined #ruby
nitti has quit [Ping timeout: 276 seconds]
haxrbyte_ has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
nitti has joined #ruby
robustus has joined #ruby
theRoUS has joined #ruby
nitti_ has quit [Ping timeout: 260 seconds]
locriani has joined #ruby
carlyle has quit [Ping timeout: 245 seconds]
kpshek has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
chin-tastic has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 248 seconds]
robotmay has quit [Remote host closed the connection]
axl_ has joined #ruby
sent-hil has joined #ruby
Jork1 has quit [Quit: Jork1]
daniel_-_ has joined #ruby
Jork1 has joined #ruby
carlyle has joined #ruby
kpshek has quit [Ping timeout: 244 seconds]
<ElderFain_>
so I sort of took a stab at the recursion but I think I'm on the wrong path because obviously this doens't work and its not really recursino anyway...
xyzodiac has quit [Quit: Computer has gone to sleep.]
<ElderFain_>
I'm just confused about how I am supposed to track how many nodes down to go (to know when to stop calling child_nodes)
<ElderFain_>
and what the hell i'd return at all in that case..
lggr has joined #ruby
baphled has joined #ruby
<ElderFain_>
I have a 'flat' hash that within its attributes defines a tree relationship, but the hash itself is flat. I want to be able to go through and say "for this given root node, give me the tree N levels deep"
werdnativ has joined #ruby
timonv has quit [Remote host closed the connection]
<ElderFain_>
so if i said flatten_children("p1",1) i'd get back p4,p2. if I said flatten_children("p1",2) I'd get back p4,p2,p22
_bart has quit [Quit: _bart]
elaptics`away is now known as elaptics
red_ has quit [Ping timeout: 248 seconds]
lggr has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
ryanf has quit [Quit: leaving]
Hanmac has quit [Ping timeout: 246 seconds]
dnstbr has joined #ruby
<bricker>
Is a Struct basically just a way to quickly define a class with accessors?
Playb3yond has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
<heftig>
bricker: ri Struct
<bricker>
heftig: I read it, but am still not clear what it's for
<blazes816>
it's sort of like a method-less class
<blazes816>
like just a collection of data
<bricker>
heftig: or rather, what's different about a Struct, and class Person; attr_accessor :name, :email; end
<sent-hil>
bricker: that's what I use it for
<heftig>
bricker: not much, it's just convenience, as you said
<bricker>
I see
<heftig>
bricker: it also has some extra methods that are similar to those of Hash
<heftig>
values, each_pair, et cetera
brtdv has quit [Excess Flood]
<bricker>
cool
brtdv has joined #ruby
nyuszika7h has quit [Ping timeout: 246 seconds]
twoism has quit [Remote host closed the connection]
thedeadghost has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 276 seconds]
Playb3yond has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
love_color_text has quit [Remote host closed the connection]
kirun has joined #ruby
love_color_text has joined #ruby
slainer68 has joined #ruby
lggr has joined #ruby
carlyle_ has joined #ruby
kn330 has quit [Ping timeout: 260 seconds]
thedeadghost has joined #ruby
Jrz has joined #ruby
A124 has quit [Quit: Leaving.]
Dawne has quit [Quit: Leaving.]
statarb3 has quit [Quit: Leaving]
heisenmink has joined #ruby
knite has joined #ruby
<knite>
hey guys, I'm a Python dev who's learning Ruby. I have a bit of an embarrassing newbie question...
carlyle has quit [Ping timeout: 245 seconds]
<frihd>
go ahead, ask
no_worries has quit [Remote host closed the connection]
<knite>
well, I'm working on iOS development in RubyMotion, but I don't think that matters directly.
xaq has joined #ruby
<knite>
basically, I'm a bit confused about the difference between self.var, @var, and attr_accessor.
_7894 has quit [Read error: Operation timed out]
nwertman has quit [Quit: nwertman]
xaq has quit [Remote host closed the connection]
awestroke has quit [Ping timeout: 246 seconds]
<knite>
for example, I have a class definition where I just tried to do self.session = whatever, which crashed my app because session hadn't previously been declared. and yet @session worked just fine.
lggr has quit [Ping timeout: 256 seconds]
<knite>
sorry, a class method, in case that's ambiguous.
no_worries has joined #ruby
ltsstar has quit [Remote host closed the connection]
ltsstar has joined #ruby
robotmay has joined #ruby
<knite>
I've done a bit of reading online, and it sounds as if self.var works the same as @var until you define a var() function. in other words, self.var is future proof whereas @var is not.
<knite>
but I'm not sure where attr_accessor fits in, and I don't get why setting self.var in a class method broke things.
<harushimo>
Is my each do loop okay? I'm try to loop threw the list of words
<harushimo>
I still can't figure the re arranging of the letters to make new words
tvw has quit [Excess Flood]
<harushimo>
any suggestions
tvw has joined #ruby
<thmzlt>
knite: self.var and @var are not related
mmitchell has quit [Remote host closed the connection]
<blazes816>
you can split the string up into an array, then find combinations of that array of a certain size, then check them against a dictionary list to verify they're real works
<thmzlt>
knite: @var is a "global" variable inside that object called instance variable
frihd has quit [Quit: Leaving.]
hoffmanc has joined #ruby
<hoffmanc>
is there no way to check that a mock method is *not* called?
<harushimo>
oh really
<thmzlt>
knite: attr_accessor will define two methods (a getter and a setter) for the instance variable with the same name
_bart has joined #ruby
nitti has joined #ruby
<thmzlt>
hoffmanc: I think (not sure) you can verify it is called zero times
<harushimo>
I don't know
codeFiend has joined #ruby
tchebb1 has joined #ruby
mmitchell has joined #ruby
Juul has quit [Quit: Leaving]
frihd has joined #ruby
<Gate>
hoffmanc: in rspec? mock.should_not_receive :message
<harushimo>
this is bothering me. I'm looking at the ruby docs for a method which may be useful
mando has quit [Remote host closed the connection]
tchebb has quit [Ping timeout: 246 seconds]
<harushimo>
I know you can do it with each do. I may be calling the wrong method
<thmzlt>
harushimo: what are you trying to do with the gist?
<harushimo>
I'm trying re arrange letters to make a new words
<thmzlt>
harushimo: I mean what do you want that method to return
<harushimo>
if I get word_list = [cars], it should return [scars, cars, racs]
lggr has quit [Ping timeout: 260 seconds]
chin-tastic has quit [Ping timeout: 246 seconds]
<harushimo>
Is there a method rearranges letters?
timonv has quit [Remote host closed the connection]
<harushimo>
I've been looking at the ruby docs too
<thmzlt>
harushimo: you mean rearrange randomly?
<harushimo>
yes but it has to be a real word
netrealm has quit [Ping timeout: 276 seconds]
LennyLinux has quit [Remote host closed the connection]
<harushimo>
as you can see in my gist with the example for cars
swarley has joined #ruby
<harushimo>
I'm just using one right now. I have another test case setup with 4 words
<Vinz_>
harushimo: Why cars would return scars ?
cburyta has quit [Remote host closed the connection]
<hoffmanc>
thmzlt, thanks
Neomex has joined #ruby
Neomex has quit [Client Quit]
<harushimo>
its an anagram
<Vinz_>
I don't see where you add a letter to the word(d)
<Vinz_>
s*
tvw has quit [Ping timeout: 245 seconds]
<Vinz_>
Yup, but scars is not an anagram of cars
<thmzlt>
harushimo: it is not
<harushimo>
oh sorry
<harushimo>
it would be scar
lggr has joined #ruby
shadoi has quit [Quit: Leaving.]
<harushimo>
I added extra letter
<harushimo>
I'm so sorry about that
shadoi has joined #ruby
<harushimo>
what method would I use to do this?
<harushimo>
I can't use to reverse because it would just reverse the letters
Asher has joined #ruby
<bperry>
finding anagrams can be very computationally expensive harushimo
<swarley>
to find anagrams?
<thmzlt>
harushimo: you need a dictionary
<swarley>
use permutation
<thmzlt>
harushimo: once you have that, use Array#permutation
<swarley>
unix dictionaries are generally someone by default...
* swarley
cant remember where
nitti has quit [Remote host closed the connection]
Playb3yond has quit [Quit: Colloquy for iPhone]
sagax has joined #ruby
<harushimo>
["cars"] this is an array correct? I have seen arrays into two different languages
<swarley>
but i would probably make order matter to avoid dispatch
netrealm has joined #ruby
<swarley>
so you could still call methods like method(5)
Beoran has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
geekbri has quit [Remote host closed the connection]
<centipedefarmer>
hey got a question about something really oldballs. this isn't my paste but i believe it shows the exact same problem i'm havng: http://pastebin.com/UptHKVP2
Russell^^ has quit [Quit: Russell^^]
lggr has joined #ruby
<Beoran>
centipedefarmer,
<centipedefarmer>
started after moving the app to a different server and presumably a newer version of Passenger. Of course the _real_ answer is "update this app to use rails 3 and ruby 1.9" but in the meantime, i need it running again. has anyone else seen this?
<Beoran>
loks like fastercvs and phhusion passenger are not agreeing with each other :
no_worries has quit [Ping timeout: 245 seconds]
sent-hil has quit [Ping timeout: 260 seconds]
<centipedefarmer>
correct. this << m ethod in fastercsv tries to call << no the IO streram you give it
<Beoran>
ah, then pass in a string stream in stead
<centipedefarmer>
and this app is giving it passenger's response for that
<centipedefarmer>
it's funny, my app's stack tracke is really similar to that, right down to the method name "stream_csv" -- i get the feeling this may have been a common practice some years back
<centipedefarmer>
well the point is that it should make the browser download the content as a csv file
<Beoran>
sure, but you'll have to buffer it manually now, it seems
<centipedefarmer>
i'll show you this stream_csv method, just a sec
<Beoran>
I feel like too much magic is going on :p
<centipedefarmer>
likewise
<Beoran>
where does that output come from anyway?
<centipedefarmer>
but it's not of my making
<centipedefarmer>
yeah, good question...
<Beoran>
but you can change itt I hope
gregorg has quit [Read error: Connection reset by peer]
<centipedefarmer>
yeah well i have to change it, because now it doesn't work :D
<Beoran>
probably .. i's Rail's right?
<centipedefarmer>
yeah, 2.2.something i think
<Beoran>
I suspect it's some kind of filter
<Beoran>
anyway the filter is broken...
<Beoran>
uoi could try to do output.to_s and see if that fixes anything...
<Beoran>
since FasterCVS also accepts string input
<Beoran>
it's a long shot though, I don't know Rails well, I prefer simper frameworks :)
<centipedefarmer>
i'm beginning to as well
lggr has quit [Ping timeout: 255 seconds]
anachronistic has joined #ruby
remi has quit [Quit: leaving]
gregorg has joined #ruby
<centipedefarmer>
when I searched for the error message, all I found was that pastie, and I was struck by the fact that they also had a method called stream_csv
s0ber has quit [Read error: Connection reset by peer]
cakehero has quit [Quit: Computer has gone to sleep.]
GoGoGarrett has quit [Remote host closed the connection]
<Beoran>
Send data to the browser using send_data
Jrz has quit [Quit: Computer has gone to sleep.]
s0ber has joined #ruby
<Beoran>
perhaps tha tway will work better?
<Beoran>
or just use send_file
cakehero has joined #ruby
<waxjar>
are there more exciting ruby communities than r/ruby? :/
<Beoran>
and buffer theCSV to a Stringio buffer
<centipedefarmer>
how about just the Ruby Community as a whole?
Jork1 has quit [Quit: Jork1]
<Beoran>
waxjar what you mean exciting?
prtksxna has joined #ruby
prtksxna has quit [Remote host closed the connection]
gregorg has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 244 seconds]
cburyta has quit [Remote host closed the connection]
<Beoran>
True excitement requires a real life significant other , IMHO :)
<centipedefarmer>
hm, this app uses rails 2.1.0, don't know if I have send_data available
<waxjar>
haha, fair enough. i guess i mean something with a bit more substance, a bit bigger maybe
A124 has joined #ruby
reinaldob has quit [Remote host closed the connection]
_7894 has joined #ruby
emadb has joined #ruby
<waxjar>
the weekly "which ruby book should i get?" is also starting to annoy me a bit, but oh well
no_worries has quit [Remote host closed the connection]
nadendla has left #ruby [#ruby]
CaptainJet has joined #ruby
lggr has joined #ruby
ChampS666 has quit [Ping timeout: 264 seconds]
mando has joined #ruby
<blazes816>
the bdsm community has it's share of excitement
<centipedefarmer>
oh me too
<waxjar>
lol
<centipedefarmer>
i can only read so fast, people
haxrbyte has joined #ruby
<centipedefarmer>
and actually, for me personally, i read slow as shit :D
no_worries has joined #ruby
haxrbyte has quit [Remote host closed the connection]
<uris>
is anyone using psycopg2 with postgresql 64 bit?
<uris>
oops, sorry
<uris>
wrong room
frihd has quit [Quit: Leaving.]
<A124>
blazes816: Why's that?
stephenjudkins has quit [Quit: stephenjudkins]
<blazes816>
o0
<blazes816>
nature?
robotmay has quit [Remote host closed the connection]
haxrbyte has joined #ruby
swistak35 has joined #ruby
philcrissman has quit [Remote host closed the connection]
robotmay has joined #ruby
awestroke has quit [Remote host closed the connection]
<swarley>
so, fun question here
robertotauille has quit [Quit: Leaving...]
<A124>
I don't get it. Nverermind. I joined a min ago-
<swarley>
i want to modify a local variable inside of a proc
<swarley>
i doubt its possible
<swarley>
suggestions?
<centipedefarmer>
i think it's possible
twoism has joined #ruby
<swarley>
i'm outside of the proc
<centipedefarmer>
aren't procs closed over the environment they're created in?
<centipedefarmer>
(which btw isn't necessarily where they're run)
adeponte has quit [Read error: Connection reset by peer]
sent-hil has joined #ruby
<blazes816>
lol A124: waxjar: are there more exciting ruby communities than r/ruby?
gregorg has quit [Read error: Connection reset by peer]
emadb has quit [Quit: emadb]
robotmay has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
adeponte has joined #ruby
<A124>
blazes816: If you are code lover or don't like the offtopic and dumb questions, then #ruby-lang for sure. I like both. #ruby in general, but when something is needed and is strictly code related and asked precisely, blah blah blah.. xD
gregorg has joined #ruby
gregorg has quit [Changing host]
gregorg has joined #ruby
haxrbyte has quit [Ping timeout: 256 seconds]
_adeponte has joined #ruby
davidcelis has joined #ruby
adeponte has quit [Read error: Connection reset by peer]
davidcelis is now known as Guest99424
adeponte has joined #ruby
philcrissman has joined #ruby
Guest99424 has quit [Client Quit]
davidcel_ has joined #ruby
pskosinski has quit [Ping timeout: 246 seconds]
davidcel_ is now known as davidcelis
davidcelis has quit [Changing host]
davidcelis has joined #ruby
lggr has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
samphippen has joined #ruby
_adeponte has quit [Ping timeout: 246 seconds]
LouisGB has joined #ruby
<centipedefarmer>
oh wow. wow wow. hahaha
mando has quit [Remote host closed the connection]
<centipedefarmer>
apparently I ran into this problem before and since forgot about it
<centipedefarmer>
want to see how i fixed it?
Axsuul has joined #ruby
reset has quit [Quit: Leaving...]
<centipedefarmer>
I put this in an initializer:
<centipedefarmer>
PhusionPassenger::Utils::UnseekableSocket.class_eval{ def <<(*args); puts(*args); end }
v0n has quit [Quit: Leaving]
LennyLinux has quit [Remote host closed the connection]
<centipedefarmer>
holy crap i am evil
v0n has joined #ruby
reset has joined #ruby
Asher has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 240 seconds]
<Spaceghostc2c>
centipedefarmer: Welcome to the dark side. We have evals everywhere.
<centipedefarmer>
looks like somehow that initializer got left out when i moved it probably because i didn't recognize what it was
thmzlt has quit [Read error: Connection reset by peer]
gregorg has quit [Ping timeout: 246 seconds]
thmzlt has joined #ruby
nwertman has joined #ruby
oldB has joined #ruby
gregorg has joined #ruby
oldB has quit [Client Quit]
xorgnak has quit [Remote host closed the connection]
<QKO>
and I don't know about ruby, but if I throw catch in C# the runtime drops its pants
timonv has joined #ruby
<QKO>
before pulling it back up and continueing
manizzle has joined #ruby
<waxjar>
what do you need them for btw? i never had the need for a goto statement
bbttxu_ has quit [Quit: bbttxu_]
kyletcarey has joined #ruby
Asher1 has joined #ruby
Asher has quit [Read error: Connection reset by peer]
<QKO>
well, common need in other languages is common exit code, error handling, jumping out of multiple loops, doing arbritary actions that are not neatly defined by language constructs'
Nisstyre-laptop has joined #ruby
Asher1 has quit [Client Quit]
<QKO>
basically where the language itself would fail you, you could fall back to gotos
Asher has joined #ruby
<QKO>
of course, you can also abuse gotos to write code that nobody can understand, but I feel that people that do such things aren't really programmers anyway...
<centipedefarmer>
throw/catch might be different meaning for same words compared to c#
carlyle_ has quit [Remote host closed the connection]
<centipedefarmer>
it's not for exception/error handling, in ruby that's begin/rescue
<centipedefarmer>
in ruby throw/catch actually is a lot like a goto
<waxjar>
i believe ruby's catch/throw work like goto statements, I'm not very familiar with them in any language tbh
<swarley>
catch throw in other languages are like ruby's begin rescue
<swarley>
well
<swarley>
not really
<swarley>
well, in a way yes
<centipedefarmer>
not exactly, but the similar naming is confusing
<swarley>
yeah
<swarley>
but anyway
<swarley>
how does that code look
<centipedefarmer>
in java you throw an error and catch it, in ruby you raise an error and rescue it but you can throw a symbiol to be caught elsewhere in the code
<knite>
I've just installed a gem with sudo gem install the_gem. I'm trying to add it to my project with require 'the_gem', which fails. how do I troubleshoot this? I assume I need to add something to my $PATH, or set some other shell variable? I'm on OS X 10.7, ruby 1.8.7
pskosinski has joined #ruby
<xclite>
knite, require 'rubygems'
<xclite>
before requiring the gem
<xclite>
if that doesn't work, come back and harass me
stephenjudkins has joined #ruby
h4mz1d has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
tjbiddle has quit [Ping timeout: 255 seconds]
v0n has quit [Ping timeout: 246 seconds]
timonv has quit [Remote host closed the connection]
tjbiddle_ has quit [Ping timeout: 248 seconds]
<knite>
xclite: that seems to have done the trick, thanks! if you have a second or two, could you explain why that's necessary. my initial Googling didn't turn anything up. this is in my Rakefile, and the project I'm working on already had another require line in there which worked.
carlyle has joined #ruby
chichou has quit [Remote host closed the connection]
lggr has joined #ruby
<knite>
xclite: ah, looks like the ruby equivalent of virtualenv is Bundler? I think I'll check that out instead of installing gems locally...
<knite>
er, globally*
jimeh has quit [Ping timeout: 252 seconds]
<xclite>
knite - I am guilty of insufficiently knowing the specifics, I just know that post 1.9 it's no longer necessary to require rubygems. Bundler is fantastic
dblandin has joined #ruby
<knite>
xclite: oh, so that means the ruby version on OS X is somewhat out of date. I'll update to something more recent!
<xclite>
knite, 1.8.7 is still pretty commonly used, but the newwer versions have some nice updates
<knite>
xclite: the docs I'm reading must have assumed 1.9+, there was no mention anywhere of require-ing 'rubygems'. :-P
etehtsea has quit []
h4mz1d has quit [Ping timeout: 248 seconds]
<xclite>
knite at this point it's the first thing i check
<xclite>
'oh my requires are failing, what does ruby -v say?'
<knite>
must be a common newbie ruby trap, eh?
Jork1 has quit [Quit: Jork1]
<ElderFain_>
os x ships with 1.8 till unfortunately
<knite>
I'm emailing the library author now to suggest they update their quick start doc.
twoism has quit [Remote host closed the connection]
<ElderFain_>
use rvm
<waxjar>
rbenv :3
haxrbyte has quit [Remote host closed the connection]
<swarley>
if you're new to ruby, do not use 1.8
<xclite>
knite it gets even more fun with debian. As ElderFain_ says, RVM can help with the insanity
<swarley>
that's starting a bad habit
nitti has quit [Remote host closed the connection]
Jork1 has joined #ruby
<Tarential>
one more vote for rvm here, took care of my versioning headaches in minutes
thone has joined #ruby
mva3212 has joined #ruby
<knite>
gah, so much new stuff to learn. my brain's already too full trying to learn Ruby (coming from Python), fake my way through Objective-C, and learn the iOS APIs.
<knite>
(I've dived into iOS dev with RubyMotion, in case that wasn't obvious.)
emergion has quit [Quit: Computer has gone to sleep.]
<xclite>
yeah i get tool fatigue sometimes
kirun has quit [Quit: Client exiting]
<ElderFain_>
why would you do that lol
lggr has quit [Ping timeout: 240 seconds]
<xclite>
gets annoying to have to learn everybody's dsl with the various libraries and whatnot
<ElderFain_>
learn ruby while also learning objective c
<ElderFain_>
just use objc
carlyle has quit [Remote host closed the connection]
<knite>
ElderFain_: because I really dislike verbose languages like that. I did c/c++ back in school, so it's mostly learning the message passing style.
<knite>
but I'd rather stab myself in the eye than write Java, PHP, C, etc.
nitti has joined #ruby
<ElderFain_>
its about a lot more than that but whatever, enjoy your journey
thone_ has quit [Ping timeout: 240 seconds]
v0n has joined #ruby
<knite>
ElderFain_: I'm sure it is. I've only been staring at obj-c source for a few days. :-P
<knite>
I'm sure there is*
tommyvyo has joined #ruby
wpaulson has joined #ruby
<ElderFain_>
if you want to do something with ios, go use the language for it. I don't see the point at all in learning ruby so you can avoid objc but thats what you really want to use
jlwestsr has quit [Ping timeout: 246 seconds]
<ElderFain_>
i can see "i know ruby, so I want to do some ios stuff"
lggr has joined #ruby
<ElderFain_>
but you are "i don't know ruby or objc, so I'm going to learn ruby to use objc"
dummies_freelanc has quit [Quit: Leaving.]
<ElderFain_>
anyway, making my head hurt thinkin about it
Jork1 has quit [Quit: Jork1]
<swarley>
objective c is just
<swarley>
weird
Mon_Ouie has quit [Read error: Connection reset by peer]
<swarley>
in ways its easier
<knite>
well, I only have to learn enough obj-c to understand any source/tutorials I'm using.
<knite>
I don't need to write it, just read it.
piotr__ has quit [Ping timeout: 256 seconds]
<knite>
but yeah, it does hurt the brain a bit.
<knite>
new concept overload.
twoism has joined #ruby
peregrine81 has quit [Ping timeout: 248 seconds]
cascalheira has joined #ruby
<swarley>
obj c is stupid in some ways
<Eiam>
swarley: you've just described every language in existence
<swarley>
well
cardoni has joined #ruby
<swarley>
objective c is like, C++, minus some work
twoism has quit [Remote host closed the connection]
<swarley>
its like a filter over c
<swarley>
well, that's exactly what it is
Mon_Ouie has joined #ruby
wpaulson_ has joined #ruby
tjbiddle has joined #ruby
skogis has quit [Ping timeout: 255 seconds]
thedeadghost has quit [Ping timeout: 256 seconds]
pskosinski has quit [Quit: A few unofficial Red Eclipse 1.3.1 (r4131) servers: http://altred.tk/toggle.rb (and no more global banning for saying that main dev is not very smart, what is truth anyway)]
peregrine81 has joined #ruby
alanp_ has joined #ruby
cdzombak has quit []
alanp has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 255 seconds]
wpaulson has quit [Ping timeout: 245 seconds]
wpaulson_ is now known as wpaulson
joelsbeard has joined #ruby
cardoni has quit [Client Quit]
mmitchell has quit [Remote host closed the connection]
samuel02 has quit [Remote host closed the connection]
skogis has joined #ruby
thinkclay has quit [Quit: Leaving.]
jenrzzz has joined #ruby
samuel02 has joined #ruby
Forevernade has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
Goles has joined #ruby
rehat has quit [Remote host closed the connection]
weeb1e has joined #ruby
ForevernadeAFK has quit [Ping timeout: 245 seconds]
<triskt>
Hello! I've hit my wall of Google skills and hope someone might be able to help. I'm trying to read hex payloads from a file and put them into PacketFU. If I put in quoted hex it works fine (it dumps the hex to the wire), but whenever I try to pull it from a file it inserts the ASCII
JonnieCache has quit [Read error: Operation timed out]
F1skr has joined #ruby
twoism has joined #ruby
hotovson_ has joined #ruby
Jork1 has joined #ruby
danm_408 has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
emergion has quit [Ping timeout: 276 seconds]
<reactormonk>
ElderFain_, .values
Asher1 has joined #ruby
Asher has quit [Read error: Connection reset by peer]
stephenjudkins has quit [Ping timeout: 252 seconds]
<ElderFain_>
hmm
<ElderFain_>
derp?
<reactormonk>
ElderFain_, your_hash.values
<ElderFain_>
yah
stephenjudkins has joined #ruby
<ElderFain_>
im derpy cannot believe I didn't see that ;)
manizzle has joined #ruby
stephenjudkins has quit [Client Quit]
lggr has joined #ruby
rabidpraxis has quit [Remote host closed the connection]
r1ddl3r has left #ruby [#ruby]
uris has quit [Quit: Ex-Chat]
M- has joined #ruby
Asher1 has quit [Read error: Connection reset by peer]
Asher has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
ddd1 has joined #ruby
r1ddl3r has joined #ruby
ddd has quit [Ping timeout: 245 seconds]
ddd1 is now known as ddd
SegFaultAX|work has joined #ruby
carlyle has joined #ruby
samuel02 has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
xaq has quit [Remote host closed the connection]
fflush has joined #ruby
hadees has quit [Quit: hadees]
<fflush>
Bonjour
anachronistic has joined #ruby
Asher has quit [Read error: Connection reset by peer]
Asher1 has joined #ruby
jenrzzz has joined #ruby
lggr has joined #ruby
thedeadghost has joined #ruby
mgrayson has quit [Quit: mgrayson]
Criztian has quit [Remote host closed the connection]
<Spooner>
r1ddl3r : Yeah, that was a bit of an openended question (with no information, for example, whether you are new to programming or not). In general, I point people to this online tutorial http://pine.fm/LearnToProgram/
anachronistic has quit [Client Quit]
Asher1 has quit [Read error: Connection reset by peer]
Asher has joined #ruby
Asher has quit [Read error: Connection reset by peer]
Asher1 has joined #ruby
dblandin has joined #ruby
samuel02 has quit [Ping timeout: 260 seconds]
Asher1 has quit [Client Quit]
Asher has joined #ruby
chussenot has joined #ruby
chichou has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
brianpWins has quit [Quit: brianpWins]
bier has quit [Ping timeout: 276 seconds]
lggr has quit [Ping timeout: 256 seconds]
Jork1 has quit [Quit: Jork1]
stephenjudkins has joined #ruby
vitoravelino`afk is now known as vitoravelino
v0n has quit [Ping timeout: 246 seconds]
cantonic has quit [Quit: cantonic]
macmartine has joined #ruby
mmitchell has joined #ruby
slainer68 has quit [Remote host closed the connection]