Virunga has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
dfr|work has joined #ruby
adam__ has joined #ruby
BdeUtra has quit [Quit: BdeUtra]
<dfr|work>
Hey guys. Is there a special syntax for regex but that escapes usual regexy stuff? Like shorthand for Regexp.new Regexp.escape("string") ?
GoHuyGo has quit [Quit: Leaving]
BdeUtra has joined #ruby
adam_ has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 244 seconds]
<fowl>
/#{Regexp.escape 'string'}/ ?
madtalentz has joined #ruby
wpaulson has joined #ruby
lggr has joined #ruby
<fowl>
Gate: , Lokans : ('a'..'z').to_a
wpaulson_ has joined #ruby
roadt has joined #ruby
Tom2 has quit [Read error: Operation timed out]
Papasean has quit [Quit: Papasean]
wpaulson has quit [Ping timeout: 264 seconds]
wpaulson_ is now known as wpaulson
<austinbv>
fowl: you are amazing
<austinbv>
select is amazing
mrdodo has quit [Remote host closed the connection]
<havenn>
('a'..'z').to_a.product (1..26).to_a
tommyvyo has joined #ruby
sebastorama has joined #ruby
LouisGB has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
<dekz>
Can anyone recommend some form of basic gem which will report system monitoring information (unix?)
<fowl>
austinbv: :)
mrdodo has joined #ruby
<Gate>
fowl: I figured he wanted a hash to map from "a" to 1
<Gate>
which would definitely be easier with that.
lggr has joined #ruby
<fowl>
Gate: i thought he wanted to define a bunch of locals at first, but i read this 'set a value to all letters in the alphabet' as wanting an array
<i8igmac>
can i get some help with a expression... this was figured out the other night but i cant remember
<i8igmac>
.php?id=100002775949272">bob someone\u003C\/a> is a mutual friend > i just need the id number
havenn has quit [Remote host closed the connection]
<i8igmac>
string[id=(.)"]
<i8igmac>
string[id=(.)",1]
<i8igmac>
i cant remember
baphled has quit [Ping timeout: 264 seconds]
<fowl>
string[/id=(\d+)/, 1] mebbe
ctp has joined #ruby
<ctp>
howdy
binaryplease has quit [Quit: WeeChat 0.3.8]
maletor has quit [Quit: Computer has gone to sleep.]
<ctp>
i have a simple question :) sort_by sorts this array of hashes in the manner i expect: [{a:0, b:10}, {a:1, b:20}, {a:0, b:35}].sort_by {|hsh| hsh[:a]} but how to get a subarray of this array with the minimum a's, so [{a:0, b:10}, {a:0, b:35}] ?
bradhe has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
bananagram has quit [Ping timeout: 272 seconds]
GraemeLion has quit [Quit: out]
bananagram has joined #ruby
wpaulson has joined #ruby
Yomero_ has joined #ruby
<i8igmac>
fowl, im not getting it... i just need the first quote
<fowl>
i8igmac: give me $15 and i'll write it for you.
<fowl>
i8igmac: otherwise i can point you to rubular.com
<bnagy>
I would try to get it working without VERIFY_NONE
<bnagy>
cause that will make sure your certs are all working
<jblack>
These secretary sites have a habit of letting their certs expire
Nisstyre has quit [Ping timeout: 272 seconds]
<jblack>
When I renable cert verification (by removing VERIFY_NONE), I can indeed load https://google.com, but I'm still unable to load that particular page in the example in 1.9.3 (but can in 1.8.7)
Takehiro has joined #ruby
<bnagy>
hm
<bnagy>
I guess next step is to take mechanize out of the equation
<bnagy>
I have no idea what I'm doing btw
tork has left #ruby [#ruby]
xpen_ has joined #ruby
ngoldman has joined #ruby
mrdodo has quit [Remote host closed the connection]
<jblack>
:) Thanks for trying anyway. :)
Jackneill has joined #ruby
tarwich has quit [Quit: Leaving.]
Takehiro has quit [Ping timeout: 268 seconds]
lggr has joined #ruby
neurotech has joined #ruby
Jackneill is now known as Guest64548
xpen has quit [Ping timeout: 272 seconds]
eikko has quit [Ping timeout: 248 seconds]
<bnagy>
basically if you can pull the site with atright openuri then we know it's some mechanize thing, and look in src tere
billyoc has joined #ruby
<bnagy>
I'd imagine it's an SSL option they changed in 1.9 that your site hates
<bnagy>
but those things are a PITA to try and work out with a sniffer, better to go source diving
tyfighter has joined #ruby
<jblack>
it's ssl. I don't think I'll be sniffing. :P
<bnagy>
the cipherspec stuff is all clear
jasonLaster has quit []
Guest26732 has quit [Ping timeout: 264 seconds]
Spooner has quit [Ping timeout: 244 seconds]
shiki has quit [Remote host closed the connection]
Nisstyre has joined #ruby
ngoldman has quit [Remote host closed the connection]
savage- has quit [Remote host closed the connection]
lchin has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
adelcampo has joined #ruby
Takehiro has joined #ruby
ltsstar has joined #ruby
Takehiro has quit [Remote host closed the connection]
lggr has joined #ruby
Takehiro has joined #ruby
Guest64548 has quit [Quit: Guest64548]
rakl has quit [Quit: sleeping]
notVert has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 268 seconds]
Chryson has quit [Quit: Leaving]
mohits has quit [Ping timeout: 272 seconds]
joofsh has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
rakl has joined #ruby
trumpetmic has joined #ruby
Sunhay has joined #ruby
<trumpetmic>
Is there such a thing as a free and open-source video-uploading, and video sharing web app that you can run on your own site or maybe host on a cloud? Or of course, on Google Drive or YouTube?
yoklov has quit [Quit: bye!]
uris has quit [Quit: leaving]
chussenot has quit [Quit: chussenot]
austinbv has joined #ruby
lggr has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
mohits has joined #ruby
butblack has quit [Quit: butblack]
thunderstrike has joined #ruby
thunderstrike has quit [Remote host closed the connection]
AlbireoX`Laptop has quit [Remote host closed the connection]
thunderstrike has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
bananagram has quit [Ping timeout: 252 seconds]
mohits has quit [Ping timeout: 244 seconds]
Brandon has joined #ruby
<Brandon>
I want to run through search through images and find the ones containing a percentage of a color. Is there a library that can help me with this?
m1d0 has left #ruby [#ruby]
Brandon is now known as metrix
<swarley>
metrix, yes
<swarley>
look at rbmagick
<swarley>
its the ruby bindings to image magick
Lokans has joined #ruby
<swarley>
if you're doing vague colors (i.e. black, blue, white) you'll want to add a fuzz for when you're searching
<metrix>
hmm
<metrix>
ok
<Lokans>
im trying to find out what numbers between 1-100 that is devisable by 3 and 5, but the problem is that that the numbers that i want to collect "dissappers"
<Lokans>
numbers = *(1..100).to_a
<Lokans>
able =[].to_a
<Lokans>
able << numbers[n] if n % 3 == 0 || n % 5 == 0
<ryanf>
also when you do "numbers.each { |n|", n is the number, not its index in the array. so you shouldn't be doing "numbers[n]" inside the loop, just "n"
<Lokans>
np trying it now
gautamc has joined #ruby
<swarley>
metrix, also sorry, i gave you the wrong gem name, its actually called rmagick, not rbmagick
<Lokans>
swarley, where is the "numbers" gonna be stored, aka, what command is it to print it out, print/puts what?
<metrix>
Swarley: thank you
sent-hil has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
<swarley>
Lokans, you'll want to use an assignment
<swarley>
like result = numbers.select {|x| ...
<swarley>
or
<swarley>
you can do numbers.select! {|x| ...
<swarley>
wait
<swarley>
i may be wrong about that
<swarley>
oh no i'm not
<swarley>
numbers.select! puts the result in numbers
hbpoison has joined #ruby
ananthakumaran has joined #ruby
lolmaus has joined #ruby
mohits has joined #ruby
khakimov has joined #ruby
zhutingting has joined #ruby
lggr has joined #ruby
metrix has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
ckrailo has quit [Quit: Computer has gone to sleep.]
<swarley>
what does inject do actually? do we have an rdoc bot in here?
manizzle has joined #ruby
<bnagy>
the injected value goes into the 'accumulator' (s, there) and the collection elems go one by one into the var (prime)
<swarley>
ah
<bnagy>
each time the accumulator gets the return value from the block
<bnagy>
aka reduce, if you're familiar with map reduce
<swarley>
to me it's easier to read mine. But yours is more compact and probably more efficient
<bnagy>
mine does something completely different
<swarley>
oh, i thought we had the same goal
dmiller has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
sent-hil has quit [Remote host closed the connection]
jastix has joined #ruby
zhutingting has quit [Quit: Page closed]
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
lggr has joined #ruby
digitalcakestudi has quit [Ping timeout: 240 seconds]
jarred has joined #ruby
rakl has quit [Quit: sleeping]
diegoviola has joined #ruby
xpen has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
xpen_ has quit [Ping timeout: 244 seconds]
<heftig>
s=[*2..100]; s.each { |prime| s.reject! { |x| x % prime == 0 && x != prime } }
<heftig>
this is more like eratosthenes, imo
swarley has quit [Ping timeout: 252 seconds]
lchin has quit [Remote host closed the connection]
bradhe_ has joined #ruby
<bnagy>
ew reject! inside each
bradhe has quit [Ping timeout: 246 seconds]
minijupe has quit [Quit: minijupe]
lggr has joined #ruby
<bnagy>
but yeah that's much better
gmci has joined #ruby
<bnagy>
also I forgot to merge my seed primes
<bnagy>
it's fairly deeply freaky that works, though
justinmcp has quit [Remote host closed the connection]
jaydg has joined #ruby
banisterfiend` has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
ph^ has quit [Remote host closed the connection]
lggr has joined #ruby
eldariof has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
neurotech has quit [Remote host closed the connection]
maletor has joined #ruby
austinbv has quit [Ping timeout: 252 seconds]
rutkla has joined #ruby
sgupta is now known as Shrink
xpen_ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
xpen has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
fantazo has quit [Remote host closed the connection]
SCommette has joined #ruby
SCommette has quit [Client Quit]
ryanf has quit [Quit: leaving]
ryanf has joined #ruby
luckyruby has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
banisterfiend` has quit [Ping timeout: 244 seconds]
kitofr has joined #ruby
lggr has joined #ruby
senny has joined #ruby
und3f has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
conor_ireland has quit [Quit: conor_ireland]
c0rn_ has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 244 seconds]
maesbn has joined #ruby
love_color_text has joined #ruby
baphled_ has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
love_color_text has quit [Remote host closed the connection]
cj3kim has quit [Quit: This computer has gone to sleep]
lggr has quit [Ping timeout: 240 seconds]
ARIZ has joined #ruby
diegoviola has joined #ruby
pingfloyd has quit [Read error: Connection reset by peer]
sagax has joined #ruby
pingfloyd has joined #ruby
s1n4 has joined #ruby
elsifaka has joined #ruby
kitofr_ has joined #ruby
kitofr has quit [Ping timeout: 264 seconds]
Morkel has joined #ruby
justinmcp has joined #ruby
djdb has joined #ruby
kitofr has joined #ruby
telling has joined #ruby
telling has quit [Changing host]
telling has joined #ruby
ARIZ has left #ruby [#ruby]
lggr has joined #ruby
kitofr_ has quit [Ping timeout: 244 seconds]
dhruvasagar has joined #ruby
aganov has joined #ruby
bigkevmcd has joined #ruby
c0rn_ has joined #ruby
justsee has quit [Quit: Leaving...]
eldariof has quit []
lggr has quit [Ping timeout: 240 seconds]
a_a_g has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
lchin has joined #ruby
hbpoison has quit [Ping timeout: 272 seconds]
bradhe_ has quit [Remote host closed the connection]
bradhe has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
a_a_g has joined #ruby
ph^ has joined #ruby
jprovazn_away is now known as jprovazn
lchin has quit [Ping timeout: 255 seconds]
gmci has quit [Quit: Computer has gone to sleep.]
banisterfiend` has joined #ruby
lggr has joined #ruby
idletom has quit [Ping timeout: 264 seconds]
urbann has joined #ruby
ar_ has joined #ruby
rutkla has quit [Read error: Connection reset by peer]
rutkla has joined #ruby
urbann has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 272 seconds]
rippa has joined #ruby
chendo has quit [Ping timeout: 240 seconds]
demian`_ has joined #ruby
chendo has joined #ruby
kitofr has quit [Ping timeout: 252 seconds]
savage- has joined #ruby
zigomir has joined #ruby
lggr has joined #ruby
k610 has joined #ruby
jenrzzz has joined #ruby
werdnativ has joined #ruby
chendo has quit [Ping timeout: 272 seconds]
beneggett has quit [Ping timeout: 240 seconds]
chendo has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
tagrudev has joined #ruby
bbttxu has joined #ruby
beneggett has joined #ruby
knightblader has quit [Quit: WeeChat 0.3.8]
cezar has joined #ruby
cezar has quit [Client Quit]
lggr has joined #ruby
arietis has joined #ruby
Hanmac1 is now known as Hanmac
nari has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
jarred has quit [Quit: jarred]
Averna has joined #ruby
seoaqua has joined #ruby
fourcolors has joined #ruby
dr_bob has joined #ruby
<fourcolors>
hi
<fourcolors>
im creating a podcast feed with RSS
krz has quit [Quit: krz]
<fourcolors>
and I ran into a problem when I created a class called "RssItem < RSS::Channel::Item"
imami|afk is now known as banseljaj
lggr has quit [Ping timeout: 240 seconds]
<fourcolors>
for some reason, when it generates it's tags, it now generates them as "rssItem" vs "item"
<fourcolors>
is there a way to override this
<banisterfiend`>
fourcolors its*
<fourcolors>
:/
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
hoelzro|away is now known as hoelzro
<fourcolors>
so .. do you know how to do this?
<fourcolors>
it's kind of frustrating
lggr has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<bnagy>
it probably uses self.class to decide the tag name
<fourcolors>
well thats lame sauce
chimay has joined #ruby
chimay has quit [Changing host]
chimay has joined #ruby
eighty4 has joined #ruby
<bnagy>
there doesn't appear to be any doc online, though, so it's not instantly obvious where that's done
c0rn_ has quit []
<zipkid>
Does lame sause come in bottles or in jars?
<zipkid>
Sauce even
<fourcolors>
ya the RSS docs kind of stink
Eldariof18-ru has joined #ruby
<fourcolors>
zipkid: jars
<bnagy>
hm, like java, that's a bad sign
hemanth has joined #ruby
<zipkid>
:-)
g_rotbart has quit [Remote host closed the connection]
tyfighter has quit [Quit: tyfighter]
lggr has quit [Ping timeout: 244 seconds]
<fourcolors>
man this is annoy
chendo has quit []
<fourcolors>
annoying
<fourcolors>
one podcast item will show up in itunes but the other wont
<fourcolors>
im sure it's something small.. always is
chendo has joined #ruby
lggr has joined #ruby
flype has joined #ruby
sspiff has joined #ruby
Yomero_ has quit [Ping timeout: 248 seconds]
lggr has quit [Ping timeout: 252 seconds]
LouisGB has joined #ruby
hbpoison has joined #ruby
mbk has joined #ruby
savage- has quit [Remote host closed the connection]
samg_ has joined #ruby
ngoldman has joined #ruby
<samg_>
Hey Ruby people! I've been experimenting with concurrency with JRuby and puma, and I wrote a simple long-polling chat room. Would anyone be interested in helping me try it out?
Sou|cutter has quit [Read error: Connection reset by peer]
chendo has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
trumpetmic has quit [Remote host closed the connection]
robbyoconnor has quit [Quit: Konversation terminated!]
statarb3 has joined #ruby
<dr_bob>
What is a "long-polling chat room"?
chendo has joined #ruby
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
<hoelzro>
dr_bob: a chat room implemented with a long-polling web client, I'd guess
<samg_>
right
lggr has joined #ruby
<samg_>
the idea is that threaded concurrency makes it cheap to wait for data
<Norrin>
let's all use the unknown phrase in our definitions
ngoldman has quit [Remote host closed the connection]
chendo has quit [Client Quit]
haxrbyte has joined #ruby
moshee has quit [Ping timeout: 245 seconds]
moshee has joined #ruby
seoaqua has joined #ruby
robbyoconnor has joined #ruby
theRoUS_ has quit [Ping timeout: 260 seconds]
fourcolors has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: Connection reset by peer]
yshh has quit [Remote host closed the connection]
yshh has joined #ruby
matthewrobbins has joined #ruby
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 264 seconds]
robbyoconnor has joined #ruby
seoaqua has quit [Quit: 离开]
yshh has quit [Remote host closed the connection]
lchin has joined #ruby
d3vic3 has joined #ruby
Catnaroek has joined #ruby
justinmcp has quit [Remote host closed the connection]
lggr has joined #ruby
hemanth has quit [Ping timeout: 272 seconds]
Catnaroek has quit [Client Quit]
jenrzzz has joined #ruby
theRoUS_ has joined #ruby
vectorshelve has joined #ruby
freeayu__ has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
chendo has joined #ruby
pingfloyd has quit [Quit: pingfloyd]
mengu has joined #ruby
chrxn__ has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
sagax has quit [Quit: Ухожу я от вас]
nari has quit [Ping timeout: 268 seconds]
lggr has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
r0bby has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
fir_ed has quit [Read error: Connection reset by peer]
xbayrockx has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
hemanth has joined #ruby
chussenot has joined #ruby
fir_ed has joined #ruby
lggr has joined #ruby
Xeago has joined #ruby
timonv has joined #ruby
elaptics`away is now known as elaptics
gilesw has joined #ruby
specialGuest has joined #ruby
dhruvasagar has quit [Quit: Lost terminal]
ephemerian has joined #ruby
dhruvasagar has joined #ruby
PragCypher has quit [Read error: Connection reset by peer]
tomask has joined #ruby
tomask has quit [Changing host]
tomask has joined #ruby
PragCypher has joined #ruby
xbayrockx has quit []
<hoelzro>
is it common to do rescue without a begin in a method?
<hoelzro>
ex: def foo ... rescue ... end?
pingfloyd has joined #ruby
<hoelzro>
as opposed to doing def foo begin ... rescue ... end?
<hoelzro>
I'm wondering if one is considered bad style
justinmcp has joined #ruby
dhruvasagar has quit [Client Quit]
lggr has quit [Ping timeout: 248 seconds]
<ryanf>
I would consider it worse style to use begin ... end if it's wrapping the whole method anyway
<ryanf>
unnecessary extra code is pretty much always bad style isn't it?
<hoelzro>
maybe
<hoelzro>
I would argue that it's more obvious what's going on
hbpoison has quit [Ping timeout: 248 seconds]
<hoelzro>
but I'm willing to go with the style that's more accepted by the community
wataken44 has quit [Ping timeout: 260 seconds]
yasushi has joined #ruby
yasushi has quit [Remote host closed the connection]
<Xeago>
I'd use begin..rescue if it is possible to return before getting into the begin block
Takehiro has quit [Remote host closed the connection]
<hoelzro>
in my case, it is not
<hoelzro>
a single statement is in the begin block
<Xeago>
what's the statement
Averna has quit [Quit: Leaving.]
<hoelzro>
the method is as follows:
<hoelzro>
def step; @stepper.next rescue StopIteration @complete = true end
<hoelzro>
with an extra end on the end
lggr has joined #ruby
<Xeago>
are you implementing enumerable?
Papasean has joined #ruby
<Xeago>
can you peek ahead, figure out if there is more?
<hoelzro>
maybe
<hoelzro>
however, that's a separate issue
<hoelzro>
I'm curious for when I encounter this in the future
<Xeago>
I'd rewrite the code
<hoelzro>
I'm not implementing enumerable though
<hoelzro>
I'm using an enumerator in my class
<Xeago>
I follow this rule, a single line of code, should not introduce more then 2 lines of boilerplate
<hoelzro>
and I'm wrapping it with pretty method names
maletor has joined #ruby
chrxn__ has quit [Ping timeout: 248 seconds]
pingfloyd has quit [Quit: pingfloyd]
lggr has quit [Ping timeout: 240 seconds]
Markvilla has joined #ruby
<bnagy>
the syntax supports it, it's shorter, you should use it
Aaaarg has joined #ruby
<bnagy>
it does occasionally surprise people, but so do toilet rolls that are on backwards
<Xeago>
lol
lkba has quit [Quit: Bye]
<bnagy>
you can't peek at the new enumerators, sadly, otherwise 1.8 style generators would be trivial
<bnagy>
rescue stopiteration is the only way :(
<Xeago>
:O, didn't know
yasushi has joined #ruby
baphled has joined #ruby
aganov has quit [Read error: Operation timed out]
justinmcp has quit [Remote host closed the connection]
aganov has joined #ruby
berserkr has joined #ruby
hemanth has quit [Ping timeout: 272 seconds]
yasushi has quit [Ping timeout: 245 seconds]
tagrudev has quit [Ping timeout: 268 seconds]
<Hanmac>
bnagy ... 1.8 has enumerator too ...
mucker has joined #ruby
lggr has joined #ruby
<Xeago>
Is this correct: "The priority within each cycle is as follows: improve the codebase, design and architecture; and second(ly): introduce new features or behavior."?
<bnagy>
yeah but it used to have proper generaors, like a.next if a.next?
<Xeago>
is it supposed to be second or secondly? The use of semicolons
<bnagy>
Xeago: that's not how semicolons are used
ryanf has quit [Quit: leaving]
<bnagy>
just remove the ; and : and it's more or less good to go
hemanth has joined #ruby
dhruvasagar has joined #ruby
<Xeago>
oky, tyvm!
<bnagy>
the second : not the first, first one is fine
Takehiro has joined #ruby
<bnagy>
secondly btw
<Xeago>
"The priority within each cycle is as follows: improve the codebase, design and architecture and secondly introduce new features or behavior."
<bnagy>
yar
<Xeago>
lovely
maletor has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
tomask has quit [Quit: Quit]
lggr has quit [Ping timeout: 240 seconds]
Jake232 has joined #ruby
justsee has quit [Quit: Leaving...]
mrdodo has quit [Remote host closed the connection]
tagrudev has joined #ruby
xorgnak has joined #ruby
lggr has joined #ruby
tvw has joined #ruby
r0bby_ has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
Papasean has quit [Quit: Papasean]
bigkevmcd has quit [Remote host closed the connection]
r0bby has quit [Ping timeout: 260 seconds]
r0bby_ has joined #ruby
haxrbyte_ has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
r0bby_ has quit [Client Quit]
haxrbyte has quit [Ping timeout: 272 seconds]
robbyoconnor has joined #ruby
mucker has quit [Ping timeout: 240 seconds]
fir_ed has quit [Quit: Leaving]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
frogprince_mac has joined #ruby
bluOxigen has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
pskosinski has joined #ruby
matrixise has joined #ruby
lggr has joined #ruby
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
chussenot has quit [Remote host closed the connection]
pvh has quit [Quit: Connection closed for inactivity]
sandGorgon has joined #ruby
s1n4 has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
s1n4 has joined #ruby
<sandGorgon>
hi guys - I want to convert a 17 digit number into a bitstream, which I want to encrypt (using RC4) to an equal size bitstream and unpack back to a different 17 digit number. I'm unable to grok the unpack and pack syntax. anybody know how to do this ?
a_a_g1 has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
iocor has joined #ruby
lchin has quit [Remote host closed the connection]
ltsstar has quit [Ping timeout: 244 seconds]
<Hanmac>
sandGorgon: you mean like this? [(10 ** 17)].pack("L") => "\x00\x00\x8A]"
<bnagy>
uh
<bnagy>
I think you might have lost some precision :)
lggr has quit [Ping timeout: 240 seconds]
<Hanmac>
fu you are right
Dr4g has quit [Quit: Connection closed for inactivity]
cakehero has joined #ruby
<bnagy>
if you want literally a bitstream you can [a_number.to_s(2)].pack('b*')
<bnagy>
but it's not very efficient
frogprince_mac has quit [Ping timeout: 246 seconds]
ctevie has quit [Quit: Connection closed for inactivity]
garndt has quit [Quit: Connection closed for inactivity]
lggr has joined #ruby
mrdodo has joined #ruby
<sandGorgon>
bnagy: I came up with "124890".split('').map(&:to_i).pack("c*").unpack("c*") - but the problem that happens is that if I pass it through RC4, and then unpack I get a result similar to [-83, -72, 54, -95, -45, 70], whereas I need the exact same length of output (single digit array). I think I need to packk and unpack in a correct format to get this to happen
<bnagy>
sandGorgon: Hanmac's approach will work
<bnagy>
for values up to 2**64 anyway
dekroning has joined #ruby
<bnagy>
pack Q will be fixed length
roflmaus has quit [Ping timeout: 244 seconds]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<bnagy>
you could also convert to binary, like I said, and pad left with '0'
lolmaus has joined #ruby
<bnagy>
well you can do that with base10 as well if you want, but you will need to use to_i(10) otherwise it will think it's octal
ph^ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
Foxandxss has joined #ruby
BdeUtra has joined #ruby
jastix has quit [Ping timeout: 240 seconds]
deadghost has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
schaerli has joined #ruby
horrror has joined #ruby
<deadghost>
what's a good book to get into ruby?
<Rydefalk>
Programming Ruby
<deadghost>
usually I'd just check stacko but my friend tells me ruby moves really fast so books get outdated
<Rydefalk>
from the pragmatic programmers
freeayu__ has quit [Ping timeout: 255 seconds]
justinmcp has joined #ruby
<horrror>
hey guys.. i got this weird " can't convert string into integer " that i can't work out
<Xeago>
horrror_: what's the reason for assigning to male_in to male
<Hanmac>
you mean it still makes a typeerror?
<Xeago>
you just copy the reference
freeayu has quit [Read error: Connection reset by peer]
<Hanmac>
horrror_ why do you want sample(1) ? have you tryed sample without the 1?
<Hanmac>
horrror_ and you may still have a typeerror on this line: boy_age = Time.now.year - boy["birthday_date"][boy["birthday_date"].size, boy["birthday_date"]-4]
<invisime>
for those that care, I'm going to try to get al2o3cr up and running this evening.
thunderstrike has quit [Ping timeout: 268 seconds]
<Hanmac>
YEAH
<kalleth>
i dont even know what it is
* kalleth
googles
<kalleth>
'ruby interpreting irc bot'
<kalleth>
ok
<kalleth>
:)
vectorshelve has quit [Quit: Page closed]
RJ3000_ has quit [Remote host closed the connection]
<shevy>
invisime are you the author
<invisime>
shevy: no, it's by jrarav.
RJ3000_ has joined #ruby
<Xeago>
shevy: no, but the author give him instructions on how to set it up
<invisime>
but he can't host it anymore.
<Xeago>
and secure it
<Xeago>
invisime: you going to run it virtualized?
<invisime>
I'm looking into making the installation a script that will work on any linux system. or, at least on most linux systems?
<kalleth>
vagrant it
<invisime>
Xeago: probably just chrooted.
<shevy>
ah
<kalleth>
i'd probably try and vagrant it
<kalleth>
honestly
<kalleth>
wouldnt want any irc bot anywhere near my actual machine
<shevy>
hehe
lggr has quit [Ping timeout: 248 seconds]
thatRD has joined #ruby
thatRD has quit [Client Quit]
oposomme has joined #ruby
<invisime>
well, everything in the chroot directory will be owned by root and set to mode 755. also, after installation, I'll remove the sudo binary from the chroot's bin directory so that from within it, you can't get root permissions.
mucker has quit [Ping timeout: 244 seconds]
thatRD has joined #ruby
<Xeago>
vagrant would be nice tbh
lggr has joined #ruby
<invisime>
then, outside the chroot, I'll monitor the entire thing and wipe/reinstall it daily or whenever the fs fills up.
<kalleth>
i'm supposed to learn how vagrant works son
<kalleth>
*soon
<kalleth>
also
<kalleth>
simple question
<Xeago>
kalleth: it manages vm's ran locally
<Xeago>
s/ran/running
<zipkid>
Vagrant++++++++++
<invisime>
mk. I'll look into vagrant this evening.
Trudko has joined #ruby
<kalleth>
i have a loop thorugh some AR objects
<kalleth>
and from within that .each loop i want to obtain an element from a 4 element hash
dhruvasagar has quit [Ping timeout: 260 seconds]
<kalleth>
so i want to do h[0] h[1] h[2] h[3]
<kalleth>
repeating
<Trudko>
hi guys I know you are biased but could you recomend good article with Ruby criticism
<kalleth>
so i need to figure out how to do a sequence of 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3
<kalleth>
from within a generic each
vitoravelino has quit [Remote host closed the connection]
<kalleth>
anyone got any 1liners? :)
<hoelzro>
kalleth: cycle?
<kalleth>
cycle?
<zipkid>
invisime: and if you set it up with a puppet recepie (or chef) you can just # vagrant destroy; vagrant up to start cleanly again.
gautamc has quit [Read error: Connection reset by peer]
Markvilla has quit [Quit: Computer has gone to sleep.]
<invisime>
zipkid: sounds ideal. and yeah, I was planning on writing a bash or .rb script to do most of the deployment. it seems like the biggest thing I could contribute to al2o3cr at the moment. do you know what the puppet recipes are written in?
<zipkid>
invisime: puppet supports gems as package source.
wataken44 has joined #ruby
gautamc has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
tommyvyo has joined #ruby
<invisime>
I'm wary of adding too many new technology pieces just this evening. I want to get it up and running in a safe way. if I have time to script it as well, that's a bonus.
<kalleth>
Hanmac: holy shit, how did i not know this before
<kalleth>
/cc hoelzro
billyoc has joined #ruby
ctp_ has joined #ruby
ctp- has joined #ruby
<Xeago>
invisime: the getting started is very easy to read, it'll probably take longer downloading ubuntu than figuring out what to do :) http://vagrantup.com/v1/docs/getting-started/
<Hanmac>
kalleth not call to_a or reverse or sort other methods that return an array on cycle or you would pay for that :P
ctp has quit [Read error: Operation timed out]
<Hanmac>
Xeago you may not need an VM ... an chroot may be fine too ...
<Xeago>
Hanmac: VM is easier to maintain
<Xeago>
and limit
lggr has joined #ruby
beachandbytes has quit [Ping timeout: 260 seconds]
ctp_ has quit [Ping timeout: 245 seconds]
justinmcp has joined #ruby
oposomme is now known as oposomme|away
beachandbytes has joined #ruby
justinmcp has quit [Remote host closed the connection]
luckyruby has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
ph^ has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
carloslopes has joined #ruby
Criztian has joined #ruby
<invisime>
Xeago: it seems like chroot might be more portable though. if/when I can't host it, it'd be nice if the next guy could get it up and running by just running a git clone and a ./install.
lggr has quit [Ping timeout: 264 seconds]
austinbv has joined #ruby
<Xeago>
git clone and a vagrant up
jimeh has joined #ruby
<Xeago>
I don't have experience with chroot'ed environment, only with virtualized env's
<topriddy_>
hello. where can i find a ruby on rails room please?
<invisime>
Xeago: I'll work on it tonight. sheesh!
<Xeago>
#rails
<Xeago>
invisime: no worries, but a bot would help usercount :D
<bnagy>
#rubyonrails also
<bnagy>
no idea which one sucks less
troessner has joined #ruby
lggr has joined #ruby
ryannielson has joined #ruby
<topriddy_>
i dont know if anyone has enough time to guide/point me to relevant instructions on setting both ruby/ruby on rails on my mac. i am java developer who wants to quickstart an hello-word app to wet interest
<nga4>
that seems open ended, what problem are you trying to solve?
<Spooner>
It is very slow. The GC is terrible for real-time apps. Anything more, it really depends on the application it is being used for.
ph^ has quit [Remote host closed the connection]
<Xeago>
Spooner?
<Spooner>
Hmm?
<Xeago>
what is very slow?
lggr has quit [Ping timeout: 252 seconds]
<Jake232>
Xeago: Ruby is
<bnagy>
yarv
<Trudko>
Rydefalk: Yeah interesting
TommyBotten has quit [Ping timeout: 276 seconds]
mercwithamouth has quit [Ping timeout: 245 seconds]
Axsuul has quit [Ping timeout: 272 seconds]
vitoravelino`afk is now known as vitoravelino
<Spooner>
Ruby. I was pointing out the very general flaws. Question is rather general, since Ruby is good at what Ruby is good at and bad at the things it is bad at.
ctp- has quit [Ping timeout: 244 seconds]
rippa has quit [Ping timeout: 244 seconds]
evilsushi has quit [Client Quit]
freeayu has quit [Remote host closed the connection]
vitoravelino has quit [Changing host]
vitoravelino has joined #ruby
<bnagy>
I don't think 2003 issues are very relevant
evilsushi has joined #ruby
evilsushi has quit [Changing host]
evilsushi has joined #ruby
cantonic_ has joined #ruby
<Spooner>
Yeah, though it is still slow, complex, surprising and inconsistent.
mercwithamouth has joined #ruby
austinbv has quit [Ping timeout: 252 seconds]
uris has joined #ruby
kaushik_ has quit [Ping timeout: 272 seconds]
cody-- has joined #ruby
<Spooner>
And although we have native threads, we still have a thread lock. Pity he gave up on Ruby2 not just being an iteration.
<shevy>
!
<Spooner>
I suppose Rite became YARV though. I'll shut up now ;)
<banisterfiend`>
Spooner ruby2 has a tonne of cool stuff
topriddy has joined #ruby
lggr has joined #ruby
<banisterfiend`>
Spooner also, getting rid of the GIL would be a pain i think and probabl result in more buggy code
cantonic has quit [Ping timeout: 260 seconds]
cantonic_ is now known as cantonic
<Spooner>
As far as I'm aware, the change to hash syntax in 1.9 is the only incompatibility we hae seen to make it better overall (which also produced the change in case syntax as a byproduct).
cascalheir is now known as cascalheira
xclite has joined #ruby
stopbit has joined #ruby
<Spooner>
Oh, I suppose the 1.9 encoding stuff could be counted as that. Mostly breaking things to make them a bit better.
ananthakumaran has quit [Quit: Leaving.]
ctp has joined #ruby
machty has joined #ruby
answer_42 has joined #ruby
notwen has quit [Read error: Connection reset by peer]
<Spooner>
I also haven't looked at 2.0 directly, so maybe there is a lot more in there than early previews showed.
notwen has joined #ruby
<Hanmac>
shevy it would be cool when Enumerators has some information about finite?/infinite? and rewindable?
wedgeV has joined #ruby
ctp has quit [Client Quit]
sagax has quit [Quit: Ухожу я от вас]
<shevy>
the encoding change only makes it better for those who need it
<Spooner>
Same with hashes. Some people still love rocketships!
<shevy>
syntax change such as removing ':' in case/when, introduction of -> and require_relative, and the new hash syntax are actually quite minor. you change it once, then things are nice. the Encoding change however will haunt people forever. they have no other joice, scripts that perfectly worked before no longer worked due to Encoding alone, unless one either conforms to UTF or something like "# Encoding: ASCII-
<shevy>
8BIT"
<Trudko>
eventhough with some thing it is easy to dissagre
<shevy>
*choice
<shevy>
I think I was thinking about juice :(
BIGX333 has quit [Remote host closed the connection]
<shevy>
someone get me some juice so I can choose when I have no other choice
a_a_g has quit [Quit: Leaving.]
ncamargo has joined #ruby
sandGorgon has quit [Ping timeout: 245 seconds]
<shevy>
ahh the english language... perhaps I should read Shakespeare
<shevy>
Trudko many of the items raised there are quite useless
sailias has joined #ruby
<shevy>
ruby classes can be extended
piotr__ has joined #ruby
<shevy>
and the version complaints are also silly... at least the most-up-to-date version of a language should be compared
<shevy>
who uses PHP 1 for instance!!!
<shevy>
though
<Xeago>
I have vm's I can boot that would run php1
<shevy>
I would remove @@class_vars
<shevy>
Xeago you really have code that works with php1?
lggr has joined #ruby
theRoUS_ has joined #ruby
techsurvivor has joined #ruby
swingha has quit [Quit: WeeChat 0.3.8]
ncamargo is now known as BIGX333
xpen_ has quit [Ping timeout: 264 seconds]
<Spooner>
Trudko : A lot of stuff there is not true for 1.9.2+ and or is very out of date. Lots is true though ;)
awarner has joined #ruby
<shevy>
I still have a file called std.php - I used this to require other php things I needed
<shevy>
almost 10 years ago
wuzzzzaah has quit [Ping timeout: 246 seconds]
<Hanmac>
shevy what about as @@@ for class instance variables? XD
<Trudko>
Spooner: heh , thx for input I was just talking with friend about how PHP is bad and I was courious if ruby had same amount of problems
<shevy>
Hanmac no, one @ should be the maximum allowed
<Xeago>
yup, besides the db it connected to I have everything for running php1
<Trudko>
I have little exp with ruby so thats why I asked here
<shevy>
Trudko, ruby is more consistent in itself than PHP is
<Trudko>
I mean all languages has it flaws
<Hanmac>
" Redundant operators: ||/or, &&/and, !/not. " this is not true because "||" is not the same as "or"
<Trudko>
shevy: yeah but what language is not ? :D
<shevy>
Trudko: PHP
<shevy>
:)
cody-- has quit [Remote host closed the connection]
<Spooner>
Best one is "Mutable strings in a dynamic language! This means e.g. when a string is passed to a setter it should copy the string so the object can be sure that it won't change unexpectedly." - er, no.
<shevy>
a java guy must have written that
cody-- has joined #ruby
<Hanmac>
" Regular expressions magically assign variables: $1, $2, ... " ... yeah i hate this $1-$9 variables too ...
cody-- has quit [Remote host closed the connection]
gfontenot has joined #ruby
<shevy>
they are quite simple
wmoxam_ has joined #ruby
wuzzzzaah has joined #ruby
<Spooner>
"Suffix-conditions after whole blocks of code, e.g. begin ... rescue ... end if expr You are guaranteed to miss the if expr if there are a lot of lines in the code block." - that is very bad style, but has to be allowed, since all code is an expression. Hardly fault of the language itself!
<shevy>
"abc def" =~ / (\w+)/; $1 # => "def"
troessner has quit [Ping timeout: 244 seconds]
<shevy>
Hanmac, can you make it shorter without using $1?
<Spooner>
"`` syntax with string interpolation for running sub processes. This makes shell injection attacks easy." = that is even funny.
<shevy>
hehe
<shevy>
shell injection attacks
Xethron has joined #ruby
wobr has quit [Quit: Leaving.]
<shevy>
I suppose I should never use system() again... because of my code being vulnerable to shell injection attacks
<Spooner>
shevy : / (\w+)/.match("abc def")[1]
nacengineer has quit [Quit: Leaving.]
<Spooner>
Barely longer.
<Spooner>
That said, I should use $1-9 less ;(
<Mon_Ouie>
"abc def"[/ (\w+)/, 1]
tomaw has quit [Ping timeout: 604 seconds]
beachandbytes has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 264 seconds]
<shevy>
oh cool
<Hanmac>
shevy: /(?<name>\d+)|/ =~ "123|";name
<shevy>
that one is even shorter
<shevy>
no thanks
<Spooner>
Though that all fits in with the complaint that there are too many ways to do one thing in Ruby ;(
<shevy>
I am going to pick Mon_Ouie's as the winner... your code scares me Hanmac
<Mon_Ouie>
^ I hate dislike magical variables even more
jrist is now known as jrist-afk
<Mon_Ouie>
Because you have to actually read the regexps to understand where they come from
topriddy_ has joined #ruby
pricees has joined #ruby
<shevy>
Hanmac, why is your code always so ... strange :(
<Mon_Ouie>
$1, etc. always come from there, making it more obvious
<Hanmac>
shevy you could try my line in a case
<shevy>
Spooner, yeah, for a long time I did not know about MatchData. I think in some ways, matz tried to make ruby seem familiar to people who used other languages
<shevy>
especially perl
troessner has joined #ruby
lggr has joined #ruby
Rochefort has joined #ruby
<Spooner>
Absolutely, but shame that stuff like the English library (require 'english') isn't more standard if you don't want to commit perlification.
<shevy>
perl seems to follow the old hacker philosophy much more so than ruby... write once and be done with it... and then don't look at it again ever
thunderstrike has joined #ruby
<shevy>
my case when structures are simple
<shevy>
I dont want your strange things in them Hanmac :P
<shevy>
when /(?<name>\d+)|/
Takehiro has quit [Remote host closed the connection]
<Hanmac>
but with this you dont need any form of $shit
lolmaus has quit []
berserkr has quit [Quit: Leaving.]
heisenmink has joined #ruby
<Spooner>
Interestingly, Objective-C sucks because it is based on Smalltalk, but Ruby doesn't suck for that reason ;)
tomaw_ has joined #ruby
<heisenmink>
Objective C has a very weird syntax
<Xeago>
atleast objc is fast..
<Spooner>
It isn't how fast your code is, xeago, but what you do with it ;)
aristidesfl has joined #ruby
kvirani has quit [Remote host closed the connection]
notVert has joined #ruby
<shevy>
if ruby were as fast as objc ...
lggr has quit [Ping timeout: 246 seconds]
yasushi has joined #ruby
<Mon_Ouie>
Part of the aliases in require 'English' (capital E, btw) are available in core luckily
eikko has quit [Ping timeout: 245 seconds]
<banisterfiend`>
Mon_Ouie do u wish there was require 'francais'
<Spooner>
Mon_Ouie : This is a different library? pry(main)> require 'english' => true
<Mon_Ouie>
And I think ObjC looks cool — except when people decide to use crazy long method names
<banisterfiend`>
Mon_Ouie then u could go: le puts "ooh lala"
luckyruby has quit [Remote host closed the connection]
<Mon_Ouie>
Spooner: Never forget you're running an an FS that's not case-sensitive ;)
<Spooner>
Oh, I'm on Windows. Oops. English, english, smenglish.
yasushi has quit [Read error: Connection reset by peer]
<Mon_Ouie>
banisterfiend`: Hm… no?
<wmoxam_>
C doesn't have booleans
tomaw_ is now known as tomaw
kpshek has joined #ruby
<Spooner>
But yeah, that is about the least reason why anyone should hate PHP!
<banisterfiend`>
Mon_Ouie: wouldn't it be cool if you could go `le (1..10).euuf { |v| comci puts v } && voila!`
<banisterfiend`>
hm i guess u can
<Spooner>
wmoxam : C99, I think, has TRUE/FALSE defined as 1/0, and it is common practice to use those definitions in other versions too (manually or with stdbool library).
bbttxu has quit [Quit: bbttxu]
<Mon_Ouie>
Two of those words… don't even look anything like to French.
sebastianb has quit [Read error: Connection reset by peer]
nari has joined #ruby
<wmoxam_>
aka: there is no boolean type
<wmoxam_>
Spooner: yeah, they're integers
Takehiro has joined #ruby
workmad3 has joined #ruby
bananagram has joined #ruby
<Spooner>
So you can use ++ and -- with them.
ohcibi has joined #ruby
<Spooner>
I was trying to work out why that PHP comment made some sense, even if it made no sense.
mbk has quit [Read error: Operation timed out]
indian has quit [Ping timeout: 252 seconds]
jonatha__ has quit [Remote host closed the connection]
ohcibi has quit [Quit: No Ping reply in 180 seconds.]
Paradox has quit [Ping timeout: 246 seconds]
jasonkuhrt has joined #ruby
chimay has joined #ruby
SirFunk_ has quit [Ping timeout: 246 seconds]
<Xeago>
how do you call the phase after you get employed by a company and finding your way around things
crodas has quit [Quit: Disconnecting from stoned server.]
kstephens has quit [Ping timeout: 246 seconds]
Bish has quit [Ping timeout: 246 seconds]
johnduhart has quit [Quit: No Ping reply in 180 seconds.]
clop has quit [Ping timeout: 246 seconds]
eighty4 has quit [Ping timeout: 246 seconds]
piefke has quit [Ping timeout: 246 seconds]
etank has quit [Ping timeout: 246 seconds]
strcrzy has quit [Ping timeout: 246 seconds]
beandip has quit [Ping timeout: 246 seconds]
kalleth has quit [Ping timeout: 246 seconds]
xorspark has quit [Ping timeout: 246 seconds]
nopper has quit [Ping timeout: 246 seconds]
Gonzih has quit [Ping timeout: 246 seconds]
EuroTrash has quit [Ping timeout: 246 seconds]
tchebb1 has quit [Ping timeout: 246 seconds]
snorkdude has quit [Remote host closed the connection]
jprovazn is now known as jprovazn_away
<shevy>
Xeago yeah strange
<shevy>
I have some aliases for it already... but for some reason, remove_html was not one
rodasc has joined #ruby
<shevy>
and somewhere in the back of my mind, I had this thought that I purposely did not want to use that name... hmmmm should have documented ...
maesbn has quit [Remote host closed the connection]
lggr has joined #ruby
<Xeago>
lol
bigkevmcd has quit [Read error: Connection reset by peer]
thunderstrike has quit [Remote host closed the connection]
Yomero_ has joined #ruby
<shevy>
I really need to start using sinatra seriously
dnyy has quit [Quit: Connection closed for inactivity]
maesbn has joined #ruby
<asteve>
today is broken for me
duracris1s has joined #ruby
<asteve>
rvm is broken, I can't cap deploy for an entirely different project and I have mysql lock errors
emanu has joined #ruby
topriddy_ has quit [Ping timeout: 240 seconds]
geggam has joined #ruby
bigkevmcd has joined #ruby
johnduhart2 has joined #ruby
duracris1s has left #ruby [#ruby]
kstephens_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
<diegoviola>
hi
monkegjinni has joined #ruby
<diegoviola>
rails question: i'm calling a rake task from a controller, with system "rake ..." and in the rake task i have task :import => :environment do ... then i'm trying to call flash from there, but i get undefined local variable or method `flash' for main:Object, any ideas what is wrong? i thougth that :environment loaded the entire rails env, so why i can't call flash?
m_3 has quit [Quit: leaving]
Bish_ has joined #ruby
mva3212 has quit [Remote host closed the connection]
mephux has quit [Remote host closed the connection]
Gonzih has joined #ruby
piefke has joined #ruby
EuroTrash has joined #ruby
qos has joined #ruby
eighty4_ has joined #ruby
heisenmink has quit [Remote host closed the connection]
mephux has joined #ruby
<diegoviola>
i asked there, nobody seems to know
<shevy>
asteve yeah. one day you will use the source directly, and a gobolinux-like install scheme :)
tchebb has joined #ruby
<shevy>
Hanmac, do you use rake?
<lucianosousa>
diegoviola: like flash[:notice] ?
<diegoviola>
yes
<lucianosousa>
we don't have this variable in this context
<lucianosousa>
only inside controllers/view
mengu has quit [Quit: Konversation terminated!]
<lucianosousa>
why do u wanna use this?
<Hanmac>
shevy currently no, but never with rails
<lucianosousa>
rake task means console script? try use puts os something like this
<diegoviola>
ok ty
rmcafee has joined #ruby
luckyruby has quit [Remote host closed the connection]
ckrailo has joined #ruby
Rarruga has quit [Quit: Leaving]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
sendoushi has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
taypen has joined #ruby
bradhe has quit [Remote host closed the connection]
<asteve>
shevy: "each program resides in its own directory, such as /Programs/Xorg-Lib/7.4 and /Programs/KDE-Libs/4.2.0. Like it? " no god no, why must they capitalize programs
mmitchell has quit [Remote host closed the connection]
<shevy>
asteve yeah, that's why I said gobolinux-like, not gobolinux-as-is :)
<asteve>
hah
lggr has joined #ruby
<shevy>
unfortunatly the students from back then now work full time and can't commit to the project, a few years ago, so it kinda died
<hoelzro>
I only know him as the LuaRocks maintainer
lampe2 has joined #ruby
mmitchel_ has joined #ruby
<metrix>
I want to do some cleanup when an application closes, but I want it done from a library so that it can be done in a generic over many applications. something like a hook into the exit() command.. is this possible?
<hoelzro>
metrix: have you looked at atexit?
<metrix>
I haven't
<metrix>
I will google
<shevy>
hoelzro sadly no, he settled for lua :(
etank has joined #ruby
<shevy>
yeah
<hoelzro>
also as the htop maintainer
<shevy>
lua + C
<hoelzro>
shevy: how do you know of him?
<shevy>
hoelzro: he started gobolinux years ago
snorkdude has joined #ruby
<shevy>
but he is rarely on IRC these days
mklappstuhl has joined #ruby
<hoelzro>
ooooh
d3vic3 has quit [Ping timeout: 245 seconds]
<hoelzro>
shevy: Lua and Ruby aren't that different ;)
<mklappstuhl>
I've been here before with that question but havn't been able to solve it in the meantime:
<shevy>
I hope so... especially with mruby one day
<shevy>
mklappstuhl, cool nick ;)
<lectrick>
hoelzro: i hope you are joking
<shevy>
klappstuhl = folding chair
carloslopes has quit [Quit: Leaving.]
<hoelzro>
lectrick: not really
<mklappstuhl>
I need to remove a BOM (byte-order-mark) (UTF-16 LE) character from a file
mmitchell has quit [Ping timeout: 244 seconds]
<hoelzro>
I mean, there are *some* stark differences
<mklappstuhl>
shevy, you got to be german to know that ;)
<hoelzro>
but to me, they're both clean scripting languages
<shevy>
mklappstuhl hehe kinda
d3vic3 has joined #ruby
<shevy>
hoelzro hmm lua is much simpler though or?
k610 has quit [Ping timeout: 272 seconds]
d3vic3 has quit [Client Quit]
<Spooner>
Lua put me off since it is soooo lightweight, which means that there would probably be schisms between which OO library you extended it with ;)
<lectrick>
hoelzro: i've played around with lua (wow addons) and it never felt like ruby to me, more like javascript
<mklappstuhl>
mklappstuhl, the file is pretty big and I know that the character is in the first line (oh wonder) ... any Ideas how to strip it of? maybe just blindly remove the first byte of the file or something alike? :D
<hoelzro>
lectrick: I hate to admit it, but Lua and JS do share some resemblance
<hoelzro>
shevy: Lua is *very* simple
Chryson has joined #ruby
koshii has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
<koshii>
Good afternoon
<Spooner>
lectrick : I used Lua in a brief DoW2 modding attempt, but I Rubified it a lot, in ways I couldn't have done with Javascript.
rodasc is now known as crodas
<lectrick>
Spooner: Would love to see that sample code out of curiosity. The rubifying of javascript was prototype, back in the day... :)
<hoelzro>
Lua isn't too hard to Rubify
<hoelzro>
it's a very flexible language
<hoelzro>
almost too flexible at time =)
<hoelzro>
*times
d3vic3 has joined #ruby
<koshii>
What do you mean "to Rubify"?
<Spooner>
Yes, that is what worried me. There wouldn't be a common way to extend it to make it as broad-based as Ruby.
<hoelzro>
to make it Ruby-like
nari has quit [Ping timeout: 240 seconds]
<koshii>
To use Ruby-like syntax?
possid has joined #ruby
<hoelzro>
objects, creating DSLs, block-friendly, I suppose
<possid>
objects, creating DSLs, block-friendly, I suppose
<koshii>
:D
<possid>
:D
<Xeago>
rofl
<possid>
rofl
snorkdude has quit [Remote host closed the connection]
<koshii>
Twins? :-)
<possid>
Twins? :-)
<hoelzro>
different people may have different definitions
<possid>
different people may have different definitions
<hoelzro>
horray for /ignore
<possid>
horray for /ignore
<Spooner>
E.g. adding Ruby-like inheritance system. Adding various standard Ruby stuff on Array object and such.
<possid>
E.g. adding Ruby-like inheritance system. Adding various standard Ruby stuff on Array object and such.
<koshii>
Sheesh.
<possid>
Sheesh.
lggr has joined #ruby
<Xeago>
could we get him out?
<possid>
could we get him out?
<koshii>
Spooner: How do you accomplish that?
<possid>
Spooner: How do you accomplish that?
lampe2 has quit [Ping timeout: 264 seconds]
larissa has quit [Quit: Leaving]
<Spooner>
koshii : I don't remember. Just looking for the old source code.
<possid>
koshii : I don't remember. Just looking for the old source code.
notVert has quit [Read error: Connection reset by peer]
MasterIdler_ has joined #ruby
<mklappstuhl>
anyone an idea regarding my problem?
<possid>
anyone an idea regarding my problem?
fukuyamaken has joined #ruby
<possid>
possid you will be banned
<shevy>
possid you will be banned
<Spooner>
It is just some idiot with a simple bot. Why would they care about being banned?
<possid>
It is just some idiot with a simple bot. Why would they care about being banned?
matrixise has quit [Quit: leaving]
<Muz>
Or about being threatened with being banned, by someone that can't ban them.
<possid>
Or about being threatened with being banned, by someone that can't ban them.
<Hanmac>
its yet another banister?
<possid>
its yet another banister?
fantazo has quit [Remote host closed the connection]
<shevy>
no it's a german bot
<possid>
no it's a german bot
duracris1s has joined #ruby
* Hanmac
thinks this is stupid
<shevy>
aha... the bot does not respond to emotes
bradhe has joined #ruby
<possid>
aha... the bot does not respond to emotes
* shevy
: mklappstuhl, no real idea about how to delete BOM from a file. but, why not load the file, then change it, then save anew?
bradhe has quit [Remote host closed the connection]
* koshii
Spooner, this is pretty smart :)
* Spooner
apologises to anyone who knows Lua for posting some terribly naive code :$
bradhe has joined #ruby
* Norrin
there's no op to kban this bot?
duracris1s has quit [Client Quit]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
* shevy
: Norrin well apeiros isn't here... wonder what happened to him
<hoelzro>
Spooner: I've seen *much* worse
<possid>
Spooner: I've seen *much* worse
<fukuyamaken>
possid
<possid>
possid
doomMonkey has joined #ruby
* shevy
: possid is a stupid parrot bot
<fukuyamaken>
*hmm*
<possid>
*hmm*
<possid>
huh?
baphled has quit [Ping timeout: 272 seconds]
dekroning has quit [Ping timeout: 252 seconds]
minijupe has joined #ruby
<shevy>
possid die
<possid>
possid die
minijupe has quit [Client Quit]
* Spooner
points out again that the fact that he had to do all that, means everyone will have completely different Luas, by the time they extend it to a more usable base.
<possid>
why? :(
* shevy
: possid because you are semi-botting
<possid>
huh?
mohits has quit [Read error: Connection reset by peer]
* koshii
was really interested in Lua for a couple of weeks, then discovered Ruby. :-)
wallerdev has joined #ruby
snorkdude has joined #ruby
* shevy
: koshii cool ... are you still using lua? or did something push you away from it
* shevy
: koshii iolanguage kinda died years ago if you ask me :( Steve is not that active anymore
niko has joined #ruby
* koshii
shevy: The only thing that pushed me away was not being able to Google every single error and get a good answer!
whackatre has left #ruby ["Cya."]
* koshii
shevy: That's too bad. It has a lot of really interesting features.
maletor has joined #ruby
<mklappstuhl>
shevy, It's about 30mb and it takes a while to load all that into memory just to strip of a single byte
<possid>
shevy, It's about 30mb and it takes a while to load all that into memory just to strip of a single byte
* shevy
: koshii https://github.com/stevedekorte/io <-- he is still semi-active... last commit 2 months ago... but the hype kinda died out slowly
* shevy
: koshii yeah. it had much better introspection than ruby :)
snorkdude has quit [Remote host closed the connection]
lampe2 has joined #ruby
sspiff has quit [Ping timeout: 264 seconds]
* koshii
shevy: Interesting to see that he is active doing Objective C stuff now
<Hanmac>
>> pissid is not only a parrot bot :D try to send him a directly message :D
<possid>
>> pissid is not only a parrot bot :D try to send him a directly message :D
* koshii
Hanmac: Is this your doing? :-)
* Xeago
Hanmac nothing happends
stim371 has joined #ruby
aantix has joined #ruby
possid has quit [K-Lined]
notVert has joined #ruby
<Hanmac>
i said "huhu" to him and he repsond "?!" XD
gregorg_taf has quit [Changing host]
gregorg_taf has joined #ruby
gregorg_taf is now known as gregorg
* shevy
: koshii yeah, he is good with mac + objc ... but I think for a language like Io, you really need to "grow" it to as many different platforms as possible. For some months I was unable to compile Io from source, whereas I could compile perl, lua, php, ruby and python from source just fine. and the bugs in the build system were so slow to be fixed... I lost interest eventually
iocor has joined #ruby
flagg0204 has joined #ruby
arkiver has quit [Ping timeout: 264 seconds]
<Hanmac>
shevy the bot is gone, so you could speak normaly again :P
Eldariof18-ru has quit [Ping timeout: 272 seconds]
<shevy>
yippie!
<shevy>
I was feeling like Bane in the dark knight rises
<shevy>
with that mask he was hard to understand
timonv has quit [Remote host closed the connection]
thatRD has quit [Remote host closed the connection]
canton7 has quit [Ping timeout: 246 seconds]
<Muz>
It's even harder to understand what he's saying when some lunatic storms the cinema with an assault rifle and teargas. ¬_¬
lchin has joined #ruby
paulovittor23 has quit [Ping timeout: 252 seconds]
xaq has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
ken_barber has joined #ruby
* koshii
shevy yeah I also have some problems compiling it
<koshii>
err... :)
yshh has quit [Remote host closed the connection]
monkegjinni has quit [Read error: Connection reset by peer]
monkegji_ has joined #ruby
machty_ has joined #ruby
<shevy>
Muz yeah... sadly those trolls in reallife use rifles and kill people. they should kill themselves first
lampe2 has quit [Ping timeout: 264 seconds]
bbttxu has quit [Quit: bbttxu]
machty has quit [Read error: Connection reset by peer]
machty_ is now known as machty
thatRD_ has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
ffranz has quit [Read error: Connection reset by peer]
Spooner has quit [Ping timeout: 272 seconds]
Knodi has joined #ruby
lchin has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
yann2 has joined #ruby
bradhe_ has joined #ruby
<yann2>
Hello! small question: I have multiple versions of a gem installed (debian/ubuntu), and I want to force the use of one specific versions. How can I do that?
fukuyamaken has quit [Remote host closed the connection]
Sou|cutter has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
Knodi has quit [Client Quit]
<Xeago>
how do you call introductional work, e.g. work done during a phase of introduction?
bradhe has joined #ruby
bradhe__ has joined #ruby
wallerdev has quit [Quit: wallerdev]
mklappstuhl has quit [Ping timeout: 264 seconds]
bradhe_ has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
Jake232 has quit [Quit: Computer has gone to sleep.]
ffranz has joined #ruby
lump has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
froy has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
rutkla has quit [Ping timeout: 252 seconds]
deadghost has joined #ruby
Jellyg00se has quit [Read error: Connection reset by peer]
<Hanmac>
yann2: do inside your ruby script before require something like this: gem "rdoc","3.9.4"
rutkla has joined #ruby
ryanf has joined #ruby
<reactormonk>
Xeago: try #english
obryan has joined #ruby
juarlex has joined #ruby
aantix has quit [Remote host closed the connection]
<shevy>
Xeago hmm preliminary work?
aantix has joined #ruby
<Xeago>
ty
thatRD_ has quit [Remote host closed the connection]
<Xeago>
bb8h
h4mz1d has joined #ruby
thatRD has joined #ruby
roadt has quit [Ping timeout: 272 seconds]
ztirf has joined #ruby
mmitchel_ has quit [Remote host closed the connection]
hasse has quit [Ping timeout: 245 seconds]
hoelzro is now known as hoelzro|away
davidcelis has joined #ruby
mmitchell has joined #ruby
lggr has joined #ruby
jjbohn has joined #ruby
jrajav has joined #ruby
maletor has joined #ruby
a_a_g has joined #ruby
MasterIdler_ has quit [Quit: MasterIdler_]
minijupe has joined #ruby
moted has joined #ruby
grainne has joined #ruby
thatRD has quit [Quit: thatRD]
Virunga has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
Iszak has quit [Quit: User has gone to sleep.]
ephemerian has quit [Quit: Leaving.]
williamcotton has joined #ruby
h4mz1d has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
matthewrobbins has quit [Ping timeout: 240 seconds]
Xeago has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
robertbird has joined #ruby
senny has quit [Remote host closed the connection]
<atmosx>
shevy: how's life
yann2 has quit [Ping timeout: 272 seconds]
<atmosx>
first day at classes today, I was like from 8:00 a.m to 5:30 p.m. at the univ... I was about to sleep at the microbiology lab class.
g00se has joined #ruby
<atmosx>
awful
hbpoison has quit [Ping timeout: 244 seconds]
g00se is now known as Jellyg00se
<diegoviola>
i'm calling a rake task from a controller (rails app), this rake task does some data processing, but when it's done with that i need to inform the parent process that the rake task has finished, and then do something else in the controller, like redirecting to another place and showing a message "data processing is done", any idea how to do that? should i send a signal or something like that to the parent process?
kaushik_ has joined #ruby
<shevy>
atmosx dunno... I am learning italian now...
philcrissman has joined #ruby
eins11_ has joined #ruby
eins11_ has quit [Read error: Connection reset by peer]
<davidcelis>
foofoobar: it's another string delimiter
<foofoobar>
okay
yann2 has joined #ruby
GoHuyGo has joined #ruby
mwillhite has joined #ruby
<davidcelis>
foofoobar: that one operates like double quotes, meaning it takes escaped characters and interpolation
<mwillhite>
has anyone run into this?: activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- typhoeus (LoadError)
ph^ has quit [Remote host closed the connection]
<davidcelis>
foofoobar: people use it when their string will contain double quotes so they don't have to continuously escape said double quotes
<mwillhite>
I'm using rbenv
<mwillhite>
ruby 1.9.3-p194
kevinnewesil has joined #ruby
<mwillhite>
I was playing around with typhoeus
joofsh has quit [Quit: Leaving]
ph^ has joined #ruby
<foofoobar>
davidcelis: does this "w" has a special meaning?
<mwillhite>
but now when I boot up my app (which doesn't require typhus) I get this error and it doesn't start
<reactormonk>
mwillhite: gem install ?
<mwillhite>
did that
<mwillhite>
I can hit it in irb
<mwillhite>
require 'tyhpoeus' works just fine
<davidcelis>
foofoobar: what w
<foofoobar>
%w{} or something like this
<davidcelis>
foofoobar: %{w abc def} is the same as "w abc def"
johnjohnson has quit []
<foofoobar>
so the "w" has no meaning?
<davidcelis>
foofoobar: stick it in the console and find out bro
<davidcelis>
foofoobar: it has a meaning when after the %. %w{} is different than %{}
<enricostn>
I get syntax error, unexpected tLABEL, expecting keyword_end (SyntaxError) ..._items << LineItem.new project: item, quantity: quantity, pr...
<ohcibi>
can someone explain to me why in this regex: http://rubular.com/r/695iR9xIS3 the [ is also matched in the string but the values below then are shown without [? i have the same in example in javascript where the [ is also included in the matches
<davidcelis>
enricostn: it's not wrong, per se, it just has a syntax error
<enricostn>
davidcelis: yes it's what I mean, a Syntax Error. thank you!
johnjohnson has quit []
mengu has joined #ruby
shevy has joined #ruby
stim371 has quit [Quit: stim371]
nari has joined #ruby
ryannielson_ has joined #ruby
werdnativ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
cbuxton has quit [Ping timeout: 240 seconds]
mva3212 has joined #ruby
voodoofish430 has joined #ruby
mklappstuhl has joined #ruby
ryannielson has quit [Ping timeout: 264 seconds]
ryannielson_ is now known as ryannielson
mrdodo has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
kenfdev has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
jrajav has quit []
kvirani has quit [Remote host closed the connection]
locriani has joined #ruby
tyfighter has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
bradhe__ has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
manizzle has quit [Remote host closed the connection]
johnjohnson has joined #ruby
johnjohnson has quit [Client Quit]
manizzle has joined #ruby
heisenmink has joined #ruby
cbuxton has joined #ruby
levieraf has joined #ruby
sendoushi has quit [Remote host closed the connection]
hbpoison has joined #ruby
Chryson has quit [Quit: Leaving]
kevinnewesil has quit [Quit: This computer has gone to sleep]
haxrbyte has joined #ruby
tscolari has joined #ruby
br4ndon has joined #ruby
shadoi has quit [Quit: Leaving.]
rasbonics has joined #ruby
haxrbyte_ has quit [Ping timeout: 240 seconds]
specialGuest has quit [Ping timeout: 272 seconds]
rakm has joined #ruby
hadees has quit [Quit: hadees]
bradhe has quit [Remote host closed the connection]
ryannielson has quit [Quit: ryannielson]
bradhe has joined #ruby
lggr has joined #ruby
mneorr has joined #ruby
mrsolo has joined #ruby
haxrbyte has quit [Remote host closed the connection]
Spooner has joined #ruby
haxrbyte has joined #ruby
eins11 has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
haxrbyte has quit [Ping timeout: 240 seconds]
bbttxu has joined #ruby
<shevy>
sinatra here I coooooome
ABK has joined #ruby
stim371 has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
ryannielson has joined #ruby
billycraven has quit [Quit: Leaving...]
Morkel has quit [Quit: Morkel]
GoGoGarrett has quit [Remote host closed the connection]
kevinnewesil has joined #ruby
lggr has joined #ruby
<voodoofish430>
anyone here familiar with watir?
Scient has left #ruby [#ruby]
<Muz>
Yes. Rather than the amibguous question, why not ask the actual question?
ar_ has quit [Quit: Leaving]
beandip has joined #ruby
xorspark has joined #ruby
<voodoofish430>
okay, then...
<voodoofish430>
This is more of an issue with the example of watir with test/unit
<voodoofish430>
When I try to run the example, I get the following error. "formal argument cannot be an instance variable" in relation to def setup @browser ||= Watir::Browser.new :firefox
F1skr has quit [Quit: WeeChat 0.3.8]
<voodoofish430>
I posted this in the watir channel as well, but that seems to be rather silent atm....
nsmgo has joined #ruby
snorkdude has joined #ruby
khakimov has joined #ruby
beachandbytes has joined #ruby
<shevy>
never used Watir myself
<Muz>
voodoofish430: got a full gist or pastie test case?
lolmaus has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
rudyl313 has joined #ruby
hadees has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
snorkdude has quit [Remote host closed the connection]
psychouroboros has joined #ruby
psychouroboros has quit [Client Quit]
<voodoofish430>
Muz: it's an exact copy from this page http://watir.com/frameworks/ it's the example_test.rb at the bottom of the page.
shadoi has joined #ruby
psychouroboros has joined #ruby
adamkittelson has joined #ruby
psychouroboros has quit [Client Quit]
lggr has joined #ruby
mklappstuhl has quit [Ping timeout: 264 seconds]
kevinnewesil has quit [Read error: Connection reset by peer]
deadalus has joined #ruby
deadalus has joined #ruby
deadalus has quit [Changing host]
kevinnewesil has joined #ruby
minijupe has quit [Quit: minijupe]
deadalus has quit [Client Quit]
snorkdude has joined #ruby
ukd1 has joined #ruby
deadghost has quit [Ping timeout: 252 seconds]
c0rn_ has joined #ruby
metrix has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
luckyruby has joined #ruby
luckyruby has quit [Remote host closed the connection]
binaryplease has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
luckyruby has joined #ruby
bradhe has quit [Remote host closed the connection]
binaryplease has quit [Client Quit]
indian has joined #ruby
indian has joined #ruby
bluenemo has quit [Remote host closed the connection]
TomJ has quit [Quit: TomJ]
bradhe has joined #ruby
mrdodo has joined #ruby
mrdodo has quit [Read error: Connection reset by peer]
eldariof has joined #ruby
mrdodo has joined #ruby
topriddy_ has joined #ruby
wuzzzzaah has quit [Ping timeout: 244 seconds]
fris has joined #ruby
ABK has quit [Read error: Connection reset by peer]
blazes816 has quit [Quit: blazes816]
apok has joined #ruby
snorkdude has quit [Remote host closed the connection]
ABK has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
nga4 has joined #ruby
statarb3 has quit [Ping timeout: 272 seconds]
lggr has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
gift has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
m3pow has quit [Ping timeout: 264 seconds]
m3pow has joined #ruby
robertbird has quit [Quit: robertbird]
baphled has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
williamcotton has quit [Quit: williamcotton]
sspiff has joined #ruby
mklappstuhl has joined #ruby
kenfdev has joined #ruby
williamcotton has joined #ruby
chussenot has quit [Quit: chussenot]
mmitchell has joined #ruby
ryanf has quit [Ping timeout: 268 seconds]
lggr has joined #ruby
nateberkopec has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
aristidesfl has quit [Ping timeout: 244 seconds]
pu22l3r has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
statarb3 has joined #ruby
kvirani has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
mdaubs has joined #ruby
indian has quit [Ping timeout: 248 seconds]
Russell^^ has joined #ruby
mdaubs has quit [Remote host closed the connection]
BIGX333 has quit [Remote host closed the connection]
grainne has quit [Quit: =^..^=]
joelsbeard has joined #ruby
aristidesfl has joined #ruby
mahmoudimus has joined #ruby
topriddy_ has quit [Quit: topriddy_]
lggr has quit [Ping timeout: 252 seconds]
johnlcox has quit [Ping timeout: 256 seconds]
ryanf has joined #ruby
GoGoGarrett has joined #ruby
workmad3 has joined #ruby
bricker has joined #ruby
<bricker>
Does Ruby group "and" / "or" by every 2 statements?
iocor has quit [Quit: Computer has gone to sleep.]
koshii has quit [Quit: leaving]
<bricker>
I think yes but I just want to confirm
kevinnewesil has quit [Read error: Connection reset by peer]
johnlcox has joined #ruby
chrishunt has joined #ruby
emanu_ has joined #ruby
<workmad3>
bricker: ?
<bricker>
workmad3: yeah that was confusing...
<workmad3>
just a bit ;)
enricostn has left #ruby [#ruby]
wuzzzzaah has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
emanu has quit [Ping timeout: 264 seconds]
emanu_ is now known as emanu
<bricker>
I mean does it place in "assumed" parentheses? true and false or false or true or false or false and true == (true and false) or (false or true) or (false or false) and (true)
<workmad3>
afaik, they're equal precedence
ABK has quit [Read error: Connection reset by peer]
nari has quit [Ping timeout: 244 seconds]
Markvilla has quit [Quit: Computer has gone to sleep.]
<workmad3>
so it would be like (((true and false) or true) or false)...
ABK has joined #ruby
<workmad3>
basically, equal precedence is evaluated left-right
cbuxton has quit [Quit: Leaving.]
<bricker>
I see
ukd1 has quit [Quit: leaving]
<bricker>
so best just to use parentheses just to be safe I gues
<bricker>
s
<workmad3>
yeah
<workmad3>
also be careful of the v. low precedence of the english 'and' and 'or' keywords
schaerli has joined #ruby
<workmad3>
it's generally better to use && and || if you're doing actual boolean expressions
kevinnewesil has joined #ruby
<diegoviola>
i'm forking a process from another process, how do i know when the child process has finished doing its thing, and tell the parent process about the child exit status?
<bricker>
workmad3: yeah I am aware of that difference after hours of banging my head on a desk a few years back
wuzzzzaah has quit [Ping timeout: 264 seconds]
lggr has joined #ruby
ananthakumaran has joined #ruby
jrist is now known as jrist-afk
jmeeuwen is now known as vanmeeuwen
vanmeeuwen is now known as jmeeuwen
jmeeuwen is now known as vanmeeuwen
neku has joined #ruby
vanmeeuwen is now known as jmeeuwen
kenfdev has quit [Ping timeout: 255 seconds]
a_a_g has quit [Quit: Leaving.]
kirun has joined #ruby
darkc0met has quit [Changing host]
darkc0met has joined #ruby
darkc0met has quit [Changing host]
darkc0met has joined #ruby
stkowski has joined #ruby
ABK has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 256 seconds]
ABK has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
pskosinski has quit [Remote host closed the connection]
pettsson has joined #ruby
ryanf has quit [Quit: broken pipes |||]
kevinnewesil has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit: Computer has gone to sleep.]
macmartine has joined #ruby
binaryplease has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
chetan- has joined #ruby
jastix has quit [Quit: Leaving]
<chetan->
is anyone using a tool to manage vendored JS libs?
pskosinski has joined #ruby
sxsruo has quit [Remote host closed the connection]
budha has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
a_a_g has joined #ruby
Chryson has joined #ruby
fris has quit []
tommyvyo has joined #ruby
plose has joined #ruby
deadghost has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
<plose>
heya
plose has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 264 seconds]
lggr has joined #ruby
arkiver has joined #ruby
Synthead has joined #ruby
krawchyk has quit [Remote host closed the connection]
<perlsyntax>
hey
billycravens has joined #ruby
kevinnewesil has joined #ruby
wmoxam_ has joined #ruby
a_a_g has left #ruby ["Leaving"]
a_a_g has joined #ruby
slicslak has joined #ruby
lolmaus has quit []
ABK has quit [Read error: Connection reset by peer]
<RubyPanther>
diegoviola: the parent generally will wait() for the child
ABK has joined #ruby
austinbv has joined #ruby
kevinnewesil has quit [Read error: Connection reset by peer]
stopbit has quit [Read error: Connection reset by peer]
kevinnewesil has joined #ruby
stopbit has joined #ruby
<diegoviola>
RubyPanther: so parent will receive a signal when the child dies
ryannielson has quit [Ping timeout: 256 seconds]
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
wuzzzzaah has joined #ruby
<Iszak>
Is there a method that I can override when someone calls an undefined class?
<banisterfiend`>
Iszak const_missing
skogis has joined #ruby
<Iszak>
Thanks
<voodoofish430>
heya Muz: any thoughts on that watir issue I mentioned before? Just wondering
ryanf has quit [Quit: broken pipes |||]
lkba has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
frogprince_mac has joined #ruby
ananthakumaran has joined #ruby
<RubyPanther>
diegoviola: typically, see Process.wait()
<diegoviola>
ty
aaronmacy has joined #ruby
Johanna_Meszoros has joined #ruby
wuzzzzaah has quit [Ping timeout: 268 seconds]
<diegoviola>
i've noticed that a rake task creates an entire new process though, when calling with system()... i guess i need to use fork() to create a child one?
mmitchell has quit [Remote host closed the connection]
<diegoviola>
RubyPanther: will wait() block the process?
<RubyPanther>
diegoviola: normally I think it does, but you can set some flag WNOHANG if your platform supports it
<Johanna_Meszoros>
Is someone able to help me solving this redmine error: http://pastebin.com/aYXbKndc I am not able to open the Settings anymore :-(
<diegoviola>
RubyPanther: ty
tinus1 has quit [Client Quit]
<RubyPanther>
Johanna_Meszoros: You have an undefined method. Usually means a typo, or a missing line in Gemfile
perlsyntax has left #ruby ["Leaving"]
Johanna_Meszoros is now known as avalarion
arkiver has quit [Ping timeout: 256 seconds]
xial1 has joined #ruby
a_a_g has quit [Quit: Leaving]
c0rn_ has quit [Quit: Computer has gone to sleep.]
xial1 has left #ruby [#ruby]
lggr has quit [Ping timeout: 252 seconds]
Jamone has joined #ruby
Jamone has joined #ruby
Jamone has quit [Changing host]
ABK has quit [Read error: Connection reset by peer]
<avalarion>
RubyPanther, how do I check if the gemfiles packages are up to date?
Chryson has quit [Quit: Leaving]
ABK has joined #ruby
Eplemosen has joined #ruby
Monie has quit [Ping timeout: 240 seconds]
<RubyPanther>
That I can't say, there are many strategies for managing versions... the most important thing is to choose one and know what your policy is, and keep it however updated it claims to be...
<RubyPanther>
Some would say, unless some bug or feature has forced an upgrade, whatever version is already working is the perfect, golden, updated version
mohits has quit [Ping timeout: 268 seconds]
Xeago has joined #ruby
lggr has joined #ruby
<RubyPanther>
Others delete Gemfile.lock every morning, or else run some bundle command that checks... which itself has dangers
<RubyPanther>
And if it even functions depends on how exactly you wrote your Gemfile
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
swarley has joined #ruby
austinbv has quit [Ping timeout: 256 seconds]
mmitchell has joined #ruby
eas has quit [Remote host closed the connection]
<avalarion>
SO I right now know, that I don't know anything?^^
dnyy has joined #ruby
<shevy>
I opted to avoid gemfiles
Synthead has quit [Read error: Connection reset by peer]
specialGuest has quit [Ping timeout: 256 seconds]
nicoulaj has joined #ruby
Agustino has joined #ruby
chimay has quit [Quit: WeeChat 0.3.9-rc1]
bradhe has quit [Ping timeout: 252 seconds]
minijupe has joined #ruby
timonv has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
michael_mbp has joined #ruby
<michael_mbp>
hi all.
Synthead has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
tscolari has quit [Ping timeout: 245 seconds]
wobr has joined #ruby
aristidesfl has quit []
loves_color_text has joined #ruby
kevinnewesil has quit [Read error: Connection reset by peer]
lggr has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
Banistergalaxy has quit [Remote host closed the connection]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
c0rn_ has joined #ruby
Russell^^ has quit [Quit: Russell^^]
callenb has joined #ruby
Eplemosen has quit [Quit: NOPE]
c0rn_ has quit [Client Quit]
callenb has quit [Client Quit]
kenfdev has joined #ruby
callenb has joined #ruby
callenb has quit [Client Quit]
lggr has quit [Ping timeout: 245 seconds]
cody-- has joined #ruby
erichmenge has joined #ruby
ABK has quit [Read error: Connection reset by peer]
kenfdev has quit [Ping timeout: 240 seconds]
ABK has joined #ruby
CodeVision has quit [Quit: WeeChat 0.3.8]
duracrisis has quit [Quit: Leaving]
jgarvey has joined #ruby
duracrisis has joined #ruby
pu22l3r_ has joined #ruby
ABK has quit [Read error: Connection reset by peer]
lggr has joined #ruby
phelps has joined #ruby
joelsbeard has left #ruby [#ruby]
mmitchell has quit [Remote host closed the connection]
c0rn_ has quit [Quit: Computer has gone to sleep.]
aristidesfl has joined #ruby
keppy has joined #ruby
thone_ has joined #ruby
neku has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
rakm has joined #ruby
horofox has joined #ruby
GoHuyGo has quit [Quit: Leaving]
snorkdude has quit [Remote host closed the connection]
thone has quit [Ping timeout: 252 seconds]
<shevy>
hi michael_mbp
jamesaxl has joined #ruby
<jamesaxl>
hi
lggr has quit [Ping timeout: 260 seconds]
<jamesaxl>
do you have any module for MSN ?
<avalarion>
If I remove the line out of the .erb and restart the apache ( using passenger right now ) the error still exists and it says that in the line i edited nothing changed... What do I have to do?
deadghost has quit [Ping timeout: 240 seconds]
timrom_ has quit [Ping timeout: 245 seconds]
ryannielson has joined #ruby
JohnBat26 has joined #ruby
explody has quit [Ping timeout: 248 seconds]
uris has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
<duracrisis>
n
ztirf has joined #ruby
uris has joined #ruby
cody-- has quit [Remote host closed the connection]
<shevy>
jamesaxl a ruby module for MSN? dont think so... but if it is web-based you should be able to write it... also look at mechanize (google for: ruby mechanize)
wobr has quit [Quit: Leaving.]
bradhe has quit [Remote host closed the connection]
c0rn_ has joined #ruby
bradhe has joined #ruby
cody-- has joined #ruby
triptec has joined #ruby
matthewrobbins has joined #ruby
<jamesaxl>
shevy, thank you very much
c0rn_ has quit [Client Quit]
jgrevich_ has joined #ruby
neku has joined #ruby
johnlcox has quit [Quit: Computer has gone to sleep.]
tyfighter has joined #ruby
mneorr has quit [Remote host closed the connection]
jgrevich has quit [Ping timeout: 264 seconds]
jgrevich_ is now known as jgrevich
lggr has quit [Ping timeout: 268 seconds]
timonv has quit [Remote host closed the connection]
mneorr has joined #ruby
iocor has joined #ruby
Xeago has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
ph^ has joined #ruby
minijupe has quit [Quit: minijupe]
mbk has joined #ruby
<Sargun>
What's the cost of a require
Morkel has quit [Quit: Morkel]
<davidcelis>
about $5.73
fubada- has joined #ruby
<shadoi>
$6.39 adjusted for inflation since release date.
maletor has quit [Quit: Computer has gone to sleep.]
<fubada->
hi folks, can someone help me with a one liner? Imagine you have a dir full of imap emails, how do i print the email address it was sent to, if the body contains "would like to stay in touch"
<davidcelis>
i remember the days when you could require for only 5¢
<davidcelis>
:(
rutkla has quit [Read error: Connection reset by peer]
<shadoi>
Sargun: seriously though, if you're really curious, run your code via strace and look at all the IO operations it does.
<fubada->
ruby -ne 'if $_ =~ /would like to stay in touch/; puts X?X?X?X?X? ; *.myimapfiles
c0rn_ has quit [Quit: Computer has gone to sleep.]
<fubada->
but im not sure how to get the "Sent:" from the inside if
carloslopes has quit [Quit: Leaving.]
w400z has joined #ruby
<Sargun>
If something is require'd, will ruby reload it?
sailias has joined #ruby
<shadoi>
no
nga4 has quit []
malkomalko has quit [Remote host closed the connection]
kvirani has quit [Remote host closed the connection]
<Sargun>
okay, so there is actually no inherent cost in putting the require in the method, other than an expensive first load?
c0rn_ has joined #ruby
<shadoi>
correct
ztirf has quit [Ping timeout: 252 seconds]
<shadoi>
if you put it in the method you may introduce behavior changes at runtime, which you should be very careful of.
<shadoi>
lazy loading a require that monkey patches something is a nightmare.
<shadoi>
s/is/can be/
bradhe has joined #ruby
asteve has quit []
evilsushi has quit [Quit: Lost terminal]
graft has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
gfontenot has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
<graft>
anyone help me out with a regexp? I have a thing which is either like "X(Y)" or just like "X", and I'd like to capture X and Y
<graft>
all the nested parentheses are confusing me
<davidcelis>
are X and Y only one character each?
<davidcelis>
what kind of character can they be?
<davidcelis>
kinda vague
<graft>
.*
timonv has joined #ruby
fantazo has joined #ruby
<boris317>
anything followed by anything wrapped in parens?
<graft>
well, [^()]
<boris317>
or just anything
billyoc has quit [Remote host closed the connection]