ambushsabre has quit [Read error: Connection reset by peer]
benwoody has quit [Quit: benwoody]
ambushsabre has joined #ruby
<havenwood>
sam113101: major.minor.teeny-patch, 2.1.0-p0 will come out on Christmas (usually Christmas or Ruby's birthday are the release dates for major/minor releases).
<havenwood>
sam113101: Ruby versioning is, uhh... untraditional. :P
volty has quit [Quit: Konversation terminated!]
ambushsabre has quit [Client Quit]
Nogbit has quit [Quit: Leaving.]
ddd has joined #ruby
pleal has joined #ruby
rickruby has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
drumusician has quit [Ping timeout: 246 seconds]
alvaro_o has joined #ruby
osvico has joined #ruby
linoge has joined #ruby
ace_striker has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<nobitanobi>
I have a question...I have a class ProductImage and a class ProductLogo. I want to be able to crop/resize images associated with objects of those two classes. I have thought on creating a Module called ImageManipulation and mixing it into both classes
rjhunter has joined #ruby
Hanmac has joined #ruby
nfk has quit [Quit: yawn]
<nobitanobi>
I tend to doubt whether to use a Module or Class, any thumb rule?
dh64 has quit [Remote host closed the connection]
huttan_ has quit [Remote host closed the connection]
adeponte has joined #ruby
mzdravkov has left #ruby [#ruby]
amoli has quit [Ping timeout: 246 seconds]
linoge has quit [Quit: WeeChat 0.4.2]
mgorbach has joined #ruby
coca_rails has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 260 seconds]
rjhunter has quit [Ping timeout: 260 seconds]
huttan has joined #ruby
<waxjar>
a module is for behaviour, a class for behaviour and state
Sc0rp10n has quit [Quit: Leaving]
Soda has quit [Read error: Connection reset by peer]
mojjojo has quit [Quit: mojjojo]
<havenwood>
nobitanobi: when in doubt, use a module - if you realize you need to instantiate to have separate state, only then a class
<nobitanobi>
havenwood, I think I reached the point where I am switching from a Module to a Class
<nobitanobi>
Say that I want to have a method called 'crop' that will crop a particular Image. So for an instance of ProductImage, I want to be able to do @image.crop
mojjojo has joined #ruby
<nobitanobi>
if that method is in the Module, the "correct" way of do so is passing parameters to the method such as .crop(start_x, end_x, start_y, end_y), right?
kofno_ has joined #ruby
<nobitanobi>
It would not be "correct" to rely on particular attributes of the ProductImage inside the .crop method
guilund has quit [Ping timeout: 250 seconds]
jan1337z has joined #ruby
monkegjinni has quit [Remote host closed the connection]
amacgregor_ has joined #ruby
amacgregor__ has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
farn has quit [Ping timeout: 246 seconds]
foobArrr has quit [Ping timeout: 245 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<noob101>
What is a function that restarts the program from the very first line?
<asdasddd>
So... As I was saying before I got disconnected: https://gist.github.com/novito/7685350 -- What is the correct approach for this? When I need a class attribute in a module to instantiate something?
wpaulson has joined #ruby
pel_daniel has left #ruby [#ruby]
<asdasddd>
*When I need an attribute from an object of a class that has a Module mixed in
kofno_ has joined #ruby
VTLob has quit [Quit: VTLob]
asdadsaddd has quit [Ping timeout: 260 seconds]
wpaulson has quit [Remote host closed the connection]
Bira has joined #ruby
Kricir has quit [Remote host closed the connection]
harrymoreno_ has joined #ruby
adeponte has quit [Quit: Leaving...]
fridim__ has joined #ruby
jeebster has quit [Quit: Leaving.]
farn has joined #ruby
moneydouble has quit [Quit: Leaving.]
Lewix has quit [Remote host closed the connection]
moneydouble has joined #ruby
Xeago has joined #ruby
fkumro has joined #ruby
harrymoreno has quit [Ping timeout: 272 seconds]
harrymoreno_ is now known as harrymoreno
predator217 has joined #ruby
pleal has quit [Remote host closed the connection]
gyre007 has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
hogeo has joined #ruby
Afal has joined #ruby
mojjojo has joined #ruby
<havenwood>
asdasddd: `def crop(source)`, as they say "Tell, don't ask." Tell the message to the method you're calling with arguments, don't have it go ask another method.
predator117 has quit [Ping timeout: 252 seconds]
flowerhack_ is now known as flowerhack
asdasddd is now known as nobitanobi
tkuchiki has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
<nobitanobi>
havenwood, ok
tenjack has quit [Remote host closed the connection]
pwh has quit []
<nobitanobi>
thanks havenwood
<nobitanobi>
I just found that doing
kaspergrubbe has joined #ruby
<nobitanobi>
@object.crop(@object.src) was kind of "redundant", as the crop method has access to @object.src
jetblack has joined #ruby
jetblack has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
nobitanobi: can you just #src instead of self#src?
Skylab_ has joined #ruby
jkhwan has quit [Remote host closed the connection]
<nobitanobi>
havenwood, yes
amacgregor has joined #ruby
Arzaga has joined #ruby
jkhwan has joined #ruby
Skylab has quit [Read error: Operation timed out]
Skylab_ is now known as Skylab
mdel has quit [Remote host closed the connection]
jetblack has joined #ruby
<havenwood>
nobitanobi: i think better, and no more redundant than calling #src later - just a method that needs calling
<nobitanobi>
havenwood, +1
amacgregor__ has quit [Ping timeout: 246 seconds]
<nobitanobi>
I am actually creating a class, because at the end of the day I will need a "new" instance of that image.
<nobitanobi>
to manipulate it
<nobitanobi>
the ProductImage itself is not a Manipulable Image. I need some library to open that 'src' and do everything with it
<nobitanobi>
(cropping, resizing...)
kaspergrubbe has quit [Ping timeout: 246 seconds]
<nobitanobi>
havenwood, thanks
<havenwood>
nobitanobi: np
<nobitanobi>
I enjoy programming Ruby way too much
<nobitanobi>
I have never had this feeling before with any other language
<nobitanobi>
and this channel makes it even more fun and easier. yeah I'm happy
myappleguy has joined #ruby
jalcine- has joined #ruby
jkhwan has quit [Ping timeout: 272 seconds]
alx- has quit [Quit: Leaving...]
asteros has quit [Quit: asteros]
Arzaga has quit [Quit: Computer has gone to sleep.]
jkhwan has joined #ruby
babykosh has joined #ruby
reset has quit [Ping timeout: 248 seconds]
awpti has quit [Remote host closed the connection]
ambushsabre has joined #ruby
theKayhan has quit [Ping timeout: 252 seconds]
gregorg has quit [Ping timeout: 248 seconds]
benzrf has joined #ruby
<benzrf>
hi, is there a ruby debugger like pdb
<benzrf>
or rather, what is it
<benzrf>
cuz it obv. exists
gregorg has joined #ruby
fkumro has left #ruby [#ruby]
amacgregor_ has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
amacgregor has quit [Ping timeout: 246 seconds]
mhillsman has quit [Quit: Leaving.]
nari has joined #ruby
robustus has joined #ruby
<benzrf>
hmm actually what i am looking for is controlled ruby execution where i programatially execute/traverse an AST
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sheap has joined #ruby
duggiefresh has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
charliesome has joined #ruby
tedstrik_ has joined #ruby
zeade has quit [Quit: Leaving.]
asteros has joined #ruby
ewnd9 has joined #ruby
dhruvasagar has joined #ruby
tkuchiki has joined #ruby
mk_qi has joined #ruby
mhillsman has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
beneggett has quit [Ping timeout: 272 seconds]
robbyoconnor has quit [Ping timeout: 245 seconds]
TaxmanBD has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
rjhunter has joined #ruby
mojjojo has quit [Quit: mojjojo]
hadees has joined #ruby
pleal has joined #ruby
alx- has joined #ruby
alx- has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
myappleguy has quit [Ping timeout: 264 seconds]
moneydouble has quit [Quit: Leaving.]
TaxmanBD has quit [Ping timeout: 246 seconds]
Leighton has joined #ruby
guilund has joined #ruby
<guilund>
bnagy: hey man, sorry i took to long to thank you properly
<guilund>
bnagy: worked very well thanks!
dtcrshr has joined #ruby
<guilund>
bnagy: do you know some article that explains what you did with the inject?
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<guilund>
bnagy: after a whois, find your twitter, following you
ravster has left #ruby [#ruby]
jamesaanderson has joined #ruby
culturelabs has joined #ruby
benzrf has left #ruby [#ruby]
<bnagy>
o_0
<guilund>
bnagy: dont worry man, i was just seeing if you had a blog or something haha
<bnagy>
using inject is kinda bad for that, I would recommend not
rDNix has joined #ruby
<guilund>
man, im struggling with this ruby hashes
<bnagy>
its's oneliner hacky code, not commit to a codebase code
<guilund>
crazy stuff.. cannot get anything working
aspires has joined #ruby
randomnick_ has quit [Quit: Leaving]
<rDNix>
hello what is the command to install gemfile ?
mando_ has joined #ruby
<bnagy>
guilund: mess with it in irb
<guilund>
bnagy: good idea
<bnagy>
rDNix: gem install blah.gem
<rDNix>
while am using bundle install in terminal it said " can't locate gemfile " :S
<rDNix>
blah - random ?
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
babykosh has quit [Quit: babykosh]
<guilund>
rDNix, check the ruby version
<guilund>
rDNix: rvm list
rjhunter has quit [Remote host closed the connection]
<rDNix>
An error occured while installing ffi (1.9.3), and Bundler cannot continue.
<rDNix>
Make sure that `gem install ffi -v '1.9.3'` succeeds before bundling.
<rDNix>
another error omg :S
<guilund>
install rails under this version of ruby
<guilund>
sorry, are you using rails?
<rDNix>
oh no
mikestok has joined #ruby
<guilund>
my bad, forot that the channel is about ruby
Xeago has quit [Ping timeout: 264 seconds]
TaxmanBD has joined #ruby
fierycatnet has joined #ruby
ewnd9 has quit [Ping timeout: 260 seconds]
<rDNix>
dam :S
kiba has quit [Ping timeout: 252 seconds]
zoo-zed has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
sambao21 has quit [Ping timeout: 260 seconds]
heidi has quit [Quit: Leaving.]
lethan has joined #ruby
timonv has quit [Ping timeout: 251 seconds]
<rDNix>
anyhelp ?
lethan has quit [Remote host closed the connection]
lethan has joined #ruby
lyanchih has joined #ruby
<Leighton>
rDNix: were you able to install ffi successfully?
lnormous has quit [Ping timeout: 240 seconds]
<rDNix>
no am not
<rDNix>
/usr/bin/ruby1.9.1 extconf.rb
<rDNix>
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
<bnagy>
install the ruby-dev package for your os
zoo-zed has quit [Ping timeout: 245 seconds]
kofno_ has joined #ruby
Hoozt has quit [Remote host closed the connection]
xk_id has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has quit []
estebistec has joined #ruby
sevenseacat has joined #ruby
Skylab has quit [Quit: Skylab]
<rDNix>
apt-get install ruby-dev
<rDNix>
i need to get libs too ?
wald0 has quit [Ping timeout: 272 seconds]
TaxmanBD has quit [Ping timeout: 246 seconds]
ukd1 has joined #ruby
maletor has joined #ruby
sevenseacat has quit [Ping timeout: 252 seconds]
doIevenLift is now known as synergy_
iz has joined #ruby
szerated has joined #ruby
<rDNix>
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
<rDNix>
work now ty
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
sparrovv has quit [Quit: sparrovv]
moneydouble has joined #ruby
Kricir has joined #ruby
fgo has joined #ruby
TaxmanBD has joined #ruby
freezey has joined #ruby
banister has joined #ruby
jbsnake has quit [Read error: Connection reset by peer]
asteros has quit [Quit: asteros]
Kricir has quit [Ping timeout: 252 seconds]
szerated has quit [Ping timeout: 246 seconds]
TaxmanBD has quit [Ping timeout: 252 seconds]
moneydouble has quit [Ping timeout: 248 seconds]
niklasb has quit [Ping timeout: 272 seconds]
Deele has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
noob101 has quit [Ping timeout: 250 seconds]
rDNix^ has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
yeboot has joined #ruby
tylersmith has quit [Remote host closed the connection]
rDNix has quit [Disconnected by services]
rDNix^ is now known as rDNix
rDNix has quit [Changing host]
rDNix has joined #ruby
sevenseacat has joined #ruby
freezey has quit [Remote host closed the connection]
iliketur_ has joined #ruby
ukd1_ has joined #ruby
magoo has quit [Ping timeout: 272 seconds]
amacgregor has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
TaxmanBD has joined #ruby
mhillsman has quit [Quit: Leaving.]
ukd1 has quit [Ping timeout: 246 seconds]
amacgregor_ has quit [Ping timeout: 246 seconds]
mmmiguuell has joined #ruby
tedstriker has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ukd1_ has quit [Ping timeout: 265 seconds]
sambao21 has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
smathieu has quit [Ping timeout: 246 seconds]
havenwood has quit [Remote host closed the connection]
DanBoy has joined #ruby
psyl0n has joined #ruby
Meistarin has quit [Quit: Going offline, see ya! (www.adiirc.com)]
havenwood has joined #ruby
fijimunkii has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
sambao21 has quit [Ping timeout: 246 seconds]
kofno_ has quit [Ping timeout: 246 seconds]
lethan has quit []
maletor has quit [Quit: Computer has gone to sleep.]
paradisaeidae has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
rDNix has quit [Ping timeout: 245 seconds]
lukec has quit [Quit: lukec]
jamesaanderson has joined #ruby
toevs has joined #ruby
falood has joined #ruby
amacgregor_ has joined #ruby
TaxmanBD has quit [Ping timeout: 272 seconds]
hamakn has joined #ruby
nalone has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
amacgregor has quit [Ping timeout: 245 seconds]
kofno_ has joined #ruby
hamakn has joined #ruby
jetblack has quit [Ping timeout: 272 seconds]
hamakn has quit [Read error: Connection reset by peer]
mmmiguuell has quit []
hamakn has joined #ruby
<Fire-Dragon-DoL>
Are there any simple way to calculate url depth?
DropsOfSerenity has joined #ruby
jmaya has joined #ruby
Deciphered is now known as DecipheredAFK
kobain has quit []
DropsOfSerenity has quit [Client Quit]
pwh has joined #ruby
jmaya has quit [Client Quit]
browndawg has joined #ruby
rDNix has joined #ruby
Meistarin has joined #ruby
LexicalScope has joined #ruby
havenwood has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
tedstrik_ has quit [Quit: Anti-Fraping status set.]
tylersmith has joined #ruby
pleal has quit [Remote host closed the connection]
TaxmanBD has joined #ruby
aspires has joined #ruby
hogeo has quit [Remote host closed the connection]
marcgg_ has quit [Ping timeout: 272 seconds]
synergy_ is now known as sng|afk
IcyDragon has quit [Quit: Space~~~]
mmcdaris has quit [Quit: mmcdaris]
Lewix has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
nemesit|znc has quit [Ping timeout: 264 seconds]
hogeo has joined #ruby
s_e has quit [Excess Flood]
intuxicated_ has quit [Remote host closed the connection]
heidi has joined #ruby
rjhunter has joined #ruby
Leighton has quit [Quit: leaving]
s_e has joined #ruby
tylersmith has quit [Ping timeout: 260 seconds]
myappleguy has joined #ruby
heidi has quit [Client Quit]
zz_scottstamp is now known as scottstamp
Vivekananda has quit [Quit: Ex-Chat]
rjhunter has quit [Ping timeout: 260 seconds]
julweber_ has joined #ruby
digital-ghost has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
marcgg has joined #ruby
nemesit|znc has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
lukec has joined #ruby
hogeo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
julweber has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
dwgill has joined #ruby
hogeo has joined #ruby
Kricir has joined #ruby
TaxmanBD has quit [Ping timeout: 264 seconds]
DecipheredAFK is now known as Deciphered
eka has quit [Quit: Computer has gone to sleep.]
halfie has quit [Ping timeout: 246 seconds]
asteros has joined #ruby
havenwood has joined #ruby
sambao21 has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nisstyre has joined #ruby
lukec has quit [Quit: lukec]
siah is now known as hydrospell[w]
dtcrshr has quit [Quit: poff]
moneydouble has joined #ruby
nemesit|znc has quit [Read error: Operation timed out]
rDNix has quit [Changing host]
rDNix has joined #ruby
sambao21 has quit [Ping timeout: 264 seconds]
asteros has quit [Ping timeout: 265 seconds]
ph8 has quit [Ping timeout: 272 seconds]
amacgregor has joined #ruby
moneydouble has quit [Ping timeout: 272 seconds]
aalejandro has joined #ruby
jamesaanderson has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
rage- has joined #ruby
jamesaanderson has quit [Client Quit]
Davey has joined #ruby
aalejandro is now known as elec-
scottstamp is now known as zz_scottstamp
TaxmanBD has joined #ruby
TaxmanBD has quit [Remote host closed the connection]
fierycatnet has quit []
nemesit|znc has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
paradisaeidae has quit [Ping timeout: 260 seconds]
TaxmanBD has joined #ruby
peta_ has quit [Quit: peta_]
paradisaeidae has joined #ruby
myappleguy has quit [Ping timeout: 245 seconds]
ph8 has joined #ruby
DanBoy has quit [Remote host closed the connection]
nemesit|znc has quit [Ping timeout: 252 seconds]
DanBoy has joined #ruby
liamkeily has quit [Ping timeout: 246 seconds]
zzak has quit [Quit: leaving]
zzak has joined #ruby
rDNix^ has joined #ruby
rDNix has quit [Disconnected by services]
rDNix^ is now known as rDNix
rDNix has quit [Changing host]
rDNix has joined #ruby
TaxmanBD has quit [Ping timeout: 264 seconds]
jetblack has joined #ruby
estebistec has quit [Remote host closed the connection]
estebistec has joined #ruby
blemming has joined #ruby
Deciphered is now known as DecipheredAFK
soba has joined #ruby
zzak is now known as _zzak
_zzak is now known as zzak
sbos99 has joined #ruby
estebistec has quit [Ping timeout: 252 seconds]
blemming has quit [Remote host closed the connection]
capicue has quit [Quit: Leaving...]
blemming has joined #ruby
timonv has joined #ruby
polaco is now known as polaco_zZz
petey has quit [Remote host closed the connection]
petey has joined #ruby
nobitanobi has quit [Ping timeout: 252 seconds]
<blemming>
Hi, I am trying to test a connection between Marketo and Slideshare. To do so, I need to find a way to setup an Apache 5.0 environment that supports SOAP API. Unfortunately, I'm not finding this explicitly stated on provider's sites - and their support has not been able to give a definitive answer.
<blemming>
Can you help?
jamesaanderson has joined #ruby
nemesit|znc has joined #ruby
<bnagy>
no.
fedesilva has joined #ruby
<blemming>
Thanks, bnagy. Anyone else - or can you point me in a direction where I can educate myself?
<lagweezle>
Try adding parenthesis at the end of line 2?
<Reach>
nevermind, forgot an end to one of my classes
<lagweezle>
=o
<lagweezle>
damn I was hoping I had clue
aagdbl1 has joined #ruby
aagdbl1 is now known as aagdbl
havenwood has joined #ruby
<rjhunter>
Reach: "unexpected end of input" means that Ruby got to the end of the file, "expecting keyword_end" means it was looking for an `end` keyword (like from a class or a do)
jkhwan has quit [Ping timeout: 272 seconds]
iamjarvo1 has joined #ruby
<Reach>
yeah
<Reach>
lol
<Reach>
i missed an end on my last method
<rjhunter>
hopefully that makes it easier to figure out next time
noyb has joined #ruby
<lagweezle>
I keep forgetting thar ruby cares not for parens
aagdbl has left #ruby [#ruby]
havenwood has quit [Read error: Connection reset by peer]
aagdbl has joined #ruby
havenwood has joined #ruby
sambao21 has joined #ruby
<pontiki>
eh?
dhruvasagar has quit [Read error: Connection reset by peer]
Deciphered is now known as DecipheredAFK
<pontiki>
lagweezle: foreman, god, monitor, guard, many things which can watch over and restart a process
robbyoconnor has joined #ruby
<pontiki>
if you want to wire it inside the bot itself, catch a process signal
nisstyre has joined #ruby
dhruvasagar has joined #ruby
<Radar>
foreman can watch over and restart a process?
<rjhunter>
lagweezle: on modern systems, you need no extra software -- systemd/launchd/upstart all have ways of expressing "this should restart if it gets terminated"
<pontiki>
not exactly, but it export to upstart
szerated has quit [Ping timeout: 246 seconds]
johnnyfuchs has joined #ruby
johnnyfuchs has quit [Client Quit]
mando has joined #ruby
Aryasam has joined #ruby
yeboot has quit [Ping timeout: 252 seconds]
<lagweezle>
rjhunter: ah, so true.Hooray for missing the obvious >.<
sambao21 has quit [Ping timeout: 246 seconds]
mando has quit [Read error: Connection reset by peer]
sbos99 has quit [Read error: Connection reset by peer]
mando_ has quit [Read error: Connection reset by peer]
hogeo has quit [Remote host closed the connection]
robert_ has quit [Read error: Connection reset by peer]
mando has quit [Read error: Connection reset by peer]
amacgregor has quit [Ping timeout: 246 seconds]
mando has joined #ruby
Davey has quit [Quit: This machine has gone to sleep (probably)]
amacgregor has joined #ruby
Davey has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Davey has quit [Remote host closed the connection]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
lyanchih has joined #ruby
Davey has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
drag00n has joined #ruby
browndawg has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
cjsarette has joined #ruby
yeboot has joined #ruby
jaimef has quit [Excess Flood]
nisstyre has quit [Quit: Leaving]
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
nisstyre has joined #ruby
nobitanobi has joined #ruby
<nobitanobi>
hihi
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
<lagweezle>
:)
jaimef has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
dwgill has quit [Quit: Leaving]
petey has quit [Remote host closed the connection]
michael_mbp is now known as zz_michael_mbp
dhruvasagar has quit [Read error: Connection reset by peer]
thecreators has joined #ruby
dhruvasagar has joined #ruby
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
Aryasam has quit [Ping timeout: 260 seconds]
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
Aryasam has joined #ruby
ananthakumaran has joined #ruby
mando has quit [Read error: Connection reset by peer]
jonahR has joined #ruby
browndawg has quit [Ping timeout: 252 seconds]
mando has joined #ruby
squidBits has quit [Ping timeout: 252 seconds]
squidBits has joined #ruby
coder_neo has joined #ruby
jaimef has quit [Excess Flood]
coder_neo has quit [Client Quit]
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando_ has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
mando has joined #ruby
browndawg has joined #ruby
dhruvasagar has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
dukz has quit [Remote host closed the connection]
zipper has joined #ruby
havenwood has quit [Remote host closed the connection]
dukz has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
havenwood has joined #ruby
Aryasam has quit [Ping timeout: 248 seconds]
mando has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
mando has joined #ruby
jaimef has joined #ruby
culturelabs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
klip has quit [Remote host closed the connection]
serp` has joined #ruby
hiyosi has joined #ruby
dukz has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 246 seconds]
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
finch has left #ruby ["WeeChat 0.3.8"]
Kricir has quit [Ping timeout: 252 seconds]
benlieb has joined #ruby
hogeo has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
DecipheredAFK is now known as Deciphered
mando has quit [Read error: Connection reset by peer]
apeiros has quit [Remote host closed the connection]
mando has joined #ruby
apeiros has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
michaeldeol has joined #ruby
fgo has quit [Remote host closed the connection]
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
closures999 has quit [Remote host closed the connection]
closures999 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
heidi has quit [Quit: Leaving.]
apeiros has quit [Ping timeout: 246 seconds]
ewnd9 has joined #ruby
michaeldeol has left #ruby [#ruby]
mando has quit [Read error: Connection reset by peer]
botorosa has joined #ruby
mando has joined #ruby
botorosa has quit [Quit: leaving]
closures999 has quit [Ping timeout: 241 seconds]
noyb has quit [Ping timeout: 248 seconds]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
charliesome has joined #ruby
Deciphered is now known as DecipheredAFK
mando has quit [Read error: Connection reset by peer]
rDNix has quit [Quit: Leaving]
rDNix has joined #ruby
mando has joined #ruby
sambao21 has joined #ruby
noop has joined #ruby
zz_michael_mbp is now known as michael_mbp
mando has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 272 seconds]
BizarreCake has joined #ruby
mando has joined #ruby
sambao21 has quit [Client Quit]
mando has quit [Read error: Connection reset by peer]
hogeo has quit [Remote host closed the connection]
iamjarvo has quit [Remote host closed the connection]
zipper has quit [Ping timeout: 245 seconds]
mando has joined #ruby
iamjarvo has joined #ruby
threesome has quit [Ping timeout: 246 seconds]
davidboy has quit [Quit: Connection closed for inactivity]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
bluOxigen has joined #ruby
rDNix has quit [Changing host]
rDNix has joined #ruby
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
iamjarvo has quit [Ping timeout: 252 seconds]
<DropsOfSerenity>
so I have something that grabs a list of ip addresses from an external service, and then with that list currently I am quering one at a time to see what kind of response it gives (with a 5 second timeout if no answer). Is there any way I can "thread" this to send requests to all the addresses at once and then act on each ones response with a timeout of 5 seconds per request?
dhruvasagar has quit [Read error: Connection reset by peer]
benlieb has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
<rDNix>
like port scanner ?
JohnBat26 has joined #ruby
<DropsOfSerenity>
just need the http response, that's all.
mando has joined #ruby
<DropsOfSerenity>
i'm currently using Net::HTP.get_response
<DropsOfSerenity>
HTTP*
JohnBat26 has quit [Client Quit]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
asteros has joined #ruby
jetblack has joined #ruby
OdNairy has joined #ruby
havenwood has joined #ruby
JohnBat26 has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
serp` has quit [Quit: serp`]
Leighton has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
<rjhunter>
DropsOfSerenity: you can use Ruby's threading with Thread.new (and probably a Queue)
mando has quit [Read error: Connection reset by peer]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
robert_ has joined #ruby
asteros has quit [Quit: asteros]
snoo has joined #ruby
rickruby has joined #ruby
axilla has joined #ruby
mando has quit [Read error: Connection reset by peer]
Soda has joined #ruby
mando has joined #ruby
closures999 has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
gadgetoid has quit [Ping timeout: 260 seconds]
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
jetblack has quit [Quit: leaving]
jeffdb has joined #ruby
sergicles has quit [Quit: sergicles]
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
zipper has joined #ruby
Soda has quit [Remote host closed the connection]
phansch has joined #ruby
zipper has quit [Client Quit]
sergicles has joined #ruby
phansch has quit [Client Quit]
jeffdb has quit [Client Quit]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
justsee has joined #ruby
tjad has joined #ruby
hogeo has joined #ruby
sayan has joined #ruby
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
s2013 has quit [Ping timeout: 265 seconds]
mando has joined #ruby
iamjarvo has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
roolo has joined #ruby
axilla has quit [Ping timeout: 252 seconds]
mando has quit [Read error: Connection reset by peer]
moneydouble has joined #ruby
mando has joined #ruby
ewnd9 has quit [Remote host closed the connection]
pen has joined #ruby
nbrosnahan has joined #ruby
nbrosnahan has quit [Max SendQ exceeded]
mando has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
h0rrorvacui has quit [Quit: Leaving]
moneydouble1 has quit [Ping timeout: 264 seconds]
nbrosnahan has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
mando_ has quit [Read error: Connection reset by peer]
<shevy>
is there a difference between
<shevy>
File.file? and File.exist?
mando has joined #ruby
razi has joined #ruby
DecipheredAFK is now known as Deciphered
aryaching has joined #ruby
mando_ has joined #ruby
mhillsman has quit [Quit: Leaving.]
jgrevich has quit [Quit: jgrevich]
hiyosi has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mando__ has joined #ruby
banghouse has joined #ruby
mando has quit [Ping timeout: 264 seconds]
jarto has joined #ruby
banghouse is now known as Guest62775
mando__ has quit [Read error: Connection reset by peer]
<ayaz>
shevy: Yes. Both check if the file given as the parameter exists. However, File.file? also checks whether the given file is actually a regular file.
justsee has quit [Ping timeout: 246 seconds]
jarto has quit [Client Quit]
mando has joined #ruby
ewnd9 has joined #ruby
noyb has quit [Ping timeout: 264 seconds]
dukz has joined #ruby
scottstamp is now known as zz_scottstamp
mando has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Excess Flood]
kofno_ has quit [Ping timeout: 245 seconds]
mando has joined #ruby
robbyoconnor has joined #ruby
cordoval has joined #ruby
<cordoval>
ugys
<cordoval>
guys
<cordoval>
is there anything better for functional testing of mails?
<e-dard>
we have unfortunately settled on just comparing to 3.40282346638528859811704183484516925440e+38 :(
<e-dard>
i.e., 2**127 * (2**24 - 1) / 2**23
<aagdbl>
you could try the pack and unpack hack mentioned on the link above
DecipheredAFK is now known as Deciphered
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
<aagdbl>
what do you mean by comparing to the above?
<Hanmac>
aagdbl: you can look at BigDecimal ... maybe its better for you?
mando has quit [Read error: Connection reset by peer]
<aagdbl>
do you only want to check for the range or also for the precision?
nisstyre has joined #ruby
blaxter_ is now known as blaxter
mando has joined #ruby
platzhirsch has joined #ruby
<platzhirsch>
any idea why data is highlighted in erb?
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<aagdbl>
e-dard: whats your use case? Why do you want to check whether a number will fit in 32 bits FP format?
mando_ has joined #ruby
atno__ has quit [Remote host closed the connection]
mando_ has quit [Read error: Connection reset by peer]
<e-dard>
aagdbl: because we are storing a representation of some calculations using a Ruby web-service, and we want to validate it's acceptible
<e-dard>
Before the JSON representation is sent to another Go web-service, which really does care about types ;)
mando_ has joined #ruby
atno has joined #ruby
dimas has quit [Quit: dimas]
<aagdbl>
is it worth the effort to differentiate between float and double? Why not just put everything in a double?
mando has quit [Ping timeout: 245 seconds]
harrymoreno has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
includex has joined #ruby
mojjojo has quit [Quit: mojjojo]
jhaals_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pranny has quit [Quit: Leaving.]
mando_ has joined #ruby
<aagdbl>
e-dard: another question to consider is what is the source of the number? does the source differentiate between float and double?
<e-dard>
aagdbl: because a 64 bit float cannot be readily compared to a 32 bit float in a strict type system
<aagdbl>
e-dard: what I'm saying is why not eliminate a 32 bit float altogether?
Deciphered is now known as DecipheredAFK
sepp2k has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
<e-dard>
aagdbl: it's hard to succinctly explain, but we have a data warehouse where we have 4 byte float columns
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
mojjojo has joined #ruby
mando has quit [Read error: Connection reset by peer]
ace_striker has joined #ruby
mando has joined #ruby
<aagdbl>
e-dard: and the column type is not known to the ruby code?
mando has quit [Read error: Connection reset by peer]
gwb3 has joined #ruby
gwb3 has quit [Client Quit]
<e-dard>
aagdbl: correct
mando has joined #ruby
<e-dard>
The ruby service is really just the API to users.
<e-dard>
It then passes on stuff to other services
atno has quit [Read error: No route to host]
mojjojo has quit [Client Quit]
mando has quit [Read error: Connection reset by peer]
mojjojo has joined #ruby
jocke_ has quit [Remote host closed the connection]
monkegjinni has joined #ruby
atno has joined #ruby
mando has joined #ruby
<aagdbl>
e-dard: but then you also have the inverse problem. just because a number can fit in a 32bit float doesnt mean that it should be a 32 bit float. maybe it actually came from a 64bit float column?
gwb3 has joined #ruby
gwb3 has quit [Client Quit]
mando__ has joined #ruby
mando has quit [Read error: Connection reset by peer]
<e-dard>
aagdbl: all numbers come from user input.
<e-dard>
JSON API
<e-dard>
so they all come in as strings and are marshalled into 64 bit Float
<aagdbl>
i get that. but you are trying to guess the correct type based on the value
camilasan has quit [Remote host closed the connection]
<e-dard>
no, the *minimum* type
mando has joined #ruby
mando__ has quit [Read error: Connection reset by peer]
falood has joined #ruby
camilasan has joined #ruby
<e-dard>
aagdbl: I think we'll stick to the constants comparison. Thanks for your thoughts. I appreciate it!
<aagdbl>
ok. i presume there is a reason for choosing the minimum type
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
<e-dard>
aagdbl: yup :)
hiyosi has joined #ruby
jprovazn has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
count has joined #ruby
<count>
is it just me, or is https://rubyforge.org/ down? 'RubyForge Could Not Connect to Database: '
mando has quit [Read error: Connection reset by peer]
pranny has joined #ruby
jprovazn has quit [Client Quit]
mando has joined #ruby
<aagdbl>
e-dard: just a final thing - your method will only determine 'minimum' for the range, not the precision
<e-dard>
right. yeah
sandeepk has quit [Read error: Connection reset by peer]
hiyosi has quit [Ping timeout: 260 seconds]
mando__ has joined #ruby
mando has quit [Read error: Connection reset by peer]
closures999 has quit [Remote host closed the connection]
mando__ has quit [Read error: Connection reset by peer]
mando has joined #ruby
popl has quit [Ping timeout: 248 seconds]
newbiehacker has joined #ruby
jbpros has quit [Quit: jbpros]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
tjad_ has joined #ruby
newbiehacker has quit [Client Quit]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
zerign has quit [Quit: Leaving]
dhruvasagar has quit [Quit: Lost terminal]
tjad has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
F1skr has joined #ruby
mando__ has joined #ruby
sergicles has joined #ruby
mojjojo has quit [Quit: mojjojo]
mando__ has quit [Read error: Connection reset by peer]
mando has quit [Read error: Connection reset by peer]
mando__ has joined #ruby
ace_striker has quit [Ping timeout: 250 seconds]
mojjojo has joined #ruby
wildroman2 has quit [Remote host closed the connection]
mando__ has quit [Read error: Connection reset by peer]
psyl0n has joined #ruby
psyl0n has joined #ruby
psyl0n has quit [Changing host]
mando has joined #ruby
Graves has quit [Ping timeout: 250 seconds]
prahal has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
ace_striker has quit [Ping timeout: 250 seconds]
<shevy>
that's some green colour
A124 has quit [Ping timeout: 272 seconds]
mando has quit [Read error: Connection reset by peer]
mando__ has joined #ruby
mando__ has quit [Read error: Connection reset by peer]
mando has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Deciphered is now known as DecipheredAFK
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
mojjojo has joined #ruby
AlienElite has quit [Quit: Leaving]
zipper has quit [Ping timeout: 246 seconds]
<zzak>
lol
shaunbaker has quit [Read error: Connection reset by peer]
<matti>
Ohai zzak
<zzak>
maybe we should do a redirect for old users :(
mando has quit [Read error: Connection reset by peer]
<zzak>
:(((((
mando has joined #ruby
mojjojo has quit [Client Quit]
shaunbaker has joined #ruby
<Hanmac>
did someone use rb_enc* functions from the C api? i need to find the function that returns the Encoding VALUE object from a const char* name
zipper has joined #ruby
rDNix has joined #ruby
Mattias has quit [Ping timeout: 245 seconds]
<zzak>
Hanmac: you want to know the encoding for a given string?
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<Hanmac>
zzak: no i build a wrapper, then i have something like that: wxFONTENCODING_UTF8 which i will wrap to "UTF-8" and then i want #<Encoding:UTF-8> ... but i am looking for the C interface method
<Hanmac>
platzhirsch: the same reaction about "based on ..." did i had when first watched the music video "of Monsters and Men" ... it looked SO awesome that i got angry that its not an 15+h movie ;P
<Hanmac>
1.5+
<platzhirsch>
we just love recursion
<platzhirsch>
Hanmac: but there sure are indie games which have the look and feel of their videos ^^
<Hanmac>
platzhirsch: do you know why i dont like "self-reflection" ? each time i try it i get a StackError
mando__ has joined #ruby
<platzhirsch>
?
<platzhirsch>
ah
mando has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has joined #ruby
Alina-malina has joined #ruby
mando has joined #ruby
<platzhirsch>
^^
mando__ has quit [Read error: Connection reset by peer]
<Hanmac>
platzhirsch: @ indie games, did i show you the intro to "little inferno" ?
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
<Hanmac>
the first time i play it was 2 years ago in the winter when it was -20°C outside
mando__ has joined #ruby
hiall has joined #ruby
jhaals has joined #ruby
<platzhirsch>
that's fitting :D
<shevy>
it's getting at about that temperature soon enough
Nisstyre-laptop has quit [Ping timeout: 246 seconds]
mando__ has quit [Read error: Connection reset by peer]
<shevy>
central vienna 3.0°C, vienna border area 1.5°C
<shevy>
I need to move to tropical areas :(
mando__ has joined #ruby
DecipheredAFK is now known as Deciphered
mikestok has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
mando__ has quit [Read error: Connection reset by peer]
mando has quit [Ping timeout: 260 seconds]
<Hanmac>
platzhirsch: i also recoment the game because the sorry is SO much deep ... (you may get tears about it)
mando has joined #ruby
<platzhirsch>
that's the only reason I consider playing games, go for the story like in a book, TV Show, etc.
wildroman2 has quit [Remote host closed the connection]
<Hanmac>
PS: the Sound/music of the game is also coool ... but i dont give them to you because the Ost would spoiler
nomenkun has joined #ruby
mando__ has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando__ has quit [Read error: Connection reset by peer]
braincra- has joined #ruby
mando has joined #ruby
zipper has quit [Remote host closed the connection]
zipper has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
braincrash has quit [Ping timeout: 272 seconds]
wildroman2 has joined #ruby
mando__ has joined #ruby
jalcine- is now known as jalcine
jalcine has quit [Changing host]
jalcine has joined #ruby
Deciphered is now known as DecipheredAFK
mando__ has quit [Read error: Connection reset by peer]
pleal has joined #ruby
hamakn has quit [Remote host closed the connection]
mando__ has joined #ruby
zipper has quit [Ping timeout: 248 seconds]
braincra- has quit [Ping timeout: 246 seconds]
hamakn has joined #ruby
zipper has joined #ruby
mando has quit [Ping timeout: 264 seconds]
camilasan has quit [Remote host closed the connection]
Xeago_ has joined #ruby
mando has joined #ruby
camilasan has joined #ruby
camilasa_ has joined #ruby
Xeago has quit [Read error: Operation timed out]
havenwood has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
Xeago_ has quit [Remote host closed the connection]
berkes has quit [Ping timeout: 272 seconds]
mando__ has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
tobago has quit [Remote host closed the connection]
mando__ has joined #ruby
mando has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
hamakn has quit [Ping timeout: 264 seconds]
mando__ has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 260 seconds]
mando has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
codenapper has quit [Ping timeout: 246 seconds]
mando has quit [Read error: Connection reset by peer]
raphaelivan has quit [Quit: Leaving.]
mando has joined #ruby
mando has quit [Read error: Connection reset by peer]
GoodTimes has joined #ruby
mando has joined #ruby
blaxter has quit [Quit: foo]
mando__ has joined #ruby
mojjojo has quit [Quit: mojjojo]
pen has quit []
mando___ has joined #ruby
mando__ has quit [Read error: Connection reset by peer]
pen has joined #ruby
sayan has joined #ruby
mando has quit [Ping timeout: 264 seconds]
mando___ has quit [Read error: Connection reset by peer]
mando has joined #ruby
hiyosi has joined #ruby
e-dard has left #ruby [#ruby]
mengu has quit [Remote host closed the connection]
felixjet has quit [Read error: Connection reset by peer]
felixjet has joined #ruby
mando__ has joined #ruby
<GoodTimes>
I am launching my first app on heroku. How do i setup an e-mail? Do i do that on my name registrar? I would like to use gmails interface
mengu has joined #ruby
mando___ has joined #ruby
mando__ has quit [Read error: Connection reset by peer]
mando has quit [Ping timeout: 260 seconds]
mando has joined #ruby
mando___ has quit [Read error: Connection reset by peer]
<_br_>
GoodTimes: You might want to check with people in #heroku
lebek has joined #ruby
pranny has joined #ruby
<GoodTimes>
Thanks!
pranny has quit [Client Quit]
mando__ has joined #ruby
berkes has joined #ruby
mando__ has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
braincra- has joined #ruby
mando has quit [Ping timeout: 252 seconds]
mikestok has joined #ruby
ace_striker_ has quit [Ping timeout: 250 seconds]
mando_ has quit [Read error: Connection reset by peer]
braincrash has quit [Ping timeout: 252 seconds]
mando has joined #ruby
elux has joined #ruby
mando has quit [Read error: Connection reset by peer]
timonv has quit [Read error: Connection reset by peer]
mando has joined #ruby
timonv has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
adkron has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
shredding has joined #ruby
AlienElite has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
mando has quit [Read error: Connection reset by peer]
sparrovv_ has joined #ruby
mando has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
sparrovv has quit [Ping timeout: 264 seconds]
sparrovv_ is now known as sparrovv
DecipheredAFK is now known as Deciphered
rjhunter has quit [Ping timeout: 264 seconds]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
aagdbl has quit [Ping timeout: 272 seconds]
mando has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
mikestok has quit [Quit: Computer has gone to sleep.]
mando_ has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
stringoO has joined #ruby
mikestok has joined #ruby
mando has joined #ruby
sergicles has quit [Quit: sergicles]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
emr has joined #ruby
<emr>
Hello, trying to install pg with gem however i'm getting Can't find the PostgreSQL client library (libpq) (on macos)
AlienElite has quit [Ping timeout: 248 seconds]
mando_ has joined #ruby
platzhirsch has quit [Ping timeout: 248 seconds]
decoponio has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
Deciphered is now known as DecipheredAFK
mando_ has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
count has left #ruby ["WeeChat 0.3.8"]
count has joined #ruby
count has left #ruby ["WeeChat 0.3.8"]
mando has quit [Ping timeout: 260 seconds]
zomgbie has joined #ruby
zomgbie has quit [Client Quit]
zomgbie has joined #ruby
shime has joined #ruby
mando has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
zomgbie has left #ruby [#ruby]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
mando has quit [Read error: Connection reset by peer]
Jrz has joined #ruby
emr has quit [Ping timeout: 250 seconds]
Jrz has quit [Max SendQ exceeded]
mando has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
mando has quit [Read error: Connection reset by peer]
fedesilva has quit [Remote host closed the connection]
marwinism has joined #ruby
mando has joined #ruby
ffranz has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
jb41 has joined #ruby
<jb41>
hi there, is it possible to override include? method?
sergicles has joined #ruby
<Hanmac>
jb41 yes, but why do you want to do that?
chillibite has joined #ruby
yeboot has quit [Ping timeout: 264 seconds]
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
havenwood has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jb41>
I've array of object, and I want to add another object to that Array if there isn't such object. Object are the same if 2 of 3 od their values are the same
<chillibite>
what os do most ruby developers use?
blaxter_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
<Hanmac>
jb41 you want Set with modified eql? and hash methods ?
duggiefresh has joined #ruby
mando has joined #ruby
RaCx has joined #ruby
dhruvasagar has joined #ruby
<jb41>
hmm, modyfing eql will do the thing
<Xeago>
which ruby version fixed the rubygems ssl certificate thing (by pinning it)?
<diegoviola>
chillibite: linux
mando__ has joined #ruby
mando has quit [Read error: Connection reset by peer]
havenwood has quit [Ping timeout: 272 seconds]
<Hanmac>
jb41: PS: you also need to modify the #hash method to get it working if you want to use Set (i would recomend that)
mando__ has quit [Read error: Connection reset by peer]
<chillibite>
diegoviola: that's what i had assumed, just checking, thanks
mando has joined #ruby
liamkeil1 has joined #ruby
jarr0dsz has joined #ruby
<diegoviola>
chillibite: some other people use osx i think
<jarr0dsz>
hi everyone, im trying to get ruby 2.0 latest stable to compile but it fails with No source for ruby-2.0.0-p353 provided with debugger-ruby_core_source gem.
mando has quit [Read error: Connection reset by peer]
<jarr0dsz>
as i assume from the docs since my2.0 is not the stable but the latest version there are no headers for it?
mando has joined #ruby
<jarr0dsz>
i mean one should point to the headers themsefl, only i do not want to enable debugging at all, i just want the latest ruby 353 to run without this problem, is there a way to disable this debugging?
St_Marx has joined #ruby
<diegoviola>
chillibite: personally, i'm on archlinux, i've installed ruby 2.0.0 and rubinius 2.2.1 via chruby/ruby-install, i use vim with git to edit/manage my code, everything works like a dream :)
mojjojo has joined #ruby
browndawg has joined #ruby
ravster has joined #ruby
mando has quit [Read error: Connection reset by peer]
<jarr0dsz>
aargh my version is the latest stable version, then why does it not compile :( really lost on this
mando has joined #ruby
<olivier_bK>
i have two script in ruby one for instance and another one for mysql i need to pass a variable @uid in mysql for backup the data
<olivier_bK>
how i can do that
asobrasil has joined #ruby
mando has quit [Read error: Connection reset by peer]
<dagobah>
I want to find all permutations of 11 digit numbers (0-9 for each digit), how can I do this? ... [*0..9].permutation(11) doesn't work.
Squarepy has quit [Quit: Leaving]
mando has joined #ruby
<Hanmac>
dagobah: repeated_permutation
<dagobah>
Aha!
<workmad3>
dagobah: err... all permutations of 11 digit numbers is (0..100000000000)
AlSquire has joined #ruby
<dagobah>
workmad3: Is it!?
_Andres has joined #ruby
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
<workmad3>
dagobah: well, all permutations (with leading 0s removed) of 11digit strings containing 0-9 == all numbers < 100000000000
joonty_ has joined #ruby
RaCx_ has joined #ruby
<workmad3>
dagobah: so if you want the leading 0s, you just need to pad them out :P
banghouse has quit [Remote host closed the connection]
<dagobah>
Interesting.
<jb41>
Hanmac: what you mean by Set?
<dagobah>
Is there an efficient way to iterate over (0..100000000000) ?
mando has joined #ruby
<workmad3>
dagobah: sure... .each
<jb41>
Hanmac: it's working, when I override == method
mando_ has quit [Read error: Connection reset by peer]
esselink has quit [Remote host closed the connection]
<dagobah>
workmad3: To find the list of possible 11 digit numbers that don't contain some known digits.
jbpros has joined #ruby
<workmad3>
dagobah: that's gonna take you quite a long time to work out brute-forcing
sandeepk has quit [Quit: Leaving...]
mando__ has joined #ruby
<workmad3>
dagobah: there's 1 trillion numbers in that range after all :P
includex has quit [Read error: Connection reset by peer]
<dagobah>
workmad3: Is it computable in realistic time? :p
chillibite has quit [Ping timeout: 250 seconds]
<workmad3>
dagobah: what do you count as realistic?
mojjojo has quit [Quit: mojjojo]
includex has joined #ruby
<dagobah>
workmad3: < 30 seconds or so
<workmad3>
dagobah: doubt it
duggiefresh has quit [Remote host closed the connection]
mando has quit [Ping timeout: 260 seconds]
<dagobah>
Interesting, and there's no way of knowing how long it'll take :)
btanaka has joined #ruby
<Hanmac>
Lennier: how do you iterate a string? per line, per char, per byte, per codepoint ?
<workmad3>
dagobah: you can calculate it somewhat I suspect
mando has joined #ruby
gasbakid has quit [Read error: Connection reset by peer]
mando_ has quit [Ping timeout: 245 seconds]
<Lennier>
hanmac: context.text is an array with strings
fedesilva has joined #ruby
<Lennier>
context.text.each should put all the strings
<Lennier>
context.text.each do |line|
<Lennier>
puts('<p>#{line}</p>')
<workmad3>
dagobah: but just printing out the entire range means that you're pushing about a terrabyte over the output buffer... 1 trillion 11 byte strings
<Lennier>
end
mando has quit [Read error: Connection reset by peer]
<Hanmac>
Lennier: what about line 20 ?
<dagobah>
workmad3: Ouch!
<Lennier>
ah, i see
mando has joined #ruby
<Lennier>
yes, line 19-21 should be ignored
mando__ has quit [Ping timeout: 246 seconds]
<Hanmac>
Lennier: look at line 7
<Lennier>
it was an attempt to implement an each method by myself
<Lennier>
oh, i see
mando has quit [Read error: Connection reset by peer]
<Lennier>
hanmac, you mean that text is empty, right?
<workmad3>
dagobah: also, consider that a 4ghz machine can do at best 4 billion operations in a second... so that would mean that even if your calculation was a single operation, you'd be looking at 250s for going over the entire list... 1 trillion is not a small range :P
mando has joined #ruby
adkron has quit [Ping timeout: 260 seconds]
imyerrow has joined #ruby
<Hanmac>
Lennier: yeah currently you do not set the text attribute ... or better you set your attribute explicit of the previous value (nil)
<Lennier>
ok, let me check
<Lennier>
yes, i see
<Lennier>
text should be an array of strings, of course
<Lennier>
ok, htank you very much, hanmac!
endash has joined #ruby
<dagobah>
workmad3: I'll have a rethink. Say if I knew the number doesn't contain for example 3,6 and 8, that should bring it down quite a bit?
timonv has quit [Read error: Connection reset by peer]
<workmad3>
at a guess, it would remove about 30% of the numbers
<dagobah>
workmad3: agreed, that'll cut things down a bit. Second thing to note?
<Hanmac>
dagobah: look aso for the "555-" phone numbers ;P
mando has quit [Ping timeout: 240 seconds]
DecipheredAFK is now known as Deciphered
<workmad3>
dagobah: second thing is that brute-forcing this sort of thing is possibly the worst way to do it
<workmad3>
dagobah: it would be better to have an algorithm that could generate a sequence of 'good' numbers
RaCx has joined #ruby
mando has joined #ruby
ananthakumaran has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
<dagobah>
That sounds tricky.
<workmad3>
dagobah: however, with just 6 numbers and no 3,7,8 then you're only looking at ~100000 numbers ;)
thesheff17 has quit [Read error: Operation timed out]
mando has quit [Read error: Connection reset by peer]
<workmad3>
dagobah: and with that in mind, the final consideration is whether you can find a suitable 'magic number' that hasn't already been taken on your chosen network
mando has joined #ruby
AndreyLvov has joined #ruby
<workmad3>
dagobah: it depends on what constitutes a magic number to you
<dagobah>
workmad3: Yes that's the last step :)
mando_ has quit [Ping timeout: 260 seconds]
jbpros has quit [Read error: Connection reset by peer]
mando has quit [Read error: Connection reset by peer]
<workmad3>
dagobah: it seems quite a lot of effort and CPU cycles do go through in order to generate a number that people will look at once in order to put into their phones ;)
mando has joined #ruby
sayan has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
rezzack has quit [Quit: Leaving.]
mando has quit [Read error: Connection reset by peer]
edwardly has quit [Ping timeout: 272 seconds]
mando has joined #ruby
marr has joined #ruby
ewnd9 has quit [Ping timeout: 246 seconds]
shaunbaker has joined #ruby
mando_ has joined #ruby
mando has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Read error: Operation timed out]
A124 has joined #ruby
Deciphered is now known as DecipheredAFK
mando_ has quit [Read error: Connection reset by peer]
mando has joined #ruby
guinness] has quit [Quit: leaving]
edwardly has joined #ruby
amund_ has quit [Read error: Operation timed out]
thesheff17 has joined #ruby
mojjojo has joined #ruby
mando has quit [Read error: Connection reset by peer]
mando has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<Hanmac>
dagobah: if you want the last value, i prefer that you use reverse each ...
mando_ has joined #ruby
apeiros has joined #ruby
<Hanmac>
cek yes, yes you can
<_br_>
How can I make god check if eg. lynx http://localhost responds or times out? Can I execute a custom ruby script from god?
DaniG2k has joined #ruby
mando_ has quit [Read error: Connection reset by peer]
mando_ has joined #ruby
<DaniG2k>
guys I am trying to think what the best solution for this is: I have a variable called @tutors that includes a bunch of Tutor objects. Some of them have latitude and logitude fields, some don't
<DaniG2k>
what's the quickest way to get the ones that do?
dhruvasagar has quit [Ping timeout: 252 seconds]
<hoelzro>
DaniG2k: are the fields nil/not nil?
<hoelzro>
if so, you can do @tutors.reject(&:nil?)
mando_ has quit [Read error: Connection reset by peer]
<DaniG2k>
hoelzro: so for instance, if I do Tutor.pluck :latitude, :longitude
<canton7>
DaniG2k, they're not meant to be used that way - the precidence is slightly different
<canton7>
DaniG2k, the intended usage is e.g. 'my_method() or die("error")'
<canton7>
not 'if something or something_else'
jbpros has joined #ruby
<canton7>
'or' and 'and' are way down below the assignment operators in the precedence table, so 'a = b || c' and 'a = b or c' don't do the same thing
<canton7>
and that *will* bite you at some point
sr78ger has quit [Quit: Qui]
akonny has joined #ruby
deneme has left #ruby [#ruby]
realDAB has quit [Quit: realDAB]
akonny has quit [Remote host closed the connection]
Sami345 has joined #ruby
akonny has joined #ruby
wallerdev has quit [Quit: wallerdev]
<DaniG2k>
canton7: I see
fris has joined #ruby
<DaniG2k>
canton7: I remember reading about this somewhere but....it never bit me in the ass so I never bothered caring too much
kofno_ has joined #ruby
<fris>
any idea how to fix WARNING: Nokogiri was built against LibXML version 2.9.0, but has dynamically loaded 2.9.1
sandeepk has joined #ruby
sandeepk has quit [Client Quit]
VesQ has joined #ruby
realDAB has joined #ruby
pwh has joined #ruby
Gonzih has joined #ruby
<Hanmac>
fris: simply build it again or switch to newer nokogiri (newest nokogiri does ship xml lib itself)
realDAB has quit [Client Quit]
binaryplease has joined #ruby
amund_ has joined #ruby
julweber has quit [Remote host closed the connection]
petey has joined #ruby
lmmx has joined #ruby
jamesaanderson has joined #ruby
<fris>
running 1.6.0 currently
F1skr has quit [Quit: WeeChat 0.4.2]
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
noyb has joined #ruby
myappleguy has joined #ruby
<Hanmac>
fris: like i sayd try to reinstall it again
failshell has joined #ruby
AlSquirrel has joined #ruby
LexicalScope has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
tjad_ has quit [Ping timeout: 272 seconds]
Gonzih has quit [Read error: Connection reset by peer]
AlSquirikou has joined #ruby
AlSquirrel has quit [Read error: Connection reset by peer]
ambushsabre has joined #ruby
julweber has joined #ruby
Skylab has quit [Quit: Skylab]
myappleguy has quit [Ping timeout: 248 seconds]
<fris>
still same error
mercwithamouth has quit [Ping timeout: 252 seconds]
telpochyaotl has joined #ruby
cascalheira has joined #ruby
julweber has quit [Remote host closed the connection]
polaco_zZz is now known as polaco
emanuele has joined #ruby
<telpochyaotl>
Hi all, Is there any way I can make UnitTest load other tests (using require or other means) in a way that they are loaded in the order I want and not alphabetical?
bootcoder has quit [Quit: Konversation terminated!]
platzhirsch has joined #ruby
bootcoder has joined #ruby
<DouweM>
telpochyaotl: why would you want that?
TMM has quit [Ping timeout: 246 seconds]
sayan has quit [Ping timeout: 264 seconds]
blueOxigen has joined #ruby
kofno_ has quit [Ping timeout: 246 seconds]
<telpochyaotl>
DouweM: I'm really not doing unit testing, but functional testing and I need a certain order… I know you may say I should use a different tool. If that's the bottom of it, I'll do that then.
<Hanmac>
telpochyaotl: look for startup
sayan has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
amoli has quit [Ping timeout: 245 seconds]
julweber has joined #ruby
<olivier_bK>
i need some help because i really dont understand why i cant pass my variable to BackupMysql.rb
<telpochyaotl>
Hanmac: I guess you mean use the TestUnit startup method to setup whatever I need for my testcases and forget about running them in a certain order?
<havenwood>
bubu\a_: yeah, as you stated the problem i'd have done it that way ^ but i assume it is more complex?
<apeiros>
I assume out of ["node20", "node3"] you want "node3", not "node20"?
dagobah has quit [Remote host closed the connection]
<havenwood>
apeiros: good point
dhruvasagar has joined #ruby
pel_daniel has joined #ruby
Skylab has quit [Quit: Skylab]
<apeiros>
fuck, why am I so wasted? for the first time in months I've only had a ~6h workday…
<bubu\a_>
yes apeiros :)
sleepee has joined #ruby
wahben has joined #ruby
<apeiros>
bubu\a_: I do have a solution, but I'm interested in seeing yours first
<bubu\a_>
it's probably the lapse dude, stop for a day and your done! :)
<apeiros>
it might be the contact lenses too. I always get tired quickly when I wear them (which I rarely do)
jibi has joined #ruby
<wahben>
Hi all! I recently re-installed redmine on a new server and migrated our data. Now I'm a bit confused, I just want to find out what version of ruby it's using (I have both 1.9.1 and 1.9.3 installed). The service is running with thin server. Is there an easy way to check the version of ruby it's runnin?
timonv_ has quit [Remote host closed the connection]
<apeiros>
wahben: you've 1.9.1 installed? you should drop that version off your computer IMO…
<wahben>
apeiros: I'd love to, but I don't want redmine to stop working
Deciphered is now known as DecipheredAFK
<apeiros>
well, redmine iirc is a rails app - just throw a line into config/initializers/startup.rb to log the ruby version
inad922 has joined #ruby
<apeiros>
(startup.rb probably doesn't exist - just create it)
forced_request has quit [Remote host closed the connection]
<apeiros>
lessless: well, things like `cancelled_lifetime = [(vendor['vendor']['bookings'] * 0.25).floor, vendor['vendor']['cancelled']].max` are already an atrocity
jibi has joined #ruby
<apeiros>
so I don't really know why you care…
unRealElite has quit [Quit: This computer has gone to sleep]
<apeiros>
I'd make that vendor.cancelled_lifetime - classes ftw.
<canton7>
revenue = vendors_by_type('cpa').inject{ |s,x| s + revenue_stats.leads_for(x['vendor']['name'] } and so forth
aryaching has quit []
RaCx has joined #ruby
N00D is now known as zz_N00D
khoury has quit [Read error: Connection reset by peer]
<apeiros>
and then summarizing wouldn't be that ugly either…
BigBlueBacon has quit [Ping timeout: 246 seconds]
liamkeil1 has quit [Ping timeout: 264 seconds]
<lessless>
apeiros, because of they are not expressive?
failshell has quit []
<apeiros>
o0
<apeiros>
lessless: really, make vendor['vendor'] a proper class.
<lessless>
ah, yeah
<apeiros>
if you really want, move summarizing into its own class.
<apeiros>
(that's what I did - I use the same Summarizer class for all tables - but I only need average, rank and sum in my summaries)
_Andres has quit [Read error: Connection reset by peer]
<lessless>
cool
nhhagen has joined #ruby
aryaching has joined #ruby
<lessless>
definitely this is truly ideolgically correct approach
pleal has quit [Remote host closed the connection]
javax has joined #ruby
<rbert2>
hi all, i have a question. i have a ruby script which has command line args which are parsed via the optparse class and I also want to grab piped data from stdin via argf. this seems to be causing problems because argf is trying to use the command line args as files.
vlad_sta_ has quit [Remote host closed the connection]
<rbert2>
is there a way to force argf to only read from stdin even though there are command line params listed in argv?
riotbit has joined #ruby
jkhwan has joined #ruby
St_Marx has quit [Ping timeout: 245 seconds]
simplyaubs has joined #ruby
RaCx has quit [Ping timeout: 240 seconds]
Jdubs has quit [Remote host closed the connection]
St_Marx has joined #ruby
MrZYX|off is now known as MrZYX
mojjojo has joined #ruby
GoodTimes has quit [Ping timeout: 265 seconds]
BizarreCake has quit [Quit: Leaving]
<snkcld>
if im developing a gem, how do i specify that i want to load that gem, via a file path?
banister has joined #ruby
<bnagy>
rbert2: you have to clean ARGV when you're done with what you don't want
rdark has quit [Read error: Operation timed out]
<rbert2>
what method can i use to clean argv if you know offhand
heidi has joined #ruby
mercwithamouth has joined #ruby
<canton7>
snkcld, how odd. No, bundler doesn't care about gemspec files
<snkcld>
canton7: weird right?
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
<snkcld>
well, anyway, maybe i shouldnt have gone about doing what iwant to do that way
wildroman3 has joined #ruby
<snkcld>
i want to help develop this gem, so i figured i would modify the files where they are installed, and push up from there... lol. probably not the besti dea...
<snkcld>
but how does one go about developing a gem?
jhaals has joined #ruby
<snkcld>
should i just clone it to my homedir, for example, then `require '/home/me/neography/blah.rb' `
wildroman3 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<bnagy>
I usually install them
<jrobeson>
nobody requires absolute paths like that snkcld
<canton7>
you can ruby -C path/to/gem/lib yourfile.rb iirc, and then require 'blah.rb' in your file
simplyaubs has quit [Quit: simplyaubs]
<canton7>
ahem, no .rb
awestroke has quit [Remote host closed the connection]
rbert2 has quit [Quit: leaving]
larssmit has quit [Quit: Leaving.]
Hanmac1 is now known as Hanmac
<snkcld>
hmm, canton7 , so switch the cwd of ruby to the location of the gem?