<jamesfordummies>
yeah i imagine once the thread object is created it begins execution
<ari-_-e>
godd2: what you actually mean is does it start as soon as Thread.new returns
<havenwood>
unless it's a very bad Thread and wanders off in search of frozen yogurt first
balazs has joined #ruby
<havenwood>
up to the system scheduler
<godd2>
thanks ari-_-e I'll keep that vocab in mind.
ghr has joined #ruby
<godd2>
havenwood I guess I should say it's up for immediate scheduling
<havenwood>
aye
<godd2>
(even if it doesn't actually get scheduled)
Alina-malina has quit [Ping timeout: 240 seconds]
fold has joined #ruby
nateberkopec has joined #ruby
TorpedoSkyline has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
dc_ has joined #ruby
goshdarnyou has joined #ruby
aspires has joined #ruby
<havenwood>
thread
phinfonet has quit []
Sauvin has joined #ruby
dc_ has quit [Remote host closed the connection]
aspires has quit [Client Quit]
InhalingPixels has quit []
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
Alina-malina has joined #ruby
dc_ has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
gregf has joined #ruby
<havenwood>
didn't mean to input that here >.>
<jamesfordummies>
THREAD!
eyeamaye1 has joined #ruby
<havenwood>
higher level concurrency construct!
Emmanuel_Chanel has quit [Ping timeout: 255 seconds]
dbasch_ has joined #ruby
dbasch_ has quit [Client Quit]
nateberkopec has quit [Ping timeout: 240 seconds]
kaspergrubbe_ has joined #ruby
<havenwood>
"1) add more abstract concurrency e.g. actors 2) add warning when using threads directly 3) then remove GIL" ~Matz
Spacecloud is now known as pipework
nat2610 has quit [Quit: Leaving.]
<havenwood>
^ Aug 1 "vague plan for Ruby GIL"
tectonic has quit []
<jamesfordummies>
does ruby have a GIL havenwood?
<havenwood>
jamesfordummies: CRuby does indeed.
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jamesfordummies>
interesting
<havenwood>
jamesfordummies: as do MagLev and Topaz
<jamesfordummies>
i am concurrency novice
<eam>
I wish ruby played nicer with fork
<havenwood>
jamesfordummies: JRuby and Rubinius are GILless
davedev24_ has joined #ruby
<havenwood>
eam: in what way?
<centrx>
If forks are forks, are threads sporks?
<eam>
lots of gems around with shared state cleanup in the finalizer
<havenwood>
ah
kireevco has quit [Quit: Leaving.]
<eam>
descriptor manip seems to be the common gotcha
<havenwood>
jamesfordummies: CRuby GIL could be removed right now but a lot of c-exts would break.
<jamesfordummies>
why is it "bad"?
<havenwood>
jamesfordummies: *soon*
Photism has quit [Quit: Leaving]
kaspergrubbe_ has quit [Ping timeout: 245 seconds]
<havenwood>
jamesfordummies: Why is the GIL bad?
<jamesfordummies>
yes
davedev2_ has quit [Ping timeout: 260 seconds]
<centrx>
jamesfordummies, It means threads are not concurrent in the CPU. So the threads are only basically concurrent and useful for waiting for I/O such as network, database, etc.
<havenwood>
jamesfordummies: It disallows parallel execution when more than one Ruby thread requires the GVL to proceed.
<eam>
all the people who do math in ruby are real bummed out </mild sarcasm>
<havenwood>
jamesfordummies: They can still run concurrently, in the sense that they schedule intermittently, but they can't run in parallel.
lw has quit [Quit: s]
<jamesfordummies>
i see
<jamesfordummies>
that really sucks
<havenwood>
jamesfordummies: *when* they both require the GVL at once
<havenwood>
jamesfordummies: which in many circumstances doesn't happen
<havenwood>
jamesfordummies: but when it does...
<jamesfordummies>
when wouldnt they both require it??
<centrx>
jamesfordummies, It only affects CPU-intensive apps. Other kinds of apps are always waiting around for network I/O, disk I/O, database, etc.
<havenwood>
jamesfordummies: not every bit of Ruby code must aquire the GVL
InfraRuby has joined #ruby
<havenwood>
jamesfordummies: what centrx said^
<eam>
the general rule is that applications are always i/o bound
crypwolf has joined #ruby
<havenwood>
jamesfordummies: and c-ext don't have to aquire it, Ruby is actually pretty smart about it
<eam>
there are few exceptions, and those exception cases are rarely written in a language like ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
jamesfordummies: when Ruby has Agents or Actors and Threads get a warning they can pull the trigger and just drop the GVL
<havenwood>
jamesfordummies: Think Ruby 3.
lw has joined #ruby
<jamesfordummies>
hmm. give me a second to work this out.
centrx has quit [Quit: Mead error: Connection reset by beer]
krz has joined #ruby
davedev2_ has joined #ruby
<jamesfordummies>
havenwood: so the idea is to remove the GVL but make it safer and easier to use threading operations - so it will be easy for the user to avoid these troubles
<jamesfordummies>
?
centrx has joined #ruby
<jamesfordummies>
wow. so fascinating
<havenwood>
jamesfordummies: right. provide something better than threads. warn when threads are used. drop the GVL.
funburn has joined #ruby
<jamesfordummies>
i never really used threads extensively in ruby
davedev24_ has quit [Ping timeout: 246 seconds]
eyeamaye1 has quit [Quit: Leaving.]
kriskropd has quit [Quit: leaving]
<jamesfordummies>
havenwood: and this is planned for ruby 3?
eyeamaye has joined #ruby
<havenwood>
jamesfordummies: There are nice gems like Celluloid and concurrent-ruby for now.
<postmodern>
what is the current best way to define git style subcommands?
<centrx>
and JRuby
<centrx>
postmodern, Thor, no?
<jamesfordummies>
postmodern: like what?
<jamesfordummies>
or commandor
<jamesfordummies>
commander*
<postmodern>
centrx, problem with Thor is it doesn't do POSIX style option parsing
Pharaoh2 has quit [Read error: Connection reset by peer]
Pharaoh2_ has joined #ruby
[endel] has joined #ruby
infinitone has quit [Ping timeout: 260 seconds]
wjimenez5271 has joined #ruby
s2013 has quit [Ping timeout: 260 seconds]
sputnik13 has quit [Ping timeout: 240 seconds]
zettam has joined #ruby
hellangel7 has joined #ruby
darkness has joined #ruby
darknesshellange has joined #ruby
<zettam>
Hello channel. I know there is a lot of this same discussion everywhere, but I want to ask here as well to get an up to date insigth.... Should I chose ruby over python?
darkness is now known as Guest71601
agarie has quit [Ping timeout: 246 seconds]
<zettam>
I don't have much idea about rails or django, this will be my first dive into more serious programming
ghr has joined #ruby
<pontiki>
does it really matter? :)
<Nowaker>
zettam: to be really honest and objective, ruby is better than python, but not that much
<Nowaker>
but when it comes to rails vs django, rails is way better
darknesshellange has quit [Max SendQ exceeded]
<charles81>
They're both great languages but follow some different concepts.
<Nowaker>
django is archaic
darknesshellange has joined #ruby
<zettam>
Nowaker :)
nateberkopec has joined #ruby
<Nowaker>
it's sad a framework like this is the most popular framework
<zettam>
django is the most popular?
<charles81>
ruby = many ways to do the same thing. can be easier for a lone programmer.
Hobogrammer has joined #ruby
<Nowaker>
for example... using gettext for i18n, seriously? it's xxi century
<zettam>
charles81, I'm not sure if I'll be able to find more than one ways to do a thing, at first. I'm comin from actionscrippt background, I know a little bit of csharp (for unity purposes) and that's mostly all about it
<zettam>
ah and some JS of course
<Nowaker>
zettam: yes, it is.
sambao21 has joined #ruby
<Nowaker>
okay guys gotta go
<pontiki>
huh, i would have thought drupal was the most popular framework
<benzrf>
wordpress?
ghr has quit [Ping timeout: 245 seconds]
machete has quit [Ping timeout: 245 seconds]
<pontiki>
maybe
<charles81>
python = one way which can make it easier for multiple programmers working on code together or changing programmers since they should all be using roughly the same method to do something.
<ari-_-e>
drupal and wordpress are php
<pontiki>
and django is python
<pontiki>
what's your point?
<ari-_-e>
we weren't talking about php :)
<pontiki>
someone mentioned "most popular"
<zettam>
charles81, phyton definitely seems readable but if that's the only thing, I tink it's all about getting used to
machete has joined #ruby
<ari-_-e>
I assumed "in python" was implied
<zettam>
For some reason ruby feels like the users are more protective and more "into" it
nateberkopec has quit [Ping timeout: 240 seconds]
<[endel]>
i think PHP is "comming back" in the next year
Tophats has quit [Remote host closed the connection]
<zettam>
[endel], why do you think so
<zettam>
it looks awful, I always hated that. Please don't lt it come back :3
wjimenez5271 has quit [Remote host closed the connection]
<[endel]>
haha. It seems that a new version called PHPNG is way faster the last one.
wjimenez5271 has joined #ruby
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[endel]>
the language itself have evolved a lot in these years, one thing that I've found awesome is the support of Traits http://php.net/trait
<jamesfordummies>
as long as javascript dies a painful death i dont mind
<jamesfordummies>
:P
fgo has joined #ruby
<zettam>
Ok than here is the question, what do you tink about nodejs, compared to ruby and phyton?
<ari-_-e>
[endel]: the problem with php isn't its speed
<zettam>
As I mentioned, I'm looking for a language mainly for web apps.
<jamesfordummies>
i think js is broken
<jamesfordummies>
so making a server in it doesn't make sense to me
<[endel]>
zettam: perhaps you don't need a server-side language
Pharaoh2_ is now known as Pharaoh2
jxf has joined #ruby
sambao21 has quit [Ping timeout: 255 seconds]
zz_anildigital is now known as anildigital
anildigital is now known as zz_anildigital
wjimenez5271 has joined #ruby
JoshGlzBrk has joined #ruby
JoshGlzBrk has quit [Max SendQ exceeded]
JoshGlzBrk has joined #ruby
<[endel]>
there is a bunch of 'no-backend' solutions, which is valid in the case you just want to build some kind of product or prototype http://nobackend.org/solutions.html
JoshGlzBrk has quit [Client Quit]
tectonic has joined #ruby
Cache_Money has quit [Remote host closed the connection]
zz_anildigital is now known as anildigital
JoshGlzBrk has joined #ruby
JBreit has joined #ruby
<jamesfordummies>
but... then you have to use javascript...
<jamesfordummies>
:P
<[endel]>
haha jamesfordummies, unfortunatelly javascript is essential for any webapp :(
<jamesfordummies>
it is a bleak world
<jamesfordummies>
although there is a resistance - just made a small homepage in this http://elm-lang.org/
<jamesfordummies>
but it's very far from a production level state, so we are stuck with js for now :P
SilkFox_ has joined #ruby
arup_r has quit [Ping timeout: 272 seconds]
Pharaoh2 has quit [Read error: Connection reset by peer]
<zettam>
So, where should I start learning ruby?
<zettam>
codeacademy was where I started, but I'm open to suggestions.
newUser1234 has quit [Remote host closed the connection]
InfraRuby has left #ruby [#ruby]
Apocalypse has joined #ruby
Pharaoh2 has joined #ruby
eyeamaye has quit [Quit: Leaving.]
vsoftoiletpaper has quit []
<jamesfordummies>
i'm partial to Mislav's guide for beginners. my learning style was conducive to reading this *with an idea in mind*, and trying to implement that idea along the way - with the help of this book and stackoverflow. once I had repeated that a few times, I read eloquent ruby - then kept building things, then I read metaprogramming in ruby zettam
EvanR_ has quit [Read error: Connection reset by peer]
EvanR_ has joined #ruby
spicerack has joined #ruby
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
<zettam>
jamesfordummies, so no interactive tutorials at first?
<zettam>
I find interactive ones quite helpful but I'm sure they don't cover as much as the books.
dpbus has quit [Quit: Computer has gone to sleep.]
<jamesfordummies>
zettam: are you also learning rails?
dpbus has joined #ruby
<zettam>
jamesfordummies, that's my aim, should I start them at the same time
<zettam>
I don't know mucuh abotu anything really, this will be my first serious dive into programming
<jamesfordummies>
ah ok.
<jamesfordummies>
if you want a better base IMO go with ruby first
<zettam>
When I googled about webapps, it led me to phyton and ruby after a few days of searching/reading
<zettam>
is rails too different?
<zettam>
I always thought of it as like a library or somethin
<zettam>
does it have to be learned seperately -
<zettam>
because most places say it takes aroun 6 months for one to become good in ruby
<jamesfordummies>
it's a framework... but it's an entire system on its own. I know people who have learned rails without formally using ruby. you do have to learn them separately but if you know the basics of ruby then rails will come much easier to you
<zettam>
it seemed too much to me
robscormack has joined #ruby
<zettam>
Jameser`, okay, I understand
hephaestus_rg has joined #ruby
<jamesfordummies>
zettam: i personally think ruby is plenty fun & useful without rails :)
SilkFox_ has quit [Ping timeout: 240 seconds]
JoshGlzBrk has quit [Ping timeout: 240 seconds]
newUser1234 has joined #ruby
JoshGlzBrk has joined #ruby
brandonshowers has joined #ruby
asdasdasdasss has joined #ruby
<robscormack>
it is indeed
dpbus has quit [Ping timeout: 272 seconds]
<robscormack>
btw hi, humans
<zettam>
any online sources for rails interactive-learning?
TieSoul has joined #ruby
Pharaoh2 has quit [Read error: Connection reset by peer]
starkhalo has joined #ruby
Guest71601 has quit [Remote host closed the connection]
hellangel7 has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
darknesshellange has quit [Read error: Connection reset by peer]
JoshGlzBrk has quit [Ping timeout: 250 seconds]
asdasdasdasss has quit [Ping timeout: 240 seconds]
<godd2>
in the future, please direct rails questions to #rubyonrails, but to answer your question: http://railsforzombies.org/
Akagi201 has joined #ruby
icebourg has quit []
Akagi201 has quit [Remote host closed the connection]
Akagi201_ has quit [Read error: No route to host]
<zettam>
thank you jamesfordummies and godd2
gogohome has joined #ruby
Akagi201_ has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
decoponio has joined #ruby
jxf has quit [Ping timeout: 255 seconds]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
arup_r has joined #ruby
fgo has quit [Remote host closed the connection]
<zettam>
I just installed ruby on my win8, it's uisng the ms-dos window; is it possible to use soemthing else
<zettam>
I mean, te interactive ruby
Anwar has joined #ruby
Tricon has quit [Quit: Leaving...]
nanoyak has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Akagi201 has joined #ruby
Akagi201 has quit [Remote host closed the connection]
Akagi201_ has quit [Read error: Connection reset by peer]
Akagi201 has joined #ruby
<Pharaoh2>
open up whatever command shell you like and start irb
cesurasean has left #ruby [#ruby]
<pontiki>
then install pry and have an even better interactive ruby experience
mercwithamouth has joined #ruby
<zettam>
Pharaoh2, what do you mean by whatever command shell? is there any other in windows?
<ari-_-e>
zettam: the command shell in NT OSes isn't actually DOS
<ari-_-e>
just sorta acts like it
<Pharaoh2>
there are a few, like Command2; but if you think something like idle for python; I don't think one comes as default
duper has quit [Ping timeout: 260 seconds]
<ari-_-e>
zettam: do you want a different command line interface or just the ability to resize the window how you want to and such?
<zettam>
Pharaoh2, I see --- also when I type irb and press enter, nothing happens in the command prompt
<zettam>
ari-_-e, I just dislike the default command window, it's not about the size or color, it's about the behavior
<Pharaoh2>
try irb.exe
<ari-_-e>
zettam: what about its behavior?
ghr has joined #ruby
<zettam>
not even possible to select witout gimmicks
<zettam>
Pharaoh2, not working
<zettam>
:/
<zettam>
should I browse to a directory first
<Pharaoh2>
is it setup correctly in your path?
<ari-_-e>
zettam: "not working"?
<ari-_-e>
what do you mean by that?
<zettam>
well I just pen the command prompt, and type irb or irb.exe
<zettam>
that's what doens't works
<ari-_-e>
and you press enter?
<zettam>
Sorry for being this new :)
<zettam>
-__-
<zettam>
yes I do
<ari-_-e>
and what happens?
nateberkopec has joined #ruby
<zettam>
'irb' is not recognized as an internal or external command,
<zettam>
operable program or batch file.
s2013 has joined #ruby
<ari-_-e>
there we go
JoshGlzBrk has joined #ruby
<ari-_-e>
yeah, probably not in your path or something
InfraRuby has joined #ruby
<ari-_-e>
I don't know about setting up ruby on windows, I'll defer to someone else
<zettam>
well there is this interactive ruby command prompt thing
<zettam>
I tink that instantly starts it
<zettam>
but I was just trying the other way around
charliesome has joined #ruby
duper has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
eyeamaye has joined #ruby
JoshGlzBrk has quit [Read error: No route to host]
vsoftoiletpaper has joined #ruby
SilkFox_ has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
<Pharaoh2>
zettam: what is the output of path
<zettam>
my user
tvw has joined #ruby
merqlove has joined #ruby
<Pharaoh2>
what
<Pharaoh2>
`path`
kenneth_ has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
balazs has quit [Ping timeout: 255 seconds]
kenneth has joined #ruby
kenneth has quit [Client Quit]
Tricon has joined #ruby
hephaestus_rg has quit [Ping timeout: 255 seconds]
x1337807x has joined #ruby
s2013 has quit [Ping timeout: 255 seconds]
segv has quit [Ping timeout: 255 seconds]
x1337807x has quit [Ping timeout: 246 seconds]
wjimenez5271 has quit [Remote host closed the connection]
darkxploit has joined #ruby
philcrissman has joined #ruby
newUser1234 has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
davedev2_ has quit [Read error: Connection reset by peer]
<robscormack>
zettam, can you describe your problem again?
<robscormack>
nvm I found it
davedev24_ has joined #ruby
<robscormack>
zettam, on your Programs menu, you'll find something like "Ruby command prompt"
<robscormack>
use that one instead of the common cmd
philcrissman has quit [Ping timeout: 272 seconds]
<robscormack>
that one loads everything you need: irb, gem, ruby... etc.
sputnik13 has joined #ruby
<robscormack>
also, someone suggested to install pry, I recommend against it on Windows... because it's Windows.
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aleatorik has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
<zettam>
robscormack, oh I already installed pry
<zettam>
it's not looking like how it looks on thewebsite
cajone has left #ruby [#ruby]
<robscormack>
it's because the Windows terminal doesn't have support for ANSI colours
mercwithamouth has quit [Ping timeout: 272 seconds]
<robscormack>
if you're serious about developing Ruby apps, you should use Linux, BSD or OS X.
thams has joined #ruby
<jamesfordummies>
*developing any modern web app :P
<jamesfordummies>
if that's annoying, just run a VM of Ubuntu in windows
<robscormack>
Ubuntu? ewww
<jamesfordummies>
what, you wanna start a beginner in arch?
<robscormack>
nope, Slackware, obviously.
<jamesfordummies>
ubuntu has tons of support for things like rails
<jamesfordummies>
tons of form posts
nanoyak has quit [Quit: Computer has gone to sleep.]
brandonshowers has joined #ruby
<jamesfordummies>
forum
<robscormack>
I know but I hate its user interface. :D
IceDragon has quit [Quit: Space~~~]
<robscormack>
just kidding.
<jamesfordummies>
lol
<robscormack>
actually when my students become tired of Windows uselessness for anything decent, I recommend them LinuxMint.
<jamesfordummies>
zettam: in all seriousness, the development community doesn't have much love for windows. there are generally more hurdles and because so - there is much less support. most unix support you find will apply to both mac and linux, so most developers use those
<jamesfordummies>
i know devs who have windows boxes and just run VMs though
diegoviola has quit [Remote host closed the connection]
asdasdasdasss has joined #ruby
frankle has quit [Quit: Connection closed for inactivity]
tricon_ has joined #ruby
<robscormack>
I agree with jamesfordummies
craigbowen3 has joined #ruby
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
starkhalo has quit [Quit: WeeChat 1.0-rc2]
razum2um has joined #ruby
Tricon has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cya]
<zettam>
jamesfordummies, I understand and know
<zettam>
I do a lot of rendering, so most of my machines are windows
<zettam>
the whole rnderfarm basically
<zettam>
because of the tools that I use for my "job"
<jamesfordummies>
lol
drawingthesun has joined #ruby
newUser1234 has joined #ruby
asdasdasdasss has quit [Ping timeout: 272 seconds]
drawingthesun has quit [Max SendQ exceeded]
<robscormack>
I know that feeling bro, too bad for you. :D
drawingthesun has joined #ruby
brandonshowers has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
magikfx__ has quit [Remote host closed the connection]
thams has quit [Quit: thams]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hellangel7 has joined #ruby
fgo has joined #ruby
SilkFox_ has quit [Ping timeout: 260 seconds]
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
fgo has quit [Ping timeout: 260 seconds]
<Pharaoh2>
Uhh, what is the general opinion on double quoted strings vs single quoted strings? Just go with double quoted always? Only when somethings needs to be interpolated or escaped?
<[endel]>
threesixes: "if it works for gaming, it works for ANYTHING" - wise quotation of a coworker of mine :)
wjimenez5271 has joined #ruby
<arup_r>
Use double quote if you need string interpolation.. Otherwise use lightweight single quote
<Pharaoh2>
Yea, your coworker is going to have a very bad time
<Pharaoh2>
arup_r: how big of a performance/memory difference is there?
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jamesfordummies has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
<pontiki>
Pharaoh2: if you're worried about performance differences between single and double quote without interpolation, don't. there's lots better things to worry about.
<pontiki>
it's more of a consideration of style than anything
<Pharaoh2>
No, I am just worried about style guide and ease of use
<Pharaoh2>
and the fact that rubymine keeps complaining about this stuff :|
<pontiki>
nod
<pontiki>
rubymine also tends to have this annoying trait where it will suggest one thing, then when you change it, suggest the other
razum2um has quit [Quit: Leaving.]
<pontiki>
they're mainly just suggestions though, not complaints
sputnik13 has joined #ruby
<pontiki>
the github ruby style guide says to always use double quote
babykosh has joined #ruby
flowerhack has joined #ruby
<pontiki>
that's hardly gospell tho
charliesome has joined #ruby
kaspergrubbe_ has joined #ruby
Mattx has quit [Read error: Connection reset by peer]
Mattx has joined #ruby
charliesome has quit [Client Quit]
<robscormack>
rubymine caused me serious brain damage.
<pontiki>
i don't use it as my regular code editor, for sure
<pontiki>
but i've not found anything better at code spelunking
<robscormack>
spelunking?
wjimenez5271 has quit [Remote host closed the connection]
<robscormack>
ok, understood
<pontiki>
stolen from cave exploring: given a new project, repo, etc., diving into the code to figure out what calls what, where methods are defined, etc
<robscormack>
yep
<robscormack>
has it changed significantly from 5.0?
<pontiki>
probably; i'm on 6.3, but i probably don't take advantage of the changes that much
<pontiki>
for fun, i thought i'd try to build a rails app starting from scratch in RM
<pontiki>
if that was how i normally did things, it'd probably be okay
<pontiki>
probably just too old and set in my ways to use it full time tho
hakunin has joined #ruby
<robscormack>
the screencast doesn't look bad, actually
build-system has joined #ruby
<robscormack>
I'll keep with Brackets, though.
<pontiki>
Brackets?
techsethi has joined #ruby
<robscormack>
download.brackets.io
<robscormack>
most of what I do currently is HTML+CSS+JS over small Rails apps
cpruitt has joined #ruby
<pontiki>
sure
<pontiki>
i'd just never heard of it
<robscormack>
it's one of the new kids on the block
<pontiki>
clojurebridge suggests using light table -- another new one
<robscormack>
Ruby support is awful, but it supports LESS, SASS, CoffeeScript just as well.
magic is now known as Logician
<robscormack>
light table is newer, I also read it but it's... large for me.
<pontiki>
i have webstorm from jetbrains as well; not sure i like it much
<pontiki>
idk
<pontiki>
it's hard for me to get away from emacs because i've been using it forever
<pontiki>
it's the editor i imprinted on, really
asdasdasdasss has joined #ruby
Pharaoh2 has quit [Read error: Connection reset by peer]
<robscormack>
if you're on development for a living, of course.
Pharaoh2 has joined #ruby
<robscormack>
as I'm a teacher, I often try many things, even Dreamweaver.
<pontiki>
as a developer, it behooves me to try new tools
<robscormack>
true that
<robscormack>
but you don't switch :)
asdasdasdasss has quit [Ping timeout: 255 seconds]
Pharaoh2 has quit [Read error: Connection reset by peer]
Pharaoh2 has joined #ruby
<robscormack>
well, it's time to listen to some music, will try rubymine I guess
s2013 has quit [Ping timeout: 245 seconds]
heftig has joined #ruby
<pontiki>
i didn't say i don't switch
MatthewsFace has quit [Quit: This computer has gone to sleep]
<pontiki>
i said i find it hard to switch
m8 has joined #ruby
<pontiki>
i've used other editors, some a lot, and eventually i come back
<pontiki>
probably more importantly, all other editors get measured against emacs
axsuul has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
<benzrf>
i just use vim
zz_anildigital is now known as anildigital
<benzrf>
it is pretty great at taking a blob of bytes and doing things to it
<benzrf>
which may or may not be what you want
<robscormack>
yep, I was a vim user too
build-system has quit [Quit: Leaving]
<godd2>
Holy crap converting ALSA structs to ffi is freakin ridiculous
<pontiki>
i have a very hard time with vi*
<robscormack>
I never was an impressive vim user, it's enough with vimderbar on top of Brackets (and Bram Moolenaar will come and kick me)
vsoftoiletpaper has quit []
<pontiki>
i've just never been able to work well with modal editors
codecop has joined #ruby
<pontiki>
there's nothing wrong with them
<pontiki>
it's just, again, what i imprinted on
<pontiki>
it's hard to change some of that
dseitz has joined #ruby
benzrf is now known as benzrf|offline
vsoftoiletpaper has joined #ruby
techsethi has quit [Quit: techsethi]
<robscormack>
switching editors is like switching operating systems
<robscormack>
haha
<pontiki>
or shells
Ilyas has joined #ruby
<robscormack>
after almost 15 years working with bash, I switched to zsh in 2 days.
<pontiki>
i can't get the hang of zsh completion
arya_ has joined #ruby
ghr has joined #ruby
<robscormack>
it's tricky sometimes
<pontiki>
i wanted to do: `rake SPEC='spec/blah/blah/..'` and could NOT figure out how to get it to expand the path
<robscormack>
tab?
<pontiki>
nope
JBreit has quit [Read error: Connection reset by peer]
lkba has joined #ruby
doev has joined #ruby
<pontiki>
it's also slow
nateberkopec has joined #ruby
<robscormack>
it works with tab for me
GriffinHeart has quit [Remote host closed the connection]
<pontiki>
i'm so glad
<robscormack>
haha
newUser1234 has quit [Remote host closed the connection]
<robscormack>
it's slower, yes
<robscormack>
and it gets worse if you put oh my zsh on top of it.
<pontiki>
that might be it
ghr has quit [Ping timeout: 255 seconds]
<pontiki>
folks i'm working with tend to distribute a shared VM environment for their projects, a nice practice in and of itself, but it's always got zsh and oh my zsh defaulted for the vagrant user
<pontiki>
no one seems to know why
<pontiki>
and most folks switch back to bash
<pontiki>
but no one bothers to change the boxes
InfraRuby has left #ruby [#ruby]
GriffinHeart has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
JBreit has joined #ruby
Spami has joined #ruby
JBreit has left #ruby [#ruby]
mackintosh has joined #ruby
Pharaoh2 has quit [Read error: Connection reset by peer]
Pharaoh2 has joined #ruby
threesixes has quit [Remote host closed the connection]
lkba has quit [Read error: Connection reset by peer]
philcrissman has joined #ruby
lkba has joined #ruby
crazed has quit [Ping timeout: 245 seconds]
skaflem has joined #ruby
crazed has joined #ruby
vsoftoiletpaper has quit []
wwalker has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
charliesome has joined #ruby
philcrissman has quit [Ping timeout: 260 seconds]
Lucky__ has joined #ruby
tricon_ has quit [Read error: Connection reset by peer]
Tricon has joined #ruby
arya_ has quit [Read error: Connection reset by peer]
andrewlio has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
Ilyas has quit [Read error: Connection reset by peer]
asdasdasdasss has quit [Ping timeout: 245 seconds]
jhass|off is now known as jhass
Atttwww has quit [Ping timeout: 272 seconds]
anaeem1_ has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
basiclaser has quit [Excess Flood]
anaeem1_ has joined #ruby
lanox_ has quit [Remote host closed the connection]
basiclaser has joined #ruby
davispuh has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
wald0 has joined #ruby
Rollabunna has quit [Remote host closed the connection]
<Hanmac>
shevy i used some checks and i found a few files in rwx that does have more commented code than source code inside ;P
Rollabunna has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
devdazed has quit [Ping timeout: 264 seconds]
Emmanuel_Chanel has joined #ruby
wchun has quit [Ping timeout: 245 seconds]
Emmanuel_Chanel_ has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
Emmanuel_Chanel_ has quit [Read error: Connection reset by peer]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
b__ has joined #ruby
Emmanuel_Chanel has joined #ruby
ghr has joined #ruby
lkba has joined #ruby
coderhs has quit [Ping timeout: 272 seconds]
devdazed has joined #ruby
nateberkopec has joined #ruby
marr has quit [Ping timeout: 255 seconds]
guardian has left #ruby ["WeeChat 0.4.3"]
ghr has quit [Ping timeout: 245 seconds]
lkba has quit [Ping timeout: 272 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
Sid05 has quit [Read error: Connection reset by peer]
philcrissman has joined #ruby
arya_ has joined #ruby
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mon_Ouie has quit [Ping timeout: 240 seconds]
lanox has joined #ruby
gogohome has left #ruby [#ruby]
philcrissman has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
lanox has quit [Client Quit]
wchun has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Hobogrammer has quit [Ping timeout: 255 seconds]
sandelius has joined #ruby
User458764 has joined #ruby
<sandelius>
Is it possible to add a method to a module with an external variable as method return? I need to get a value outside of the module context
<Hanmac>
sandelius: is parameter for the method not your liking?
gruz0[russia] has joined #ruby
yfeldblu_ has joined #ruby
<jhass>
sandelius: did you look at instance_variable_get ?
babykosh has quit [Quit: babykosh]
<Hanmac>
if the module is included into a class or extended into an object, the method inside the module can use the instance variables of the object just fine
yfeldblum has quit [Ping timeout: 240 seconds]
bootstrappm has joined #ruby
thomasxie has quit [Remote host closed the connection]
<jhass>
I guess we're not sure what you're asking
<sandelius>
Mut then I need to add the instance of the class I'm in to the other module. Like Rails does when adding the controller instance to view helpers
<jhass>
sandelius: do you have some code to show what you're doing/what you want?
<sandelius>
Sure, I'll gist it
lynxman has joined #ruby
<Hanmac>
ah rails ... the bane of us normal users
gruz0[russia] has quit [Quit: This computer has gone to sleep]
SCHAAP137 has quit [Remote host closed the connection]
starless has quit [Quit: Leaving]
ferr has quit [Remote host closed the connection]
<sandelius>
Hanmac This is not rails but the concept is the same.
<shevy>
they are awesome, when a wolf comes they approach it
cpruitt has quit [Quit: cpruitt]
<matti>
Haha
<matti>
Guarding Llama
<matti>
TIL
comma8 has quit [Ping timeout: 260 seconds]
Brando753 has quit [Ping timeout: 260 seconds]
<shevy>
it's more than 20 llamas too btw, some of the local peons already adopted and integrated them... though I guess the total number of llamas is indeed very small compared to the sheep count... lemme find out
<Hanmac>
hm ok mi might need to sort out some encodings like "locale", "external", "filesystem", "internal" ... i dont know why list does return 100 but my counting does return 101
<shevy>
"Im Jahr 2009 waren das 431.889 Schafe." ok... 2009, there were 431.889 sheep in swiss
<Hanmac>
yep its the "internal" one
<shevy>
so possibly at max only 100 llamas :(
arya_ has quit [Ping timeout: 272 seconds]
Brando753 has joined #ruby
anaeem1 has joined #ruby
devdazed has quit [Ping timeout: 255 seconds]
<shevy>
anyone knows offhand if I can use "locate" to locate only 100% matches? if I do: "locate ar", I'd only like to get the binary ar (from binutils)
<Hanmac>
shevy because the llamas/alpacas does eat wolves? ;P ... just image how awesome/freaky that would be ;P
<shevy>
they just chase them away
<shevy>
I think the wolves are scared of other animals that look very tall
<shevy>
the sheep appear rather small and helpless
timonv_ has joined #ruby
<shevy>
dang... now I broke binutils ... Assembler messages: ccfcoXxJ.s:368: Error: expecting string instruction after `rep'
<dseitz>
Probably use a different query cmd
<dseitz>
like whereis
anaeem1 has quit [Read error: Connection reset by peer]
<Hanmac>
shevy ... so we need 6feet tall sheeps and they would be safe? ;D
<shevy>
at least ruby is slightly above perl there
nurrb has left #ruby [#ruby]
frankle has joined #ruby
<dseitz>
Hey that is a good rank considering that stack is based on #lines changed
<shevy>
Scheme is at a solid 0.08%
<dseitz>
I would suspect a mid-range rank to be better
<shevy>
hehe
<shevy>
well it would depend on the total amount of lines as well
larissa has joined #ruby
<shevy>
so that plot should be replotted and compared with the average line count in the respective language
larissa has left #ruby [#ruby]
<dseitz>
Definitely. Using SO statitistics is kinda... poopie
<dseitz>
Cause all that shows is over the lifetime of SO, people have had problems lol
mr_flibble is now known as feloneousmonk
o0oo0o has quit [Quit: WeeChat 0.4.3]
<shevy>
well it depends
<dseitz>
But the trending of SO is more interesting
<shevy>
more people using the language would also mean more questions asked in that language
<dseitz>
Where PHP, JS, and Java show increased pace
<shevy>
most of the ruby questions on SO seem to be rails-inspired :(
philcrissman has quit [Ping timeout: 255 seconds]
<shevy>
let's see
heftig has joined #ruby
mgomezch has joined #ruby
dtordable has joined #ruby
<shevy>
no idea how to get trending of SO
<dseitz>
I'm using makingdataeasy.com
dtordable has quit [Client Quit]
<dseitz>
Kinda matches what I expected
<dseitz>
JS is trending upward, significantly
<dseitz>
C# is on a downward slope
<dseitz>
PHP remains popular regardless of how bad it is lol
<dseitz>
Ruby on SO is flat, not popular -- Python on a slight upward trend
o0oo0o has joined #ruby
<dseitz>
I'm reviewing tag trends since 2008
<dseitz>
ish.. probably more like 2010
InhalingPixels has joined #ruby
lxsameer has quit [Quit: Leaving]
* Hanmac
does not care about trends since '88
asdasdasdasss has joined #ruby
SilkFox_ has joined #ruby
comma8 has joined #ruby
ghr has joined #ruby
heftig has quit [Ping timeout: 240 seconds]
<mr_snowf1ake>
the number of questions though is also an indicator of the difficulty of the language and the quality of documentation out there already
<mr_snowf1ake>
the less ambiguity there is with a language, the less of a necessity to ask questions
<shevy>
yeah
* wasamasa
is pretty sad about having to glob instead of walking over a file tree
<wasamasa>
this is not bash
<mr_snowf1ake>
globbing is fun in zsh! :D
<shevy>
ok wasamasa I will start an issue request on your behalf
<wasamasa>
shevy: on what?
<Hanmac>
also the codelines is also a maybe not so good indicator ... if you need 20 lines php code what ruby can do in one, php is ranked higher
<wasamasa>
Hanmac: in other words, all indicators are to be used with care
<mr_snowf1ake>
yup
<Hanmac>
there need to be an indicator for indicators how useful an indicator is ;D
<dseitz>
Trying to measure language popularity is silly anyway
<shevy>
wasamasa on Dir.empty?
amystephen has joined #ruby
* Hanmac
is getting more "meta" good i have a fever.termometer there ...
asdasdasdasss has quit [Ping timeout: 260 seconds]
<wasamasa>
shevy: oh right
<mr_snowf1ake>
Hanmac: but different indicators are useful for different people :P if i want to learn an easy language, i wouldn't necessarily go for the one with the most questions or the most lines even if it means it might be more popular
Pharaoh2 has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 255 seconds]
<mr_snowf1ake>
Hanmac: there needs to be an indicator that automagically indicates which indicator is most indicative for you!
Pharaoh2 has joined #ruby
<dseitz>
According to TIOBE, Taylor Swift is one of the most popular programming languages in the world lol
infinitone has joined #ruby
nszceta_ has joined #ruby
<mr_snowf1ake>
it's on the internet. must be true
<mr_snowf1ake>
anyway, gonna go rock climbing. cya.
mr_snowf1ake has quit [Quit: Leaving]
Hanmac has quit [Ping timeout: 260 seconds]
<shevy>
rock climbing huh
<shevy>
people have strange hobbies
<shevy>
brb going to chase a rhinozerus with my machete
<matti>
shevy: I am going spear fishing in Thames.
<matti>
;D
nateberkopec has quit [Quit: Leaving...]
<dseitz>
oh fun
nszceta has quit [Ping timeout: 260 seconds]
<dseitz>
I'm flying to france to check out those catacombs
<shevy>
what fish
codecop has quit [Remote host closed the connection]
<jhass>
shevy: start a proper GObject Introspection binding for ruby
Wolland has quit [Ping timeout: 264 seconds]
<Hanmac>
shevy i commited some stuff for rwx less then 2 days ago ... some files are more commented than code lines ;p
<shevy>
jhass but I don't know C
bricker`LA has joined #ruby
<jhass>
uhm, use C++?
<shevy>
ewwwww
<wasamasa>
hmm, feels like I'm halfway done with this really yucky ruby script that's supposed to process my manga for my kobo
<wasamasa>
time to take a break
<shevy>
lemme look at it!
heftig has quit [Ping timeout: 272 seconds]
dingus_khan has quit [Ping timeout: 260 seconds]
msmith_ has quit [Remote host closed the connection]
icebourg has quit []
<wasamasa>
not yet, only once I'm finished
InfraRuby has joined #ruby
<shevy>
:(
<shevy>
I am rewriting two separate .rb files into one common base
<Hanmac>
shevy and where is the problem?
<shevy>
it's no fun
<shevy>
I could have left them as separate
<shevy>
but it felt unclean to duplicate functionality
autonomousdev has joined #ruby
towbes has joined #ruby
rubytor has joined #ruby
<Hanmac>
currently my different scripts that make graphs like my gemtree or my classtree scripts are separate too, but they might be bundled later into a gem or something similar
devdazed has quit [Ping timeout: 260 seconds]
kaspertidemann has quit []
aef has quit [Remote host closed the connection]
comma8 has joined #ruby
yfeldblu_ has quit [Ping timeout: 246 seconds]
aef has joined #ruby
craigbowen3 has joined #ruby
nateberkopec has joined #ruby
aef has quit [Remote host closed the connection]
heftig has joined #ruby
hfp_ has joined #ruby
devdazed has joined #ruby
timonv_ has quit [Remote host closed the connection]
hfp has quit [Ping timeout: 245 seconds]
einarj has quit [Remote host closed the connection]
timonv_ has joined #ruby
Mon_Ouie has joined #ruby
hfp has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
tylerkern has joined #ruby
hfp_ has quit [Ping timeout: 244 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
hfp- has joined #ruby
hfp has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
towbes has quit [Ping timeout: 260 seconds]
starkhalo has quit [Ping timeout: 255 seconds]
s2013 has joined #ruby
hfp has joined #ruby
aef has joined #ruby
bmurt has joined #ruby
dingus_khan has joined #ruby
hfp| has joined #ruby
benzrf|offline is now known as benzrf
mary5030 has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
hfp_ has joined #ruby
hfp- has quit [Ping timeout: 240 seconds]
anaeem1__ has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
hfp has quit [Ping timeout: 260 seconds]
Cyrax_ has quit [Ping timeout: 264 seconds]
arya_ has quit [Ping timeout: 272 seconds]
dingus_khan has quit [Ping timeout: 246 seconds]
Cyrax_ has joined #ruby
jottr has joined #ruby
hfp| has quit [Ping timeout: 260 seconds]
anaeem1 has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anaeem1 has quit [Remote host closed the connection]
<wasamasa>
mixing up Dir, File, FileUtils and Pathname
TieSoul has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
<wasamasa>
shevy: rate its suckiness
claymore has joined #ruby
<shevy>
hmm
mary5030 has quit [Ping timeout: 272 seconds]
<shevy>
I would have written a class
<shevy>
and then: include FileUtils
<wasamasa>
include MakeFileHandlingSuckLess
TieSoul has joined #ruby
dingus_khan has joined #ruby
<shevy>
hehe
<shevy>
we could write such a gem
<shevy>
problem is that we'd then have to include it all the time
<wasamasa>
doesn't matter, look at how many gems I've included
<Hanmac>
wasamasa: why "/tmp/beam/unpack" hardcoded like that? just use "Dir.mktmpdir"
<wasamasa>
Hanmac: well, sure, I could have used mktmpdir with its prefix and postfix
<wasamasa>
Hanmac: but it feels pointless to me with that API
hobo has joined #ruby
e4xit_ has joined #ruby
krisquigley has quit [Remote host closed the connection]
dingus_khan has quit [Ping timeout: 240 seconds]
lw has joined #ruby
Rejected has joined #ruby
agarie has joined #ruby
hellangel7 has joined #ruby
e4xit has quit [Ping timeout: 260 seconds]
e4xit_ is now known as e4xit
MatthewsFace has joined #ruby
Rejected has left #ruby [#ruby]
<Hanmac>
wasamasa: why do you need that trash dir?
jxf has joined #ruby
<wasamasa>
just a development thing
cajone has joined #ruby
<wasamasa>
in case it crashes midprocess and I need to debug why
Gu_______ has joined #ruby
Gu_______ has quit [Max SendQ exceeded]
lw has quit [Ping timeout: 255 seconds]
maletor has joined #ruby
<Hanmac>
hm i need to update my libarchive gem ... with that you might have it more easy than using that atool
newUser1234 has quit [Remote host closed the connection]
<wasamasa>
I kind of doubt that since atool handles archives that bomb your cwd
<wasamasa>
instead of unpacking cleanly to a directory
<cajone>
guys how can I use gsub to remove from a give char to the end of the input, so say given a string "This is, a string" it would return "This is" so basically matching the comma and everything after it?
<jhass>
cajone: .split(',', 2).first
<wasamasa>
>> 'This is, a string'.sub(/,.*?$/, '')
<wasamasa>
Hanmac: which is why I walk over the extracted file hierarchy and look for other archives
<cajone>
wasamasa: thanks, the string is actually a bit more complicated than my simple example, but I had not thought about split so that is good also
<Hanmac>
wasamasa: hm yes you can do it with my gem too ... but without really extracting it ... (you only read it in ram)
<wasamasa>
Hanmac: ah, nice
<wasamasa>
Hanmac: I assume it doesn't hang on "wrong" file extensions, right?
amargherio has joined #ruby
<jhass>
shevy: .sub(/(.*)(\d{3})$/, '\\1.\\2')
<shevy>
aha
InfraRuby has joined #ruby
simonv3 has joined #ruby
<Hanmac>
wasamasa: hm it might not crash, i need to test it ... that gem is not touched for a very long time ... i need to update it against my newer skills too
TieSoul has quit [Ping timeout: 255 seconds]
aleatorik has joined #ruby
<simonv3>
Hey all, I'm trying to figure out if there's a way to create a recurring date in Ruby (or any other programming language, for that matter). For example, I'm only interested in the 10th of August every year, I don't really care about the year.
kireevco has quit [Quit: Leaving.]
<simonv3>
Would I just store that as a date and add an arbitrary year, or as two separate values? Do Date objects allow for something like that?
philcrissman has quit [Ping timeout: 240 seconds]
<wasamasa>
just create a new date object per year
<gzl>
what's the reason for having first/last and not just using [0] and [-1]?
perrier has quit [Remote host closed the connection]
<simonv3>
wasamasa: yeah I think I'm just hoping for something too magical
<Hanmac>
gzl short for symbol & block
<wasamasa>
simonv3: as for anything else we'd need moar context
techsethi has joined #ruby
Wolland has joined #ruby
Wolland has quit [Remote host closed the connection]
craigbowen3 has joined #ruby
<gzl>
Hanmac: ah, makes sense. thanks.
<wasamasa>
like how the hell such a thing should behave
<jhass>
gzl: I find it also more readable. Note they take parameters, you can do .first(10) or .last(5)
<wasamasa>
do you want some sort of generator-like object that returns the next recurring date?
<jhass>
gzl: which reads just like english
Wolland has joined #ruby
perrier has joined #ruby
<simonv3>
No, it's basically a growing calendar - storing the date of first sowing and last sowing, and showing that each year.
mijicd has quit [Remote host closed the connection]
<gzl>
jhass: sure, I agree.
<simonv3>
(sorry and)
mikecmpbll has quit [Quit: i've nodded off.]
dh64 has quit [Remote host closed the connection]
<Hanmac>
wasamasa: hm i might experiment with a DateTimeClass where you can have nil for some values ... and then you might have a check when is the "next Fr 13th" or "next time Dez 24th is a Monday", ;P
darkxploit has quit [Ping timeout: 272 seconds]
TieSoul has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
atmosx has quit [Ping timeout: 255 seconds]
atmosx has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
JoshGlzBrk has joined #ruby
bunzz has joined #ruby
mikecmpbll has joined #ruby
x1337807x has joined #ruby
craigbowen3 has quit [Ping timeout: 272 seconds]
heftig has quit [Ping timeout: 272 seconds]
<shevy>
" Boost Python is used to bridge the C++ and Python code."
devdazed has quit [Ping timeout: 250 seconds]
<wasamasa>
Hanmac: you don't know of any other gems that might simplify this code significantly, do you?
<wasamasa>
Hanmac: like something offering me the option to traverse files in a directory or to find out whether a directory is empty
simonv3 has left #ruby [#ruby]
<Hanmac>
hm currently no ... but i have a bit fever now, so i might not found all things
arya_ has quit [Read error: Connection reset by peer]
<jamesfordummies>
this may be a somewhat stupid question - but although classes are "just objects", the ability to instantiate them and define methods for instances exists because they are "special" right?
<jamesfordummies>
special according to the interpreter
<jamesfordummies>
ari-_-e, jhass ^
<jhass>
jamesfordummies: they have a few features you can't reimplement, yeah
<jhass>
such as .allocate and holding methods
feloneousmonk is now known as tarcwynne
<jamesfordummies>
jhass: and because you can't reimplement allocate, you can't reimplement instantiation
<jamesfordummies>
?
yfeldblum has joined #ruby
<jhass>
yeah
<jamesfordummies>
mmm
<ari-_-e>
you can override new though
<jamesfordummies>
right
<jamesfordummies>
i wonder if this knowledge will ever come in handy :P
<build-system>
it's pretty handy. you can use it to cache instances.
TieSoul_ has quit [Read error: Connection reset by peer]
Rollabunna has quit [Ping timeout: 255 seconds]
TieSoul has joined #ruby
<jamesfordummies>
by overriding new you mean
heftig has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<jamesfordummies>
indeed
xcv has joined #ruby
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
<build-system>
also, note that module doesn't implement new.
Pharaoh2 has quit [Read error: Connection reset by peer]
pigram86 has left #ruby [#ruby]
<arup_r>
Is there any difference between class A::B ; #code ;end and class A ; class B #code; end ; end ?
JuanS has quit []
Pharaoh2 has joined #ruby
Pharaoh2 has quit [Read error: Connection reset by peer]
<pipework>
arup_r: You tell me, chum.
TieSoul has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
Wolland has joined #ruby
nateberkopec has joined #ruby
<arup_r>
means ?
ericp4 has joined #ruby
<pipework>
arup_r: yes
Pharaoh2 has quit [Read error: Connection reset by peer]
<arup_r>
The main question that I forgot to ask is
InfraRuby has left #ruby [#ruby]
<centrx>
arup_r, It references/defines the same object, but within A::B::C you can't reference B::X
<centrx>
arup_r, Without using the full name A::B::X
Pharaoh2 has joined #ruby
<build-system>
why is it horrible, benzrf?
<arup_r>
Which one to use when ? What's the correct situation for what ?
<crome>
arup_r: not much but there is a slight difference. in the first case A needs to exist, it can be a module or a class. in the second case A is always a class but you won't be able to reference other classess nested under A unless you use their full name
<pipework>
centrx: It also isn't the same at all, in terms of constants.
<centrx>
that print statement is far to the right, tldr
andriusfm has quit [Quit: Leaving]
<shevy>
unfortunately that new page is also slower than the old one :(
HiMyNameIs has joined #ruby
<HiMyNameIs>
sup
<arup_r>
shevy: Now I understood
<arup_r>
that blog code
tectonic has joined #ruby
<HiMyNameIs>
slime shay here. what language you all using?
<centrx>
rubby
<HiMyNameIs>
no you should be using javascript. it is cross platform
<KLVTZ>
So save-file can save input or output, but can it append results the same way i see it in pry?
<centrx>
rubby is cross platform
<KLVTZ>
like 100% mirror of pry input and output?
<HiMyNameIs>
rubby not cross deplloyable holmes. Cross platorm is in your dreams without deployment.
<HiMyNameIs>
gotta have to install a bunch of sheet before ruby will run. Javascript good 2 go. know wat i'm sayin?
<shevy>
HiMyNameIs ruby works on windows
<HiMyNameIs>
oh no you didnt
decoponio has quit [Quit: Leaving...]
timonv_ has joined #ruby
<HiMyNameIs>
oh no you didnt say window
b__ has quit [Ping timeout: 240 seconds]
<arup_r>
I have class A:class B;end end . Now can I say, class A::B ; end is I am reopening the existing class A::B ? Today I am bit confused in Ruby.. I don't know why
<shevy>
you wrote cross platform HiMyNameIs
postmodern has joined #ruby
<shevy>
arup_r you can test it
<shevy>
>> class A; class B; end; end; class A::B; FOO = 'bar'; end; A::B.constants
<pipework>
Perhaps python, it's a good language for beginners to learn.
<shevy>
arup_r you learn stuff that is not important
<apeiros>
oooh
<Xeago>
easier than inspecting after their javascript runs :)
<Xeago>
apeiros: hai :)
<apeiros>
is this what I think it is?
<Xeago>
it needs some modifications on osx to open vlc properly
<apeiros>
a "make my live with twitch a *lot* easier" bash script?
<Xeago>
yea
robscormack has quit [Quit: This computer has gone to sleep]
<Xeago>
it isn't what I'd want
einarj has joined #ruby
<Xeago>
I'd prefer something more interactive to select
<pipework>
_lazarevsky_: As a hint, ruby's 1.9 hash syntax {lol: 'wat'} is for when your keys are symbols. If they are anything else, use hashrockets {'hi' => 'wat'}
<Xeago>
it's a bit innocuous --game foo, ^w^w, type name
eyeamaye has quit [Quit: Leaving.]
<arup_r>
shevy I didn't get you :-(
<shevy>
arup_r the code above
<shevy>
<arup_r> class FreightOffer::Rail < FreightOffer
<shevy>
you focus on the wrong things
<arup_r>
Humm..
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
georgelappies has quit [Ping timeout: 246 seconds]
<pipework>
arup_r: What are you using to learn ruby?
<arup_r>
Actually I was reading the blog.. but the code suddenly looks odd to me
<arup_r>
My daily food.
jmbrown412 has quit [Remote host closed the connection]
<pipework>
You're probably using something that sucks for teaching ruby.
<arup_r>
pipework: I earn money to carry my family using Ruby
jmbrown412 has joined #ruby
<shevy>
arup_r go write more ruby code yourself
<arup_r>
But yes.. My coworker are not helpful.. :-(
<shevy>
then you don't have to worry about other people's awful code
<arup_r>
shevy doing so..
vsoftoiletpaper has quit []
britneywright has joined #ruby
vsoftoiletpaper has joined #ruby
<arup_r>
started working in a Gem .. with one people..
<pipework>
arup_r: You should use better resources to learn ruby.
<arup_r>
He is very helpful
jkline has joined #ruby
robbyoconnor has quit [Excess Flood]
jkline has quit [Client Quit]
skysploit has quit [Remote host closed the connection]
<arup_r>
pipework: Give me such resource links
robbyoconnor has joined #ruby
vsoftoiletpaper has quit [Read error: Connection reset by peer]
skysploit has joined #ruby
vsoftoil_ has joined #ruby
sfate has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
<pipework>
arup_r: I suggest reading only the first half of 'metaprogramming ruby', and then having the ruby pickaxe on hand for reference. After that, get 'The well-grounded rubyist'.
britneywright has quit [Client Quit]
<pipework>
When you've finished those, there's more.
darkness has joined #ruby
benlieb has joined #ruby
darkness is now known as Guest81558
Guest81558 has quit [Max SendQ exceeded]
hellangel7 has quit [Ping timeout: 272 seconds]
<arup_r>
'The well-grounded rubyist'. My first book
<shevy>
arup_r did you publish the gem yet
jmbrown4_ has joined #ruby
jmbrown412 has quit [Read error: Connection reset by peer]
<arup_r>
I learned from there
<arup_r>
shevy: working on an existing gem.. Just started
anaeem1 has joined #ruby
<arup_r>
I will add some new features there and mostly re-factoring
<CuriousMind>
Note: I am new to programming/ruby programming so it would be nice to give me some notes/tips. Thank You.
krisquigley has joined #ruby
<jhass>
The error means somewhere you add a number to nil
krisquigley has quit [Remote host closed the connection]
<CuriousMind>
jhass: Please explain more.
krisquigley has joined #ruby
<CuriousMind>
I added a number to nothing?
<canton7>
is line 171 in the pastie the same as line 171 in the original file?
<jhass>
yes
<canton7>
line 170, rather
<CuriousMind>
Hmmm, I don't think so canton7, I took a portion out of the game.
<canton7>
then the error message can't really help us ;)
<CuriousMind>
That is because the rest of the code was irrelevant methods, etc.
Bumptious has joined #ruby
<CuriousMind>
No but it's that line.
<CuriousMind>
I'm sure, I tested it.
<pipework>
CuriousMind: If you won't share code, don't ask us to help fix it :)
<canton7>
you should really be trying to cut things out until you've isolated a small bit of code which reproduces the problem, on its own. then you can send us that, if the problem doesn't become obvious ;)
<canton7>
CuriousMind, "No but it's that line" <-- which line?
<CuriousMind>
I did share it! >:((
<jhass>
CuriousMind: so, @decks is an array of two element arrays, right?
<jhass>
*@deck
<CuriousMind>
canton7: The line the error is on right? It's 170, is that what you mean? I'm a bit confused.
Bumptious has quit [Remote host closed the connection]
<CuriousMind>
jhass: Yes
<CuriousMind>
jhass: Yes sir.
<canton7>
CuriousMind, I asked if line 170 in the pastie was line 170 in your actual file. you said no. so I'm asking which line in the pastie line 170 in the file actually is
Grantlyk has quit [Ping timeout: 245 seconds]
<jhass>
CuriousMind: so dealtCard on 162 is a two element array, right?
<canton7>
"
<canton7>
test123.rb:170: in '+': nil can't be coerced into Fixnum (TypeError)"
<canton7>
so the problem occurs in test123.rb line 170
<CuriousMind>
canton7: I don't think that matters because I took a section of code from my original source code. Ran it in the terminal to make sure I would get the error again and it's there.
lkba has joined #ruby
babykosh has joined #ruby
<canton7>
CuriousMind, ok, so line 170 in the pastie is the same line 170 that the error refers to?
mrommelf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
CuriousMind: or maybe a three element array since you push stuff onto it
<CuriousMind>
jhass: dealtCard could be either a 3 element array or a 4 element array.
axsuul has quit [Read error: Connection reset by peer]
<CuriousMind>
canton7: yes sir, yes.
<CuriousMind>
jhass: Correct again.
axsuul has joined #ruby
pdtpatrick_ has joined #ruby
<CuriousMind>
jhass: dealtCard could be either a three element array or a four element array.
<CuriousMind>
It could be four elements because for example ["Ace", "Spades", 1, 11]
pdtpatrick_ has quit [Client Quit]
<CuriousMind>
It could be three elements for example: ["6", "Hearts", 6]
Grantlyk has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
so, either dealtCard is not what you think it is on line 170 or @cpuOpponenetPoints isn't
<CuriousMind>
The last element or the last two elements in the dealtCard array are values I use to add to @userPoints.
<jhass>
print both using the `p` method to find out
ptrrr has quit [Quit: ptrrr]
<jhass>
btw. most ruby people use underscore_case for variable names
<CuriousMind>
Which array? @deck is a dimensional array. dealtCard is a element from that dimensional array @deck.
<jhass>
(which is at index 4, the fifth element)
<jhass>
you're calling delete on the array in dealtCard, so it can only be that array
malcolmva has joined #ruby
<CuriousMind>
jhass: Just trying to understand.
<CuriousMind>
jhass: Hm, continue please.
<jhass>
I thought I said what there's to say. What still bothers you?
<CuriousMind>
jhass: Give me a second please/
chipotle has quit [Quit: cya]
<CuriousMind>
jhass: So this is my goal.
<CuriousMind>
jhass: I am going to try to figure out if I am trying to add a nil object to @userPoints or if whatever element in the array I want to delete doesn't exist.
<CuriousMind>
jhass: I'm sure you explained to me what I should do but I am a little confuse and I wouldn't want you to repeat yourself so..
<jhass>
focus on the line you get the error on
<CuriousMind>
jhass: I am going to try to aim at delete, see what's up with that.
<CuriousMind>
jhass: Right, right.
<jhass>
what variables are involved there?
msmith has joined #ruby
<CuriousMind>
jhass: The variable names with what kind of variable it is?
<CuriousMind>
jhass: Only what type of variables?
InfraRuby has joined #ruby
<jhass>
I'm saying you should focus on the variables/objects that are involved
<jhass>
I don't see @userPoints on line 170
basiclaser has quit [Excess Flood]
tewlz has joined #ruby
sethen has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
codecop has quit [Quit: Išeinu]
<CuriousMind>
jhass: 146-179, those are the lines for CPU so it could get it's own two cards.
<CuriousMind>
jhass: Does that make sense?
maletor has joined #ruby
<CuriousMind>
jhass: Lines 146 to 179, the computer gets two cards so you won't see @userPoints.
<CuriousMind>
jhass: Hey I have to go iron shirts for work tomorrow but feel free to send me messages in the channel still.
<jhass>
then why do you say things like "I am going to try to figure out if I am trying to add a nil object to @userPoints"
InfraRuby has left #ruby [#ruby]
<CuriousMind>
jhass: I will try to reply as soon as I am done.
codebrah has joined #ruby
<CuriousMind>
jhass: Sorry I meant CPU.
basiclaser has joined #ruby
InfraRuby has joined #ruby
<CuriousMind>
jhass: Yeah I was just confused, that's why I said give me a second. I need to look over my code and stuff.
<jhass>
CuriousMind: I could figure out the problem in less time than we spent here, it's not about spoonfeeding you the solution
<CuriousMind>
jhass: True.
<jhass>
I'm trying to teach you how to find out yourself
<CuriousMind>
jhass: Yeah I suck at problem solving, I tend to come to others for help.
Aristata has joined #ruby
<jhass>
programming is nothing but problem solving
<CuriousMind>
jhass: jhass: Gotta go, sorry. But thank you for your help, I will try to respond in the channel again when I am done.
<CuriousMind>
jhass: I have to iron shirts for work, thank you for the help.
<jhass>
as it gets complex writing code is less than half the work, making it work is the real work
nateberkopec has quit [Ping timeout: 240 seconds]
olivier_bK has quit [Ping timeout: 260 seconds]
<Aristata>
Hey guys, I am trying to build a system where users can message other users in different scenarios, like person messages, or a message with a resource attached to it like a meeting request. Anyone know of a place to research good methods? I have a system in place I built but I am looking to become more flexible. While I have some good ideas I would like to see if there is something that has already be implemented that might offer me some good ideas.
gregf has joined #ruby
Takle has quit [Remote host closed the connection]
Wolland has joined #ruby
spider-mario has quit [Remote host closed the connection]
chipotle has joined #ruby
eyeamaye1 has joined #ruby
Atrumx has joined #ruby
eyeamaye1 has quit [Client Quit]
Wolland has quit [Ping timeout: 272 seconds]
eyeamaye1 has joined #ruby
wchun has quit [Ping timeout: 250 seconds]
Fezzler has joined #ruby
mary5030 has joined #ruby
nateberkopec has joined #ruby
craigbowen3 has quit [Ping timeout: 244 seconds]
Grantlyk has quit [Ping timeout: 260 seconds]
codebrah has quit [Quit: Computer has gone to sleep.]
msmith has quit [Remote host closed the connection]
babykosh has quit [Quit: babykosh]
nateberkopec has quit [Ping timeout: 240 seconds]
craigp has quit [Remote host closed the connection]
InfraRuby has left #ruby [#ruby]
philcrissman has joined #ruby
britneywright has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Zebroid has quit [Remote host closed the connection]
weems|nix has quit [Remote host closed the connection]
philcrissman has quit [Ping timeout: 255 seconds]
Zebroid has joined #ruby
claymore has quit [Quit: Leaving]
skysploit has joined #ruby
froggy_ has joined #ruby
Mattx has quit [Ping timeout: 272 seconds]
bricker`LA has quit [Ping timeout: 272 seconds]
codebrah has joined #ruby
craigp has joined #ruby
Zebroid has quit [Ping timeout: 246 seconds]
craigp has quit [Remote host closed the connection]
froggy__ has quit [Ping timeout: 240 seconds]
ded has joined #ruby
devdazed has quit [Ping timeout: 250 seconds]
Atttwww has joined #ruby
kaspergrubbe_ has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
bmurt has joined #ruby
eka has joined #ruby
Zebroid has joined #ruby
devdazed has joined #ruby
Tricon has joined #ruby
Tricon has quit [Client Quit]
<CuriousMind>
Aristata: Sounds great, I would help but I am a beginner programmer.
<CuriousMind>
Aristata: Back to ironing my shirts!
<wasamasa>
Aristata: well, since lots of things abuse xmpp...
<wasamasa>
Aristata: you could read up on it and systems using it
<wasamasa>
Aristata: such as whatsapp or facebook chat or jabber
motto has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m8 has quit [Ping timeout: 240 seconds]
iamayam has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest81845 has quit [Quit: No Ping reply in 180 seconds.]
Bumptious has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
benzrf|offline has quit [Ping timeout: 245 seconds]
Fezzler has quit [Quit: Leaving]
iamayam has joined #ruby
banister has joined #ruby
Grantlyk has joined #ruby
Mattx has joined #ruby
Mattx has quit [Changing host]
Mattx has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n1lo has joined #ruby
devdazed has quit [Ping timeout: 260 seconds]
starkhalo has joined #ruby
sptq has quit [Ping timeout: 245 seconds]
<godd2>
I finally got my sound gem to produce arbitrary frequencies on both windows and linux. https://github.com/RSMP/sound
<codebrah>
does it work on osx
einarj has quit [Remote host closed the connection]
SilkFox has quit [Read error: Connection reset by peer]
motto has quit [Quit: Sto andando via]
Neomex has quit [Quit: Leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
IcyDragon is now known as IceDragon
<godd2>
Not yet. I have to code ffi to use native libraries on each platform, and I haven't even looked at the osx ones
<godd2>
But it is in store for the future
sptq has joined #ruby
banister has joined #ruby
SilkFox has joined #ruby
tectonic has quit []
dc_ has quit [Remote host closed the connection]
devdazed has joined #ruby
<codebrah>
cool :)
djbkd has quit [Remote host closed the connection]
<wasamasa>
godd2: interesting, what technologies does it leverage on windows and linux?
SchweetPapa has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
Mattx has left #ruby ["Leaving"]
dc_ has joined #ruby
<godd2>
in windows it uses the waveOut multimedia functions and on linux I'm using the ALSA functions
SchweetPapa has joined #ruby
<wasamasa>
sounds like it requires the pulseaudio-alsa compatibility packages then
<wasamasa>
I'll give it a try to figure out whether that's the case
frankle has joined #ruby
asmodchan has quit [Quit: Leaving]
<godd2>
alright sounds awesome. Yea I'll need to know what this doesn't work on so that either a) I can inform the developer what they need or b) code for some other more ubiquitous library
ded has quit [Remote host closed the connection]
<wasamasa>
works here, nice
<wasamasa>
which doesn't prove it wouldn't work without that one, but still
<wasamasa>
it should do it on ubuntu and such out of the box then I guess
<godd2>
You might notice some minor clicking when the tone starts or finishes, and that has to do with the artifical pcm data Im sending the buffer
djbkd has joined #ruby
<wasamasa>
well, that's fine
<godd2>
In the future I'm going to clean that up
j416 has quit [Read error: Connection reset by peer]
j416_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]