<justas>
hi, I am coding dijsktras algorithm for shortest path. Any idea how to count the route from source to target, when target is the same source? dijkstras algortithm sets source wight to zero. so I can calculate only shortest path to any target but source(if my target is the same source over some other vertexes)
d4nk_ has joined #ruby
asuka has quit []
<justas>
weihgt*
<justas>
or direct me to people, who might know about algorithms. thank you
mijicd has quit [Remote host closed the connection]
zenojis has joined #ruby
iaj has joined #ruby
tkuchiki has joined #ruby
linojon has quit [Quit: linojon]
gilest has quit [Remote host closed the connection]
jottr has joined #ruby
asuka has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
mojo619 has joined #ruby
shevy has joined #ruby
nfk has quit [Quit: yawn]
jottr has quit [Ping timeout: 240 seconds]
Tab__ has joined #ruby
<shevy>
do you guys use #each_with_index oftenly?
bmurt has joined #ruby
<waxjar>
nop
philcrissman has joined #ruby
mkaesz has joined #ruby
whyy has joined #ruby
<gizmore>
yes
<gizmore>
1.41% of the iterators
<nobitanobi>
wow
cesurasean1 has quit [Read error: Connection reset by peer]
<nobitanobi>
that's precision, right there
<gizmore>
that´s a statement
<shevy>
hmm
<nobitanobi>
how'd you make that calculation?
<gizmore>
nobitanobi: everything boils down to magic constants
__main__ has quit [Ping timeout: 240 seconds]
<gizmore>
pi, golden ratio, sqrt(2)
<nobitanobi>
what's the last number of pi though?
philcrissman has quit [Ping timeout: 250 seconds]
<nobitanobi>
*digit
gilest has joined #ruby
<gizmore>
[0-9]{1}$
marr has quit []
Lewix has quit [Remote host closed the connection]
<nobitanobi>
I knew it.
<gizmore>
it was a good candidate
<nobitanobi>
can confirm
Lewix has joined #ruby
mkaesz has quit [Ping timeout: 260 seconds]
whyy has quit [Ping timeout: 245 seconds]
krz has joined #ruby
bmurt has quit []
binaryhat has quit [Quit: Leaving]
threesixes has quit [Ping timeout: 272 seconds]
gilest has quit [Remote host closed the connection]
Lewix has quit [Ping timeout: 250 seconds]
tjr9898 has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
RustyShackleford has quit [Ping timeout: 240 seconds]
pasties has quit [Ping timeout: 250 seconds]
binaryhat has joined #ruby
mary5030 has quit [Remote host closed the connection]
mojo619 has quit [Quit: mojo619]
timonv_ has joined #ruby
<chipotle>
anyone here run rails on AWS or google here?
timonv_ has quit [Ping timeout: 244 seconds]
OffTheRails has joined #ruby
AlexRussia is now known as MockerRussia
<nobitanobi>
heroku here. chipotle try #rails
pasties has joined #ruby
dorei has quit [Ping timeout: 250 seconds]
<chipotle>
nobitanobi: i don't understand heroku's pricing at all, how much do you pay?
<nobitanobi>
depends on the number of dynos that you use and other add-ons that you can place
mweshi has quit [Quit: mweshi]
goshdarnyou has joined #ruby
fgo has joined #ruby
frankle has quit [Quit: Connection closed for inactivity]
Bira has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
newUser1_ has joined #ruby
Lewix has joined #ruby
gaussblurinc1 has joined #ruby
newUser1_ has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: i've nodded off.]
newUser1234 has joined #ruby
ghr has joined #ruby
InhalingPixels has joined #ruby
gilest has joined #ruby
r_s has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
newUser1_ has joined #ruby
newUser1234 has quit [Ping timeout: 255 seconds]
Olipro has quit [Ping timeout: 256 seconds]
axsuul has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
Olipro has joined #ruby
patrick99e99 has joined #ruby
chars6 has quit [Quit: Konversation terminated!]
gilest has quit [Ping timeout: 260 seconds]
Tab__ has quit [Quit: This computer has gone to sleep]
newUser1_ has quit [Ping timeout: 246 seconds]
newUser1234 has joined #ruby
bmurt has joined #ruby
mweshi has joined #ruby
Tab_ has joined #ruby
patrick99e99 has quit [Ping timeout: 255 seconds]
icebourg has joined #ruby
kaspergrubbe_ has joined #ruby
_cpt_yossarian_ has quit [Quit: Leaving]
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cpt_yossarian has joined #ruby
mr_snowf1ake has joined #ruby
Bira has quit []
newUser1234 has quit [Ping timeout: 260 seconds]
thomasxie has joined #ruby
fgo has joined #ruby
kaspergrubbe_ has quit [Ping timeout: 260 seconds]
linojon has joined #ruby
<OffTheRails>
chipotle, you pay as much as they can grab off you
<chipotle>
heh
<OffTheRails>
possibly the most over-priced host around
<OffTheRails>
even if they are highly convenient
<OffTheRails>
I'd cut out the middleman and go straight to AWS
Matadoer has quit [Ping timeout: 272 seconds]
axsuul has quit [Read error: No route to host]
mkaesz has joined #ruby
<OffTheRails>
I recall cutting hosting bills by 80% by migrating an app from heroku to linode.
wfw has joined #ruby
starkhalo has joined #ruby
starkhalo has quit [Client Quit]
mkaesz has quit [Ping timeout: 240 seconds]
starkhalo has joined #ruby
thomasxie has quit [Read error: Connection reset by peer]
thomasxie has joined #ruby
mweshi has quit [Quit: mweshi]
mordocai has quit [Remote host closed the connection]
gondalier has joined #ruby
wfw has left #ruby [#ruby]
Matadoer has joined #ruby
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
bmurt has quit []
Shidash has joined #ruby
charliesome has joined #ruby
diegoviola has joined #ruby
niklasb has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
RustyShackleford has joined #ruby
redondo has quit [Ping timeout: 240 seconds]
cap has quit [Remote host closed the connection]
cap has joined #ruby
mary5030 has quit [Ping timeout: 260 seconds]
niklasb has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
cap has quit [Ping timeout: 240 seconds]
w09x has joined #ruby
_0xf_ has joined #ruby
ghr has joined #ruby
Wolland has quit [Remote host closed the connection]
Taranis has quit [Remote host closed the connection]
Wolland has joined #ruby
venture37 has joined #ruby
<venture37>
hi
advorak has joined #ruby
ryan__ has joined #ruby
icebourg has quit []
<venture37>
I'm trying to compile ruby 2.1.2 on OS X Tiger & struggling with the dbm.bundle not compiling
ghr has quit [Ping timeout: 250 seconds]
<venture37>
is there any documentation on what the dependencies are?
Wolland has quit [Ping timeout: 264 seconds]
axilla has quit [Ping timeout: 250 seconds]
RustyShackleford has quit [Quit: Leaving]
philcrissman has joined #ruby
tkuchiki has joined #ruby
oo_ has joined #ruby
kireevco has joined #ruby
mattalexx has quit [Quit: Page closed]
whyy has joined #ruby
Tab_ has quit [Quit: This computer has gone to sleep]
phutchins has quit [Ping timeout: 245 seconds]
newUser1234 has joined #ruby
Tab__ has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
philcrissman has quit [Ping timeout: 272 seconds]
<waxjar>
os x tiger? :o
<venture37>
waxjar: indeed
whyy has quit [Ping timeout: 260 seconds]
axl_ has joined #ruby
__main__ has joined #ruby
newUser1_ has joined #ruby
newUser1234 has quit [Ping timeout: 255 seconds]
axl_ has quit [Client Quit]
mkaesz has joined #ruby
newUser1_ has quit [Ping timeout: 250 seconds]
alekst has quit [Quit: Leaving...]
mkaesz has quit [Ping timeout: 250 seconds]
xcv has quit [Remote host closed the connection]
pasties has quit [Ping timeout: 250 seconds]
Tab__ has quit [Quit: This computer has gone to sleep]
Wolland has joined #ruby
amargherio has quit [Remote host closed the connection]
Wolland has quit [Read error: Connection reset by peer]
newUser1234 has joined #ruby
threesixes has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
Wolland has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pasties has joined #ruby
icebourg has joined #ruby
haroldwu has quit [Changing host]
haroldwu has joined #ruby
newUser1234 has quit [Ping timeout: 260 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
Wolland has quit [Ping timeout: 244 seconds]
gaussblurinc1 has joined #ruby
InhalingPixels has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
d4ryus has quit [Quit: leaving]
linojon has quit [Quit: linojon]
InhalingPixels has quit [Ping timeout: 255 seconds]
braincrash has quit [Quit: bye bye]
michaeldeol has joined #ruby
ixti has quit [Quit: WeeChat 0.4.3]
braincrash has joined #ruby
newUser1234 has joined #ruby
threesixes has quit [Ping timeout: 272 seconds]
Tab__ has joined #ruby
newUser1234 has quit [Ping timeout: 240 seconds]
<benzrf>
ruby is ok
threesixes has joined #ruby
oo_ has quit [Remote host closed the connection]
ghr has joined #ruby
bmoyles0117 has joined #ruby
oo_ has joined #ruby
newUser1234 has joined #ruby
tkuchiki has joined #ruby
axilla has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
oo_ has quit [Remote host closed the connection]
newUser1_ has joined #ruby
newUser1234 has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
oo_ has joined #ruby
axilla has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
patrick99e99 has joined #ruby
gondalier has quit []
arup_r has joined #ruby
ClarusCogitatio has quit [Ping timeout: 250 seconds]
ClarusCogitatio has joined #ruby
nahtnam has joined #ruby
newUser1_ has quit [Ping timeout: 246 seconds]
InhalingPixels has joined #ruby
oo_ has quit [Ping timeout: 264 seconds]
nobitanobi has joined #ruby
<nobitanobi>
OffTheRails: I have been really thinking on moving out of Heroku
patrick99e99 has quit [Ping timeout: 255 seconds]
<nahtnam>
Hey! I have a quick newbie question. How can I have specific parts of code run depending on the command run? In other words, how can I setup something like this: `ruby test.rb print 10i394` where print is a method/class that takes in the input from the command
<nahtnam>
if that makes sense
banistergalaxy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nahtnam>
An example to my poorly worded question is:
Tab__ has quit [Quit: This computer has gone to sleep]
InhalingPixels has quit [Ping timeout: 260 seconds]
Shidash has quit [Ping timeout: 260 seconds]
<nahtnam>
(Pretend git is a ruby program). To run git, you would have to type `ruby git.rb` which would run the whole program. But the user only wants to push his code. How can I setup a ruby application so that when `ruby git.rb push` is typed, only run part of the code
<nahtnam>
nobitanobi: So for this, if I run `ruby hello.rb hello`, it would print "hello"?
<nobitanobi>
try it
<nahtnam>
kk
<nobitanobi>
:)
Takle has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nahtnam>
nobitanobi: Yay! That was exactly what I was looking for. Are there more examples off of the documentation or something. How can I limit the args to only two and stuff like that?
michaeldeol has joined #ruby
CorySimmons has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
newUser1234 has joined #ruby
mkaesz has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
<nahtnam>
nobitanobi: Just found out about optionparser! Thanks!
<nobitanobi>
nahtnam: sorry I was out
ClarusCogitatio has quit [Ping timeout: 260 seconds]
<nahtnam>
np
<nahtnam>
thanks
<nobitanobi>
I'm glad you found something useful!
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
newUser1234 has quit [Ping timeout: 240 seconds]
newUser1234 has joined #ruby
tkuchiki has joined #ruby
ClarusCogitatio has joined #ruby
mkaesz has quit [Ping timeout: 255 seconds]
d4nk_ has quit [Remote host closed the connection]
charliesome has joined #ruby
sylvanica has joined #ruby
newUser1234 has quit [Ping timeout: 255 seconds]
newUser1234 has joined #ruby
chrishough has joined #ruby
Wolland has joined #ruby
lkba has joined #ruby
newUser1234 has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
newUser1234 has joined #ruby
chrishough has quit [Client Quit]
cy has quit [Ping timeout: 272 seconds]
Wolland has quit [Ping timeout: 245 seconds]
cap has joined #ruby
diegovio1 has joined #ruby
_0xf_ has quit [Ping timeout: 250 seconds]
diegoviola has quit [Ping timeout: 240 seconds]
newUser1234 has quit [Ping timeout: 260 seconds]
sylvanica has quit [Quit: Leaving]
sylvanica has joined #ruby
cy has joined #ruby
ClarusCogitatio has quit [Ping timeout: 245 seconds]
cap has quit [Remote host closed the connection]
cap has joined #ruby
diegoviola has joined #ruby
diegovio1 has quit [Read error: Connection reset by peer]
OffTheRails has quit [Ping timeout: 245 seconds]
ClarusCogitatio has joined #ruby
asteve has joined #ruby
Cheezebox has joined #ruby
cap has quit [Ping timeout: 264 seconds]
Matadoer has quit [Remote host closed the connection]
klmlfl has joined #ruby
geggam has quit [Ping timeout: 244 seconds]
chrishough has joined #ruby
chrishough has quit [Client Quit]
newUser1234 has joined #ruby
newUser1234 has quit [Read error: Connection reset by peer]
philcris_ has joined #ruby
newUser1234 has joined #ruby
ClarusCogitatio has quit [Ping timeout: 250 seconds]
whyy has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ClarusCogitatio has joined #ruby
philcris_ has quit [Ping timeout: 255 seconds]
newUser1234 has quit [Ping timeout: 246 seconds]
axilla has joined #ruby
whyy has quit [Ping timeout: 246 seconds]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
farn has quit [Remote host closed the connection]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
zeroNones has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
axilla has quit [Ping timeout: 250 seconds]
iamjarvo has joined #ruby
newUser1234 has joined #ruby
Panicky has joined #ruby
newUser1234 has quit [Ping timeout: 246 seconds]
cpruitt has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
zz_anildigital is now known as anildigital
cap has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
<nahtnam>
newbie ruby question. How can I make this if NOT. if number.is_an_integer? I dont know where to put the !
tylerkern has joined #ruby
<nahtnam>
Oh wait
<nahtnam>
nvm
klmlfl has quit [Quit: klmlfl]
<zenspider>
nahtnam: glad you figured it out, but you should practice improving your questions
<robscormack>
Inside: then an interface is a class
<robscormack>
Ruby doesn't have interfaces like Java or PHP.
<pontiki>
i'm trying to derive the meaning of that response to my query....
<Inside>
haha
<Inside>
I mean you bring up a good point
<Inside>
and I don't have any counterpoint
oo_ has joined #ruby
<pontiki>
ah
<robscormack>
Inside: as pontiki is pointiking (haha)... if an assembly has many parts, then an assembly is a subclass of part adding the array of parts inside.
<robscormack>
(considering that a part will never have parts inside)
<pontiki>
that's called "pontikificating"
<Inside>
haha.
ryan__ has quit [Quit: Leaving]
<Inside>
oh hell, I don't even need to use inheritance then
<robscormack>
but that is only if a part never has parts inside.
<Inside>
a part that has parts inside is an assembly then
<robscormack>
yes sir.
<Inside>
by definition
<pontiki>
i'm seeing there needs to be any distinction or subclassing at all. *quack*
<Inside>
should there be a no/not somewhere in there ^?
<robscormack>
if it quacks like a duck, it's a duck.
<Inside>
we use a really ancient system for storing assemblies & parts at work so I'm trying to write something for me/my department to use to browse through them :p
newUser1234 has quit [Ping timeout: 246 seconds]
newUser1_ has joined #ruby
<Inside>
the current system is "log into VM" > "open up ancient MS access app" > "navigate through a million sub menus" heh
<pontiki>
i'm *not* seeing; yes, thanks
cy has quit [Quit: died of rabies]
<Inside>
okay great
<Inside>
yeah, I'll just go with that
<Inside>
thanks!
<Inside>
and holy crap, the Tropico4 authentication servers need to send me the authentication email already
<Inside>
that's just ridiculous
<pontiki>
didja check spam?
<Inside>
yes :(
<pontiki>
i know, but it has to be asked
arya_ has joined #ruby
<Inside>
it went on sale today; people on reddit are saying it's taking them 4+ hours to get the email
<pontiki>
are they doing it by hand? they must be...
relix has joined #ruby
newUser1_ has quit [Ping timeout: 245 seconds]
<pontiki>
way back in the dark ages of e-mail, the proprietary e-mail system had mail trucks run once an hour
Jackneill has joined #ruby
newUser1234 has joined #ruby
<Inside>
you mean like a cron job or something?
<pontiki>
which also meant an e-mail that needed to hop from exchange to exchange might miss a truck and have to wait nearly another hour
w09x has quit [Ping timeout: 250 seconds]
<pontiki>
something; it wasn't unix
Vile` has quit [Ping timeout: 250 seconds]
<Inside>
I just don't get why a single player needs authentication from a central server
<pontiki>
we live in the days of bad DRM and stupid decisions
<Inside>
pretty much
<pontiki>
IOW, normal life :)
oo_ has quit [Ping timeout: 260 seconds]
starless has quit [Quit: Leaving]
Vile` has joined #ruby
newUser1_ has joined #ruby
newUser1234 has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
<nahtnam>
Hey! I have an array with a list of letter. I want to map each letter to a number (A = 1, B = 2, etc), and then run through the array and convert everything to numbers. What is the best way to map a letter to a number?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
because there is a clear decline for ruby in the context of how javascript became more important, on github based projects
<shevy>
and logically, when javascript becomes more popular, all web-orientated languages will also benefit indirectly
<shevy>
"A downward slope does not mean fewer repositories are being created. It does mean, however, that other languages are gaining repositories faster"
hellangel7 has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
sevenseacat has joined #ruby
newUser1234 has quit [Ping timeout: 246 seconds]
newUser1_ has joined #ruby
axilla has joined #ruby
w09x has quit [Ping timeout: 255 seconds]
memph1s has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
newUser1_ has quit [Ping timeout: 240 seconds]
banister has joined #ruby
axilla has quit [Ping timeout: 260 seconds]
anaeem1_ has joined #ruby
newUser1234 has joined #ruby
diegoviola has quit [Ping timeout: 245 seconds]
froggy_ has joined #ruby
d4nk_ has joined #ruby
darkness has joined #ruby
darkness is now known as Guest64767
diegoviola has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
newUser1_ has joined #ruby
froggy__ has quit [Ping timeout: 255 seconds]
newUser1234 has quit [Ping timeout: 246 seconds]
d4nk_ has quit [Ping timeout: 245 seconds]
georgelappies has quit [Remote host closed the connection]
anaeem1 has joined #ruby
GriffinHeart has quit [Ping timeout: 245 seconds]
ptrrr has joined #ruby
georgelappies has joined #ruby
marr has quit [Ping timeout: 245 seconds]
newUser1_ has quit [Ping timeout: 240 seconds]
Sonny|3oy has joined #ruby
newUser1234 has joined #ruby
newUser1234 has quit [Ping timeout: 272 seconds]
newUser1234 has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
anaeem1 has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
o0oo0o has quit [Remote host closed the connection]
St_Marx has quit [Remote host closed the connection]
DrCode has quit [Write error: Broken pipe]
Boohbah has quit [Write error: Broken pipe]
Ankhers has quit [Write error: Connection reset by peer]
Boohbah has joined #ruby
lamasnik has joined #ruby
DrCode has joined #ruby
St_Marx has joined #ruby
o0oo0o has joined #ruby
oo_ has joined #ruby
newUser1234 has quit [Ping timeout: 245 seconds]
tjr9898 has quit [Remote host closed the connection]
<shevy>
does ruby stdlib have something that has a method called .use_stdout ?
<shevy>
(aside from rdoc)
tjr9898 has joined #ruby
georgelappies has quit [Remote host closed the connection]
claymore has joined #ruby
oo__ has joined #ruby
cpruitt has joined #ruby
keltvek has joined #ruby
oo_ has quit [Ping timeout: 244 seconds]
InhalingPixels has joined #ruby
georgelappies has joined #ruby
<Hanmac>
shevy what is your current problem?
havenwood has joined #ruby
cpruitt has quit [Client Quit]
GriffinHeart has joined #ruby
newUser1_ has joined #ruby
InhalingPixels has quit [Ping timeout: 246 seconds]
sigurding has joined #ruby
Sonny|3oy has quit [Remote host closed the connection]
Sonny|3oy has joined #ruby
newUser1_ has quit [Ping timeout: 245 seconds]
oo__ has quit [Remote host closed the connection]
newUser1234 has joined #ruby
oo_ has joined #ruby
bluish has quit [Quit: One step closer to oblivion.]
craigbowen3 has quit [Ping timeout: 255 seconds]
bluish has joined #ruby
diegoviola has quit [Ping timeout: 255 seconds]
marr has joined #ruby
maximski has joined #ruby
newUser1234 has quit [Ping timeout: 250 seconds]
newUser1234 has joined #ruby
havenwood has quit [Remote host closed the connection]
craigbowen3 has joined #ruby
havenwood has joined #ruby
oo_ has quit [Remote host closed the connection]
wald0 has quit [Quit: Lost terminal]
newUser1234 has quit [Read error: Connection reset by peer]
newUser1234 has joined #ruby
<shevy>
Hanmac there is some reassignment code going on
<shevy>
it is something like:
<shevy>
ri = RDoc::RI::Driver.new(hash)
<shevy>
ri.use_stdout = true
<shevy>
result = ''
<shevy>
$stdout = StringIO.new(result)
<shevy>
ri.display_method(original_input_here)
<shevy>
$stdout = STDOUT
<shevy>
in particular I am not entirely sure about those two $stdout assignments, and why StringIO is used
<Hanmac>
otherwise you cant get the output in a string
Fire-Dragon-DoL has joined #ruby
<shevy>
hmmm
ptrrr has quit [Quit: ptrrr]
newUser1234 has quit [Ping timeout: 260 seconds]
pandaant has joined #ruby
newUser1234 has joined #ruby
havenwood has quit [Remote host closed the connection]
<mahtennek>
given that my second part might contain (Faculty of Engineering -> Faculty of Science) or (Computing -> Faculty of Science), how can i grab the information ignoring all whitespaces etc
nfk has joined #ruby
poulet_a has joined #ruby
<shevy>
so your input string is? x = 'COM_CLIB : School of Computing -> Central Library ; ayg|{FwikxR{Ar@CDZx@oBx' ?
poulet_a has quit [Read error: Connection reset by peer]
<mahtennek>
yes
newUser1_ has joined #ruby
newUser1234 has quit [Ping timeout: 260 seconds]
<jhass>
.split(/:;/) ?
<jhass>
er
<mahtennek>
but there are cases where it could also contain x = 'COM_CLIB : Computing -> Central Library ; ayg|{FwikxR{Ar@CDZx@oBx
<jhass>
.split(/ [:;] /)
klaut has quit [Remote host closed the connection]
zettam has joined #ruby
<jhass>
>> "COM_CLIB : School of Computing -> Central Library ; ayg|{FwikxR{Ar@CDZx@oBx".split(/ [;:] /)
<eval-in>
jhass => ["COM_CLIB", "School of Computing -> Central Library", "ayg|{FwikxR{Ar@CDZx@oBx"] (https://eval.in/180115)
<jhass>
like that?
<mahtennek>
let me try that out
M-Technic has quit [Ping timeout: 240 seconds]
<mahtennek>
i tried using route_desc = line.split(/[:;]/).map { |desc| }
<mahtennek>
but it didn't work nicely
<shevy>
well did it work?
kirun has joined #ruby
M-Technic has joined #ruby
<jhass>
what did you expect and what did you get?
zettam_ has quit [Ping timeout: 240 seconds]
zettam_ has joined #ruby
<mahtennek>
apparently when it executed, I got COM_LIB\nSchool of Computing
anaeem1__ has joined #ruby
<mahtennek>
but it seemed to be together
oo_ has quit [Remote host closed the connection]
newUser1234 has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
phoo1234567 has quit [Quit: Leaving]
newUser1_ has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
<mahtennek>
i guess the solution you guys suggested might just work
zettam has quit [Ping timeout: 240 seconds]
mkaesz has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby
zettam has joined #ruby
<mahtennek>
i want to map these values to a variable.
<mahtennek>
that's why i tried using .map
<shevy>
huh
phoo1234567 has joined #ruby
<shevy>
I did not know .map is used to map to a variable
Photism has quit [Quit: Leaving]
phoo1234567 has quit [Max SendQ exceeded]
zettam_ has quit [Ping timeout: 240 seconds]
<mahtennek>
as in, i wanted to be able to put these data into a variable. name = "COM_LIB"; desc="School of Computing -> Central Library"; code="ag...."
phoo1234567 has joined #ruby
<mahtennek>
maybe i am not too sure how this works, you could advise
<Nowaker>
mahtennek: what if theres a - in book name?
<mostlybadfly>
pontiki: sorry really late now but it was Andrew Bird.
<jhass>
mahtennek: do name, desc, code = line.split(/ [;:] /)
newUser1234 has quit [Read error: Connection reset by peer]
<mahtennek>
jhass: ok.
newUser1234 has joined #ruby
oo_ has quit [Ping timeout: 264 seconds]
<mahtennek>
jhass: i did that, it threw out the entire result instead of individual records
<mahtennek>
jhass: am i missing something?
<shevy>
>> name, desc, code = "COM_CLIB : School of Computing -> Central Library ; ayg|{FwikxR{Ar@CDZx@oBx"; desc
<mr_snowf1ake>
but shevy, i've already converted a few people from other languages. haven't i contributed enough in that regard? :/
<shevy>
not enough
<bMalum>
>> loop do puts "this line will be executed for an infinite amount of time" end
<shevy>
php is still more popular than ruby is
newUser1_ has quit [Ping timeout: 264 seconds]
<shevy>
bMalum I think such code is intercepted
fgo_ has joined #ruby
<mahtennek>
any idea if i were to push to git repo, and if my source codes contains sensitive passwords, how can i remove these passwords from my git repo? should i use .gitignore?
yfeldblum has quit [Ping timeout: 260 seconds]
fgo has quit [Ping timeout: 240 seconds]
<mr_snowf1ake>
shevy: i think it would be more beneficial to make php less popular than ruby more popular since php should be purged anyway
newUser1234 has joined #ruby
<Hanmac>
mr_snowf1ake: the problem would be that rails is still more popular than ruby for the world ...
bMalum has quit [Remote host closed the connection]
freerobby has joined #ruby
<mr_snowf1ake>
Hanmac: that's really true....
<mr_snowf1ake>
it makes me sad.
jottr has joined #ruby
<mr_snowf1ake>
when i say "ruby" people are like "web language?"
bMalum has joined #ruby
<jhass>
mahtennek: did you already push or did you accidentally commit them?
newUser1234 has quit [Ping timeout: 246 seconds]
<shevy>
mr_snowf1ake that can not work, there is too much investment into the current infrastructure - just look that COBOL is still used
<mahtennek>
jhass: not yet. just wondering how can i go about before i push them
<shevy>
mr_snowf1ake ruby would have to provide compelling advantages over php on the web
<mr_snowf1ake>
shevy: but i'm not interested in web... :(
<shevy>
perl was not interested in the web aside from cgi either
<jhass>
mahtennek: read them from environment variables or make your code read a config file, the config itself should be in .gitignore, just commit an example file that has to be copied over and edited
banister has joined #ruby
<mahtennek>
jhass: yup im reading from a config file. so i just declare my config file in .gitignore. cool! thanks
jottr has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
nateberkopec has joined #ruby
<dorei>
Are there any ruby without rails jobs? :)
Cheezebox has joined #ruby
<mr_snowf1ake>
curious, was why also an irc'er?
<mr_snowf1ake>
like, was there a time he lounged this channel?
newUser1_ has joined #ruby
obs has quit [Quit: Saliendo]
craigbowen3 has joined #ruby
obs has joined #ruby
philcrissman has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
newUser1234 has joined #ruby
newUser1_ has quit [Ping timeout: 245 seconds]
GriffinHeart has joined #ruby
<mr_snowf1ake>
awww i want to try playing with qt in ruby but qtruby is apparently dead and the only other bindings i could find only works on ruby 1.9.3 or ruby 2.0
xcv has joined #ruby
axilla has joined #ruby
axl_ has joined #ruby
axl_ has quit [Client Quit]
<peret>
dorei: sure, in the sysadmin realm
mercerist has quit [Quit: Computer has gone to sleep.]
whyy has joined #ruby
philcrissman has quit [Ping timeout: 264 seconds]
newUser1234 has quit [Read error: Connection reset by peer]
newUser1234 has joined #ruby
GriffinHeart has quit [Ping timeout: 272 seconds]
<shevy>
mr_snowf1ake he was sometimes on channels like #shoes
Martxel has joined #ruby
axilla has quit [Ping timeout: 240 seconds]
<shevy>
not sure whether he was here
<mr_snowf1ake>
ahh, makes sense for him to be on #shoes ofc.
d4nk_ has joined #ruby
charliesome has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
newUser1_ has joined #ruby
whyy has quit [Ping timeout: 272 seconds]
newUser1234 has quit [Ping timeout: 264 seconds]
asteve has joined #ruby
johncamelion1 has left #ruby [#ruby]
maoko has joined #ruby
_0xf_ has joined #ruby
freerobby has quit [Quit: Leaving.]
patrick99e99 has joined #ruby
yfeldblum has joined #ruby
Cheezebox has quit [Remote host closed the connection]
cy has joined #ruby
d4nk_ has quit [Ping timeout: 240 seconds]
Neomex has quit [Read error: Connection reset by peer]
gregf has quit [Quit: WeeChat 0.4.3]
newUser1234 has joined #ruby
newUser1_ has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
autochthon has joined #ruby
Guest64767 has quit [Read error: Connection reset by peer]
patrick99e99 has quit [Ping timeout: 250 seconds]
hellangel7 has joined #ruby
newUser1234 has quit [Ping timeout: 250 seconds]
newUser1234 has joined #ruby
klmlfl has joined #ruby
axilla has joined #ruby
gregf has joined #ruby
chipotle has joined #ruby
newUser1_ has joined #ruby
newUser1234 has quit [Ping timeout: 272 seconds]
mercerist has joined #ruby
Squarepy has joined #ruby
koderok has joined #ruby
newUser1_ has quit [Ping timeout: 260 seconds]
newUser1234 has joined #ruby
merceris_ has joined #ruby
oo_ has joined #ruby
mercerist has quit [Ping timeout: 245 seconds]
InhalingPixels has joined #ruby
timonv_ has joined #ruby
newUser1_ has joined #ruby
newUser1234 has quit [Ping timeout: 264 seconds]
sigurding has quit [Quit: sigurding]
oo_ has quit [Ping timeout: 272 seconds]
krz has joined #ruby
chipotle has quit [Ping timeout: 244 seconds]
bmurt has joined #ruby
InhalingPixels has quit [Ping timeout: 245 seconds]
shredding has joined #ruby
newUser1_ has quit [Read error: Connection reset by peer]
newUser1234 has joined #ruby
starkhalo has joined #ruby
chipotle has joined #ruby
mercwithamouth has joined #ruby
newUser1234 has quit [Ping timeout: 250 seconds]
newUser1_ has joined #ruby
claymore has quit [Quit: Leaving]
atmosx has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
axilla has quit [Ping timeout: 272 seconds]
ValicekB has quit []
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sevenseacat has quit [Remote host closed the connection]
W0rmDr1nk has joined #ruby
newUser1_ has quit [Ping timeout: 255 seconds]
newUser1234 has joined #ruby
Lewix has joined #ruby
mahtennek has quit []
newUser1234 has quit [Ping timeout: 272 seconds]
newUser1_ has joined #ruby
aspiers has quit [Ping timeout: 272 seconds]
axilla has joined #ruby
jgt has joined #ruby
jshultz has quit [Quit: Connection closed for inactivity]
<wox>
oh so apparently i have to link against readline. what a pita
relix has joined #ruby
IceDragon has joined #ruby
craigbowen3 has quit [Ping timeout: 240 seconds]
chipotle_ is now known as chipotle
Xeago has joined #ruby
klmlfl has quit [Read error: Connection reset by peer]
klmlfl has joined #ruby
philcrissman has joined #ruby
agent_white has joined #ruby
georgelappies has quit [Remote host closed the connection]
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matchaw has quit [Ping timeout: 264 seconds]
nateberkopec has quit [Quit: Leaving...]
<shevy>
wox ext/readline keeps the readline bindings
<shevy>
completion is only available if you have a ruby with those bindings compiled
<shevy>
this is from a source tarball like ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.bz2 - some distribution's ruby does not have readline support compiled in by default
philcrissman has quit [Ping timeout: 244 seconds]
whyy has joined #ruby
<wox>
yeah i noticed, guess arch doesn't
<jhass>
arch does
<wox>
oh it should?
<shevy>
jhass is also using arch
<wox>
i got that, mine doesn't seem to have it though
<havenwood>
bure: 2.0 went to bitmap marking, so it's CoW friendly, but generational stuff landed in 2.1
jrunning_ is now known as jrunning
momomomomo has quit [Client Quit]
<bure>
ok, i have hash of array, array is the value of the hash, and this array holds objects. i will recycle the array, what happens to those objects?
axilla has quit [Ping timeout: 264 seconds]
<bure>
by setting array = nil
bmurt has joined #ruby
<waxjar>
if they're not referenced anywhere else, the GC will pick them up
rdavila has joined #ruby
<waxjar>
if they are, they won't be picked up
axilla has joined #ruby
<havenwood>
bure: the bitmap corresponding to them gets marked
<havenwood>
bure: on the next sweep, poof
ghr has quit [Ping timeout: 240 seconds]
momomomomo has joined #ruby
arup_r has quit [Quit: Leaving.]
relix has joined #ruby
<havenwood>
or i guess doesn't get marked, rather :P
<havenwood>
bure: if you're interested in details, try googling: bitmap marking ruby 2.0
cap has joined #ruby
Morkel has joined #ruby
Cheezebox has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
<bure>
thank u
fgo has joined #ruby
mercerist has joined #ruby
CorySimmons has quit [Quit: Bye!]
mercerist has quit [Client Quit]
mercerist has joined #ruby
mweshi has quit [Quit: mweshi]
fgo has quit [Ping timeout: 250 seconds]
krz has quit [Quit: WeeChat 0.4.3]
qmfnp has joined #ruby
Spami has joined #ruby
nfk has joined #ruby
agjacome_ has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 255 seconds]
cap has quit [Remote host closed the connection]
jerikl has joined #ruby
cap has joined #ruby
msmith_ has quit [Remote host closed the connection]
agjacome has quit [Ping timeout: 260 seconds]
jottr has joined #ruby
cap has quit [Ping timeout: 240 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 260 seconds]
cap has joined #ruby
mweshi has joined #ruby
newUser1234 has quit [Remote host closed the connection]
jerikl has quit [Quit: jerikl]
newUser1234 has joined #ruby
bearish has joined #ruby
craigbowen3 has joined #ruby
thingmaker has quit []
nuck has joined #ruby
nobitanobi has joined #ruby
nat2610 has joined #ruby
mercerist has joined #ruby
newUser1234 has quit [Ping timeout: 246 seconds]
krisquigley has joined #ruby
anaeem1 has quit [Remote host closed the connection]
nat2610 has quit [Client Quit]
Cheezebox has joined #ruby
emmesswhy has joined #ruby
nateberkopec has joined #ruby
_main_ has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
fgo has joined #ruby
__main__ has quit [Ping timeout: 250 seconds]
momomomomo has quit [Quit: momomomomo]
axilla has quit [Ping timeout: 250 seconds]
skysploit has joined #ruby
skysploit has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
_main_ is now known as __main__
fgo has quit [Ping timeout: 260 seconds]
Rylee has quit [Remote host closed the connection]
krisquigley has joined #ruby
Rylee has joined #ruby
anaeem1 has joined #ruby
benzrf is now known as benzrf|offline
tectonic has quit []
Pharaoh2 has joined #ruby
claymore has quit [Ping timeout: 245 seconds]
InhalingPixels has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
claymore has joined #ruby
rubytor has quit [Quit: No Ping reply in 180 seconds.]
mary5030 has quit [Remote host closed the connection]
rubytor has joined #ruby
advorak has quit [Ping timeout: 245 seconds]
TieSoul has quit [Ping timeout: 255 seconds]
thoolihan has quit [Ping timeout: 264 seconds]
codecop has joined #ruby
newUser1234 has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Aranshada|W_ has quit [Ping timeout: 240 seconds]
thoolihan has joined #ruby
axilla has joined #ruby
krisquigley has quit [Remote host closed the connection]
ghr has joined #ruby
georgelappies has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
gilest has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
o0oo0o has quit [Ping timeout: 264 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
bearish has quit [Remote host closed the connection]
o0oo0o has joined #ruby
mercerist has joined #ruby
krisquigley has joined #ruby
charliesome has joined #ruby
codecop has quit [Remote host closed the connection]
Mweshi_ has joined #ruby
codecop has joined #ruby
codecop_ has joined #ruby
ursooperduper has joined #ruby
philcrissman has joined #ruby
codecop has quit [Client Quit]
roshanavand has quit [Ping timeout: 245 seconds]
decoponio has quit [Quit: Leaving...]
nuck has quit [Ping timeout: 244 seconds]
arya__ has quit [Ping timeout: 255 seconds]
w1xz has quit [Ping timeout: 255 seconds]
osvico has joined #ruby
ARCADIVS has joined #ruby
anaeem1 has quit [Remote host closed the connection]
Cheezebox has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 250 seconds]
philcrissman has quit [Ping timeout: 264 seconds]
BBBThunda has joined #ruby
nuck has joined #ruby
jottr_ has joined #ruby
advorak has joined #ruby
advorak has quit [Max SendQ exceeded]
advorak has joined #ruby
whyy has joined #ruby
robustus has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
Soda has quit [Remote host closed the connection]
St_Marx has quit [Quit: Ex-Chat]
mweshi has quit [Quit: mweshi]
Mweshi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Cheezebox has joined #ruby
Ilyas has joined #ruby
Ilyas has quit [Max SendQ exceeded]
whyy has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
nuck has quit [Ping timeout: 245 seconds]
St_Marx has joined #ruby
cap has quit [Read error: Connection reset by peer]
gilest has quit [Remote host closed the connection]
cap has joined #ruby
krisquigley has quit [Remote host closed the connection]
Darkchaos2 has joined #ruby
Cheezebox has quit [Remote host closed the connection]
Darkchaos has quit [Ping timeout: 250 seconds]
Taranis has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
cap has quit [Read error: Connection reset by peer]
cap has joined #ruby
nuck has joined #ruby
thingmaker has joined #ruby
skysploit has quit [Remote host closed the connection]
qmfnp has quit [Ping timeout: 244 seconds]
razum2um has joined #ruby
HarD2Beat has joined #ruby
thingmaker has quit [Client Quit]
IotaSpencer has joined #ruby
heftig has quit [Quit: Quitting]
axilla has quit [Ping timeout: 240 seconds]
heftig has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
stef_204 has joined #ruby
jabbott has joined #ruby
<jabbott>
Could someone please tell me why this is happening: http://goo.gl/ArFusj one is development environment and the other is production. It seems like it's not loading css or something...
bure has quit [Ping timeout: 246 seconds]
HarD2Beat has left #ruby [#ruby]
Cache_Money has joined #ruby
agjacome has joined #ruby
OffTheRails has quit [Ping timeout: 255 seconds]
stef_204 has quit [Client Quit]
nobitanobi has quit [Remote host closed the connection]
nuck has quit [Ping timeout: 272 seconds]
advorak has quit [Read error: Connection reset by peer]
agjacome_ has quit [Ping timeout: 260 seconds]
advorak has joined #ruby
krisquigley has joined #ruby
chipotle has quit [Quit: cya]
Spami has quit [Quit: This computer has gone to sleep]
fgo has joined #ruby
Spami has joined #ruby
<jhass>
jabbott: #rubyonrails and that is expected behaviour. In production mode you're supposed to put a reverse proxy in front that serves the precompiled assets
_crowell has left #ruby [#ruby]
krisquigley has quit [Remote host closed the connection]
jabbott has left #ruby [#ruby]
axsuul has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
skysploit has joined #ruby
nuck has joined #ruby
anaeem1_ has joined #ruby
kquig has joined #ruby
skysploit has quit [Ping timeout: 244 seconds]
cap has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
cap has joined #ruby
kquig has quit [Read error: Connection reset by peer]
<confused_>
Which version of ruby should I install for Windows 8 and Linux Ubuntu?
KnownSyntax_ has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
hamsterslayer has joined #ruby
<kephra>
confused_, pick same version for Windows, that is considered stable by Ubuntu
<Hanmac>
confused_: "2.1.2" if possible says the topic
<xlii>
kephra: No monthly fee is a lie, it's essentialy pay-to-win
Takle has joined #ruby
mojo619 has quit [Quit: mojo619]
<confused_>
I have a question.
<confused_>
I know this is a retarded question, please don't crticize me since I am new to programming.
<kephra>
xlii, or even worse - pay or starve to death
<confused_>
What is the difference between 1.9.3 and 2.1.2?
<confused_>
Is it more functions and stuff like that?
georgelappies has quit [Remote host closed the connection]
<confused_>
I had 1.9.3 in the past but my computer deleted my programs.
KnownSyntax__ has quit [Ping timeout: 260 seconds]
newUser1234 has quit [Remote host closed the connection]
cuppscakes has quit [Quit: Disconnected]
newUser1234 has joined #ruby
<pontiki>
that's by no means a short or simple answer
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<pontiki>
what i'm curious about is how your computer chose to act on it's own
echevemaster has joined #ruby
mweshi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cheezebox has quit [Remote host closed the connection]
<kephra>
confused_, I think most important change between 1.9.x and 2.x was that UTF8 is now default encoding for scripts
johnmolina has quit []
newUser1234 has quit [Ping timeout: 255 seconds]
JBreit has quit [Read error: Connection reset by peer]
<confused_>
kephra: Can you please explain to me what UTF8 is and encoding for scripts? What is a script?
<confused_>
This is interesting.
jottr has joined #ruby
<kephra>
UTF8 is an encoding to wrap unicode into 8bit - its a pain in the ass, created by plan 9 from outer space - and as bad as the movie
axl_ has joined #ruby
<pipework>
lol
KnownSyntax_ has joined #ruby
newUser1234 has joined #ruby
rdavila has quit [Quit: rdavila]
newUser1234 has quit [Remote host closed the connection]
<pontiki>
computing has been going steeply downhill we abandoned 6-bit CDC character set
KillerFox has quit [Ping timeout: 250 seconds]
newUser1234 has joined #ruby
axl_ has quit [Client Quit]
KnownSyntax__ has joined #ruby
<Hanmac>
apropos UTF8: i remember an old bug in the notepad editor from WindowsXp ... if you enter "no one likes gates" as string it did change the chars into japanise ones ;P
<pontiki>
that wasn't a bug
hamsterslayer is now known as haliax
jottr_ has quit [Ping timeout: 245 seconds]
bmurt has quit []
relix has quit [Ping timeout: 240 seconds]
<bhaak>
pontiki: pah! nothing beats the good old 5-bit baudot code!
newUser1234 has quit [Remote host closed the connection]
newUser1_ has joined #ruby
KillerFox has joined #ruby
<confused_>
kephra: What is unicode and 8bit? Encoding?
poulet_a has quit [Remote host closed the connection]
r_s has joined #ruby
relix has joined #ruby
autochthon has quit [Ping timeout: 245 seconds]
JBreit has joined #ruby
eivindml has joined #ruby
eivindml has quit [Max SendQ exceeded]
eivindml has joined #ruby
eivindml has quit [Max SendQ exceeded]
alexherbo2 has joined #ruby
krisquigley has joined #ruby
eivindml has joined #ruby
fgo has joined #ruby
krisquigley has quit [Remote host closed the connection]
<apeiros>
confused_ chose the correct nick?
krisquigley has joined #ruby
charliesome has quit [Quit: zzz]
peta_ has joined #ruby
mojo619 has joined #ruby
ARCADIVS has quit [Ping timeout: 240 seconds]
andrewlio has quit [Quit: Leaving.]
fgo has quit [Ping timeout: 245 seconds]
peta_ has quit [Remote host closed the connection]
rdavila has quit [Quit: rdavila]
o0oo0o has quit [Remote host closed the connection]
Cheezebox has joined #ruby
o0oo0o has joined #ruby
claymore has quit [Quit: Leaving]
aalmenar_ has quit [Quit: No Ping reply in 180 seconds.]
rubytor has quit [Quit: No Ping reply in 180 seconds.]
rubytor has joined #ruby
pygospa has joined #ruby
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
bearish has joined #ruby
virtualize has quit [Read error: Connection reset by peer]
virtualize has joined #ruby
bearish has quit [Ping timeout: 272 seconds]
benzrf|offline is now known as benzrf
philcrissman has joined #ruby
charliesome has joined #ruby
Squarepy has quit [Remote host closed the connection]
ghr has joined #ruby
Jackneill has quit [Remote host closed the connection]
jonahR has quit []
chipotle has quit [Quit: cya]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mweshi has joined #ruby
philcrissman has quit [Ping timeout: 246 seconds]
michaeldeol has joined #ruby
msmith_ has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
whyy has joined #ruby
KnownSyntax__ is now known as KnownSyntax
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
OffTheRails has joined #ruby
poulet_a has joined #ruby
rdavila has joined #ruby
bricker`LA has quit [Quit: leaving]
Wolland has joined #ruby
nfk has quit [Quit: yawn]
Wolland has quit [Remote host closed the connection]
yfeldblum has joined #ruby
havenwood has quit []
whyy has quit [Ping timeout: 272 seconds]
Wolland has joined #ruby
tylerkern has joined #ruby
Beoran_ has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
Wolland_ has joined #ruby
Morkel has quit [Quit: Morkel]
yfeldblum has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Wolland has quit [Ping timeout: 272 seconds]
jmc75 has joined #ruby
alpha123 has quit [Ping timeout: 260 seconds]
alpha123 has joined #ruby
brothmars has quit [Ping timeout: 264 seconds]
timonv_ has joined #ruby
jerikl has joined #ruby
MatthewsFace has joined #ruby
Ankhers has quit [Remote host closed the connection]
Wolland_ has quit [Remote host closed the connection]
Wolland has joined #ruby
Beoran_ has joined #ruby
axl_ has joined #ruby
nobitanobi has joined #ruby
mweshi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axl_ has quit [Client Quit]
xcv has joined #ruby
Wolland has quit [Ping timeout: 246 seconds]
saltsa has quit [Ping timeout: 255 seconds]
aZtec_ has joined #ruby
<aZtec_>
hello
Xe has left #ruby ["WeeChat 0.4.3"]
<MatthewsFace>
helllo
<aZtec_>
how would you test "typecasting" methods?
<MatthewsFace>
join #rubyonrails
<MatthewsFace>
oops
oooooio has joined #ruby
saltsa has joined #ruby
<aZtec_>
i have a method to_ics for an event class that returns an Ical object, i want to test that the return value of this method "makes sense" but i don't want to test the implementation of this Icalender::Bla Class
<nobitanobi>
dorei: I like the second approach. You give the serialized object to the storage.
dnyy_ has joined #ruby
<aZtec_>
dorei i would say this depends on the larger context
mweshi has joined #ruby
Inside has joined #ruby
jmc75 has quit [Excess Flood]
<dorei>
but they both seem ok, right?
fgo has joined #ruby
<dorei>
I think I agree with nobitanobi, I like B.rb more, but I can't reason about it, sort of like it's a matter a taste
saltsa has quit [Ping timeout: 250 seconds]
<pr0t>
/join #arduino
<pr0t>
heh
rdavila has quit [Quit: rdavila]
charliesome has quit [Ping timeout: 240 seconds]
rubytor has quit [Ping timeout: 250 seconds]
<aZtec_>
dorei both are definitly "ok"
michaeldeol has joined #ruby
<aZtec_>
i think it's imortant to understand the difference, which is loose coupling
fgo has quit [Ping timeout: 244 seconds]
codecop_ has quit [Quit: Išeinu]
<aZtec_>
in B, class A (man, choose different class names next time ;) ) has to make an assumption about datastore, which is, that it provides an actual_save method
rdavila has joined #ruby
charliesome has joined #ruby
<aZtec_>
in A, this is not inherent knowledge of the class, but instead some higher authority takes care of this
<aZtec_>
imo., loose coupling tends to introduce unnecessary complexity so I'd also go with the second approach
<aZtec_>
unless you intend to have many different classes like A and potentially some other classes similar to DataStore,
saltsa has joined #ruby
jerikl has quit [Quit: jerikl]
rubytor has joined #ruby
mweshi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mkaesz has quit [Remote host closed the connection]
Trieste has joined #ruby
einarj has joined #ruby
<dorei>
so, tight coupling sometimes is not a bad a thing?
LiohAu has joined #ruby
closer has quit [Ping timeout: 252 seconds]
razum2um has quit [Quit: Leaving.]
<aZtec_>
dorei, common notion seems to be that tight coupling is the worst thing ever ;)
<dorei>
hold on, there's a flying insect attacking me :S
failshell has joined #ruby
mweshi has joined #ruby
<Nilium>
Damned space invaders.
<Nilium>
Someone do me a favor and kickban oooooio
<aZtec_>
+1
closer has joined #ruby
<aZtec_>
dorei i think there is a tradeoff for loose coupling, which is code complexity...
nobitanobi has quit []
<aZtec_>
so the goal of loose coupling in general is maintainability. but if you introduce so much complexity in a seemingly simple task, that you have to spend half an hour before you understand what the *** you programmed a month ago, I'd say that's when tight coupling would have been better
nobitanobi has joined #ruby
nat2610 has joined #ruby
redondo has quit [Ping timeout: 246 seconds]
<dorei>
aZtec_: I see, thanx a lot for your insight :)
<aZtec_>
you're welcome
shredding has quit [Quit: shredding]
patrick99e99 has joined #ruby
<Nilium>
The main trouble with loose coupling is you'll usually end up writing a bunch of stuff to ensure things can still communicate but they just have to go through some sort of messaging system (where the message could be anything, call it signaling or something else if you want)
ghr has joined #ruby
<Nilium>
This can be great at times and it can just mean writing a lot more code at others
<Nilium>
At any rate, kind of depends on what you're doing.
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
jerikl has joined #ruby
patrick99e99 has quit [Ping timeout: 244 seconds]
jmbrown412 has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: zzz]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby
jarto has joined #ruby
cap_ has joined #ruby
jerikl has quit [Quit: jerikl]
cap has quit [Ping timeout: 240 seconds]
Inside has quit [Ping timeout: 240 seconds]
C0deMaver1ck has joined #ruby
timonv_ has quit [Remote host closed the connection]
FaresKAlaboud has quit [Quit: Quit~]
FaresKAlaboud has joined #ruby
jhass is now known as jhass|off
mweshi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mdugan_ is now known as mikedugan
axl_ has joined #ruby
LiohAu has quit [Ping timeout: 245 seconds]
axl_ has quit [Client Quit]
mkaesz has joined #ruby
krisquigley has quit [Remote host closed the connection]
newUser1_ has quit [Remote host closed the connection]
newUser1234 has joined #ruby
codebrah has joined #ruby
Shidash has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
mkaesz has quit [Ping timeout: 260 seconds]
circ-user-3Wi7N has joined #ruby
circ-user-3Wi7N has left #ruby [#ruby]
newUser1234 has quit [Ping timeout: 240 seconds]
OffTheRails has quit [Ping timeout: 240 seconds]
linojon has quit [Quit: linojon]
Grantlyk has joined #ruby
obs has quit [Quit: Saliendo]
cap_ has quit [Remote host closed the connection]
Sauvin has quit [Read error: Connection reset by peer]
cap has joined #ruby
Sauvin has joined #ruby
gtrak_ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poulet_a has quit [Remote host closed the connection]
Cheezebox has quit [Remote host closed the connection]
peret has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
eivindml has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OffTheRails has joined #ruby
fgo has joined #ruby
Cheezebox has joined #ruby
bearish has joined #ruby
Fezzler has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
linojon has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
axilla has joined #ruby
msmith_ has quit []
Nowaker has quit [Ping timeout: 255 seconds]
Nowaker has joined #ruby
riotjones has joined #ruby
bearish has quit [Ping timeout: 255 seconds]
advorak has quit [Quit: Leaving]
<agent_white>
BOOP
philcrissman has joined #ruby
codebrah has quit [Quit: Computer has gone to sleep.]
gilest has joined #ruby
<agent_white>
Nilium: How often do you find yourself really thinking about design patterns like that in the 'real world'? -- I've heard people say that they are good to know, but aren't often seen in the wild.
<Nilium>
I never think about design patterns, period.
<Nilium>
They're patterns because they describe stuff people already do and don't think about.
mkaesz has joined #ruby
* apeiros
thinks design patterns when he communicates others what he did
adamski2600 has quit []
<agent_white>
apeiros: Are you a design pattern?
<agent_white>
;D
msmith_ has joined #ruby
msmith_ has quit [Remote host closed the connection]
<apeiros>
I also see people who think design patterns when confronted with a problem as puzzle coders. trying to squeeze a puzzle piece into a free space.
<agent_white>
Ahhh.
oooooio was kicked from #ruby by apeiros [using the channel as a spam source is not welcome]
oooooio has joined #ruby
froggy__ has joined #ruby
oooooio was banned on #ruby by apeiros [*!*@21.Red-83-39-251.dynamicIP.rima-tde.net]
oooooio was kicked from #ruby by apeiros [using the channel as a spam source is not welcome]
<agent_white>
Yeah the only 'taste' I've gotten of it has been from POODR... but that felt more like "how to keep your program tidy".
philcrissman has quit [Ping timeout: 264 seconds]
<apeiros>
note: I do think it's good to have *seen* and understand design patterns. I'm just not a fan of puzzle coding :)
MockerRussia has quit [Ping timeout: 260 seconds]
<Nilium>
I just look at stuff as data-in -> transform -> data-out
<agent_white>
Ah good deal :) I guess I'll stumble into it when I do :D
andrewlio has joined #ruby
andrewlio has quit [Client Quit]
<Nilium>
How often the code actually looks like a straight transformation is a different matter since I mainly write game code and so there's tons of state and crap all over the palce
<Nilium>
place
<Nilium>
palace
mercerist has quit [Quit: Computer has gone to sleep.]
<agent_white>
:D
<agent_white>
Yeah I'm just hoping to catch onto some good leads at least... since once I begin to put my code into classes the whole world explodes.
spider-mario has quit [Read error: Connection reset by peer]
whyy has joined #ruby
froggy_ has quit [Ping timeout: 245 seconds]
<Nilium>
Only thing I'd suggest is that you avoid the sometimes strong urge to use inheritance.
<Nilium>
Since people starting out with classes usually like to go overboard with that crap.
mkaesz has quit [Ping timeout: 250 seconds]
Matadoer has joined #ruby
workmad3 has joined #ruby
Kilo`byte has quit [Ping timeout: 244 seconds]
jottr has quit [Ping timeout: 250 seconds]
Cheezebox has quit [Remote host closed the connection]
<agent_white>
Ah good deal... Sandy explained the pitfalls of it pretty well in POODR. I just haven't made anything complex enough to consider it.
<agent_white>
s/complex enough/work well enough
<agent_white>
;P
whyy has quit [Ping timeout: 250 seconds]
<Nilium>
Classes are good provided you don't try too hard to cram everything into classes (the Java problem)
<Nilium>
Inheritance is good provided you don't forget that there's composition and that not everything needs to inherit from something
axilla has quit [Ping timeout: 250 seconds]
m8 has quit [Quit: Sto andando via]
Kilo`byte has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<Nilium>
I have anime quotes for situations like this but I'm thankfully conscious enough to know that quoting anime is about as socially acceptable as kicking a baby into a busy street
ghr has joined #ruby
<wasamasa>
You Are (Not) Alone
* wasamasa
hides
mikeric has joined #ruby
<Nilium>
That looks familiar but I don't actually recognize it.
<wasamasa>
it's not a quote, that's why
<wasamasa>
in fact, it's a title
<Nilium>
That's probably why it looks familiar.
<Nilium>
Oh right, Evangelion, also known as the worst anime.
<agent_white>
Ikari Shinjikun pissed me off. He was such a fucking pussy for that whole series.
* agent_white
pardons his language
<Nilium>
kun isn't part of his name
<wasamasa>
hey, it's one of the few movies that have CGI I actually like
failshell has quit []
<wasamasa>
but yes, I've found more convincing depressing works over tme
<agent_white>
Ah... I must've misheard it :P
fubarbaz has joined #ruby
<Nilium>
Aside from that, nobody likes Shinji. In the original series he's practically a being made of tears.
fubarbaz has left #ruby [#ruby]
<Nilium>
The reboot movies are alright because they're just action movies, but at that point it's not really Evangelion
<agent_white>
Hahaha yeah he is.
rdavila_ has joined #ruby
<wasamasa>
heck, one of them even features a mecha looking painfully close to the original and underage children piloting it
<wasamasa>
something like a SSAX parser, but for code?
tyfighter has joined #ruby
<Nilium>
Far as I'm aware, it's for self-modifying code.
<wasamasa>
let's ask the guys on #lisp
dopie has joined #ruby
<dopie>
hey all
<wasamasa>
my guess is since S-Expressions and XML happen to look pretty similiar
<Nilium>
So, in the context of Lain and the code presented, probably for loading code in a form that allows you to work with it in code and then unwalk it so it's back to being code. That's my best guess anyway since I don't know what a code walker means in the context of Lisp.
<Nilium>
You shouldn't mention that thing about XML to Lisp folks.
<wasamasa>
well, they know already
<wasamasa>
and are pretty fine with DSLs that create HTML and such
<Nilium>
Considering the whole XML/S-expr 'war'
<dopie>
how do i call a puts method on this array [["2", "Hearts"], ["5", "Hearts"]] to display it as 2 of Hearts?? an each method iterates over each selection...
<Nilium>
dopie: What?
<dopie>
im calling an each.do on that array
<Nilium>
What?
<dopie>
and it puts it out like this
<dopie>
2
<dopie>
Hearts
<Nilium>
Put your code in a pastebin.
<dopie>
instead of 2 Hearts
<Nilium>
And then figure out what you're actually asking.