<jcp>
is it possible to install nokogiri on osx mavericks?
jcp is now known as Guest88900
<Guest88900>
because ive tried literally everything
Guest88900 is now known as streblo
<mobi_pontiki>
yes
yeticry has joined #ruby
<akerl>
Like what?
<mobi_pontiki>
have you got the latest Xcode installed?
<streblo>
ive installed libiconv, i'm pointing to the include directory with the gem flag, i can see the include directory has iconv.h, and it still complains about not being able to find iconv.h
fold has quit [Ping timeout: 244 seconds]
<akerl>
what
<streblo>
i have the latest Xcode, and i have the xcode command line tools installed
<akerl>
I have never in my life seen nokogiri complain about a header, and my setup is pretty great at catching weird pathing bugs
<streblo>
the main thing i dont understand is this message:
<streblo>
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:434:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
<streblo>
You have to install development tools first.
<akerl>
Which is why I expect it's something he's changed, which is like looking for a needly in the barn's haystack
<akerl>
streblo: Yes, that's how brew works
Mooneye has quit [Quit: Leaving]
<streblo>
i'm just confirming its there
<akerl>
does /usr/local/Cellar/libiconv/1.14/include/iconv.h exist?
<streblo>
yes
<ramers>
my school at last great me . once .
<shevy>
streblo but that is a symlink towards /usr/Cellar or? not /usr/local/Cellar
<akerl>
And you're specifying /usr/local/include when you build?
pu22l3r has joined #ruby
diegovio1 has joined #ruby
armyriad has quit [Quit: Leaving]
<streblo>
i'm specifying the /usr/local/Cellar/libiconv/1.14/include path
<akerl>
Why?
<akerl>
specify /usr/local/include
<ramers>
always jalousie
braincrash has joined #ruby
<ramers>
wthe school like me great to inscription . liked am i
diegoviola has quit [Ping timeout: 272 seconds]
<streblo>
negative, same problem
<akerl>
What's the exact command you're running?
<mobi_pontiki>
who is this ramers ra and what are they on about?
<shevy>
I think it's a bot
<streblo>
akerl: i dont think this is something ive changed, this is a new computer
armyriad has joined #ruby
<ramers>
i missed my like
<streblo>
and the only thing ive changed thus far was the permissions on /usr/local/bin, which i changed back to the default
<shevy>
the words seem consistently separated by two ' '
<ramers>
it exists
sevenseacat has joined #ruby
<shevy>
or not
<shevy>
lol
braincra- has quit [Ping timeout: 240 seconds]
<streblo>
im on the verge of reformatting this fucking thing
<streblo>
but i dont think itll actually solve anything
sprites has quit [Ping timeout: 264 seconds]
<ramers>
spouky is my
<ramers>
i missed my life . sorry
diegovio1 is now known as diegoviola
<ramers>
zero on sport
<ramers>
no rattrappage .
havenwood has quit [Remote host closed the connection]
caveat- has joined #ruby
<ramers>
ALL INTELLIGENCIA BEFORE TO TALk
<ramers>
ALL INTELLIGENCIA BEFORE TO TALK
<ramers>
SORRY MY friend .
<ramers>
IS YOUR FAULT ;
<streblo>
is there an op that can ban this asshole bot
<ramers>
TAKE THIS is your .
braincra- has joined #ruby
<diegoviola>
i've spent all weekend trying to debug some code that i didn't wrote myself, no luck... there's no error message, just some odd issue, any ideas what i can do at this point? sorry for being vague
<ramers>
well done this time . not very strongthat see sommewhere elese.
<ramers>
one against all
<ramers>
FIST THIS AVION ON FIRE
<ramers>
FIST THIS AVION ON FIRE aviation
<ramers>
FrST THIS AVION ON FIRE aviation
<ramers>
fist is aviotion on fire.
<ramers>
after you what is the retty language of world .
streblo has quit [Ping timeout: 240 seconds]
<sevenseacat>
anyone here know anything about the alchemist gem?
ghr has joined #ruby
<ramers>
after you what is the pretty language of world .
<ramers>
after you what is the pretty language of world ?
Hanmac1 has joined #ruby
<sevenseacat>
i just upgraded an app that uses (admittedly a very old version of) alchemist from 1.8.7 to 1.9.3, and now it's behaving very strangely
Hanmac has quit [Ping timeout: 244 seconds]
<sevenseacat>
i can no longer do really basic things like 1.Mb.to.kb
ghr has quit [Ping timeout: 252 seconds]
pu22l3r has joined #ruby
<ramers>
space time to . look star ine the sky
aspires has quit []
pu22l3r has quit [Read error: Connection reset by peer]
<ramers>
space time to . look star in the sky
aspires has joined #ruby
pu22l3r has joined #ruby
<IceDragon>
yo shevy, who or what is ramers?
<IceDragon>
no offense if its someone and not a bot.
sarkis has joined #ruby
<ramers>
no hundred tolking mutch . sorry .
<benzrf>
i ignored them :-)
<ramers>
not hundread tolking mutch . "sorry" .
<IceDragon>
gratz, someone give him the foot+ban treatment, his type is not welcome here
<ramers>
not hundread tolking mutch .sorry
mary5030 has joined #ruby
<ramers>
*ignored them when i say
<ramers>
time .
<ramers>
*ignored them when i say
<ramers>
look bother . first the chidren . most of mutch poeple .
diegovio1 has joined #ruby
diegoviola is now known as Guest4423
diegovio1 is now known as diegoviola
<ramers>
look brother first the chidren most of mutch poeple.
Guest4423 has quit [Ping timeout: 252 seconds]
<ramers>
i understand read maybe
<diegoviola>
i've spent all weekend trying to debug some code that i didn't wrote myself, no luck... there's no error message, just some odd issue, any ideas what i can do at this point? sorry for being vague
<ramers>
than to anwer not . ; TO UNDERSTAND MORE
<sevenseacat>
debug it?
<ramers>
than to aswer
<ramers>
i think to angletere
<ramers>
not self royauté indispensable
<ramers>
vive la républible
<ramers>
vive la françe dixit mittérrand .
bitscraper has quit [Quit: WeeChat 0.4.0]
<diegoviola>
sevenseacat: that's what i've been trying to do it, but no luck... i tried to use pry with binding.pry all over the place, i'm still trying
<ramers>
vive la françe dixit f.ittérrand .
<matti>
diegoviola: And the issue is?
<diegoviola>
sevenseacat: there are no error messages
<ramers>
vive la françe dixit f.mitterrand
braincra- has quit [Ping timeout: 272 seconds]
senayar has joined #ruby
<ramers>
VIVE LA R2BUBLIQUE ; VIVE LA FRAN9E ; DIXIT F ; MITTERAND ;
<diegoviola>
matti: the application pulls data from a web service and then tries to update that data with the database, but the data is not consistent or is out of sync, so there are parts in the application where it reads data directly from the webservice (for example, it says there are 50 garages available) and then there's another part where it says there's 70 garages available
<RubyPanther>
diegoviola: What I do is I stare at the code until the bug starts to feel heavy
<ramers>
vive la république vive la france dixit f. mittérran,d
<ramers>
vive la république vive la france dixit f. mittérrand
<diegoviola>
matti: so it reads data from different places and i have no idea
<ramers>
vive la république vive la france dixit f.mittérrand
monkegjinni has joined #ruby
braincrash has joined #ruby
spastorino has joined #ruby
alexju has joined #ruby
<diegoviola>
for example, it says floor 5 has 10 garages available, but then there's another part where it claims floor 5 has 15 garages, etc
<diegoviola>
RubyPanther: yeah maybe i should try that
<RubyPanther>
diegoviola: Just unify all the data access in one place, don't fight the legacy monster, just brick over the cave opening
<foobarbaz_>
" <diegoviola> sevenseacat: that's what i've been trying to do it, but no luck... i tried to use pry with binding.pry all over the place, i'm still trying"
<foobarbaz_>
Have you tried an IDE with the inbuilt debugging tools?
<sevenseacat>
you havent told us an issue we can help with yet
dseitz has joined #ruby
binaryhat has quit [Quit: Leaving]
<RubyPanther>
how is "use the force" not going to help??
<ramers>
il nous a accompagner en europe le troper est simple tout dabord
<sevenseacat>
i'm trying to use tge force on my alchemist issue... no luck
<diegoviola>
right i should have been more specific
<ramers>
c'était son idée
lw has quit [Quit: s]
<ramers>
avec l'allemagne
<ramers>
une europe unis contre la guerre .
<diegoviola>
but there are lots of code and i have no idea where the issue is, i just know there's an issue
<sevenseacat>
well how do you know there;'s an issue
saarinen has joined #ruby
jameswlane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ramers>
la solution est evidement pas la guerre
MatthewsFace has joined #ruby
<ramers>
chacun ne devrait pas choisir ça
<ramers>
dans l'ensemble .
<RubyPanther>
it is obviously not DRY, and that is why mold is growing
r_rios has joined #ruby
kenneth has joined #ruby
monkegjinni has quit [Ping timeout: 272 seconds]
<ramers>
parler aussi de chomage
<ramers>
à faire en sorte que le constat s'inverse
<diegoviola>
sevenseacat: because the user is complaining about it, and the data is not consistent, it says floor 1 has 5 garages available, while in another page, it says the same floor has 10 garages available, data is not consistent
<ramers>
il sera ensuite plus senssible
krz has joined #ruby
<ramers>
aussibien
ascarter has joined #ruby
<sevenseacat>
well which page has the error on it?
<ramers>
de détruire les armes .
<sevenseacat>
trace back where that page is getting its dodgy data from
<diegoviola>
sevenseacat: i looked at the code, there's a controller where an action would pull data from the web service directly via SOAP/XML and there's another controller/action where it pulls the data from the database
<RubyPanther>
fix the OO and the bug will crawl away, no need to bother with killing it
<sevenseacat>
so which one is right and which is wrong?
<diegoviola>
sevenseacat: but there's also a method where the code will try to pull data from the web service and update the database with that data
<sevenseacat>
sigh
<diegoviola>
sevenseacat: the one in the database is wrong
<sevenseacat>
so stop trying to read it from the database then
<ramers>
en tout les cas .
<ramers>
il sera ensuite plus senssible
<ramers>
aussibien
<ramers>
de détruire les armes .
<ramers>
en tout les cas .
mgberlin has joined #ruby
<diegoviola>
sevenseacat: thanks, that's helpful
<sevenseacat>
well it doesnt appear to be something you've considered
<diegoviola>
what kinda scares me about this is that i don't know the code at all, it also has no test suite
<diegoviola>
so i'm afraid to change things
<diegoviola>
if i change something the whole thing can break
<diegoviola>
there's no test suite at all
<sevenseacat>
well then you better just never change anything, ever.
braincra- has joined #ruby
braincrash has quit [Ping timeout: 240 seconds]
braincra- is now known as braincrash
havenwood has joined #ruby
<ramers>
je demande pas ça disparition
<ramers>
ni meme ceux s'en servir .
<diegoviola>
sevenseacat: well i'd rather try it anyway
<sevenseacat>
then start writing tests to cover the functionality that you're changing
<RubyPanther>
sounds like time for somebody to do some QA work and write some integration tests. It's not like you need to test everything.
cantonic has quit [Quit: cantonic]
<diegoviola>
thanks
<ramers>
LES ARMES EXIST SUR LE PAPIER ;
<diegoviola>
ramers: stop spamming, damn
<ramers>
les armes existe sur le papier ecrit à la craie
<ramers>
ecrit à la craie sur le bitume ;
<ramers>
ecrit à la craie sur le bitume .
radic has quit [Ping timeout: 272 seconds]
aspires has quit []
<ramers>
UE ARME DE PLUS INVENTER SON FONSCTIONNEMENT
<RubyPanther>
# /ignore *!*@cha92-4-82-224-226-31.fbx.proxad.net ALL
<diegoviola>
oh well, /ignore is good
<ramers>
Un ARME DE PLUS INVENTER SON FONSCTIONNEMENT
<ramers>
Une ARME DE PLUS INVENTER SON FONSCTIONNEMENT
<ramers>
Une arme de plus inventer son fonctionnement
caveat- has quit [Ping timeout: 240 seconds]
<ramers>
pas à tester
<ramers>
surrement pas à tester
jamto11 has joined #ruby
mattmcclure has joined #ruby
pu22l3r has quit [Remote host closed the connection]
fcoury has joined #ruby
Bumptious has joined #ruby
kenndel has joined #ruby
blackgoat has joined #ruby
radic has joined #ruby
foobarbaz_ has quit [Ping timeout: 246 seconds]
blackgoat has quit [Client Quit]
fcoury has quit [Remote host closed the connection]
kenndel_ has quit [Ping timeout: 240 seconds]
<ramers>
je suit peut admiratif d'ailleur comme le dessins à leurs dire un truc de nouveau c'est ancien.
<ramers>
je suit peu admiratif d'ailleur comme le dessins à leurs dire un truc de nouveau c'est ancien.
freerobby has joined #ruby
<ramers>
LES OVNIS DANS LA VISION DE 90 DEGR2 EN D2PLACEMENT
<ramers>
L4ENVIRRONEMENT 0 VOIR
kenndel has quit [Read error: Connection reset by peer]
<ramers>
AUTREMENT C4EST JUSTE NUL ou extra
jamto11 has quit [Ping timeout: 255 seconds]
danshult_ has joined #ruby
<ramers>
l'envirronnement c'est tres beau dans la civilisation offert .
caveat- has joined #ruby
<ramers>
à tous depuis la naissance
sepp2k1 has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
hgl has joined #ruby
mikepack has joined #ruby
pencilcheck has joined #ruby
<pencilcheck>
hey
<pencilcheck>
is it possible to call a function that doesn't accept arguments with arguments without raising exception? just like how javascript does it?
<ramers>
j'appréçie mieu ayant de la famille frere et soeur que moi .
<ramers>
instinctivement
<sevenseacat>
dont think so, but i could be wrong
<pencilcheck>
hm
<pencilcheck>
that sucks
<pencilcheck>
but can I know if the function accepts any arguments?
<ramers>
la lois ont pourrait s'en fiche chez les franc maçon
<pencilcheck>
maybe not a function, but a proc or lambda
badhatter has quit [Disconnected by services]
<ramers>
quelques fois des raisonnement idiot en faite l'emsemble .
r_rios has quit [Ping timeout: 272 seconds]
danshult_ has quit [Ping timeout: 252 seconds]
mikepack has quit [Client Quit]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ramers>
COMME DES GENS DU D2BART SYMPA
<ramers>
PRISE DE CONFIANCE
ahofmann has joined #ruby
<ramers>
MAIS PAS TELLEMENT SOFT dans l'idée de planée dans l'environnement
asteve has joined #ruby
<ramers>
l'avion sans moteur .
<ramers>
attérrire à coté ou pas loin
<ramers>
un vole planer pas tres heut .
<ramers>
un vole planer pas tres hat .
<ramers>
un vole planer pas tres haut.
joaoh82 has quit [Remote host closed the connection]
Nameo0 has joined #ruby
<ramers>
demi tour l'attérrissage ensuite ou lautre . 360
<ramers>
deux fois 45
asteve has quit [Client Quit]
<ramers>
prenons lautre piste au pire dans la nature
<ramers>
activation du gps au mayday
joaoh82 has joined #ruby
definiv has joined #ruby
<ramers>
le meilleur est un siege ejectable .
<ramers>
c'est etrage de pas y penser .
<ramers>
meme proche du sole
<ramers>
meme proche du sol
<ramers>
pas telle ment à l'envers
streblo has joined #ruby
pvb has joined #ruby
<bean>
ramers, please leave if you're going to spam
pylix has joined #ruby
caveat- has quit [Ping timeout: 240 seconds]
<ramers>
un siege ejectable tout le temps la brasserie à coté
<ramers>
ont y pense pase à passer son cod
<ramers>
ont y pense pase à passer son code
<ramers>
ont y pense pen à passer son code
<ramers>
ont y pense pas passer son code
<bean>
This is an english channel ramers
<ramers>
le siege ejectable assez seul dans le ciel est de tout façon une obliguation.
<ramers>
au dernier cas en haut .
mgberlin has quit [Remote host closed the connection]
<ramers>
meme proche du sol
caveat- has joined #ruby
<ramers>
fréquenter pour attérir en sécriter procher du sol
<ramers>
fréquenter pour attérir en sécriter procher du sol
mgberlin has joined #ruby
<ramers>
fréquenter pour attérir en sécriter proche du sol
<ramers>
gps
<ramers>
gps inscrit .
<ramers>
c'est appyyer .
<ramers>
si tel est le cas c'est un accident
<ramers>
autrement il s'est endormit ;
<ramers>
autrement il s'est endormit;
<ramers>
autrement il s'est endormit.
<sevenseacat>
i dont think he cares.
<bean>
apeiros, hey are you around.
<definiv>
anglais seulement ici
d5sx43 has quit []
<toretore>
it's a bot
d5sx43 has joined #ruby
<bean>
i figured.
d5sx43 has quit [Client Quit]
<RubyPanther>
# /ignore *!*@cha92-4-82-224-226-31.fbx.proxad.net ALL
d5sx43 has joined #ruby
kireevco has quit [Quit: Leaving.]
<bean>
is it just a random bot, or does someone own it?
aantix has joined #ruby
<bean>
banister, uo
<bean>
yo*
<bean>
Mon_Ouie, yo
IceDragon has quit [Ping timeout: 244 seconds]
kireevco has joined #ruby
<ramers>
AVOIR PLEINS DE GENS EN RESPONSABILIT2 C4EST PIRE ; IL YA PRATIQUEMENT AUCCUN PARRACHUTTE PROCHE DU SOLE
<ramers>
AVOIR PLEINS DE GENS EN RESPONSABILIT2 C4EST PIRE ; IL YA PRATIQUEMENT AUCCUN PARRACHUTTE PROCHE DU SOL
d5sx43 has quit [Read error: Connection reset by peer]
<ramers>
j'ecrit une lettre si jai pas le temps ..
<ramers>
JE VOUS AIMES SAVOIR CE QUE S4AIT LAMOUR
<ramers>
VOUS APPR29I2 ;
<ramers>
vous appréçié.
<ramers>
j'ecrit une lettre ouverte pas le temps ..
niftylettuce_ has joined #ruby
r_rios has joined #ruby
<ramers>
j'ecrit une lettre ouverte si ja le temps
<ramers>
j'ecrit une lettre ouverte si jaile temps
saarinen has quit [Quit: saarinen]
<ramers>
je vous vous aimes et appréçié .
jack_rabbit has joined #ruby
<ramers>
tire la manette ejectable si seulement ça fonctionne
<ramers>
il ya un parachute avec le siege
ghr has joined #ruby
dgutierrez1287 has quit [Ping timeout: 264 seconds]
<ramers>
et une boué .
<ramers>
etre dans la bonne direction respirer de l'air
<ramers>
c'est pas un mauvait conducteur.
Bumptious has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
<ramers>
les minute compte . au quel cas
<ramers>
voir une insolence de medecin
<ramers>
. au norme
danijoo has joined #ruby
r_rios has quit [Remote host closed the connection]
<ramers>
c'est ggné presque le savoir
<ramers>
c'est gané presque le savoir
<ramers>
c'est gangnpresque le savoir
<ramers>
c'est gagné presque le savoir
<ramers>
aux meme moment .
phutchins has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
<ramers>
un hero est né
<ramers>
dieu recupere pardois les meilleur .
r_rios has joined #ruby
<ramers>
dieu recupere pardois les meilleurs .
<ramers>
dieu recupere parfois les meilleurs .
<ramers>
comment dire alors de tous et ceux qui sont aimé que seulement une creation divin tout seul .
lw has joined #ruby
<ramers>
une prise electrique assez raisonable pour revenir
etqqkoiflwhb__ has quit [Ping timeout: 240 seconds]
snardbafulators has quit [Quit: I want to fuck TimothyWT up the ass.]
<pontiki>
crazy captain skippy?
dreamchaser has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mercwith1mouth has quit [Ping timeout: 264 seconds]
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
blackthor has joined #ruby
NukePuppy has joined #ruby
tkuchiki has joined #ruby
IceDragon has quit [Quit: Space~~~]
<Mon_Ouie>
Again? Seems like it happens just a bit too early for me to ban him every time
chipotle_ has joined #ruby
timonv has joined #ruby
nerdy has joined #ruby
chipotle has quit [Ping timeout: 264 seconds]
combusean has quit [Quit: Leaving.]
sinkensabe has joined #ruby
whyy has joined #ruby
lkba has joined #ruby
combusean has joined #ruby
tagrudev has joined #ruby
toastynerd has joined #ruby
why_away has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
whyy has quit [Ping timeout: 272 seconds]
ta has quit [Remote host closed the connection]
whyy has joined #ruby
mikepack has quit [Remote host closed the connection]
toastynerd has quit [Ping timeout: 240 seconds]
whyy has quit [Remote host closed the connection]
mijicd has joined #ruby
why_away has quit [Ping timeout: 255 seconds]
mengu has joined #ruby
why_away has joined #ruby
nitr has joined #ruby
himsin has joined #ruby
ghr has joined #ruby
MrDoctor has joined #ruby
heftig has quit [Quit: Quitting]
diegovio1 has joined #ruby
GriffinHeart has joined #ruby
diegoviola has quit [Ping timeout: 252 seconds]
nitr has quit [Ping timeout: 255 seconds]
NukePuppy has quit [Ping timeout: 245 seconds]
diegovio1 is now known as diegoviola
ghr has quit [Ping timeout: 255 seconds]
apeiros has quit [Read error: Connection reset by peer]
dumdedum has joined #ruby
apeiros has joined #ruby
nitr has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
frogssgy is now known as frogsy
yacks has joined #ruby
ramers has joined #ruby
ramers has left #ruby [#ruby]
ta has joined #ruby
chihhsin has quit [Ping timeout: 276 seconds]
anarang has joined #ruby
diegoviola has quit [Remote host closed the connection]
chihhsin has joined #ruby
relix has joined #ruby
monday22 has joined #ruby
apeiros has quit [Remote host closed the connection]
dangerousdave has joined #ruby
apeiros has joined #ruby
Xeago has joined #ruby
timonv has quit [Remote host closed the connection]
<monday22>
how can i get mor information about a specific gem listet by gem -r xy. I want basic informations for what a gem is.
monkegjinni has joined #ruby
timonv has joined #ruby
<pontiki>
you could look it up on rubygems
aspires has quit []
<pontiki>
night all
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
apeiros has quit [Ping timeout: 252 seconds]
<mnemon>
monday22: gem specifications gemnamehere
nfk has joined #ruby
monkegjinni has quit [Ping timeout: 255 seconds]
Xeago has quit [Ping timeout: 272 seconds]
timonv has quit [Ping timeout: 272 seconds]
nerdy has quit [Quit: Computer has gone to sleep.]
bal has joined #ruby
<sevenseacat>
unknown command specifications, here
<mnemon>
*specification
mostlybadfly has quit [Quit: Connection closed for inactivity]
krz has quit [Read error: Connection reset by peer]
<sevenseacat>
hey cool :)
charliesome has joined #ruby
gruz0[russia] has quit [Quit: This computer has gone to sleep]
krz has joined #ruby
<sevenseacat>
a bit hard to read because its just a yaml dump, but still, cool
gruz0[russia] has joined #ruby
subraminion has joined #ruby
kireevco1 has quit [Quit: Leaving.]
why_away is now known as whyy
kiri has joined #ruby
jamto11 has joined #ruby
whyy has quit []
klaut has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
<monday22>
mnemon: Unknown command specifications
bal has quit [Read error: Connection reset by peer]
bal has joined #ruby
ValicekB has quit []
<mnemon>
monday22: yeah like i said, typo ... it's "gem specification"
toastynerd has joined #ruby
<monday22>
mnemon: pk, thanks. wonder that this command is not listed under gem -h
gruz0[russia] has quit [Quit: This computer has gone to sleep]
etqqkoiflwhb__ has joined #ruby
<Hanmac1>
monday reading helps "gem help commands list all 'gem' commands"
lxsameer has joined #ruby
ta has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
adhdhero has joined #ruby
<adhdhero>
I can't concentrate. Can you recommend a good concentration camp with nice Jewish kids for me?
alexju has joined #ruby
fgo has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
fantazo has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
anaeem1_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
holden247 has joined #ruby
Macaveli has joined #ruby
duncannz has joined #ruby
duncannz has joined #ruby
duncannz has quit [Client Quit]
duncannz has quit [Client Quit]
ValicekB has joined #ruby
sarkis has quit [Ping timeout: 264 seconds]
DouweM has quit [Ping timeout: 276 seconds]
duncannz has joined #ruby
jackneill has joined #ruby
sinkensa_ has joined #ruby
arya_ has joined #ruby
sinkensa_ has quit [Ping timeout: 240 seconds]
bigkevmcd has joined #ruby
tomaw has quit [Ping timeout: 610 seconds]
combusean has quit [Quit: Leaving.]
tomaw has joined #ruby
monday22 has quit [Quit: Page closed]
fgo has joined #ruby
jprovazn has joined #ruby
toastynerd has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
jarray52 has joined #ruby
mengu has quit [Ping timeout: 245 seconds]
Asher has quit [Remote host closed the connection]
<jarray52>
Is there any way to call module methods (i.e methods defined with def self.my_method) as class methods from a class that mixes in the module?
Asher1 has joined #ruby
Asher1 is now known as Asher
CorpusCallosum has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
ghr has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby
axl_ has joined #ruby
sinkensabe has joined #ruby
ByronJohnson has joined #ruby
ByronJohnson has left #ruby [#ruby]
axl_ has quit [Client Quit]
MrDoctor has quit [Ping timeout: 240 seconds]
narendraj9 has joined #ruby
mijicd has quit [Quit: Lost terminal]
zigomir has joined #ruby
fabrice31 has joined #ruby
subraminion has quit [Remote host closed the connection]
subraminion has joined #ruby
baroquebobcat has joined #ruby
<Hanmac1>
jarray52: nope, you need module_function
Hanmac1 is now known as Hanmac
Morkel has joined #ruby
<adhdhero>
I can't concentrate. Can you recommend a good concentration camp with nice Jewish kids for me?
<jarray52>
Hanmac1: what is module_function?
baroquebobcat has quit [Client Quit]
mijicd has joined #ruby
<jarray52>
Hanmac1: Google helped me out.
<jarray52>
I'm reading up on that one.
mijicd has quit [Client Quit]
mijicd has joined #ruby
<Hanmac>
apeiros: huhu
dreamchaser has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Mon_Ouie>
Wrong 'a' I think
arya__ has joined #ruby
ghr has joined #ruby
arya_ has quit [Ping timeout: 240 seconds]
ghr has quit [Client Quit]
ghr has joined #ruby
riotjone_ has quit [Quit: waT]
timonv has joined #ruby
noop has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
holden247 has left #ruby [#ruby]
anarang has quit [Quit: Leaving]
mijicd has quit [Quit: leaving]
<apeiros>
hi Hanmac
mijicd has joined #ruby
<Hanmac>
apeiros: look at the last lines of adhdhero
<apeiros>
Hanmac: oh dear
Xeago has joined #ruby
adhdhero was kicked from #ruby by apeiros [absolutely inappropriate. go away.]
<Mon_Ouie>
Oh man, I hadn't even read what he said
mijicd has quit [Client Quit]
<apeiros>
Hanmac: thank you very much
<apeiros>
such scum is not welcome here.
timonv has quit [Ping timeout: 255 seconds]
ddv has quit [Changing host]
GriffinHeart has joined #ruby
LiohAu has joined #ruby
alem0lars has joined #ruby
harryk has joined #ruby
grieg has joined #ruby
arya_ has joined #ruby
shevy has quit [Ping timeout: 244 seconds]
anarang has joined #ruby
arya__ has quit [Ping timeout: 272 seconds]
harryk has quit [Ping timeout: 244 seconds]
<certainty>
ugh, disgusting.
<certainty>
also moin
harryk has joined #ruby
mijicd has joined #ruby
zarubin has joined #ruby
mijicd has quit [Client Quit]
mijicd has joined #ruby
mijicd has quit [Client Quit]
Takle has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mijicd has joined #ruby
alex88 has joined #ruby
relix has joined #ruby
ValicekB has quit []
tectonic has quit []
mehlah has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
shevy has joined #ruby
klaut has quit [Remote host closed the connection]
<Nilium>
Also odd that keyword/named arguments can only have symbols as names.
<Hanmac>
Nilium: thats not odd
<survili>
Hi all. I have a project, in which I'm dynamically requiring .rb files and then using Kernel.const_get I get reference to the class.. it all works fine using MRI, but I want to run my project in Jruby and for some reason the call to Kernel.const_get throws exception "wrong constant name XXX:Yyyy". I am wondering, is there some different way I can dynamically require .rb files and the get reference to them ?
heftig has quit [Quit: Quitting]
<jhass>
Nilium: they don't? they just look the same
<jhass>
they're still variables
<Hanmac>
survili: thats because your Jruby is to old
<Nilium>
jhass: No, I mean you can't do foo(**{ 1 => 3 })
<jhass>
sure not, you can't have a local named 1
<Hanmac>
Nilium: are you sure?
toastynerd has quit [Ping timeout: 244 seconds]
<survili>
Hanmac: don't know what is the reason, I'm wondering how it runs rails... but can you help me with alternative to Kernel.const_get ?
<Hanmac>
yep "wrong argument type Fixnum (expected Symbol)"
mijicd has quit [Remote host closed the connection]
<jhass>
Nilium: that's like expecting instance_variable_set(1, 3) to work
<Nilium>
..
<DouweM>
Nilium: how would you have that work?
<DouweM>
jhass: yeah exactly
<Nilium>
Have it get swallowed.
<Nilium>
It either goes in the catch-all argument or it's an error.
pylix has quit [Ping timeout: 244 seconds]
<DouweM>
Nilium: swallowing is asking for trouble
<Hanmac>
survili: the internal ruby version for this jruby to old ... it runs in 1.8 mode which is outdated ... ask at #jruby why they are outdated
<jhass>
Nilium: the point of introducing named arguments is having validation by the interpreter
mijicd has joined #ruby
<Nilium>
I'm not serious about having it work, I'm just pointing out it's odd since it ends up being a hash
<Nilium>
A limited hash, anyway
<survili>
Hanmac: actually I'm running in 1.9 mode(ruby "1.9.3", :engine => "jruby", :engine_version => "1.7.12"). I asked on #jruby but not getting any answers for 30 min, so I thought I'd try my luck here
mijicd has quit [Remote host closed the connection]
Guest5953 is now known as marr
<jhass>
Nilium: no you convert a hash to named arguments and then named arguments to hash, that's two conversions steps which shouldn't short-circuit. If you want to pass a hash, accept a hash
<DouweM>
wasn't aware that didn't work before. nice
gruz0[russia] has joined #ruby
Takle has joined #ruby
barratt has quit [Ping timeout: 255 seconds]
sinkensabe has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
kilk_ has joined #ruby
sinkensabe has joined #ruby
kilk_ has quit [Client Quit]
matrixise has quit [Ping timeout: 245 seconds]
kilk_ has joined #ruby
xcv has joined #ruby
kilk_ has quit [Client Quit]
MK has joined #ruby
MK is now known as Guest98048
sinkensabe has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
nitr has joined #ruby
Guest98048 has left #ruby [#ruby]
<survili>
Hanmac: 2.1.1 amd 2.1.2, both worked
hello_world101 has joined #ruby
<Hanmac>
survili: thats why, your jruby version is older than your MRI verstion thats why something like that happens
kyb3r_ has quit [Read error: Connection reset by peer]
mist has quit [Ping timeout: 612 seconds]
moritzs has joined #ruby
sinkensabe has joined #ruby
<survili>
Hanmac: you think, it won't work in MRI 1.9.3 ? Kernel.const_get is it something relatively new ? (I haven't seen it as something new in Ruby 2)
hello_world101 has quit [Client Quit]
<Hanmac>
survili: Object.const_get("RbConfig::CONFIG") does not work on 1.9 and lower, you need "RbConfig::CONFIG".split("::").inject(Object,:const_get) there
fgo has quit [Remote host closed the connection]
gruz0[russia] has quit [Quit: This computer has gone to sleep]
zoraj_ has joined #ruby
hello_world101 has joined #ruby
hello_world101 has quit [Client Quit]
oo_ has joined #ruby
ohvlad has quit [Ping timeout: 244 seconds]
zoraj has quit [Ping timeout: 264 seconds]
tobago has quit [Remote host closed the connection]
subraminion has quit [Quit: Computer has gone to sleep.]
MrDoctor has quit []
fabrice31 has quit [Remote host closed the connection]
sarkis has joined #ruby
Mattias has quit [Ping timeout: 245 seconds]
tiguser has quit [Ping timeout: 276 seconds]
obs has joined #ruby
Mattias has joined #ruby
Arkaniad has quit [Remote host closed the connection]
roby77 has joined #ruby
<roby77>
!ciao
<roby77>
!lista
gigetoo has quit [Ping timeout: 245 seconds]
sarkis has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
roby77 has left #ruby [#ruby]
tiguser has joined #ruby
gigetoo has joined #ruby
pranny has joined #ruby
tkuchiki has quit [Remote host closed the connection]
subraminion has joined #ruby
subraminion has quit [Remote host closed the connection]
tkuchiki has joined #ruby
subraminion has joined #ruby
jamto11 has quit [Ping timeout: 245 seconds]
mrmist has joined #ruby
tiguser has quit [Ping timeout: 252 seconds]
obs has left #ruby [#ruby]
frosgy has joined #ruby
mrmist is now known as mist
tiguser has joined #ruby
maximski has joined #ruby
frogsy has quit [Ping timeout: 272 seconds]
franka_ has joined #ruby
Dingus has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
seaned has joined #ruby
mrnugget has joined #ruby
Joulse has quit [Quit: Joulse]
<survili>
Hanmac: thanks, I will try that now!
ayaz has joined #ruby
railzForDaiz has quit [Ping timeout: 240 seconds]
Joulse has joined #ruby
DrCode has quit [Remote host closed the connection]
hackeron has quit [Ping timeout: 245 seconds]
DrCode has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
hackeron has joined #ruby
fgo has joined #ruby
toastynerd has joined #ruby
railzForDaiz has joined #ruby
<survili>
Hanmac: THANKS A LOT!
fgo has quit [Ping timeout: 240 seconds]
subraminion has quit [Quit: Computer has gone to sleep.]
toastynerd has quit [Ping timeout: 272 seconds]
pranny has quit [Quit: Leaving.]
pranny has joined #ruby
himsin has quit [Quit: himsin]
zoraj_ has quit []
zoraj has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
seaned has quit [Quit: seaned]
Takle has quit [Remote host closed the connection]
DrCode has quit [Ping timeout: 264 seconds]
Asher has quit [Read error: Connection reset by peer]
pranny has quit [Quit: Leaving.]
adnausea1 has quit [Ping timeout: 252 seconds]
Asher has joined #ruby
obs has joined #ruby
Asher has quit [Read error: Connection reset by peer]
adnauseam has joined #ruby
subraminion has joined #ruby
mengu has quit []
Joulse has quit [Quit: Joulse]
Asher has joined #ruby
DrCode has joined #ruby
ephemerian has joined #ruby
roshanavand has joined #ruby
Takle has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
<shevy>
dumdedum
oo_ has quit [Remote host closed the connection]
<canton7>
dedede
danijoo has joined #ruby
r_rios has joined #ruby
pranny has joined #ruby
duncannz has quit [Ping timeout: 255 seconds]
fabrice31 has joined #ruby
phoo1234567 has joined #ruby
<shevy>
did you guys ever wish to package all dependencies of any given gem into the same gem?
<jhass>
no
danshult_ has joined #ruby
joaoh82 has quit [Remote host closed the connection]
jackneill has quit [Quit: jackneill]
Darryl has quit [Quit: Connection closed for inactivity]
apx has joined #ruby
<apx>
Ho! Is there a way to make Ruby dump the AST of the code?
sarkis has joined #ruby
apx has quit [Changing host]
apx has joined #ruby
<Mon_Ouie>
apx: Ripper.sexp(code)
<Mon_Ouie>
(You need to require 'ripper' first)
jarray52 has left #ruby [#ruby]
<apx>
Is it possible to dump the AST of the current runtime code? That is, not requiring to pass the code but loading the target script
<apx>
like require "ripper" require "targetscript" <dumpast>
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
blackthor has joined #ruby
sarkis has quit [Ping timeout: 240 seconds]
<Mon_Ouie>
You can print File.open(__FILE__) { |io| Ripper.sexp(io) }
sinkensabe has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
<apx>
tl;dr I am currently reverse engineering a rubyencoder encrypted script that was encoded by a coworker of us before he parted the company
Takle has quit [Remote host closed the connection]
kirun has joined #ruby
alem0lars has joined #ruby
<Mon_Ouie>
Well I don't know about RubyEncoder so I wouldn't know what happens with it
fgo has joined #ruby
fgo has quit [Client Quit]
sinkensabe has quit [Ping timeout: 264 seconds]
<apx>
It seems that in the binary of RubyEncoder it decrypts code by means of XOR, some blowfish hashing and CRC routines. then it dumps the resultcode to ruby and that's pretty much it as far as I can see
fschuindt has joined #ruby
fschuindt has quit [Max SendQ exceeded]
Takle has joined #ruby
dorei has joined #ruby
<dorei>
hello, any idea how can I replace all whitespace at the beggining or the end of a String with underscores? some_string.gsub(/^\s+|\s+$/,'_') unfortunately replaces all whitespace at the beggining or the end with just one underscore
<canton7>
dorei, two ways (that I can think of)
<canton7>
1) use the form of gsub which takes a block, and be smart about your replace string
oo_ has joined #ruby
<canton7>
2) make your rule match a single space (in the right place), and replace that with an underscore
<dorei>
i dont think i understart 2, so i'll give 1 a try :)
Mon_Ouie has quit [Ping timeout: 272 seconds]
<canton7>
yeah, 1) comes out really nicely
danijoo has quit [Read error: Connection reset by peer]
klaut has quit [Remote host closed the connection]
<canton7>
sure, that works
<jhass>
you're yielded the match, no need to resort to the global
<canton7>
I'd have gone for .gubs(...){ |m| '_' * m.length } myself
<dorei>
jhass: thanks, no global = less uglyness :)
oo_ has quit [Ping timeout: 255 seconds]
joaoh82 has joined #ruby
tkuchiki has joined #ruby
garndt has joined #ruby
yfeldblum has joined #ruby
toastynerd has joined #ruby
danshult_ has quit []
himsin has joined #ruby
gr33n7007h is now known as rubyXchat
rubyXchat is now known as gr33n7007h
teoric has joined #ruby
setra has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
joaoh82 has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
toastynerd has quit [Ping timeout: 272 seconds]
<workmad3>
dorei: don't forget that .tr(' ', '_") will only change spaces though
<workmad3>
dorei: so you might really want "_" * match.size
autonomo_ has joined #ruby
GreekFreak has joined #ruby
<GreekFreak>
hi all
<GreekFreak>
I would like to display a string as following var = "Something '#{my_var}' cool". How do I escape the quotes from within the my_var variable?
autonomo_ has quit [Client Quit]
autonomousdev has joined #ruby
Mon_Ouie has joined #ruby
teoric has quit [Quit: WeeChat 0.4.2]
<gr33n7007h>
GreekFreak, use backslash
gattuso has quit [Ping timeout: 260 seconds]
<workmad3>
GreekFreak: you don't need to there
<GreekFreak>
workmad3, I'm doing this "<span title='#{my_title}'>foobar</span>" If my_title has single quotes then I don't get the right title. It's on ROR
<workmad3>
GreekFreak: that's a different type of quoting ;)
<workmad3>
GreekFreak: namely, HTML output
<workmad3>
GreekFreak: and you shouldn't be using raw strings for HTML... it bypasses all of the stuff rails gives you for generating good HTML output
<workmad3>
GreekFreak: in your case, I'd suggest using 'content_tag(:span, title: my_title, "foobar")' (content_tag can also take a block for content too)
<GreekFreak>
workmad3, I'm using this from withing a datatable (a custom class to display datatables), and not a .html.haml file
gattuso has joined #ruby
<GreekFreak>
workmad3, it's a .rb file... hence the string
<workmad3>
GreekFreak: I wasn't talking about template files either
<GreekFreak>
workmad3, ok. let me try it
<workmad3>
GreekFreak: content_tag is for generating HTML tags from within ruby files and helpers without resorting to spitting back string literals and screwing stuff up with home-rolled HTML escaping
<workmad3>
GreekFreak: you may need to pull in a view helper or two to get to content_tag from within your own files... not sure which ones though ;P
TheKruex has joined #ruby
spider-mario_ has joined #ruby
spider-mario has quit [Ping timeout: 264 seconds]
spider-mario_ has quit [Remote host closed the connection]
pietr0 has joined #ruby
alem0lars has quit [Quit: alem0lars]
combusean has joined #ruby
joaoh82 has joined #ruby
lw_ has quit [Quit: s]
spider-mario has joined #ruby
<GreekFreak>
workmad3, thank you. That's better and much cleaner. I'll fix all my code now. The helper you need to include is: ActionView::Helpers::TagHelper
sinkensabe has joined #ruby
himsin has quit [Quit: himsin]
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
dawkirst has joined #ruby
SCommette has joined #ruby
gr33n7007h has quit [Remote host closed the connection]
tus has joined #ruby
gr33n7007h has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
ldnunes has joined #ruby
combusean has quit [Quit: Leaving.]
GreekFreak has quit [Quit: Leaving]
sarkis has joined #ruby
sski has quit [Ping timeout: 240 seconds]
karupa is now known as zz_karupa
pietr0 has quit [Quit: pietr0]
kaspergrubbe has joined #ruby
jameswlane has joined #ruby
wald0 has quit [Quit: Lost terminal]
jamto11 has joined #ruby
sarkis has quit [Ping timeout: 244 seconds]
Takle has quit [Read error: Connection reset by peer]
Darryl has joined #ruby
Takle has joined #ruby
sski has joined #ruby
jamto11 has quit [Ping timeout: 244 seconds]
joaoh82 has quit []
paulfm has joined #ruby
seaned has joined #ruby
tvw has joined #ruby
vifino has joined #ruby
subraminion has quit [Quit: Computer has gone to sleep.]
Fire-Dragon-DoL has joined #ruby
subraminion has joined #ruby
alem0lars has joined #ruby
robertodecurnex has joined #ruby
yfeldblum has joined #ruby
Joulse has joined #ruby
sumark has quit [Remote host closed the connection]
mijicd has joined #ruby
oo_ has joined #ruby
ohvlad has joined #ruby
sumark has joined #ruby
pvb has joined #ruby
r_rios has quit [Ping timeout: 240 seconds]
newUser1234 has joined #ruby
monkegjinni has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
charliesome has quit [Ping timeout: 245 seconds]
bmurt has joined #ruby
kaspergr_ has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
kaspergr_ has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
charliesome has joined #ruby
TheKruex has quit []
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
toastynerd has quit [Ping timeout: 272 seconds]
kaspergr_ has joined #ruby
Takle has quit [Remote host closed the connection]
rube_ has quit [Read error: Connection reset by peer]
arya__ is now known as arya_
rube_ has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
kilk_ has joined #ruby
SCommette has quit [Quit: SCommette]
fgo has joined #ruby
jameswlane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Havoc][ has joined #ruby
<Havoc][>
hello
<jhass>
hi
kaspergrubbe has quit [Ping timeout: 264 seconds]
<Havoc][>
I get this Error on Debian: cannot load such file -- DateTime
<shevy>
well
<workmad3>
Havoc][: did you do 'require "date" '?
<Havoc][>
I tought its a Standard Library...
survili has quit [Quit: Page closed]
<apeiros>
that'd be because there's no such file in stdlib
<apeiros>
it's date
<Havoc][>
no, i did require DateTime
<apeiros>
require 'date', gives you DateTime also
SCommette has joined #ruby
<jhass>
the standard library is called date, it contains the class DateTime
<jhass>
or was there even datetime?
<apeiros>
also note that it is lowercase. 'date', not 'Date' (the file)
<shevy>
this inconsistency is so annoying
<Havoc][>
aaah, okay, is there any hint on http://www.ruby-doc.org/ where i can find that information which class i need?
Fire-Dragon-DoL has quit [Ping timeout: 240 seconds]
thesheff17 has joined #ruby
mary5030 has joined #ruby
Bumptious has quit [Remote host closed the connection]
roshanavand has joined #ruby
Bumptious has joined #ruby
newUser1_ has quit [Remote host closed the connection]
tier has joined #ruby
joaoh82 has joined #ruby
mary5030 has quit [Remote host closed the connection]
urinal-cake has quit []
klaut has joined #ruby
wald0 has joined #ruby
mary5030 has joined #ruby
Xiti has quit [Read error: Connection reset by peer]
qwyeth has joined #ruby
definiv has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
Takle has joined #ruby
jameswlane has quit [Quit: Logging off]
Fire-Dragon-DoL has joined #ruby
danijoo has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
jottr has joined #ruby
danijoo has joined #ruby
stantona has joined #ruby
metasyntax has quit [Quit: Leaving]
lw has joined #ruby
Morkel has joined #ruby
DeanH has joined #ruby
TheKruex has joined #ruby
postmodern has quit [Quit: Leaving]
<lxsameer>
hey guys, I have gem called ABC, i used ABC in my project. ABC have some gems inside its Gemfile (not in gemspec) does "bundle install" in my project cause those gems (in ABC's gemfile) install too ?
kaspergrubbe has joined #ruby
<jhass>
no
Mattias has quit [Ping timeout: 245 seconds]
skylite has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
sarkis has joined #ruby
TheKruex has quit [Client Quit]
<lxsameer>
jhass: is there any solution to do such a thing?
armyriad has joined #ruby
<jhass>
properly declare your dependencies in your gemspec
diegoviola has joined #ruby
<lxsameer>
jhass: i want to use https://rails-assets.org, is there any way to specify additional source in gemspec ?
Mattias has joined #ruby
yubrew has joined #ruby
<jhass>
not that I'm aware of
Ankhers has joined #ruby
kaspergr_ has quit [Ping timeout: 264 seconds]
seaned has quit [Quit: seaned]
<jhass>
since those are only fake gems, you probably have to add directions to your gems readme to include these
<mikecmpbll>
i think you just add the sources to your gemfile.
stantona has quit [Remote host closed the connection]
stantona has joined #ruby
<mikecmpbll>
nvm maybe not
<jhass>
well, yes you could declare them in the gemspec and adding the source in the project Gemfile would probably work, it would break gem install'ing your gem though afaik
<jhass>
and I'd find that confusing as hell
<Mon_Ouie>
A gemspec keeps track of what dependencies there are, it doesn't care how you install them
sarkis has quit [Ping timeout: 252 seconds]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
spyderman4g63 has joined #ruby
mary5030_ has joined #ruby
mary5030_ has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 240 seconds]
arya__ has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mary5030_ has joined #ruby
qwyeth_ has joined #ruby
alexju has joined #ruby
<lxsameer>
thanks guys
mary5030 has quit [Ping timeout: 245 seconds]
qwyeth has quit [Ping timeout: 244 seconds]
diegoviola has joined #ruby
arya_ has quit [Ping timeout: 255 seconds]
djcp has joined #ruby
djcp has left #ruby [#ruby]
cocotton has joined #ruby
sinkensabe has quit [Ping timeout: 272 seconds]
mary5030_ has quit [Ping timeout: 240 seconds]
arya__ has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
yfeldblum has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
mikesplain has joined #ruby
trhodes_ has quit [Ping timeout: 264 seconds]
jheg has joined #ruby
michaelchum has joined #ruby
oo_ has joined #ruby
andrewjanssen has joined #ruby
stantona has quit [Remote host closed the connection]
stantona has quit [Remote host closed the connection]
lord4163 has joined #ruby
ffranz has quit [Quit: Leaving]
Sawbones has joined #ruby
ffranz has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
schickung has joined #ruby
mary5030 has joined #ruby
toastynerd has joined #ruby
lxsameer has quit [Quit: Leaving]
ta has quit [Ping timeout: 244 seconds]
andrewjanssen has quit [Quit: Leaving...]
dreamchaser has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Fire-Dragon-DoL has quit [Ping timeout: 240 seconds]
sski has quit [Remote host closed the connection]
alem0lars has quit [Quit: alem0lars]
sski has joined #ruby
HashNuke has joined #ruby
timonv has quit [Ping timeout: 244 seconds]
alem0lars has joined #ruby
toastynerd has quit [Ping timeout: 255 seconds]
stantona has joined #ruby
byteoverfl0w has joined #ruby
LekeFly_ has joined #ruby
andrewjanssen has joined #ruby
maximski has quit []
oo_ has joined #ruby
Fire-Dragon-DoL has joined #ruby
sski has quit [Ping timeout: 272 seconds]
LekeFly has quit [Ping timeout: 272 seconds]
abuzze_ has joined #ruby
maximski has joined #ruby
MrDoctor has quit []
tvw has quit []
dilated_dinosaur has quit [Ping timeout: 240 seconds]
mrnugget has quit [Quit: mrnugget]
codabrink has joined #ruby
ta has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
abuzze_ is now known as abuzze
dreamchaser has joined #ruby
dreamchaser has quit [Client Quit]
pu22l3r has joined #ruby
metasyntax has joined #ruby
benzrf|offline is now known as benzrf
freerobby has joined #ruby
workmad3 has joined #ruby
hermanmunster has joined #ruby
oo_ has quit [Remote host closed the connection]
sski has joined #ruby
rube_ has quit [Quit: WeeChat 0.3.8]
bwlang has joined #ruby
diegovio1 has joined #ruby
mary5030 has quit [Remote host closed the connection]
subraminion has quit [Quit: Computer has gone to sleep.]
Zenigor has joined #ruby
sailias has joined #ruby
mrnugget has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
Takle has quit [Remote host closed the connection]
Fire-Dragon-DoL1 has joined #ruby
Fire-Dragon-DoL1 has quit [Read error: Connection reset by peer]
<bwlang>
I need to run a ruby program (along with dependencies active_record, yaml, slop...) on a compute cluster where ruby is not installed. Is there a way to get everything in a single directory? bundler doesn't take care of ruby itself from what I can tell.
stantona has quit [Remote host closed the connection]
<bwlang>
probably should have just written this in python .... ;)
Fire-Dragon-DoL has quit [Ping timeout: 264 seconds]
stantona has joined #ruby
cpruitt has joined #ruby
diegovio1 is now known as diegoviola
anaeem1_ has quit [Remote host closed the connection]
dilated_dinosaur has joined #ruby
almostwhitehat has joined #ruby
railzForDaiz has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
cocotton has quit [Remote host closed the connection]
snath has quit [Ping timeout: 264 seconds]
definiv_ has joined #ruby
railzForDaiz has joined #ruby
Takle has joined #ruby
jobewan has joined #ruby
mostlybadfly has joined #ruby
ehc has joined #ruby
<workmad3>
bwlang: you could check out omnibus ruby packages
jamto11 has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
m1lt0n has quit [Quit: Lost terminal]
railzForDaiz has quit [Ping timeout: 244 seconds]
definiv_ has quit [Client Quit]
Parker0 has joined #ruby
alem0lars has quit [Quit: Going AFK...]
railzForDaiz has joined #ruby
sarkis has joined #ruby
lemur has joined #ruby
tiguser has quit [Ping timeout: 272 seconds]
abuzze has quit [Remote host closed the connection]
oo_ has joined #ruby
<shevy>
guys
<shevy>
it's the time of the day again
<shevy>
down with the pants!
<shevy>
has anyone of you implemented unix-like pipes in ruby?
robsonsnjr has joined #ruby
cocotton has joined #ruby
<robsonsnjr>
z
cocotton has quit [Remote host closed the connection]
robsonsnjr has left #ruby ["Leaving..."]
tiguser has joined #ruby
<benzrf>
shevy: somebody implemented them in haskell long ago :-D
cocotton has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
<shevy>
hmm
sarkis has quit [Ping timeout: 255 seconds]
<shevy>
on my todo list is to get audio and videofilters
<shevy>
like in avisynth
kevind has joined #ruby
cocotton has quit [Remote host closed the connection]
utkarsh_ has quit [Remote host closed the connection]
stantona has quit [Remote host closed the connection]
utkarsh_ has joined #ruby
baroquebobcat has joined #ruby
toastynerd has joined #ruby
definiv has quit [Quit: leaving]
Joulse has joined #ruby
gruz0[russia] has joined #ruby
tiguser has joined #ruby
ta has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 252 seconds]
ta has joined #ruby
rotor has quit [Ping timeout: 240 seconds]
jprovazn has quit [Quit: Leaving]
BWStearn1 has quit [Ping timeout: 264 seconds]
jprovazn has joined #ruby
definiv has joined #ruby
andrewjanssen has joined #ruby
Takle has quit [Remote host closed the connection]
<AntelopeSalad>
when you push a gem rubygems prompts you for your email/password once but then once you've entered it, it stores it somewhere for the next time
<AntelopeSalad>
where does it store this info?
oo_ has quit [Remote host closed the connection]
jprovazn has quit [Client Quit]
definiv has quit [Client Quit]
definiv has joined #ruby
armyriad has quit [Ping timeout: 252 seconds]
toastynerd has quit [Ping timeout: 272 seconds]
<jhass>
.gem/credentials
<definiv>
l
definiv has quit [Client Quit]
GGMethos has quit [Quit: WeeChat 0.4.3]
<AntelopeSalad>
jhass: thanks
zarubin has quit []
definiv has joined #ruby
sski has quit [Remote host closed the connection]
treehug88 has joined #ruby
definiv has quit [Client Quit]
sski has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
shredding has quit [Quit: shredding]
benzrf is now known as benzrf|offline
obs has joined #ruby
<shevy>
jhass knows it all
Bumptious has joined #ruby
definiv has joined #ruby
<shevy>
hmm
<shevy>
I don't seem to have a .gem/credentials file
<shevy>
though
<shevy>
I think I reinstalled everything
<shevy>
so I might be on a new machine
tiguser has quit [Ping timeout: 244 seconds]
definiv has quit [Client Quit]
Takle has joined #ruby
sski has quit [Ping timeout: 252 seconds]
MZAWeb has joined #ruby
definiv has joined #ruby
olivier_bK has quit [Ping timeout: 245 seconds]
Vivekananda has joined #ruby
definiv has quit [Client Quit]
aganov has quit [Remote host closed the connection]
definiv has joined #ruby
xcv has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
tiguser has joined #ruby
diegovio1 is now known as diegoviola
matrixise has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
Takle has joined #ruby
rotor has joined #ruby
jamto11 has quit [Read error: Connection reset by peer]
byteoverfl0w has quit [Quit: Leaving... have a good one...]
bal has joined #ruby
jamto11 has joined #ruby
MZAWeb has quit [Ping timeout: 272 seconds]
definiv has joined #ruby
mikepack has joined #ruby
definiv has quit [Client Quit]
definiv has joined #ruby
mikepack has quit [Remote host closed the connection]
definiv has quit [Client Quit]
noop has quit [Ping timeout: 264 seconds]
definiv has joined #ruby
definiv has quit [Client Quit]
definiv has joined #ruby
BWStearns has joined #ruby
definiv has quit [Client Quit]
boris has quit [Remote host closed the connection]
IceDragon has joined #ruby
LekeFly_ has quit [Ping timeout: 240 seconds]
geggam has joined #ruby
rayners has joined #ruby
cro_ has joined #ruby
cro_ has left #ruby [#ruby]
tus has quit [Excess Flood]
theberlin has joined #ruby
tus has joined #ruby
tus has joined #ruby
tus has quit [Changing host]
jamto11 has quit [Ping timeout: 272 seconds]
bal has quit [Quit: bal]
tus has quit [Client Quit]
mikepack has joined #ruby
enebo has joined #ruby
BWStearns has quit [Ping timeout: 255 seconds]
diegovio1 has joined #ruby
definiv has joined #ruby
diegoviola is now known as Guest33380
BWStearns has joined #ruby
diegovio1 is now known as diegoviola
theberlin has quit [Client Quit]
olivier_bK has joined #ruby
Guest33380 has quit [Ping timeout: 240 seconds]
benzrf|offline is now known as benzrf
Macaveli has quit [Ping timeout: 252 seconds]
GriffinHeart has quit [Remote host closed the connection]
kaspergr_ has joined #ruby
greenarrow has joined #ruby
GriffinHeart has joined #ruby
anaeem1 has joined #ruby
jfran has joined #ruby
toastynerd has joined #ruby
MZAWeb has joined #ruby
kaspergrubbe has quit [Ping timeout: 264 seconds]
anaeem1 has quit [Remote host closed the connection]
thomasxie has joined #ruby
anaeem1 has joined #ruby
ixti has joined #ruby
ta has quit [Remote host closed the connection]
kwd has quit [Quit: kwd]
anaeem1 has quit [Remote host closed the connection]
GriffinHeart has quit [Ping timeout: 240 seconds]
BWStearns has quit [Quit: Lost terminal]
yfeldblum has joined #ruby
oo_ has joined #ruby
terrellt has joined #ruby
thomasxie has quit [Remote host closed the connection]
alex88 has quit [Ping timeout: 244 seconds]
chrisbolton has joined #ruby
mehlah has quit [Quit: Leaving...]
fabrice31 has quit [Remote host closed the connection]
snath has joined #ruby
fabrice31 has joined #ruby
<chrisbolton>
Good morning, I’m trying to print out a board via terminal with the location of a player on a map. The map is made up of 9 rooms, like a tic tac toe board. I’m just having trouble figuring out how to inject the location of the player. Player has a property of room which is identical to one of the rooms on the map, here is where I started … https://gist.github.com/Iknewthisguy/f5ee7653c5c888637398
boris has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
<chrisbolton>
Any help would be appreciated.
mehlah has joined #ruby
aniM has joined #ruby
moritzs has quit [Ping timeout: 245 seconds]
cczona has joined #ruby
<shevy>
simplest way would be to keep the whole board in a hash
toastynerd has quit [Remote host closed the connection]
setra has quit [Ping timeout: 252 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
Rollabunna has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<chrisbolton>
apeiros: Your suggestion is to find the position of the player on the board and then …? Maybe I’m missing something. I can find the position of the player on the board. Im just struggling with how to print something that represents the players location via minimal gui.
tus has joined #ruby
tus has quit [Excess Flood]
tus has joined #ruby
tus has quit [Client Quit]
tus has joined #ruby
tus has quit [Client Quit]
jonahR has joined #ruby
joaoh82 has quit [Remote host closed the connection]
maletor has joined #ruby
tus has joined #ruby
lbwski has quit [Ping timeout: 252 seconds]
diegoviola has quit [Ping timeout: 255 seconds]
alem0lars has quit [Quit: Going AFK...]
maximski has quit []
diegovio1 has joined #ruby
<slash_nick>
use cartesian coordinates?
diegovio1 is now known as diegoviola
RaCx has quit [Quit: Computer has gone to sleep.]
LekeFly has joined #ruby
cczona has quit [Remote host closed the connection]
maletor has quit [Ping timeout: 264 seconds]
axl_ has joined #ruby
rippa has joined #ruby
momomomomo has quit [Quit: momomomomo]
axl_ has quit [Client Quit]
tier has quit [Read error: Connection reset by peer]
xcv has joined #ruby
alex88 has joined #ruby
tier has joined #ruby
xcv has quit [Remote host closed the connection]
<apeiros>
chrisbolton: well, that's your decision
<apeiros>
you could mark the player as an X
<apeiros>
or as an O
kaspergr_ has quit [Remote host closed the connection]
<apeiros>
or if terminal colors are allowed, you could just blot a colored dot (via space with background color)
xcv has joined #ruby
xcv has quit [Remote host closed the connection]
toastynerd has joined #ruby
xcv_ has joined #ruby
Mapley is now known as Mapley[POR]
<jhass>
☃ <- there use that snowman
<apeiros>
<apeiros>
it's a happy turd, after all (at least on OSX)
<apeiros>
problem with those: they might be too wide for monospace font and thus kill layout
acrussell has joined #ruby
roshanavand has quit [Quit: Leaving]
<chrisbolton>
apeiros: Right. I guess my question was less of how to find them or represent them but more how to show them on a board. I’m printing out the board in 3 rows of 3. Ideally I’d just like the players name below whatever room they are in. That’s what I’m struggling with.
baroquebobcat has joined #ruby
momomomomo has joined #ruby
<jhass>
you mean you struggle with doing print "you're here" if room == player.room ?
cobakobodob has quit [Quit: WeeChat 0.4.3]
<apeiros>
chrisbolton: ok, your question becomes more and more confusing
<apeiros>
slash_nick: yes, that's what I meant with regards to his rooms not being fixed length
<apeiros>
slash_nick: but that means you align it with the row just above the player
<apeiros>
chrisbolton: above code inserts a row with the player name aligned to the room he is. it assumes player_x and player_y containing the proper coordinates of the player
baroquebobcat has quit [Quit: baroquebobcat]
ZyTer has left #ruby [#ruby]
<apeiros>
but IMO you really should align room width. unless there's a real reason not to
<apeiros>
board.keys.max_by(&:length).length # <-- longest word
<chrisbolton>
apeiros: Thank you. That denotes a x,y location instead of index as I was previously suggesting correct?
<Sigma00>
maybe his game is about multiple dimensions and non-euclidean space
<apeiros>
chrisbolton: yes. index can easily converted to x,y, though
<chrisbolton>
Sigma00: I appreciate the benefit of the doubt but it’s not.
<apeiros>
Sigma00: it'd be more interesting if it was hyperdimensional
<Sigma00>
looks like the lazy argument wins again :P
robbyoconnor has quit [Ping timeout: 252 seconds]
<chrisbolton>
This is a swag at a flat turn based training game for some of our interns.
aantix has quit [Quit: aantix]
<dideler|work>
is using the ternary operator considered bad when the condition ends with a '?'? e.g. foo = thing.present? ? 0 : 1
norm has joined #ruby
<slash_nick>
okay same question, but the rooms are aranged on the surface of a hemisphere
<dideler|work>
is the double ? ? confusing?
aspires has joined #ruby
binaryhat has joined #ruby
dANOKELOFF has quit [Remote host closed the connection]
<jhass>
I vote for no, it's not
devdazed has quit [Ping timeout: 245 seconds]
<chrisbolton>
apeiros && slash_nick: Thank you for your help. I appreciate it.
_maes_ has joined #ruby
kwhite has joined #ruby
kwhite is now known as kmwhite
Takle has quit [Remote host closed the connection]
havenwood has joined #ruby
braincrash has quit [Quit: bye bye]
<apeiros>
dideler|work: ternary in that situation is still fine IMO
dawkirst has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
<shevy>
I am not sure whose community that guide is but yeah, single lines just conflict with the rest of my code so I abandoned it again
RaCx has joined #ruby
<shevy>
though I also sometimes like no-comments code
<shevy>
class Foo
<shevy>
def yippie; puts 'oki dokie'; end
fgo has joined #ruby
<shevy>
def yappie; 'puts 'yappie pappy'; end
<shevy>
end
<shevy>
lol
<shevy>
I even managed to produce code that is not working
xcv has joined #ruby
<shevy>
dideler|work but just look at that style code
<shevy>
it rants against single lines method
andrewjanssen has joined #ruby
<shevy>
and then it goes to say that this is good:
<shevy>
def no_op; end
<shevy>
so what now!
<ddv>
your code is your documentation
yfeldblum has joined #ruby
<ddv>
comments are code smell imo
xcv__ has joined #ruby
hackeron_ has joined #ruby
fold has joined #ruby
<apeiros>
ddv: within code, agreed
<apeiros>
but API docs IMO not
toastynerd has joined #ruby
<ddv>
true
<dideler|work>
ddv: code can only describe so much, and it cannot explain why, only the how
<jhass>
comments that explain what your code is doing are, comments that define / explain the api or why your code is doing what it's doing and not that other "smart" method, are mostly ok
<slash_nick>
eh i appreciate entertaining comments
pu22l3r has quit [Ping timeout: 244 seconds]
dawkirst has joined #ruby
hackeron has quit [Ping timeout: 255 seconds]
dawkirst_ has joined #ruby
<jhass>
oh yeah, nothing against a nice # TOTAL_HOURS_WASTED = 35 here or there
dumdedum has quit [Ping timeout: 252 seconds]
<apeiros>
jhass: "comments explaining what your code is doing" - disagree there. agree with dideler|work
troyready has joined #ruby
<apeiros>
there are rare moments where I comment the what. not because it was not possible to extract it into more digestable code, but because cost/benefit is just not given.
<apeiros>
but those are usually cases of "stuff is already insanely complex"
fgo has quit [Ping timeout: 240 seconds]
kaspergrubbe has quit [Remote host closed the connection]
xcv_ has quit [Ping timeout: 252 seconds]
stantona has joined #ruby
kaspergrubbe has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
xcv has quit [Ping timeout: 252 seconds]
<dideler|work>
all else being equal, i'd rather work on commented code. i'd hate having to read through a bunch of code if i want to quickly find out what it does. and at the end of the day, code is written for computers, docs are for humans
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ddv>
I have seen lots of commenting that is incomplete, insufficient, outdated, wrong, contradicts itself etc. Good code is easy to read and understand
yfeldblum has quit [Ping timeout: 272 seconds]
<apeiros>
dideler|work: disagree :)
dawkirst has quit [Ping timeout: 244 seconds]
<apeiros>
if the choice is: well written, but uncommented code, vs. badly written but commented code, I take the former any day
SCHAAP137 has joined #ruby
<apeiros>
even more so given that comments and code can desynchronize
wallerdev has joined #ruby
<dideler|work>
apeiros: with those limited choices, i would choose the former as well :)
amargherio has joined #ruby
aantix has joined #ruby
aantix has quit [Client Quit]
GriffinHeart has joined #ruby
Hobogrammer has joined #ruby
Takle has quit [Remote host closed the connection]
dumdedum has joined #ruby
eka has joined #ruby
b00stfr3ak has joined #ruby
<olivier_bK>
how can i apply a gsub on hash ?
mrnugget has quit [Quit: mrnugget]
yeticry has quit [Ping timeout: 252 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
<jhass>
.values.each do |value| value.gsub!(...); end
mercerist has joined #ruby
yeticry has joined #ruby
<Hanmac>
jhass: why not each_value ?
<jhass>
good question
<jhass>
I figured since we didn't get a proper problem description it's not that important
greenarrow has quit [Quit: 500]
maletor has joined #ruby
railzForDaiz has quit [Ping timeout: 252 seconds]
stantona has quit [Remote host closed the connection]
ahofmann has joined #ruby
vpretzel has joined #ruby
fantazo has joined #ruby
nitr has quit [Remote host closed the connection]
railzForDaiz has joined #ruby
sdelmore has left #ruby [#ruby]
huginn has joined #ruby
benzrf|offline is now known as benzrf
huginn has left #ruby [#ruby]
banister is now known as banisterfiend
GriffinHeart has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
x1337807x has joined #ruby
binaryhat has quit [Quit: Leaving]
streblo has quit [Ping timeout: 245 seconds]
four04 has joined #ruby
olivier_bK has quit [Ping timeout: 240 seconds]
ixti has quit [Ping timeout: 240 seconds]
ahofmann has quit [Quit: Computer has gone to sleep.]
four04 has quit [Quit: leaving]
dumdedum has quit [Quit: foo]
streblo has joined #ruby
kaspergr_ has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
dumdedum has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
peterhu has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
aspires has quit []
pu22l3r has joined #ruby
kaspergrubbe has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
kaspergrubbe has joined #ruby
kaspergr_ has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
railzForDaiz has quit [Ping timeout: 272 seconds]
mikecmpbll has quit [Ping timeout: 244 seconds]
benzrf|offline is now known as benzrf
jottr has joined #ruby
zeropx has joined #ruby
benzrf is now known as benzrf|offline
definiv has joined #ruby
wallerdev has quit [Quit: wallerdev]
railzForDaiz has joined #ruby
fantasticsid has quit [Remote host closed the connection]
Tricon has joined #ruby
dik_dak has joined #ruby
pu22l3r has quit [Remote host closed the connection]
GriffinHeart has quit [Ping timeout: 255 seconds]
RaCx has quit [Ping timeout: 252 seconds]
pu22l3r has joined #ruby
benzrf|offline is now known as benzrf
aspires has joined #ruby
djbkd has joined #ruby
baroquebobcat has joined #ruby
kaspergrubbe has quit []
ephemerian has quit [Quit: Leaving.]
fgo has quit [Ping timeout: 255 seconds]
RaCx has joined #ruby
ahofmann has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
anarang has quit [Quit: Leaving]
preller has quit [Quit: leaving]
preller has joined #ruby
dANOKELOFF has joined #ruby
Takle has joined #ruby
dumdedum has quit [Quit: foo]
alex88 has quit [Quit: Leaving...]
x1337807x has quit [Ping timeout: 252 seconds]
dumdedum has joined #ruby
streblo has quit [Ping timeout: 255 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deric_skibotn has joined #ruby
terrellt has quit [Quit: Leaving...]
timonv has quit [Remote host closed the connection]
Mapley[POR] is now known as Maple__[POR]
terrellt has joined #ruby
Bosox20051 has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
mikecmpbll has joined #ruby
<shevy>
dumdedum
<dumdedum>
what
<shevy>
ddv yeah, sometimes documentation gets outdated
streblo has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
<shevy>
I usually try to document intent rather than specific implementation details, unless it's important for a method to understand it
baroquebobcat has quit [Quit: baroquebobcat]
<shevy>
or explain design decisions that were made at that moment in time
fayimora has joined #ruby
redondos has quit [Excess Flood]
DouweM has quit [Ping timeout: 252 seconds]
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
momomomomo has quit [Quit: momomomomo]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
dilated_dinosaur has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Remote host closed the connection]
Joulse has quit [Quit: Joulse]
wallerdev has joined #ruby
<shevy>
hmm
<shevy>
what does python's import functionality offer that ruby does not have?
danijoo has quit [Read error: Connection reset by peer]
alem0lars has quit [Quit: Going AFK...]
danijoo has joined #ruby
tier has quit [Remote host closed the connection]
cocotton_ has joined #ruby
dANOKELOFF has quit [Remote host closed the connection]
yfeldblum has joined #ruby
dANOKELOFF has joined #ruby
axl_ has joined #ruby
tier has joined #ruby
peterhu has joined #ruby
klaut has quit [Remote host closed the connection]
tessi_zz is now known as tessi
JBreit has joined #ruby
cocotton has quit [Ping timeout: 244 seconds]
streblo has quit [Ping timeout: 244 seconds]
<benzrf>
shevy: namespacing :-)
<shevy>
hmm
cocotton has joined #ruby
cocotton_ has quit [Ping timeout: 252 seconds]
kireevco has quit [Quit: Leaving.]
yfeldblum has quit [Ping timeout: 245 seconds]
kireevco has joined #ruby
railzForDaiz has quit [Ping timeout: 245 seconds]
dANOKELOFF has quit [Ping timeout: 272 seconds]
synfin has quit [Quit: leaving]
wldcordeiro has quit [Quit: Leaving]
mattstratton has joined #ruby
baroquebobcat has joined #ruby
wldcordeiro has joined #ruby
diegoviola has joined #ruby
mrnugget has joined #ruby
freggles has joined #ruby
definiv has quit [Ping timeout: 255 seconds]
Spami has joined #ruby
dilated_dinosaur has joined #ruby
combusean has joined #ruby
tcstar has joined #ruby
IcyDragon has joined #ruby
IceDragon has quit [Ping timeout: 252 seconds]
michael_imac is now known as michael_mbp
RaCx_ has joined #ruby
railzForDaiz has joined #ruby
RaCx has quit [Ping timeout: 272 seconds]
RaCx_ is now known as RaCx
dawkirst_ has quit [Remote host closed the connection]
Bumptiou_ has joined #ruby
axl_ has quit [Quit: axl_]
dawkirst has joined #ruby
boris has quit [Remote host closed the connection]
Bumptious has quit [Ping timeout: 264 seconds]
noop has joined #ruby
JokerDoomWork has joined #ruby
brandonjmckay has joined #ruby
dawkirst has quit [Ping timeout: 240 seconds]
mijicd has joined #ruby
lemur has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
zigomir has quit [Remote host closed the connection]
zigomir has joined #ruby
Port3M5[Work] has quit [Remote host closed the connection]
yfeldblum has joined #ruby
spastorino has joined #ruby
rgrinberg has joined #ruby
andrewjanssen has joined #ruby
tier has quit [Remote host closed the connection]
lemur has joined #ruby
yfeldblu_ has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
IcyDragon is now known as IceDragon
x1337807x has joined #ruby
railzForDaiz has quit [Ping timeout: 264 seconds]
zigomir has quit [Ping timeout: 252 seconds]
Deele has quit [Ping timeout: 255 seconds]
sputnik13 has joined #ruby
Rollabunna has joined #ruby
robbyoconnor has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
yetanotherdave has joined #ruby
wallerdev has quit [Quit: wallerdev]
davidvl has joined #ruby
yfeldblu_ has quit [Ping timeout: 240 seconds]
dawkirst has joined #ruby
x1337807x has quit [Ping timeout: 240 seconds]
nanoyak has joined #ruby
Rollabunna has quit [Ping timeout: 264 seconds]
blackthor has quit [Ping timeout: 245 seconds]
r_rios has joined #ruby
axl_ has joined #ruby
gondalier has joined #ruby
tessi is now known as tessi_zz
siflyn has joined #ruby
Zai00 has quit [Quit: Zai00]
alem0lars has joined #ruby
RaCx has joined #ruby
fgo has joined #ruby
gondalier has quit [Client Quit]
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
mrnugget has quit [Quit: mrnugget]
braincrash has quit [Quit: bye bye]
pu22l3r has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
ldnunes has quit [Quit: Leaving]
Hobogrammer has quit [Ping timeout: 252 seconds]
gondalier has joined #ruby
tgoodman has joined #ruby
ahofmann has quit [Quit: Computer has gone to sleep.]
benzrf|offline is now known as benzrf
RaCx has quit [Ping timeout: 240 seconds]
alvaro_o has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
rgrinberg has quit [Quit: Leaving.]
timonv has joined #ruby
ixti has joined #ruby
saarinen has joined #ruby
sonofflynn has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
alem0lars has quit [Quit: Going AFK...]
definiv has joined #ruby
bstrie has quit [Quit: leaving]
definiv has quit [Client Quit]
aniM has quit [Ping timeout: 240 seconds]
kenneth has joined #ruby
JBreit has left #ruby ["Leaving"]
armyriad has joined #ruby
saarinen has quit [Quit: saarinen]
braincrash has joined #ruby
tier has joined #ruby
rezzack has joined #ruby
rgrinberg has joined #ruby
djbkd has quit [Remote host closed the connection]
SBoolean has joined #ruby
Mooneye has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
saarinen has joined #ruby
streblo has joined #ruby
skaflem has joined #ruby
alem0lars has joined #ruby
wald0 has quit [Read error: Connection reset by peer]
zoraj has quit [Ping timeout: 244 seconds]
definiv has joined #ruby
noop has quit [Ping timeout: 244 seconds]
definiv has quit [Client Quit]
joaoh82 has joined #ruby
ldnunes has joined #ruby
djbkd has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
Maple__[POR] is now known as Maple__
alem0lars has quit [Client Quit]
pontiki has joined #ruby
<pontiki>
hey, kids
<Edelwin>
hi, kiddo
zwer has joined #ruby
Hobogrammer has joined #ruby
tirengarfio has quit [Ping timeout: 252 seconds]
chrishough has joined #ruby
onewheelskyward has left #ruby ["Textual IRC Client: www.textualapp.com"]
davidvl has quit [Quit: This computer has gone to sleep]
<apeiros>
hi mousy
brasten has quit [Read error: Connection reset by peer]
<apeiros>
oh, s/mousy/mousie/
rezzack has quit [Quit: Leaving.]
<apeiros>
sorry :)
St_Marx has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
klaut has joined #ruby
<pontiki>
anyone have any idea why my ruby processes are hanging on startup? i'm running os/x 10.9, ruby 2.0.0, pry
jtiggo has joined #ruby
<asteve>
what's the best way to say "a = b unless a == b"?
<jhass>
a = b
<pontiki>
it evenutally does a core dump. i'm assuming there's an inf.loop in there somewhere, but what the heck from??
<apeiros>
pontiki: run with -rprofile
razrunelord has joined #ruby
<pontiki>
pry?
<apeiros>
pontiki: for me it was a rogue pry plugin (did a glob('/**/*')
wald0 has joined #ruby
maximski has quit [Ping timeout: 272 seconds]
<apeiros>
sure. ruby -rprofile path/to/pry
<apeiros>
just exit quickly when the prompt is shown
yfeldblum has joined #ruby
<shevy>
mama pontiki is here!
<apeiros>
or wait absurdly long to get the method easily distinguished
Alix_ has joined #ruby
<shevy>
cool
<apeiros>
jhass: not identical, though
<shevy>
pry got rogue plugins
<shevy>
perhaps even pirate ones
alem0lars has joined #ruby
<jhass>
for a.b = c not, yeah
<apeiros>
jhass: not just
<jhass>
care to elaborate?
maximski has joined #ruby
<apeiros>
a = "hi"; b = "hi"; a = b unless a == b
gattuso has quit [Ping timeout: 260 seconds]
<apeiros>
here, a.equal?(b) # => false
workmad3 has quit [Ping timeout: 252 seconds]
Sawbones has quit []
<apeiros>
with plain a = b, a.equal?(b) # => true
nanoyak has joined #ruby
<apeiros>
whether it matters - an entirely different question. just pointing out that there is a difference.
<pontiki>
it never actually gets to the prompt, the core dump happens before that
<jhass>
hm, the situations where it matters should be really rare or you got other problems IMO
<apeiros>
pontiki: oh, you get a core dump?
zigomir has joined #ruby
<pontiki>
still waiting on the attempt with -rprofile
<apeiros>
jhass: agreed. but it's still not identical :)
<pontiki>
just doing `pry` eventually causes a dump
<apeiros>
pontiki: if it fails without -rprofile with a core-dump, -rprofile won't help :-/
pu22l3r_ has joined #ruby
<pontiki>
ah, okay
<apeiros>
-rprofile also increases runtime by 5-100x
<shevy>
that's one naughty rogue plugin
nanoyak has quit [Client Quit]
jottr has joined #ruby
gattuso has joined #ruby
RaCx has joined #ruby
<AlHafoudh>
hi
jprovazn has joined #ruby
<AlHafoudh>
do you know any standalone http proxy server good for HTTP mocking?
maximski has quit []
pu22l3r has quit [Ping timeout: 252 seconds]
tirengarfio has joined #ruby
<apeiros>
uh, how'd a *proxy* help with mocking?
<apeiros>
a proxy does not respond on its own. it still needs a server behind it.
dblessing has quit [Quit: dblessing]
pu22l3r_ has quit [Ping timeout: 252 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
MZAWeb has quit [Ping timeout: 240 seconds]
RaCx has quit [Remote host closed the connection]
shvelo has joined #ruby
pu22l3r has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
toastynerd has quit [Remote host closed the connection]
rgrinberg has quit [Quit: Leaving.]
RandyT_ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
aniM has joined #ruby
pu22l3r has joined #ruby
rdark has quit [Quit: leaving]
RandyT has quit [Ping timeout: 245 seconds]
RandyT_ is now known as RandyT
peterhu has quit [Remote host closed the connection]
yfeldblum has joined #ruby
toastynerd has joined #ruby
iceden has quit [Remote host closed the connection]
KTMBoi88 has joined #ruby
pushpak has joined #ruby
shredding has joined #ruby
x1337807x has joined #ruby
Takle has quit [Remote host closed the connection]
Bosox20051 has quit [Ping timeout: 264 seconds]
<pontiki>
well, uninstalled all the pry gems i had, reinstalled pry, and no worries
<AlHafoudh>
apeiros: for http mocking... i am using puffing-billy gem, but I need it to support jruby :(
LekeFly has joined #ruby
<pontiki>
i just don't know which pry add-on was failing
gondalier has quit []
MrDoctor has joined #ruby
alem0lars has quit [Quit: alem0lars]
iceden has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
x1337807x has quit [Ping timeout: 244 seconds]
zoraj has joined #ruby
GriffinHeart has joined #ruby
sonofflynn has joined #ruby
moritzs has joined #ruby
gondalier has joined #ruby
mijicd has quit [Remote host closed the connection]
MZAWeb has joined #ruby
vpretzel has quit [Remote host closed the connection]
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
GriffinHeart has quit [Ping timeout: 252 seconds]
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 240 seconds]
Morkel_ is now known as Morkel
andrewjanssen has joined #ruby
GriffinHeart has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
mengu has quit [Remote host closed the connection]
andrewjanssen has quit [Client Quit]
jtiggo has quit []
mikepack has quit [Remote host closed the connection]
andrewjanssen has joined #ruby
pu22l3r_ has joined #ruby
<shevy>
pontiki aha so it was a rogue one after all
<shevy>
apeiros was right
tgoodman has quit [Quit: tgoodman]
<shevy>
let's randomly blame someone
<pontiki>
it was
* shevy
looks at Mon_Ouie
<shevy>
why did you write faulty pry plugins man!
<pontiki>
but i don't know which one
<pontiki>
um
<pontiki>
i've never written a pry plugin, girlfriend
<shevy>
hah I wouldn't know either but I once had a funny situation
soulcake has quit [Read error: Connection reset by peer]
shredding has quit [Quit: shredding]
<shevy>
I had a bug in one of my .rb files, and I required like 500 different .rb files in irb, and irb was happy
sheperson has joined #ruby
<shevy>
but in pry, I had a failure that I could not trace down
<apeiros>
I bet shevy plays bash roulette: [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live”
dawkirst has quit [Remote host closed the connection]
<apeiros>
if you want to query nth, you should make sure to establish order first.
<jailbot>
the second value in a hash maintains it’s object status right?
nanoyak has quit [Read error: Connection reset by peer]
<apeiros>
o0
<jailbot>
or the values
<jailbot>
sorry
ctp has joined #ruby
<jailbot>
bad question
<apeiros>
a hash is always key => value
<jailbot>
yeah
<apeiros>
and in this case, it'll be due_at => [milestone, milestone, …]
nanoyak has joined #ruby
jottr has quit [Quit: WeeChat 0.4.3]
<jailbot>
I want to see if value > 1
toastynerd has quit [Remote host closed the connection]
<apeiros>
with "value" being what?
andrewjanssen has joined #ruby
<jailbot>
milestones associated with the date “key”
gbchaosmaster has joined #ruby
<jailbot>
some dates only have one milestone
<apeiros>
that's an array. array > 1 makes no sense
<apeiros>
do you mean array.length > 1?
<jailbot>
yeah
<apeiros>
well, result.each do |due_at, milestones| if milestones.length > 1 …
<jailbot>
I see this delete_if method which looks useful
combusean has quit [Quit: Leaving.]
mehlah has quit [Quit: Leaving...]
* apeiros
prefers select/reject
<jailbot>
why?
<apeiros>
reads nicer IMO
<apeiros>
also nicer opposites
<jailbot>
in terms of using “each” vs “delete_if”
<jailbot>
?
<apeiros>
no
<apeiros>
each and delete_if serve different purposes
x1337807x has joined #ruby
<apeiros>
delete_if and reject mostly serve the same purpose
<apeiros>
reject/select are opposites, so if your purpose is "only consider items satisfying a condition", the choice between select/reject is just where you don't have to negate
kirun has quit [Remote host closed the connection]
<jailbot>
not |key,value|?
farn has joined #ruby
codabrin_ has joined #ruby
<apeiros>
if you can give your key/value proper names, do it. here you obviously can.
<terrellt>
Suddenly it's lunch time.
<jailbot>
that reads better imo
kirun has joined #ruby
<apeiros>
due_at, milestones is *much* more revealing than a generic key, value
<jailbot>
this is fun
<apeiros>
anybody reading your code after you (that includes future you) will have much more trouble figuring out what key, value is than what due_at, milestones is
<jailbot>
if it works my mind will be blown
rezzack has joined #ruby
LiohAu has joined #ruby
GriffinHeart has joined #ruby
<jailbot>
.length vs .size?
peterhu has joined #ruby
<apeiros>
.size
ffranz has quit [Ping timeout: 240 seconds]
<jailbot>
ok
LiohAu has quit [Client Quit]
x1337807x has quit [Ping timeout: 244 seconds]
carraroj has quit [Quit: Konversation terminated!]
codabrink has quit [Ping timeout: 252 seconds]
<apeiros>
there's also .count, but that serves a different purpose (but does the same as .size and .length if called without argument)
LiohAu has joined #ruby
<jailbot>
and you would use select?
<jailbot>
not like select!
kies has quit [Ping timeout: 240 seconds]
<apeiros>
I almost never use select! or reject!
<jailbot>
set the block to equal a new hash?
<apeiros>
yes. give it a revealing name.
<apeiros>
less code commenting required that way.
<jailbot>
lol
kedare has quit [Ping timeout: 272 seconds]
<jailbot>
hard part
GriffinHeart has quit [Remote host closed the connection]
<apeiros>
sure. experience helps. doing it from the start builds experience.
<jailbot>
ok lets see what this returns
<apeiros>
that said, naming is one of the two hard things in computer science (which are: cache pruning, naming and off-by-one errors)
<jailbot>
off-by-one being mistakes based on zero index ararys?
momomomomo has joined #ruby
<apeiros>
that's one case
diegoviola has joined #ruby
<apeiros>
it's just where your calculation is somewhere off by one
LiohAu has quit [Client Quit]
shevy has joined #ruby
<pontiki>
the famous are using '<' when you wanted '<=' and the like
volk_ has joined #ruby
Asher has quit [Remote host closed the connection]
<apeiros>
iterating one too many or one too few is a common case. comparison operators is another. picking the wrong index yet another.
<apeiros>
miscalculating pointers (in C or another low level language) is also a common case
<banisterfiend>
apeiros hey guy
Rollabunna has joined #ruby
<apeiros>
volk_: in https communication, a header is part of the encrypted message. unless the interceptor can crack the encryption, he won't be able to read the message.
<jailbot>
meh looks good
<apeiros>
hi banigirl
djbkd has quit [Remote host closed the connection]
bean has quit [Read error: Connection reset by peer]
<jailbot>
pointers suck
<volk_>
@apeiros : okay that’s perfect then. so i’m doing it relatively correct?
<pontiki>
pointers are the best
<apeiros>
jailbot: pointers are awesome. dangerous, but awesome.
<jailbot>
lol
<jailbot>
nerds
<pontiki>
if you don't like pointers, you probably shouldn't like ruby
ahofmann has quit [Read error: Connection reset by peer]
<apeiros>
that said, I can understand why you say that. I find juggling running chainsaws horrible too.
bbloom has quit [Read error: Connection reset by peer]
<jailbot>
the syntax in ruby is nice C:
ahofmann has joined #ruby
matled- has joined #ruby
jpena has joined #ruby
<apeiros>
pontiki: uh, ruby exposes nothing even close to pointers?
<pontiki>
it's the flaming bowling balls the get me
spacebug_ has joined #ruby
tessi_zz is now known as tessi
<pontiki>
every variable is a pointer
bbloom has joined #ruby
<apeiros>
volk_: I'm not a security expert. sorry. I only commented on what fits within my knowledge :)
<shevy>
I thought juggling chainsaws is a swiss real passion
<shevy>
and yodeling
rezzack has quit [Read error: Connection reset by peer]
matled has quit [Read error: Connection reset by peer]
<volk_>
@apeiros , ok no problemo that still helps :)
<apeiros>
pontiki: it's a reference. it's not a pointer.
vinleod has quit [Ping timeout: 245 seconds]
zonetti has quit [Ping timeout: 245 seconds]
MZAWeb has quit [Ping timeout: 240 seconds]
matled- is now known as matled
<apeiros>
pontiki: you can't do pointer arithmetics with variables.
rezzack has joined #ruby
jonahR has quit [Read error: Connection reset by peer]
K3dare has joined #ruby
<apeiros>
(whether it *internally* is a pointer or not is even entirely irrelevant - in MRI, it's not, afaik)
bean has joined #ruby
<shevy>
talking about chainsaws... I saw the movie hostel lately; it was disappointingly bad, especially in the last part... bribing kids with bubblegems to randomly take down evil guys? what a silly idea...
fayimora has quit [Quit: Connection closed for inactivity]
jonahR has joined #ruby
<jailbot>
I saw gravity the other day
<jailbot>
hated it
streblo has quit [Ping timeout: 245 seconds]
spacebug has quit [Ping timeout: 245 seconds]
<pontiki>
it's not relevant, but they are pointers internally
DrCode has quit [Ping timeout: 264 seconds]
Rollabunna has quit [Ping timeout: 264 seconds]
<jhass>
volk_: I'd say it's secure enough for most applications, though there's a reason things like oAuth use two two tokens, a limited access token and a refresh token to obtain new access tokens. If the access token is intercepted at least the time the attacker has access is limited that way
MZAWeb has joined #ruby
<shevy>
jailbot haven't heard of gravity but it significantly seems to have a much higher rating score than hostel had
momomomomo has quit [Quit: momomomomo]
lxsameer has quit [Ping timeout: 245 seconds]
kiri has quit [Ping timeout: 245 seconds]
freannrak has quit [Ping timeout: 245 seconds]
<jailbot>
thats the thing, it got great reviews
<volk_>
jhass: yeah, fair enough. :) thanks man
<jailbot>
and I was excited to see it
<apeiros>
pontiki: VALUE afaik is just an int64
<jailbot>
but it was just so flat
phutchins has quit [Ping timeout: 240 seconds]
Zai00 has joined #ruby
<apeiros>
banisterfiend: you're code diving all the time. is VALUE a pointer or an int?
<volk_>
jhass: you should answer it on SO so i can accpet your answer
Zenigor has quit [Remote host closed the connection]
end_guy has quit [Ping timeout: 264 seconds]
<jailbot>
unrealistic, boring acting
ptierno has quit [Ping timeout: 245 seconds]
csfranci1 has quit [Ping timeout: 245 seconds]
<shevy>
jailbot lol the first review I read is funny ... "a sign that J. Cameron has passed his prime"
<banisterfiend>
apeiros it's an unsigned long
<apeiros>
pontiki: ^
<pontiki>
hmm..
<jailbot>
uh yeah
<pontiki>
okay then
DrCode has joined #ruby
zonetti has joined #ruby
<banisterfiend>
apeiros which iirc is guaranteed to be the same length as a pointer
atmosx has quit [Ping timeout: 264 seconds]
csfrancis has joined #ruby
Alix_ has quit [Read error: Connection reset by peer]
freannrak has joined #ruby
<jhass>
volk_: I'll give it a few days so that maybe someone more experienced shows up
ptierno has joined #ruby
<banisterfiend>
and it's more or less used as a pointer
<jailbot>
hash is fun ;)
<banisterfiend>
except in the case of immediate values
<volk_>
jhass: sounds good!
RaCx has joined #ruby
<apeiros>
banisterfiend: I guess the guys over in ##c know those specs. I found it easier not to engage in such battles as it seems to be a bottomless pit every time :D
ffranz has joined #ruby
atmosx has joined #ruby
datafirm has joined #ruby
RaCx has quit [Remote host closed the connection]
<pontiki>
"my rabbit hole is deeper than yours!"
<apeiros>
damit. I. MUST. STOP. IRC.
<apeiros>
must work on that game. damit.
<pontiki>
i need lunch
nitr has joined #ruby
<apeiros>
pontiki: now you're just teasing.
momomomomo has joined #ruby
<pontiki>
well, yes...
<banisterfiend>
apeiros it casts cast to pointers all the time
lxsameer has joined #ruby
railzForDaiz has joined #ruby
RaCx has joined #ruby
<banisterfiend>
but it's not a pointer internally cos that would be weird for immediate values
<apeiros>
banisterfiend: I can imagine
<apeiros>
banisterfiend: but given that VALUE encodes various informations, it makes sense it's not a straight pointer
K3dare has quit [Ping timeout: 240 seconds]
<banisterfiend>
yeah
<apeiros>
see Fixnum, which is fully encoded in VALUE
<shevy>
apeiros did you fix the research bug yet
RaCx has quit [Remote host closed the connection]
<apeiros>
or Symbol, which iirc is also fully encoded in VALUE
<banisterfiend>
apeiros and flonums too
mengu has quit [Ping timeout: 255 seconds]
<apeiros>
same for all other immediates, like true, false, nil
<apeiros>
banisterfiend: ah, right, since 1.9? or 2.0?
kiri has joined #ruby
cobakobodob has quit [Ping timeout: 240 seconds]
<apeiros>
but for non-immediates and non-flonums, it makes sense to be used as various kinds of pointers. probably segmented in some way.
yfeldblum has quit [Remote host closed the connection]
treehug88 has quit [Ping timeout: 264 seconds]
<banisterfiend>
apeiros 2.1 i think
<banisterfiend>
or maybe 2.0
<Mon_Ouie>
unsigned long isn't guaranteed to be the size of a pointer, it just often is
end_guy has joined #ruby
toastynerd has joined #ruby
gondalier has joined #ruby
yfeldblum has joined #ruby
<Mon_Ouie>
There are intptr_t and uintptr_t which I think are guaranteed to be large enough to store a pointer (but not necessarily the same size as a pointer)
benzrf|offline is now known as benzrf
<apeiros>
is `int` still code for `native size int`? if so, I'd expect that to be the same size as a pointer
superscott[8] has joined #ruby
<apeiros>
Mon_Ouie: where do you learn such stuff?
<Mon_Ouie>
Where did you learn all the trivia you know about Ruby? ;)
<apeiros>
books I found are usually woefully outdated with regards to modern programming (which includes such things as proper types)
K3dare has joined #ruby
flops has quit [Ping timeout: 264 seconds]
<apeiros>
Mon_Ouie: it just came to me.
<apeiros>
so that's not comparable :-3
mengu__ has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
<Mon_Ouie>
int isn't usually big enough, e.g. on many 64-bit platforms int will be 32-bit and long 64-bit
<atmosx>
hello
<Mon_Ouie>
(The specific guarantee for int is >= 16-bit I believe)
<apeiros>
bah. see. when I first learnt C, it said "int is *always* machine native size int"
tier has quit [Remote host closed the connection]
<Hanmac>
Mon_Ouie: only on windows is there "long long" because its longer than other "long"s ;P
pu22l3r has joined #ruby
<apeiros>
ovbiously it has now been repurposed to mean "usually int is just 4byte int"
<benzrf>
god damn thats looooooooooooooooooooooooooong
<apeiros>
schloooong
<LadyRainicorn>
doublepluslong
<apeiros>
orwellian computing
<apeiros>
GAH!
* apeiros
hides irc window
<Mon_Ouie>
Yeah, on Windows 64-bit long is only 32-bit
<lolmaus>
How do i map a string?
<jailbot>
.push vs .append?
timonv has quit [Remote host closed the connection]
<atmosx>
string.split('').map
<centrx>
lolmaus, my_string.each_char.map { }
tier has joined #ruby
<benzrf>
lolmaus: just .chars
<benzrf>
not .each_char
zoraj_ has quit [Read error: Connection reset by peer]
r_rios has quit [Remote host closed the connection]
zoraj has joined #ruby
<lolmaus>
atmosx: centrx, benzrf: i would like to recieve a modified string as a result, not an array.
<benzrf>
lolmaus: join it afterwards, then
<lolmaus>
I thought there might be a sugary way to do that.
mikesplain has quit [Ping timeout: 240 seconds]
<atmosx>
lolmaus: use join
* benzrf
shrugs
<benzrf>
use haskell, ya hoser
pu22l3r_ has quit [Ping timeout: 244 seconds]
<atmosx>
use cobol
<benzrf>
"foo" >>= replicate 2
<benzrf>
"ffoooo"
<lolmaus>
atmosx: centrx: benzrf: thx
<Hanmac>
lolmaus use gsub(/./) {}
<atmosx>
be a real man, write your own programming language
zoraj has quit [Read error: Connection reset by peer]
<benzrf>
apeiros: non referentially transparent???
<benzrf>
BURN THE HERETIC
razrunelord has quit [Remote host closed the connection]
* benzrf
tosses apeiros into nearby magma
<jailbot>
got it
<jailbot>
thanks aqeiros
<apeiros>
jailbot: you win an internet for finding yet a new way to abuse my nick
bubbajones has quit [Ping timeout: 272 seconds]
MrDoctor has quit [Remote host closed the connection]
<jailbot>
lol
<jailbot>
pingpingping
<apeiros>
benzrf: I did not see your messages because this window is officially hidden. I'll therefore just ignore what you said.
<dodgepong>
anyone here willing to help an outrageously new rails user with something in the rails getting started guide?
<benzrf>
apeiros: :^)
<benzrf>
dodgepong: >>>#rubyonrails
<jailbot>
lol
<apeiros>
jailbot: *all* irc clients support tab completion.
<dodgepong>
thanks
<jailbot>
I dont use it
<dodgepong>
sorry, didnt know about the other channel
<apeiros>
that's why you fail
zoraj has joined #ruby
<dodgepong>
#rubyonrails
<dodgepong>
fuck
<apeiros>
fuck #rubyonrails? tssss, that's not nice dude
<dodgepong>
lol
<dodgepong>
i pressed ctrl + v before i typed /j
<apeiros>
cmd-H for the 3rd time.
phutchins has joined #ruby
<atmosx>
I don't understand the aversion to rails from ruby developer
<atmosx>
s
MrDoctor has joined #ruby
<lolmaus>
centrx: i need to do replacements following several rules. With gsub, i'll have to do multiple gsubs. I guess the map way will be more efficient.
shredding has quit [Quit: shredding]
djbkd has joined #ruby
zoraj_ has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<centrx>
lolmaus, With the block notation for gsub, you can do multiple mappings in one pass
<lolmaus>
centrx: awesome, thx
<centrx>
lolmaus, Using each_char/map/join is a fine way if it makes more sense for your use case
<lolmaus>
centrx: both makes sense, the map way saves from a need to construct a regex.
froy has quit [Remote host closed the connection]
zoraj has quit [Ping timeout: 240 seconds]
phutchin1 has joined #ruby
phutchins has quit [Ping timeout: 240 seconds]
combusean has joined #ruby
davidvl has joined #ruby
djbkd has quit [Remote host closed the connection]
Spami has joined #ruby
zoraj has joined #ruby
djbkd has joined #ruby
gigetoo has quit [Remote host closed the connection]
lemur has quit [Remote host closed the connection]
gondalier has quit []
acrussell has quit [Quit: Leaving.]
Zenigor has joined #ruby
gigetoo has joined #ruby
m8 has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
sommardaniel has joined #ruby
b00stfr31k has joined #ruby
b00stfr31k has quit [Client Quit]
Wolland has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
jackneill has quit [Read error: Connection reset by peer]
andrewjanssen has joined #ruby
Stalkr_ has joined #ruby
tesuji has joined #ruby
TheKruex has joined #ruby
michaelchum has quit [Quit: Connection closed for inactivity]
<atmosx>
in the end fo the day, the design is the hardest part of building an application.
<atmosx>
all other things can be done, one or another, design design design
froy has joined #ruby
cocotton has quit [Remote host closed the connection]
bryanzera has joined #ruby
beneggett has joined #ruby
bryanzera has quit [Quit: Page closed]
bubbajones has joined #ruby
ahofmann has quit [Quit: Computer has gone to sleep.]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
davidvl has quit [Quit: This computer has gone to sleep]
yfeldblum has quit [Remote host closed the connection]
<shevy>
hehe
mjb2k has joined #ruby
<shevy>
atmosx well rails is huge so learning it is takes long
<shevy>
I can't think of any other ruby related software that is larger
<shevy>
I mean just look at what ActiveRecord all has!
<frankS2>
Is there a web site somewhere which explains all the methods in ruby?
<frankS2>
like " function reference"
<shevy>
frankS2 not really. but there is the official API docu for the major ruby classes
<jhass>
that's basically everything, but just to strike that from the list, try running with LC_ALL=ru_RU.UTF-8 ruby yourscript.rb
djbkd has quit [Remote host closed the connection]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
arya_ has quit [Ping timeout: 272 seconds]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
<lolmaus>
jhass: still the same issue. :(
phutchin1 has quit [Ping timeout: 264 seconds]
kireevco has quit [Quit: Leaving.]
<jhass>
so how do you get the data you pass to nokgiri
arya_ has joined #ruby
<jhass>
is there something you can gist so we can reproduce?
phutchins has joined #ruby
MZAWeb_ has joined #ruby
mengu has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
terrell_t has joined #ruby
xcv__ has quit [Remote host closed the connection]
blackthor has left #ruby [#ruby]
wallerdev has joined #ruby
fgo has joined #ruby
moritzs has joined #ruby
terrellt has quit [Ping timeout: 252 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
RaCx has joined #ruby
fold has quit [Ping timeout: 245 seconds]
qwyeth_ has quit [Remote host closed the connection]
reset has joined #ruby
yfeldblum has joined #ruby
arya_ has quit [Ping timeout: 245 seconds]
arya_ has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
gregf has joined #ruby
superscott[8] has quit [Read error: Connection reset by peer]
LadyRainicorn has quit [Quit: ♡]
mijicd has quit [Ping timeout: 255 seconds]
superscott[8] has joined #ruby
n0n3 has joined #ruby
jtz has joined #ruby
superscott[8] has quit [Remote host closed the connection]
sommardaniel has quit [Remote host closed the connection]
terrell_t has quit [Remote host closed the connection]
superscott[8] has joined #ruby
terrellt has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
bw_ has quit [Ping timeout: 276 seconds]
figgleberry has joined #ruby
figgleberry has quit [Client Quit]
mattmcclure has joined #ruby
gbchaosmaster has quit [Ping timeout: 244 seconds]
IceDragon has quit [Ping timeout: 264 seconds]
xcv has joined #ruby
IceDragon has joined #ruby
shvelo has joined #ruby
razrunelord has joined #ruby
scx_ is now known as scx
nitr has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
Tricon has quit [Quit: Leaving...]
RaCx has joined #ruby
shenkan has quit [Quit: Leaving]
MrDoctor has quit [Remote host closed the connection]
xcv_ has joined #ruby
phutchins has quit [Ping timeout: 240 seconds]
mg^ has joined #ruby
paulfm has quit []
K3dare has quit [Ping timeout: 244 seconds]
K3dare has joined #ruby
robbyoconnor has joined #ruby
xcv has quit [Ping timeout: 264 seconds]
jprovazn has quit [Quit: Odcházím]
JokerDoomWork has quit [Ping timeout: 244 seconds]
gondalier has quit []
gattuso has quit [Ping timeout: 260 seconds]
tier has quit []
momomomomo has quit [Quit: momomomomo]
gondalier has joined #ruby
definiv has quit [Quit: leaving]
lkba has joined #ruby
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gattuso has joined #ruby
reset has quit [Read error: Connection reset by peer]
crazymykl has quit [Ping timeout: 257 seconds]
kinginky_ has joined #ruby
lw has quit [Quit: s]
mary5030 has quit [Remote host closed the connection]
<kinginky_>
hey everyone. curious if anyone knows of a way for me to add the Cache-Control header to all of my asset requests. im using sinatra + sprockets.
TheKruex has quit []
LekeFly has joined #ruby
joaoh82 has quit [Remote host closed the connection]
<kinginky_>
i know how to set the header w/ sinatra. i could use a before block to do it, but then it'll apply to everything, and i only want it to apply to my sprockets assets.
<jhass>
iirc there are rack middlewares that do that
<kinginky_>
in fact, only my images/fonts.
pu22l3r has quit [Ping timeout: 252 seconds]
<kinginky_>
ive been searching around. ive found some things in the right vein but nothing detailing exactly how to do this.
robbyoconnor has quit [Ping timeout: 240 seconds]
havenwood has quit [Remote host closed the connection]
ikilledthecat has quit [Ping timeout: 240 seconds]
<kinginky_>
i could cache-control all requests in a before block but that wont work. there must be a way to do it, though, as i can't be the first to desire it.
crazymykl has joined #ruby
lemur has joined #ruby
robbyoconnor has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
GriffinHeart has joined #ruby
gbchaosmaster has joined #ruby
razrunelord has quit [Remote host closed the connection]
mary5030 has joined #ruby
lxsameer has quit [Quit: Leaving]
havenwood has joined #ruby
<canton7>
typically you'd use a server like apache or nginx to serve your static files, and they'd handle the caching aspect of it
<Edelwin>
nginx
reset has joined #ruby
seitensei has quit [Read error: Connection reset by peer]
cocotton_ has joined #ruby
mjb2k has quit [Quit: Leaving]
mikepack has quit [Read error: Connection reset by peer]
zoraj_ has joined #ruby
bmurt has quit []
seitensei has joined #ruby
wallerdev has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
<jhass>
^ if you you really need to serve them through the app, writing a rack middleware that adds them conditionally matching on the request path should be very easy
zoraj has quit [Read error: Connection reset by peer]
dangerousdave has quit [Ping timeout: 245 seconds]
Deejay_ has quit [Quit: Computer has gone to sleep.]
jailbot has joined #ruby
wallerdev has joined #ruby
lemur has quit [Ping timeout: 244 seconds]
gogiel has quit [Ping timeout: 245 seconds]
sivoais has quit [Ping timeout: 245 seconds]
GriffinHeart has quit [Ping timeout: 272 seconds]
arya_ has quit [Ping timeout: 252 seconds]
matrixise has quit [Ping timeout: 245 seconds]
echevemaster has quit [Ping timeout: 245 seconds]
cocotton has quit [Ping timeout: 244 seconds]
pvb has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby
gogiel has joined #ruby
sivoais has joined #ruby
matrixise has joined #ruby
SBoolean has quit [Remote host closed the connection]
cocotton_ has quit [Ping timeout: 244 seconds]
dangerousdave has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bluOxigen has joined #ruby
echevemaster has joined #ruby
iamayam has quit [Ping timeout: 252 seconds]
iamayam has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
toordog has quit [Ping timeout: 240 seconds]
agent_white has quit [Read error: Connection reset by peer]
sinkensabe has quit [Remote host closed the connection]
toordog has joined #ruby
sinkensabe has joined #ruby
kireevco has joined #ruby
newUser1234 has joined #ruby
jailbot is now known as lordflapjack
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
phutchins has joined #ruby
agent_white has joined #ruby
superscott[8] has quit [Ping timeout: 272 seconds]
andrewjanssen has joined #ruby
superscott[8] has joined #ruby
Zenigor has quit [Remote host closed the connection]
almostwhitehat has left #ruby [#ruby]
sinkensabe has quit [Ping timeout: 252 seconds]
combusean has quit [Quit: Leaving.]
Andy1991 has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
Andy1991 has quit [Quit: Page closed]
danijoo has joined #ruby
<sweeper>
so I've got this proprietary ruby extension I need to package into a gem
RaCx has quit [Quit: Computer has gone to sleep.]
<sweeper>
it has one "ruby ext" .so file and a separate .so file
<sweeper>
how do I make it so installing the gem installs that so second file and links it in?
djbkd has quit [Remote host closed the connection]
frogssgy has joined #ruby
joaoh82 has joined #ruby
NukePuppy has quit [Ping timeout: 244 seconds]
Arkaniad has joined #ruby
Rollabunna has quit [Ping timeout: 252 seconds]
yubrew has quit [Remote host closed the connection]
djbkd has joined #ruby
superscott[8] has quit []
sarkis has quit [Ping timeout: 244 seconds]
combusean has joined #ruby
combusean has quit [Client Quit]
kireevco has quit [Quit: Leaving.]
mary5030 has quit [Remote host closed the connection]
aniM has quit [Ping timeout: 240 seconds]
andrewlio has left #ruby [#ruby]
hpoydar has joined #ruby
frosgy has quit [Ping timeout: 272 seconds]
razrunelord has joined #ruby
isthisreallife has joined #ruby
zorak has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mostlybadfly has quit [Quit: Connection closed for inactivity]
fgo has joined #ruby
ldnunes has quit [Quit: Leaving]
kireevco has joined #ruby
kireevco has quit [Client Quit]
robbyoconnor has quit [Excess Flood]
volk_ has quit [Quit: volk_]
robbyoconnor has joined #ruby
shvelo has quit [Ping timeout: 244 seconds]
mobi_pontiki has joined #ruby
<shevy>
what does "ruby ext" mean
<mobi_pontiki>
rehi
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
Mobi whale!
<shevy>
pontiki transformed into a whale!
St_Marx has quit [Quit: Ex-Chat]
* agent_white
giggles and cheers
kyb3r_ has joined #ruby
<mobi_pontiki>
all the bikers left work fast so I did too. thunderstorms!
Guest43929 has joined #ruby
<shevy>
sweeper if it is just a .so file and you have no source code anyway, why don't you simply copy it to /usr/lib
<shevy>
sounds dangerous
jxf has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Ping timeout: 272 seconds]
<sweeper>
shevy: cause I want it to be easy to install :/
autonomousdev has quit [Ping timeout: 264 seconds]
beneggett has joined #ruby
Guest43929 has quit [Quit: Leaving]
sailias has quit [Quit: Leaving.]
<mobi_pontiki>
not really, but I don't want to walk in one
jerius has quit [Ping timeout: 244 seconds]
<shevy>
sweeper what is so hard using cp
phutchins has quit [Ping timeout: 244 seconds]
<sweeper>
shevy: lots of servers...versions will change, etc
fgo has quit [Ping timeout: 272 seconds]
<shevy>
I mean that's what a Makefile does as well no? it copies the stuff it compiled in the subdir
<sweeper>
so if it's packaged in a gem, I can just ship it up to github and bam