<DylanJ>
i have no idea how to do that or if it's possible. my ruby... isn't complete.
predator217 has quit [Ping timeout: 264 seconds]
E23 has quit [Ping timeout: 276 seconds]
nbouscal has joined #ruby
<xavier23>
Usually, in java, you have to cast *first* , before you can access child-specific methods
<xavier23>
In ruby, how does it work?
Notte has quit [Remote host closed the connection]
<xavier23>
Can you just access them, and it will fail silently if they don't exist
<xavier23>
I think its causing a bug in my app
Spami has joined #ruby
saarinen has quit [Quit: saarinen]
ginmaniac|afk has joined #ruby
ginmaniac|afk is now known as ginmaniac
ffio_ has joined #ruby
ilyam has quit [Quit: ilyam]
ffio has quit [Ping timeout: 264 seconds]
nezumi has quit [Ping timeout: 248 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Es0teric has joined #ruby
apt-get_install has quit [Quit: Quit: Veni Vidi Vici, Ave et Vale]
lebek has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
<ginmaniac>
Hey guys. I think I have once seen a method which converts a integer number in form of an english word to the actual integer. Something like: "one".foo => 1 where foo is the method I am looking for.
djbkd has quit [Quit: Leaving]
Es0teric has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
lethjakman has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Ping timeout: 240 seconds]
haxrbyte has quit [Ping timeout: 268 seconds]
tjbiddle has quit [Quit: tjbiddle]
vlad_starkov has quit [Ping timeout: 246 seconds]
Davey has joined #ruby
<lnormous>
xavier23: Why don't you post the code somewhere?
hammond has quit [Ping timeout: 240 seconds]
haxrbyte has joined #ruby
terrellt has joined #ruby
i_s has quit [Remote host closed the connection]
jorge_ has quit [Remote host closed the connection]
arya__ has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
cantonic has quit [Quit: cantonic]
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
tkuchiki has joined #ruby
elyoung has joined #ruby
hamakn has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
bradhe has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
elyoung has left #ruby [#ruby]
elyoung has joined #ruby
Fuzai_ has joined #ruby
Fuzai has quit [Ping timeout: 246 seconds]
Spooner has quit [Remote host closed the connection]
gildo has quit [Ping timeout: 240 seconds]
Ripp__ has joined #ruby
jp- has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Ping timeout: 246 seconds]
dummy has quit [Ping timeout: 250 seconds]
smathieu has quit [Remote host closed the connection]
Fuzai_ has quit [Read error: Operation timed out]
louism2wash has joined #ruby
<louism2wash>
whoami
<Nilium>
You are you.
tommyvyo has quit [Ping timeout: 240 seconds]
<Nilium>
I think.
<Nilium>
We'll have to consult the NSA to be sure.
io_syl has quit [Quit: io_syl]
Fuzai has joined #ruby
<louism2wash>
Nilium: I don't even know any more
<louism2wash>
:(
<Nilium>
Sometimes life is confusing, but then you live, learn, and get luvs adult diapers.
brennanMKE has joined #ruby
mahmoudimus has joined #ruby
noyb has quit [Ping timeout: 246 seconds]
<louism2wash>
Nilium: haha, we all have that to look forward to
<louism2wash>
lugs that is
<louism2wash>
luvs
elyoung has left #ruby [#ruby]
<bnagy>
why wait?
<bnagy>
trips to the bathroom cut into valuable coding time!
zeropx has quit [Quit: has left the room … Or did he?]
Mattix has joined #ruby
nanoxd has joined #ruby
<joelteon>
nah, i can plan on the toilet
<Nilium>
I just sit on a window ledge and let it run down the 10 stories below me.
mahmoudimus has quit [Quit: Computer has gone to sleep.]
arya__ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
arya_ has quit [Ping timeout: 248 seconds]
ravster has joined #ruby
sambao21 has joined #ruby
lurid_ has joined #ruby
i_s has joined #ruby
Ortuna has joined #ruby
reset has quit [Quit: Leaving...]
Mattix has left #ruby ["Leaving"]
ilyam has quit [Quit: ilyam]
locriani has quit [Remote host closed the connection]
mmitchell has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
locriani has joined #ruby
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
bradhe has joined #ruby
tommyvyo has joined #ruby
locriani has quit [Ping timeout: 240 seconds]
samuel02 has quit [Remote host closed the connection]
radic_ has joined #ruby
samuel02 has joined #ruby
TheBay has joined #ruby
TheBay is now known as Mathias__
bradhe has quit [Ping timeout: 248 seconds]
reset has joined #ruby
brennanMKE has quit [Remote host closed the connection]
radic has quit [Ping timeout: 240 seconds]
samuel02 has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
mklappstuhl has joined #ruby
bigmac has quit [Quit: Leaving]
robustus has quit [Ping timeout: 248 seconds]
bradhe has joined #ruby
mercwithamouth has joined #ruby
jorge has joined #ruby
bradhe has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 246 seconds]
bradhe has joined #ruby
smathieu has joined #ruby
robustus has joined #ruby
devoldmx3 has joined #ruby
ffio_ has quit [Ping timeout: 240 seconds]
adeponte has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
Mathias__ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
nkts has joined #ruby
nkts has quit [Max SendQ exceeded]
TheBay has joined #ruby
TheBay is now known as Mathias__
GeissT has quit [Ping timeout: 276 seconds]
Vivekananda has quit [Ping timeout: 240 seconds]
TonyMergue has quit [Read error: Connection reset by peer]
i_s has quit [Quit: i_s]
nkts has joined #ruby
jorge has quit [Ping timeout: 276 seconds]
bradhe has quit [Ping timeout: 256 seconds]
devoldmx3 has quit [Remote host closed the connection]
paissad has quit [Quit: This computer has gone to sleep]
devoldmx has quit [Ping timeout: 240 seconds]
zigomir has quit [Ping timeout: 276 seconds]
adeponte has quit [Ping timeout: 268 seconds]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
nezumi has joined #ruby
saarinen has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
louism2wash has quit [Quit: This computer has gone to sleep]
locriani has joined #ruby
grillermo has joined #ruby
grillermo has quit [Client Quit]
ixti has quit [Quit: WeeChat 0.4.1]
zacts has joined #ruby
tommyvyo has quit [Quit:]
vlad_starkov has quit [Remote host closed the connection]
arya_ has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
io_syl has joined #ruby
iliketurtles has joined #ruby
arya__ has quit [Ping timeout: 248 seconds]
i_s has joined #ruby
_maes_ has joined #ruby
xcv has quit [Remote host closed the connection]
jmimi has joined #ruby
i_s has quit [Quit: i_s]
cantonic has joined #ruby
ravster has quit [Quit: Leaving.]
cantonic_ has joined #ruby
renderful has joined #ruby
cantonic_ has quit [Client Quit]
agarie has quit [Remote host closed the connection]
cantonic has quit [Read error: Connection reset by peer]
serp` has joined #ruby
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
londerson has quit [Quit: londerson]
<Nilium>
Hm, I wonder how usable RubyMotion is.
felixjet_ has quit [Read error: Connection reset by peer]
rodacato has joined #ruby
ukd1 has quit [Read error: Connection reset by peer]
lurid_ is now known as lurid
alvaro_o has quit [Quit: Ex-Chat]
cj3kim has joined #ruby
nitish has joined #ruby
nitish has joined #ruby
nitish has quit [Changing host]
mmitchell has quit [Read error: Connection reset by peer]
viszu has quit [Quit: Leaving.]
reset has joined #ruby
tk has joined #ruby
mmitchell has joined #ruby
tk is now known as Guest70115
platoscave has joined #ruby
rien has quit [Quit: leaving]
jalcine has quit [Excess Flood]
cha1tanya has joined #ruby
MrZYX is now known as MrZYX|off
Mathias__ has quit [Remote host closed the connection]
Es0teric has joined #ruby
saarinen has quit [Quit: saarinen]
sean_s has joined #ruby
mneorr has joined #ruby
rodacato has quit [Remote host closed the connection]
jorge has joined #ruby
jalcine has joined #ruby
jalcine has quit [Client Quit]
renderful has quit [Remote host closed the connection]
forced_request has quit [Ping timeout: 248 seconds]
lethan has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 268 seconds]
zomgbie has quit [Read error: Connection reset by peer]
jorge has quit [Ping timeout: 240 seconds]
zomgbie has joined #ruby
vikhyat has joined #ruby
xcv has joined #ruby
romdi`` has quit [Ping timeout: 246 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
Artheist has joined #ruby
arya_ has quit [Ping timeout: 240 seconds]
TheBay has joined #ruby
TheBay is now known as Mathias__
ckrailo has quit [Quit: Computer has gone to sleep.]
kTorpedoS has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
lurid__ has joined #ruby
wisconsin has quit [Remote host closed the connection]
rgfx has quit []
threesome has quit [Ping timeout: 246 seconds]
TorpedoSkyline has quit [Ping timeout: 276 seconds]
lurid has quit [Ping timeout: 276 seconds]
lurid__ is now known as lurid
lurid is now known as 18WAD5LXK
arya_ has joined #ruby
sean_s has quit [Quit: sean_s]
nbouscal has joined #ruby
bradhe has joined #ruby
Mathias__ has quit [Remote host closed the connection]
Evixion has joined #ruby
echevemaster has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
r0bgleeson has quit [Ping timeout: 276 seconds]
cj3kim has quit [Remote host closed the connection]
mary5030 has joined #ruby
DanKnox_away is now known as DanKnox
JoeArauzo has joined #ruby
E23 has quit []
vikhyat has quit [Ping timeout: 246 seconds]
shadoi1 has quit [Ping timeout: 245 seconds]
JoeArauzo has left #ruby [#ruby]
yshh has quit [Remote host closed the connection]
ffio has joined #ruby
vikhyat has joined #ruby
sailias has quit [Ping timeout: 248 seconds]
jalcine has joined #ruby
peret has quit [Remote host closed the connection]
DanKnox is now known as DanKnox_away
krainbol_ has joined #ruby
baroquebobcat has joined #ruby
adeponte has joined #ruby
krainboltgreene has quit [Ping timeout: 268 seconds]
bigmac has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.0]
hamakn has joined #ruby
wallerdev has quit [Quit: wallerdev]
hamakn has quit [Read error: Connection reset by peer]
hamakn_ has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
hamakn_ has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
<iliketurtles>
i want to repeat a string "string" to make it a certain length. the length might not make the string repeat perfectly, ie, "stringstri" how can I accomplish this?
<apeiros_>
stormbytes: either via the command line tool `ri` or via `gem server` (local webserver)
invsblduck has joined #ruby
chxane has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<apeiros_>
seriously_random: "show me the answer" is not how help in irc works. you show what you did at the very least.
defrag1 has joined #ruby
stairmast0r has quit [Disconnected by services]
<stormbytes>
how would you access ri for json
65MAAOEO6 has quit [*.net *.split]
yshh has joined #ruby
<stormbytes>
[~] $ ri gpio
<stormbytes>
Nothing known about .gpio
<stormbytes>
[~] $ ri wiringPi/
<stormbytes>
Nothing known about .wiringPi/
<stormbytes>
for a platform that's so incredible in so many ways..
platoscave has joined #ruby
<stormbytes>
ruby's docs implementation is crap
<stormbytes>
i mean com on..
robertjpayne has joined #ruby
<stormbytes>
its so compolicated
arya_ has quit [Ping timeout: 264 seconds]
<stormbytes>
doesn't need to b
<stormbytes>
ugh
nmabry has joined #ruby
<waxjar>
are you sure you have the documentation installed?
<stormbytes>
no idea
<stormbytes>
man pages get installed automatically
<apeiros_>
stormbytes: you know, it doesn't take *that much* intelligence to try `ri --help`
<stormbytes>
why would rubygems try to reinvent that wheel exactly
stairmast0r has joined #ruby
<stormbytes>
apeiros: i just spent an hour playing guessing games with something that should be intuitive
<stormbytes>
so, stupid, perhaps but i overlooked that
<waxjar>
some people have turned off automatic generation of doc on gem install
<stormbytes>
whats' even more stupid is the moron that came up with this retarded and cryptic 'help' system
<waxjar>
pry allows you to check documentation even if it's not installed. it's pretty neat
maxfilipovich has joined #ruby
<stormbytes>
docs should be a no-brainer
<apeiros_>
stormbytes: well, IMO it is
<seriously_random>
apeiros_, I passed the test. I didn't read the question carefully at first, sorry!
maxfilipovich has quit [Client Quit]
apt-get_install has joined #ruby
<waxjar>
my guess is that you haven't installed them stormbytes
<apeiros_>
the only non-brainer part about it is knowing that the command is `ri`
<stormbytes>
i don't even know what ri *is*
<stormbytes>
there are cryptic mentions of 'ri' and 'rdocs' here and there, bits and pieces
<waxjar>
man ri
<atmosx_>
ri
<stormbytes>
is there a single @#$%@ page on the internet where the Ruby help 'system' is explained on a 4 year old's level?
nkts has quit [Quit: -]
cads has joined #ruby
<stormbytes>
*WHAT IS* ri
Fuzai has joined #ruby
<stormbytes>
i know its a 'gem'
arya_ has joined #ruby
<apeiros_>
calm down
<apeiros_>
all the swearing is only getting you kicked :-p
<stormbytes>
sorry... long (and extraordinalriy crappy week)
<Xeago>
stormbytes: man ri => ri displays information about Ruby classes, modules, and methods.
<waxjar>
ri --help is pretty clear, imo. what exactly do you wanna know that's not in there?
<stormbytes>
well i'm gonna read through it now.
<stormbytes>
calling any gem via 'ri gemname' produces nothing
<apeiros_>
re: "not generated docs" - what waxjar said is somewhat important. not all package managers install the core ruby docs (e.g. with rvm, you have to do `rvm docs generate` to get core docs), and some people make gems not generate docs by default either
<apeiros_>
stormbytes: that's because it's not how it works. it's `ri method` or `ri constant`
<stormbytes>
why is it that whoever thought up of man-pages didn't require the same?
<stormbytes>
i mean.. if i don't know where to start with a given gem, how can anyone expect that level of specificity?
colonolGron has joined #ruby
<stormbytes>
do you really not understand my frustration?
<waxjar>
you'd have the same problem if you didnt know how the man command works
<apeiros_>
only partially
<apeiros_>
a gem usually comes with a readme
<stormbytes>
help should be 'help gem-name'
<apeiros_>
which should give you good starting points
arya_ has quit [Ping timeout: 246 seconds]
jibi has quit [Quit: .]
zigomir has joined #ruby
<Xeago>
if you don't know what to search for, you can also explore the docs on disk
<stormbytes>
waxjar - as you can tell, i'm not exactly the sharpest pencil in the box. yet somehow, i've been using 'man command' for years without a hitch. anytime i come across something i'm not sure about, its 'man app' or 'man app method -h'
<stormbytes>
amazingly simple
<Xeago>
I've seen a rdoc->man package on some weirdass system before
<Xeago>
but it was horrible
<stormbytes>
with ruby, i need to check if help is installed, generate help files, make 'specific' queries
<waxjar>
your problem is that you want ri to behave like man :P
<stormbytes>
this tool is essentially useless for general help
<apeiros_>
stormbytes: "generate help files" - only if you deactivated the default generation (or use a package manager which did)
<Xeago>
depends on how the documentation is done regarding the gem
<apeiros_>
not exactly rubys fault
<stormbytes>
waxjar : seems like that would be one heck of an improvement, don't you think?
aaronmcadam has joined #ruby
platoscave has quit [Ping timeout: 252 seconds]
<apeiros_>
and if ruby wouldn't provide a way to deactivate doc generation, you'd have all the screamers and whiners on that one.
<waxjar>
no, gems could just use man pages
<stormbytes>
ok i'm getting lost here
<waxjar>
ri's domain is "displaying information about Ruby classes, modules and methods" :)
<stormbytes>
i installed a gem called 'wirringpi'
<stormbytes>
is there a *specific* way to get a like-man page on that gem?
xavier23 has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
<waxjar>
only if the author of the gem created one
<stormbytes>
where would one look for said 'help' file?
<waxjar>
listed. for a quick overview, see the README of the gem. most of them have one. if they don't, it's a good indicator of a gem that's not gonna be maintained
<waxjar>
*listen
<stormbytes>
i'm sure when i get up to seeking help on specific classes, methods, etc, that i'll surely revisit *ri*
<waxjar>
if you need help on specific methods, use ri or rubydoc.info or whatever
xerxas has joined #ruby
tonini has joined #ruby
<stormbytes>
well, i appreciate the help (and tolerance) but looking for some 'readme' file isn't what i had in mind
<apeiros_>
stormbytes: maybe you want rdoc.info
<stormbytes>
is that a command? a domain name?
<apeiros_>
domain
<stormbytes>
nope
<stormbytes>
nada
<stormbytes>
wow
<apeiros_>
it organizes rdoc/yard docs by gem-name and includes core/stdlib
<stormbytes>
ok.. guess i'll have to google stuff
BizarreCake has joined #ruby
<Xeago>
stormbytes: gems usually come from github, or otherwise from rubygems.com
<stormbytes>
i feel like i just ran into a unicorn
<Xeago>
if I can't find documentation via those 2 sources, it is best to read the code
arya_ has joined #ruby
xavier23 has quit [Client Quit]
<stormbytes>
i'm amazed beyond belief how something so fundamental could have been overlooked so badly
didlix has quit [Quit: Connection closed for inactivity]
<apeiros_>
you're misconstruing this stormbytes
<apeiros_>
it's not been overlooked
<Xeago>
consider that gem system is not intended for non-developers
<apeiros_>
it's just grown over the decades
<apeiros_>
and you insisting on it being and/or acting like man-pages doesn't help either :-p
<apeiros_>
I certainly wouldn't want it to be man-pages.
<apeiros_>
especially not if I extrapolate it to "all programming languages use man-pages"
<stormbytes>
that fact that i need to jump through hoops to get a simple *manual* page on *any* gem in a travesti
<apeiros_>
good luck finding the docs then…
<waxjar>
what exactly *do* you want?
<stormbytes>
well thanks, i'll google and see what i come up with
<Xeago>
stormbytes: try google..
<apeiros_>
stormbytes: the fact that in 9 years it's been like 2 people having this issue here… doesn't look good on you :-p
<stormbytes>
want: a way of accessign a man-like page on *any* gem
<stormbytes>
(provided one is included by the author of course)
<Xeago>
try rubydoc.info
<stormbytes>
apeiros_ : what percentage of ruby developers do you think have shown up here in the last 9 years?
<stormbytes>
50% ?
<stormbytes>
more?
<apeiros_>
stormbytes: wrong relation
<apeiros_>
right relation: how many users have been here vs. how many of those had issues to figure out the doc system
<apeiros_>
and that relation is probably somewhere in the sub-promille region
cha1tanya has quit [Quit: cha1tanya]
<stormbytes>
*where* is ruby's doc system?
GeissT has quit [Ping timeout: 240 seconds]
<stormbytes>
i speak 7 languages
<apeiros_>
as said at the very beginning of this convo: the command `ri` and `gem server`
<stormbytes>
i've been writing php for 5+ years
<stormbytes>
i assure you i'm not retarded
<Xeago>
stormbytes: ri WiringPi would have given you information would have given you information
<Xeago>
there is a top-module for that gem
<apeiros_>
stormbytes: and php has man-pages? :D
<waxjar>
ri kind of does that stormbytes: ri Array gives you an overview of Array. i agree it's not very extensive, tho
<stormbytes>
no php doesn't
arya_ has quit [Ping timeout: 248 seconds]
<stormbytes>
php has an awesome online help system
<apeiros_>
so, did you rave on about that in ##php too?
<Xeago>
so do ruby-gems
<Xeago>
rubydoc.info is cool too
<apeiros_>
also, where's the help files for 3rd party php code?
<apeiros_>
because that one isn't on php.net either
<stormbytes>
php also does not have anykind of cohesive, community driven class repository like rubygems (well... least it hasn't had one..)
<apeiros_>
php has pear
<stormbytes>
pear blows
<apeiros_>
see
<stormbytes>
compared to rubygems? pear is non existent
<apeiros_>
so you complain ruby not having what php has is completely wrong by your own account :-p
<waxjar>
it has composer, no?
<stormbytes>
not even a contestant :)
<stormbytes>
php is great for writing web pages, that's about it.
<atmosx_>
girlfriend wans to go to sea, and I'm tired what to do?
<stormbytes>
i'm not mocking it.. its great :) i made a ton of money with Php over the years
<stormbytes>
but its not ruby.
<Xeago>
read a book, bring a pillow, don't forget sunscrean
<Xeago>
and fall asleep
Deele has quit [Ping timeout: 240 seconds]
<atmosx_>
I could get my mba and relax on the sea, but the posture might be awkward + too many people, the internet connection will be slow to death
<atmosx_>
Xeago: I do that all the time there.. hmm
* atmosx_
hugs his kindle
atmosx_ is now known as atmosx
<stormbytes>
hehe
<stormbytes>
btw.. i tried 'ri WiringPi'
<waxjar>
can you read the screen with sunny weather?
<stormbytes>
got nada..
<stormbytes>
rdoc WiringPi will generate the docs?
<atmosx>
waxjar: the mba is not clear, but you can read it.
<waxjar>
lucky :p
<atmosx>
waxjar: under the umbrella, the sun will melt the machine down here …
<atmosx>
otehrwise
<atmosx>
the kindle is crystal clear
<stormbytes>
i guess i exptected more because the gem writing/sharing convention is so damn pretty :)
<atmosx>
shit, writing ruby code on tha beach should be fun, but it's not.
<stormbytes>
i mean i can fork a repo on github and exptend the app/utiity by the end of the day
<atmosx>
stormbytes: what happens in the end of the day?
<atmosx>
we eat usually
samuel02 has joined #ruby
renderful has joined #ruby
<stormbytes>
hmm
<stormbytes>
dinner
zmike has quit [Quit: ~]
<stormbytes>
what's Darkfish format?
zmike123 has joined #ruby
lkba has joined #ruby
<waxjar>
stormbytes: is that constant in the list ri -l returns?
<stormbytes>
i ran rdoc WirringPi
<waxjar>
if not, try gem install --all --ri to install documentation for all gems and check your .gemrc file
<stormbytes>
it parsed sources
samuel02 has quit [Remote host closed the connection]
<ericwood>
yes, I know I'm asking you to download and run arbitrary code but I promise it's not malicious
vikhyat has quit [Ping timeout: 264 seconds]
<wisconsin>
your code gave me cancer
devoldmx has joined #ruby
atno has joined #ruby
<ericwood>
good
goleldar has joined #ruby
<ericwood>
it's actually not horrible code; there really is no right way to write curses stuff without it sucking
jonathanwallace has quit [Ping timeout: 264 seconds]
banghouse has quit [Remote host closed the connection]
devoldmx3 has quit [Ping timeout: 256 seconds]
jorge has quit [Remote host closed the connection]
jorge has joined #ruby
mengu has joined #ruby
realDAB has joined #ruby
<Xeago>
I considered it well written curses
vikhyat_ has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
Artheist has joined #ruby
jorge has quit [Ping timeout: 264 seconds]
<Xeago>
I changed buttons tho
atno has quit [Quit: Leaving]
<Xeago>
acceleration seems too fast tbh
<Xeago>
particular vertical acceleration
atyz has quit [Quit: Leaving...]
atyz has joined #ruby
<waxjar>
man im so terrible at pong
Krajsnick has joined #ruby
realDAB has joined #ruby
realDAB has quit [Client Quit]
pskosinski has quit [Quit: Til rivido Idisti!]
Mattix has joined #ruby
cads has joined #ruby
ferdev has joined #ruby
jamesaanderson has joined #ruby
ccracker has joined #ruby
bluOxigen has joined #ruby
robertjpayne has quit [Remote host closed the connection]
pupoque has joined #ruby
<IceDragon>
oh sorry back :O so many windows open..
atno has joined #ruby
<IceDragon>
ericwood: :O Well it works, but periodically the pad will pull apart (like some fragments are left behind on screen)
mengu has quit [Ping timeout: 260 seconds]
<Xeago>
noticed that as well, think it is a rounding issue
browndawg1 has quit [Ping timeout: 240 seconds]
ccracker has quit [Ping timeout: 264 seconds]
<IceDragon>
:O But thats one neat pong... (better than anything I've ever tried with curses..)
kayloos has joined #ruby
m_3_ has quit [Remote host closed the connection]
viszu has joined #ruby
mengu has joined #ruby
Gandalf has quit [Quit: Ex-Chat]
Lewix has joined #ruby
enebo has quit [Quit: enebo]
blischalk has quit [Quit: Leaving]
locriani has joined #ruby
timonv has quit [Remote host closed the connection]
ssvo has joined #ruby
pothibo has joined #ruby
mary5030 has joined #ruby
timonv has joined #ruby
tylersmith has joined #ruby
sjaq has quit [Quit: sjaq]
kayloos has quit [Remote host closed the connection]
m_3 has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
browndawg has joined #ruby
ravster has quit [Quit: Leaving.]
Neomex has joined #ruby
havenwood has quit [Ping timeout: 248 seconds]
bluOxigen has quit [Ping timeout: 264 seconds]
<ericwood>
lol thanks guys
<ericwood>
it's a huge hack
<IceDragon>
:O It works though
arya_ has joined #ruby
timonv has quit [Remote host closed the connection]
Neomex has quit [Client Quit]
niklasb has quit [Ping timeout: 264 seconds]
sheerun has joined #ruby
pskosinski has joined #ruby
sheerun has quit [Client Quit]
sheerun has joined #ruby
wisconsin has quit [Remote host closed the connection]
ssvo has quit [Ping timeout: 264 seconds]
pothibo has quit [Quit: pothibo]
AlHafoudh has joined #ruby
bryjbrown has joined #ruby
IceDragon has quit [Ping timeout: 276 seconds]
AlHafoudh has quit [Client Quit]
skryl has joined #ruby
shift_ has joined #ruby
AlHafoudh has joined #ruby
bluOxigen has joined #ruby
realDAB has joined #ruby
thesheff17 has joined #ruby
includex has quit [Ping timeout: 245 seconds]
mary5030 has quit [Remote host closed the connection]
timonv has joined #ruby
sailias has quit [Ping timeout: 245 seconds]
snearch has joined #ruby
wsterling has joined #ruby
ntus1017 has quit [Remote host closed the connection]
BizarreCake has quit [Read error: Connection reset by peer]
wsterling has quit [Ping timeout: 252 seconds]
t0rc has joined #ruby
IceDragon has joined #ruby
dhruvasagar has joined #ruby
sailias has joined #ruby
saarinen has joined #ruby
realDAB has quit [Quit: realDAB]
jonathanwallace has joined #ruby
jorge has joined #ruby
<alainus>
I want to sort an array according to existence of items. Like this: b = []; a = []; d = [a,c]; e = [d, a]; c = [a]; z = [b, a, d, e, c]; z_ordered = [a,b,c,d,e]. The function makes sure that arrays are ordered so that if an element i contains an element j, then i comes after in the ordered j.
<alainus>
I want to sort an array according to existence of items. Like this: b = []; a = []; d = [a,c]; e = [d, a]; c = [a]; z = [b, a, d, e, c]; z_ordered = [a,b,c,d,e]. The function makes sure that arrays are ordered so that if an element i contains an element j, then i comes after j in the ordered array.
<alainus>
sorry typo
tommyvyo has quit [Ping timeout: 245 seconds]
saarinen has quit [Ping timeout: 248 seconds]
ravster has joined #ruby
Vivekananda has joined #ruby
jorge has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
sepp2k has joined #ruby
skaczor has joined #ruby
reset has joined #ruby
postmodern has quit [Quit: Leaving]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
randomautomator has joined #ruby
<skryl>
alainus: z.sort { |a,b| (a.is_a(Array) && a[b]) ? b <=> a : a <=> b }
dhruvasagar has quit [Ping timeout: 276 seconds]
<apeiros>
alainus: build an index hash first, like: index = Hash.new(0); d.each do |x| index[x] = 1 end; e.each do |x| index[x] = 2 end; …
<apeiros>
then use sort_by: ary.sort_by { |x| index[x] }
himsin has joined #ruby
randomautomator has quit [Remote host closed the connection]
skryl has left #ruby ["WeeChat 0.4.1"]
<alainus>
let me try
<alainus>
apeiros, shouldn't that be index[x] += 1 ?
joast has joined #ruby
<apeiros>
no
<apeiros>
as you explained it, all items which exist in e.g. array d have the same sorting index
bryjbrown has quit [Read error: Operation timed out]
<alainus>
I should have noted that I don't know a, b, c, d, e in advanced. They are contained in an array z, and I'm looping through it trying to sort it
cads has quit [Ping timeout: 264 seconds]
<alainus>
*in advance
<apeiros>
doesn't matter
<apeiros>
I'd have recommended to put them into an array anyway
codemannew has joined #ruby
marr has quit [Ping timeout: 246 seconds]
brunoro has joined #ruby
codemannew has quit [Client Quit]
<apeiros>
dunno why I didn't actually write my example code that way. probably because I'm watching SC2 atm.
jonathanwallace has quit [Ping timeout: 248 seconds]
locriani has quit [Read error: Connection reset by peer]
Cache_Money1 has joined #ruby
locriani_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
thams has joined #ruby
Krajsnick has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
nbouscal has joined #ruby
devoldmx3 has joined #ruby
tylersmith has quit [Remote host closed the connection]
Cache_Money1 has quit [Client Quit]
shift_ has quit [Quit: shift_]
kjellski_ has joined #ruby
zmike123 has quit [Ping timeout: 240 seconds]
Ry0_ has joined #ruby
locriani_ has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 264 seconds]
kjellski has quit [Ping timeout: 252 seconds]
baroquebobcat has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
Tricon has joined #ruby
<Tricon>
Hello, noobs.
colonolGron has joined #ruby
reset has quit [Quit: Leaving...]
jonathanwallace has joined #ruby
smathieu has joined #ruby
blackmesa has joined #ruby
TheNotary has joined #ruby
Ry0_ has quit [Remote host closed the connection]
companion is now known as Companion
Companion is now known as PRISM
smathieu has quit [Ping timeout: 276 seconds]
zmike123 has joined #ruby
PRISM is now known as Companion
lnormous has quit [Read error: Connection reset by peer]
skaczor has quit [Ping timeout: 245 seconds]
Companion is now known as MilfCompanion
MilfCompanion is now known as Companion
havenwood has joined #ruby
Es0teric has joined #ruby
Es0teric has quit [Remote host closed the connection]
TheNotary has quit [Quit: Leaving]
kevinykchan has quit [Read error: Connection reset by peer]
Nisstyre has quit [Quit: Leaving]
t0rc has quit [Quit: WeeChat 0.4.1]
kayloos has joined #ruby
bhaak has quit [Read error: Operation timed out]
skaczor has joined #ruby
thams has quit [Quit: thams]
mengu has quit [Quit: This computer has gone to sleep]
adambeynon has joined #ruby
RichardBaker has joined #ruby
arietis has joined #ruby
clocKwize has joined #ruby
ChristianS has quit [Excess Flood]
ChristianS has joined #ruby
TheNotary has joined #ruby
Guest7743 has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
twoism has joined #ruby
pyoor has joined #ruby
shift_ has joined #ruby
atno has quit [Ping timeout: 276 seconds]
kayloos has quit [Remote host closed the connection]
reset has joined #ruby
jamesaanderson has joined #ruby
<Nilium>
It'd be nice if coffee wasn't necessary to programmer survival.
<apeiros>
I survive without coffee just fine
sailias has quit [Ping timeout: 252 seconds]
<Nilium>
You must be some sort of weird übermensch.
sailias has joined #ruby
<havenwood>
welp, time to hop off the tightrope to make way...
arya__ has joined #ruby
<Nilium>
Not sure if Zarathustra reference...
<havenwood>
"We have discovered happiness" -- say the Last Men, and they blink.
<Nilium>
Ok, now sure.
arya_ has quit [Ping timeout: 248 seconds]
_veer has quit [Ping timeout: 246 seconds]
goleldar has quit [Ping timeout: 248 seconds]
goleldar has joined #ruby
hamed_r has joined #ruby
shift_ has quit [Quit: shift_]
baroquebobcat has quit [Quit: baroquebobcat]
brotatos has left #ruby ["WeeChat 0.4.1"]
renderful has quit [Remote host closed the connection]
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
renderful has joined #ruby
yfeldblum has joined #ruby
renderful has quit [Remote host closed the connection]
d3 has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
ravster has quit [Quit: Leaving.]
bigmac has joined #ruby
tylersmith has joined #ruby
welandB has quit [Ping timeout: 240 seconds]
atno has joined #ruby
<nezumi>
Too many Rails folks at Ruby conferences lately.
ntus1017 has joined #ruby
<havenwood>
Party crashers!
gyre008 has joined #ruby
nbouscal has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
dawkirst has quit [Ping timeout: 276 seconds]
tylersmith has joined #ruby
axeman- has quit [Remote host closed the connection]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arya__ has quit [Ping timeout: 248 seconds]
gyre007 has quit [Ping timeout: 260 seconds]
tommyvyo has joined #ruby
goshakkk has joined #ruby
bigmac has quit [Quit: Leaving]
Thermo has joined #ruby
DrShoggoth has joined #ruby
<Thermo>
Rails noob here, is Rails meant to be used for large scale production programs? For instance if Google amazon were to be rewritten with Rails would there be sever limitations?
gustavn has quit [Quit: Leaving]
<sam113101_>
twitter is a rails app
<sam113101_>
but they had to rewrite something in scala
workmad3 has joined #ruby
tricon_ has joined #ruby
browndawg has left #ruby [#ruby]
<Kar-_>
mmm just learned all about ActiveSupport's Time.zone extensions
<Kar-_>
so nice to bin a whole bunch of ugly code and just use that
brianpWins has quit [Quit: brianpWins]
Ry0_ has joined #ruby
dankest has joined #ruby
devoldmx has joined #ruby
<Xeago>
that said sam113101_, twitter is more than a rails app, their tweet-pipeline is very interesting
yacks has joined #ruby
devoldmx3 has quit [Ping timeout: 246 seconds]
dobry-den has joined #ruby
arya_ has joined #ruby
skaczor has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 276 seconds]
Xeago_ has joined #ruby
Xeago is now known as Guest26095
Xeago_ is now known as Xeago
Guest26095 has quit [Killed (hubbard.freenode.net (Nickname regained by services))]
Xeago is now known as Xeago_
Xeago_ is now known as Xeago
b0oh has joined #ruby
Artheist has quit [Read error: Connection reset by peer]
ffio_ has joined #ruby
<sam113101_>
is it open source?
ntus1017 has quit [Remote host closed the connection]
ffio has quit [Ping timeout: 240 seconds]
18WAD5LXK has left #ruby [#ruby]
teddyp1cker has joined #ruby
Ry0_ has quit [Remote host closed the connection]
sqd has quit [Quit: sqd]
EPIK has quit [Ping timeout: 264 seconds]
<Xeago>
no
<Xeago>
some parts are
kayloos has joined #ruby
<Xeago>
twemcache for example
kayloos has quit [Remote host closed the connection]
<krainboltgreene>
I want to do two long running io processes at the same exact time.
<Xeago>
wow, what a bad reason to close it..
<waxjar>
lol
<Nilium>
So what's the actual issue with it? O_o
<apeiros>
yeah, wanted to comment back then. did now.
saarinen has quit [Ping timeout: 264 seconds]
<havenwood>
Seems to be a fundamental misunderstanding of what an Issue is...
<havenwood>
yeeksh
gustavn has joined #ruby
<havenwood>
Opposite of tagging for easy finding, close is!
TheNotary has quit [Quit: Leaving]
<havenwood>
close it*
csdc has joined #ruby
<dobry-den>
as an alternative to zdavatz/spreadsheet, check out https://github.com/Empact/roo (i wasn't following yall's discussion)
<dobry-den>
i don't remember what issue i had with spreadsheet but i switched to Roo and it was an improvement for my usecase
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
Nisstyre has joined #ruby
<apeiros>
dobry-den: that doesn't write iirc
<apeiros>
or didn't back when I cobbled some gems together to make something useful
<dobry-den>
ah that's be critical
<dobry-den>
that'd*
wesside has joined #ruby
<apeiros>
I want to replace the dependencies on those other gems, but excel binary format? eeeeek.
<dobry-den>
i had to lay down some hacks to both gems a while back and the mutation in both libs made it pretty hard to hack
<apeiros>
the code of all excel related gems made me want to puke
cj3kim has quit [Read error: Connection reset by peer]
<apeiros>
one guy in that issue mentioned writeexcel, I might try that one
cj3kim has joined #ruby
<Xeago>
excel makes me want to puke
<apeiros>
that too
<apeiros>
and I mean both, the format and the app
<apeiros>
had a couple of rantweets just a few days ago…
shift_ has joined #ruby
ixti has joined #ruby
<Xeago>
years ago
<Xeago>
when I had a java assignment
<Xeago>
I built a service that accepted a csv, and output xlsx
<Xeago>
but I think you need fancier capabilities right
<Xeago>
colors, functions, graphs etc?
cj3kim has quit [Read error: Connection reset by peer]
michaeldeol has quit [Remote host closed the connection]
cj3kim has joined #ruby
londerson has quit [Ping timeout: 276 seconds]
smathieu has quit [Remote host closed the connection]
brianpWins has joined #ruby
Shirakawasuna has joined #ruby
<Nilium>
I'm kind of glad I never had java assignments. Sort of. Would probably have helped me get acquainted with it sooner, but I'm not unhappy that I got to avoid it.
<Xeago>
it was part of a group project, for which we had to use java, the only project that demanded java
<Xeago>
the only project that is done in java
<Nilium>
Ah, group projects.
<Nilium>
Those are how you can tell who seriously enjoys programming.
echevemaster has joined #ruby
<Xeago>
nobody knew how to spit out xlsx as was requested
<Xeago>
I knew com was a mess
<Xeago>
so I just hacked together a screenflow on a vm
ctrinh has joined #ruby
<Xeago>
using purely java libraries to control the vm :)
<Xeago>
(those libraries might have had tools/dependencies in other languages)
<Nilium>
I definitely wouldn't know how to spit out xlsx without reading the spec first, so that's probably fair.
YaNakilon has joined #ruby
<Xeago>
they wanted us to interface with COM or DCOM
allsystemsarego has quit [Quit: Leaving]
<Xeago>
which is just as big as a mess
<apeiros>
I have a bit of code to spit out proper xlsx
<Nilium>
That's just mean.
TheBay has quit [Ping timeout: 240 seconds]
<apeiros>
though excel on windows complains about it. but it can open it just fine.
<Xeago>
MSO provides com interfaces, but it is a pita
<apeiros>
headless openoffice (libreoffice) :)
Nakilon has joined #ruby
smathieu has joined #ruby
michaeldeol has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
timonv has joined #ruby
cj3kim has joined #ruby
adkron has joined #ruby
jorge__ has joined #ruby
platoscave has joined #ruby
byprdct has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
YaNakilon has quit [Ping timeout: 246 seconds]
michaeldeol has quit [Remote host closed the connection]
londerson has joined #ruby
TheBay has joined #ruby
Ry0_ has joined #ruby
TheBay is now known as Mathias__
adeponte has joined #ruby
PaulePanter has quit [Remote host closed the connection]
realDAB has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
Mathias__ is now known as TheBay
realDAB has quit [Client Quit]
jonathanwallace has quit [Ping timeout: 246 seconds]
E23 has joined #ruby
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
barata has joined #ruby
arya_ has joined #ruby
barata has quit [Quit: Page closed]
Davey has joined #ruby
iko2 has joined #ruby
jorge__ has quit [Remote host closed the connection]
jorge__ has joined #ruby
druonysus has joined #ruby
druonysus has joined #ruby
clocKwize has quit [Quit: clocKwize]
digitalcake has joined #ruby
louism2wash has joined #ruby
Ry0_ has quit [Remote host closed the connection]
AlHafoudh has quit [Quit: Computer has gone to sleep.]
<digitalcake>
anyone here ever try to pair up with strangers for a little pair programming session? If so is there a chan you know of that I can join to start a pair session with someone?
slash_nick has quit [Quit: leaving]
adeponte has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 248 seconds]
jorge__ has quit [Ping timeout: 276 seconds]
bobbyz has quit [Quit: Leaving]
viszu has quit [Quit: Leaving.]
ctrinh has quit [Quit: ctrinh]
<havenwood>
digitalcake: i dunno of a dedicated channel, this is prolly a good one to look in
<Xeago>
digitalcake: not me usually, I saw a submission on HN this week
<Kelet>
If I remember correctly though, and this might not be true in high-level languages, but assuming you do / and then %, you are practically doing the same operation twice. Thus div or divmod is preferred say if you have it in a huge loop.
AlHafoudh has joined #ruby
<Kelet>
And of course some compilers might optimize this too
awc737 has joined #ruby
AlHafoudh has quit [Client Quit]
colonolGron has quit [Quit: Lost terminal]
iliketurtles has joined #ruby
_Andres has joined #ruby
timonv has quit [Remote host closed the connection]
lindenle has quit [Quit: This computer has gone to sleep]
lindenle has joined #ruby
chile_andes has joined #ruby
kjellski_ has quit [Quit: This computer has gone to sleep]
<iliketurtles>
assuming I've implemented a String#^ (xor) function, is this a valid way to calculate the hamming distance between two strings (number of differing bits): (self ^ other).tr("\x00",'').length
rdark has quit [Quit: leaving]
adeponte has joined #ruby
<apeiros>
I think so
<apeiros>
though tr(a, '') usually means you should just use delete(a) instead
_Andres has joined #ruby
_Andres has quit [Client Quit]
crocket has joined #ruby
adeponte has quit [Ping timeout: 248 seconds]
lindenle has quit [Quit: This computer has gone to sleep]
workmad3 has joined #ruby
jorge__ has joined #ruby
devoldmx has quit [Remote host closed the connection]
realDAB has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
<crocket>
Is ruby suitable for large projects?
decoponio has joined #ruby
bthesorceror has joined #ruby
<crocket>
what about web programs?
DanKnox is now known as DanKnox_away
<iliketurtles>
apeiros: weird, I seem to be getting the wrong output regardless
codecop has quit [Remote host closed the connection]
<apeiros>
iliketurtles: a) your encodings are wrong, b) your String#^ is wrong, c) your reference for right/wrong is wrong :)
<apeiros>
I think common String#^ isn't what you need for hamming distance btw.
<apeiros>
oh, wait
<apeiros>
no, I'm making a mess
<iliketurtles>
apeiros: ^_^
wu_lmao has joined #ruby
weeb1e has quit [Ping timeout: 256 seconds]
<apeiros>
it depends on what you want
<iliketurtles>
the number of differing bits
<apeiros>
yeah, then the .tr("\x00",'').length is wrong
<iliketurtles>
that's just checking the number of differing characters?
<iliketurtles>
it would seem
<apeiros>
that doesn't tell you how many 1-bits are in the string. it only tells you how many non-0-*bytes* are in
<apeiros>
not even that
weeb1e has joined #ruby
<apeiros>
since "a" ^ "b" != "\x00"
<iliketurtles>
sure, its "\x03"
brianpWins has quit [Quit: brianpWins]
<apeiros>
you want .unpack("B*").first.count("1")
digitalcake has quit [Quit: Leaving.]
jorge__ has quit [Remote host closed the connection]
<iliketurtles>
apeiros: ah brilliant
<apeiros>
don't count on me, though. it's >25°C here, and I'm having half a headache in addition.
jorge__ has joined #ruby
<iliketurtles>
naw that works
<iliketurtles>
can you guide me through what that does? .unpack("B*") just unpacks the string into a bit string
<iliketurtles>
and counts each instance of "1"
realDAB has quit [Quit: realDAB]
bthesorceror has left #ruby [#ruby]
<iliketurtles>
so, what does the 1 represent in the bit array in this case?
<iliketurtles>
bit string * sorry
ssvo has quit [Ping timeout: 264 seconds]
daniel_hinojosa has joined #ruby
<matti>
iliketurtles: A set bit I'd imagine?
<iliketurtles>
matti: sure, a set bit indeed. so i've XOR'd two strings, and essentially im analyzing each resulting bit of the XOR, and for any that are 1 it counts as a differing bit?
<matti>
They are not strings is "string" sense.
<matti>
They are bunch of bytes.
<matti>
After calling unpack.
<matti>
A blob of crap if you wish ;p
_Andres has joined #ruby
kobain has quit [Read error: Operation timed out]
brianpWins has joined #ruby
kobain has joined #ruby
kobain has quit [Excess Flood]
kobain has joined #ruby
kobain has quit [Excess Flood]
<iliketurtles>
sure, the bit representation of each char in the string
kobain has joined #ruby
kobain has quit [Excess Flood]
adkron has quit [Quit: leaving]
kobain has joined #ruby
jorge__ has quit [Ping timeout: 248 seconds]
kobain has quit [Excess Flood]
kobain has joined #ruby
<matti>
You can do this like: n = 256 ; (0 .. 8).inject({}) { |h, i| h[i] = n[i]; h }
<matti>
In Ruby
<matti>
Kelet: n = 256 ; (0 .. 8).inject({}) { |h, i| h[i] = n[i]; h }
louism2wash has quit [Quit: This computer has gone to sleep]
<matti>
Sorry.
<iliketurtles>
wrong mention :P
<matti>
eval-in: n = 256 ; (0 .. 8).inject({}) { |h, i| h[i] = n[i]; h }
mary5030 has joined #ruby
<iliketurtles>
>> n = 256 ; (0 .. 8).inject({}) { |h, i| h[i] = n[i]; h }