<ddd>
kl: my description explains your initial question. thats the difference. what *I* don't get is how you would tell what self you were actually in. how one would find out which self self pointed to. (which object was now self)
<shevy>
simple - the different scopes he is in
<ddd>
self.id?
<shevy>
kl look: class Foo; def initialize; self; end; end
<ddd>
err self.object_id i meant
<shevy>
kl look: class Foo; self; def initialize; end; end
<shevy>
^^^ do you see the difference?
kiyote23 has quit [Remote host closed the connection]
<ddd>
self there would point at the current class Foo object? #I'm with kl on the confusion part
<shevy>
"Within instance methods self refers to the instance, within class methods it refers to the class, and it can always be used to distinguish from local variables."
bigmac has quit [Remote host closed the connection]
<ddd>
but if you hard code itm, then when the object changes, your going to always call on (say) the Foo class. but if the object is now a Bar class instance, you would still call Foo not Bar
<shevy>
self.class.hi would only work inside the class
<ddd>
doing @my_foo.class.hi was the only way I knew because self was set to point at @my_foo because @my_foo was explicitly having .class called on it
luriv_ has quit [Quit: Leaving]
hanjianwei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ddd>
oh wait a sec. i gotta read that User class again slow
speakingcode has quit [Ping timeout: 256 seconds]
majeure has joined #ruby
<shevy>
well you could do User.new 'john doe' too
<shevy>
but sometimes the name of a class can be enough information
<shevy>
CreateProjectSkeleton['hangman/']
<shevy>
CreateProjectSkeleton.new 'hangman/'
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
not a huge gain is it :)
<ddd>
no
<ddd>
still a tad bit hard to follow as i walk the chain of calls mentally.
ta_ has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
<ddd>
ohhhh. now I got it
<ddd>
i see what you did. the User.new(i) appeared superfluous. but i see what happened when I added in your hangman example as test data.
crueber has quit [Quit: Leaving.]
osvico has joined #ruby
crueber has joined #ruby
<Yzguy>
okay so
<Yzguy>
a hash in ruby is the same as a dictionary in python correct?
<Yzguy>
key value thing
<apeiros_>
depends - can any object be a key in python's dicts?
<Yzguy>
um...hm
<Yzguy>
not sure
<apeiros_>
the only requirement on a hash key in ruby is that it implements #hash and #eql? properly
<Yzguy>
hm
jamesaxl has joined #ruby
<apeiros_>
may well be similar in python. if that's the case, then yes, they are equivalents.
ta_ has quit [Ping timeout: 265 seconds]
dc_ has joined #ruby
djbkd has joined #ruby
<Yzguy>
I think they are at least in the context I'm using them
<jhass>
and even if it's not the case, ruby hashes certainly can fulfill all usecases of python dicts
<Yzguy>
{"name" => "bob johnson"} vs {'name': 'bob johnson'}
<shevy>
do I understand it correctly - google enforces a switch from openid2 to a google-specific software?
<ddd>
yes
djbkd has quit [Ping timeout: 244 seconds]
<ddd>
actually no. OpenID2 defines a Connect object. which is marked as a 'relying party' if I understand correctly. they're still using OpenID2 but a specific feature of that protocol in their Google+ SignIn
<Yzguy>
I don't think I can pass a hash to an erb template, and use the keys in that template
<parabolize>
ruby hashes have order, python dictionaries don't.
<ddd>
rather than a generic OpenID2 login connection
tyfighter has joined #ruby
<ddd>
shevy: ity looks like a move from a generic to a specific within the openid2
vin` has quit [Remote host closed the connection]
<shevy>
hmm
<shevy>
Yzguy well just access the key in question there
<shevy>
_ = hash.delete :key_goes_here; Erb.new _
Takle_ has quit [Remote host closed the connection]
<shevy>
or however else you use erb... I forgot how you use erb hehe
tyfighter has quit [Client Quit]
<parabolize>
Yzguy: if you use symbols you can do something like {name: 'bob johnson'}
Takle has joined #ruby
crueber has quit [Quit: Leaving.]
vvivv has quit [Quit: Leaving]
athan has quit [Ping timeout: 244 seconds]
<Yzguy>
Well what I'm trying to do is read in a CSV file, the first row has the hash keys, and everything below is the values using those keys
<apeiros_>
Yzguy: I thought jhass already told you that the csv stdlib does that
<apeiros_>
?
<Yzguy>
yes with headers
<Yzguy>
so I got that part
ta_ has joined #ruby
jenrzzz has joined #ruby
<Yzguy>
now trying to render the erb template, pass in that hash, then refer to the keys in the erb template
Takle has quit [Ping timeout: 265 seconds]
<apeiros_>
I think ERB still does not provide a direct way to do that
<Yzguy>
yeah I didn't think so
<Yzguy>
oh well, I'll figure something out
<Yzguy>
thanks
<apeiros_>
the easy way: create an OpenStruct from the hash, evaluate the erb in the context of that
djbkd has joined #ruby
<apeiros_>
Yzguy: what ruby version do you target?
<Yzguy>
uh whatever is on my mac, 2.0.0 i think
<jhass>
I'd say the easy way is just passing the hash as a single variable and doing <%= row['foo'] %>
<Yzguy>
I'm just learning ruby so
adriancb has quit [Remote host closed the connection]
<Cat_1>
ruby --version
<Cat_1>
You can use ruby code in the ERB template
<Cat_1>
just use <% instead of <%=
<Cat_1>
and you can break it up in the view
ta_ has quit [Ping timeout: 240 seconds]
<Yzguy>
jhass that worked
sevvie has quit [Read error: Connection reset by peer]
jack_rabbit has joined #ruby
klmlfl has quit [Remote host closed the connection]
<shevy>
I used it to play warcraft 3 back in about 2006 on linux
<thefran>
linux users are extremely aggressive proselytizers
Techguy305 has quit [Read error: Connection reset by peer]
<thefran>
but i need to use wine
<thefran>
to be able to run the software that I actually require
<shevy>
yeah because you need to call the mapping
<thefran>
and/or use FOSS solutions
<shevy>
who said anything about FOSS?
<thefran>
which are so very often just shitty discount versions of software I could be using
<thefran>
shevy, cult of linux and FOSS are siamese twins.
<shevy>
you were the first to bring in FOSS
<shevy>
hey wait
<shevy>
why do you use ruby
<shevy>
how much do you pay for it
<thefran>
To run jekyll.
<shevy>
but you don't pay for it
<shevy>
ruby must be shit
<thefran>
Then how about you fucking pay for it
sevvie has joined #ruby
<shevy>
was it not you to bring the argument of shitty discount software?
<thefran>
What an idiotic, idiotic argument.
<thefran>
You brought the argument of shitty discount software
<thefran>
desktop linux
<apeiros_>
you can easily remove the worst part of the argument
Nameo0 has quit [Ping timeout: 255 seconds]
<shevy>
I would not use that propaganda term shitty discount software
<thefran>
you're not opposed to propaganda
<thefran>
just to terms that offend your feelings
<shevy>
every non-technical argument is propaganda
<shevy>
offend my feelings?
<shevy>
now you insinuate that you know my feelings
<thefran>
i will ignore your further arguments until you
Yzguy has joined #ruby
<apeiros_>
cute
<thefran>
without bringing up reverse engineering windows API when i could just be running windoes instead
<thefran>
will name me linux alternatives for software i need to use in order to be able to eat:
<thefran>
coreldraw, photoshop, MS Office and autoCAD.
<shevy>
thefran so let's focus on the technical argument. You wrote before that jekyll does not run. Can you show the specific error with regards to jekyll?
<apeiros_>
"please do my research for me". na, stick to MS. it's fine.
<thefran>
What research?
<thefran>
You're trying to induce me into a cult.
<apeiros_>
"name me alternatives for …"
<apeiros_>
thefran: you mean, another cult than your current cult?
<shevy>
well there is one point that I agree
<thefran>
How do you expect me to start worship your gods if you don't even make any arguments?
<thefran>
What cult?
<shevy>
ruby should not be available for people like thefran :>
<thefran>
Cult of being able to eat food?
<shevy>
so linux users do not eat?
<apeiros_>
thefran: you suggest people who use linux don't eat food?
msmith_ has joined #ruby
athan has quit [Ping timeout: 265 seconds]
<shevy>
wow... they became cyborgs
<apeiros_>
thefran: that's probably the most idiotic argument I've heard :)
<thefran>
I suggest that I need to be able to use professional software
<thefran>
which linux does not have
<thefran>
in order to be able to eat food
<apeiros_>
ok, you are an idiot.
<shevy>
thefran what about mac osx?
ponga has joined #ruby
<shevy>
I just want to know whether they have to starve as well
<thefran>
I've never used mac os x because its native hardware is overpriceds
<ponga>
do you ever sleep shevy
<thefran>
and it is not officially supported on any other hardware
<thefran>
and i don't see any reasons as to why i would ever switch to it
<shevy>
ponga I ate a bit, then got tired and wanted to make a short nap... but I slept for about 2 hours or so :(
<ponga>
i want a laptop that could replace macbookair
<ponga>
the way macbook represents white color on its led screen kill my ey
<thefran>
apeiros_, did a cultist just call me an idiot?
<ponga>
eye
boulder-ruby has joined #ruby
<brocktimus>
ponga: Lenovo X1 Carbon maybe?
atmosx_ has joined #ruby
<apeiros_>
thefran: anyway, pro-tip: offending the majority of the community you want help from is usually detrimental to your objective.
<apeiros_>
thefran: also, cut it out now. this has gone on long enough. stick to your question.
<thefran>
Hmm.
<thefran>
Let's call me an idiot and then complain about being offended.
<thefran>
More irony than the san fran bridge.
<apeiros_>
thefran: I mean it when I say cut it out.
mrmargolis has quit [Remote host closed the connection]
<thefran>
As long as you apologize for insults and proselytizing, sure?
thefran has left #ruby ["Leaving"]
boulder-ruby has quit [Client Quit]
haxrr has joined #ruby
* apeiros_
sobs
<apeiros_>
idiots never die out.
<Cat_1>
with great power, comes great responsibility
<Cat_1>
you have done well
<SHyx0rmZ>
I don't think so, but let's leave it at that
boulder-ruby has joined #ruby
atmosx has quit [Ping timeout: 240 seconds]
<apeiros_>
we could have played the game who started what. that's pointless.
<havenwood>
ahh, was just about to bust out with: I’d just like to interject for a moment. What you’re refering to as Linux, is in fact, GNU/Linux...
<SHyx0rmZ>
hehe
<apeiros_>
and yes, somebody who claims in all seriousness that linux "has no professional software" is by all means an idiot.
<apeiros_>
disclaimer: I don't use linux on the desktop, and I still know.
Pupeno has quit [Quit: Leaving...]
skj3gg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ponga>
osx linux windows ... the meaningless OS fight again?
* ponga
sighs
binfalse has joined #ruby
LouisRoR has quit [Ping timeout: 244 seconds]
<SHyx0rmZ>
there's always someone who wants to fight
boulder-ruby has quit [Read error: Connection reset by peer]
<brocktimus>
vim v emacs anyone :-P ?
<ponga>
sublime :)
<SHyx0rmZ>
pointless
<SHyx0rmZ>
notepad cleary is best
<apeiros_>
I still have the popcorn from before. so please go ahead…
<ponga>
i wonder if that's more sensible than ruby vs python
jenrzzz has quit [Ping timeout: 265 seconds]
<SHyx0rmZ>
I think the Windows vs. X debate is special though
kiyote23 has joined #ruby
mrmargolis has joined #ruby
<SHyx0rmZ>
very often people will ask you why are even using Windows
<SHyx0rmZ>
and just leave it at that
<SHyx0rmZ>
I may be stupid, but I really wonder why
amclain has quit [Quit: Leaving]
<brocktimus>
If youre stuck with autocad there aren't really alternatives though. All the high end CAD stuff is super proprietary and the alternatives are very average to poor. Moving between software on windows is difficult let alone to OS :P.
skj3gg has joined #ruby
<shevy>
brocktimus in vim vs. emacs only one thing is sure - there be two losers
<waxjar>
sometimes it's valid though, a lot of stuff just doesn't work too well on windows
<ponga>
SHyx0rmZ: but im very to be using OSX cos i love ruby
<ponga>
i'd never been able to package manage in windows
<ponga>
and version
jaequery has joined #ruby
<ponga>
shevy what's the point of fighting over text editor anyway? i love my sublime
<ponga>
they all do the same stuff right
<shevy>
ponga yeah. all power to bluefish 1.0.7!
<shevy>
nah
<brocktimus>
ponga: was just making a joke not actually looking to start a fight :)
<shevy>
I can work much faster in bluefish than in vim for instance
<ponga>
brocktimus: but some people do fight over that?
jaequery has quit [Client Quit]
kirun has quit [Remote host closed the connection]
<SHyx0rmZ>
brocktimus, yes, I kind of have the same problem developing games
Yzguy has quit [Quit: I'm sleeping, go away.]
pengin has joined #ruby
<SHyx0rmZ>
currently I'm using a Linux VM on Windows, which seems to be as good as it's going to get for the moment
<ponga>
im interested to hear the story SHyx0rmZ
<ponga>
SHyx0rmZ: don't you normally do the opposite
<ponga>
Win VM on linux
<SHyx0rmZ>
and I'm running a GCC/Ruby Toolchain on my Windows
<SHyx0rmZ>
yes, but from my experience performance detoriates too much
<ponga>
ok
<SHyx0rmZ>
I'd also prefer it this way, but some of the Windows stuff is just plain slow in VMs
<SHyx0rmZ>
Linux does much better
yfeldblu_ has quit [Quit: Leaving...]
<ponga>
ah hah
<ponga>
i currently run no vm
<ponga>
on my macbook
<brocktimus>
software dev against sql server => tears + VM
<brocktimus>
luckily only some projects
DonOtreply has joined #ruby
<SHyx0rmZ>
if I'm lucky I'll be able to move away from Windows in the next two years
yousuckidont has quit [Remote host closed the connection]
<shevy>
hehe
<ponga>
i never liked macvim anyway im good with sublime
<ponga>
macvim looked ugly to me
banister has joined #ruby
jottr_ has joined #ruby
<SHyx0rmZ>
Funnily enough I used sublime almost exclusively a year ago
<SHyx0rmZ>
now I do most of my work in some IDE from Jetbrains
<SHyx0rmZ>
still use vim for remote stuff, though
<SHyx0rmZ>
and sublime for projects where I went a little too crazy with the Rakefiles
tectonic has joined #ruby
<apeiros_>
rubymine?
<shevy>
ponga I felt the same way with gvim, the ironic thing was that vim was better and faster than gvim
<SHyx0rmZ>
for Ruby, yes
<ponga>
shevy: i don't even utilise all the fancy stuffs on sublime anyway, i only use highlight syntax
<ponga>
:P
<shevy>
yeah very similar how I use bluefish
pengin has quit [Remote host closed the connection]
<shevy>
I disabled most features when that was possible
pengin has joined #ruby
jottr_ has quit [Ping timeout: 245 seconds]
deconfigured has joined #ruby
arescorpio has joined #ruby
<brocktimus>
SHyx0rmZ: I've found it very interesting how easy gaming itself has become on linux in past 24 months
<SHyx0rmZ>
yes, and I'm very happy about that
jaequery has joined #ruby
SparkMasterTape has joined #ruby
pengin has quit [Ping timeout: 256 seconds]
jaequery has quit [Client Quit]
<ponga>
is it only me think macbook's screen hurt eyes , especially way they show 'white color'
<ponga>
too much glare
sinkensabe has joined #ruby
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<shevy>
ponga!
<shevy>
on what ruby project are you working right now
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
sinkensabe has quit [Ping timeout: 264 seconds]
<shevy>
hmm... on *which. I am trying to not start any new ones but instead finish and polish existing ones, finish all incomplete rewrites, then dive into C. that was my todo at new year's eve
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
adriancb has joined #ruby
dc_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
KC9YDN-2 has joined #ruby
KC9YDN-2 has quit [Read error: Connection reset by peer]
<godd2>
I thought King Dedede was a bird of some sort
<ddd>
fly like an eagle
yfeldblu_ has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
lw has joined #ruby
<mices>
on freebsd i get 'git command not found' after install through gem install git
TheTopBloke has joined #ruby
<TheTopBloke>
Ola
<TheTopBloke>
Get a question about textmate/rmate anyone anyone?
<ddd>
git gem just lets you interact with git via ruby
<mices>
ty
<ddd>
\you still have to intall git from ports or via pkg
<mices>
ty
<godd2>
mices git is its own program. youd have to do something like yum install git or apt-get install git
<mices>
ty
yfeldblum has quit [Ping timeout: 255 seconds]
Channel6 has joined #ruby
ta_ has joined #ruby
lw has quit [Client Quit]
haxrr has quit [Ping timeout: 240 seconds]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
good old freebsd
banister is now known as banisterfiend
Aswebb_ has joined #ruby
<shevy>
what programming language do they use for ports?
eka has joined #ruby
Aswebb_ has quit [Ping timeout: 250 seconds]
diegoviola has joined #ruby
bronson has joined #ruby
xenomorph is now known as {xenomorph}
kiyote23 has joined #ruby
kiyote23 has quit [Remote host closed the connection]
ddd has quit [Ping timeout: 240 seconds]
msmith_ has quit []
kiyote23 has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
gsd has quit [Read error: Connection reset by peer]
gsd has joined #ruby
haxrr has joined #ruby
dkb20k has quit [Remote host closed the connection]
dkb20k has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
newtoruby has joined #ruby
kyb3r_ has joined #ruby
<newtoruby>
What resource would you guys recommend for learning Ruby for a beginner? I was going to use Codecademy but their Ruby section won't load for me for some reason.
kyb3r_ has quit [Client Quit]
<ponga>
i used codecademy :P
<ponga>
if that doesn't work ...
<ponga>
hm
kyb3r_ has joined #ruby
<ponga>
newtoruby: are you a skilled programmer who comes to learn a scripting language
Takle has joined #ruby
<newtoruby>
No, I am very new to programming in general,
<shevy>
newtoruby did you work through "learn to program" yet?
<ponga>
im very sorry to say this but how about trying python tutorial too?
<ponga>
then choose what you prefer
<ponga>
fyi, i chose ruby
* ponga
is proud
<newtoruby>
shevy: No, what is that?
<shevy>
newtoruby I would first recommend you read this old article http://www.artima.com/intv/ruby.html - it is old, but it will explain you the philosophy of ruby, which was the reason why I picked ruby over python
mrdtt has joined #ruby
<shevy>
newtoruby afterwards work through https://pine.fm/LearnToProgram/chap_01.html - it is simple, perhaps too easy for you, but you will understand "blocks" and "yield" afterwards
<newtoruby>
ponga: They are very similar, right? I've dabbled a little in both, but I feel like Ruby is a bit more fun and readable.
<ponga>
shevy: do you remember the url of the website which it looks like a book and you can learn basics via that website
<newtoruby>
shev
shuber_ has joined #ruby
<ponga>
where you can type in source code like codecademy.. can't remember..
<newtoruby>
shevy: tryruby.com?
<shevy>
newtoruby as third step, I would recommend a boring step, but it will be very useful for you lateron. I would take perhaps 1 hour to study the ruby stdlib. start with class String, then class Array, class Hash. Just read the description of each method once (you can skip the other classes, String Array and Hash are the most important ones)
<shevy>
I don't know tryruby
<ponga>
newtoruby: altho im very much of a ruby guy, i'd say python is more readable and accessable to beginner
<shevy>
I would recommend you get ruby running locally, then start "irb"
<ponga>
ruby has too many fancy stuffs that make code terrifying to beginners
<shevy>
newtoruby when you finished step 3, step 4 is the most important one - you must write ruby code on your own, does not matter what or where. solve any given problem
<ponga>
ah hah this stuff
<shevy>
that can be
Takle has quit [Ping timeout: 245 seconds]
<shevy>
ruby be quite complex
<ponga>
yes newtoruby try ruby.com is ok
<newtoruby>
shevy: And how do I go about choosing problems easy enough to solve?
<shevy>
so you should try to focus on only few things first newtoruby
<newtoruby>
shevy: For a beginner*
<ponga>
recommend him tryruby.com shevy
<ponga>
i'd say that's good enough for him now
<shevy>
newtoruby I am not sure, that depends on what you want to do. for instance a game perhaps, an IRC bot, or some code that helps you manage your computer or files
<shevy>
ponga have you finally started a project :D
<newtoruby>
ponga: Alright, thank you guys a lot. Hopefully I'll get decent enough to start my own project within a month or so!
<ponga>
shevy: i started the project a long time ago, just not written down in ruby yet :(
<newtoruby>
Well actually I don't think it'd take that long..
Menorah has quit [Quit: Leaving]
<ponga>
im still on this linguistic theory step
tyfighter has joined #ruby
teddyp1cker has joined #ruby
<shevy>
newtoruby once you start to "think in ruby", it will become very easy and natural. ruby can be terse but beautiful, like poetry
<ponga>
actual code work would not be that advanced task anyway
<blizzy>
anyone know any good gems for REST since httparty doesn't support https
Menorah has joined #ruby
<shevy>
newtoruby you have to find a style that suits you; code written by other people in ruby can often be strange, I think python has a simpler approach because it supports less ways, so code will often look more uniformly
<ponga>
and that is why i told to try out python too shevy
<newtoruby>
I once read somewhere that Ruby is like clay, and Python is like legos.
sevvie has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 240 seconds]
<shevy>
ruby is a lot like lego too
<shevy>
you build stuff into modules; you use modules to put onto your classes; you use classes to build larger software
jenrzzz has joined #ruby
<shevy>
perhaps ruby is like clay lego
<shevy>
you build your own lego bricks
<ponga>
newtoruby: i'd say ruby is like 'i don't give shit about what the law says, i do my way' and python is like 'i'd rather follow good uniform-ed society'
<shevy>
some people build huge bricks, other build small bricks
<shevy>
python enforces uniform legos
<shevy>
it's like a factory, and very fast at producing uniform legos
<shevy>
whereas ruby may even build round legos. or pink legos. or legos that can fly
<newtoruby>
shevy: ponga You guys both prefer Ruby?
<shevy>
I loved lego :)
<ponga>
well i prefer ruby over java..
<ponga>
but i'd say python is ok with me but still ruby is number 1 to me
<ponga>
but shevy would say anyone would prefer anything over java
<newtoruby>
I'm looking for something that will set me up for web development, which is why I'm leaning for Ruby (with Rails once I learn the basics)
<ponga>
i know him too well
teddyp1cker has quit [Ping timeout: 244 seconds]
<shevy>
newtoruby yeah, because of the philosophy and the syntax is malleable and beautiful; python has a few huge advantages though. You see 844 people here, give or take... python should have perhaps 1500 or so. that reflects total number of users and devs too, python has a lot more than ruby, also more official support in regards to bindings to GUI toolkits etc...
<newtoruby>
But I also want something that can make simple games like text adventures, pong, maybe a small rpg or something, but nothing 3d.
<ponga>
if you want to do web, ruby is just fine i guess?
<shevy>
if you find a good interview from guido, or about python, let me know too
<ponga>
his English is at top notch compared to general japanese public
<blizzy>
anyone know any good REST gems?
<shevy>
ponga hehe yeah
CustosLimen has joined #ruby
<shevy>
ponga he still thinks a lot in japanese when speaking in english though
<shevy>
you can notice because he builds the sentences in a different way than native english speakers
<ponga>
shevy: lying, he's just being humble
<ponga>
his word choices, semantics, syntax derive from English thingking
mices has left #ruby [#ruby]
<ponga>
and its big culture to be humble in east asia you know, due to confucianism
<ponga>
its more like he thinks in English, but Japanese steps in a way
<ponga>
:P
<shevy>
no I mean
<shevy>
the grammar structure
<Cat_1>
Blizzy to do what?
<shevy>
I don't know what it is but I assume japanese must build sentences differently than the english language does
<Cat_1>
If you want to interact with a REST service, I like rest_client
<blizzy>
thanks, Cat_1.
dc_ has quit [Remote host closed the connection]
<shevy>
like you append a "ka" to indicate a question in japanese... tabemasu-ka?
sinkensabe has quit [Ping timeout: 245 seconds]
<ponga>
shevy: japanese/korean are SOV than SVO, where subject is often abbreviated, no article(a an the), and has tons of (pretty much all of) mood particles
<ponga>
its too different
kiyote23 has quit [Remote host closed the connection]
<ponga>
English has no mood particles in syntax
dc_ has joined #ruby
<ponga>
korean/japanese have more than 10
ta_ has quit [Ping timeout: 256 seconds]
<shevy>
cool
<shevy>
mood particles :D
Spami has joined #ruby
<shevy>
"eat" [I am angry! / I am happy / I am sad / I don't like to eat]
haxrr has quit [Ping timeout: 255 seconds]
<ponga>
for example tabemasu is a formal version of taberu, and if you added -no and also made it to indicate question 'taberu-no?'
<ponga>
you are reemphasizing the target's action carry-out yet at the same time implying uncertainty of speaker's mood
<ponga>
that you can't do just by grammar in english
iamninja has quit [Quit: ZZZzzz…]
rbenv has joined #ruby
<ponga>
and also it is female form of speech
<ponga>
no wonder japanese/korean are too hard to learn
<newtoruby>
Wow, that interview was pretty entertaining.
<newtoruby>
I like the philosophy behind Ruby.
<ponga>
shevy: did you know that sarcasm often doesn't work in korean/japanese due to mood particles :P
<ponga>
cos just the syntax unveils too much of speaker's intention
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<shevy>
ponga dunno. all I know is that sarcasm in written text often does not work
<newtoruby>
If I had to pick one of the two right now, I'd choose Ruby over Python based on what I just read, but maybe I should read a Python interview as well before sticking to one.
<ponga>
English is much better at pissing others off via facebook message
<shevy>
ponga but in general, it seems as if asians are often significantly less sarcastic or cynical than e. g. europeans
haxrr has joined #ruby
<ponga>
shevy: sarcasm was never really accepted a form of humour in asia
<ponga>
that's why
mjuszczak has joined #ruby
rbenv has quit [Client Quit]
mjuszczak has quit [Max SendQ exceeded]
Spami has quit [Quit: This computer has gone to sleep]
zorak_ has quit [Ping timeout: 240 seconds]
<ponga>
newtoruby: you could try both tutorial and try to write what you want to achieve in both languages , it wouldn't take that longer than learning just one lang
<ponga>
i did this, and chose ruby over python
<newtoruby>
ponga: Good idea, I will just do that then. Off to learn Ruby! :D
<newtoruby>
Would anybody here be interested in tutoring me? Maybe once I learn the basics we can work on small projects together or something to improve my skills?
mjuszczak has joined #ruby
silkfox has quit [Ping timeout: 265 seconds]
<ponga>
newtoruby: lol i don't think people tutor someone here sir
<ponga>
its more like Q&A hall here
<ponga>
you off to learn yourself, and ask questions when stuck
haxrr has quit [Ping timeout: 240 seconds]
<newtoruby>
ponga: I did not mean here. Nevermind, I'll figure it out myself and with the help of this irc and stackoverflow.
<ponga>
good luck newtorb
<shevy>
yeah, stackoverflow has been amazing
kiyote23 has joined #ruby
newtoruby has quit [Quit: Page closed]
radic has quit [Ping timeout: 245 seconds]
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jtdowney has joined #ruby
radic has joined #ruby
ANYELI has joined #ruby
ANYELI has quit [Remote host closed the connection]
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
mjuszczak has quit [Ping timeout: 265 seconds]
braincrash has quit [Quit: bye bye]
bitcycle has joined #ruby
havenwood has quit [Remote host closed the connection]
mjuszczak has joined #ruby
lemur has quit [Ping timeout: 244 seconds]
deconfigured is now known as athan
braincrash has joined #ruby
kiyote23 has quit [Remote host closed the connection]
braincra- has joined #ruby
ponga has quit [Remote host closed the connection]
mrmargolis has quit [Remote host closed the connection]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
braincrash has quit [Ping timeout: 240 seconds]
lampd1 has quit [Remote host closed the connection]
lampd1 has joined #ruby
speakingcode has quit [Remote host closed the connection]
hmsimha has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
djbender is now known as sinthetix_bsd
kiyote23 has joined #ruby
sinthetix_bsd is now known as djbender
DonOtreply has quit [Quit: DonOtreply]
jottr_ has joined #ruby
bigmac has quit [Read error: Connection reset by peer]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
speakingcode has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
Techguy305 has joined #ruby
Channel6 has quit [Quit: Leaving]
pwnz0r has joined #ruby
lemur has joined #ruby
Channel6 has joined #ruby
charliesome has joined #ruby
freerobby has joined #ruby
kiyote23 has joined #ruby
dseitz has joined #ruby
fivetwentysix has joined #ruby
bitcycle has quit [Quit: WeeChat 1.0.1]
Ninjex is now known as Xnfu
teddyp1cker has joined #ruby
klmlfl has quit [Remote host closed the connection]
ziyadb has joined #ruby
kiyote23 has quit [Ping timeout: 245 seconds]
parduse has quit []
teddyp1cker has quit [Ping timeout: 245 seconds]
arup_r has quit [Quit: Leaving.]
DrCode has quit [Remote host closed the connection]
DrCode has joined #ruby
Hijiri has quit [Remote host closed the connection]
pwnz0r has quit [Remote host closed the connection]
pwnz0r has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby
lw has joined #ruby
sinkensabe has joined #ruby
lxsameer has joined #ruby
tus has quit []
fivetwentysix has quit [Quit: fivetwentysix]
pwnz0r has quit [Ping timeout: 240 seconds]
sinkensabe has quit [Ping timeout: 245 seconds]
sevvie has quit [Read error: Connection reset by peer]
towski has quit [Quit: goodbye friends I am gone]
Channel6 has quit [Quit: Leaving]
jack_rabbit has quit [Ping timeout: 240 seconds]
omosoj has joined #ruby
arescorpio has quit [Excess Flood]
mjuszczak has quit []
<omosoj>
how does having a 32 vs 64 bit system affect developing ruby/rails?
fivetwentysix has joined #ruby
sevvie has joined #ruby
lemur has quit [Read error: Connection reset by peer]
silkfox has joined #ruby
lemur has joined #ruby
towski_ has joined #ruby
shuber_ has quit [Remote host closed the connection]
<godd2>
omosoj Other than the fact that you can't address more than 4 gigs of ram? probably not a lot
DadoCe has quit [Remote host closed the connection]
Xnfu has quit [Changing host]
Xnfu has joined #ruby
w4pm has quit [Ping timeout: 245 seconds]
silkfox has quit [Ping timeout: 244 seconds]
crazydiamond has joined #ruby
iamninja has joined #ruby
<omosoj>
lol i just discovered that you can only access 4 gigs of ram a minute ago. i've been on a 32-bit system for a couple years now, and when i bought it i added ram up to 6 gigs.
tlarevo has quit [Remote host closed the connection]
bronson has joined #ruby
tlarevo has joined #ruby
<godd2>
omosoj yea the problem is that on a 32-bit cpu, you can only address 2^32 possible distinct bytes of ram
<SHyx0rmZ>
Technically, the 4GB-stuff is not entirely true
<shevy>
omosoj I don't think developing is much affected by that kind of speed
zorak8 has joined #ruby
<omosoj>
i need to learn more about how all this works on hardware
<shevy>
the longest time is thinking about what to write, how to organize it
<shevy>
and then lateron if you really need the speed because you have so many other people use the software
<godd2>
omosoj it is good to be educated on the hardware side of things, but generally not as important for making websites
fivetwentysix has quit [Quit: fivetwentysix]
<omosoj>
shevy, but i just cloned an app and tried to run it and it took a long time. everything was taking forever. and also a bunch of tests were failing. think i just didn't have enough power to run it
Takle has joined #ruby
<omosoj>
godd2, the hardware stuff is fascinating to me, but i'm only able to learn slowly over time
mary5030 has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
Hijiri has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jottr_ has joined #ruby
mary5030 has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
davedev2_ has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
davedev24_ has quit [Ping timeout: 265 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jottr_ has quit [Ping timeout: 244 seconds]
riscky has quit [Quit: riscky]
<ponga>
shevy: "the longest time is thinking about what to write, how to organize it" so true ser
<ponga>
and im still thinking hard
<ponga>
:P
<ponga>
:(
Tamae has joined #ruby
<epitron>
omosoj: on a 32-bit machine, you can actually have more than 4gigs of ram being used by the kernel... but you are limited to only 4 gigs per *process*
banister has joined #ruby
<epitron>
there's a special thing called PAE that you can compile into your kernel (or enable in the OS) which will let the kernel address > 4gigs in 32-bit mode
<epitron>
i was using it for a while... it's actually fine for non-crazy applications :)
shuber_ has joined #ruby
<epitron>
(ie: it's not often that a single process needs more than 4gigs of ram)
zorak8 has quit [Ping timeout: 240 seconds]
skj3gg has quit [Quit: ZZZzzz…]
ponga has quit [Remote host closed the connection]
anitchrist has joined #ruby
<anitchrist>
happy new year everybody!
ponga has joined #ruby
freerobby has quit [Quit: Leaving.]
<anitchrist>
what am I missin?
<anitchrist>
irb prints out out puts like true, nil and attr_reader if it has received from remote json... why doesn't the normal ruby command print that stuff out?
<anitchrist>
and how do I get it to print out at least the results from the json get?
<anitchrist>
or am I too much a noob >.<
sevvie has quit [Read error: Connection reset by peer]
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
sevvie has joined #ruby
<omosoj>
epitron, i see. cool
<anitchrist>
Not even a "Go f*ck yourself anitchrist?"
* anitchrist
pouts in the corner
ponga has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
ponga has joined #ruby
mary5030 has joined #ruby
<epitron>
anita-christ: the ruby command you are looking for is "p"
<epitron>
which does the same thing as "puts object.inspect"
<epitron>
which is what irb does to every return value
skj3gg has joined #ruby
<epitron>
i'm not sure why you'd see "attr_reader" in irb's out puts though
sevvie has quit [Read error: Connection reset by peer]
<anitchrist>
so if the object is say laptop, then I would put "p laptop.inspect"?
ponga has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 240 seconds]
<anitchrist>
apportion, thanks figured it out
babykosh has joined #ruby
dkb20k has quit [Ping timeout: 256 seconds]
sevvie has joined #ruby
<anitchrist>
I had to do it for both the object and the method
<anitchrist>
er idk what I'm talking about
Synthead has joined #ruby
<epitron>
anitchrist: p automatically does the .inspect
<epitron>
just "p laptop"
<epitron>
or "puts laptop.inspect"
sleepee has joined #ruby
<epitron>
also good: "gem install pry" and then "pry" :)
<anitchrist>
nope it was actually "p laptop.info_for.inspect"
<epitron>
irb is for squares
blizzy has quit [Ping timeout: 255 seconds]
<epitron>
again, the .inspect is redundant
<anitchrist>
haha
<epitron>
p .inspects everything
<anitchrist>
will do thanks epitron
hmsimha has quit [Ping timeout: 252 seconds]
<anitchrist>
so it was just "p laptop.info_for(arg)"
<anitchrist>
what's so different in regards to pry?
hvxgr has quit [Ping timeout: 240 seconds]
babykosh has quit [Quit: babykosh]
sinkensabe has joined #ruby
Aswebb_ has joined #ruby
<godd2>
anitchrist there are several features that pry provides which aren't in irb. for example, color output
<anitchrist>
ah!
babykosh has joined #ruby
<anitchrist>
it looks more say
<godd2>
also, a help menu, and tab-completion
<anitchrist>
yeah just noticed
phutchins has quit [Ping timeout: 245 seconds]
<anitchrist>
nice
<godd2>
you can also easily list the methods on an object
<godd2>
with ls
charliesome has quit [Quit: zzz]
<godd2>
and you can "change directory" *into* an object with cd
<anitchrist>
so like "laptop(ls)"
<banister>
anitchrist epitron is one of the dudes behind pry
<godd2>
it would be ls lapton
<godd2>
laptop*
<anitchrist>
woa
<godd2>
or cd laptop
<anitchrist>
got it god
<godd2>
and then cd .. to get back
<anitchrist>
banister I feel pretty humbled now
<banister>
anitchrist epitron is the bomb, he's one of my favorite rubyists
claptor has quit [Quit: this channel is bakas]
<anitchrist>
I am now making this my daily, sorry to impose, but y'all are stuck with me meow
<godd2>
It's not an imposition if you continue to learn :)
sinkensabe has quit [Ping timeout: 250 seconds]
<anitchrist>
thats all I'm about
charliesome has joined #ruby
Aswebb_ has quit [Ping timeout: 265 seconds]
<anitchrist>
I want to maintain my sponginess
omosoj has quit [Quit: leaving]
charliesome has quit [Client Quit]
omosoj has joined #ruby
ponga has joined #ruby
silkfox has joined #ruby
shuber_ has quit [Remote host closed the connection]
<epitron>
banister: definitely "BEHIND" pry :)
davedev24_ has joined #ruby
<epitron>
i'm hiding way behind the codebase
iamninja has quit [Quit: ZZZzzz…]
<epitron>
YOU ARE MY PRY PUPPETS
<epitron>
CODE MY WILL
<epitron>
jk jk
<godd2>
epitron when are you guys going to add cowsay to pry?
<godd2>
anitchrist that reject stuff would be happening inside a method or outside the class entirely
sevvie has quit [Read error: Connection reset by peer]
banister has joined #ruby
Soda has joined #ruby
<epitron>
Store.new.without_bacon
<epitron>
contains? also isn't a string method
<banister>
epitron it's a way for long distance couples to connect
<Hanmac>
epitron: hm i think you dont understand what "one?" and "zero?" means ... did you used Rails before?
<godd2>
epitron I gave him the idea of contains? and I mentioned to define contain? for some item in his list presuming that item is some object in and of itself
doodlehaus has quit [Remote host closed the connection]
jefus_ has joined #ruby
DadoCe has quit [Ping timeout: 240 seconds]
davedev2_ has quit [Ping timeout: 244 seconds]
asdasdsadas123 has joined #ruby
asdasdsadas123 is now known as function0-
function0- is now known as function90
teddyp1cker has quit [Remote host closed the connection]
ptrrr has joined #ruby
davedev24_ has joined #ruby
oleo has quit [Quit: Verlassend]
jefus has quit [Ping timeout: 256 seconds]
oleo has joined #ruby
kasperti_ has joined #ruby
poguez has joined #ruby
sinkensabe has joined #ruby
skj3gg has joined #ruby
Zai00 has joined #ruby
Soda has joined #ruby
djdarkbeat has quit [Read error: Connection reset by peer]
renderful has joined #ruby
parduse has quit []
Flcn____ has joined #ruby
gsd has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Blackhole has joined #ruby
ponga has quit [Quit: Leaving...]
parduse has joined #ruby
renderful has quit [Ping timeout: 250 seconds]
Blackhole has quit [Client Quit]
devoldmx has quit [Ping timeout: 264 seconds]
lampd1 has joined #ruby
devoldmx has joined #ruby
<cjm_>
Hi Folks, I have an environmental misconfiguration for which I need assistance. I have a brand new clean install of ruby (yum -y install ruby ruby-devel ruby-doc rubygems ruby-libs). Next I need to build mod_ruby (mod_passenger), so, "/bin/passenger-install-apache2-module" which does a bunch of checks and instructs me to install "rack", as follows: "/usr/bin/gem install rack" So far, so good...
lw has quit [Quit: s]
<cjm_>
On the command line, the passenger script tries to execute "rake": /usr/local/bin/rake RELEASE=yes apache2:clean apache2, which fails
<cjm_>
Could not find 'rake' (>= 0) among 6 total gem(s) (Gem::LoadError)
ta_ has joined #ruby
Cat_1 has quit [Ping timeout: 240 seconds]
Channel6 has joined #ruby
amclain has joined #ruby
<cjm_>
Earlier, the script checked for rake and claims to have found it. Additionally, "gem list" also does not find it. So, my question is, what is the script finding, since the run-time can?
martini has joined #ruby
oo_ has quit [Ping timeout: 245 seconds]
function90 has quit [Max SendQ exceeded]
<martini>
If you use something like "Name".legth, is the output kept anywhere in memory?
<martini>
length*
function90 has joined #ruby
<martini>
Well I mean obviously it will be in memory, but can you call it later on in your code, or does the output need to be assigned to a variable first? I am new to ruby.
frogsy has joined #ruby
apurcell has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
arya_ching has quit []
<godd2>
martini you would need to save it to a variable or calculate it again later
psy has quit [Ping timeout: 244 seconds]
lw has joined #ruby
Yzguy has joined #ruby
<godd2>
if you calculate something an never save it anywhere, it will be deleted since ruby thinks you don't need it
<martini>
godd2: Thank you. I'm learning ruby on codecademy right now and just wanted to clear that up. I had a feeling that I would need to store it as a variable, but Codecademy didn't tell me so I needed to double check.
<godd2>
if you want a more technical answer, the resulting calculation becomes a candidate for garbage collection, but that is a detail you don't have to worry about as a beginner
<martini>
Ruby has a relatively slow garbage collection, right?
apurcell has quit [Ping timeout: 255 seconds]
<martini>
I read something about that on Stack Overflow. I was reading an article on 2d game development. I want to build an rpg when I get the appropriate skills.
jottr_ has quit [Ping timeout: 264 seconds]
timonv_ has joined #ruby
<godd2>
That's not a question I'm fully qualified to answer, but to my understanding, the garbage collector in version 2.1 and higher is adequately fast
lkba has joined #ruby
<martini>
I downloaded ruby 1.9.3. Do you think that I should upgrade it?
lw has quit [Client Quit]
<martini>
I read that 1.9.3 was the most stable version
<godd2>
1.9.3 is just fine for learning ruby, and even for production ruby code
<martini>
Thanks godd2
<godd2>
just don't use 1.8.7 as it isn't maintained anymore
<godd2>
as for game development, there are a few cool libraries or "gems" out there
heftig_ is now known as heftig
<godd2>
one is called Gosu, another is Yeah, and another is Dare
<frogsy>
Is there any reasonable way to produce native-looking Windows GUIs for Ruby apps?
<godd2>
Yeah and Dare compile ruby to javascript so the game can be played in any browser :)
rbrs has quit [Ping timeout: 245 seconds]
dkb20k has joined #ruby
martini has quit [Quit: Page closed]
az7ar has joined #ruby
<shevy>
frogsy I think you can call parts of the windows API from ruby
bigmac has quit [Read error: Connection reset by peer]
blizzy has joined #ruby
bigmac has joined #ruby
dkb20k has quit [Ping timeout: 256 seconds]
bigmac has quit [Read error: Connection reset by peer]
riscky has joined #ruby
bigmac has joined #ruby
kstuart has quit [Remote host closed the connection]
kstuart has joined #ruby
blizzy has quit [Ping timeout: 240 seconds]
Darryl__ has quit [Quit: Connection closed for inactivity]
GGMethos has quit [Quit: WeeChat 1.0.1]
Yzguy has quit [Quit: I'm sleeping, go away.]
ohaibbq has joined #ruby
ahmgeek has joined #ruby
adriancb has joined #ruby
oleo__ has quit [Quit: Verlassend]
rurban has joined #ruby
rurban has left #ruby [#ruby]
oleo__ has joined #ruby
oleo__ has quit [Read error: Connection reset by peer]
konsolebox has quit [Read error: Connection reset by peer]
Aswebb_ has quit []
oleo has joined #ruby
valeriansaliou has quit [Quit: Be back later ...]
apurcell has joined #ruby
chinmay_dd has joined #ruby
kiyote23 has joined #ruby
jottr_ has quit [Ping timeout: 245 seconds]
govg has quit [Quit: leaving]
govg has joined #ruby
ddd has quit [Quit: you kidding me? wtf]
claudiuinberlin has joined #ruby
apurcell has quit [Ping timeout: 244 seconds]
nicolastarzia has joined #ruby
arup_r has quit [Quit: Leaving.]
teddyp1cker has quit [Read error: Connection timed out]
kiyote23 has quit [Ping timeout: 256 seconds]
ddd has joined #ruby
teddyp1cker has joined #ruby
ptrrr has quit [Quit: ptrrr]
GGMethos has joined #ruby
MartynKeigher has joined #ruby
baltazore has quit [Remote host closed the connection]
AlexRussia has quit [Quit: WeeChat 1.1-dev]
chipotle has joined #ruby
AlexRussia has joined #ruby
Soda has quit [Remote host closed the connection]
ebanoid has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ebanoid has joined #ruby
hvxgr has quit [Quit: leaving]
hvxgr has joined #ruby
baltazore has joined #ruby
byprdct has joined #ruby
Takle has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
apurcell has joined #ruby
brlkid has joined #ruby
k_89 has joined #ruby
k_89 has left #ruby ["Leaving"]
blizzy has joined #ruby
shuber_ has joined #ruby
havenwood has joined #ruby
apurcell has quit [Ping timeout: 240 seconds]
noop has quit [Ping timeout: 250 seconds]
jottr_ has joined #ruby
shredding has joined #ruby
az7ar is now known as az7ar_away
zorak8 has quit [Ping timeout: 255 seconds]
shuber_ has quit [Ping timeout: 244 seconds]
ptrrr has joined #ruby
fredsir_ has left #ruby [#ruby]
ta_ has joined #ruby
teddyp1cker has quit [Read error: Connection timed out]
teddyp1cker has joined #ruby
deepa is now known as deepy
rkr090 has quit [Quit: Leaving]
<cjm_>
Hi Folks, I have installed a Ruby on Rails application which presumably runs with mod_ruby (mod_passenger) under apache. When I request the root page and the correct URL, I don't get Ruby output server, I get a static page dispatch.fcgi served from the public/ directory. This should be simple for someone that understands more about how Ruby on Rails on Passenger works than I do. Any advice?
alkoma has joined #ruby
* Nilium
shrugs
<Nilium>
Try the rails channel.
AndyBotwin has joined #ruby
<Nilium>
God damn bots.
Zai00 has quit [Quit: Zai00]
TheTopBloke has quit [Read error: Connection reset by peer]
<apeiros_>
it sounds like you didn't properly configure apache
TheTopBloke has joined #ruby
<cjm_>
apeiros, mod_ruby != mod_passenger Well, THAT might be my problem! I cannot find mod_ruby. EVERYTHING kept taking me to mod_passenger. Can you advise me?
<apeiros_>
mod_ruby is pretty much dead. don't use it.
ta_ has quit [Ping timeout: 245 seconds]
<cjm_>
apeiros, O.K., so where can I find instructions for running under apache?
<apeiros_>
rubyonrails.org has quite extensive documentation
jottr_ has quit [Ping timeout: 255 seconds]
ahmgeek has quit [Remote host closed the connection]
<cjm_>
apeiros, O.K., Thanks. Hi-ho, hi-ho, is off the rails I go... (-:
dkb20k has joined #ruby
ptrrr has quit [Quit: ptrrr]
* Nilium
just uses nginx at this point because he's too lazy to successfully configure Apache
<Nilium>
Granted, I also don't use Rails, so I don't know what's involved in that.
rdark has quit [Quit: leaving]
Yzguy has joined #ruby
Yzguy has quit [Client Quit]
dkb20k has quit [Ping timeout: 265 seconds]
malcolmva has quit [Ping timeout: 245 seconds]
SilkFox_ has quit [Ping timeout: 240 seconds]
claymore has quit [Quit: Leaving]
<cjm_>
apeiros, I mislead you. mod_passenger is mod_rails, not mod_ruby.
chinmay_dd has quit [Read error: Connection reset by peer]
mattwildig has joined #ruby
<apeiros_>
yes
Cyberheb has joined #ruby
<godd2>
misleading apeiros is a capital crime
hashpuppy has joined #ruby
mleung has joined #ruby
kostitas has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
Channel6 has quit [Quit: Leaving]
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
Tranquility has quit [Quit: Connection closed for inactivity]
psy has joined #ruby
fedexo has joined #ruby
fedexo_ has joined #ruby
malcolmva has joined #ruby
lw has quit [Quit: s]
neersighted has joined #ruby
shredding has joined #ruby
lampd1 has quit [Remote host closed the connection]
pleasehelp has joined #ruby
DonOtreply has joined #ruby
davedev24_ has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Client Quit]
Tranquility has joined #ruby
StoneCypher has joined #ruby
<shevy>
it's ok, pay him in schokli
<pleasehelp>
I am trying to draw "HelloGame!" in the center of a window that I created with Gosu. When I run this code I get syntax errors on line 23 and 28. Any ideas? I am new to programming.
<pleasehelp>
require 'gosu' class Hello < Gosu::Window def initialize (width = 800, height = 600, fullscreen = false) super self.caption = "HelloGame!" @image = Gosu::Image.from_text self, "HelloGame!", Gosu.default_font_name, 100 end def button_down id close if id == Gosu::KbEscape end def update @x = self.widt
<shevy>
so
<pleasehelp>
Sorry, that didn't work...
<shevy>
line 23 eh
<shevy>
would you not prefer to use a pastie
<shevy>
people can then see what line 23 is
<ddd>
gist.github.com and give people the url\
<pleasehelp>
What is a pastie?
shredding has quit [Client Quit]
<pleasehelp>
Alright, I'll check out github.
davedev24_ has quit [Read error: Connection reset by peer]
davedev2_ has quit [Ping timeout: 255 seconds]
<godd2>
pleasehelp go to gist.github.com and paste your code, click "create public gist", and then copy paste the url
<shevy>
a pastie is a site where you can dump code, then we all see it in a highlighted way + line numbers on it
davedev24_ has joined #ruby
<pleasehelp>
shevy: BTW, we spoke yesterday. I'm the ruby vs python newb :)
<shevy>
ah
<shevy>
you have another nick
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kl>
pleasehelp: ruby vs python, you trying to decide between the two?
sandelius has joined #ruby
<kl>
I remember when I was comparing things like Python and Ruby. Those days were simpler
<godd2>
otherwise, if it tries to draw before it updates, @x and @y will have a number
<pleasehelp>
I am at about the 21:00 mark.
<pleasehelp>
I did not design the code
<havenwood>
pleasehelp: why are you using parens?
<shevy>
people learn ruby in strange ways these days
<pleasehelp>
havenwood: I thought that was the proper way, but then again I am a newbie.
bronson has quit [Ping timeout: 265 seconds]
<godd2>
pleasehelp we generally omit parentheses if there's only a few simple arguments
<pleasehelp>
havenwood: He does not use parens in the video, but I thought that he just had bad style.
<shevy>
pleasehelp it's irrelevant, use whatever you prefer. there are a few cases where parens are mandatory though, if there is ambiougouou... amibous... thingies
<shevy>
man that's a word
<godd2>
ambiguity?
ta_ has quit [Ping timeout: 244 seconds]
<shevy>
yeah
<godd2>
:P
<shevy>
I thought there was an o
mattwildig has quit [Remote host closed the connection]
<godd2>
I guess you could get away with ambiguousness
<shevy>
that's the good think about US english compared to UK english, they chop off characters! like color vs. colour ...
<havenwood>
pleasehelp: Omitting every paren that doesn't break the interpreter is actually often called "Seattle style" after Seattle Ruby Brigade.
dh64 has quit [Quit: Konversation terminated!]
<pleasehelp>
grr..my freenode isn't auto scrolling anymore when new messages appear (it does by default, right..?)
jottr_ has joined #ruby
<shevy>
pleasehelp depends on your client. what IRC client do you use?
<pleasehelp>
webchat
<shevy>
I use xchat
timonv_ has quit [Ping timeout: 245 seconds]
<shevy>
you ought to get a good client and you ought to get a permanent nick too some day
wkmanire has joined #ruby
pawanspace has joined #ruby
<pleasehelp>
You recommend xchat? I'll work on that right now
<shevy>
pleasehelp style questions in ruby are funny because in ruby there is more than one way to do things, including style. the ruby parser is very liberal compared to others like python
<shevy>
xchat was great but it is abandoned; I still use it though. the new "xchat" is called hexchat
<wkmanire>
havenwood: Awesome. I bookmarked that site.
teddyp1cker has quit [Remote host closed the connection]
iksik has joined #ruby
Dolphi has joined #ruby
DonOtreply has joined #ruby
<havenwood>
wkmanire: Ruby Toolbox usually doesn't have all the options but it can be a nice place to get some leads and see what's been popular for a while.
Takle has quit [Remote host closed the connection]
areric has left #ruby [#ruby]
<wkmanire>
I've decided to learn Ruby this year so I'm trying to take a shortcut and go right to whatever is considered the standard toolset. :)
<Dolphi>
shevy, Guess who it issss ^_^
<pleasehelp>
shevy: Its me lol
maletor has joined #ruby
bigmac has quit [Read error: Connection reset by peer]
bigmac has joined #ruby
alex88 has quit [Remote host closed the connection]
bigmac has quit [Read error: Connection reset by peer]
<wkmanire>
Most likely I won't have a chance to use it at my day job, but I haven't studied a new language in a while and ruby is one of the top 10 github languages still. Looks like it's going to be a lot of fun.
adriancb has quit [Remote host closed the connection]
kiyote23 has quit [Remote host closed the connection]
rkalfane has joined #ruby
<kl>
Ruby is definitely a nice language to know. It effectively replaced Perl for me.
TheTopBloke has quit [Ping timeout: 265 seconds]
iamjarvo has joined #ruby
TheTopBloke has joined #ruby
<kl>
Ruby has a lot of traction in the devops-sphere. I do Ruby for my dayjob: web app dev, and not with Rails. I'm not sure what my future with Ruby is though
bronson has joined #ruby
<kl>
As I refuse Rails
Flcn____ has joined #ruby
<wkmanire>
kl: It seems to me that the select of server language is becoming less important these days.
<kl>
wkmanire: in which respect?
<wkmanire>
selection*
<Dolphi>
kl, How long have you been in web dev?
<wkmanire>
Most of the web apps I've written recently have been single-page applications where the server is just one big REST API.
<Dolphi>
kl, Yikes. How long did it take you to get your first job once you decided to pick up programming?
<kl>
wkmanire: that may be the case, but I'm not sure how that depreciates the importance of selecting a particular language
aaronoflegend has joined #ruby
aaronoflegend has left #ruby [#ruby]
<Dolphi>
I'm learning ruby right now as my first language, and eventually I plan on getting into web development, though I originally decided to pick up programming to make games as a hobby.
<kl>
Dolphi: I say 10 years, but much was part time. I started at age 14. Started programming as a little kid, so I wasn't "actively" looking for work for a given period
Soda has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kl>
Dolphi: so I'm not sure you could validly compare
<Dolphi>
I'm 20 and just now starting. I feel like such a newbie.
claudiuinberlin1 has quit [Read error: Connection reset by peer]
<kl>
Dolphi: same. :)
az7ar is now known as az7ar_away
6A4AAYL2Y has joined #ruby
<wkmanire>
kl: Well, it used to be that you really had to work hard to pick a good set of tools for the server because it handled templating your HTML. In some cases (ASP.Net forms), the browser is almost completely abstracted away from you and you don't work in terms of things the browser understands.
<kl>
It's a rapidly moving industry
dkb20k has quit [Ping timeout: 255 seconds]
pawanspace has joined #ruby
SilkFox_ has quit [Ping timeout: 244 seconds]
<kl>
Dolphi: although I may well move beyond web dev in the next couple years
<wkmanire>
kl: When your server just needs to be a REST API, all of a sudden most server-side languages can do a good job.
<kl>
Can't help but feel that web dev tends to involve many of the same sorts of problems, over and over. To alleviate that, I do work slightly "more" back-end than others: the web just happens to be the presentation format
apurcell has joined #ruby
pawanspace has quit [Client Quit]
jherbst has joined #ruby
<kl>
wkmanire: gotcha. There's some truth to that. But the language selection does remain pretty important in many other ways
kiyote23 has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
<Dolphi>
kl, I just want to learn some web dev for job opportunities. Not sure how interesting it is because I've never tried, but I think that game dev will be more of my "thing". I could be wrong however.
<havenwood>
wkmanire: I do use RVM sometimes, particularly for older systems or when I need precompiled binaries or to build dated Rubies that now require patches to build. I switch Rubies with chruby though primarily.
sinkensabe has joined #ruby
<wkmanire>
havenwood: I'm looking for something like python's virtualenv
psy has quit [Ping timeout: 244 seconds]
<wkmanire>
I think you can do that with RVM and named gemsets?
Luyt__ has quit [Remote host closed the connection]
Luyt__ has joined #ruby
<kl>
Dolphi: I've been doing it for a good few years now - and I do a *lot* of learning, which makes me aspire to apply what I learn in areas that I don't feel webdev exploits to the maximum;
<havenwood>
wkmanire: Bundler has been widely adopted for managing gem environments: http://bundler.io/
<kl>
Dolphi: I don't think you should worry about getting bored very quickly. :)
anonymous2285657 has joined #ruby
anitchrist has joined #ruby
<havenwood>
wkmanire: Bundler is a gem, unlike RVM and chruby which are shell scripts.
<wkmanire>
havenwood: Nice! Thanks
<anitchrist>
hello peeps
* anitchrist
waves
Flcn____ has quit [Quit: Be back later ...]
<kl>
Dolphi: it's really hard to advise beginning developers. There's no "good" place to start imo.
apurcell has quit [Ping timeout: 255 seconds]
<kl>
Overall, the best to start is probably with something that'll give you job opportunities, which expose you to smarter people and complicated problems
<kl>
wkmanire: I can speak for chruby too, along with the rest of my team
bronson has quit [Remote host closed the connection]
anonymous2285657 has quit [Remote host closed the connection]
<towski_>
what does chruby do that rvm doesn't
<wkmanire>
I'll read about chruby and bundler
<Dolphi>
kl, I agree. For now I'm just learning the basics of Ruby and then I will have to make a decision on whether I should focus on the web or on indie games. I have books on HTML, CSS, and JQuery, so if I end up going the web dev route first, I should be off to a good start.
<wkmanire>
seems like chruby + bundler is a winning combination from my outsiders perspective
mattwildig has left #ruby [#ruby]
zarubin has quit []
<kl>
wkmanire: bundler is practically mandatory. But it's really good, so that's the least of your worries
zarubin has joined #ruby
Cat_1 has joined #ruby
<havenwood>
towski_: RVM is over 20,000 lines of shell. What chruby does is simplicity with only 100 lines of shell. Actually RVM even supports chruby out of the box with MRVM, which ships with RVM but uses chruby for switching.
<towski_>
havenwood: oh cool interesting
zarubin has quit [Client Quit]
<kl>
I have no idea what RVM needs 20k lines for, but I know what I *want* requires 100 max (i.e. chruby)
<kl>
Frankly I'm surprised chruby even needs 100
<kl>
Dolphi: when you say indie games, what kind of platform are you talking about?
giuseppesolinas has joined #ruby
<Dolphi>
Well I am just worried about learning HOW games are made and the logic behind them really, not deployment. As of right now, it doesn't matter what platform to me, though I'd like to eventually throw something up on Steam with Greenlight if possible.
TheTopBloke has quit [Ping timeout: 244 seconds]
<towski_>
it doesn't matter to me how many lines of shell a program uses
TheTopBloke has joined #ruby
<kl>
towski_: well yeah, but it's just a metric that implies other things (like whether it does a load of crap you probably don't want)
omosoj has joined #ruby
zarubin has joined #ruby
<wkmanire>
havenwood: 20,000 lines of shell?
<kl>
Dolphi: games do involve quite different kinds of programming/languages
<wkmanire>
Holy shit!
<Dolphi>
kl, I just want to write a 2d rpg. If I could do that in ruby as a way to help me learn the language, that would be great. Once I can get a very basic rpg built, I can always learn a new language if neccessary in order to deploy to specific platforms or if I need better performance. I just don't want to have to worry about all of that right now. I want to focus on the basics of programming.
<wasamasa>
Dolphi: I don't think programming is going to be the problem
<godd2>
wkmanire well it wasn't written overnight!
<towski_>
that's true. it does probably make it easier to understand what it's doing
<kl>
Dolphi: sorry, when I say "games" - I'm talking about the kind you'd probably find on Steam, if you're talking about larger ones
<wasamasa>
Dolphi: considering what code one can get away with in commercial releases :P
<wkmanire>
I can only fathom that it must be due to supporting different interpreters and operating systems
jottr_ has quit [Ping timeout: 245 seconds]
codezomb has joined #ruby
<kl>
Dolphi: cool. Ruby's a nice language to do that with.
<Dolphi>
kl, No, I am talking about indie as in Steam games. I really just want to make a game that I can show my friends or even just be proud of without even sharing it. I don't really plan on working in an AAA, though I probably wouldn't pass up the opportunity. I just did not want to start straight off with C++ (Although I also purchased C++ and C# with Unity books in preparation lol)
zarubin has quit [Client Quit]
zarubin has joined #ruby
<Dolphi>
Releasing something to Steam isn't really a goal right now, but if I could write something worth sharing, I wouldn't mind going to Steam. I just want to do something for fun and learning first and foremost. Once I write a few games then I think I can work on something more serious.
<wkmanire>
Dolphi: A big mistake that people make, is that get too tied up in the graphics library and never actually write their game.
<wkmanire>
You hear a lot of newbies throwing around the word "engine".
<Dolphi>
wkmanire, Yeah, I've heard of that as well.
<Dolphi>
wkmanire, I know what an engine is. Unity, RPG Maker Ace, etc.
<wkmanire>
Dolphi: You can build your whole "2D RPG" as a software package, and then later one you can go get a graphics library and use to write a UI over your game.
<wkmanire>
later on*
MartynKeigher has quit [Read error: No route to host]
<Dolphi>
Speaking of...
MartynKeigher has joined #ruby
<wkmanire>
Dolphi: I'm not trying to steal you away from Ruby, but over at #pygame we have a really nice little community of hobbyist game developers.
<godd2>
heresy!
<kl>
That *is* a pretty nice little community. Won't find that with Ruby
<wkmanire>
Dolphi: If you get started on a game you might want to try your questions there, even though you're using ruby the answers to your architectural questions are probably going to be very similar.
<Dolphi>
RPG maker..I've heard a lot of bad things about that Engine, but I have also seen some amazing games built in it, such as "To the Moon". For someone who wants to learn coding, not just game design, would you recommend RPG maker?
<Cat_1>
omosoj - just pick one you're comfortable with. /thread
<Cat_1>
3 is in active development, 2 is EOL I believe.
<jhass>
^ sublime is fine, 3 is stable already. everybody else: that question never happened
jottr_ has joined #ruby
<Cat_1>
I use ST3 right now and vim in a pinch when I'm in a terminal.
<omosoj>
k. i use vim now, but was thinking i should use something prettier
av_a_word has joined #ruby
<Cat_1>
Vim is pretty
<Cat_1>
:)
<Cat_1>
I always find myself pushing :wq in SublimeText though...
sandelius has joined #ruby
<crome>
prettier than vim?
<crome>
bollocks
<jhass>
you people are too easy to troll
<omosoj>
Cat_1, heh, yeah i do that everywhere (:wq)
<anitchrist>
lol
<omosoj>
does sublime text have a console i can run tests and stuff in?
teddyp1cker has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
<anitchrist>
you tell me to do stop with not enough info, details... must have details
<anitchrist>
imanoobduh
<av_a_word>
Hi, I'm resoling an ip address by using Resolv::IPv4::Regex which works great. How can I also get the subnet mask in CIDR Formatting?
Dolphi has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
banister has quit [Read error: Connection reset by peer]
<anitchrist>
stop = stuff ... smh
* anitchrist
facepalms
babykosh has joined #ruby
sinkensabe has quit [Remote host closed the connection]
babykosh has quit [Client Quit]
<omosoj>
how do you guys navigate the directory/file structure easily with vim? i use the vim file explorer, but it would be nice to have a separate window with the directory structure
teddyp1cker has quit [Ping timeout: 265 seconds]
bigmac has joined #ruby
<crome>
ctrlp is all I need :D
<crome>
well, most of the time
<crome>
and ag.vim
<av_a_word>
here the code i have working for just the ip without the ask
<omosoj>
Dolphi, about a year in, i guess. but with vim and emacs, i basically pick up difficult things to force myself to learn (aka masochism)
<omosoj>
Dolphi, cool :)
RareBlackMagic has joined #ruby
mary5030 has quit [Remote host closed the connection]
<Dolphi>
omosoj, I'm about a month in, but most of that time was spent with Java. I decided to move on to bigger and better things (aka Ruby) :)
<Dolphi>
Eventally I'll work with rails too, but like I said, I've got awhile to go.
mary5030 has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
<omosoj>
Dolphi, afaik java/ruby/x/y/z are a little different but the fundamentals of software design are pretty standard. if you can build a text game in your first month you're well on your well
philwantsfish has joined #ruby
<omosoj>
well on your *way
apurcell has quit [Ping timeout: 240 seconds]
SixiS has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Dolphi>
omosoj, A simple text adventure in your first month is considered good? Lol I'm mad at myself for not having completed my rpg yet! haha
<Dolphi>
I'm in the process of learning how to build windows and move sprites now.
mary5030 has quit [Ping timeout: 265 seconds]
<omosoj>
rome wasn't built in a day :)
Macaveli has quit [Ping timeout: 244 seconds]
<av_a_word>
any ideas on the subnet mask?
6A4AAYL2Y has quit [Quit: Konversation terminated!]
Zai00 has joined #ruby
Menorah has joined #ruby
rkalfane has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
sandelius has joined #ruby
bronson has joined #ruby
anaeem1__ has joined #ruby
blackmesa has joined #ruby
mistergibson has quit [Quit: Quitting ... be good to each other :)]
philwantsfish has quit []
<av_a_word>
any help would be appreciated :-)
banister has joined #ruby
banister has quit [Max SendQ exceeded]
bluOxigen has quit [Ping timeout: 240 seconds]
anaeem1_ has quit [Ping timeout: 250 seconds]
shuber_ has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
banister has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has quit [Max SendQ exceeded]
<crome>
I don't think I understand what exactly you are trying to do
<crome>
you have an IP address, what do you want with the subnet?
msgodf has joined #ruby
msgodf has quit [Read error: Connection reset by peer]
msgodf has joined #ruby
timonv_ has joined #ruby
<av_a_word>
i want to allow keyboard interaction for an ip followed by a subnet mask to then set it on that machine base don the input
<av_a_word>
crome: valid input would 1.2.3.4/32
shuber_ has quit [Ping timeout: 244 seconds]
<av_a_word>
crome: or 2.3.4.5/29
banister has joined #ruby
<av_a_word>
a workaround would be to ask for the mask seperatly but id preferit asked at the same time
valeriansaliou has quit [Quit: Be back later ...]
<Xeago>
so what is the problem av_a_word?
<crome>
in that case the easiest way is to use your own regex instead of the one in Resolv
pkrzywicki is now known as noname001
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass>
expect(x.all? {|i| i.is_a? Integer }).to be_true, or yet better write a custom matcher (it's quite easy)
<Cat_1>
You'll probably want to mock or stub
<kl>
I don't know the answer to that - but I think suggesting you obtain better control over your system under test to actually *know* what integers you expect, is the best answer you'll get.
Xeago has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
Xeago has joined #ruby
<rbennacer>
jhass: let em try that
hrs has joined #ruby
Nameo0 has quit [Ping timeout: 245 seconds]
giuseppesolinas has joined #ruby
kiyote23 has quit [Ping timeout: 240 seconds]
it0a has quit [Ping timeout: 244 seconds]
oleo has quit [Quit: Verlassend]
poguez has quit [Quit: Connection closed for inactivity]
bashusr has joined #ruby
Xeago has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
lolmaus_ has quit [Quit: Konversation terminated!]
lolmaus_ has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
<rbennacer>
it works like a charm thanks jhass
oleo has joined #ruby
riscky has joined #ruby
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jokke has quit [Quit: ninja vanish]
it0a has joined #ruby
<Dolphi>
Does anybody know of any online meeting places for programmers for Skype or something? You know, where they meet up every week and use voice chat or webcams to discuss ideas or work together on projects?
jokke has joined #ruby
dfinninger has joined #ruby
timonv_ has joined #ruby
<Cat_1>
If only there were a place that allowed you to communicate with others by a simple topic...like, I dunno, #<programming language name> or something...it can be like...internet...<something> chat...
<Cat_1>
If you are working on a project with someone use ScreenHero/HipChat/etc
<Dolphi>
Cat_1, Internet Relay Chat? Was that supposed to be a joke?
<Cat_1>
Yup :)
timonv_ has quit [Remote host closed the connection]
<Cat_1>
The more serious answer was below
dfinninger has quit [Ping timeout: 244 seconds]
<Cat_1>
There's no real place where programmers just "hang out" to meet
<Cat_1>
except IRC
<Cat_1>
but if you want to pair with someone you meet in IRC
<Cat_1>
ScreenHero/HipChat/Google Hangouts would be my best option
slawrence00 has joined #ruby
<crome>
voip things don't really work when there are loads of people trying to speak
<Dolphi>
Cat_1, I want someone to help me learn the basics of game programming with Gosu. I want to make a 2d rpg but I plan on working my way up by making pong and/or mario first
it0a has quit [Ping timeout: 255 seconds]
hrs has joined #ruby
<Dolphi>
What channels should I lurk on? I'm new to this whole IRC thing.
josephndenton has joined #ruby
jherbst has joined #ruby
shredding has quit [Quit: shredding]
it0a has joined #ruby
diegoviola has joined #ruby
herrecito has joined #ruby
herrecito has quit [Client Quit]
wallerdev has joined #ruby
<Cat_1>
I don't know, since you can name channels anything you want...you'll have to find online communities built around Gosu
<Cat_1>
this is #ruby, so I can't advise you on that :)
kasperti_ has quit []
sankaber has joined #ruby
av_a_word has quit [Quit: Lost terminal]
Joufflu has quit [Read error: Connection reset by peer]
keen__________22 has quit [Read error: Connection reset by peer]
bufferloss has joined #ruby
<wasamasa>
Dolphi: you know, I suspect people learn by actually doing what they're supposed to do
Sabastiaan has joined #ruby
<wasamasa>
Dolphi: and doing this over and over and over again
DadoCe has quit [Remote host closed the connection]
keen__________22 has joined #ruby
nicolastarzia has quit [Remote host closed the connection]
mary5030 has joined #ruby
<shevy>
wasamasa like self-sex!
<wasamasa>
shevy: that's a pretty sobering thought
rbennacer has quit [Remote host closed the connection]
<shevy>
Dolphi try at #gosu but you should first have a good basic knowledge of ruby really
<shevy>
so wasamasa's phrase is right... doing it over and over and over again... write code code code
bashusr has quit [Read error: Connection reset by peer]
<shevy>
your brain is like a self-learning pattern machine
<wasamasa>
well, some reinforcement would be good
<wasamasa>
like, figuring out what went bad and what went good
mquin has joined #ruby
DadoCe has joined #ruby
_ixti_ is now known as ixti
lampd1 has joined #ruby
<waxjar>
exercism is nice for that, tho sometimes its hard getting feedback
<wasamasa>
games are pretty excellent at this thing, the feedback and reinforcement
<wasamasa>
ok, except the crappy ones, but you don't play these anyways, do you
kiyote23 has quit [Remote host closed the connection]
<wasamasa>
too bad you can't really turn programming into a meaningful game
<wasamasa>
especially not programming games
naftilos76 has joined #ruby
<Cat_1>
codecombat!
<wasamasa>
:|
veduardo has joined #ruby
<Cat_1>
seriously, codecombat
naftilos76 has quit [Remote host closed the connection]
sinkensabe has joined #ruby
nicolastarzia has joined #ruby
bronson has joined #ruby
sinkensabe has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 265 seconds]
adriancb has quit [Remote host closed the connection]
sinkensabe has joined #ruby
<Dolphi>
shevy, I understand that I need to get the fundamentals down, but what should I be building once I know those things? I can print strings. I can store variables. I can solve equations. I understand basic hashes. What else is there to know about the basics? I feel like its time to start building something, but I have no idea what to build.
oleo has quit [Ping timeout: 265 seconds]
<wasamasa>
get a canvas going and use it to display static stuff first
bashusr has joined #ruby
<shevy>
Dolphi ok; well have you worked with arrays and hashes? know how you can store and retrieve values from these?
<wasamasa>
then, add some animations
it0a has quit [Ping timeout: 264 seconds]
<wasamasa>
that alone can yield pretty cool stuff without even the use of bitmaps
<waxjar>
maybe an old school text-game?
<Dolphi>
Yes, with tryruby.org.
<Dolphi>
waxjar, I've already built a simple text adventure in Java when I first took up programming a few weeks ago.
<crome>
build a better one
<Dolphi>
crome, True..Good idea.
<Dolphi>
crome, Maybe that will be my first real ruby project.
<waxjar>
a snake clone?
<wasamasa>
turn it into a proper game loop, add some interactive elements
diegoviola has quit [Read error: Connection reset by peer]
<wasamasa>
and you have a hipster game going on!
<Dolphi>
crome, Maybe I can even learn how to incorporate graphics to enhance the text adventure.
<waxjar>
a multiplayer snake clone?
phutchins has quit [Ping timeout: 240 seconds]
<Dolphi>
Well thanks for all of the advice so far guys. Its hard out here for a newbie, when I'm tryna make a game with this Ruby.
jenrzzz has quit [Ping timeout: 264 seconds]
veduardo has quit [Ping timeout: 265 seconds]
kiyote23 has joined #ruby
kiyote23 has quit [Remote host closed the connection]
dh64 has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
kiyote23 has joined #ruby
<shevy>
\o/
Spami has joined #ruby
Martxel has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Dolphi>
shevy, How do I join #gosu? I'm using HexChat. I don't know how to create a new channel.
justicefries has joined #ruby
<Dolphi>
shevy, Nevermind, I got it.
Sabastiaan has quit [Quit: Ex-Chat]
bufferloss has left #ruby ["Leaving"]
Xeago has joined #ruby
bashusr has joined #ruby
kiyote23 has quit [Read error: Connection reset by peer]
kiyote23 has joined #ruby
diegoviola has joined #ruby
codecop has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
Dolphi_ has joined #ruby
diegoviola has quit [Client Quit]
cirnetus has quit [K-Lined]
freerobby has joined #ruby
ohaibbq has quit [Remote host closed the connection]
<Dolphi_>
shevy, Actualy, I did not figure it out. How can I add another tab for with #gosu in it so that I can talk game dev there and still keep this one open?
Dolphi_ has left #ruby [#ruby]
rbennacer has joined #ruby
<waxjar>
most clients have a /join #channel command
<shevy>
Dolphi at where you type commands, a leading / can be used to type commands like /join or /j should also work I think
<rbennacer>
shevy what is the best resource to go form intermediate to expert in ruby?
<Dolphi>
waxjar, Sorry for the stupid question. I was looking in the main HexChat menu. The option is under the Server menu.
<shevy>
rbennacer not sure there are many resources really... you kinda need to write ruby code, and if you need help ask on IRC, the ruby forum or stackoverflow
jenrzzz has joined #ruby
baltazore has quit [Remote host closed the connection]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
kiyote23 has quit [Ping timeout: 240 seconds]
<rbennacer>
i am trying to finish rubymonk
<rbennacer>
is it super cool
<rbennacer>
it will help me in my way to enlightenment
<rbennacer>
is it possible to use define_method for a class method?
phutchins has joined #ruby
<rbennacer>
something like define_method("self.hello")
philwantsfish has joined #ruby
<waxjar>
you can open the singleton class and use #define_method (class String; class << self; ...) or use #define_singleton_method (String.define_single...)
rbennacer has quit [Remote host closed the connection]
Pupeno_ has joined #ruby
lemur has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
teddyp1cker has quit [Ping timeout: 255 seconds]
SparkMasterTape has quit [Read error: Connection reset by peer]
Pupeno has quit [Ping timeout: 240 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
jonathanwallace has joined #ruby
Kilo`byte has quit [Read error: Connection reset by peer]
justicefries has quit [Remote host closed the connection]
jmaya has joined #ruby
Guest74867 has joined #ruby
zenspider has joined #ruby
_chs_ has quit [Ping timeout: 240 seconds]
jakery has quit [Ping timeout: 240 seconds]
banister has quit [Ping timeout: 240 seconds]
rcs has quit [Ping timeout: 240 seconds]
byprdct has quit [Ping timeout: 240 seconds]
Guest74867 is now known as _chs_
_chs_ is now known as Guest65496
rcs has joined #ruby
rbennacer has joined #ruby
towski_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
<bl4ckdu5t>
How can I count the number of occurence of an item in an array?
towski_ has quit [Remote host closed the connection]