eykosioux has quit [Remote host closed the connection]
timkohrumel has quit [Remote host closed the connection]
jonathanwallace has quit [Quit: WeeChat 0.4.0]
jonathanwallace has joined #ruby
hiyakashi has quit [Quit: お前は知りすぎた]
nomenkun has joined #ruby
mmitchell has quit [Remote host closed the connection]
brunoro has joined #ruby
slainer68 has joined #ruby
locriani has quit [Remote host closed the connection]
Raydiation has left #ruby [#ruby]
foo_ has quit [Quit: leaving]
locriani has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
Ortuna has joined #ruby
tockitj_ has quit [Ping timeout: 256 seconds]
emmanuelux has quit [Quit: emmanuelux]
DonRichie has quit [Ping timeout: 256 seconds]
locriani has quit [Ping timeout: 240 seconds]
DonRichie has joined #ruby
ner0x has joined #ruby
tommyvyo has joined #ruby
jamesfung14 has joined #ruby
prk has quit [Remote host closed the connection]
johnrlive has joined #ruby
hidalgo has quit [Remote host closed the connection]
jamesaxl has quit [Ping timeout: 276 seconds]
tommyvyo has quit [Client Quit]
johnrlive has quit [Remote host closed the connection]
ndngvr has joined #ruby
<RiftyMcF3arless>
everybody, quick question: chef or puppet, in your opinion? summary of why, too, if you could.
slainer68 has quit [Ping timeout: 248 seconds]
<joshu>
is it ok to write if else if statements or should i write just if statements when the conditions need to be specified?
mrsolo has quit [Quit: Leaving]
ffranz has quit [Quit: Leaving]
<RiftyMcF3arless>
joshu: depends what you're doing
codesoda has quit [Remote host closed the connection]
Olipro has quit [Remote host closed the connection]
<joshu>
RiftyMcF3arless i'm writing a ruby script to parse email and the email comes in 4 specific types…i need to determine what type to know how to process it
<RiftyMcF3arless>
well, there are so many paths you might take. im not even sure i understand your question
<RiftyMcF3arless>
i would probably do if this == 'that', elsif this == 'otherthat', etc, else, end
zastern has quit [Remote host closed the connection]
<joshu>
ok that's what i was thinking but wasn't sure whether to do it like that or should if this == that …… if this == notthat etc
LaPetiteFromage has quit [Quit: LaPetiteFromage]
robottinosino has quit [Quit: WeeChat 0.4.0]
<Xeago>
RiftyMcF3arless: puppet unless you have 20 different server types, with more than 200 servers
<Xeago>
puppet is just easier
tommyvyo has joined #ruby
<Xeago>
joshu: also consider a switchcase
<joshu>
the first condition is the TO header, the second condition is FROM header && Subject.. RiftyMcF3arless to provide some more detail
lushious has quit [Ping timeout: 252 seconds]
<RiftyMcF3arless>
Xeago: thanks for the input. i've been reading up on chef all evening, and i really like its style, but i'll read into puppet more as well
arubin has joined #ruby
<Xeago>
RiftyMcF3arless: chef is bigger
<Xeago>
asin, it can do more
<Xeago>
but it also forces you through more
jlast has quit [Remote host closed the connection]
<RiftyMcF3arless>
Xeago: that's good, for scalability, as i'm learning this to do work for a client
<RiftyMcF3arless>
and he already uses chef
<Xeago>
then stick with chef
<Xeago>
it is a fine piece of tooling
<RiftyMcF3arless>
Xeago: also love a challenge ;)
GeissT has joined #ruby
<RiftyMcF3arless>
it looks amazing
idkazuma has quit [Remote host closed the connection]
<RiftyMcF3arless>
joshu: i think your best bet is to do if, elsif, elsif, elsif, else "something worng" end
<RiftyMcF3arless>
etc
<joshu>
RiftyMcF3arless Xeago interesting topic cause i'll be diving into that shortly as well
w|t has joined #ruby
<RiftyMcF3arless>
joshu: good luck :D
<Xeago>
btw, docker :)
<Xeago>
docker.io
<joshu>
hehe thanks. ok I'll do it like that RiftyMcF3arless
mixel has quit [Quit: mixel]
kornnflake_ has quit [Read error: Operation timed out]
Nuck has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 256 seconds]
tealmage has quit [Remote host closed the connection]
Nuck has joined #ruby
<joshu>
RiftyMcF3arless how are you going to use chef/ puppet? cloud servers? linux only?
<havenwood>
joshu: Are you matching them against regex? If so, how bout a case statement with regexes?
<RiftyMcF3arless>
Xeago: docker lookin cool, what do you think of it?
Nisstyre-laptop has quit [Quit: Leaving]
<RiftyMcF3arless>
joshu: not even sure to be honest, it's all for a client
<RiftyMcF3arless>
dunno what his production server's running on
<RiftyMcF3arless>
my job is essentially to build him a cookbook for easier deployment
jimg_ has quit [Remote host closed the connection]
mootpointer has joined #ruby
w|t has quit [Client Quit]
lushious has joined #ruby
tylersmith has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 245 seconds]
<joshu>
havenwood the email addresses I need to match against and the subjects are one of 4 types always
<joshu>
very specific use case
<joshu>
RiftyMcF3arless cool
emergion has quit [Quit: Computer has gone to sleep.]
io_syl has joined #ruby
w|t has joined #ruby
wargasm has joined #ruby
nezumi has quit [Ping timeout: 245 seconds]
jamie_ca_ has joined #ruby
jamie_ca_ has quit [Client Quit]
zodiak has joined #ruby
emergion has joined #ruby
tommyvyo has quit [Quit:]
tjbiddle_ has joined #ruby
DanKnox_away is now known as DanKnox
emergion has quit [Client Quit]
codemonkey010101 has joined #ruby
jnoob22 has joined #ruby
m_3 has quit [Remote host closed the connection]
buscon has joined #ruby
tjbiddle has quit [Ping timeout: 245 seconds]
hogeo has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
machuga is now known as machuga|away
kofno has joined #ruby
tjbiddle_ has quit [Ping timeout: 245 seconds]
wargasm1 has joined #ruby
Spooner has quit [Remote host closed the connection]
atno has quit [Ping timeout: 256 seconds]
wargasm has quit [Ping timeout: 252 seconds]
osvico has joined #ruby
devtro_ has quit [Quit: devtro_]
Dummies_freelanc has quit [Quit: Leaving.]
nga4 has quit [Read error: Operation timed out]
BonSequitur has quit [Ping timeout: 252 seconds]
johnrlive has joined #ruby
BonSequitur has joined #ruby
nlv has joined #ruby
brianpWins has quit [Quit: brianpWins]
idkazuma has joined #ruby
gr4yscale has quit [Quit: Computer has gone to sleep.]
m_3 has joined #ruby
<joshu>
do you guys have a preference for using a yml config file versus a .env file to keep specific variables private?
Proshot has quit [Quit: Leaving]
P1RATEZ has quit [Ping timeout: 240 seconds]
pskosinski has quit [Quit: pskosinski]
cj3kim has joined #ruby
bradhe_ has quit [Remote host closed the connection]
johnrlive has quit [Ping timeout: 252 seconds]
brian_000__ has joined #ruby
mosez has quit [Ping timeout: 260 seconds]
mosez has joined #ruby
d11wtq has joined #ruby
benlieb has quit [Quit: benlieb]
buscon has quit [Remote host closed the connection]
russfrank has quit [Remote host closed the connection]
brian_000_ has quit [Ping timeout: 276 seconds]
cj3kim has quit [Ping timeout: 248 seconds]
johnrlive has joined #ruby
gommo has quit [Remote host closed the connection]
DanKnox is now known as DanKnox_away
kil0byte has joined #ruby
mmitchell has joined #ruby
gommo has joined #ruby
yshh has joined #ruby
atno has joined #ruby
fschuindt has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
c0rn has quit [Quit: Computer has gone to sleep.]
gommo has quit [Ping timeout: 256 seconds]
pcarrier_ has joined #ruby
nomenkun has joined #ruby
Collin_ has quit [Ping timeout: 248 seconds]
texasmynsted has left #ruby [#ruby]
dhruvasagar has joined #ruby
lethan has joined #ruby
mosez has quit [Read error: Operation timed out]
mklappstuhl has quit [Remote host closed the connection]
atno has quit [Ping timeout: 246 seconds]
brianpWins has joined #ruby
DrCode has quit [Remote host closed the connection]
DrCode has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
locriani has joined #ruby
twoism has quit [Remote host closed the connection]
lethan has quit [Remote host closed the connection]
lethan has joined #ruby
mklappstuhl has joined #ruby
lyanchih has joined #ruby
pkrzywicki_ has quit [Ping timeout: 245 seconds]
mosez has joined #ruby
locriani has quit [Ping timeout: 260 seconds]
mmitchell has quit [Remote host closed the connection]
dankest has quit [Quit: Leaving...]
Michae___ has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
<wargasm1>
can anyone provide browser extension installs?
<wargasm1>
lots of $ to be made.
ravster has left #ruby [#ruby]
Rumsteak_ has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
Rumsteak has quit [Ping timeout: 252 seconds]
Rumsteak_ is now known as Rumsteak
Michae___ has quit [Remote host closed the connection]
marcdel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Michae___ has joined #ruby
dhruvasagar has joined #ruby
tealmage has quit [Ping timeout: 256 seconds]
jbueza has left #ruby [#ruby]
tommyvyo has joined #ruby
brian_000__ has quit [Quit: Leaving]
brianherman has joined #ruby
brunoro has quit [Read error: Connection reset by peer]
codemonkey010101 has quit [Remote host closed the connection]
nlv has quit [Remote host closed the connection]
Michae___ has quit [Remote host closed the connection]
moos3 has quit [Quit: Computer has gone to sleep.]
Michae___ has joined #ruby
moos3 has joined #ruby
codemonkey010101 has joined #ruby
atno has quit [Ping timeout: 248 seconds]
tjbiddle has joined #ruby
Cooler__off has quit [Remote host closed the connection]
chrisja has quit [Quit: leaving]
rupee has joined #ruby
tjbiddle_ has joined #ruby
nlv has joined #ruby
jimg has joined #ruby
rupee has quit [Client Quit]
lyanchih has quit [Quit: lyanchih]
<RiftyMcF3arless>
anybody know about specifying a column type using the Sequel gem that doesnt (seem to) have an option? i need to set a column to 'LONGBLOB', as 'BLOB' won't fit all my data. other ideas are welcome, too.
d2dchat has joined #ruby
mockra has quit [Remote host closed the connection]
heftig has quit [Ping timeout: 245 seconds]
tjbiddle has quit [Ping timeout: 264 seconds]
tjbiddle_ is now known as tjbiddle
dpatel has quit [Quit: dpatel]
<RiftyMcF3arless>
in fact, it's only a MEDIUMBLOB i need
<RiftyMcF3arless>
but i can't figure out how to do this
pipework has quit [Remote host closed the connection]
jkline has quit [Quit: jkline]
jimg has quit [Ping timeout: 245 seconds]
<RiftyMcF3arless>
oops -- think i found the answer. thanks anyway, guys. (for those curious, it is the :size option, :size=>:medium).
tommyvyo has quit [Quit:]
brianpWins has quit [Quit: brianpWins]
apok has quit [Quit: apok]
brian_000_ has joined #ruby
brian_000_ has quit [Client Quit]
tjbiddle has quit [Quit: tjbiddle]
brian_000_ has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
brian_000_ has quit [Client Quit]
undersc0re97 has quit [Quit: WeeChat 0.4.0]
dhruvasagar has quit [Ping timeout: 246 seconds]
banister`shop is now known as banister`sleep
ttt has joined #ruby
kil0byte has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
Michae___ has quit [Remote host closed the connection]
Michae___ has joined #ruby
AndChat| has joined #ruby
Michae___ has quit [Remote host closed the connection]
Ortuna has joined #ruby
gommo has joined #ruby
pitzips has quit [Ping timeout: 264 seconds]
johnrlive has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
rickruby has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has quit [Ping timeout: 245 seconds]
graydot has joined #ruby
Michae___ has joined #ruby
Rumsteak has quit [Quit: Rumsteak]
splittingred has joined #ruby
Hanmac2 has quit [Ping timeout: 276 seconds]
BSaboia has joined #ruby
gommo has quit [Remote host closed the connection]
Domon has joined #ruby
gommo has joined #ruby
cj3kim has joined #ruby
tylersmith has joined #ruby
w|t has quit [Quit: Computer has gone to sleep.]
robbyoconnor has joined #ruby
<chiel>
in a ruby project (sinatra specifically, if it matters), is there any convention on where the source files for frontend code should go?
w|t has joined #ruby
<chiel>
basically i will have some scss source files, so i'd like to have those output into ./public... just curious if there is any convention about source files
chile_andes has joined #ruby
bradhe has joined #ruby
Xeago has quit [Remote host closed the connection]
ttt_ has joined #ruby
Vivekananda has quit [Remote host closed the connection]
nomenkun has joined #ruby
ttt has quit [Ping timeout: 276 seconds]
Michae___ has quit [Remote host closed the connection]
zeade has joined #ruby
Michae___ has joined #ruby
w|t has quit [Quit: Computer has gone to sleep.]
nwertman has joined #ruby
pevjan has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 256 seconds]
nomenkun has quit [Ping timeout: 276 seconds]
huoxito has joined #ruby
guiocavalcanti has joined #ruby
pevjan has joined #ruby
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
graydot has quit [Quit: graydot]
undersc0re97 has joined #ruby
robustus has quit [Ping timeout: 248 seconds]
codemonkey010101 has quit [Remote host closed the connection]
pcarrier_ has quit [Ping timeout: 240 seconds]
Michae___ has quit [Read error: Connection reset by peer]
zeade has quit [Quit: Leaving.]
Michae___ has joined #ruby
Michae___ has quit [Remote host closed the connection]
chrishunt has quit [Quit: ZzZzZz...]
Michael_ has joined #ruby
robustus has joined #ruby
pcarrier_ has joined #ruby
chrishunt has joined #ruby
ariedler has joined #ruby
chile_andes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Michael_ has quit [Remote host closed the connection]
Michael_ has joined #ruby
Michael_ has quit [Remote host closed the connection]
greenarrow has quit [Quit: IRC is just multiplayer notepad.]
Astral_ has joined #ruby
greenarrow has joined #ruby
Michael_ has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
juco has quit []
johnrlive has joined #ruby
chile_andes has joined #ruby
tealmage has joined #ruby
baba has joined #ruby
megha has quit [Ping timeout: 248 seconds]
ner0x has quit [Quit: Leaving]
Astralum has quit [Ping timeout: 256 seconds]
RiftyMcF3arless has quit [Ping timeout: 256 seconds]
Gooder has joined #ruby
v0n has joined #ruby
BSaboia has quit [Ping timeout: 245 seconds]
baba has quit [Ping timeout: 260 seconds]
brunoro has joined #ruby
roadt has quit [Ping timeout: 248 seconds]
krz has joined #ruby
brianherman has quit [Read error: Connection reset by peer]
pevjan has quit [Remote host closed the connection]
gommo_ has joined #ruby
Michael_ has quit [Remote host closed the connection]
robert_ has quit [Ping timeout: 256 seconds]
baba has joined #ruby
gommo has quit [Ping timeout: 256 seconds]
machuga|away is now known as machuga
dhruvasagar has quit [Ping timeout: 276 seconds]
RiftyMcF3arless has joined #ruby
dhruvasagar has joined #ruby
rgrinberg has quit [Ping timeout: 276 seconds]
lethan has quit [Remote host closed the connection]
marcdel_ has joined #ruby
orangerobot has joined #ruby
machuga is now known as machuga|away
tealmage has quit [Remote host closed the connection]
C0deMaver1ck has quit [Ping timeout: 245 seconds]
arya has quit [Ping timeout: 248 seconds]
C0deMaver1ck has joined #ruby
jwang has quit [Quit: Leaving]
C0deMaver1ck is now known as Guest60076
d2dchat has quit [Remote host closed the connection]
arya has joined #ruby
jamesfung14 has quit [Ping timeout: 248 seconds]
elkclone has joined #ruby
tomzx_mac has quit [Ping timeout: 256 seconds]
robbyoconnor has quit [Ping timeout: 245 seconds]
ariedler has quit [Remote host closed the connection]
nlv has quit [Remote host closed the connection]
locriani has joined #ruby
w|t has joined #ruby
travisjeffery has joined #ruby
dankest has joined #ruby
peterhu has joined #ruby
wargasm1 has quit [Ping timeout: 252 seconds]
travisjeffery has quit [Read error: Connection reset by peer]
locriani has quit [Ping timeout: 248 seconds]
kobain has quit [Quit: l'unica verità.. è la morte stessa!]
bigmac has joined #ruby
_cheney3 has joined #ruby
bubblehead has quit [Remote host closed the connection]
bubblehead has joined #ruby
nomenkun has joined #ruby
LucidDreamZzZz has joined #ruby
ry4nn_ has joined #ruby
chile_andes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nomenkun has quit [Remote host closed the connection]
mogsy has quit [Read error: Connection reset by peer]
Dummies_freelanc has joined #ruby
undersc0re97 has quit [Quit: Leaving]
sayan has joined #ruby
w|t has quit [Quit: Computer has gone to sleep.]
mogsy has joined #ruby
hamakn has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
SAUCYSALAMANDER has quit [Read error: Connection reset by peer]
SAUCYSALAMANDER has joined #ruby
davidboy has quit [Quit: Connection closed for inactivity]
mattbl has quit [Ping timeout: 245 seconds]
sami has joined #ruby
bradhe has quit [Remote host closed the connection]
ayaz has joined #ruby
cj3kim has quit [Remote host closed the connection]
mattbl has joined #ruby
sayan has quit [Ping timeout: 252 seconds]
noop has joined #ruby
corehook has quit [Ping timeout: 245 seconds]
noop has quit [Read error: Connection reset by peer]
noop has joined #ruby
xpen has joined #ruby
LucidDreamZzZ has joined #ruby
arya has quit [Ping timeout: 248 seconds]
LucidDreamZzZz has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
arya has joined #ruby
LucidDreamZzZz has joined #ruby
sayan has joined #ruby
jprovazn has joined #ruby
corehook has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
LucidDreamZzZ has quit [Ping timeout: 248 seconds]
devoldmx has joined #ruby
apeiros has joined #ruby
phipes has quit [Quit: phipes]
devoldmx has quit [Client Quit]
phipes has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
danslo has quit [Quit: danslo]
sleetdrop has joined #ruby
phipes has quit [Quit: phipes]
hamed_r has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
bradhe has joined #ruby
rakl has quit [Quit: sleeping]
tonini has quit [Ping timeout: 248 seconds]
daniel_hinojosa has quit [Quit: Leaving.]
twoism has quit [Remote host closed the connection]
andikr has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
nomenkun has joined #ruby
arya has quit [Ping timeout: 248 seconds]
teclator has quit [Read error: Operation timed out]
tjbiddle_ has joined #ruby
pduin has joined #ruby
tjbiddle_ has quit [Client Quit]
tjbiddle has quit [Ping timeout: 245 seconds]
banister`sleep has quit [Remote host closed the connection]
unstable has joined #ruby
<unstable>
If I generate a new access token for an oauth system, will it be significantly slower than if I saved the token and reused it forever? (I'm talking about the yelp api). My code is here: http://pastie.org/7914761
AlHafoudh has quit [Quit: Computer has gone to sleep.]
threesome has quit [Ping timeout: 260 seconds]
ksmth has joined #ruby
predator217 has quit [Ping timeout: 256 seconds]
awc737 has quit [Read error: Operation timed out]
predator117 has joined #ruby
dhruvasagar has joined #ruby
Gooder` has joined #ruby
Gooder has quit [Ping timeout: 245 seconds]
girija has quit [Remote host closed the connection]
rafacv has quit [Remote host closed the connection]
generalissimo has joined #ruby
devoldmx has joined #ruby
girija has joined #ruby
Animawish has quit [Quit: Animawish]
tylersmith has quit [Remote host closed the connection]
Grognor has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
ezotrank has joined #ruby
mattbl has joined #ruby
aganov has joined #ruby
tonini has joined #ruby
generalissimo has quit [Remote host closed the connection]
devoldmx has quit [Quit: Bye]
devoldmx has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
tylersmith has quit [Ping timeout: 246 seconds]
gommo_ has joined #ruby
bigkevmcd has joined #ruby
aaronmacy has quit [Quit: Leaving.]
mafolz has joined #ruby
gommo has quit [Ping timeout: 256 seconds]
sideshowcoder has quit [Read error: Operation timed out]
nignaztic has quit [Ping timeout: 252 seconds]
arietis has joined #ruby
huoxito has quit [Quit: Leaving]
tockitj_ has joined #ruby
sideshowcoder has joined #ruby
freerobby has joined #ruby
palyboy has quit []
cj3kim has joined #ruby
brtdv has joined #ruby
brtdv has quit [Read error: Connection reset by peer]
gommo_ has quit [Remote host closed the connection]
yannis has quit [Quit: yannis]
gommo has joined #ruby
devdazed has quit [Ping timeout: 240 seconds]
gommo has quit [Read error: Connection reset by peer]
gommo has joined #ruby
persand has joined #ruby
nomenkun_ has joined #ruby
cj3kim has quit [Ping timeout: 245 seconds]
ilpuccio has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
nomenkun has quit [Ping timeout: 256 seconds]
w|t has joined #ruby
timonv has joined #ruby
pevjan has quit [Remote host closed the connection]
altamic has joined #ruby
altamic has quit [Changing host]
altamic has joined #ruby
teclator has joined #ruby
AgentWillyWonka has joined #ruby
monkegjinni has joined #ruby
mklappstuhl has joined #ruby
nlv has quit [Remote host closed the connection]
schaerli has joined #ruby
devdazed has joined #ruby
mootpointer has quit [Ping timeout: 252 seconds]
saarinen has quit [Quit: saarinen]
mootpointer has joined #ruby
tibi has quit [Read error: Operation timed out]
whowantstolivefo has joined #ruby
k610 has joined #ruby
monkegjinni has quit [Remote host closed the connection]
ninegrid_ has quit [Quit: brb]
darkapex_ is now known as darkapex
darkapex has quit [Changing host]
darkapex has joined #ruby
marr has joined #ruby
bradhe has joined #ruby
threesome has joined #ruby
marwinis1 is now known as marwin
marwin is now known as marwinism
prk has quit [Remote host closed the connection]
alexmreis has joined #ruby
Coffers has joined #ruby
monkegjinni has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
ksmth has quit []
r0bglees0n has quit [Ping timeout: 245 seconds]
alexmreis has left #ruby [#ruby]
ninegrid has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
ezotrank- has joined #ruby
assurbanipal has joined #ruby
ezotrank- has quit [Client Quit]
daniel_- has joined #ruby
freerobby has joined #ruby
ezotrank has quit [Ping timeout: 252 seconds]
bigkevmcd has quit [Remote host closed the connection]
blaxter has joined #ruby
bigkevmcd has joined #ruby
elaptics`away is now known as elaptics
freerobby has quit [Ping timeout: 252 seconds]
backjlack has quit [Remote host closed the connection]
tockitj_ is now known as tockitj
tockitj has quit [Changing host]
tockitj has joined #ruby
LennyLinux has joined #ruby
w|t has quit [Quit: Computer has gone to sleep.]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
davout has joined #ruby
rdark has joined #ruby
jbpros has joined #ruby
buscon has joined #ruby
afd__ has joined #ruby
troessner has joined #ruby
bricker`1A has joined #ruby
slippyd has quit [Quit: slippyd]
niceguyjames has joined #ruby
w|t has joined #ruby
mattbl has joined #ruby
afd___ has joined #ruby
bricker`LA has quit [Ping timeout: 256 seconds]
yashshah has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
noname001 has joined #ruby
atno has joined #ruby
Kar- has joined #ruby
senayar has joined #ruby
monkegjinni has joined #ruby
yannis has joined #ruby
assurbanipal has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
monkegjinni has quit [Remote host closed the connection]
marcdel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arturaz has joined #ruby
jgrevich has quit [Remote host closed the connection]
codesoda has quit [Remote host closed the connection]
Proshot has joined #ruby
monkegjinni has joined #ruby
Hobogrammer_ has joined #ruby
afd___ has quit [Remote host closed the connection]
afd__ is now known as tibi
clocKwize has joined #ruby
ephemerian has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
Silent__ has quit [Ping timeout: 252 seconds]
monkegjinni has joined #ruby
yannis has quit [Quit: Bye!]
Alamo777_ has quit [Quit: Leaving]
Alina-malina has joined #ruby
julian-delphiki has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
sayan has quit [Read error: Connection reset by peer]
gregorg_taf has quit [Changing host]
gregorg_taf has joined #ruby
gregorg_taf is now known as gregorg
rickruby has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 245 seconds]
robbyoconnor has joined #ruby
Neomex has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Remote host closed the connection]
Neomex has quit [Client Quit]
darkapex has left #ruby ["WeeChat 0.4.0"]
darkapex has joined #ruby
camilasan has joined #ruby
InFlames has quit [Quit: This computer has gone to sleep]
ghr has joined #ruby
timmow has joined #ruby
monkegjinni has joined #ruby
nomenkun_ has quit [Remote host closed the connection]
slainer68 has joined #ruby
backjlack has joined #ruby
oxnard_ has joined #ruby
jbpros has quit [Quit: jbpros]
tonini has quit [Quit: Lost terminal]
Gu_______ has joined #ruby
tonini has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
tvw has joined #ruby
monkegjinni has joined #ruby
Loaft has joined #ruby
jamesaxl has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
slainer68 has quit [Remote host closed the connection]
monkegjinni has joined #ruby
nomenkun has joined #ruby
slainer68 has joined #ruby
nomenkun has quit [Remote host closed the connection]
bradhe has joined #ruby
lewix has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
monkegjinni has joined #ruby
w|t has quit [Quit: Computer has gone to sleep.]
krombr has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
Azulinho has joined #ruby
Grievre has joined #ruby
<Grievre>
So I can't for the life of me figure out how to reference a method
<Grievre>
like every attempt at doing so just calls the method and gives me its output
KTMBoID has quit [Remote host closed the connection]
Bosox20051 has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 264 seconds]
senayar has joined #ruby
hamed_r has quit [Quit: Leaving]
zeel has joined #ruby
maetthew- is now known as maetthew
zeeraw has joined #ruby
mklappstuhl has joined #ruby
oxnard_ has quit [Quit: This computer has gone to sleep]
Guest11598 has quit [Changing host]
Guest11598 has joined #ruby
Guest11598 is now known as z
cbreeze has joined #ruby
InFlames has joined #ruby
bradhe has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
Nuck has quit [Read error: Connection reset by peer]
BonSequitur has quit [Remote host closed the connection]
tonini has quit [Ping timeout: 248 seconds]
fermion has quit [Quit: Computer has gone to sleep.]
fmcgeough has quit [Quit: fmcgeough]
Domon has quit [Remote host closed the connection]
persand has quit [Quit: persand]
Nuck has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
braincrash has quit [Quit: bye bye]
gadgetoid has quit [Ping timeout: 252 seconds]
lkba has joined #ruby
skattyadz has joined #ruby
braincrash has joined #ruby
jdripper has joined #ruby
swex_ has quit [Ping timeout: 245 seconds]
gadgetoid has joined #ruby
swex has joined #ruby
krombr has quit [Remote host closed the connection]
buibex has joined #ruby
freerobby has joined #ruby
lolmaus has joined #ruby
d11wtq has joined #ruby
katsrc has quit [Quit: leaving]
Raboo has joined #ruby
<lolmaus>
When making complicated DB requests is too expensive, you do calculations when creating new DB entries and save the results of those calculations together with the entries. How is this technique called?
swex_ has joined #ruby
swex has quit [Ping timeout: 245 seconds]
<hoelzro>
sounds like a poor-man's materialized view
mklappstuhl has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 248 seconds]
<lolmaus>
hoelzro, some kind of caching maybe?
<hoelzro>
hmm
<hoelzro>
I dunno
<hoelzro>
I just know that materialized views are what that's called when the DB does it for you
jdripper has quit [Ping timeout: 246 seconds]
<lolmaus>
hoelzro, and when you do it in the app?
<hoelzro>
see, I don't know what that's called
<hoelzro>
other than "poor-man's materialized views" ;)
<lolmaus>
Let's say i want to dispay a number of pages that have at least 50 comments by people with at least 200 karma. Instead of running an expensive query each time a page is loaded, i store an integer value in the db. Whenever a comment is posted, i run a less expensive check to see whether this one article has reached the value (if it hasn't alreadY). If the check is positive, i increment the integer.
<lolmaus>
Is this "poor man's materialized view"?
swex has joined #ruby
enriclluelles has joined #ruby
<hoelzro>
sounds about right
mattbl has quit [Quit: This computer has gone to sleep]
baba has quit [Quit: WeeChat 0.4.0]
swex_ has quit [Ping timeout: 276 seconds]
nomenkun has quit [Ping timeout: 245 seconds]
Gooder`` has joined #ruby
helllen_ has joined #ruby
monkegjinni has joined #ruby
Gooder` has quit [Ping timeout: 256 seconds]
guiocavalcanti has quit [Remote host closed the connection]
arya has quit []
guiocavalcanti has joined #ruby
guiocavalcanti has quit [Ping timeout: 245 seconds]
Domon has joined #ruby
BSaboia has joined #ruby
Michael_ has joined #ruby
gauvoz has joined #ruby
DrCode has quit [Remote host closed the connection]
neataroni has quit [Ping timeout: 256 seconds]
kil0byte has quit [Remote host closed the connection]
Al_ has quit [Quit: Al_]
mklappstuhl has joined #ruby
monkegji_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Gu_______ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gauvoz has quit [Remote host closed the connection]
daniel_- has quit [Ping timeout: 252 seconds]
DrCode has joined #ruby
ntus1017 has joined #ruby
mercwithamouth has joined #ruby
Neomex has quit [Quit: Neomex]
ntus1017 has quit [Remote host closed the connection]
BSaboia has quit [Ping timeout: 245 seconds]
ntus1017 has joined #ruby
ntus1017 has quit [Remote host closed the connection]
ntus1017 has joined #ruby
freerobby has joined #ruby
Al_ has joined #ruby
_bart has quit [Read error: Connection reset by peer]
jnoob22 has quit [Remote host closed the connection]
jdripper has joined #ruby
neataroni has joined #ruby
lwgtik has joined #ruby
mattbl has joined #ruby
includex has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
camilasan has quit [Remote host closed the connection]
r0bglees0n has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
buibex has quit [Remote host closed the connection]
chase-work has joined #ruby
jprovazn has quit [Quit: Leaving]
fermion has joined #ruby
xpen has quit [Remote host closed the connection]
stnly_ has quit [Read error: Operation timed out]
monkegjinni has joined #ruby
monkegji_ has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
hems has quit [Quit: Leaving]
monkegjinni has quit [Read error: Connection reset by peer]
waxjar_ has quit [Ping timeout: 260 seconds]
sayan has joined #ruby
rking1 has quit [Ping timeout: 264 seconds]
monkegjinni has joined #ruby
thomasfedb has quit [Read error: Connection reset by peer]
ipalaus has joined #ruby
nomenkun has joined #ruby
cbreeze has quit [Quit: cbreeze]
buscon has joined #ruby
monkegjinni has quit [Remote host closed the connection]
bradhe has joined #ruby
Michael_ has quit [Remote host closed the connection]
thomasfedb has joined #ruby
thomasfedb has quit [Changing host]
thomasfedb has joined #ruby
buscon has quit [Remote host closed the connection]
Guest9074 is now known as jani
chichouw has joined #ruby
chichou has quit [Ping timeout: 276 seconds]
sayan has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 252 seconds]
ntus1017 has quit [Remote host closed the connection]
rgrinberg has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
machuga|away is now known as machuga
skattyadz has joined #ruby
chrishough has quit [Quit: chrishough]
monkegjinni has joined #ruby
jonathanwallace has joined #ruby
browndawg has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
sayan has joined #ruby
Spooner has joined #ruby
Hien has quit [Quit: "Update kernel"]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
Domon has quit [Remote host closed the connection]
bollen has joined #ruby
Hien has joined #ruby
camilasan has joined #ruby
monkegjinni has quit [Ping timeout: 245 seconds]
freerobby has quit [Ping timeout: 252 seconds]
dustint has joined #ruby
robottinosino has joined #ruby
fschuindt has joined #ruby
F__i__L has joined #ruby
<F__i__L>
hello
<hoelzro>
hi
tonini has joined #ruby
<F__i__L>
I am thinking to start learning a new language.. and I am between scala and ruby.. what is your opinion? :P
<hoelzro>
hmm
<hoelzro>
well, I would say learn both =)
<hoelzro>
I've been meaning to learn Scala myself
<hoelzro>
it's still on my TODO list somehwere
<F__i__L>
I don't think that I have so much free time :P
<hoelzro>
well, what's your reason for learning?
<hoelzro>
fun?
<hoelzro>
do you want to use the new language for something/
<F__i__L>
to find a job in about 1-2 years :P
<hoelzro>
heh
<hoelzro>
well, I think there are probably more Ruby jobs...at least right now
<hoelzro>
Scala is gaining some traction
<hoelzro>
and just because there are more Ruby jobs doesn't mean that those jobs are better
<hoelzro>
also, for any quality company, what language(s) you know shouldn't really matter
Matip has joined #ruby
guiocavalcanti has joined #ruby
rking1 has joined #ruby
<F__i__L>
well in adverts they say for instance knwoledge of ruby/ ruby on rails
<F__i__L>
or the say knowledge of scala is a really plus
<F__i__L>
:P
<F__i__L>
so I guess it would help
krz has quit [Quit: krz]
<hoelzro>
well, you should know *some* language
<hoelzro>
the more, the better
<hoelzro>
candidates with a more diverse background in programming languages tend to do better in interviews
<hoelzro>
at least, that's my experience
<F__i__L>
anyway honestly I prefer rubby but the only thing that worries me is that it is a bit slow and moreover it does not support good multithreading
monkegjinni has joined #ruby
<hoelzro>
it's not that slow
monkegjinni has quit [Remote host closed the connection]
<hoelzro>
and I think that the lacking of multicore stuff is overblown
<bnagy>
the concurrency thing is only a limitation of the 'standard' interpreter
<bnagy>
jruby and rubinius both have 'true' concurrency
<r0bglees0n>
MRI has it as well, when IO-bound or using subprocesses.
<r0bglees0n>
and MRI is concurrent
<r0bglees0n>
its just not always parallel
Mattix has quit [Ping timeout: 252 seconds]
<bnagy>
blah blah blah
daniel_- has joined #ruby
<r0bglees0n>
bnagy: well its true, MRI threads are concurrent, you're confusing parallelism.
<bnagy>
that's why I put 'true' in quotes, to save painstakingly lengthy anti-pendantic language
skattyadz has quit [Quit: skattyadz]
<bnagy>
and I'm not confusing anything
<bnagy>
I'm explaining things, which is not the same
<r0bglees0n>
okay, im not trying to defame you or anything, im just saying MRI threads really are concurrent if you go analyze the definition for concurrent programming.
<r0bglees0n>
and when they're IO-bound, the lock is released.
<bnagy>
I am just giving it as an example of what 99% of people understand the term to mean
skattyadz has joined #ruby
sailias has joined #ruby
<bnagy>
MRI does not do that
<r0bglees0n>
but it is not right. go ask rob pike for a definition instead :)
<bnagy>
I honestly don't care what whoever rob pike is thinks
<r0bglees0n>
you're being so hostile because you're afraid to be wrong
browndawg has quit [Quit: Leaving.]
<r0bglees0n>
well, thats your thing, im not going to put energy into it
<bnagy>
when I explain something to some guy that is confused about ruby concurrency, I use easy to understand terms
kofno has joined #ruby
<bnagy>
when it comes to definitions, though, I'd quite happily argue that any definition of 'true concurrency' that encompasses a GIL is anti-intuitive and stupid
thebastl has joined #ruby
jprovazn has joined #ruby
<r0bglees0n>
well, they're not real threads in the sense that they're concurrent and don't (always) run in parallel on MRI. MRI will release the lock and let threads run in parallel if they're IO bound and not hitting ruby code.
<r0bglees0n>
and there's also subprocesses if you want to hit more cores
<r0bglees0n>
but i agree it is suboptimal
<bnagy>
well, actually that's not my point - the GIL is there for good reasons, and I think scaling by process makes much more sense in most cases
<r0bglees0n>
yeah but i dont know if it is there for 'good reasons'
<bnagy>
well it makes C extensions possible
<r0bglees0n>
it makes them easier
<r0bglees0n>
i dont think it makes them possible
<bnagy>
yeah, but MUCH easier :)
<bnagy>
as in, you can't have full support without GIL afaik
<bnagy>
like, will work for some, but not all
<arturaz>
full support?
<r0bglees0n>
a lot of extensions would break and I don't think MRI is ready to do that but the trade off is that you lose the notion of threads in another (JVM) languages in a world going toward multi-core
clocKwize has quit [Quit: clocKwize]
<r0bglees0n>
MRI is trying to make it better for subprocesses with changes to its GC (CoW-friendly) but i dont think ppl are biting on subprocesses (generally).
<r0bglees0n>
threads are more popular
<bnagy>
yep
<bnagy>
cexts are free to thread out to their hearts' content though
<r0bglees0n>
but ruby code is not
<r0bglees0n>
so, thats not good
<bnagy>
right, but this is how python do numpy and stuff
<bnagy>
you just have a call block at the ruby / python level but thread at the native level
<r0bglees0n>
like Thread.new ? :)
<bnagy>
still possibly not as nice as 'real' threads, but for almost all use cases the same
<bnagy>
r0bglees0n: no, like true parallel computation
<r0bglees0n>
sure, but that's more or less how thread.new works because you pass a ruby block that's executed on a native thread
clocKwize has joined #ruby
bollen has quit [Quit: Page closed]
<bnagy>
but only one bytecode thread can run at a time
freerobby has joined #ruby
<r0bglees0n>
but are you suggesting writing a C extension that can spawn ruby blocks on native threads for you?
sailias has quit [Quit: Leaving.]
<bnagy>
no
<r0bglees0n>
so how does numpy work?
<bnagy>
I'm saying well written cexts for truly parallel sci-comp etc can use native threads
<r0bglees0n>
oh yeah sure
<bnagy>
like you say cthing.prime_factor( 23456789 )
lewix has quit [Remote host closed the connection]
<r0bglees0n>
I know eventmachine has its own thread pool
sayan has quit [Read error: Connection reset by peer]
<r0bglees0n>
but thats inaccessible to ruby
<bnagy>
right
Al_ has quit [Quit: Al_]
freerobby has quit [Ping timeout: 256 seconds]
eka has joined #ruby
sleetdrop has quit [Ping timeout: 256 seconds]
joonty has joined #ruby
<r0bglees0n>
i guess C has always been the go-to for when ruby doesnt cut it
danslo has joined #ruby
<r0bglees0n>
but ruby is a lot faster now, and could do more with threads.
guiocavalcanti has quit [Ping timeout: 245 seconds]
<r0bglees0n>
and if you want to hack the interpreter(at least MRI), its C
<r0bglees0n>
a lot of people have done that as well
<joonty>
r0bglees0n: MRI's threading still has the GIL
<bnagy>
I'm pretty much married to jruby now :/
<r0bglees0n>
joonty: im aware my friend, scroll up :)
<joonty>
r0bglees0n: so it's still only really useful when using IO
<bnagy>
so much of my stuff is jruby only that it doesn't make sense to worry about MRI anymore
<joonty>
ah just joined
<joonty>
lol
jbpros has joined #ruby
<joonty>
excuse me... :)
<r0bglees0n>
no worries
<r0bglees0n>
bnagy: im using rubinius
<bnagy>
does it support 64 bit windows?
<r0bglees0n>
nope
<bnagy>
sigh
<r0bglees0n>
i dont think it supports windows at all :(
fcofdezc has joined #ruby
<r0bglees0n>
there was work on a port
<bnagy>
not that it's a common requirement, but it's one I am stuck with
nomenkun_ has joined #ruby
<joonty>
has anyone had experience with rubinius and rails? particularly in production?
rgrinberg has quit [Ping timeout: 245 seconds]
<r0bglees0n>
nope
guiocavalcanti has joined #ruby
nomenkun_ has quit [Remote host closed the connection]
<fcofdezc>
nop
<r0bglees0n>
MRI at work, always. not much experimentation on that side.
<joonty>
yeh, same deal
nomenkun_ has joined #ruby
jamesaxl has joined #ruby
<joonty>
a truly multi-threaded ruby app server for rubinius would be ace
<F__i__L>
well what I hate about java and as a result scala is that there is little support for vim as most people use these heavy weighted IDEs so I guess I will go for ruby
<r0bglees0n>
it exists
<r0bglees0n>
a few of them exist
<r0bglees0n>
there's puma, & there's reel
<F__i__L>
also the built tools suck in java/scala
nomenkun has quit [Read error: Connection reset by peer]
Ortuna has joined #ruby
<joonty>
r0bglees0n: nice, never knew about those
<arturaz>
bnagy, jruby ftw :)
<F__i__L>
but I have to admit that scala is going to be the next java over the next years
<arturaz>
F__i__L, heh, lol. Ensime for scala?
<arturaz>
also what exactly sucks about build tools?
<XemsDoom>
is this a place to get support for ruby?
<r0bglees0n>
yeah
<joonty>
yup
<XemsDoom>
have some issues with installing redmine and their IRC channel is pretty dead :p
<joonty>
XemsDoom: shoot
<XemsDoom>
I updated my debian to 'wheezy' and it damaged somehow my redmine, I think at the end a sql-gem was not working right. Then I whiped it off and tried to reinstall ruby and everything else
<XemsDoom>
Now I am stuck with rake and rails not working probably
<joonty>
XemsDoom: as long as you haven't got anything else on the server using ruby, but then as you said you've already removed it once
<XemsDoom>
just saw in their table, didn't read it rightly they have 2.0 support
<XemsDoom>
I think grub is using ruby
<XemsDoom>
because I wasnt able to purge ruby, it automatically kept installing another version
monkegjinni has joined #ruby
<bnagy>
telemachus: yeah I don't use MRI, so I'm just summarising what I hear on here
<bnagy>
XemsDoom: it will probably keep a system ruby
monkegji_ has joined #ruby
nettoweb has joined #ruby
ttt_ has quit [Remote host closed the connection]
<joonty>
here's a question
<nettoweb>
hello guys, i'm trying to create a widget "related news"… but it's my first time creating something like this. must I start wth https://github.com/mbleigh/acts-as-taggable-on
<nettoweb>
?
<joonty>
is anyone here paid as a ruby programmer, but not in rails development?
ttt has joined #ruby
<bnagy>
yes?
<joonty>
bnagy: cool, that is all :)
monkegji_ has quit [Read error: Connection reset by peer]
monkegji_ has joined #ruby
<joonty>
do you use it for sys admin? or other fun things?
codemonkey010101 has joined #ruby
<joonty>
nettoweb: you might find rails specific help in #rubyonrails
monkegjinni has quit [Ping timeout: 248 seconds]
<nettoweb>
joonty: thanks
<joonty>
np
<bnagy>
joonty: finding bugs in software
<XemsDoom>
I am more of a java programmer, did anyone here switch from java to ruby?
freerobby has joined #ruby
<joonty>
bnagy: interesting
<ChristianS>
XemsDoom: i use java in my dayjob
<joonty>
all the rubyists I've come across are railsists
<bnagy>
XemsDoom: no, but you should check out jruby :P
chandankumar has joined #ruby
<bnagy>
if you know the java namespace you can use any native java stuff directly from ruby
<joonty>
XemsDoom: +1 for jruby
<canton7>
joonty, not me, and the same goes for a last a few others in here
<bnagy>
plus use java profiling tools and stuff
<telemachus>
nettoweb: or #railsbridge
flam_ has quit [Ping timeout: 246 seconds]
eph3meral has joined #ruby
sayan has joined #ruby
<eph3meral>
so I can't seem to retrieve normal/shell based environment variables the way that this script suggests
<eph3meral>
this script is using e.g. ENV['HOME'] for the home directory environment variable but it comes out blank
<eph3meral>
I must add HOME=$HOME ruby myscript.rb before it works
<bnagy>
probably there's just no env variable called HOME
<eph3meral>
there definitely is
<eph3meral>
if I `echo $HOME` on my bash command line
wargasm has joined #ruby
guiocavalcanti has joined #ruby
<eph3meral>
I get /home/eph3meral as expected
freerobby has quit [Ping timeout: 240 seconds]
<hoelzro>
eph3meral: so if you run ruby -e 'puts ENV["HOME"]', nothing is output?
<eph3meral>
hoelzro: let me check
<hoelzro>
eph3meral: that just means it could be a bash variable
<hoelzro>
check the output of env
<XemsDoom>
not having much luck here I must say
<joonty>
XemsDoom: still the same problem?
<XemsDoom>
yep
<eph3meral>
hmm weird
<eph3meral>
ok yeah I guess it is working
palyboy has joined #ruby
<bnagy>
:)
<eph3meral>
ahh this is a gem command
<hoelzro>
eph3meral: so then something in your script could be removing it
<eph3meral>
wonder if it's screwing the environment
jamesaxl has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
tonini has joined #ruby
mboers has joined #ruby
ramblex has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
<XemsDoom>
Im asking myself why it always fails to install the json gem
ramblex has quit [Client Quit]
monkegjinni has joined #ruby
ramblex has joined #ruby
<joonty>
the json gem possibly requires a C extension
jamesaxl has joined #ruby
<joonty>
which I've always thought is a little over the top, for one of the more simple syntaxes out there
ttt has quit [Read error: Connection reset by peer]
ttt has joined #ruby
<telemachus>
Ok, found my problem: the configure warnings are bullshit. Funny thing: I filed a but about this three months ago. They closed it saying "The warnings are wrong. Carry on." Fuck.
idkazuma has quit [Remote host closed the connection]
a_a_g has joined #ruby
slainer6_ has quit [Remote host closed the connection]
suporte85 has joined #ruby
<joonty>
lol
<joonty>
normally is the case
<joonty>
but you're getting closer
alexmreis has joined #ruby
slainer68 has joined #ruby
<joonty>
are they explanatory (yay) or bizarre (boo)
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
kil0byte has quit [Ping timeout: 264 seconds]
slainer6_ has joined #ruby
DonRichie has joined #ruby
<XemsDoom>
boo
<XemsDoom>
and suddenly it works
<XemsDoom>
magic
<XemsDoom>
facepalm
slainer68 has quit [Ping timeout: 256 seconds]
<XemsDoom>
software anyone
<XemsDoom>
I really appreciated your help joonty thank you a lot
<XemsDoom>
:)
nobitanobi has joined #ruby
<nobitanobi>
Hello! Do you guys suggest any framework for Desktop applications? I come from Rails development
rgrinberg1 is now known as rgrinberg
alexmreis has quit [Quit: Leaving.]
buibex has quit [Remote host closed the connection]
reactormonk has quit [Ping timeout: 264 seconds]
<eph3meral>
nobitanobi: Qt
alexmreis has joined #ruby
breakingthings has joined #ruby
<eph3meral>
nobitanobi: but really, in the modern world, there's not much of a reason to do that if you already are in the Rails world
<eph3meral>
nobitanobi: just up your JavaScript skills and build responsive UIs over the web
<nobitanobi>
eph3meral, right. Just wanted to see other Ruby frameworks :P
<cedric_b>
exit
buibex has joined #ruby
cedric_b has quit [Quit: leaving]
alexmreis has left #ruby [#ruby]
ewag has joined #ruby
katsrc has joined #ruby
<eph3meral>
nobitanobi: there aren't really any "desktop" "frameworks" "for ruby" per se
sailias has joined #ruby
ttt_ has quit [Remote host closed the connection]
<eph3meral>
nobitanobi: Qt has been around long since before ruby came around, but it has ruby bindings and they're quite nice
enriclluelles has joined #ruby
<eph3meral>
nobitanobi: though of course you could try your hand at Tcl/Tk
<nobitanobi>
eph3meral, thanks a lot for this info.
<eph3meral>
but again, that's not a ruby framework
Ortuna has quit [Quit: Computer has gone to sleep.]
<eph3meral>
Tcl is actually another programming language in and of itself
DaniG2k has joined #ruby
<DaniG2k>
guys im trying to match a regex and append the text to an array
<DaniG2k>
but when I try to do that, it's also returning the object
kofno has quit [Remote host closed the connection]
<nobitanobi>
DaniG2k, let's see your code
<eph3meral>
nobitanobi: I think you'd be better off investing time to learn BootstrapCSS plus Backbone/Angular/Ember
<nobitanobi>
!gist
<DaniG2k>
like #<MatchData "service_name=">
<eph3meral>
nobitanobi: it'll compliment the skill set you already have
monkegjinni has quit [Read error: Connection reset by peer]
<nobitanobi>
eph3meral, right. Ember sounds great.
<DaniG2k>
i just have matches << line.match(/^.*=/)
<eph3meral>
nobitanobi: I am a backbone guy
<eph3meral>
ember forces you into too many paradigms
<eph3meral>
I like the loose coupling of backbone
<DaniG2k>
nobitanobi: i just have matches << line.match(/^.*=/)
<nobitanobi>
I have tried Angular and Ember
<nobitanobi>
got tired of ember because of its lack of documentation
<nobitanobi>
but it seems they are changing that now
<eph3meral>
nobitanobi, give backbone a try, there are only two real detractions from backbone
monkegjinni has joined #ruby
<eph3meral>
nobitanobi: there aren't a ton of docs, and backbone can be verbose
toddWork_ has joined #ruby
cofin has joined #ruby
b0oh has joined #ruby
<eph3meral>
both of those problems are solved by A) realize that there's a reason there's not a ton of docs, because bacbone is very minimal and flexible and B) coffeescript and backbone were made to go together
enriclluelles has quit [Remote host closed the connection]
<nobitanobi>
eph3meral, will take a look at backbone
<eph3meral>
esp if you're on rails, you've got coffeescript by default in the asset pipeline
<nobitanobi>
yep, that's correct
<joonty>
XemsDoom: no problem
<eph3meral>
coffeescript solves a lot of the "verbosity" complains that people have about backbone
<nobitanobi>
eph3meral, I particularly don't like coffeescript
<eph3meral>
nobitanobi: I didn't either
<eph3meral>
until I tried it :)
<eph3meral>
I was like "why learn a new syntax"
<nobitanobi>
hehe
<nobitanobi>
yes
monkegjinni has quit [Read error: Connection reset by peer]
<eph3meral>
but it's the same reason to go to ruby over PHP
<DaniG2k>
it basically changes the object that its being called on, correct
jgarvey has joined #ruby
<DaniG2k>
?
<hoelzro>
yes
<DaniG2k>
got it
<DaniG2k>
thanks
<hoelzro>
that's the rule of thumb for ! methods
monkegjinni has quit [Read error: Connection reset by peer]
<DaniG2k>
awesome
alex__c2022 has joined #ruby
slainer6_ has quit [Ping timeout: 248 seconds]
monkegjinni has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
wallerdev has quit [Quit: wallerdev]
tommyvyo has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<joonty>
1
LaPetiteFromage has joined #ruby
XemsDoom has quit [Quit: Page closed]
<hoelzro>
2
cofin has quit [Quit: cofin]
<joonty>
hehe oops
buibex has joined #ruby
<ericwood>
irc is hard
buibex has quit [Remote host closed the connection]
<joonty>
yes it is
Akuma has joined #ruby
<joonty>
i'm using irssi, and I had a huge fail the other day
<joonty>
instead of /quit
<joonty>
i typed \quit
<joonty>
so everyone in the chat room saw:
<joonty>
\quit
jonathanwallace has quit [Quit: WeeChat 0.4.0]
axl_ has joined #ruby
Jackneill has quit [Ping timeout: 246 seconds]
johnmilton has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
jonathanwallace has joined #ruby
johnrliv_ has joined #ruby
johnrlive has quit [Read error: Operation timed out]
ffranz has joined #ruby
Jackneill has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
cofin has joined #ruby
HAKEON has joined #ruby
yashshah has joined #ruby
gaahrdner has quit [Remote host closed the connection]
bradhe has joined #ruby
johnrlive has joined #ruby
s00pcan has joined #ruby
helllen_ has quit [Ping timeout: 252 seconds]
johnrliv_ has quit [Read error: Operation timed out]
v0n has joined #ruby
buibex has joined #ruby
tk_ has joined #ruby
gaahrdne_ has joined #ruby
jtharris has joined #ruby
predator117 has quit [Ping timeout: 260 seconds]
bradhe has quit [Ping timeout: 264 seconds]
predator117 has joined #ruby
axl_ has quit [Ping timeout: 248 seconds]
<nobitanobi>
bye guys
nobitanobi has quit [Quit: Leaving]
generalissimo has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
kephra has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
t6d has joined #ruby
<kephra>
moin - i have two questions about rvm: is it possible to do a system wide installation as normal user (I'm a staff group member, so I can write in /usr/local/ without becoming root)
chrishunt has joined #ruby
<kephra>
and is it possible to give it a different path, e.g. /opt/ruby
failshell has joined #ruby
<apeiros>
kephra: I think you'd better ask that in #rvm
<kephra>
*ok*
robbyoconnor has joined #ruby
cheese1756_ has quit [Ping timeout: 245 seconds]
ravster has joined #ruby
<r0bglees0n>
kephra: rbenv/chruby+ruby-build can do all of that.
<kephra>
r0bglees0n, where does rbenv come from?
lolmaus has quit []
tealmage has joined #ruby
cheese1756 has joined #ruby
tealmage has quit [Remote host closed the connection]
* kephra
is not a ruby programmer - just an admin who has to install it
<ericwood>
rvm is an all-in-one solution, rbenv and chruby are meant to work together in more of a unix-style way
<r0bglees0n>
i think, as an admin, you'll appreciate rbenv/chruby more than rvm
<ericwood>
where each is just compact and does one thing well
arya has joined #ruby
<ericwood>
rvm doesn't work well in production :P
daniel_- has joined #ruby
<ericwood>
works great for dev, though!
<kephra>
*oh* thanks ericwood !
teclator has quit [Ping timeout: 248 seconds]
<ericwood>
no need to thank me
<ericwood>
just doing my job
<zeeraw>
rvm works fine in production, rbenv & chruby are non the less easier to deal with.
<ericwood>
well
browndawg has quit [Ping timeout: 245 seconds]
<ericwood>
iirc we have system ruby set up for production
helllen_ has joined #ruby
buibex has quit [Remote host closed the connection]
johnrlive has quit [Remote host closed the connection]
wallerdev has joined #ruby
interactionjaxsn has joined #ruby
alanp has quit [Ping timeout: 245 seconds]
<r0bglees0n>
I build from source on production
johchri has joined #ruby
persand has joined #ruby
<kephra>
r0bglees0n, this might be a sane alternative
persand has quit [Client Quit]
persand has joined #ruby
casheew has quit [Read error: Connection reset by peer]
justsee has quit [Ping timeout: 252 seconds]
casheew has joined #ruby
<kephra>
lets explain what I did so far: I installed a Debian wheezy, tried rails on wheezy, failed, removed rails, installed rails by gem, and run into the problem that debian ruby is to old for the application ;-(
braincrash has quit [Quit: bye bye]
jbpros has joined #ruby
<kephra>
so I installed the server again from scratch, installed a linux container for the ruby/rails - and now work within the container
<johchri>
use rvm to mange any versions of ruby
t6d has quit [Ping timeout: 248 seconds]
<johchri>
rvm.io
MrZYX|off is now known as MrZYX
t6d has joined #ruby
<havenwood>
kephra: There is a newer Ruby apt-get package: ruby1.9.1
ananthakumaran has quit [Quit: Leaving.]
<r0bglees0n>
oh god dont use that
<r0bglees0n>
1.9.1 was a disaster
<r0bglees0n>
never a production release
<havenwood>
r0bglees0n: Yeah, it is actually 1.9.3, silly package name.
<r0bglees0n>
ohhh
<r0bglees0n>
thats weird :)
LaPetiteFromage has quit [Quit: LaPetiteFromage]
El_loco has joined #ruby
danslo has joined #ruby
akells` has joined #ruby
ttt has joined #ruby
<havenwood>
r0bglees0n: Agreed!
<kephra>
well - debian just picked the wrong time for freeze, when it came to ruby/rails
<havenwood>
kephra: Building yourself and pointing correct environment at your build with chruby is a nice route.
<havenwood>
kephra: If you prefer shims to env vars, rbenv.
Spami_ has joined #ruby
sambao21 has joined #ruby
Spami has quit [Read error: Connection reset by peer]
<kephra>
my idea is to setup a complete new container, if the applications requires a newer ruby/rails next time
braincrash has joined #ruby
<kephra>
so i can run them in parallel, and switch by iptables
<havenwood>
r0bglees0n: Oooh, hadn't thought of the network aspect. Cool!
<Iszak>
I'm trying to build a simple GUI application, I've looked at shoes, is it a DSL? Feels like it. Also, don't like how its' not a rubygem, other suggestions?
workmad3 has quit [Ping timeout: 248 seconds]
<r0bglees0n>
Iszak: what os are you on?
<r0bglees0n>
Iszak: there are a lot of different options
akhet has quit [Remote host closed the connection]
<techminer>
Is there a limit to the number of objects that can be created in a Ruby Class? I have some code that is trying to create 40-50 thousand objects. The class is pretty simple, just three String attrs.
<havenwood>
Iszak: There are also wx or tk bindings.
<hoelzro>
techminer: I'm guessing you're limited only by memory
peta_ has joined #ruby
<techminer>
When I get to the end, I am not getting any data back from the Class. If I do a subset of all those objects, just a few hundred, the code works fine.
<hoelzro>
granted, from what I remember of Ruby internals, it uses a bit to track whether a value is an object or a Fixnum
guiocavalcanti has quit [Ping timeout: 256 seconds]
<hoelzro>
so on a 32-bit machine, that limit is 1 << 31 objects
<techminer>
hoelzro: I have 16GB of RAM on this 64 bit host.
<hoelzro>
techminer: then 40-50K objects should be no problem at all
Dummies_freelanc has quit [Ping timeout: 245 seconds]
nettoweb has quit [Quit: nettoweb]
lkba has quit [Quit: Bye]
<techminer>
hmmm….I can't figure out what's wrong then. My class is just three strings, mail, department, and servername. A majority of the objects have nil for a department. Let me put up a pastie and I'll show my code....
buscon has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
camilasan has joined #ruby
chrishunt has joined #ruby
tagrudev has quit [Remote host closed the connection]
teclator has joined #ruby
buscon has quit [Remote host closed the connection]
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
codecop has joined #ruby
spider-mario has joined #ruby
nettoweb has joined #ruby
bean has joined #ruby
nettoweb has quit [Client Quit]
krz has joined #ruby
ChrisBolton has joined #ruby
camilasan has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
<Iszak>
r0bglees0n havenwood I'm on OSX but the software will be running on a rasphberry pi
thebastl has quit [Read error: Operation timed out]
<techminer>
Here's my pastie… http://pastie.org/7916267 I can't figure out why limiting the set of accounts added to the class works, but removing those limits and trying to add all 50K objects to the class doesn't work.
chrishunt has quit [Read error: Connection reset by peer]
<apeiros>
techminer: ObjectSpace.each_object(Account) <-- DONT DO THIS
<apeiros>
ObjectSpace is for debugging purposes.
Jackneill has quit [Ping timeout: 264 seconds]
rgrinberg1 is now known as rgrinberg
<apeiros>
you're walking the tree of all objects (possibly millions) just to search your couple of Account instances.
ExxKA has joined #ruby
buibex has quit [Remote host closed the connection]
<techminer>
apeiros: oh really? I found that in a blog post somewhere when learning how to use Classes....
<apeiros>
if he didn't mention "debug only", you should send him a note.
<techminer>
So how to do a "find_all_by_SOMEVAL" on such a large set of objects?
machuga|away is now known as machuga
<hoelzro>
techminer: store weak refs to them in a class variable in initialize
chile_andes has joined #ruby
rippa has joined #ruby
<hoelzro>
(does Ruby have weak references?)
<apeiros>
yes
<hoelzro>
\o/
<apeiros>
WeakRef (via require 'weakref')
io_syl has quit [Quit: Computer has gone to sleep.]
<hoelzro>
but use strong references if you intend to have the "Manager" class manager these objects 100%
<Iszak>
havenwood green shoes is a DSL?
<apeiros>
but I either have the docs not installed or they're not documented :-/
brunoro has quit [Read error: Connection reset by peer]
acrussell has joined #ruby
atno has joined #ruby
chrishough has joined #ruby
monkegji_ has quit [Ping timeout: 252 seconds]
daniel_hinojosa has joined #ruby
monkegjinni has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
sterNiX has joined #ruby
sterNiX has joined #ruby
sterNiX has quit [Changing host]
Beoran_ has joined #ruby
cofin has quit [Quit: cofin]
thelamest has joined #ruby
marcdel_ has joined #ruby
daniel_hinojosa has quit [Client Quit]
LennyLinux has quit [Remote host closed the connection]
dmiller has joined #ruby
dankest has quit [Quit: Leaving...]
monkegjinni has quit [Ping timeout: 256 seconds]
YanniHoza has quit [Remote host closed the connection]
Beoran__ has quit [Ping timeout: 252 seconds]
<kephra>
*ok* 3rd try - now with ruby 2.0.0p195
InFlames has quit [Quit: This computer has gone to sleep]
ilpuccio has quit [Quit: This computer has gone to sleep]
YanniHoza has joined #ruby
<shevy>
desperate!
prk has joined #ruby
cj3kim has joined #ruby
jgrevich has joined #ruby
nomenkun_ has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
`brendan has joined #ruby
mikecmpbll has joined #ruby
ananthakumaran has joined #ruby
cj3kim has quit [Remote host closed the connection]
<kephra>
shevy, I once tried rails around 2006, when it did run out of the box - and I did the error to recommend rails - so I now have to install this fucking app
ipalaus has quit [Quit: Computer has gone to sleep.]
<shevy>
kephra: yeah, rails 1.0 was ok, I managed to have the basic tutorials work as well back then
<shevy>
then came bundler
botorosa has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
<shevy>
it's a huge mistake to fragmentize installation procedures
sayan has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 240 seconds]
bubblehe_ has joined #ruby
pitzips has joined #ruby
<shevy>
/var/lib/gems/ <--- typical debian ruby
<shevy>
that creates even more problems
catphish has joined #ruby
<catphish>
where do methods go if you define them with def in irb?
<shevy>
invalid byte sequence in US-ASCII <-- huge mistake of ruby 1.9.x to add all these new problems, for marginal gains
<shevy>
catphish: hmm private methods on class Object?
<catphish>
in 1.9.2 they seem to become class methods on Object, but not in ruby 2,9
<catphish>
*2.0
<shevy>
aha, interesting
<havenwood>
kephra: 2.0.0 ftw. Lastest stable release of Ruby and avoiding package manager is a much less painful course. :P
<shevy>
yea kephra stop using debian man, it's not worth the extra pain
<catphish>
shevy: actually in 1.9.2 they are defined on Kernel and included in Object
<kephra>
debian is normally the best distribution, when it comes to maintenance, shevy
<catphish>
but we can't find them in 2.0.0 :)
<shevy>
kephra: you know they change defaults
emptyflask has joined #ruby
bubblehead has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
<shevy>
kephra: mkmf is not part of standard ruby on debian, by default. people then come here on #ruby and ask for help, then we have to explain to them that the debian devs killed mkmf because "we are a server OS, only 0.5% of the debian users ever need mkmf, so we rip it apart"
<kephra>
whats the default for gems, if I installed ruby 2.x in /usr/local?
dallasm_ has quit []
<shevy>
all the same prefix is used, in that example you gave it would be at: /usr/local/lib/ruby/gems/1.9.1/ (or to make sure, check at /usr/local/lib/ruby/gems/ first)
emptyflask has quit [Remote host closed the connection]
emptyflask has joined #ruby
<shevy>
in debian, they used --prefix /usr, but also use /var/lib which can confuse gem
carloslopes has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
<catphish>
shevy: you could make all strings binary if you were happy to disregard all encodings ruby 1.8 style :)
<shevy>
I install into /Programs/NAME/VERSION so ruby would be at /Programs/Ruby/2.0.0p195 (my ruby script will remove '-'). RVM uses something similar, but they install into a user's home dir instead
<havenwood>
kephra: GEM_HOME points at default repository location for gem installation. GEM_PATH is a colon-separated list of gem repository directories. I like using chruby to set all the env vars correctly for me.
<catphish>
and i'm not sure character encoding support is a "marginal gain" lol
<shevy>
catphish: I tried that but there are still things that broke. for instance, syck has been removed, and psych will refuse to load non-utf yaml files :(
bradhe has quit [Ping timeout: 264 seconds]
<shevy>
catphish: it gives me nothing I need, but a lot of new hassle
casheew has quit [Read error: Connection reset by peer]
<atmosx>
shevy: hello
<atmosx>
shevy: did you move to ruby 2.0?
<shevy>
and I am not the only one who got new errors, just look at kephra and million of other people who complained about it before
<shevy>
atmosx: I cant
<catphish>
character encodings are important to me, unless you only use ascii you run into all kinda of problems otherwise
<shevy>
atmosx: I'll have to switch to python
<atmosx>
ah because of psych?
<atmosx>
what if you load sych ?
<atmosx>
shevy: omg, we as a community, can't afford to lose you.
<shevy>
atmosx: no, because I cant abandon my old editor, so I cant go to UTF
<catphish>
shevy: i don't know about psych, can't you just tell it the encoding of the file you're trying to load?
* atmosx
will have to move to python shortly anyway
<shevy>
catphish: yes partially, # Encoding: ASCII-8BIT works ok
<atmosx>
shevy: your old editor doesn't support utf8?
<catphish>
shevy: that's just forcing it to binary
<shevy>
atmosx: not in the way I would want it hehe
<catphish>
not really a solution if you want your characters
<shevy>
catphish: what other solution do I have? note that I dont use UTF
<havenwood>
shevy: Go to UTF-8!
<catphish>
shevy: what encoding do you use?
<kephra>
catphish, true ;-( and UTF-8 is carefully designed to be a pain in the ass
<atmosx>
shevy: try vi improved!
<shevy>
catphish: some ISO subset
ravster has quit [Ping timeout: 248 seconds]
<atmosx>
shevy: supports a wide variety of encodings!
<havenwood>
shevy: Your editor really doesn't support UTF-8?
<shevy>
atmosx: I moved away from vim purposely years ago and never missed it :)
<shevy>
atmosx: one option would be to go to sublime
apok has joined #ruby
<catphish>
shevy: well find out what ISO variant, and force the string to that
<shevy>
havenwood: it claims it does but it is totally broken from how I can see it, it kills my german umlauts when I save things :(
<atmosx>
shevy: isn't gedit pretty decent? with some plugins?
arya has quit []
<shevy>
hmm
<catphish>
then ruby will know the encoding and handle it properly
buibex has quit [Ping timeout: 260 seconds]
mafolz has quit [Ping timeout: 252 seconds]
<shevy>
oh, you mean gedit, not geany
<atmosx>
ye
arya has joined #ruby
<shevy>
atmosx: good idea, I have not tried gedit in like 4 years
<atmosx>
s
<atmosx>
gedit
<havenwood>
I thought gedit was pretty nice with Ruby plugin.
<atmosx>
the default editor for gnome
<catphish>
i use gedit, it's nice
<shevy>
yeah, I used it only many years ago in gnome 2, I will give it a try again
<atmosx>
shevy: also 'kate' (from KDE) is very powerful, I was kinda amazed about how nice supported snippets out of the box (for ruby)
<catphish>
i use pluma (the mate gnome 2 gedit fork)
<havenwood>
gedit-gmate
<atmosx>
shevy: for me UTF8 is really nice, because supports both Greek and English :-P
<shevy>
one thing at a time atmosx
<catphish>
i install syntax highlighter plugins for RoR work though
<kephra>
shevy, exactly - 1st: utf-8 was designed that latin1 umlaute are illegal sequences, 2nd: utf-8 was designed that getting the n-th character of a string is now O(N) and not O(1), 3rd: utf-8 was designed to break printf formatting, 4th: utf-8 was designed to break #! with BOM ... in result UTF-8 was designed to be a pain in the ass
jdunck has joined #ruby
<shevy>
kephra: I can feel with you :D
Heero has quit [Ping timeout: 248 seconds]
awarner has quit [Ping timeout: 248 seconds]
carloslopes has quit [Ping timeout: 252 seconds]
<catphish>
i've always liked utf-8 because it doesn't waste bytes
arturaz has quit [Ping timeout: 245 seconds]
casheew has joined #ruby
<catphish>
but that does have computational overhead of course
<catphish>
i just happened to install a server so i used -195
<atmosx>
shevy: not quite. Managing leenoux is like 10 times harder than managing a FreeBSD box. I'm good with administrating unix-es, I suck at programming :-(
<shevy>
catphish: but you use linux right? that's almost the default now hehehe
<catphish>
i'm great at everything
<catphish>
yeah, i'm on linux, makes things easy :)
<atmosx>
catphish: no way I play better basketball than you, drive a faster car AND ride better on a snowboard!!!!
daniele_ has joined #ruby
<catphish>
i've never actually tried any other unixes
<catphish>
atmosx: what car?
<shevy>
I tried PC-BSD, I liked the idea behind it
<catphish>
i have indeed never been on a snowboard :(
<Norrin>
its not unix
<shevy>
but freebsd feels like linux from 1990
emptyflask has quit [Quit: leaving]
<atmosx>
I'm on macosx actually and I wouldn't change it for desktop
* atmosx
kisses his macbook air
megha has joined #ruby
<shevy>
and PC-BSD, while it had nice ideas, all shows that ancient bsd atmosphere... first time with the slices, I even failed to do a hdinstall of freebsd ...
<catphish>
i used to use solaris, but compared to linux it felt like managing something from the 80s
<atmosx>
catphish: a lotus elise, but nowadays I use it only for track days and some ride to the sea... doesn't have high-end speed, but the acceleration must be below 5 seconds (0-60 miles)
appleseed has joined #ruby
robottinosino has quit [Read error: Connection reset by peer]
<catphish>
atmosx: i quite fancy a hard top lotus, could still outrun it on my ninja though :)
<kephra>
*ok* feierabend - MrZYX using ruby 2.0.0p195 solved my problem
<shevy>
wheeeee
a_a_g has quit [Quit: Leaving.]
<shevy>
and kephra speaks german too :D
<atmosx>
you guys need these systems for desktop usage that's why they seem 'archaic' to you. They don't have installation menu's etc. But if you run a Solaris server, you have dtrace working at 100% and manyb other utilities which could help you make system profiling at levels that you couldn't achieve with BSD's or Linuxes :-)
joonty has quit [Read error: Operation timed out]
<atmosx>
you also have latest version of ZFS, and so on.
<shevy>
atmosx: well I am fine using cfdisk or fdisk, but BSD installation used something ... different. that thing confused me
billiam has quit [Remote host closed the connection]
<kephra>
shevy, where are you from? I'm from Bremen/German - home town of Beck's Beer and Ariane rocket upper stage
<shevy>
kephra: vienna
<kephra>
*oh* nice ;-)
robottinosino has joined #ruby
<kephra>
can I PM you?
<shevy>
there are like hundreds from germany here... Hanmac1 ... MrZYX ...
<atmosx>
fdisk works on bsd, but ... FreeBSD installation is pretty easy if you use the entire HD these days. NetBSD and OpenBSD is still tricky iirc.
marwinism has quit [Ping timeout: 246 seconds]
icedp has quit [Ping timeout: 252 seconds]
<havenwood>
shevy: With OpenBSD I'd agree with you about the 80s, but FreeBSD (at least from the command line, haven't used GUI) it seems modern to me!
emptyflask has quit [Client Quit]
prk has quit [Remote host closed the connection]
prk has joined #ruby
emptyflask has joined #ruby
<atmosx>
havenwood: again, with openbsd you'd have a full featured PF, instead of a freebsd cropped down version. You could work miracles if you manage a router/firewall with openbsd. It's the use case that determines which OS is good for what.
<shevy>
hey
<shevy>
fdisk does not work on freebsd right?
<atmosx>
however, I could live with a FreeBSD desktop if ... they had proper flash support and not crappy emulation.
<shevy>
it took me a while to find out how to mount my external USB hdd
<atmosx>
shevy: it works
<shevy>
hmmm no...
rgrinberg has quit [Ping timeout: 256 seconds]
<shevy>
there is a special command atmosx
<shevy>
I wrote it down somewhere, let me try to find it
zeade has joined #ruby
<atmosx>
from the manpage: fdisk — PC slice table maintenance utility
jtharris has joined #ruby
bradhe has joined #ruby
baghouse is now known as banghouse
<shevy>
no no I swear
daniele_ has quit [Quit: Leaving]
DaniG2k has quit [Quit: Leaving]
Dummies_freelanc has joined #ruby
jamie_ca_ has joined #ruby
emptyflask has quit [Client Quit]
prk has quit [Ping timeout: 245 seconds]
jlast has quit [Remote host closed the connection]
bradhe has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
LennyLinux has joined #ruby
apeiros has joined #ruby
dankest has joined #ruby
ephemerian has quit [Quit: Leaving.]
<appleseed>
I'm working on a mutithreaded script to do pings in parallel across a bunch of subnets and I'm seeing the number of threads get way too high. Would someone take a look at https://gist.github.com/anonymous/5592880 ??
joonty has joined #ruby
ravster has joined #ruby
bluOxigen has joined #ruby
altamic has quit [Quit: altamic]
phipes has joined #ruby
includex has quit [Quit: Leaving...]
<shevy>
atmosx: hmm I cant find it
<canton7>
appleseed, why not have a pool of worker threads, each of which pulls an item off the queue when it's finished with its previous item?
BSaboia has quit [Ping timeout: 256 seconds]
baroquebobcat has joined #ruby
aleph-null has joined #ruby
<canton7>
threads aren't massively cheap to create/destroy, so a thread pool is a common approach
<atmosx>
shevy: you use ubuntu now?
katsrc has quit [Quit: leaving]
<appleseed>
That's a good idea, I was just cannibalizing some other code I wrote a while back.
billiam has joined #ruby
<appleseed>
Threads are cheap enough compared to ping, that it's not a big issue
greenarrow has joined #ruby
<appleseed>
I'm wondering hw I wind up with 200+ threads
ilpuccio has joined #ruby
<canton7>
I don't know how long they hang around for after they're done - that might be your issue
jlast has joined #ruby
<appleseed>
They go away at the end of the block
<shevy>
atmosx: hmm no, debian hates me
<shevy>
atmosx: I just compiled gedit
<havenwood>
I'm thinking of switching to Arch linux as my primary vagrant.
carloslopes has joined #ruby
bradhe has joined #ruby
rakl has joined #ruby
<havenwood>
Arch seems to be about the only distro whose package manager seems to keep up with Ruby patch releases. I like the minimalism paired with modernity!
<havenwood>
Wonder if Arch has 2.0.0-p125 already..
apeiros has quit [Ping timeout: 264 seconds]
v0n has quit [Ping timeout: 241 seconds]
[dee] has joined #ruby
hamakn has quit [Remote host closed the connection]
[dee] has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
[dee] has joined #ruby
apeiros has joined #ruby
rgrinberg has joined #ruby
tjbiddle has joined #ruby
<canton7>
havenwood, nah p0. It's flagged as out of date though, as of 2 days ago
mklappstuhl has quit [Remote host closed the connection]
brianherman has joined #ruby
<greenarrow>
I will watch that shevy thanks
<havenwood>
That reminds me, meant to ask UberNerdGirl what she ended up doing after Hacker School. My little sis just applied but didn't get in this round. I need to get her on IRC...
<shevy>
"Yuki Sonoda" I think that is her name
<shevy>
I think she maintained ruby 1.8.x but gave up on that a year ago or so
<s2013>
does matz have a job?
_nitti has quit [Remote host closed the connection]
<shevy>
matz can speak english fine, but he "thinks" in japanese
krombr has quit [Quit: krombr]
<shevy>
s2013: he is paid by I think at least two different organisations
<havenwood>
shevy: Wasn't she the release manager for 1.9.3 as well? I can't remember.
ntus1017 has joined #ruby
zeade has quit [Quit: Leaving.]
<s2013>
like?
<shevy>
havenwood: can't remember either... I think matz only does mruby now :(
zeade has joined #ruby
<YanniHoza>
re: does matz have a job? => heroku & ruby
<LennyLinux>
havenwood: are you building your own vagrant boxes?
<s2013>
i wish i created a programming language that was popular. id apply for jobs that required knowledge of that language just to see the responses id get
<shevy>
s2013: I think there is this funding from the japanese government, then there is matz doing consulting for... this big company? yard* something?... and last but not least, where he always worked... net*something ... hmm
Davey has joined #ruby
<s2013>
engineyard?
<shevy>
ah heroku was the name perhaps
<havenwood>
LennyLinux: Nope, at this point I'm just using pre-built boxes. Never actually rolled my own box.
<shevy>
I dunno, I mix up those things easily
<havenwood>
shevy: Heroku
ExxKA has joined #ruby
<s2013>
he is not the founder of heroku though right?
<shevy>
matz is probably rich and well deservedly so :D
ilpuccio has quit [Ping timeout: 248 seconds]
helios has joined #ruby
jnoob22_ has quit [Remote host closed the connection]
<s2013>
i hope he gives part of his paycheck to DHH :P
daniel_- has quit [Ping timeout: 252 seconds]
kais has quit [Quit: kais]
<LennyLinux>
There's a cloud service properly for ruby that claims to be faster than Heroku with equal price: shelly
tjbiddle has quit [Ping timeout: 248 seconds]
tjbiddle_ is now known as tjbiddle
<superscott[8]>
i don't think DHH is strapped for cash
jnoob22 has joined #ruby
<superscott[8]>
:P
<shevy>
:P
<havenwood>
s2013: No, Matz just gets a paycheck from Heroku to make it easier for him to focus on developing Ruby.
evenix has joined #ruby
<shevy>
mruby!!!
<s2013>
oh ok gotcha
<shevy>
destroy lua!!!!!!
enebo has quit [Quit: enebo]
<havenwood>
s2013: They actually pay 2 or 3 of the core team now, I think.
apeiros has quit [Read error: Connection reset by peer]
robottinosino has quit [Ping timeout: 264 seconds]
timkohrumel has joined #ruby
<havenwood>
Q. How many years Rails experience do you have? A. All of them.
<s2013>
hahah
noname001 has quit [Read error: Operation timed out]
chrisja has joined #ruby
rgrinberg has quit [Ping timeout: 256 seconds]
<havenwood>
At least they don't ask for 10 years Rails experience. (Guess soon that will actually be possible.)
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
<alex88>
apeiros_: oh, using ^$ could break if first line is the formatted date and second line is something else?
<shevy>
wheeee atmosx ... gedit works... what do I do next?
<shevy>
lol havenwood
<s2013>
i remember i was watching some talk he was giving and he said he would be the only person qualified for the 8 year rails experience ny public library was asking for
Banistergalaxy has quit [Ping timeout: 256 seconds]
<shevy>
from 2004 or so
kil0byte_ has quit [Remote host closed the connection]
<s2013>
its in the library ill check it out
<shevy>
yeah... I bought the newer one, and I should not have bought it because I knew too much already :(
mmar has joined #ruby
<shevy>
but I feel as if I dont know enough
<shevy>
so I am in a dilemma ...
<s2013>
so if you read that book and get a good understanding of whats going on can you consider yourself a ruby programmer?
<ellipse>
Just ask on IRC.
mmar has quit [Remote host closed the connection]
<s2013>
yes but asking on irc is like playing russian roulette except the bullets in 5 chambers
<shevy>
s2013: dunno... I think nothing beats experience which you can only gain on your own, really
F__i__L has quit [Remote host closed the connection]
<ellipse>
But you can't die.
<s2013>
id like to build some ruby application thats not web based but i have no clue what
<havenwood>
s2013: The Ruby Programming Language is a great book (http://shop.oreilly.com/product/9780596516178.do). I've heard The Well Grounded Rubyist is highly recommended but unfortunately haven't read it yet!
<fearoffish>
pay for RubyMotion, and you can do iOS apps and Mac apps
<fearoffish>
or just use macRuby for mac apps
<s2013>
yeah someone on #ruby recommended the well grounded rubyist to me so i got it
nwertman has quit [Ping timeout: 264 seconds]
krz has quit [Quit: krz]
<s2013>
its pretty good although im mostly readnig chapters as i need them instead of in sequence
<greenarrow>
havenwood: did you see my pm?
<havenwood>
fearoffish: Or MobiRuby is another cool option: http://mobiruby.org/
<atmosx>
s2013: and?
<havenwood>
greenarrow: Oops, nope. Checking.
<s2013>
and nothing. i just dont know if thats a good strategy or not
<fearoffish>
havenwood: daaaayum, that's ugly.
centr0 has joined #ruby
johnmilton has quit [Ping timeout: 276 seconds]
[dee] has quit [Read error: Connection reset by peer]
ravster has joined #ruby
[dee] has joined #ruby
helios has quit [Ping timeout: 252 seconds]
senayar has quit [Remote host closed the connection]
<atmosx>
I have to implement cache, write a web interface for my cli ORF finder, and... maybe upgrade my twitter backup tool.
<atmosx>
but I'm so bored.
ellipse has quit [Ping timeout: 246 seconds]
<shevy>
lol atmosx
<shevy>
I only port my old shell, method by method
<shevy>
one method a day
<atmosx>
good thing to work in just 1 project, I'll do that in the future.
<atmosx>
1 release at the time
brunoro has joined #ruby
<atmosx>
working in more than 1 makes confused/bored/uninterested
slainer6_ has quit [Remote host closed the connection]
threesome has joined #ruby
marcdel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
hehe
danman has joined #ruby
justsee has quit [Ping timeout: 256 seconds]
zastern has quit [Remote host closed the connection]
ExxKA has quit [Quit: This computer has gone to sleep]
machuga|away is now known as machuga
HAKEON has joined #ruby
centr0 has quit [Quit: centr0]
willejs has joined #ruby
zastern has joined #ruby
Eldariof-ru has joined #ruby
_Amaan has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
elaptics is now known as elaptics`away
<willejs>
hi all, i need a bit of help… Im using the graphite gdash chef LWRP and trying to iterate through one hash to generate a hash to configure many graphs...
<willejs>
i get unexpected tASSOC, expecting keyword_end
<willejs>
I'm pretty sure its because I'm looping in a method call?
nomenkun has joined #ruby
mercwithamouth has quit [Ping timeout: 276 seconds]
tootubular has joined #ruby
wsterling has joined #ruby
camilasan has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
nlv has quit [Remote host closed the connection]
chandankumar has joined #ruby
theRoUS has joined #ruby
Azulinho has quit [Ping timeout: 264 seconds]
CaptainKnots has left #ruby [#ruby]
mockra has joined #ruby
sambao21 has joined #ruby
BonSequitur has joined #ruby
Dummies_freelanc has quit [Quit: Leaving.]
ipalaus has joined #ruby
zastern has quit [Remote host closed the connection]
Dummies_freelanc has joined #ruby
<joshu>
i'm trying to get started with mintiest to test my code for a ruby script i'm just starting to write but I feel lost on how do do it. ANyone have any suggestions?
brunoro has quit [Ping timeout: 264 seconds]
<joshu>
*minitest
zastern has joined #ruby
LennyLinux has quit [Remote host closed the connection]
<daniel_->
Hi all. anyone can tell me how I can exclude an item of an array from another array, e.g. a1 = [ "hello world", "hello ruby", "hello rails", "bye world" ] and a2 = ["ruby", "bye world"] .... so I want items of a1 that match a2 items to be removed. also it should consider case sensitivity
<atmosx>
joshu: it's not an easy thing to grasp at once, BBD and TDD. You need to practice a bit and follow online tutorials to do that at the beginning
buibex has quit [Remote host closed the connection]
<havenwood>
joshu: I'd suggest starting by putting your `require 'minitest/autorun'` below the source in question in the same file as the code you are testing, while you get the hang of it.
<joshu>
atmosx yeah i've read over that a few times but still not sure how to get started.
<atmosx>
daniel_-: you need the - method
buibex has joined #ruby
<atmosx>
array1 - arra2 = (array1 minues contents of array2)
<peteyg>
What seems more 'proper': putting 'nil' before the comparisons (e.g. nil == value && nil == value2), or putting 'nil' after the comparisons (e.g. value == nil && value2 == nil)?
<shevy>
:Elapsed => { I dont know what that is, a hash without {} ?
io_syl has joined #ruby
<shevy>
peteyg I only see them after the comparison
<joshu>
atmosx havenwood if we take the ruby script i'm just about to start writing. the first thing I need to do is read STDIN.
<atmosx>
I'm not sure if BDD/TDD are meant to be used in scripts though
<shevy>
I hate tests
<atmosx>
shevy: yes, me too. I never write tests.
<atmosx>
lol
<atmosx>
It's so boring
<shevy>
well
<joshu>
i've never done anything like this before and very new to ruby
<daniel_->
atmosx: thx I want this [ "hello world", "hello ruby", "hello rails", "bye world" ] - ["ruby"] to remove "hello ruby" from a1
<shevy>
tests can be fine, I think... just BDD and TDD are so annoying
brunoro has joined #ruby
toastynerd has joined #ruby
<shevy>
what I dont mind are specifications
brianpWins has joined #ruby
<atmosx>
daniel_-: no
e-dard has joined #ruby
<atmosx>
daniel_-: you want to remove the entry that has the word 'ruby' in it?
<apeiros>
hm, xeago is awol :(
<daniel_->
yes atmosx
<joshu>
havenwood I'll try to do as in your gist
jamesfung14 has joined #ruby
<e-dard>
If you have an array of stop words you want to remove from some input, is the right way: stopwords.each { |s| input.gsub!(s, "") } ?
nwertman has joined #ruby
io_syl_ has joined #ruby
marcdel_ has joined #ruby
buibex has quit [Ping timeout: 240 seconds]
<e-dard>
Or can gsub handle some way of converting an array of choices into a regex?
io_syl has quit [Ping timeout: 248 seconds]
io_syl_ is now known as io_syl
<bean>
daniel_-: do you know how to do that correctly or do you need help?
<atmosx>
daniel_-: a.each {|x| a.delete(x) if x.include?('ruby')}
dhruvasagar has quit [Ping timeout: 256 seconds]
<apeiros>
e-dard: Regexp.union
theRoUS has quit [Ping timeout: 256 seconds]
Ortuna has joined #ruby
andikr has quit [Remote host closed the connection]
<atmosx>
daniel_-: this will iterate through all elements of array 'a' looking for an entry (x) containing the word 'ruby' and will remove it.
<e-dard>
apeiros: ah brilliant! So something like input.gsub!(Regexp.union(*stopwords), "") ?
jdripper has quit [Quit: Leaving.]
<bean>
atmosx: more like a.reject!{ |element| element.include? "ruby" }
<bean>
:p
<apeiros>
I think regexp.union accepts an array directly, without splat, too
<e-dard>
Cool. Thanks
<apeiros>
but yes, that was the idea
<atmosx>
bean: ah no idea, never worked with 'reject' method
<bean>
yep
Ortuna has quit [Client Quit]
<daniel_->
atmosx: thx man! can I do this with multiple items that should be removed?
<atmosx>
daniel_-: sure, but if you have a really large list, that iterates *slowly* you might want to consider more than 1 ways to do this and use the faster for your case.
zeel has quit [Quit: "DEVELOPERS DEVELOPERS DEVELOPERS"]
<daniel_->
because I have an array of many elements in a2
<atmosx>
daniel_-: bean's code also works (I tested)
<daniel_->
nice thx bean
<atmosx>
daniel_-: many as in 5000?
rupee has joined #ruby
persand has quit [Quit: persand]
<daniel_->
only a 10-20 items
<atmosx>
daniel_-: is your computer a p100 mhz? :-) if not, these are not *many*
<waxjar>
daniel_-: consider picking a more descriptive name than a2 :p
<havenwood>
daniel_-: You want to remove a substring from the element if it matches as well as removing the whole element if it matches in its entirety?
<apeiros>
technically ["ruby", "Bye", "world"] is 1 element
<apeiros>
but of course, it doesn't work that way :)
gaahrdner has quit [Remote host closed the connection]
<apeiros>
and even if it *did* take multiple elements - it'd still be an iteration anyway. just a hidden one.
<atmosx>
apeiros: is there any way to do it without iterating through your elements? I don't think so.
hamakn has joined #ruby
<apeiros>
atmosx: no trivial one
<apeiros>
none that would be worth it
sayan has joined #ruby
<atmosx>
I see
dpatel has joined #ruby
fschuindt has joined #ruby
<waxjar>
if you only need to check for the whole string you could flip them round: %w[ruby Bye world].include? element
<apeiros>
you could construct an DFA from all the input strings and do it in "one run"
huoxito has quit [Ping timeout: 256 seconds]
<apeiros>
waxjar: that'd have been solved by Array#-
<waxjar>
ah, of course
<apeiros>
oh, actually a trivial way to generate such a DFA is Regexp.union :)
io_syl has joined #ruby
dpatel has quit [Client Quit]
dpatel has joined #ruby
ellipse has joined #ruby
<daniel_->
thx havenwood Ill check that one out
<fschuindt>
I've created a gem with a bin file, and so installed it with gem install. how can I put my gem bin in the PATH at time of installation? To be able to execute this by typing the gem name in the terminal, like: $ mygem argv
jdunck has quit [Ping timeout: 252 seconds]
<waxjar>
you should set a exectubale directory in your gemspec
<waxjar>
*executable
hamakn has quit [Ping timeout: 248 seconds]
wolcanus has joined #ruby
<waxjar>
rubygems will do the rest
<apeiros>
fschuindt: paste your gemspec
c0rn has joined #ruby
<apeiros>
Gem::Specification#executables= is the relevant method
<daniel_->
havenwood: works fine! is it also possible for case sensitive items, e.g. ["ruby"] should remove "ruby" and "Ruby" entries
<fschuindt>
waxjar: I have tried that, but when I run 'camelog', terminal says command not found.
<waxjar>
fschuindt, are you using rbenv by chance?
Peej has joined #ruby
<fschuindt>
waxjar: I don't even know it
<fschuindt>
haha
<apeiros>
fschuindt: you're indeed missing the executables=
<apeiros>
fschuindt: also you should not set the date via s.date=
centr0 has quit [Quit: centr0]
sayan has quit [Ping timeout: 252 seconds]
<fschuindt>
apeiros: hum, ok
<fschuindt>
apeiros: what should I do to define the executable?
DanKnox is now known as DanKnox_away
BonSequitur has joined #ruby
<apeiros>
s.executables = ['camelog']
marie has joined #ruby
<fschuindt>
apeiros: hum
nwertman has quit [Remote host closed the connection]
workmad3 has joined #ruby
centr0 has joined #ruby
teddyp1cker has joined #ruby
<fschuindt>
apeiros: fine! thank you mate :)
<ramblex>
daniel_-, you can also do it using the regexp union apeiros mentioned: a2r = Regexp.new(Regexp.union(a2).source, Regexp::IGNORECASE); a1.reject { |word| word.match(a2r) }
<atmosx>
ramblex: that's complex to understand, I'm not sure if it's a good idea to use code you don't understand.
zigomir has joined #ruby
Kabaka has quit [Quit: BRB]
kil0byte has joined #ruby
<daniel_->
thx ramblex a bit too much for me at the moment ;0
<ramblex>
atmosx, hm true, perhaps using any? is better
* apeiros
prefers /#{foo.source}/i over Regexp.new
tealmage has joined #ruby
phipes has quit [Quit: phipes]
[dee] has quit [Read error: Connection reset by peer]
Fernandos has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
[dee] has joined #ruby
<Fernandos>
Hi
<Fernandos>
What's the replacement for rvm?
wolcanus_ has joined #ruby
interactionjaxsn has joined #ruby
robottin1 has quit [Ping timeout: 276 seconds]
blaxter has quit [K-Lined]
<havenwood>
Fernandos: RVM remains very popular. Good alternatives include chruby and rbenv.
<Fernandos>
havenwood: that sounds cleaner. I'm on gentoo and there is something called eselect. I can switch ruby versions globaly or localy that way.
chase-work has joined #ruby
wolcanus has quit [Ping timeout: 246 seconds]
enebo has joined #ruby
Astral_ has quit [Ping timeout: 246 seconds]
<Fernandos>
eselect allows to change kernel versions, bash-completions, X rendering, java version and a lot more
tealmage has quit [Remote host closed the connection]
<atmosx>
Fernandos: seriously?
Fraeon has quit [Remote host closed the connection]
<atmosx>
Fernandos: rvm seems buggy to you, but you're using gentoo slots which are *not* buggy?
Ortuna has joined #ruby
<daniel_->
ramblex: cool thx. works fine
tvw has quit []
<atmosx>
Fernandos: anyway, gentoo last time I checked, didn't support ruby1.9, the developer wanted to be paid to adjust ruby-1.9 properly on the system. So using system wide ruby is a bad idea anyway.
cj3kim has joined #ruby
interactionjaxsn has quit [Ping timeout: 256 seconds]
ntus1017 has quit [Remote host closed the connection]
kurtf has joined #ruby
<Fernandos>
atmosx: Thanks for the elaboration. I didn't know about the backstory.
Ortuna has quit [Client Quit]
<Fernandos>
eselect ruby list Available Ruby profiles: [1] ruby18 [2] ruby19 (with Rubygems) *
<Fernandos>
ruby19 and gem19 are currently used
lwgtik has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
horrror has joined #ruby
<atmosx>
Fernandos: well, that's cool then :-) Today I switched to 2.0
<Fernandos>
After developing a project, using bundler and chruby or rbenv, is it possible that someone checking out my project will run into bugs because bunlder or whatever downlaoded newer versions of the gems I had?
alvaro_o has joined #ruby
chrishough has quit [Quit: chrishough]
<atmosx>
Fernandos: yes, that's why you use the bundler. To lock down the gem versions of your program
<horrror>
hi guys, i'm starting to get to know with socket programing in Ruby. Need a tip or an idea for a small project to code that will help me understand and learn the fundamentals
guiocavalcanti has quit [Remote host closed the connection]
Astralum has joined #ruby
evenix has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
megha has quit [Quit: WeeChat 0.4.0]
druonysus has joined #ruby
evenix has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
kpshek has quit []
evenix has quit [Read error: Connection reset by peer]
<ramblex>
horrror, the fundamentals of socket programming or ruby or both?
<horrror>
socket
prk has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
marie has quit []
johnmilton has joined #ruby
<ramblex>
perhaps something like a chat room might be quick and easy to get started. Not very original though :P
etabeta has joined #ruby
saarinen has joined #ruby
etabeta has quit [Quit: leaving]
chrishough has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
awarner has joined #ruby
apok has quit [Quit: apok]
nwertman has quit [Remote host closed the connection]
monkegjinni has joined #ruby
<Fernandos>
atmosx: I don't have ruby2 available, would probably have to wait for an official release, or use an ebuild. Which OS do you run?
danslo has quit [Quit: danslo]
ner0x has joined #ruby
kpshek has joined #ruby
kpshek has quit [Client Quit]
[dee] has left #ruby [#ruby]
ToApolytoXaos has joined #ruby
Fraeon has joined #ruby
niklasb has joined #ruby
pinpin404 has joined #ruby
wolcanus_ has quit [Remote host closed the connection]
mando has quit [Remote host closed the connection]
jlast has joined #ruby
mattbl has joined #ruby
<joshu>
in ruby is it best practice to define a variable and then use it or just go ahead and call the method where needed. don't know if I've described that correctly but I have subject = mail.subject and then I use subject. should I just use mail.subject instead?
BizarreCake has quit [Quit: Leaving]
<shevy>
joshu: depends on the rest of the code, if you use subject more than once, sure, make it a variable
dmiller has quit [Remote host closed the connection]
shevy has quit [Remote host closed the connection]
dmiller has joined #ruby
lunarjar has quit [Ping timeout: 252 seconds]
ravster has quit [Ping timeout: 248 seconds]
forrest has joined #ruby
rezzack has joined #ruby
dmiller has quit [Remote host closed the connection]
krnflake has joined #ruby
k610 has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
dmiller has joined #ruby
carlyle has quit [Remote host closed the connection]
krnflake has quit [Client Quit]
ravster has joined #ruby
krnflake has joined #ruby
Al_ has quit [Quit: Al_]
apok has joined #ruby
evenix has joined #ruby
lunarjar has joined #ruby
ebouchut has joined #ruby
rdark_ has quit [Quit: leaving]
lewix has joined #ruby
echevemaster has quit [Read error: Connection reset by peer]
<appleseed>
ANy idea what the limit on number of threads in Ruby on Centos 6 is?
IrishGringo has joined #ruby
jp____ has joined #ruby
ravster has quit [Ping timeout: 245 seconds]
xardas has joined #ruby
BonSequiteur has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
<joshu>
shevy thanks
dallasm_ has joined #ruby
<ramblex>
appleseed, which version of ruby?
bean has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
bean has joined #ruby
BonSequitur has quit [Ping timeout: 248 seconds]
Es0teric has joined #ruby
nwertman has joined #ruby
benlieb has joined #ruby
Neomex has joined #ruby
benlieb has quit [Remote host closed the connection]
<appleseed>
1.9.3
BonSequiteur is now known as BonSequitur
<apeiros>
I'd assume the available memory is the only limit
<apeiros>
and maybe 2**32
<appleseed>
It bombed when I ran 200 threads. 150 seems to work
<apeiros>
interesting. what bomb?
Astralum has quit [Ping timeout: 252 seconds]
blueOxigen has joined #ruby
fschuindt has quit [Quit: Computer has gone to sleep.]
<appleseed>
Exception that it couldn't create a timer thread
<apeiros>
fun. I have 250 threads here on first try
<apeiros>
500 don't have an issue either
<appleseed>
I think the Net::Ping::External may create threads also
interactionjaxsn has joined #ruby
yashshah has quit [Ping timeout: 245 seconds]
blischalk has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
<havenwood>
appleseed: What is you max threads set to?: cat /proc/sys/kernel/threads-max
<apeiros>
2048 is the limit here
<apeiros>
ah right, 1.9 maps ruby threads to OS threads
<appleseed>
Still running an overall rate of 32 systems pinged / second
<apeiros>
so the OS would have a say in it too
ananthakumaran has quit [Quit: Leaving.]
VforAlecs has joined #ruby
nettoweb has quit [Quit: nettoweb]
Leighton has joined #ruby
<appleseed>
cat /proc/sys/kernel/threads-max
<appleseed>
59612
robbyoconnor has quit [Ping timeout: 256 seconds]
<nightfly__>
ulimit -u
Astralum has joined #ruby
AndChat| has quit [Ping timeout: 256 seconds]
<appleseed>
1024
<aedorn>
hmmm
Banistergalaxy has joined #ruby
Collin_ has joined #ruby
kpshek has joined #ruby
ravster has joined #ruby
ramblex has quit [Remote host closed the connection]
v0n has joined #ruby
druonysus has quit [Quit: Konversation terminated!]
druonysus has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
haxrbyte has quit [Read error: Connection reset by peer]
ellipse has quit [Quit: Bye]
<apeiros>
anybody know what's up with Xeago?
Rumsteak has left #ruby [#ruby]
Rumsteak has joined #ruby
kemist has joined #ruby
awwaiid has joined #ruby
Collin_ has quit [Ping timeout: 248 seconds]
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
guiocavalcanti has quit [Ping timeout: 256 seconds]
guiocavalcanti has joined #ruby
<kemist>
Basic question: I added a boolean field to my Mongoid model object. Do I need to add it to all objects in the collection before being able to query it?
reset has joined #ruby
Kabaka has quit [Read error: Connection reset by peer]
SDr has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
<kemist>
If I did something like, where(:new_field => false) I wouldn't get anything back b/c new_field doesn't exist as a property of the document as stored in Monogo.
teddyp1cker has quit [Ping timeout: 276 seconds]
sambao21 has joined #ruby
pen has joined #ruby
Kabaka has joined #ruby
fschuindt has joined #ruby
kirun has joined #ruby
jbpros has joined #ruby
<aedorn>
apeiros: I shall take the guess that his internet connection died a terrible, but temporary, death.
<Dwarf>
Ello, I'm stuck. I'm trying to do some logic but my brain isn't logicing. I have an if that fires if one of the two is true, but I don't want it to run if either of those is false
dhruvasagar has quit [Ping timeout: 256 seconds]
blischalk has quit [Quit: blischalk]
<appleseed>
That would be an AND condition.
<Dwarf>
Wait
<mstksg>
can it fire if they are both true
<Dwarf>
Here comes the part where the logic just completely disappears
<Dwarf>
I'll explain it more in depth so I can follow myself
<Dwarf>
Should be easier for you guys as well
<Dwarf>
I have a commandline argument called foreground
workmad3 has joined #ruby
emmanuelux has joined #ruby
<Dwarf>
The function I'm doing restarts the script, and it will automatically fork into the background, unless the foreground argument is set. On restarting, I want it to be forked into the background, unless the original program wasn't, or if I explicitly tell it not to
jbpros_ has joined #ruby
<mstksg>
can you draw a truth table
<Dwarf>
I'm a terrible artist
<mstksg>
er i mean
<mstksg>
enumerate one
<aedorn>
lol
<Dwarf>
I can't
<Dwarf>
No idea what a truth table is
<mstksg>
you have your parameters A, B, C etc.
<Morrolan>
mapping input values to expected output values.
<mstksg>
A true, B true => false
<mstksg>
A false, B true => true
<Morrolan>
"If a is true and b is false then the output should be blablabla", "if a is false and b is false then the output should be blablabla"
<aedorn>
I'm more confused about the confusion at the moment.
<mstksg>
so i guess your parameters are the initial foreground argument, the state of the lst program, and your new no-fork argument?
<Havvy>
The only ones you need are conjunction (and), disjunction (or) and implication (if).
<Morrolan>
But if I understood you correctly then, if either you tell it to stay in the foreground or the original program was in the foreground, the new one should be in the foreground, too?
<Dwarf>
Unless I tell it not to, yea
cpruitt has joined #ruby
IrishGringo has quit [Remote host closed the connection]
s00pcan has quit [Read error: Operation timed out]
sambao21 has quit [Quit: Computer has gone to sleep.]
browndawg1 has left #ruby [#ruby]
undersc0re97 has joined #ruby
<mstksg>
so if A is original program, B is no-fork flag, C is to fork or not
<mstksg>
A, !B -> !C
<mstksg>
er wait
<mstksg>
A, B -> C
<mstksg>
sorry ><
jgrevich has quit [Remote host closed the connection]
<mstksg>
A, B -> !C
nazty has joined #ruby
<mstksg>
!A, B -> !C
sambao21 has joined #ruby
<pitzips>
What's another way to check if a string matches any value from an array, but returning which value it matches. I have this, but it only returns true/false: https://gist.github.com/pitzips/449fe17999aed686284b
mklappstuhl has quit [Read error: Connection reset by peer]
<apeiros>
array does *not* care what items it contains (with probably the sole exception of Array#compact)
<havenwood>
greenarrow: Are the strings coming from #gets? If so, #gets.chomp.
kristofers has joined #ruby
mklappstuhl has joined #ruby
alex__c2022 has joined #ruby
<atmosx>
Fernandos: I run OSX as a desktop, FreeBSD and Gentoo as servers (with a ruby app on them). I use 'rvm' though. System-wide ruby is used from the system for builds (i.e. vim)
Kabaka has quit [Read error: Connection reset by peer]
Proshot has quit [Quit: Leaving]
lushious has quit [Quit: "RAGEQUITS"]
botorosa has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
undersc0re97 has quit [Quit: WeeChat 0.4.0]
Michael_ has joined #ruby
zeeraw has quit [Quit: Computer has gone to sleep.]
kil0byte has quit [Remote host closed the connection]
thebastl has joined #ruby
Davey has joined #ruby
Kabaka has joined #ruby
mklappstuhl has quit [Ping timeout: 246 seconds]
toastynerd has quit [Remote host closed the connection]
guiocavalcanti has quit [Read error: Connection reset by peer]
<havenwood>
greenarrow: #each doesn't modify the receiver
guiocavalcanti has joined #ruby
<greenarrow>
what is the way to do it?
cek has joined #ruby
<cek>
is there any callback called when a class is defined?
<cek>
class Class; end; callback called after end
sleetdrop has quit [Quit: Computer has gone to sleep.]
<Morrolan>
greenarrow: .map would be a possibility. It calls the code inside the block on each element, and creates a new array with the return values of the block.
<apeiros>
cek: no
<havenwood>
greenarrow: Like apeiros said: "ipsum\\n" != "ipsum\n"
<apeiros>
set_trace_func might emit something.
<cek>
'ipsum\n'
<greenarrow>
thats whats comming back in my console {"Lorem"=>1, "ipsum"=>1, "ipsum\n"=>1}
<Morrolan>
In the case of chomp you could also use .each with .chomp!, if you prefer.
<r0bglees0n>
2.0.0
mattbl has quit [Quit: This computer has gone to sleep]
<r0bglees0n>
shiny :)
Gooder`` has quit [Read error: Connection reset by peer]
<pitzips>
I have an array of domains, and I want to know if the user's email contains any of those domains. If yes, which domain from the array. any? method only returns true/false
<Havvy>
Whoo, I think I just figured out the key difference between prototypical and classical inheritance.
pipework has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
katsrc has joined #ruby
kindjal has joined #ruby
troessner has quit [Quit: Leaving]
ChrisBolton has quit [Quit: ChrisBolton]
jgarvey has quit [Quit: Leaving]
carloslopes has quit [Remote host closed the connection]
paul has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
guiocavalcanti has quit [Read error: Connection reset by peer]
cj3kim has quit [Remote host closed the connection]
guiocavalcanti has joined #ruby
mateuszzawisza has left #ruby [#ruby]
jbpros has joined #ruby
agjacome has joined #ruby
druonysus has quit [Remote host closed the connection]
ARCADIVS has joined #ruby
<kindjal>
If I make a ruby daemon and I want to package it for installation on a server, is it correct that anything outside of gemdir must be packaged in something else, like a .deb or .rpm?
<kindjal>
ie. There's no such thing as a "fully contained" gem, including init.d scripts /etc files etc.?
monkegjinni has quit [Remote host closed the connection]
mockra has joined #ruby
centr0 has quit [Quit: centr0]
elaptics`away is now known as elaptics
saarinen has quit [Quit: saarinen]
centr0 has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
monkegjinni has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
davetherat has quit [Remote host closed the connection]
spider-mario has quit [Read error: Connection reset by peer]
daniel_- has joined #ruby
willejs has joined #ruby
helllen_ has joined #ruby
ravster has quit [Ping timeout: 252 seconds]
Lubinski has quit [Quit: Leaving]
<Eiam>
I have a data structure (a hash with arrays and hashes nested down a few levels) I want to enumerate through and find all the Integer/Numbers, get some data based on those numbers, and replace them inline, e.g. replace the array of numbers with an array of objects I create
<Eiam>
I'm not sure what tool to solve this problem..
<Eiam>
recursion? a bunch of each nests?
JimmyNeutron has joined #ruby
lkba has joined #ruby
<apeiros>
Eiam: proper datastructures.
<Eiam>
ha!
<apeiros>
i.e.: classes
<Eiam>
well in this case the data structure is yaml
<Eiam>
i suppose i could parse the yaml into a class
<Eiam>
=)
<apeiros>
that's the persistency, or the source :-p
mityaz has quit [Quit: See ya!]
<Eiam>
actually I think that may work better. just make a class called blah, and have accessors for each thing, then i can just say blah.issues.map
<Eiam>
why didn't I think of that?
<Eiam>
oh right, I'm not a good programmer. okay, well anyway, thanks apeiros I think that will solve this nicely!
<apeiros>
^^
mahmoudimus has joined #ruby
mad_hatter_ has quit [Quit: Leaving.]
kpshek has quit []
horofox has joined #ruby
codecop has quit [Remote host closed the connection]
workmad3 has quit [Read error: Operation timed out]
moos3 has joined #ruby
Ontolog has joined #ruby
prk` has joined #ruby
cj3kim has quit [Remote host closed the connection]
kpshek has joined #ruby
moos3 has quit [Client Quit]
InFlames has joined #ruby
Nuck has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
jamie_ca_ has quit [Quit: jamie_ca_]
prk` is now known as prk
fschuindt has quit [Quit: Computer has gone to sleep.]
alex__c2022 has quit [Quit: alex__c2022]
Animawish has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
<Xeago>
well, after 30 hours of not having water
<Xeago>
it is quite a pain in the ass
dallasm_ has quit []
<apeiros>
oy, weather issues?
swarley has left #ruby ["Leaving"]
ravster has joined #ruby
Xeago has quit [Remote host closed the connection]
pinpin404 has quit [Remote host closed the connection]
Ontolog_ has joined #ruby
Michael_ has joined #ruby
generalissimo has quit [Remote host closed the connection]
moos3 has joined #ruby
rgrinberg has quit [Ping timeout: 252 seconds]
rpeterr has joined #ruby
banister`sleep is now known as banisterfiend
graydot has joined #ruby
_nitti has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
mando has quit [Remote host closed the connection]
Fernandos has left #ruby ["PART #angularjs :ISON mikolalysenko Mnkras-Laptop"]
staafl_alt has joined #ruby
InFlames has quit [Quit: This computer has gone to sleep]
Ontolog has quit [Ping timeout: 256 seconds]
staafl has quit [Read error: Connection reset by peer]
forrest has quit [Quit: Leaving]
Proshot has joined #ruby
prk` has joined #ruby
ravster has quit [Ping timeout: 252 seconds]
prk has quit [Remote host closed the connection]
prk` is now known as prk
kaballero has joined #ruby
danman has quit [Quit: danman]
daniel_- has quit [Ping timeout: 248 seconds]
pothibo has joined #ruby
v0n has quit [Read error: Operation timed out]
skattyadz has joined #ruby
Guedes0 has joined #ruby
vlad_starkov has joined #ruby
kaballero has quit [Client Quit]
saarinen has joined #ruby
niklasb has joined #ruby
alexwh has left #ruby [#ruby]
failshell has quit [Remote host closed the connection]
brianherman has quit [Read error: Connection reset by peer]
jp____ has joined #ruby
<Eiam>
apeiros: not ashamed to admit it, just sad =) I've avoided taking a job as a full time programmer because I feel like in my 30s I'm so far behind, I'd just be starting as a novice that has a lot of bad habits and stupid things
mmitchell has quit [Ping timeout: 256 seconds]
jerius has quit []
<Eiam>
I'm generally more focused on making code do things, not on… doing it right I suppose. anyway
<Eiam>
life sucks sometimes =)
<apeiros>
meh. age doesn't matter. willingness to learn and ability does.
wmoxam has quit [Ping timeout: 241 seconds]
<Eiam>
or ya know, time ;)
<gf3>
Psh, guy at my work just started programming about 6 months ago, he's now an iOS developer pumping out apps
<gf3>
He's 32
<appleseed>
I want to go back to programming in assembler....
<breakingthings>
You sound insane.
<Eiam>
not saying I cannot do it =) I said it would start me really far down
sailias has quit [Quit: Leaving.]
<breakingthings>
Which may or may not be a good thing depending on your individual frame of reference.
<Eiam>
I love programming, but not enough to change careers and start all over =)
<gf3>
Eiam: What do you do now?
<breakingthings>
^
<Eiam>
gf3: I'm an engineering project manager
<gf3>
Mmm
<breakingthings>
Good nuff for me
<breakingthings>
carry on
<Eiam>
I generally code to write tools to support that role.
horrror has quit [Quit: horrror]
<Eiam>
=)
enebo has quit [Quit: enebo]
postmodern has joined #ruby
<Eiam>
sometimes those tools are in ruby, sometimes obj-c, just whatever works
<banisterfiend>
Eiam: were you the guy who did a really expensive course on rails?
<tjbiddle>
What would be the windows equivalent of checking for the root of the system (Or drive - if that's my limit) - Eg in a *nix system I'd have (Dir.pwd == "/") or something
<Eiam>
banisterfiend: no, but I sure could use one =)
<Eiam>
i do rails stuff, poorly. but I do get things done!
Kar- has quit [Remote host closed the connection]
johnmilton has quit [Remote host closed the connection]
<banisterfiend>
Eiam: you seem to lack a bit of confidence :)
<breakingthings>
Getting things done is the first step to getting things done right
<Eiam>
banisterfiend: I lack time!
<banisterfiend>
Eiam: but once you 'grok' programming it all becomes easy
vlad_starkov has quit [Ping timeout: 276 seconds]
<Eiam>
tools are rarely essential to shipping products
<Eiam>
they are always nice to haves
<sam113101>
"grok"?
<banisterfiend>
sam113101: understand
Rumsteak_ has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
bklane has quit [Remote host closed the connection]
ravster has joined #ruby
travisjeffery has joined #ruby
Michael_ has quit [Remote host closed the connection]
Michael_ has joined #ruby
c0rn has quit [Quit: Lates.]
gr4yscale has joined #ruby
monkegjinni has quit [Remote host closed the connection]
toddWork_ has quit [Quit: toddWork_]
xardas has quit [Read error: Connection reset by peer]
s2013 has quit [Ping timeout: 245 seconds]
monkegjinni has joined #ruby
breakingthings has quit [Quit: breakingthings]
interactionjaxsn has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
Ortuna has joined #ruby
kirun has quit [Quit: Client exiting]
oxnard_ has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
akhet has quit [Remote host closed the connection]
manouch has joined #ruby
<manouch>
hi… this ignores symlink directories: spec/**/*_spec.rb
<manouch>
how can i enable it for symlink directories as well?
Ortuna has quit [Client Quit]
Michael_ has quit [Ping timeout: 256 seconds]
gaahrdner has joined #ruby
piatek has quit []
kpshek has quit []
c0rn has joined #ruby
c0rn has quit [Client Quit]
jtharris has quit [Quit: WeeChat 0.4.0]
Ortuna has joined #ruby
interactionjaxsn has quit [Ping timeout: 256 seconds]
arya has quit [Ping timeout: 248 seconds]
Spami_ has quit [Quit: This computer has gone to sleep]
Nuck has joined #ruby
ToApolytoXaos has quit [Quit: Leaving]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
mneorr_ has joined #ruby
<Eiam>
anyway, I do appreciate the help banisterfiend, apeiros etc =)
blacktulip has quit [Remote host closed the connection]
solidoodlesuppor has quit [Remote host closed the connection]
YanniHoza has joined #ruby
rgrinberg has joined #ruby
graft has quit [Ping timeout: 264 seconds]
Spami_ has joined #ruby
LaPetiteFromage has joined #ruby
peta_ has quit [Quit: peta_]
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
c0rn has joined #ruby
mneorr has quit [Ping timeout: 248 seconds]
moos3 has joined #ruby
m8tt8 has quit [Quit: Sto andando via]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
mercwithamouth has joined #ruby
reset has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
<Xeago>
no, leak in a pipe leading to possible contamination
<Xeago>
no, leak in a pipe leading to possible contamination
<Xeago>
just ferried 25L over
jnoob22 has quit [Remote host closed the connection]
_Amaan has quit [Quit: _Amaan]
<Xeago>
btw, am around now, girlfriend was using laptop
<Xeago>
while I was ferrying..
Nuck has left #ruby ["WeeChat 0.4.0"]
YanniHoza has quit [Remote host closed the connection]
helllen_ has quit [Quit: helllen_]
splittingred has quit [Quit: splittingred]
kpshek has joined #ruby
filipe has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
splittingred has joined #ruby
wolcanus_ has joined #ruby
wolcanus_ has quit [Remote host closed the connection]
kpshek has quit [Client Quit]
brianherman has joined #ruby
splittingred has quit [Client Quit]
<apeiros>
Xeago: np, but I'm off now. you wanted to send me an email, though ;-)
_nitti has quit [Remote host closed the connection]
_maes_ has quit [Ping timeout: 256 seconds]
wolcanus has quit [Read error: Operation timed out]
<apeiros>
(no hurry, though - won't get to read it before tomorrow evening)
zeeraw has joined #ruby
idkazuma has joined #ruby
<Xeago>
yes, first wcs then water, probably get it done tonight or else early morning
<Xeago>
we did defrost the freezer for water this morning, was quite desperate lol
pothibo has quit [Quit: pothibo]
LennyLinux has quit [Remote host closed the connection]
<Xeago>
was very good water
<Xeago>
tastier than most bottled water
kristofers has quit []
danslo has joined #ruby
ner0x has joined #ruby
matematikaadit has joined #ruby
Animawish has quit [Quit: Animawish]
zigomir has quit [Ping timeout: 276 seconds]
rhys_ has quit [Quit: Leaving]
<apeiros>
:)
<apeiros>
well, 25L should get you a bit for a while
<apeiros>
gn8 now
apeiros has quit [Remote host closed the connection]
filipe has quit [Remote host closed the connection]
moos3 has quit [Quit: Computer has gone to sleep.]
<Xeago>
take care
kil0byte has joined #ruby
SAUCYSALAMANDER has joined #ruby
Astralum has quit [Ping timeout: 246 seconds]
oxnard_ has quit [Read error: No route to host]
oxnard_ has joined #ruby
ariedler has quit [Remote host closed the connection]
pitzips has quit [Ping timeout: 256 seconds]
kindjal has quit [Quit: Computer has gone to sleep.]
mneorr has joined #ruby
breakingthings has joined #ruby
mneorr_ has quit [Read error: Connection reset by peer]
phrame has quit [Ping timeout: 256 seconds]
jdunck has quit [Quit: Computer has gone to sleep.]
nettoweb has quit [Quit: nettoweb]
Heero` has quit [Ping timeout: 276 seconds]
jdunck has joined #ruby
phrame has joined #ruby
<e-dard>
Supposing a function does not rely, whatsoever on state in the class it is defined in, is there any reason to make it an instance function? I don't see one, and coming from my background I wouldn't.
mboers has joined #ruby
<e-dard>
But I see a lot of "default" definitions in Ruby and especially Rails where things are defined as either methods, or instance functions. Why is this?
TotalEvil has joined #ruby
<TotalEvil>
hi2all
<TotalEvil>
anyone can help with gem -> rpm rhel
chrishunt has joined #ruby
<MrZYX>
e-dard: it might still fit into the domain of the class, also ruby has no functions, only methods ;)
<e-dard>
MrZYX I consider anything that does not rely on state not passed directly into the "method" a function.
tootubular has quit [Quit: tootubular]
<e-dard>
MrZYX That was a convoluted sentence, but you get the idea..
saarinen has quit [Quit: saarinen]
<MrZYX>
I consider everything that has a receiver a method
<MrZYX>
and in ruby every method call has an receiver
gyre007 has joined #ruby
<nightfly__>
but... lambdas...
<e-dard>
MrZYX: OK, we both agree with each other then. It's semantics :)
iamlacroix has joined #ruby
iamlacroix has quit [Remote host closed the connection]
mboers has quit [Client Quit]
Michael_ has joined #ruby
iamlacroix has joined #ruby
ShapeShi- is now known as ShapeShifter499
ravster has quit [Ping timeout: 245 seconds]
<MrZYX>
nightfly__: well, lambdas are kind of objects in ruby, not really functions either
<e-dard>
MrZYX: I guess I see the domain point, but personally I tend to define every method as a class method by default, unless there is a reason not to. Yet I see all around me defining instance methods unless there is a specific reason not to. Just wondered why this might be :)
dekz__ has joined #ruby
cofin has joined #ruby
<waxjar>
blocks/lambdas/procs are Ruby's functions, sort of
<lectrick>
We have a nasty situation where we have a suite of > 1000 tests and ONE of them is leaving state behind in such a way that it randomly causes another test to fail
iamlacroix has left #ruby [#ruby]
appleseed has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
<MrZYX>
hah, you're not alone
<lectrick>
I think I need to write a minitest runner which runs all tests in sequence, one at a time, with this one failing test, to figure out who's the culprit. Anyone ever seen a tool like this before?
<lectrick>
So if I have tests 1-10 and test 8 keeps failing it will run: 1, 8, 2, 8, 3, 8, etc... until it figures out who is the culprit
<waxjar>
e-dard, do you have any examples?
<MrZYX>
hm, in rspec once you discovered a seed that causes the right sequence you can pass it as parameter to reproduce, not sure if there's something like that for minitest
<lectrick>
MrZYX: The problem is that even with that, it could be ANY test that runs before it which is screwing things up
<e-dard>
waxjar: well I recently moved to a Ruby/Rails shop (my background is Python/Java and now some Go) and it's basically what I'm generally seeing in code-reviews.
<e-dard>
waxjar: people by default define instance methods even if they are not making use of any instance state. Seems to be a normal idiom.
vlad_starkov has joined #ruby
mediko_ has quit [Remote host closed the connection]
peteyg has quit [Ping timeout: 264 seconds]
<waxjar>
do you mean methods like to_s, for example?
moos3 has joined #ruby
<e-dard>
waxjar: no, because I assume something like to_s would be overloading the instance's method.
<e-dard>
s/overloading/overriding
moos3 has quit [Client Quit]
peteyg has joined #ruby
<e-dard>
I guess it's just style/habit, then :)
newUser1234 has quit [Remote host closed the connection]
daniel_- has joined #ruby
<waxjar>
give us some examples :) i don't really know what you mean
ccooke has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 240 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
rakl has quit [Quit: sleeping]
blueOxigen has quit [Ping timeout: 264 seconds]
jgrevich has joined #ruby
krnflake_ has joined #ruby
YanniHoza has joined #ruby
ccooke has joined #ruby
thebastl has quit [Remote host closed the connection]
slainer68 has quit [Remote host closed the connection]
LaPetiteFromage has left #ruby [#ruby]
aedornm has quit [Quit: Leaving]
Bosox20051 has joined #ruby
johnnyfuchs has quit [Ping timeout: 245 seconds]
Michael_ has quit [Remote host closed the connection]
JimmyNeutron has quit [Quit: Leaving]
<julianhurley>
NOOO JIMMMMYYYYY
Michael_ has joined #ruby
bobdobbs has joined #ruby
<rpeterr>
rock and roll mcdonalds
sepp2k1 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<gf3>
jkline: It thinks you're passing a block
t0rc has joined #ruby
<gf3>
jkline: BUT UR NOT #lol
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gf3>
julianhurley: \b is a word boundary
pevjan has joined #ruby
oxnard_ has quit [Quit: This computer has gone to sleep]
sepp2k has quit [Ping timeout: 256 seconds]
wolcanus has joined #ruby
<jkline>
gf3: what does "but ur not #lol" mean?
<gf3>
jkline: But you're not actually passing a block, haha
ohcibi has quit [Read error: Connection reset by peer]
<jkline>
oh, right
<jkline>
thanks!
<gf3>
jkline: You can do this though: wat foo: 'bar'
rgrinberg has quit [Ping timeout: 264 seconds]
<gf3>
jkline: Since the braces for the last hash parameter are implicit
matematikaadit has quit [Read error: Connection reset by peer]
rpeterr has quit [Quit: Lost terminal]
<gf3>
(or: wat :foo => 'bar')
ohcibi has joined #ruby
<bobdobbs>
Hi all. I don't know much about ruby, but I'm using it to compile sass. After a recent system update, I attempted to compile my sass as I normally do, with the command 'sass --watch'
<bobdobbs>
This resulted in an error: StringScanner::Error: regexp buffer overflow
wmoxam has joined #ruby
<bobdobbs>
I then used the flag --trace, and got this dump: