<shevy>
"In Python 3 we're doing Unicode right as developers."
<shevy>
"I suppose what means is that all text data is Unicode and all non text data is bytes."
<shevy>
"In this wonderful world of everything being black and white, the "Hello World" example is pretty straightforward."
<shevy>
\o/
<shevy>
black and white!
<shevy>
true and false
<eam>
there's no right way to do unicode so anyone making that statement isn't to be trusted
<shevy>
black cat and dead cat
<shevy>
I trust my build-systems
<shevy>
unless they run on perl
<shevy>
then I am suspicious
philcrissman has quit [Ping timeout: 272 seconds]
<shevy>
eam has your heart finally embraced "gem"?
<eam>
nope
yfeldblum has joined #ruby
<build-system>
which link exactly do you want me to read?
axilla has joined #ruby
jmbrown412 has quit [Remote host closed the connection]
mechanicalduck has quit [Quit: ChatZilla 0.9.90.1-rdmsoft [XULRunner 22.0/20130619132145]]
linojon has joined #ruby
jmbrown412 has joined #ruby
<shevy>
who, wasamasa?
mojo619 has quit [Quit: mojo619]
juz88 has joined #ruby
ari-_-e has joined #ruby
mikepack has quit [Remote host closed the connection]
ddv has quit [Ping timeout: 260 seconds]
<shevy>
reading the full blog is boring, only the rants are fun
<shevy>
and the epic close-up statement:
chrishough has joined #ruby
<shevy>
"If Python 3 was the only Python language I would use, I would eat up all the problems and roll with it. But it's not."
<shevy>
"There is a perfectly other language available called Python 2, it has the larger user base and that user base is barely at all migrating over."
<shevy>
hehehe
<build-system>
heh
ddv has joined #ruby
<build-system>
reminds me of something...
jmbrown412 has quit [Ping timeout: 260 seconds]
<build-system>
"the most dangerous enemy of a better solution is an existing codebase that is just good enough"
<shevy>
yeah
axilla has quit [Ping timeout: 240 seconds]
agjacome_ has joined #ruby
<shevy>
I see it every time I try to do a rewrite
mikepack has joined #ruby
asteve has joined #ruby
<build-system>
i love rewriting stuff
<shevy>
halfway I lose motivation
Darkchaos has quit [Ping timeout: 240 seconds]
<shevy>
build-system isn't it a waste of time?
<build-system>
yes, but it's a learning experience for me
<build-system>
though that's only for stuff that's set in stone. like APIs.
<build-system>
didn't see that one before. what is the context?
jerikl has joined #ruby
koderok has joined #ruby
koderok has quit [Remote host closed the connection]
ylluminate` has quit [Quit: Bye!]
patric100e99 has joined #ruby
babykosh has joined #ruby
<pontiki>
nearly everything
<pontiki>
it's a management maxim from back in the 80s and 90s, tho
MatthewsFace has joined #ruby
<babykosh>
ruby gods….I have an object in pry….BSON::ObjectId(‘53e2c00e53696db88200000’)…I want to tease out the number of the Id so I have only 53e2c00e53696db88200000
<babykosh>
how do I do this?
gogohome has joined #ruby
<pontiki>
it is (was) usually meant to convey the exact opposite of your more expansive wording
<gogohome>
hello
<pontiki>
in other words "stop making it better, just get it done" :)
braincrash has joined #ruby
michaeldeol has joined #ruby
<build-system>
oh I finally get it.
<pontiki>
you can probably hear some PHB saying that even now in your head
<sevenseacat>
one would argue that 53e2c00e53696db88200000 isnt a number
<build-system>
how about "get it done and then make it better" ?
<pontiki>
hush!!
<pontiki>
we don't have time for that!
<pontiki>
MOAR FEACHURS MOAR FEACHURS
<babykosh>
so in pry I have an object _id and it is => BSON::ObjectID(‘somenumnber’)
eToThePiIPower has quit [Quit: Konversation terminated!]
<babykosh>
i want to do _ID???? to get only the somenumber in return
<pontiki>
build-system: if you find yourself working for someone for whom the word "refactor" is a dirty word, take my advice and leave as soon as you can
localredhead has quit [Ping timeout: 255 seconds]
<build-system>
what if you find yourself working with someone who changes stuff on a whim (me)?
<gogohome>
is here python member?
<pontiki>
then i'd set you on things that needed refactoring
<build-system>
when to refactor, and when not to?
<pontiki>
that is a question
<mozzarella>
no one? ( ;____;)
queequeg1 has quit [Ping timeout: 240 seconds]
<pontiki>
nope
<mozzarella>
I filed an issue on github… hopefully I'll receive an answer soon
echevemaster has quit [Remote host closed the connection]
<sevenseacat>
you know issues are supposed to be for bugs in the code, not 'help me use your library', right
mary5030 has quit [Remote host closed the connection]
HashNuke has quit [Quit: Connection closed for inactivity]
whyy has joined #ruby
queequeg1 has joined #ruby
cy has quit [Ping timeout: 240 seconds]
ghostmoth has quit [Quit: ghostmoth]
echooo has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
ghostmoth has joined #ruby
kuzushi has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
jftf_ has quit [Ping timeout: 240 seconds]
cap has joined #ruby
babykosh has quit [Quit: babykosh]
whyy has quit [Ping timeout: 240 seconds]
jmbrown412 has quit [Remote host closed the connection]
mojo619 has joined #ruby
queequeg1 has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 244 seconds]
cy has joined #ruby
kireevco has quit [Quit: Leaving.]
Bira has joined #ruby
lw has quit [Quit: s]
larsam has left #ruby [#ruby]
philcrissman has joined #ruby
<benzrf>
>> die
<eval-in>
benzrf => undefined local variable or method `die' for main:Object (NameError) ... (https://eval.in/179531)
<benzrf>
>> whatever / 25 ; # / ; puts "brinted";
<eval-in>
benzrf => undefined local variable or method `whatever' for main:Object (NameError) ... (https://eval.in/179532)
CorpusCallosum has quit [Ping timeout: 260 seconds]
starkhalo has quit [Ping timeout: 264 seconds]
jshultz has quit [Quit: Connection closed for inactivity]
shredding has quit [Quit: shredding]
alexju has quit [Remote host closed the connection]
alexju has joined #ruby
timonv_ has joined #ruby
mercwithamouth has quit [Ping timeout: 250 seconds]
alexju has quit [Ping timeout: 255 seconds]
localredhead has joined #ruby
kuzushi has quit [Ping timeout: 272 seconds]
Spami has joined #ruby
localredhead has quit [Remote host closed the connection]
Spami has quit [Remote host closed the connection]
michaeldeol has joined #ruby
IceDragon has quit [Quit: Space~~~]
Emmanuel_Chanel has quit [Read error: No route to host]
arya_ has quit [Quit: sayonara^_^]
toastynerd has quit [Remote host closed the connection]
sigurding has joined #ruby
devoknievo___ has quit [Quit: Computer has gone to sleep.]
Emmanuel_Chanel has joined #ruby
bearish has joined #ruby
danijoo_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
mercerist has joined #ruby
gogohome has left #ruby [#ruby]
dik_dak has quit [Quit: Leaving]
moted has quit []
jsodini has joined #ruby
nanoyak has quit [Ping timeout: 255 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
ephemerian has joined #ruby
Rahul_Roy has joined #ruby
anaeem1__ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klaut has joined #ruby
anaeem1 has quit [Ping timeout: 260 seconds]
saarinen has quit [Quit: saarinen]
ghr has joined #ruby
build-system has quit [Quit: Leaving]
lxsameer has joined #ruby
fgo has joined #ruby
geggam has quit [Ping timeout: 272 seconds]
barhum2013 has quit [Quit: barhum2013]
KnownSyntax has quit [Read error: Connection reset by peer]
timonv_ has quit [Remote host closed the connection]
amacou has quit [Ping timeout: 244 seconds]
sdwrage has joined #ruby
emmesswhy has quit [Quit: Leaving]
ghr has quit [Ping timeout: 250 seconds]
fgo has quit [Ping timeout: 272 seconds]
vsoftoiletpaper has quit []
craigbowen3 has quit [Ping timeout: 240 seconds]
whyy has joined #ruby
_0xff_ has joined #ruby
gauke has joined #ruby
Wolland_ has quit [Remote host closed the connection]
craigbowen3 has joined #ruby
krisquigley has joined #ruby
whyy has quit [Ping timeout: 244 seconds]
Matadoer has quit [Remote host closed the connection]
axl_ has joined #ruby
andikr has joined #ruby
Wolland has joined #ruby
fgo has joined #ruby
_0xff_ has quit [Ping timeout: 245 seconds]
chipotle has quit [Quit: cya]
axl_ has quit [Client Quit]
krisquigley has quit [Remote host closed the connection]
_0xff_ has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
kaspergrubbe_ has joined #ruby
Bira has joined #ruby
philcrissman has joined #ruby
_0xff_ has quit [Ping timeout: 246 seconds]
kaspergrubbe_ has quit [Ping timeout: 255 seconds]
Bira has quit [Ping timeout: 260 seconds]
philcrissman has quit [Ping timeout: 255 seconds]
craigbowen3 has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
shredding has joined #ruby
nat2610 has quit [Quit: Leaving.]
cap_ has joined #ruby
cap has quit [Ping timeout: 250 seconds]
bearish has quit [Read error: Connection reset by peer]
koderok has joined #ruby
brandon_ has joined #ruby
bearish has joined #ruby
jprovazn has joined #ruby
koderok has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
DrCode has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
mijicd has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
mijicd has joined #ruby
threesixes has quit [Ping timeout: 272 seconds]
mijicd has quit [Remote host closed the connection]
timonv_ has joined #ruby
DrCode has joined #ruby
mijicd has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
razum2um has joined #ruby
krisquigley has joined #ruby
Xeago has joined #ruby
sandelius has joined #ruby
blackmes1 has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
timonv^ has joined #ruby
bluOxigen has joined #ruby
tectonic has quit []
mikecmpbll has joined #ruby
timonv_ has quit [Ping timeout: 272 seconds]
Jackneill has joined #ruby
mijicd has quit [Remote host closed the connection]
amacou has joined #ruby
mijicd has joined #ruby
chth0n has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
Morkel has quit [Quit: Morkel]
mikecmpbll has quit [Quit: i've nodded off.]
Akagi201 has joined #ruby
krisquigley has quit [Remote host closed the connection]
radic_ has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
bearish has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
bearish has joined #ruby
mikecmpbll has joined #ruby
alexherbo2 has quit [Remote host closed the connection]
radic has joined #ruby
noeden has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
ghr has joined #ruby
Zebroid has joined #ruby
Zebroid has quit [Remote host closed the connection]
phutchins has quit [Read error: Connection reset by peer]
Zebroid has joined #ruby
wpp has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
Zebroid has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
ghr has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Darkchaos has joined #ruby
Doppp has quit [Quit: leaving]
mijicd has quit [Remote host closed the connection]
<jhass>
archetech_: works fine here. maybe just try installing the aur package for it
timonv^ has quit [Remote host closed the connection]
phutchins has joined #ruby
lkba has joined #ruby
barhum2013 has joined #ruby
mijicd has joined #ruby
Wolland has quit [Remote host closed the connection]
qba73 has joined #ruby
Wolland has joined #ruby
Bira has joined #ruby
einarj has joined #ruby
ptrrr has joined #ruby
JoshGlzBrk has joined #ruby
ptrrr has quit [Remote host closed the connection]
JoshGlzBrk has quit [Max SendQ exceeded]
mkaesz has joined #ruby
ptrrr has joined #ruby
JoshGlzBrk has joined #ruby
queequeg1 has quit [Ping timeout: 255 seconds]
mikecmpbll has quit [Ping timeout: 272 seconds]
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 272 seconds]
Bira has quit [Ping timeout: 240 seconds]
devoknievo___ has joined #ruby
mikecmpbll has joined #ruby
thomasxie has joined #ruby
abuzze has joined #ruby
abuzze has quit [Remote host closed the connection]
devoknievo___ has quit [Ping timeout: 240 seconds]
abuzze has joined #ruby
thomasxie has left #ruby [#ruby]
oo_ has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
decoponio has joined #ruby
linojon has quit [Quit: linojon]
Takle has joined #ruby
timonv_ has joined #ruby
Fire-Dragon-DoL has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
kaspertidemann has joined #ruby
AlexBlom has quit [Ping timeout: 245 seconds]
carraroj has joined #ruby
krisquigley has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
devoknievo___ has joined #ruby
queequeg1 has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
kquig has joined #ruby
davedev24_ has quit [Remote host closed the connection]
Spami has joined #ruby
davedev24_ has joined #ruby
jottr has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
Xeago has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 245 seconds]
carraroj has joined #ruby
Dev-Gitter has joined #ruby
Dev-Gitter has left #ruby ["Leaving"]
mozzarella has quit [Ping timeout: 272 seconds]
Dev-Gitter has joined #ruby
aztak has joined #ruby
FarlaTux has joined #ruby
barhum2013 has quit [Quit: barhum2013]
joonty has joined #ruby
bMalum__________ has joined #ruby
whyy has joined #ruby
davedev24_ has joined #ruby
ringarin has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
marr has joined #ruby
KnownSyntax has joined #ruby
whyy has quit [Ping timeout: 272 seconds]
postmodern has quit [Quit: Leaving]
doev has quit [Quit: Verlassend]
workmad3 has joined #ruby
W0rmDr1nk has joined #ruby
doev has joined #ruby
philcrissman has joined #ruby
Xeago has joined #ruby
Sonny|3oy has joined #ruby
Grantlyk has joined #ruby
sevenseacat has quit [Quit: Leaving.]
arq_ has quit [Ping timeout: 244 seconds]
ringarin has quit [Quit: Leaving]
philcrissman has quit [Ping timeout: 240 seconds]
bearish has quit []
lxsameer has quit [Quit: Leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
startupality has joined #ruby
mozzarella has joined #ruby
elaptics`away is now known as elaptics
kyb3r_ has quit [Read error: Connection reset by peer]
patrick99e99 has joined #ruby
Neomex has joined #ruby
zeeraw has joined #ruby
Xeago has quit [Remote host closed the connection]
polymar has joined #ruby
polymar has quit [Remote host closed the connection]
polymar has joined #ruby
realDAB has joined #ruby
ptrrr has quit [Quit: ptrrr]
spider-mario has joined #ruby
root3d has quit [Remote host closed the connection]
Bira has joined #ruby
melik has quit [Quit: Computer has gone to sleep.]
patrick99e99 has quit [Ping timeout: 246 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has quit [Excess Flood]
Xeago has joined #ruby
robbyoconnor has joined #ruby
Grantlyk has quit [Remote host closed the connection]
Spami has quit [Read error: Connection reset by peer]
Bira has quit [Ping timeout: 240 seconds]
abuzze_ has joined #ruby
carraroj has quit [Ping timeout: 255 seconds]
txdv has quit [Read error: Connection reset by peer]
mgomezch_ has joined #ruby
ereslibre has quit [Ping timeout: 255 seconds]
aalmenar_ has quit [Ping timeout: 260 seconds]
abuzze has quit [Ping timeout: 250 seconds]
txdv has joined #ruby
mgomezch has quit [Ping timeout: 272 seconds]
stan has joined #ruby
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
<stan>
what's the recommended way of marking code as deprecated in ruby? ideally i'd like to print a warning with the file and line number of the call to the deprecated method
klaut has quit [Remote host closed the connection]
nfk has joined #ruby
mkaesz has quit [Quit: Leaving...]
dawkirst has quit [Remote host closed the connection]
<Hanmac>
stan you can use Kernel#warn for that
<jhass>
caller can give you the other part
koderok has joined #ruby
echooo1 has joined #ruby
<Hanmac>
stan if you use Kernel#warn, notice that is only works if -w is used
<Hanmac>
ah ok then it was onother check in the file
dangerousdave has joined #ruby
lw has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
<Hanmac>
ah yeah it was the $VERBOSE flag ...
shredding has quit [Quit: shredding]
Liam-Workk has quit [Quit: Leaving]
robbyoconnor has quit [Ping timeout: 272 seconds]
polymar has left #ruby [#ruby]
Shidash has quit [Ping timeout: 246 seconds]
BaconOverflow has joined #ruby
Xeago has quit [Remote host closed the connection]
kaspergrubbe_ has joined #ruby
juz88 has quit [Ping timeout: 246 seconds]
pydave6377 has quit [Quit: leaving]
pydave6367 has joined #ruby
bMalum__________ has quit [Quit: Computer has gone to sleep.]
bMalum__________ has joined #ruby
phutchins has quit [Ping timeout: 240 seconds]
Butthurthead has quit [Quit: Leaving]
phutchins has joined #ruby
bMalum__________ has quit [Ping timeout: 245 seconds]
tkuchiki_ has joined #ruby
ptrrr has joined #ruby
tkuchiki has quit [Ping timeout: 255 seconds]
Zebroid has joined #ruby
timfoo has quit [Ping timeout: 244 seconds]
tkuchiki_ has quit [Ping timeout: 272 seconds]
koderok has quit [Quit: koderok]
phutchins has quit [Ping timeout: 240 seconds]
phutchins has joined #ruby
Sonny|3oy has quit [Ping timeout: 264 seconds]
fgo has quit [Remote host closed the connection]
shredding has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
__main__ has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
__main__ has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
realDAB has quit [Quit: realDAB]
Neon has joined #ruby
razum2um has quit [Quit: Leaving.]
Takle has joined #ruby
timfoo has joined #ruby
Sonny|3oy has joined #ruby
Bira has joined #ruby
jayne has quit [Read error: Connection reset by peer]
echooo1 has quit [Quit: echooo1]
<Neon>
I'm struggling with installing mysql2 on Windows 7. The last time it was easier iirc. So at first I had Ruby 1.9.3 installed and tried to gem install mysql2. It always ended in an error. I found out that one should specify the mysql connector location as in gem install --platform=ruby -- '--with-mysql-dir="..."'. I did that and ran into another error involving the mesage "Makefile:165: *** target pattern contains no `%'.
<Neon>
Stop.". I found this site https://github.com/rubygems/rubygems/issues/977 . So I assumed to have two options: Downgrading gem or upgrading Ruby. I installed Ruby 2.0.0 x64, the DevTools for it and ran into slightly different issue I failed to resolve. It just says this: http://pastebin.com/WgUkHWHj Please help, I'm so done with this... I already copied the libmysql.dll and .lib into ruby200/bin. Same error.
kaspertidemann has quit []
echooo has joined #ruby
starless has quit [Quit: Leaving]
<jhass>
this sounds as if you have installed ruby 2.0 without development headers
<jhass>
I don't use windows so I don't know what they do and what they don't
andikr has joined #ruby
<shevy>
Neon try to find out where the headers are
<jhass>
also double check the right mingw stuff from that site there is installed
<Neon>
Well, I have a ruby.h in C:\Ruby200\include\ruby-2.0.0.
shredding has quit [Quit: shredding]
<Neon>
jhass: Any tip how I could check it? I have two DevKits installed now. The 32 Bit one for 1.9.3 and the mingw64 one for 2.0.0.
shredding has joined #ruby
jayne has joined #ruby
<jhass>
No, I don't use windows
dawkirst has joined #ruby
froggy__ has joined #ruby
phutchins has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
froggy_ has quit [Ping timeout: 240 seconds]
thomasxie has joined #ruby
axl_ has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
sandelius has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
dawkirst has quit [Ping timeout: 244 seconds]
axl_ has quit [Client Quit]
fgo has joined #ruby
chipotle has joined #ruby
abuzze_ has quit [Remote host closed the connection]
Zebroid has quit [Remote host closed the connection]
abuzze has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
<Neon>
I removed Ruby 2.0.0 x64 and replaced it by the x86 version, made sure the --with-mysql-dir pointed to the bare MySQL connector 32Bit directory (dl as archive, not installer), and had the DevKit for 2.0.0 x86 setup. It worked now.
echooo has quit [Quit: echooo]
whyy has joined #ruby
gaussblurinc1 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
lkba has joined #ruby
tkuchiki has joined #ruby
tokik has quit [Ping timeout: 250 seconds]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
cool
chipotle has quit [Quit: cya]
<shevy>
you windows guys are brave
<Neon>
lol
<Neon>
This new 64-Bit-trend made it all worse.
maximski has joined #ruby
chipotle has joined #ruby
<Neon>
Experimental x64-builds everywhere.
whyy has quit [Ping timeout: 255 seconds]
stef_204 has joined #ruby
sandelius has joined #ruby
fgo has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
AlSquirrel has joined #ruby
<shevy>
yeah
<shevy>
stupid multilib on linux
<shevy>
wine is useless without 32 binaries
<shevy>
so I can't run fallout 1 and fallout 2 :(
andikr has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
<Neon>
It's so funny. Windows people trying to develop on Windows and Linux people trying to play on Linux. See the irony?
<Neon>
The first thing the former do is installing GNU utils and mingw, the first thing the latter do is installing wine.
kaspertidemann has joined #ruby
codecop has joined #ruby
hellangel7 has joined #ruby
aalmenar has joined #ruby
aalmenar has joined #ruby
mkaesz has joined #ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
mercerist has joined #ruby
philcrissman has joined #ruby
mikecmpbll has quit [Ping timeout: 250 seconds]
Takle has joined #ruby
<shevy>
well you need the windows API for games that were specifically developed on windows
TieSoul_ has quit [Remote host closed the connection]
<shevy>
you could rewrite all the GNU tools in ruby and have it work on windows
hellangel7 has quit [Max SendQ exceeded]
yacks has quit [Quit: Leaving]
hellangel7 has joined #ruby
<Neon>
Still waiting for the day game developers stop using platform-dependent stuff.
lukeholder has joined #ruby
Mozee has quit [Ping timeout: 272 seconds]
mikecmpbll has joined #ruby
<gaussblurinc1>
uh, what's wrong with my logger?! :\ I don't understand why it doesn't want to log with original format :\ I only use Logger.new method and never nil it's format instance property :\
lukeholder has quit [Max SendQ exceeded]
Zebroid has joined #ruby
philcrissman has quit [Ping timeout: 246 seconds]
lukeholder has joined #ruby
aztak has left #ruby ["WeeChat 0.4.3"]
Zebroid has quit [Remote host closed the connection]
Zebroid has joined #ruby
karupa is now known as zz_karupa
sigurding has joined #ruby
kaspertidemann has quit []
maximski has quit [Ping timeout: 240 seconds]
Zebroid_ has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
ylluminarious has joined #ruby
Zebroid_ has quit [Remote host closed the connection]
_0xff_ has joined #ruby
vinleod has joined #ruby
shredding has quit [Quit: shredding]
Takle has quit [Remote host closed the connection]
Zebroid has quit [Ping timeout: 246 seconds]
diegoviola has quit [Quit: WeeChat 0.4.3]
<gr33n7007h>
is `%-40s` pad it 40 characters from the left?
maroloccio has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
<j416>
gr33n7007h: try it and see™?
oo_ has quit [Remote host closed the connection]
decoponio has quit [Read error: Connection reset by peer]
<Neon>
jhass: Yeah, <3 Valve even more for that even though they make millions of having people trade virtual stuff on Steam. I hope one day the average gamer will have a free decision between Win and Linux for all the games they want to play.
oo_ has quit [Remote host closed the connection]
<jhass>
donofrio: how about #puppet ?
<shevy>
donofrio obviously it wants a gem called rails, so why not install it: gem install rails
<shevy>
it looks like debian ruby though
charliesome has joined #ruby
<shevy>
debian ruby is notorious for being stupid
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<shevy>
in `require': no such file to load -- mkmf (LoadError)
nateberkopec has joined #ruby
<donofrio>
shevy: in what way? should I abanon and use centos?
<shevy>
donofrio they make modifications according to their world view
<donofrio>
I've new to ruby and such so just setting stage...
<shevy>
well people will typically tell you to use something else, be it rbenv, rvm or the source
Sgeo has quit [Read error: Connection reset by peer]
<shevy>
most gems will come with documentation how to use them properly
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
Sonny|3oy has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<donofrio>
was thinking I should be using rvm but the centos doc I'm following for puppet setup has me doing these though gem's
iamjarvo has quit [Max SendQ exceeded]
krisquigley has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Client Quit]
<shevy>
it does not sound right
<shevy>
does puppet really require rails?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<donofrio>
I dunno....I only wanted rake and rack and passenger but it wanted rails as a prereq?
<donofrio>
lol it's a homegrown doc on how its been setup and running 300 server clients to manage (abet its centos - and that is fine its just I'm liking the linuxmint Debian stuff
<donofrio>
passenger is here as well
<donofrio>
fwiw
<shevy>
I checked those 4 gems right now - none have a rails dependency
gogohome has joined #ruby
<gogohome>
hello
<donofrio>
ok so how do I get past this message then?
<davzie>
Hey Ruby-peeps. Can I run a programatical problem by you all and see if you can help point me in the right direction to a solution? It's a very generic problem but I just want to ensure I'm going down a practical route to solving it?
obscured has joined #ruby
<jhass>
mechanicalduck: probably
<jhass>
davzie: don't ask to ask, just ask
banister has joined #ruby
<mechanicalduck>
jhass: ok, the point is that when I use that and when it passes (true), I try to access that key: format[:path].empty? it fails with Nil no method error.
DaniG2k has quit [Ping timeout: 255 seconds]
<davzie>
So I have a list of items in a database, let's say "Services". These could be anything from "Laundry", "Dry Cleaning" etc. Now imagine those services as "default services". I might add a "company" to the system and when I do, that company should inherit all current and additional default services. But I should be able to as a company delete those services (without it effecting the default ones always
<davzie>
available) and also add new services associated with only that company.
<davzie>
What's the best way to think about that in terms of DB design?
<jhass>
mechanicalduck: then format probably has that key and it is set to nil
<mechanicalduck>
jhass: ah
<mechanicalduck>
jhass: OK, is there some kind of shorthand method where I can find out if a) the variable exists; b) the key in that variable exists and finally c) the string (string is expected) for that key is _not_ empty?
ixti has joined #ruby
<mechanicalduck>
I could put some define?(...) .has_key(...) !.empty? together, but it looks so complicated.
nateberkopec has quit [Quit: Leaving...]
<shevy>
mechanicalduck .has_key?
<jhass>
davzie: how static are these default services? Can they be changed by somebody, do different companies have different defaults?
<davzie>
Yes the default services can be changed by a super-admin
<davzie>
A super-admin is also the only one that can change the company-specific services
<davzie>
Companys can't actually do that themselves
<davzie>
But that shouldn't effec the DB design I guess
<jhass>
mechanicalduck: you should know if the variable exists
<waxjar>
mechanicalduck: there's Hash#fetch which raises when the key doesn't exist
<davzie>
Each company has the same defaults, and if a new default is added, all existing companies will inherit that new entry
<davzie>
They can always opt to delete it of course
jespada has joined #ruby
comma8 has quit [Ping timeout: 250 seconds]
zeeraw has joined #ruby
<_0xf_>
davzie: How many default services do you suspect will exist? Are we talking a dozen or less? Or possibly hundreds?
<jhass>
davzie: davzie I'd suggest to make a table that defines all services, those have a flag whether they're default ones or not. Then a join table defines which companies have which services. Adding the defaults to that join table upon company creation and upon default service creation should be then application logic
paulfm has joined #ruby
<davzie>
Possibly around 50 _0xf_
<_0xf_>
davzie: Okay. How about companies?
axl_ has joined #ruby
<davzie>
_0xf_: As much as the business scales, could be 2 could be 1000
<_0xf_>
Hmm
<davzie>
jhass: So you mean like "services" and "services_companies" tables
<davzie>
jhass: Thanks man, I will have a think and implement this
d4ryus has quit [Killed (hobana.freenode.net (Nickname regained by services))]
d4ryus__ is now known as d4ryus
<_0xf_>
One way to look at it is to focus on what's going to scale larger: companies or services? If you're going with a one to many joins relationship, you're going to have to add new defaults to each company as they get added. With enough companies that can get time consuming. That's extra time on company creation. You could also have list of services each company has opted *out* of and subtract those entris from all of the default services. That adds
thomasxie has quit [Remote host closed the connection]
<_0xf_>
entries*
<_0xf_>
That's how I would go about reasoning with the problem. Each option has tradeoffs.
<jhass>
alternative schemes are harder to implement though, I'd consider spending that time in monitoring your application instead to identify and optimize bottlenecks as they occur
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
I mean adding 50 entries to a 50k table still is not really an issue for any serious DBMS
<_0xf_>
Agreed. As long as your db optimization isn't out of whack, adding one record per company shouldn't be all that time consuming. Plus you could always have it run nightly as a task to add 'em.
paulfm has quit [Ping timeout: 260 seconds]
Xeago has quit [Ping timeout: 260 seconds]
Takle has quit [Remote host closed the connection]
cy has quit [Quit: :q!]
krz has joined #ruby
<_0xf_>
Larger overhead on adding new default services can be hidden in the background. Businesses probably won't ever really notice it.
AlexBlom has joined #ruby
<_0xf_>
Larger overhead on loading default businesses is an overhead they'd probably notice.
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Zenigor has joined #ruby
paulfm has joined #ruby
spyderman4g63 has joined #ruby
realDAB has joined #ruby
axilla has quit [Ping timeout: 244 seconds]
<donofrio>
does a gem command have a review or realign the gems? cause I have nodejs and execjs and still no more joy
_whitelogger has joined #ruby
carraroj has joined #ruby
carraroj has joined #ruby
carraroj has quit [Changing host]
<jhass>
you're not making it better with incompetent "just don't use it" though
realDAB has quit [Quit: realDAB]
<shevy>
that is your assumption
<jhass>
and most of the time that are user errors
<shevy>
yes now go and fix this error
<jhass>
I've observed it long enough
sk87 has joined #ruby
<jhass>
there's no error
canton7 has joined #ruby
<jhass>
donofrio is simply following a outdated guide or so
yxhuvud has joined #ruby
jinie has joined #ruby
charliesome has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
{xenomorph} has joined #ruby
spyderman4g63 has joined #ruby
<donofrio>
jhass: I'll take a rvm fix_it_for_me if one exists (not trying to berate this just would like it work)
DaniG2k has joined #ruby
<jhass>
donofrio: so would you answer my question? what or who told you you need to run that task?
heyimwill has joined #ruby
_5kg has joined #ruby
yfeldblum has joined #ruby
tvw has quit []
zz_LoRdToLsToI has joined #ruby
duggiefresh has joined #ruby
chipotle has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
anaeem1__ has quit [Remote host closed the connection]
tylerkern has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
decoponio has joined #ruby
<shevy>
it's a secret
nopc0de has joined #ruby
<jhass>
apparently
c00lryguy has joined #ruby
timfoo has quit [Ping timeout: 244 seconds]
Neon has quit [Quit: Leaving]
alexju has joined #ruby
phutchins has quit [Ping timeout: 260 seconds]
cocotton has joined #ruby
devoknievo___ has joined #ruby
Dev-Gitter has quit [Quit: Leaving]
FarlaTux has quit [Quit: Leaving]
timfoo has joined #ruby
coca_rails has joined #ruby
ephemerian has joined #ruby
jonr22 has joined #ruby
jonr22 has quit [Client Quit]
_maes_ has joined #ruby
cpruitt has joined #ruby
Veidit has joined #ruby
duper has joined #ruby
jonr22 has joined #ruby
jonr22 has quit [Client Quit]
matchaw has quit [Ping timeout: 255 seconds]
djcp has joined #ruby
djcp has left #ruby [#ruby]
Takle has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
crdpink has quit [Ping timeout: 260 seconds]
echevemaster has joined #ruby
doodlehaus has joined #ruby
snath has quit [Ping timeout: 246 seconds]
andrewjanssen has joined #ruby
gogohome has quit [Quit: gogohome]
yano has joined #ruby
Zenigor has quit [Remote host closed the connection]
cap has joined #ruby
beef-wellington has joined #ruby
Takle has joined #ruby
msmith_ has joined #ruby
jrhe_ has quit [Quit: Connection closed for inactivity]
jerikl has quit [Quit: jerikl]
shackleford has joined #ruby
andriusfm has quit [Quit: Leaving]
shackleford has quit [Read error: Connection reset by peer]
gtrak has joined #ruby
shackleford has joined #ruby
jerikl has joined #ruby
Sammael has joined #ruby
eka has joined #ruby
cap has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
AlexBlom has quit [Ping timeout: 272 seconds]
chipotle has quit [Quit: cya]
itspots has joined #ruby
treehug88 has joined #ruby
Xeago has joined #ruby
sailias has joined #ruby
thomasxie has joined #ruby
<donofrio>
jhass: no secret, it's just a braindump/history follow guide on how our linux tam deployed puppet to run 300 servers....that is all...and it was on centos and I'm on linuxmint/ubuntu so things will be diffrent I knwo that was humm
goshdarnyou has joined #ruby
cocotton has quit [Ping timeout: 240 seconds]
JohnFord has joined #ruby
tokik has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
shredding has quit [Quit: shredding]
kuzushi has joined #ruby
Zenigor has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
carraroj has quit [Ping timeout: 244 seconds]
jeramyRR has joined #ruby
matchaw has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
ARCADIVS has quit [Quit: WeeChat 0.4.3]
blackmes1 has quit [Ping timeout: 264 seconds]
cocotton has joined #ruby
whyy has joined #ruby
Bira has joined #ruby
mary5030 has joined #ruby
<shevy>
now jhass will be able to help better
newUser1234 has quit [Remote host closed the connection]
Aranshada|W has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Aranshada|W has quit [Client Quit]
timfoo has quit [Ping timeout: 244 seconds]
Aranshada|W has joined #ruby
razum2um has joined #ruby
Bira has quit [Ping timeout: 250 seconds]
whyy has quit [Ping timeout: 245 seconds]
timfoo has joined #ruby
<jhass>
donofrio: I don't see how the application version would change in that scenario, but since you now admit to do have a guide, as already said try skipping that step
s4nchez has joined #ruby
kaspertidemann has quit []
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
axl_ has joined #ruby
jhass is now known as jhass|off
phutchins has joined #ruby
axl_ has quit [Client Quit]
philcrissman has joined #ruby
<donofrio>
k
jeramyRR has quit [Quit: jeramyRR]
InhalingPixels has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<gaussblurinc1>
what is the best way to check that keys from two arrays are included in dictionary keys? [*a,*b] - d.keys?
jhass|off is now known as jhass
tylerkern has quit [Read error: Connection reset by peer]
<shevy>
you can try to check via .all and .include?
tylerkern has joined #ruby
s4nchez has quit [Remote host closed the connection]
<gaussblurinc1>
[*a,*b].all?{|c| d[c]}
<shevy>
or .has_key?
<shevy>
I dont know what is the * there
philcrissman has quit [Ping timeout: 255 seconds]
<jhass>
shevy: splat
Xeago_ has joined #ruby
snath has joined #ruby
<jhass>
gaussblurinc1: alternative (not really more readable): ((a+b)-d.keys).empty?
<gaussblurinc1>
jhass: cool
Xeago_ has quit [Read error: Connection reset by peer]
<gaussblurinc1>
(a+b).all?{|c| d[c]}
maroloccio has quit [Quit: WeeChat 0.4.3]
axl_ has joined #ruby
<gaussblurinc1>
this one should be faster, it doesn't use .keys of dictionary and only run in O(n) * O(search in dict), hmmm
smuck has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
Xeago has quit [Ping timeout: 260 seconds]
<jhass>
otoh mine doesn't need to do the context switch between ruby and c
<jhass>
or allocate stack frames for a block or anything like that
<jhass>
though go for readability
asteve has joined #ruby
asteve has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
bMalum has joined #ruby
asteve has joined #ruby
Morkel has quit [Quit: Morkel]
sambao21 has joined #ruby
andrewjanssen has joined #ruby
krzkrz has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
krz has quit [Read error: No route to host]
jottr_ has joined #ruby
InhalingPixels has joined #ruby
tvw has joined #ruby
geggam has joined #ruby
dseitz has joined #ruby
dseitz has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
ffranz has joined #ruby
Xeago has joined #ruby
jprovazn has quit [Quit: Leaving]
dseitz has joined #ruby
jottr_ has quit [Ping timeout: 246 seconds]
InhalingPixels has quit [Ping timeout: 250 seconds]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
codecop has quit [Quit: Išeinu]
dgx has left #ruby ["Leaving"]
havenwood has joined #ruby
zeeraw has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beneggett has joined #ruby
tylerkern has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
carraroj has joined #ruby
davedev2_ has quit []
davedev24_ has joined #ruby
brettnem has joined #ruby
wald0 has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
banister has joined #ruby
<brettnem>
hey all. .I'm trying to use ruby-prof outside of a loop, but the resultant profile it prints looks like it's just for a single iteration. thoughts?
BBBThunda has joined #ruby
Takle has quit [Remote host closed the connection]
toastynerd has joined #ruby
<brettnem>
i.e.: I print a time object before my loop and after and it's like 32 seconds.. the profile shows the total time is 0.74s
c00lryguy has quit [Remote host closed the connection]
spyderma_ has joined #ruby
cap has joined #ruby
acrussell has joined #ruby
rippa has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spyderman4g63 has quit [Ping timeout: 260 seconds]
icebourg has joined #ruby
barhum2013 has quit [Quit: barhum2013]
mikepack has joined #ruby
speaking1ode is now known as speakingcode
threesixes has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blueOxigen has joined #ruby
JohnFord has joined #ruby
krisquigley has quit [Remote host closed the connection]
freerobby has joined #ruby
cap has quit [Ping timeout: 244 seconds]
fold has quit [Ping timeout: 246 seconds]
OffTheRails has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
cajone has left #ruby [#ruby]
apeiros has joined #ruby
toastynerd has quit [Remote host closed the connection]
khax has joined #ruby
geekbri has joined #ruby
de has joined #ruby
Takle has joined #ruby
<khax>
choo-choo, choo-choo where is this train going to??
failshell has joined #ruby
<Sou|cutter>
brettnem: what if you take it up a level
<banister>
khax straight to hell
IceDragon has joined #ruby
<khax>
hah
khax has left #ruby ["Leaving"]
<brettnem>
Sou|cutter: I think I figured it out.. default mode is PROCESS_TIME, instead I changed it to WALL_CLOCK and now I get what I'm expecting
duggiefresh has quit [Read error: Connection reset by peer]
divi has joined #ruby
beneggett has quit [Ping timeout: 272 seconds]
<brettnem>
I did a test and doing a 1..5 with a sleep in it on PROCESS_TIME produced a total time of profile for like 0.0001 seconds
InhalingPixels has joined #ruby
duggiefresh has joined #ruby
duggiefresh has quit [Client Quit]
rustypigeon has joined #ruby
<Sou|cutter>
brettnem: nice. I've only busted out ruby-prof a couple times, I'll have to remember that somehow
<brettnem>
yeah, I guess it was producing those smaller numbers because ruby wasn't really doing anything
apeiros has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
apeiros has joined #ruby
tokik has quit [Ping timeout: 244 seconds]
Zenigor has quit [Remote host closed the connection]
InhalingPixels has quit [Ping timeout: 260 seconds]
cajone has joined #ruby
beneggett has joined #ruby
starkhalo has joined #ruby
patrick99e99 has quit [Ping timeout: 260 seconds]
Bira has joined #ruby
Zenigor has joined #ruby
vt102 has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
Zesty has joined #ruby
HashNuke has joined #ruby
Sephyros has joined #ruby
Asher has quit [Ping timeout: 272 seconds]
Sephyros has quit [Client Quit]
Asher has joined #ruby
Sephyros has joined #ruby
mikeymicrophone has joined #ruby
Bira has quit [Ping timeout: 272 seconds]
geekbri has quit []
yfeldblum has quit [Ping timeout: 255 seconds]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
phutchins has quit [Ping timeout: 255 seconds]
carraroj has quit [Ping timeout: 264 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
apeiros has joined #ruby
poulet_a has joined #ruby
tvw has quit []
jds has quit [Quit: Connection closed for inactivity]
lw has quit [Quit: s]
zeeraw has joined #ruby
spyderma_ has quit [Remote host closed the connection]
kraehe has joined #ruby
<mikeymicrophone>
I’m trying to use __FILE__ to find a class’s definition. I’m using define_method in a before_filter that is defined in a superclass. Is there any way to use eval or something so that __FILE__ gets the filename of the subclass?
tylerkern has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
Xeago_ has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 240 seconds]
InhalingPixels has joined #ruby
_main_ has joined #ruby
ghostmoth has joined #ruby
wormwood has joined #ruby
shredding has joined #ruby
anildigital is now known as zz_anildigital
<wormwood>
Greetings all, what is thee lint (static code analysis) program for ruby? There are quite a few and was just wondering if there was one in particular that stands above the rest.
b00stfr3ak has joined #ruby
linojon has joined #ruby
__main__ has quit [Ping timeout: 240 seconds]
<Mon_Ouie>
Many people seem to be using rubocop now
AlexBlom has joined #ruby
_main_ is now known as __main__
DaniG2k has quit [Ping timeout: 264 seconds]
CorySimmons has joined #ruby
<wormwood>
Mon_Ouie: many thanks!
DrSnowstormer is now known as Snowstormer
beneggett has quit [Ping timeout: 246 seconds]
emmesswhy has joined #ruby
sigurding has quit [Quit: sigurding]
Takle has quit [Remote host closed the connection]
Sephyros has quit [Quit: Saindo]
emmesswhy has quit [Read error: Connection reset by peer]
emmesswhy has joined #ruby
bricker`LA has quit [Ping timeout: 250 seconds]
klaut has joined #ruby
beneggett has joined #ruby
Hanmac has quit [Ping timeout: 250 seconds]
Bira has joined #ruby
<mechanicalduck>
waxjar: hm, can I also use it directly with boolean return in an if condition? When it raises I have first to catch it.
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<mechanicalduck>
waxjar: those are subkeys and they are expected to be nil / empty sometimes.
Kricir has joined #ruby
Takle has joined #ruby
barhum2013 has joined #ruby
zz_jrhorn424 is now known as jrhorn424
tvw has joined #ruby
cocotton has quit [Remote host closed the connection]
zz_anildigital is now known as anildigital
shredding has quit [Quit: shredding]
blackmes1 has joined #ruby
InhalingPixels has quit []
OffTheRails has quit [Quit: Leaving]
InhalingPixels has joined #ruby
kireevco has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
larissa has quit [Quit: Leaving]
tvw has quit [Client Quit]
mikepack has quit [Remote host closed the connection]
Dreamer3 has quit [Read error: Connection reset by peer]
timonv_ has quit [Remote host closed the connection]
mikepack has joined #ruby
Dreamer3 has joined #ruby
timonv_ has joined #ruby
cap has joined #ruby
qwyeth has quit [Remote host closed the connection]
<shevy>
hmm how do I calculate 5 gigs? LIMIT = 5 * 1024 * 1024 * 1024 ?
toastynerd has joined #ruby
davispuh has joined #ruby
lamasnik has quit [Ping timeout: 245 seconds]
whyy has joined #ruby
<jhass>
shevy: Gigabytes or Gibibytes ?
toastynerd has quit [Remote host closed the connection]
jrhorn424 is now known as zz_jrhorn424
obscured has quit [Quit: leaving]
<pipework>
jigawatts
mikecmpbll has quit [Ping timeout: 245 seconds]
Hanmac has joined #ruby
<shevy>
hmm
timonv_ has quit [Ping timeout: 250 seconds]
<shevy>
Gigabytes
toastynerd has joined #ruby
<jhass>
5 * 1000**3
<shevy>
pipework how about Gigglibits
Zenigor has quit [Remote host closed the connection]
<pipework>
shevy: That's crude.
<shevy>
hmmmmm 1000
<jhass>
you wanted Gigabytes
bricker`work has joined #ruby
<pipework>
Gigawats
fieldfirst has joined #ruby
<pipework>
1000 wats
pietr0 has joined #ruby
whyy has quit [Ping timeout: 245 seconds]
Takle has quit [Remote host closed the connection]
coca_rails_ has joined #ruby
cap has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
cap has joined #ruby
coca_rails has quit [Ping timeout: 272 seconds]
coca_rails_ is now known as coca_rails
sylvanica has quit [Ping timeout: 240 seconds]
fieldfirst has quit [Client Quit]
<shevy>
Gibibytes sounds kinda silly
Tricon has joined #ruby
yfeldblum has joined #ruby
<jhass>
yeah that's why everybody says gigabytes and there's the big confusion about 1000 vs 1024
beef-wellington has quit [Ping timeout: 255 seconds]
gaussblurinc1 has joined #ruby
jeramyRR has quit [Quit: jeramyRR]
definiv has joined #ruby
Kricir has quit [Remote host closed the connection]
Matadoer has quit [Read error: Connection reset by peer]
Matadoer has joined #ruby
Spami has joined #ruby
j_mcnall_ has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv^ has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
newUser1234 has joined #ruby
coldkey21 has joined #ruby
sdwrage has joined #ruby
omosoj has joined #ruby
Zenigor has joined #ruby
kireevco1 has joined #ruby
sdwrage has quit [Client Quit]
kireevco has quit [Ping timeout: 250 seconds]
johnmolina has quit [Read error: No route to host]
johnmolina has joined #ruby
beef-wellington has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has joined #ruby
krzkrz has quit [Quit: WeeChat 0.4.3]
krisquigley has quit [Remote host closed the connection]
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Pumukel has joined #ruby
feniix has joined #ruby
mojo619 has joined #ruby
wpp has quit [Quit: ZZZzzz…]
davispuh has quit [Quit: rebooting]
sigurding has quit [Quit: sigurding]
msmith_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
wallerdev has joined #ruby
nfk has quit [Remote host closed the connection]
nat2610 has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
nobitanobi has joined #ruby
deric_skibotn has joined #ruby
spyderma_ has joined #ruby
razrunelord has joined #ruby
msmith_ has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
zeroNones has joined #ruby
spyderman4g63 has quit [Ping timeout: 250 seconds]
nfk has joined #ruby
choke has quit [Quit: Leaving]
ptrrr has quit [Quit: ptrrr]
choke has joined #ruby
Kricir has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
bearish has quit [Remote host closed the connection]
jimms has joined #ruby
<suy>
Is there some alternative to the [] operator to get a value from a Hash? It may seem petty, but [] is very inconvenient to type on some keyboard layouts. :) I only see something like ENV.values_at('HOME').first as a workaround.
nateberkopec has quit [Quit: Leaving...]
zarul has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
saarinen has joined #ruby
nanoyak has joined #ruby
Zenigor has quit [Remote host closed the connection]
<mechanicalduck>
I wrote some custom package-manager like thing in ruby (nothing special) which uses a *file and a *file.lock (as bundler) does.
beef-wellington has quit [Ping timeout: 240 seconds]
<eam>
>> {1 => 2}.values_at 1
<mechanicalduck>
Now, is there some library like thor which does all that boilerplate stuff?
mercerist has quit [Read error: Connection reset by peer]
Photism has joined #ruby
<eam>
suy: I actually prefer values_at as it takes multiple keys
Xeago has joined #ruby
<eam>
#fetch is what you can use if you just want a single item though
tylerkern has joined #ruby
<feniix>
hello, using ruby 2.0.0 on windows, have a "transparent" proxy at the office that intercepts the https call and changes the cert on the fly, I wanted to know where to find the CAs that ruby uses
<eam>
but, it raises if a key doesn't exist
<feniix>
so I can add the CA from my company
<feniix>
and I can do gem install
<eam>
feniix: probably wherever openssl is configured to look for it
wallerdev has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
<suy>
eam: Excellent, is exactly what I wanted. I couln't find it from the help.
<donofrio>
jhass: so I tried to skip the steps but they are part of the mysql intergration with apache/puppet-dashboard....
<donofrio>
Warning: Rails rake tasks currently unavailable because we can't find the 'rails' gem
<donofrio>
rake aborted!
<donofrio>
(See full trace by running task with --trace)
<donofrio>
Don't know how to build task 'db:migrate'
nanoyak has quit [Client Quit]
<suy>
Is there something better to see all the details of the API? Not just the names of the methods, like "ri Hash", but showing all the descriptions...
Xiti has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
beef-wellington has joined #ruby
<eam>
docs aren't great though
<jhass>
donofrio: the gems:resolve_specs step, not the other ones and replace any `rake` in your guide by `bundle exec rake`, so `RAILS_ENV=production bundle exec rake db:migrate`
n1lo has joined #ruby
<suy>
eam: thank you again. Is that doc available in "ri" somehow?
<eam>
not sure, I avoid ri
<havenwood>
suy: maybe look at pry with pry-doc
* suy
looking
Ankhers has quit [Remote host closed the connection]
<waxjar>
ri Hash -a / --all
<mechanicalduck>
anyone?
qba73 has quit [Remote host closed the connection]
<mechanicalduck>
I find mine a very interesting question!!!
<mechanicalduck>
I wrote some custom package-manager like thing in ruby (nothing special) which uses a *file and a *file.lock (as bundler) does.
<mechanicalduck>
Now, is there some library like thor which does all that boilerplate stuff?
Ankhers has joined #ruby
<waxjar>
i have no idea what you're asking
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
qba73 has joined #ruby
nanoyak has joined #ruby
ghostmoth has joined #ruby
<suy>
waxjar, havenwood: thank you!
divi has joined #ruby
<shevy>
mechanicalduck and what does this manager manage?
yetanotherdave has joined #ruby
qba73 has quit [Remote host closed the connection]
<donofrio>
mysql 22261 1 0 Aug14 ? 00:00:34 /usr/sbin/mysqld
blueOxigen has quit [Ping timeout: 272 seconds]
qba73 has joined #ruby
<jhass>
donofrio: then check where the socket file is and adjust that in config/database.yml
mikeymicrophone has quit [Client Quit]
qba73 has quit [Remote host closed the connection]
failshel_ has joined #ruby
cap_ has quit [Remote host closed the connection]
atmosx has joined #ruby
cocotton has joined #ruby
cap has joined #ruby
thomasxie has quit [Remote host closed the connection]
gwb3 has quit [Quit: leaving]
failshe__ has joined #ruby
failshel_ has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
failshe__ has quit [Client Quit]
Xiti has quit [Changing host]
Xiti has joined #ruby
spyderma_ has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
nateberkopec has joined #ruby
spyderman4g63 has joined #ruby
ssvo has joined #ruby
failshell has quit [Ping timeout: 244 seconds]
barhum2013 has quit [Quit: barhum2013]
jerius has quit []
<mechanicalduck>
shevy / havenwood: So one defines some File where one can specify the packages to be installed (something like bundler) and then it goes over it, tries to installs the packages and creates a lock file which represents the current state.
HashNuke has quit [Quit: Connection closed for inactivity]
toastynerd has quit [Remote host closed the connection]
melik has joined #ruby
<eam>
mechanicalduck: I think the tool you're looking for is called "bundler?"
maestrojed has quit [Quit: Computer has gone to sleep.]
cap has quit [Ping timeout: 240 seconds]
gwb3 has joined #ruby
duggiefresh has joined #ruby
IcyDragon has joined #ruby
tylerkern has joined #ruby
linojon has quit [Quit: linojon]
mkaesz has joined #ruby
<havenwood>
mechanicalduck: the packages being RubyGems?
<havenwood>
mechanicalduck: or some other sort of packages?
IceDragon has quit [Ping timeout: 264 seconds]
rsavage_ has joined #ruby
linojon has joined #ruby
<havenwood>
mechanicalduck: Just please don't put the word "file" in your file, like Procfile, Gemfile, Guardfile... We know it's a file!! Stop the madness!
<rsavage_>
hello ruby people
<havenwood>
rsavage_: hiya
<mechanicalduck>
eam / havenwood: Some other sort, it is 'package-like', but those aren't packages. The principle.
Pumukel has quit [Ping timeout: 255 seconds]
<rsavage_>
I am somewhat of a newbie to Ruby.. been working with it for a couple of months now.
<mechanicalduck>
right
<havenwood>
mechanicalduck: So you want a bundler for a mysterious type of package that isn't a gem.
<havenwood>
hem
pjwal has joined #ruby
<havenwood>
No need for the word "directory" in every dir or "file" in every file. And capitals in a filename? Gah!
<rsavage_>
Anyway... I have a script that requires a few gems. One gem in particular is very chatty with Warning messages. I am trying to figure out how to silence the warnings. I have tried $VERBOSE = nil and that's not working...
<rsavage_>
anyone have any ideas?
kirun has joined #ruby
<rsavage_>
I also tried -W0
IcyDragon is now known as IceDragon
<waxjar>
warnings go to stderr i think
<havenwood>
rsavage_: -W0
<shevy>
havenwood important directories should be upcased :>
<archetech_>
how do i get scrypt to build without -msse
<rsavage_>
havenwood that's not working
<mechanicalduck>
havenwood: yes
<mechanicalduck>
havenwood: Some asset stuff which is specified in a file, downloaded and a lockfile when it succeeded.
<rsavage_>
the gem is doing a log.warn 'Blah Blah'
<donofrio>
jhass: I do not have anything special in that file....just changed adaptertype from postgresqsql to mysql2 )-:
postmodern has joined #ruby
Morrolan has joined #ruby
<pjwal>
It seems it's a standard to refer to methods with a prefix of "#" as in "#to_s". Is there a standard way to refer to class methods?
OffTheRails has joined #ruby
<jhass>
donofrio: then find out where your mysql socket file is and set it in config/database.yml
<havenwood>
pjwal: ::
Zesty has joined #ruby
newUser1234 has quit [Remote host closed the connection]
<pjwal>
havenwood, thx, that makes sense
<rsavage_>
havenwood: any other ideas?
jerius has joined #ruby
<havenwood>
rsavage_: oh, so not Kernel#warn
toastynerd has joined #ruby
toastynerd has quit [Remote host closed the connection]
jerikl has quit [Quit: jerikl]
icole has joined #ruby
<rsavage_>
havenwood: I guess so... it's a log.warn messaage
phutchins has joined #ruby
TorpedoSkyline has joined #ruby
CorySimmons has quit [Quit: Zzz...]
toastynerd has joined #ruby
<rsavage_>
I'll take any hackerish way to silence any messages created by a gem that uses log.warn.... anyone know? The only thing is I can't modify the gem....
<rsavage_>
I am thinking of somesort of global override to supress log.warn messages
<Fractional>
Which one is the 'ruby' way of the two examples? Thanks by the way lads.
<shevy>
Fractional .map
<rsavage_>
havenwood: I figured it out finally. My gem author was nice enough to include a log level setting inside the gem itself. I set it to :fatal and all is well with the universe
<wallerdev>
i dont think map to_h is the ruby way
<havenwood>
rsavage_: aha
<wallerdev>
id say reduce would be the ruby way if you really wanted to create a new hash
<rsavage_>
ChefAPI.log_level = :fatal
djbkd has quit [Remote host closed the connection]
<Fractional>
So your way is the more correct one Wallerdev?
cap has joined #ruby
<wallerdev>
theres not really a more correct one lol
apeiros has joined #ruby
<wallerdev>
this isnt python with the one true way
<wallerdev>
how i wrote it is how i would write it if i wanted to change the given array
<havenwood>
Fractional: Both are Ruby ways.
autochthon has joined #ruby
gaussblurinc1 has joined #ruby
philcris_ has joined #ruby
<havenwood>
Fractional: ^ that is my way :P
<Fractional>
Ok thanks lads! :D Really appreciate all the help here on the IRC :)
bearish has quit [Ping timeout: 246 seconds]
davispuh has joined #ruby
<eam>
using #each works for changing values, but not for changing keys
pjwal has quit []
mikepack has joined #ruby
nymous has joined #ruby
arup_r has joined #ruby
<nymous>
hello folks
kireevco1 has quit [Quit: Leaving.]
theegirl has joined #ruby
<havenwood>
nymous: hi
benzrf|offline is now known as benzrf
feniix has quit [Quit: leaving]
<wallerdev>
tbh id rather define an extra variable vs using to_h, just seems inefficient to create an extra array just to turn it into a hash at the end instead of using a hash in the first place
<nymous>
i've encountered a thing i do not understand, could you suggest me how to overcome it?
devoknievo___ has quit [Quit: Computer has gone to sleep.]
<nymous>
the problem is with running external apps
sambao21 has joined #ruby
<nymous>
i've made a simple webrick script which runs a shell command on request
philcris_ has quit [Ping timeout: 255 seconds]
arq_ has joined #ruby
frankle has joined #ruby
<nymous>
really simple, 2 users, rare execution, not a big deal to spin up a full blown web server
<nymous>
everything works until i'll end my ssh server on this server
jeramyRR has joined #ruby
<benzrf>
02:06 < nymous> i've made a simple webrick script which runs a shell command on request
<benzrf>
sounds insegure
wormwood has quit [Ping timeout: 264 seconds]
<nymous>
i mean i'm sending requests, shell command get executed, everyone is happy
<eam>
benzrf: why?
yacks has quit [Read error: Connection reset by peer]
<nymous>
i end up my ssh session, reconnect again to watch for execution logs, and bang, nothing works
<eam>
what's the difference between running a command and executing code in general?
machete has quit [Quit: don't panic]
chrishough has joined #ruby
<nymous>
benzrf: it's a webhook for puppet deployment actually
kireevco has joined #ruby
machete has joined #ruby
jheg has joined #ruby
<nymous>
actually, server is still working, but shell commands get screwed
L3top_ has quit [Ping timeout: 240 seconds]
<havenwood>
how so?
<nymous>
i think it is somehow related with loosing tty
<Fractional>
Is it recommended to use Foo.each over Foo.map!?
<havenwood>
Fractional: map is shorter
<havenwood>
by a character!
<eam>
map creates a copy
<havenwood>
nymous: what command is having issues?
<Fractional>
eam: Not with the bang?
<benzrf>
eam: running shell stuff from a web interface tends to make me uneasy in general
<havenwood>
Fractional: the bang means it modifies the receiver
<Fractional>
havenwood: Yeah, does not that mean that Foo.map! does not create a copy?
<havenwood>
Fractional: each just iterates then returns the original colleciton
<eam>
Fractional: it should still make a copy, but assign it to the receiver
<Fractional>
eam: Oh :D
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonahR has joined #ruby
spyderma_ has joined #ruby
Takle has joined #ruby
<Fractional>
Do you think metaprogramming in Ruby is useful?
<nymous>
havenwood: i don't know what happens exactly, see my script, git pull stops to output anything, r10k starts to output errors like "remote end hung up unexpectedly"
<nymous>
but they both work until i end up ssh session i've used to start it
<havenwood>
nymous: you don't need to `require 'rubygems'` unless you're supporting 1.8 btw (actually an anti-pattern to do it, should probably only for 1.8 if you must)
<Fractional>
Oh god, 'theegirl' is advertising cam shows here :/
<havenwood>
i must have an ignore >.>
fold has joined #ruby
mijicd has quit [Remote host closed the connection]
<nymous>
i've starting it with start-stop-daemon
omosoj has quit [Ping timeout: 264 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
spyderman4g63 has quit [Ping timeout: 240 seconds]
<nymous>
havenwood: well, removing it didn't fix it anyway
axsuul has quit [Ping timeout: 272 seconds]
<havenwood>
nymous: yeah, just scanning the gist i'm not spotting the problem
TheNet has quit [Quit: Leaving...]
autochthon has quit [Remote host closed the connection]
<havenwood>
nymous: do any commands run or just not certain ones?
Lexun has quit [Ping timeout: 244 seconds]
<nymous>
yeah, it seems ok
<havenwood>
git hooks ftw
kireevco1 has joined #ruby
<nymous>
this is gitlab hook, actually
<havenwood>
aha
banister has quit [Read error: Connection reset by peer]
Takle has quit [Ping timeout: 264 seconds]
jeramyRR has quit [Quit: jeramyRR]
banister has joined #ruby
<eam>
11:14 < nymous> but they both work until i end up ssh session i've used to start it
banister has quit [Max SendQ exceeded]
<eam>
nymous: are you using an ssh key for auth?
<eam>
with agent forwarding?
<nymous>
yes
<eam>
that's why
kireevco has quit [Read error: Connection reset by peer]
<nymous>
what do you mean?
banister has joined #ruby
<eam>
when you ssh in, your key is forwarded with $SSH_AUTH_SOCK pointing to a socket which lets ssh tools talk to your agent
<eam>
when you fork off the server it inherits your environment, including this env var
<eam>
when you log out, the socket is removed
dseitz has quit [Quit: work]
<eam>
you'll need to place the ssh private key somewhere this app can reach
testcore has joined #ruby
threesixes has quit [Quit: SATAN!!!!!!!!]
<eam>
security issues around doing that of course
<nymous>
afair, i've placed it on server
kuzushi has quit [Ping timeout: 240 seconds]
zz_jrhorn424 is now known as jrhorn424
<eam>
if it has no passphrase you can just configure the git to use ssh -i keyfile
<eam>
otherwise, you could start a separate ssh-agent local to the machine before launching the server
<eam>
~/.ssh/config will help you here
x1337807x has joined #ruby
<nymous>
wow
<nymous>
you are right
<nymous>
i've tryed to login without agent forwarding and got these errors too
x1337807x has quit [Read error: Connection reset by peer]
x1337807_ has joined #ruby
timonv_ has joined #ruby
nanoyak has joined #ruby
DEA7TH has joined #ruby
amclain has joined #ruby
jrhe_ has joined #ruby
mikepack has quit [Remote host closed the connection]
nfk has quit [Remote host closed the connection]
mkaesz has quit [Remote host closed the connection]
mityaz has joined #ruby
omosoj has joined #ruby
Hobogrammer has joined #ruby
theegirl has quit []
djbkd has joined #ruby
vsoftoiletpaper has quit []
momomomomo_ has joined #ruby
Squarepy has joined #ruby
vsoftoiletpaper has joined #ruby
L3mce has joined #ruby
Sauvin has quit [Remote host closed the connection]
speakingcode is now known as getmoney
sarlalian has quit [Quit: WeeChat 0.4.2]
devoknievo___ has joined #ruby
momomomomo has quit [Ping timeout: 272 seconds]
momomomomo_ is now known as momomomomo
nfk has joined #ruby
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maestrojed has joined #ruby
wormwood has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
mkaesz has joined #ruby
cool has quit [Quit: Connection closed for inactivity]
sdwrage has joined #ruby
agent_white has joined #ruby
linojon has quit [Quit: linojon]
sarlalian has joined #ruby
timonv_ has quit [Remote host closed the connection]
lewis_ has joined #ruby
lewis_ is now known as Lewix
Lewix has quit [Changing host]
Lewix has joined #ruby
<agent_white>
Afternoon folks.
<Lewix>
hello folks
jheg has quit [Quit: jheg]
sevvie has quit [Quit: leaving]
mkaesz has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrhorn424 is now known as zz_jrhorn424
TorpedoSkyline has quit [Ping timeout: 255 seconds]
benzrf is now known as benzrf|offline
axsuul has joined #ruby
<nymous>
finally, fixed
timonv_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
axsuul has quit [Read error: Connection reset by peer]
vsoftoiletpaper has quit [Read error: Connection reset by peer]
apeiros has quit [Remote host closed the connection]
axsuul has joined #ruby
vsoftoiletpaper has joined #ruby
<nymous>
eam: thank you, i was unable to find it for a week or so
apeiros has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam>
nymous: no prob
TorpedoSkyline has joined #ruby
<nymous>
i always thought i have installed my key to the server >_<
VBlizzard has joined #ruby
VBlizzard has quit [Max SendQ exceeded]
<eam>
bleeding environment from login sessions into daemons is a constant problem
<eam>
nymous: consider launching your apps from something like runit
cocotton has quit [Remote host closed the connection]
sepp2k has quit [Quit: Konversation terminated!]
cocotton has joined #ruby
lw has quit [Quit: s]
ghr has joined #ruby
cocotton has quit [Read error: Connection reset by peer]
axsuul has quit [Ping timeout: 272 seconds]
cocotton has joined #ruby
spider-mario has quit [Ping timeout: 240 seconds]
tylerkern has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
djbkd has quit [Quit: My people need me...]
nanoyak has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
atheneith has joined #ruby
jtharris has joined #ruby
<soahccc^>
Is there something to explode patterns like "bar[1-9]" or "foo[a-f]" or something similar? I know that I can do ("a".."f").to_a but maybe there is something already or do I have to regex here?
ghr has quit [Ping timeout: 240 seconds]
<wallerdev>
what do you want to do? return an array of elements?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wallerdev>
like you can do bar[1..9]
crdprink2 has joined #ruby
<soahccc^>
yes. I think glob uses something similar. The string "bar[1-9]" to ["bar1", "bar2", ...]
wombo has quit [Ping timeout: 250 seconds]
crdpink has quit [Ping timeout: 250 seconds]
wakingideas has joined #ruby
Morkel has joined #ruby
amacou_ has quit [Remote host closed the connection]
j_mcnall_ has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Darkchaos2 has joined #ruby
Darkchaos has quit [Ping timeout: 246 seconds]
<soahccc^>
I think of matching the [$1-$2] and then create a range out of that but I hope there is something ready2use and I just don't know how to search for this :)
<wallerdev>
still no idea what you actually want lol
<havenwood>
me neither
atmosx has quit [Quit: computer went to sleep...]
<havenwood>
^ that was my best guess
zz_jrhorn424 is now known as jrhorn424
duketogo13 has quit [Client Quit]
<soahccc^>
havenwood: I never expected that to work :o
aspires has quit []
<soahccc^>
Thanks I think I can utilize this.
<jhass>
btw if you tell us your underlying problem, maybe we can point to a solution that doesn't even require building such an array ;)
sambao21 has quit [Quit: Computer has gone to sleep.]
nanoyak has joined #ruby
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has joined #ruby
echevemaster has quit [Remote host closed the connection]
mikepack has joined #ruby
riceandbeans has left #ruby [#ruby]
sambao21 has joined #ruby
mkaesz has joined #ruby
aspires has quit [Client Quit]
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<soahccc^>
Well I want to have a somewhat generic way of defining multiple things with less writing. For example version formats incorporating characters. So that I can just write v34[a-c] rather than v34a v34b and so on
Kricir has quit [Remote host closed the connection]
<kraehe>
soahccc^, Perl is a write only language - its great for writing code, but reading could be impossible
spider-mario has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<Hanmac>
seejohnrun: thats are the different types ... yes the default values for the optional parameters are not shown because they might be function calls itself
<kraehe>
hooper, a Perl shop might not be that bad, if they keep tradition and have a low job rotation
<hooper>
kraehe: then I'm set!
graft has quit [Ping timeout: 272 seconds]
j_mcnall_ has joined #ruby
proxie has quit [Read error: Connection reset by peer]
jgrevich has joined #ruby
virtualize has joined #ruby
<seejohnrun>
cool @eval-in - I was hoping to get 2 and 3 somehow
lw has joined #ruby
shackleford has quit [Remote host closed the connection]
jespada has quit [Quit: Leaving]
graft has joined #ruby
<kraehe>
some Perl shops have very odd traditions, e.g. booking.com where coders hack on life servers, that are serving 1/10.000 of customers - and clean code is only done, if A/B testing tells that the code improves sales
wpp has quit [Quit: ZZZzzz…]
darkxploit has joined #ruby
nanoyak has joined #ruby
<hooper>
there are things about perl i really hate, like hash slices using '@' , and typeglobs
<hooper>
( symbols are a given )
lw has quit [Client Quit]
<kraehe>
its a kind of gamification of web development, with coders and teams trying to beat each other - and the only thing that counts is A/B testing of sales
devdazed has quit [Ping timeout: 240 seconds]
shackleford has joined #ruby
saarinen has quit [Quit: saarinen]
foxynna has joined #ruby
mkaesz has joined #ruby
fgo has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
fgo has joined #ruby
krisquigley has joined #ruby
allenicksweg has joined #ruby
shredding has quit [Quit: shredding]
krisquigley has quit [Remote host closed the connection]
St_Marx has quit [Remote host closed the connection]
seejohnrun has quit [Quit: Page closed]
Rylee has quit [Quit: WeeChat 1.0-rc2]
duncan_ is now known as duncannz
krisquigley has joined #ruby
mkaesz has quit [Ping timeout: 240 seconds]
krisquigley has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
starless has joined #ruby
UNIXgod has quit [Quit: leaving]
M-Technic has quit [Ping timeout: 246 seconds]
banisterone has joined #ruby
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soahccc^ has quit [Ping timeout: 244 seconds]
M-Technic has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
terrell_t has joined #ruby
lw has joined #ruby
<shevy>
release early
<shevy>
release often
Zenigor has quit [Remote host closed the connection]
Zenigor has joined #ruby
St_Marx has joined #ruby
<eam>
perl's a heck of a lot less cryptic than ruby
<shevy>
release eam
terrellt has quit [Ping timeout: 255 seconds]
<eam>
shevy: are you learning C yet
<shevy>
oh well :(
<kraehe>
C is less cryptic then Perl
<eam>
kraehe: also true
<shevy>
I am still integrating the pickaxe to my local knowledge base
<shevy>
about 200 pages left before I am done
<dorei>
perl is ugly
<eam>
perl is ugly on the outside, ruby is ugly on the inside
<hooper>
hah
<kraehe>
e.g. I'm currently writing a C library for Wylie transliteration with Qt, Ruby, PHP, Python and Lua bindings - there is an other Java implementation that is full of bloat, and a Perl implementation that even I do not understand ... even if I'm a CPAN author, and even if I solved same problem in C
<shevy>
eam do you want a girl with make-up or a fat whale
<eam>
the clever and confusing stuff that ruby folk do trumps anything I've seen in mainstream perl
<shevy>
what was that twitter comment about the ruby parser again ...
Jackneill has quit [Read error: Connection reset by peer]
<eam>
because there's another 6kloc for the regex engine
<shevy>
"We have to recognize #Ruby's syntax -- requiring roughly 10KLOC C parser code -- as one of the truly catastrophic events of the last century"
<shevy>
well regex madness is to be found in many languages
jrhorn424 is now known as zz_jrhorn424
<eam>
yeah but ruby (poorly) reimplemented it for no reason
<kraehe>
shevy, kephra = kraehe ... the first is my website name, the 2nd my login name, and often nick for repositories
f_vosberg has joined #ruby
saarinen has joined #ruby
<shevy>
kephra? what language is that?
claymore has quit [Quit: Leaving]
<kraehe>
thats an ancient Egypt god
<shevy>
ah
aclearman037 has quit []
<shevy>
:)
<kraehe>
the German word Kaefer comes from it
x1337807x has joined #ruby
ReBoRN- has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
cool
<shevy>
Volkskaefer
<shevy>
oh wait
<shevy>
that was Volkswagen
foxynna has quit [K-Lined]
jmo has joined #ruby
spyderma_ has quit []
rezzack has joined #ruby
quarcu has quit [Ping timeout: 264 seconds]
bMalum has quit [Ping timeout: 255 seconds]
<kraehe>
I once wrote a language called VolX4th
cocotton_ has quit [Remote host closed the connection]
mgomezch_ has quit [Ping timeout: 244 seconds]
kireevco has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
rbenv_ has joined #ruby
asteve has joined #ruby
tylerkern has joined #ruby
<kraehe>
an unusual forth system, as characters had been 16 bit, and integer=pointers 32bit ... was one of the first 32bit forth systems on Atari
<eam>
we were just talking about non-8bit bytes earlier today
rbenv_ is now known as whoah
paulfm_ has quit []
mbwe has quit [Ping timeout: 255 seconds]
<banisterone>
Eam there's talk the streets that you fib
<eam>
about what now
quarcu has joined #ruby
<kraehe>
was the easiest way to stick with the traditional sizeof(pointer)==2*sizeof(character) arithmetic in forth
n1lo has quit [Ping timeout: 245 seconds]
<dorei>
kraehe: do you still code for Atari?
<shevy>
omg
<kraehe>
*oh* no
chrishough has quit [Quit: chrishough]
TheNet has quit [Quit: Leaving...]
<dorei>
retrocomputing <3
momomomomo has quit [Quit: momomomomo]
<kraehe>
sometimes retro makes fun
eythorium has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TorpedoSkyline has joined #ruby
<kraehe>
because its possible to understand everything from the lowest bit on
cocotton has joined #ruby
<eam>
ruby has pretty poor support for alternate byte widths to be honest
folippi has joined #ruby
cocotton_ has joined #ruby
<eam>
octet bias
failshel_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<folippi>
I'm using a gem that provides a module. In the module is a CONST, that I would like to change (only in development, so can be a hack). Is it possible to change it in the program, or to edit the source of gems installed with bundler?
<kraehe>
e.g. compare: a 4th system requires about 8kb for language, multi tasking single user real time operating system, editor, debugger, metacompiler, ...
mojo619 has quit [Quit: mojo619]
dEPy has joined #ruby
j_mcnall_ has joined #ruby
<kraehe>
you could print that and read it - now try to print the linux kernel, all libs required to compile and run ruby, and the ruby code
<Mon_Ouie>
To be fair, tons of C code would break if CHAR_BIT weren't 8
yfeldbl__ has joined #ruby
Bira has quit [Remote host closed the connection]
<eam>
heck, tons break when sizeof(int) != sizeof(void*)
<eam>
and that's actually the case on commonly used architectures
TorpedoSkyline has quit [Read error: Connection reset by peer]
TorpedoS_ has joined #ruby
bmurt has quit [Ping timeout: 250 seconds]
failshell has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
cocotton has quit [Ping timeout: 272 seconds]
kraehe is now known as kephra
hfp_ has joined #ruby
cocotton_ has quit [Ping timeout: 246 seconds]
ReBoRN- has quit [Quit: Saliendo]
failshel_ has quit [Ping timeout: 246 seconds]
saarinen has quit [Quit: saarinen]
hfp has quit [Ping timeout: 272 seconds]
graft has quit [Ping timeout: 264 seconds]
terrell_t has quit [Remote host closed the connection]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<qtrain>
Hello. Say I have an array of integers [1, 2, 3, 2, 1, 1] how could i assign each of integers to a string say 1 = google 2= reddit 3 = facebook. So that I could return an array ["google" "reddit" "facebook" "reddit" ].. etc
<eam>
>> ?????:?????:??
<eval-in>
eam => /tmp/execpad-808cec922cb2/source-808cec922cb2:2: warning: string literal in condition ... (https://eval.in/179784)
<eam>
sigh
<eam>
that damn eval bot, breaking on warnings
<eam>
learn to live a little
<eam>
eval.in doesn't respect $VERBOSE=nil
<qtrain>
notReal fake internet points for help
<qtrain>
..
Scient has quit [Ping timeout: 240 seconds]
Bira has joined #ruby
jerius has quit []
<shevy>
?
cDuff has joined #ruby
<qtrain>
Hello. Say I have an array of integers [1, 2, 3, 2, 1, 1] how could i assign each of integers to a string say 1 = google 2= reddit 3 = facebook. So that I could return an array ["google" "reddit" "facebook" "reddit" ].. etc
<shevy>
qtrain what happens with duplicate entries?
Rylee has joined #ruby
<qtrain>
they should be assigned to a specific string. I have a large array of integers which are representitive of different sites I need to convert each integer to the appropriate site 1 = google 2 = facebook etc
<eam>
>> { 1 => "google", 2 => "facebook" }
TorpedoS_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<qtrain>
I assume I can write a function that takes an array then iterate over array but i'm not sure how to assign values. if/else statements?? not sure..
Bira_ has joined #ruby
Bira has quit [Ping timeout: 260 seconds]
<shevy>
you use = for assignment
<centrx>
qtrain, Put them in a hash, as a constant, like WEBSITE_MAP = { 1 => 'google', etc
<shevy>
and eam already showed you how you can assign to a new hash; it will be in variable named h
<qtrain>
eam: oh ok let me try that..
<shevy>
or respectively, you assign to the [1,2 ... array
ptrrr has quit [Quit: ptrrr]
<qtrain>
eam: i didn't read the end of the code..
<qtrain>
shevy: ok thank you
djbkd has joined #ruby
terlar has joined #ruby
purplefishies has quit [Ping timeout: 245 seconds]
<shevy>
centrx gave the variable a good name
<centrx>
thanks, you have a good name too
krisquigley has joined #ruby
<centrx>
reminds me of an automobile
<shevy>
grrr
yfeldblum has joined #ruby
wombo has joined #ruby
Scient has joined #ruby
Shidash has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
icarus has joined #ruby
e4xit has quit [Ping timeout: 245 seconds]
<centrx>
must be a V8
Bira_ has quit [Ping timeout: 246 seconds]
Sgeo has joined #ruby
<jhass>
qtrain: as said define a hash that maps the numbers to the strings. Then your_array.map {|id| WEBSITE_MAP[id] }
getmoney is now known as speakingcode
__main__ has quit [Ping timeout: 260 seconds]
terrell_t has joined #ruby
terrell_t has quit [Read error: Connection reset by peer]
terrell_t has joined #ruby
dfedde has quit [Quit: leaving]
omosoj has quit [Ping timeout: 255 seconds]
terrellt has quit [Ping timeout: 240 seconds]
ptrrr has joined #ruby
crdprink2 has joined #ruby
crdpink has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
e4xit has joined #ruby
jerikl has joined #ruby
_0xf_ has joined #ruby
andrewlio has quit [Quit: Leaving.]
<qtrain>
jhass: ok thanks will try
centrx has quit [Quit: Mead error: Connection reset by beer]
krisquigley has quit [Remote host closed the connection]
TorpedoSkyline has joined #ruby
fgo has joined #ruby
benzrf|offline is now known as benzrf
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_0xf_ has quit [Ping timeout: 245 seconds]
davispuh has quit [Ping timeout: 245 seconds]
Lewix has quit [Remote host closed the connection]
Grantlyk has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
devoknievo___ has quit [Quit: Computer has gone to sleep.]
shackleford has quit [Remote host closed the connection]
treehug88 has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
nat2610 has joined #ruby
devoknievo___ has joined #ruby
krisquigley has joined #ruby
Lewix has joined #ruby
lele has quit [Excess Flood]
lele has joined #ruby
treehug88 has quit [Client Quit]
Lewix has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 240 seconds]
dorei has quit [Ping timeout: 240 seconds]
tylerkern has joined #ruby
devoknievo___ has quit [Ping timeout: 240 seconds]
riotjones has joined #ruby
dorei has joined #ruby
mary5030 has quit [Remote host closed the connection]
wald0_ has joined #ruby
wald0_ has quit [Client Quit]
renderfu_ has joined #ruby
wald0_ has joined #ruby
hanikazmi is now known as JimmyWales
omosoj has joined #ruby
razum2um1 has quit [Quit: Leaving.]
JimmyWales is now known as HaniKazmi
e4xit has quit [Ping timeout: 250 seconds]
j416 has quit [Read error: Connection reset by peer]
KLVTZ has joined #ruby
j416_ has joined #ruby
icebourg has quit []
icebourg has joined #ruby
nateberkopec has quit [Quit: Leaving...]
mr_snowf1ake has joined #ruby
froggy_ has joined #ruby
<KLVTZ>
So I'm using RVM and have all my gems installed. However, when I try and run a command, such as guard, it sayd the command is not found. Any ideas?
renderful has quit [Ping timeout: 245 seconds]
autojack has joined #ruby
mikepack has quit [Remote host closed the connection]
icarus has quit [Ping timeout: 250 seconds]
<KLVTZ>
In my .zshrc file, i have export\ PATH=\"\$PATH:\$HOME/.rvm/bin\"\ \#\ Add\ RVM\ to\ PATH\ for\ scripting
<KLVTZ>
ignore the escapes ><
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
philevans_ has joined #ruby
<autojack>
I just stumbled on an attempt that someone here made to "tune" our Ruby app by setting various GC-related env vars. but the app is running under Ruby 1.8.7 (I'm working on changing that, hence looking into this), and I have the impression that these tuning params do not do anything in Ruby 1.8. can anyone confirm? they are, e.g., RUBY_HEAP_MIN_SLOTS, RUBY_FREE_MIN, RUBY_GC_MALLOC_LIMIT etc.
beryllium1 is now known as Beryllium
krisquigley has quit [Remote host closed the connection]
nat2610 has quit [Quit: Leaving.]
banisterone has quit [Ping timeout: 245 seconds]
e4xit has joined #ruby
jerikl has quit [Quit: jerikl]
sambao21 has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
froggy__ has quit [Ping timeout: 255 seconds]
_0xf_ has joined #ruby
nat2610 has joined #ruby
j_mcnall_ has joined #ruby
d2dchat_ has quit [Remote host closed the connection]