astrobunny has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 248 seconds]
havenn has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
havenwood has joined #ruby
jeramy_s has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Channel6 has joined #ruby
Joufflu has joined #ruby
x77686d has quit [Quit: x77686d]
<agent_white>
I am unbiased, and I know that R4iA IS the best resource! \o/
gaboesquivel has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
reinaldob has quit [Remote host closed the connection]
GeorgeThompson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zachrab has joined #ruby
<sevenseacat>
aw thanks.
<joe128>
GO RAILS
joe128 has quit [Quit: Leaving]
<sevenseacat>
if the stars align, there will be a final meap out any day, before the book goes into production.
hmsimha has joined #ruby
zacts has joined #ruby
<sevenseacat>
though i've been saying that for nearly two weeks now.
xtsee has quit []
ParmesanCaesar has joined #ruby
xtsee has joined #ruby
Rapier- has quit [Quit: (null)]
ringarin has quit [Ping timeout: 252 seconds]
badhatter has joined #ruby
badhatter has joined #ruby
iamninja_ has quit [Read error: Connection reset by peer]
jud has joined #ruby
nettoweb has quit [Ping timeout: 240 seconds]
zachrab has quit [Ping timeout: 244 seconds]
nettoweb has joined #ruby
moeabdol has joined #ruby
iamninja_ has joined #ruby
<agent_white>
No rush :)
fabrice31 has joined #ruby
<agent_white>
Never seen a 'rolling release' book before R4iA. It's pretty exciting to see all the changes happening as time goes on.
Pupeno_ has joined #ruby
rgb-one has joined #ruby
<sevenseacat>
I've never written one either so there you go!
Rollabunna has quit [Remote host closed the connection]
Pupeno has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
nettoweb_ has joined #ruby
ujihisa has joined #ruby
xtsee has quit []
mistermo_ has joined #ruby
tvw has quit [Read error: Connection reset by peer]
nettoweb has quit [Ping timeout: 246 seconds]
tvw has joined #ruby
tvw has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
reinaldob has joined #ruby
<xxneolithicxx>
the pro git book was the first rolling release book ive read
Hijiri has quit [Ping timeout: 248 seconds]
xtsee has joined #ruby
mistermocha has quit [Ping timeout: 245 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
reinaldob has quit [Remote host closed the connection]
amdbcg has joined #ruby
growlove has quit [Quit: Leaving]
x77686d has joined #ruby
Hijiri has joined #ruby
mrmargolis has quit [Remote host closed the connection]
dfinninger has quit [Ping timeout: 255 seconds]
GeorgeThompson has joined #ruby
mitchellhenke has joined #ruby
vdamewood has joined #ruby
willywos has joined #ruby
ringarin has joined #ruby
tvw has joined #ruby
davedev24_ has quit [Ping timeout: 245 seconds]
vivekananda has quit [Quit: Leaving]
vivekananda has joined #ruby
davedev24_ has joined #ruby
claptor has joined #ruby
GeorgeThompson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvw has quit [Ping timeout: 240 seconds]
balazs_ has joined #ruby
PaulCapestany has quit [Quit: .]
mistermo_ has quit [Ping timeout: 250 seconds]
wilornel has joined #ruby
<wilornel>
Hey guys. Is there no way to directly access an attribute of an object?
PaulCapestany has joined #ruby
plutonic has joined #ruby
<centrx>
wilornel, what do you mean exactly?
<xxneolithicxx>
mark it with attr_accessor, attr_writer, or attr_reader depending on your needs
arescorpio has quit [Excess Flood]
<centrx>
wilornel, an @instance_variable is an attribute of an object, but it is accessible only within the methods of the object, unless a getter and/or setter is defined
<centrx>
*getter/setter method
<wilornel>
I solved it by adding `attr_accessor :my_attribute`
<wilornel>
What's the idea behind this? All attributes should be private by default?
<centrx>
it's an important part of object-oriented programming
<centrx>
each object has a well-defined interface to the outside
<wilornel>
Yeah
oetjenj has quit [Ping timeout: 256 seconds]
fmcgeough has joined #ruby
<wilornel>
It's just some languages don't have the attributes as private by default
claptor has quit [Quit: this channel is bakas]
<centrx>
yeah Python is impure
<xxneolithicxx>
and some have both (c++)
<xxneolithicxx>
doesnt really matter just know the convention
<centrx>
unclean!
babykosh has quit [Quit: babykosh]
<sevenseacat>
soiled?
<wilornel>
xxneolithicxx: Agreed!
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
paradisaeidae has joined #ruby
vt102 has quit [Ping timeout: 265 seconds]
Rollabunna has joined #ruby
zerowaitstate has joined #ruby
blazes816 has quit []
ringarin has quit [Ping timeout: 245 seconds]
revoohc has joined #ruby
oetjenj has joined #ruby
<wilornel>
how do I break at the first exception? `catch ..`?
ramfjord has quit [Ping timeout: 250 seconds]
teddyp1cker has joined #ruby
GenghisKen has joined #ruby
GenghisKen has joined #ruby
MatthewsFace has quit [Read error: Connection reset by peer]
sohrab has quit [Ping timeout: 264 seconds]
MatthewsFace has joined #ruby
sohrab has joined #ruby
dodobrain has quit [Quit: bye... o/]
BTRE has joined #ruby
teddyp1cker has quit [Ping timeout: 256 seconds]
braincrash has quit [Quit: bye bye]
sohrab has quit [Ping timeout: 250 seconds]
scripore has quit [Quit: This computer has gone to sleep]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sevenseacat has quit [Quit: Me dun like you no more.]
sohrab has joined #ruby
bruno- has joined #ruby
nettoweb_ has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
vdamewood has quit [Quit: Computer has gone to sleep.]
nettoweb has joined #ruby
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
braincrash has joined #ruby
centrx has quit [Ping timeout: 256 seconds]
multi_io has quit [Ping timeout: 245 seconds]
plutonic_ has joined #ruby
plutonic has quit [Read error: Connection reset by peer]
plutonic_ is now known as plutonic
nettoweb has quit [Client Quit]
bruno- has quit [Ping timeout: 244 seconds]
dorei has quit []
mitchellhenke has quit [Quit: Computer has gone to sleep.]
x1337807x has joined #ruby
multi_io has joined #ruby
Akagi201 has quit []
djbkd has quit [Quit: My people need me...]
doodlehaus has joined #ruby
vivekananda has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
<paradisaeidae>
Not sure where you're at with the ideas of exceptions, thing is catch is used for control flow outside of exceptions.
vulix has joined #ruby
oetjenj has quit [Ping timeout: 256 seconds]
ujihisa has quit [Ping timeout: 256 seconds]
zorak8 has joined #ruby
juanpaucar has joined #ruby
reinaldob has joined #ruby
tus has quit []
doodlehaus has quit [Ping timeout: 265 seconds]
frem has quit [Quit: Connection closed for inactivity]
elfuego has quit [Quit: elfuego]
musashi1 has joined #ruby
jeramy_s has quit [Quit: Peace out!]
MXfive has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ebbflowgo has quit [Read error: Connection reset by peer]
MXfive has joined #ruby
sevenseacat has joined #ruby
ebbflowgo has joined #ruby
Rollabunna has quit [Ping timeout: 255 seconds]
freerobby has quit [Quit: Leaving.]
ianseyer has quit [Ping timeout: 246 seconds]
Rollabunna has joined #ruby
eones has joined #ruby
ianseyer has joined #ruby
juanpaucar has quit [Ping timeout: 240 seconds]
reinaldob has quit [Ping timeout: 256 seconds]
eones has quit [Client Quit]
moeabdol has quit [Quit: WeeChat 1.1.1]
failshell has joined #ruby
MXfive has quit [Ping timeout: 240 seconds]
ianseyer has quit [Read error: Connection reset by peer]
mrmargolis has joined #ruby
scripore has joined #ruby
yfeldblum has joined #ruby
ianseyer has joined #ruby
havenn has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
<musashi1>
would anyone recommend a graphical git client for *nix?
failshell has quit [Ping timeout: 245 seconds]
<sevenseacat>
i used giggle when i was on linux, but sparingly... typically just used the cli
krisquigley has joined #ruby
<Diabolik>
musashi1 are you on osx?
Dreamer3 has quit [Read error: Connection reset by peer]
GenghisKen has quit [Ping timeout: 256 seconds]
<musashi1>
no sir i am on ubuntu
<musashi1>
i use atlassion's program on osx but i don't have my mac with me
Pupeno has joined #ruby
havenwood has quit [Ping timeout: 248 seconds]
<musashi1>
sourcetree iirc
wwwbukolaycom has quit []
<wilornel>
paradisaeidae: Some debuggers allow to break when there is an exception, such that you print out the values of some variables before exiting the debugger
Pupeno_ has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
<paradisaeidae>
SOmetimes I use require 'pry';binding.pry in the rescue clause.
oetjenj has joined #ruby
mgberlin has joined #ruby
krisquigley has quit [Ping timeout: 276 seconds]
davedev24_ has quit []
tosbourn has joined #ruby
revoohc has quit [Quit: revoohc]
turtil has quit [Quit: WeeChat 1.1.1]
kyrylo has joined #ruby
Fezzler has joined #ruby
RegulationD has joined #ruby
mary5030 has joined #ruby
havenwood has joined #ruby
zerowaitstate has quit [Quit: Lost terminal]
tosbourn has quit [Ping timeout: 264 seconds]
havenn has quit [Ping timeout: 240 seconds]
kp666 has joined #ruby
nonnatus has joined #ruby
arup_r has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
psy_ has quit [Ping timeout: 250 seconds]
psy_ has joined #ruby
eones has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrmargolis has quit [Remote host closed the connection]
<xxneolithicxx>
shevy: no idea, but ill show them where they can pipe it overall
<shevy>
haha
armyriad has quit [Max SendQ exceeded]
sandelius has joined #ruby
penzur has joined #ruby
armyriad has joined #ruby
<arup_r>
shevy: how many years you are away from PhP ? :D
fenzil has quit [Ping timeout: 265 seconds]
<arup_r>
Radar: that's not what a moderator should do..
<arup_r>
You should give couple of warning
<arup_r>
then Kick
<xxneolithicxx>
i remember reading the Powershell documentation somewhere and it was like an oxymoronic statement saying that Powershell was a scripting language *not* designed for scripting and this was on MS own site.
<Radar>
Alright everyone, arup_r knows how to moderate channels
<arup_r>
Radar: you don't know.. that's why teaching you..
<Radar>
The kick *is* a warning
<Radar>
arup_r: You are not teaching me anything. You are preaching to the choir.
<arup_r>
come on.. grow up Man!
<arup_r>
you are an author don't forget...
<Radar>
arup_r: Now you're accusing me of being immature?
<Radar>
Way to go.
<Radar>
That's not going to anger me at all.
<penzur>
calm down guys
<Radar>
That's totally going to lead to a productive discussion.
tosbourn has quit [Remote host closed the connection]
<arup_r>
That's your way to take my words
<Radar>
arup_r: Short way of putting it: I don't care what you think.
<arup_r>
You shouldn't .... I don't too...
<shevy>
arup_r about ... 10 years I think
<shevy>
or 8, not sure
<Radar>
penzur: I'd appreciate it if you wouldn't call people bitches.
<shevy>
I went to linux in 2004, started with perl, then php for ~3 years; then ruby
<penzur>
sorry about that Radar
<arup_r>
Until you are logged in the channel... you have to care Radar
<shevy>
(give or take some months)
<arup_r>
shevy: ok
<Radar>
arup_r: shhhhh now
<shevy>
I actually was more productive with PHP than I was with perl. :\
<Radar>
arup_r: Either take this to PR where I can ignore you or I will +q you here.
<Radar>
PM*
<arup_r>
That's upto you
<shevy>
you guys should be girls
<shevy>
then you would not have to fight
<xxneolithicxx>
php, the web language that should sit right up there next to Java for sec vulns and shitty coding
<shevy>
php is like a melting pot
ohaibbq has quit [Ping timeout: 245 seconds]
<xxneolithicxx>
*not that the shitty coding is necessarily PHP's fault
<shevy>
you throw in good stuff, you throw in bad stuff, and nobody watches what is being cooked
<xxneolithicxx>
its the mutt of web languages?
<shevy>
python is like - they throw in only stuff that has been approved
<xxneolithicxx>
i can accept that, good analogy
SOLDIERz has joined #ruby
<shevy>
ruby is like, they put it a lot of stuff but it must be useful - pretty, or terse, or creative, or poetry
<shevy>
well, semi-useful
<shevy>
I still don't think @@vars are that useful
RegulationD has quit [Ping timeout: 245 seconds]
DerisiveLogic has joined #ruby
<penzur>
why you guys hating php?
<shevy>
penzur it is very inelegant
icebourg has quit []
<shevy>
it also is not really designed
<agent_white>
TAKE HIM TO THE GALLOWS!
<penzur>
i know, but what's the point?
GnuYawk has joined #ruby
<shevy>
what do you mean, what is the point
<shevy>
do you need a point
<xxneolithicxx>
you dont think class vars are useful?
<shevy>
there are so many points
<arup_r>
Radar: read what I said you in PM.. and do like that.. It is international channel.. So you HAVE to respect others Ego! That's it..
<shevy>
xxneolithicxx yeah. I can't recall code that requires them
hazelux has quit [Read error: Connection reset by peer]
<shevy>
that was misphrased - I meant, I can't recall code that would absolutely need class variables
<xxneolithicxx>
its basically static variables or once per class stuff, thats critical to OOP
zorak8 has quit [Ping timeout: 240 seconds]
<shevy>
yeah, like a counter. how many times a class was created
<shevy>
how often did you really need that?
oetjenj has joined #ruby
<xxneolithicxx>
well thats a simplified/dumbed down example of its use
<shevy>
you can give better examples of course :)
<xxneolithicxx>
i use it for creating class properties that are static and used once
<shevy>
class properties?
<xxneolithicxx>
sort of like enum type properties of a class
plutonic has joined #ruby
tagrudev has joined #ruby
<penzur>
why do you want a class properties?
tkuchiki has quit [Ping timeout: 245 seconds]
<xxneolithicxx>
because its values that are not going to change from instance to instance but need to be defined and accessible as properties of the class
<xxneolithicxx>
its used quite commonly, even if you havent run into in your own code, although i find it quite odd that you havent lol
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
lidenskap has quit [Remote host closed the connection]
<xxneolithicxx>
i have a RESTFUL API wrapper of two classes
<xxneolithicxx>
one class is a toplevel represents the API itself, it contains instances of a second class that represent resources accessible in API
<shevy>
awww Radar is weak :(
<Radar>
shevy: I can't win, can I? :)
<xxneolithicxx>
each resource instance has methods that are added dynamically based on the contents of a JSON file
<Radar>
Get accused of being immature for exercising my powers, and then get accused of being weak when I show forgiveness.
<xxneolithicxx>
so i can call api.resource.resource_method(params)
<shevy>
xxneolithicxx I have to leave here soon... I'll try to grab-up onto it (class properties) when I'll be back, right now my head isn't quite ready to accept input (it's still too early)
<xxneolithicxx>
the resource class has constants defined as class variables
<penzur>
i think shevy misunderstood the -q flag Radar
<Radar>
penzur: *shrug*
<xxneolithicxx>
the constants are arrays like request/response types (two types of XML responses and URL Encoded data ie)
<xxneolithicxx>
and other stuff
paradisaeidae has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.1/20150402191859]]
anaeem1 has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
Channel6 has quit [Quit: Leaving]
mengu has joined #ruby
ahmetkapikiran has joined #ruby
a5i has quit [Quit: Connection closed for inactivity]
iotouch has quit [Quit: This computer has gone to sleep]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
teddyp1cker has joined #ruby
riotjones has joined #ruby
polysics has quit [Remote host closed the connection]
polysics has joined #ruby
Spami has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki_ has joined #ruby
lidenskap has joined #ruby
aganov has joined #ruby
tkuchiki_ has quit [Read error: Connection reset by peer]
polysics has quit [Ping timeout: 245 seconds]
Audiodude has joined #ruby
charliesome has joined #ruby
iotouch has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
tkuchiki has joined #ruby
Mon_Ouie has quit [Ping timeout: 256 seconds]
speakingcode has joined #ruby
Audiodude is now known as audiodude
vulix has quit [Ping timeout: 246 seconds]
werelivinginthef has joined #ruby
swedishfish has quit [Quit: WeeChat 1.1.1]
Zamyatin has joined #ruby
phrozen77 has joined #ruby
phrozen77 has quit [Changing host]
evanjs has joined #ruby
rippa has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
Zamyatin has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.1/2015040300]]
reinaldob has quit [Ping timeout: 245 seconds]
DerisiveLogic has quit [Ping timeout: 245 seconds]
DavidDudson has joined #ruby
penzur has quit [Quit: WeeChat 1.0]
evanjs has quit [Remote host closed the connection]
werelivinginthef has quit [Ping timeout: 244 seconds]
timonv has quit [Ping timeout: 256 seconds]
oo_ has quit [Read error: Connection reset by peer]
<flughafen>
certainty: today is the last day
rkazak has left #ruby [#ruby]
oo_ has joined #ruby
<flughafen>
maybe I shouldn't have pasted 800kb of text in the python interperter
ta has quit [Ping timeout: 276 seconds]
<avril14th>
moin
yfeldblum has joined #ruby
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wpp has joined #ruby
krz has quit [Read error: Connection reset by peer]
hs366 has quit [Quit: Leaving]
cats has quit [Ping timeout: 255 seconds]
Spami has quit [Quit: This computer has gone to sleep]
x77686d has joined #ruby
bruno- has joined #ruby
cats has joined #ruby
bruno- is now known as Guest46707
x77686d has quit [Client Quit]
<adaedra>
moin
timonv has joined #ruby
<flughafen>
moin
yfeldblu_ has joined #ruby
bayed has joined #ruby
grindmodeon has quit [Quit: Leaving.]
sigurding has joined #ruby
<sevenseacat>
uıoɯ
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest46707 has quit [Ping timeout: 255 seconds]
<adaedra>
/o\
<hanmac1>
flughafen: be happy! i learned yesterday that the php interpreter in interactive mode like irb doesnt support "UTF-8" ... i mean how shitty is that!?
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
<adaedra>
PHP-shitty
yfeldblum has quit [Ping timeout: 264 seconds]
<adaedra>
is it really a surprise for you?
shevy has quit [Ping timeout: 252 seconds]
<hanmac1>
looking back yeah it shouldnt be a big suprise for me
<sevenseacat>
unicode support was coming in php 6, wasnt it
quimrstorres has quit [Remote host closed the connection]
elfuego has joined #ruby
<hanmac1>
sevenseacat: hm ok my php is still 5.5 ... but if i remember correctily isnt php6 skipped because of some older books with that title? and jumped directly to php7? ;p
<sevenseacat>
something like that, they thought php6 was too hard
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
universa1 is now known as universal
ianseyer has quit [Read error: Connection reset by peer]
universal is now known as universa1
bMalum_ has joined #ruby
ianseyer has joined #ruby
kp666 has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
Pupeno_ has quit [Quit: Leaving...]
nhhagen has joined #ruby
bMalum has quit [Ping timeout: 245 seconds]
bMalum_ is now known as bMalum
Pupeno has joined #ruby
ianseyer has quit [Read error: Connection reset by peer]
juanpaucar has quit [Ping timeout: 250 seconds]
DavidDudson has joined #ruby
krz has quit [Ping timeout: 250 seconds]
ianseyer has joined #ruby
DavidDudson has quit [Client Quit]
zachrab has joined #ruby
DavidDudson has joined #ruby
Igorshp has joined #ruby
withnale2_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
<withnale2_>
For some reason I thought that ruby2.x introduced the ability to set an instance variable from a method parameter list... something like 'def method(@param)'. However that doesn't work. Did I imagine it, or is there a different syntax?
<sevenseacat>
i havent seen that syntax
krisquigley has joined #ruby
ferr has quit [Quit: WeeChat 1.1.1]
Cust0sL1men has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_Andres has joined #ruby
DavidDudson has quit [Ping timeout: 246 seconds]
zachrab has quit [Ping timeout: 255 seconds]
canton7 has quit [Ping timeout: 265 seconds]
sevenseacat has quit [Quit: Me dun like you no more.]
mengu has quit [Remote host closed the connection]
wpp has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
vtunka has joined #ruby
canton7 has joined #ruby
canton7 has quit [Changing host]
canton7 has joined #ruby
quimrstorres has joined #ruby
_Andres has quit [Read error: No route to host]
krisquigley has quit [Ping timeout: 248 seconds]
iamninja_ has joined #ruby
<jhass>
withnale2_: Crystal does that
tvw has joined #ruby
sevvie has joined #ruby
doritostains has quit [Ping timeout: 245 seconds]
quimrstorres has quit [Remote host closed the connection]
<ntz>
I tried to put it here: @client = OnStomp::Client.new("stomp://#{@host}:#{@port}", :login => @user, :passcode => @password.value)
<ntz>
but it didn't work
roshanav1 has joined #ruby
sevenseacat has joined #ruby
elfuego has quit [Quit: elfuego]
bMalum has quit [Quit: bMalum]
krz has joined #ruby
nfk has joined #ruby
imanzarrabian has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr has joined #ruby
ponga has joined #ruby
elfuego has joined #ruby
oo_ has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
astrobunny has joined #ruby
wald0 has joined #ruby
stef204 has joined #ruby
bkxd has joined #ruby
ponga has quit [Ping timeout: 264 seconds]
oo__ has quit [Ping timeout: 256 seconds]
blueOxigen has quit [Ping timeout: 256 seconds]
bluOxigen has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
iasoon has joined #ruby
Mon_Ouie has joined #ruby
sigurding has joined #ruby
sevvie has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
sevvie has joined #ruby
keen___ has joined #ruby
Nimf has quit [Ping timeout: 272 seconds]
doritostains has joined #ruby
astrobunny has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 255 seconds]
keen__ has quit [Ping timeout: 246 seconds]
elfuego has quit [Quit: elfuego]
MatthewsFace has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 264 seconds]
|RicharD| has joined #ruby
<|RicharD|>
Hi
<|RicharD|>
If I have an array example: [10,30,14,50,31,57,96,75,90] - how I can group this number in 3 arrays or subarray by range ? example I want in a array all number between 0 and 30, in another from 30 to 60 and in another from 60 to 100
<|RicharD|>
How I can do that ?
<|RicharD|>
(in theory I use rails, but I think this is a ruby problem, not rails)
sigurding has quit [Quit: sigurding]
Suge_Knight has joined #ruby
<Suge_Knight>
whats better, ruby or python?
sigurding has joined #ruby
<sevenseacat>
Suge_Knight: PHP.
<adaedra>
.group_by { |e| e / 30 }.values |RicharD|
<Suge_Knight>
sevenseacat: dont troll im serious
<sevenseacat>
no, you dont troll
<Suge_Knight>
like, why would someone pick python over ruby and vice versa
<Suge_Knight>
(i've only been programming for a week)
<adaedra>
Suge_Knight: for many reasons
<adaedra>
But no one's better
<adaedra>
They are different
<|RicharD|>
they're different in syntax
<Suge_Knight>
but ppl dont typically do both python and ruby, correct?
<|RicharD|>
so you must choice what you like more
<|RicharD|>
no
<Suge_Knight>
well ruby's look cool but pythons are pretty badass snakes
<Suge_Knight>
so, i guess if i have to i'll go with python
<|RicharD|>
Honestly there are a lot of questions (performances etc...) but now you shouldn't worry about it
<|RicharD|>
nice go with python
<adaedra>
>> [10,30,14,50,31,57,96,75,90].group_by { |e| e / 30 }.values
<Suge_Knight>
no |RicharD| im honestly just stupid
<Suge_Knight>
i know a lot about banks and finance, nothing about programming
<Suge_Knight>
currently learning html, dont even know what perl is
<Suge_Knight>
just thought it was a backend language
vtunka has quit [Quit: Leaving]
<sevenseacat>
you're not stupid, but you're asking irrelevant questions that have answers that are meaningless to you
serivich has joined #ruby
<|RicharD|>
go with python, no kidding
fabrice31_ has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 264 seconds]
<pontiki>
you'd also probably be better off reading wikipedia
<|RicharD|>
(if you want do development related to finance/bank)
<sevenseacat>
we could tell you all about perl, python, and ruby, but if you've been programming for a whole week it will go in one ear and out the other
<|RicharD|>
btw if you want do web
<|RicharD|>
development
Beliq has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<|RicharD|>
I agree with sevenseacat...go with PHP
<|RicharD|>
it's easy and you learn the basics
<sevenseacat>
uh oh
shevy has joined #ruby
<adaedra>
uh oh
<adaedra>
|RicharD|: Have you considered the fact that maybe sevenseacat was using sarcasm?
<sevenseacat>
immense sarcasm.
<Suge_Knight>
lmao
<Suge_Knight>
my friend is a fullstack dev
<Suge_Knight>
and he says php is the fucking worst
<Suge_Knight>
so im gonna pass on that lang
<sevenseacat>
i'm not sure i'd go that far, but yeah, wouldnt recommend it.
bMalum has joined #ruby
<Suge_Knight>
like perl, ruby, python -- these are all replacement backend languages that can substitute one another correct?
<sevenseacat>
it does have a very low barrier of entry though
<Suge_Knight>
but most people just learn and master 1?
<sevenseacat>
much lower than anything decent
<Suge_Knight>
what type of barrier to entry does ruby/python have?
<sevenseacat>
if you want to use them for web development? much higher
<adaedra>
Suge_Knight: it's good to see many languages (of different kinds), so you have large knowledge of things
tosbourn has quit [Remote host closed the connection]
<adaedra>
Not necessary master them
<sevenseacat>
dammit, got suckered in
oo_ has quit [Remote host closed the connection]
Advocation has joined #ruby
<adaedra>
Then, I would oppose to begin the programmation through web development, as it has effectively a higher barrier – to do it efficiently, you have to grasp a lot of concepts
<|RicharD|>
adaedra: yes but seriously, if he is learning right now, why it's a wrong choice PHP ?
<pontiki>
it's so amazing to see one of my paintings on a sticker
<pontiki>
oops, ww
duderonomy has joined #ruby
<|RicharD|>
if he want to web development, imho it's the best choice for start...
<sevenseacat>
pontiki: plz send stickers
<wasamasa>
PHP is the worst choice to start
<|RicharD|>
why ?
<adaedra>
|RicharD|: because it's a shitty language which makes easy to learn bad practices and hard to learn good ones.
<wasamasa>
it's like the worst popular language out there
<pontiki>
sevenseacat: i can do that!
<|RicharD|>
yes ok, but you get 'shit done'
tosbourn has joined #ruby
<wasamasa>
best case: you'll learn to use a PHP framework
<|RicharD|>
and this help you to continue to learn and improve
<pontiki>
i've got a sheet of big ones and another of little ones
<wasamasa>
worst case: you'll copypaste shit until it somehow works
<adaedra>
and between getting 'shit done' and 'getting shit done right', what do you choose ?
<adaedra>
It's not more difficult to create a site in python or ruby than in PHP nowadays
<wasamasa>
better use a proper programming language and actually learn something you can apply for everything else
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<|RicharD|>
guys I understand your point...BUT I see a lot of people that can't get the stuff done
felltir has joined #ruby
<|RicharD|>
and they stop learning
sigurding has quit [Quit: sigurding]
<wasamasa>
like that the file system and htaccess are no replacement for routing
<adaedra>
Maybe because they didn't start at the right point
<toretore>
well then maybe they shouldn't be programmers
<wasamasa>
^
<|RicharD|>
um this can be true too
<adaedra>
Web development is not really the best place for beginning
<wasamasa>
if you're a programmer and aren't willing to teach yourself new stuff, you've chosen the wrong job :P
<pontiki>
yeah, you should be doing kernel drivers first
<adaedra>
Do some CLI programs, it's easy, you get shit done, and learn things that are useful nearly everywhere
<pontiki>
do something fun, like write a game
<|RicharD|>
honestly we don't know nothing about the OP
<Suge_Knight>
ok
Igorshp has quit [Remote host closed the connection]
<Suge_Knight>
i didnt want to start a war
<|RicharD|>
for say that
hazelux has joined #ruby
<Suge_Knight>
i appreciate the input
<Suge_Knight>
back to css on codeacademy
<Suge_Knight>
cheers
Advocation has quit [Client Quit]
<adaedra>
Suge_Knight: it's because of things like that that you get asked "are you a troll" when you ask that
<|RicharD|>
example: if he is a 13year old, that want do a simple page for his guild on wow etc.. maybe it's good that he start with web development
CloCkWeRX has joined #ruby
<|RicharD|>
(btw my error :P he isn't a 14yr old...so you're right)
Rickmasta has joined #ruby
<adaedra>
Or maybe he should start by the beginning
<toretore>
Suge_Knight: if you're learning html, css, js at the same time, go with php. it's simple enough to not get in your way, and then you can move on to better things later
Beliq has quit [Read error: Connection reset by peer]
<adaedra>
If I want to learn painting, I don't start by reproducing The Joconde
Beliq has joined #ruby
<pontiki>
never ask a group of devs their opinion on language, editors, OSes, or really p.much *anything*
<sevenseacat>
especially not editors
<adaedra>
you can ask them what is their favorite color or animal
<toretore>
Suge_Knight: make some shitty websites, write some shitty php; that's just something you're going to have to go through first
<Suge_Knight>
i wouldnt ask which editor is best, i know notepad++ is superior
<sevenseacat>
uh oh
<adaedra>
!
<pontiki>
and there ye have it
<Suge_Knight>
(that was a troll)
<Suge_Knight>
:]
<adaedra>
I hope so
<adaedra>
notepad.exe all the way
junglist has joined #ruby
junglist has left #ruby [#ruby]
<sevenseacat>
yeah, we all know sublime text is clearly better
<sevenseacat>
<_<
<adaedra>
>_>
<felltir>
post-its on the screen
<pontiki>
butterflies, man
anaeem1_ has joined #ruby
<adaedra>
M-x butterfly
hazelux has quit [Ping timeout: 265 seconds]
joonty has quit [Ping timeout: 256 seconds]
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
teddyp1cker has quit [Read error: No route to host]
teddyp1cker has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Beliq has quit [Read error: Connection reset by peer]
elfuego has quit [Client Quit]
Akagi201 has quit []
teddyp1cker has quit [Ping timeout: 276 seconds]
Joffily has joined #ruby
Cust0sL1men has quit [Ping timeout: 264 seconds]
teddyp1cker has joined #ruby
<jhass>
makes you wonder, what editor was used to write ed?
reinaldob has joined #ruby
mengu has joined #ruby
<pontiki>
that's like asking "what was there before RNA?""
oo__ has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
<apeiros>
what was there before RNA?
<pontiki>
idk
<pontiki>
i'm not a paleobiochemist, i'm just a mouse with a passion for coding :D
<jhass>
underwater vulcans, no?
juanpaucar has joined #ruby
teddyp1cker has quit [Ping timeout: 245 seconds]
<apeiros>
I thought those pale aliens with the insane six packs
reinaldob has quit [Ping timeout: 256 seconds]
<pontiki>
there was always punching in a program on the console buttons, one machine word at a time
Beliq_ has quit [Ping timeout: 246 seconds]
<DrForr>
Toggling switches.
<pontiki>
that's it
oo_ has joined #ruby
Beliq has joined #ruby
Beliq has quit [Read error: Connection reset by peer]
gr33n7007h has quit [Ping timeout: 240 seconds]
juanpaucar has quit [Ping timeout: 272 seconds]
failshell has joined #ruby
NinjaOps has joined #ruby
pontiki has quit [Quit: back to bed .. zzzzzzzzzzz]
gr33n7007h has joined #ruby
hmsimha has quit [Ping timeout: 256 seconds]
oo__ has quit [Ping timeout: 264 seconds]
zachrab has joined #ruby
sdothum has joined #ruby
failshell has quit [Ping timeout: 245 seconds]
scripore has joined #ruby
basiclaser has joined #ruby
livathinos has joined #ruby
krisquigley has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n008f4g_ has joined #ruby
Advocation has quit [Quit: Advocation]
dmst has joined #ruby
codecop has joined #ruby
zachrab has quit [Ping timeout: 264 seconds]
sevenseacat has quit [Quit: Me dun like you no more.]
chridal has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
GeorgeThompson has joined #ruby
grindmodeon has quit [Quit: Leaving.]
krisquigley has quit [Ping timeout: 250 seconds]
gaboesquivel has quit [Remote host closed the connection]
tosbourn has quit []
ponga has joined #ruby
nhhagen_ has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
iasoon has quit [Ping timeout: 252 seconds]
Advocation has joined #ruby
dmst has quit []
RegulationD has joined #ruby
rodfersou has joined #ruby
nhhagen has quit [Ping timeout: 256 seconds]
oo_ has quit [Remote host closed the connection]
Advocation has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
krz has quit [Read error: Connection reset by peer]
sevvie has joined #ruby
Igorshp has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 264 seconds]
konsolebox has quit [Ping timeout: 246 seconds]
Igorshp has joined #ruby
nhhagen_ has quit [Remote host closed the connection]
SOLDIERz has joined #ruby
nhhagen has joined #ruby
konsolebox has joined #ruby
lordkryss has joined #ruby
felltir has quit [Remote host closed the connection]
iasoon has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
<shevy>
pontiki knows all the old stories
iasoon has quit [Quit: WeeChat 1.1.1]
nhhagen has quit [Remote host closed the connection]
sevvie has joined #ruby
duncannz has quit [Remote host closed the connection]
systemd0wn has joined #ruby
<systemd0wn>
Question, (not a programmer) I've got a bit of code that has a while loop. Is there anyway to say "do this, but continue on with the loop"?
wald0 has quit [Ping timeout: 272 seconds]
doodlehaus has joined #ruby
<apeiros>
systemd0wn: concurrently to the loop? you'd use a Thread for that
<toretore>
systemd0wn: paste the code on gist.github.com and link it here
<systemd0wn>
apeiros: got ya. Makes sense. toretore: will do.
<systemd0wn>
A friend of mine helped me get it started but he's gone to bed so I'm a bit stuck.
<apeiros>
systemd0wn: if you want to write this yourself: beware, down the path of Threads be dragons
<systemd0wn>
apeiros: haha. well if we're not talking a hooooribly long path I may be up for this ;)
willywos has joined #ruby
doodlehaus has quit [Ping timeout: 255 seconds]
<ntz>
systemd0wn: you should have always use a ™ symbol if your nick contains a "systemd" string
<toretore>
lol
<systemd0wn>
hahaha.
<toretore>
systemd0wn: so basically you want to emulate the -c arg of ab?
<systemd0wn>
ntz, that's the first time anyone has made that joke. Toooo funny.
Cust0sL1men has joined #ruby
doodlehaus has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
<ntz>
:P
<systemd0wn>
toretore: yes. Because I want to specify to the load testing tool a very specific number of transactions per second.
* ntz
wonders why ppl think that he's joking when he's serious and vice versa
ag4ve_ has quit [Ping timeout: 245 seconds]
<systemd0wn>
haha
<toretore>
rails is also a tm btw
<jhass>
and what is it that you want to do in parallel?
<toretore>
systemd0wn: why aren't you using siege or ab?
<systemd0wn>
When I generate the POST it's waiting for a response. But I don't want waiting for a response to slow down the execution of the next POST.
Soda has quit [Remote host closed the connection]
ag4ve_ has joined #ruby
<systemd0wn>
toretore: because I can't specify an exact number of transactions per second. I don't care how long the HTTP response takes to get to me. I'm actually timing how long it takes the backend to do junk asynchronously
<systemd0wn>
Does that make sense?
dumdedum has quit [Quit: foo]
<toretore>
you could just make a thread for each request, as you're making them, and make sure to join them all when you're done
lolmaus has joined #ruby
<systemd0wn>
So I'm getting my real data from another monitoring tool on the backend. But I need to generate a constant numbre of POST/second so that my backend data has some correlating data.
nhhagen has joined #ruby
<systemd0wn>
I wish I had any idea how to do that. It sounds logical but ya... Point a guy in the right direction?
AlphaAtom has joined #ruby
anemone has joined #ruby
<jhass>
I feel like I'd use typhoeus hydra for this
<jhass>
uses curl in the background and async callbacks
nhhagen has quit [Remote host closed the connection]
<toretore>
that does exactly what you first asked for
philip1 has joined #ruby
avril14th has quit [Remote host closed the connection]
<anemone>
Hey, beginner here, I want to run a small ruby script for the next couple of days, how to keep running it in a server?
<systemd0wn>
toretore: wow! Thanks! Let me give this a test.
<systemd0wn>
jhass: thanks I'll take a look at that too.
<jhass>
anemone: what's the server OS?
ldnunes has joined #ruby
<jhass>
systemd0wn: that is, if your tps is high enough that scheduling the new thread is too much work to fit it etc.
<toretore>
screen, tmux or that other one that you put in front
vt102 has joined #ruby
<anemone>
@jhass Ubuntu 14.04 i installed ruby and did a test run, But I want to keep it running even if i'm not online.
<jhass>
+1 to tmux then
a5i has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
tmux to start a new session, Ctrl+B then D to detach, tmux at to reattach
<systemd0wn>
Because the TPS is really low, at the moment, it shouldn't be a problem for a while.
lkba has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
lolmaus_ has joined #ruby
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
philip1 is now known as phutchins
<anemone>
@jhass should I start tmux after sshing into the server?
<jhass>
anemone: yes
<toretore>
the server probably doesn't have tmux installed, but may have screen
sigurding has joined #ruby
<systemd0wn>
Kinda impressed by the kindness of #ruby right now.
zz_Outlastsheep is now known as Outlastsheep
sigurding has quit [Client Quit]
<toretore>
systemd0wn: you pasted your code and described the problem properly, making it easy to help you
<toretore>
you'd be amazed how many people can't manage to do that
chridal has joined #ruby
<systemd0wn>
I'll chalk that up to YEARS of IRC use. heh
<anemone>
@jhass okay, let me try that, ty
ntz has left #ruby [#ruby]
sigurding has joined #ruby
iasoon has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<apeiros>
systemd0wn: glad to hear. we always try to be nice. but as toretore said - being nice and helpful when asking goes a long way making that easy of course :)
<noobQ>
hi jhass
ntln has quit [Ping timeout: 265 seconds]
<jhass>
hi hector
<noobQ>
jhass: hey dude forget my name
Soda has joined #ruby
<apeiros>
heh
reinaldob has joined #ruby
<wasamasa>
anemone: you should eventually let your init daemon control it
<wasamasa>
anemone: it's trivial with systemd
phutchins has quit [Quit: WeeChat 1.1.1]
<apeiros>
noobQ: just use your "real" nick. if you go far enough back in the logs, there'll be tons of stupid things I asked. so what. it's normal.
_ixti_ has joined #ruby
philip1 has joined #ruby
<anemone>
@jhass that's cool, I only used tmux for multiple terminal windows, But this is totally cool, thank you
<systemd0wn>
toretore: that worked perfectly. The exact number of POSTs in the exact amount of time I wanted. Thanks again.
ndrei has quit [Ping timeout: 255 seconds]
philip1 is now known as phutchins
<noobQ>
apeiros: hehehe yeah It's not because I asked stupid question but i liked new nick
<noobQ>
noobQ its good before I was using my name
cimenta has joined #ruby
nhhagen has joined #ruby
elaptics is now known as elaptics_away
ixti has quit [Ping timeout: 250 seconds]
iteratorP has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 245 seconds]
GeorgeThompson has quit [Ping timeout: 250 seconds]
fabrice31 has joined #ruby
plutonic has quit [Quit: plutonic]
<cimenta>
hi, could someone help me how to use salesforce_http_client
<cimenta>
I am using ruby 1.9.3p194 (2012-04-20) [i386-mingw32]
RegulationD has joined #ruby
chridal has quit [Ping timeout: 256 seconds]
nhhagen has joined #ruby
<jhass>
cimenta: the gem fails to properly load its dependencies, open an issue with them. Meanwhile at require "httpclient" at the top of your file
<jhass>
er, s/at/add/
turtil has joined #ruby
DerisiveLogic has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
<cimenta>
jhass: it helped :-) but there is another error in new comment
lidenskap has joined #ruby
Suge_Knight has quit [Ping timeout: 245 seconds]
<jhass>
cimenta: basically the same issue, missing: require "fileutils"
withnale2_ has quit [Ping timeout: 256 seconds]
iotouch has joined #ruby
<cimenta>
could it be my installation of ruby?
RegulationD has quit [Ping timeout: 245 seconds]
<jhass>
it's really their fault, you adding those is just the workaround
<jhass>
the gem has to require what it needs, they fail to do that and its their fault
<cimenta>
ok
<cimenta>
looks good. Finished without error. Now I am going to use real login credentials.
Rollabunna has quit [Remote host closed the connection]
<cimenta>
thank you so much for your help
Rollabunna has joined #ruby
<jhass>
yw, don't forget to report an issue to the gem
<jhass>
at least it'll help others with the same problem
scripore has quit [Quit: This computer has gone to sleep]
DerisiveLogic has quit [Ping timeout: 272 seconds]
tvw has quit [Remote host closed the connection]
bruno- has joined #ruby
lidenskap has quit [Ping timeout: 256 seconds]
<ytti>
=> #(Element:0x1320158 {
<ytti>
name = "queue",
<ytti>
#(Text "\n"),
<ytti>
children = [
<ytti>
#(Element:0x13200a4 { name = "queue-number", children = [ #(Text "\n0\n")] }),
<ytti>
#(Text "\n"),
<ytti>
#(Element:0x1329f64 { name = "forwarding-class-name", children = [ #(Text "\nBE\n")] }),
<jhass>
ytti: /topic!
<ytti>
#(Text "\n"),
<ytti>
this is my nokogiri object
<ytti>
how do i get forwarding-class-name
<ytti>
i thought xml.xpath('queue/forwarding-class-name'
<ytti>
but nothing
<ytti>
i don't want to '//queue/forwarding-class-name'
<ytti>
as i'll then get nodes i don't want
plutonic has joined #ruby
nonnatus has quit [Ping timeout: 256 seconds]
<systemd0wn>
toretore: Question, can you think of any reason why that code wouldn't be genertaing the number of transactions I think it should? When I tested your changes I told it to run 1trans/sec, ran it for 600sec and it ouput 600 trans. But when I did 1.5trans/sec it still output 600 trans, instead of 900.
<ytti>
now, from q, i want 'queue/forwarding-class-name'
plutonic has quit [Client Quit]
<jhass>
ytti: .xpath("foo/bar") is the same as .xpath("./foo/bar"), so calling it on queue, searches for <queue>(.)<queue>(/queue)<forwarding-class-name>(/forwarding-class-name)
freerobby has joined #ruby
scripore has quit [Client Quit]
<ytti>
what i really want to do, i itearate them
<ytti>
so sometihng to the note of
robertt_dex has joined #ruby
robertt_dex has quit [Read error: Connection reset by peer]
<ytti>
xml.xpath('//queue').each do |queue|
<jhass>
doesn't change anything
<ytti>
name = queue.at_xpath('queue/forwarding-class-name')
<ytti>
..
<ytti>
something like that, but no idea how
krz has joined #ruby
<jhass>
queue is already <queue>, why do you search for another <queue> nested into it?
<toretore>
systemd0wn: did this change after the threads were added?
n80 has joined #ruby
<ytti>
jhass, uhh
<ytti>
unreal, you're right
<ytti>
s/unhreal/uhh/
<ytti>
jhass, thanks
iotouch has quit [Quit: This computer has gone to sleep]
<systemd0wn>
toretore: well technically it was never generating the propper num trans/sec because it was waiting for the POST to finish before moving on.
chridal has joined #ruby
imanzarrabian has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<systemd0wn>
toretore: I just ran it again at 1.9trans/sec and it still sent 600. Is this a floating point issue? Going to run at 2trans/sec for 10min and see
<toretore>
systemd0wn: put a counter in the while loop, just to see that it loops 900 times?
<systemd0wn>
ya. good idea.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jakolehm has joined #ruby
hiyosi has joined #ruby
doodlehaus has joined #ruby
joonty has joined #ruby
doodlehaus has quit [Remote host closed the connection]
anemone has quit [Ping timeout: 246 seconds]
<cimenta>
anyone would know if I can use mechanize to log into Salesforce? I found people saying that it's not possible because SF uses javascript. But someone said that it is possible. Does anyone got any experience with that?
tgunr has quit [Ping timeout: 245 seconds]
revoohc has joined #ruby
<wasamasa>
time to use selenium
Rapier- has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
Rollabunna has joined #ruby
tgunr has joined #ruby
<cimenta>
I already wrote it in pure javascript. I have to be logged in to get the report. I thought I would use mechanize, I used to use it years ago.
quimrstorres has quit [Remote host closed the connection]
elaptics_away is now known as elaptics
juanpaucar has quit [Ping timeout: 264 seconds]
Zai00 has joined #ruby
sgambino has joined #ruby
decoponio has joined #ruby
tgunr has quit [Ping timeout: 276 seconds]
<systemd0wn>
toretore: putting 1.5trans/sec results in the loop only going 60 times.
<systemd0wn>
where it should have run 90 times.
vivekananda has quit [Ping timeout: 240 seconds]
zachrab has joined #ruby
<jhass>
systemd0wn: print the return value of sleep, it returns how long it actually slept
tgunr has joined #ruby
<jhass>
but I guess the thread scheduling overhead already bites you
<systemd0wn>
I don't think it's the thread scheduling to be honest. I can remove it to check but I think there is some resolution issues. https://www.ruby-forum.com/topic/106209
mary5030 has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
<systemd0wn>
Hrm. I dunno, as I read that post maybe that's not it.
krisquigley has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
joonty has quit [Ping timeout: 256 seconds]
<jhass>
do the requests have to be evenly distributed inside the second?
zachrab has quit [Ping timeout: 264 seconds]
<systemd0wn>
jhass: would be best to get as close as possible but the total transactions gets pretty far off over a long period of time.
kubunto has joined #ruby
<systemd0wn>
jhass: so, no. But the closer the better, and as long as the total transactions over time is accurate.
thumpba has joined #ruby
<systemd0wn>
Ya, the threading was definitely helping because the time scew from waiting for the POST to finish is pretty bad.
<jhass>
well, if the answer was no I'd suggested to fire off tps requests without delay, measure how long that takes with Process.clock_gettime and a monotonic clock and sleep for the remaining part of the second
thumpba_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 256 seconds]
anaeem1_ has quit [Ping timeout: 265 seconds]
Rollabunna has quit [Read error: Connection reset by peer]
lessless has joined #ruby
<systemd0wn>
jhass: How far from an even distribution would that get me?
Rollabunna has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
<jhass>
quite far
<jhass>
something like [---____]
Advocation has joined #ruby
<jhass>
[---___][---___][---___] with multiple seconds
scripore has joined #ruby
joonty has joined #ruby
<systemd0wn>
hrm. How would it handle something like 1.5tps? Because I'm doing a very low number of tps. For instance 2tps is too high of a load. 1tps is smooth.
<kubunto>
is it ok to ask for someone to look over what i wrote here?
thumpba has quit [Ping timeout: 248 seconds]
<jhass>
kubunto: not someone specifically, but you can ask the channel for code review, yes
<jhass>
systemd0wn: that'd probably end up like [-___][--__][-___][--___] I guess
BlackGear has joined #ruby
ponga has quit [Quit: Leaving...]
iotouch has joined #ruby
BlackGear has quit [Max SendQ exceeded]
<systemd0wn>
jhass: I think that would be acceptable to be honest. The longer the test the less impact really.
<systemd0wn>
jhass: not that I have any idea how to do what you're suggesting. lol. but ya.
BlackGear has joined #ruby
<jhass>
if you find a smart implementation, more like [---][___][---][___] for a naive approach of doubling the interval
sevvie has joined #ruby
scripore has quit [Ping timeout: 265 seconds]
riotjones has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
<jhass>
otoh the thread schedular might distribute it more evenly again by accident
<systemd0wn>
So strange, if I ask it to do 2tps it does. So it definitely doesn't like non-integers.
Joffily has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
basiclaser has quit [Quit: Connection closed for inactivity]
<serivich>
idea of the day: an android app that loads a demoscene program via QR or NFC
* hanmac1
learned once again why he hates eCommerce software ... or an html question: what is wrong with "<a><b><c>Text</c></a></b>" and then wondering why you cant style the page correct ...
kobain has quit [Max SendQ exceeded]
<dudedudeman>
<a><b><c>duh</c></b></a>?
wwwbukolaycom has joined #ruby
krisquigley has joined #ruby
kobain has joined #ruby
GenghisKen has joined #ruby
ndrei has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
<jhass>
izzol: would you know how to do it if they're an array of characters?
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<izzol>
jhass: I think I will check each element from an array
havenwood has quit []
kobain has quit [Max SendQ exceeded]
<jhass>
I have a present for you then: String#each_char
mrmargol_ has joined #ruby
zachrab has quit [Ping timeout: 264 seconds]
polysics has quit []
kobain has joined #ruby
mrmargolis has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
ta has quit [Remote host closed the connection]
Cust0sL1men has joined #ruby
kobain has quit [Max SendQ exceeded]
krisquigley has quit [Ping timeout: 252 seconds]
<izzol>
jhass: thanks, this is what I was looking :-)
<jhass>
izzol: come back if you have your solution working and we'll say if it's the most idiomatic one ;)
gaboesquivel has quit []
<izzol>
ok ;-)
lxsameer has quit [Quit: Leaving]
<dudedudeman>
DOn't forget to gist it!
krz has quit [Ping timeout: 250 seconds]
ianseyer has quit [Ping timeout: 240 seconds]
mtakkman has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<shevy>
until you missed it!
<ninjs>
I wish more people used ruby than python... some of the libraries in ruby are pretty rough. haha
davedev2_ has joined #ruby
* IceDragon
tackles shevy out the door
livathinos is now known as livathinos|away
livathinos|away has quit []
<IceDragon>
O: looks like I tackled the wrong person
<shevy>
ninjs there is chaos in ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
it can be pretty or awful
<shellfu>
Im out of coffee! I think today is lost!
<dudedudeman>
i would argue that there can be beauty in chaos
<shellfu>
mmm beer
jerius has joined #ruby
<ninjs>
Agreed, but at least ruby makes sense.. as opposed to python
<IceDragon>
there is chaos in every language, you just get used to it
<shevy>
python made some weird decisions
<dudedudeman>
i think code is chaotic because it doesn't mean anything until you tell it what to do. it is in the hands of the developer to make it beautiful
riotjones has quit [Remote host closed the connection]
<shevy>
I still can't understand why they have explicit self
reinaldob has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
ujihisa has joined #ruby
juanpaucar has joined #ruby
davedev24_ has quit [Ping timeout: 250 seconds]
<IceDragon>
shevy: Go has the same thing when you use struct functions
elfuego has joined #ruby
<ninjs>
Their methods/functions confuse me too
<IceDragon>
>.> except Go is saner with it
<shevy>
dudedudeman yeah that is sort of true
<shevy>
when I look at some code that I wrote
<shevy>
it's not that pretty :(
|RicharD| has quit [Quit: Sto andando via]
<dudedudeman>
shevy: how long have you been writing code?
<shevy>
in ruby? about 10 years
sevenseacat has quit [Quit: Me dun like you no more.]
<dudedudeman>
see, i think that has to be a cool place to be then. because you can look backwards and hopefully see ten years of growth in how you write code. you've seen the beauty develop from a seed to a flower
<shevy>
oh god
axl_ has joined #ruby
<shevy>
I don't want to look back at the code atrocities I have committed
<dudedudeman>
ha
<shevy>
the seed is cheating
<shevy>
it has the instruction to become that very flower already inside
<ninjs>
I feel like I write the best code when it's for a project that *I* want to do, and the worst code when there are time/budget constraints, or I'm not that interested in the final product
<IceDragon>
you started from a piece of dirt, did some alchemy and made it into a seed
kblake has joined #ruby
<dudedudeman>
it's true, sometimes you just have to make it work, not make it pretty
<shevy>
when you have to write code anew, it's hard work! you don't know how it'll end up... how many bugs there will be... and you also know that you can't be arsed to write a lot of documentation after all that prior coding anyway
mengu__ has quit [Remote host closed the connection]
<ninjs>
Yeah. If I know no one is going to be looking at my code... I do some pretty terrible things haha
* dudedudeman
gets excited
<shevy>
IceDragon how are baby dragons made
* dudedudeman
excitement intensifies!!!!!!!
<shellfu>
hey dont feel bad ninjs Im a sysadmin so my code isnt the quality of all you fine folks.
<IceDragon>
You dun wanna know 3:
<shellfu>
gets the job done though ha
<ninjs>
shellfu: I was a sysadmin a year ago haha
<dudedudeman>
a wild sysadmin appeared!
bruno- has quit [Ping timeout: 276 seconds]
<IceDragon>
Back in my day, we used to find a lady dragon and let the fun happen, nowadays its all machines and science
<ninjs>
in fact I was still as sysadmin while I got this job, and did both for a long time until they transitioned me over
<dudedudeman>
a lady dragon. lmal
Advocation has quit [Quit: Advocation]
vtunka has quit [Quit: Leaving]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shellfu>
Yeah. In another life id have been a dev, but meh. cards didnt get dealt that way
<IceDragon>
Yes good sir, you didn't want just ANY female dragon, it had to be a LADY
<shellfu>
I enjoy it though
mrmargolis has joined #ruby
n008f4g_ has joined #ruby
<ninjs>
shellfu: you can do it. Just keep making stuff and eventually people will want to hire you
<ninjs>
as a dev
<shellfu>
yeah. I enjoy these days enabling you devs to do your job better. :)
* wwwbukolaycom
:)
ascarter has joined #ruby
<ninjs>
I enjoy dev so much that in my current company I went sysadmin > CTO > lead developer
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
reinaldob has joined #ruby
ascarter has quit [Max SendQ exceeded]
<shellfu>
I get a lot of my programming needs out by making android games with the wife. She's an artist, so it works out. Though I can't tell my unix buddies I work with C# in unity :P
* IceDragon
points @ shellfu and screams "we have a unix traitor!"
* shellfu
hides
<shellfu>
NOOOOOO!
* IceDragon
sharpens the pickaxe
<shellfu>
my wife made me do it? Yeah... that's it.
ascarter has quit [Max SendQ exceeded]
* IceDragon
pickaxes shellfu's desk
reinaldob has quit [Remote host closed the connection]
<IceDragon>
Hand slipped P:
maximski has joined #ruby
<jhass>
izzol: okay, let's see. first of all you do want to write wrong for each char that's not included?
maximski has quit [Max SendQ exceeded]
kobain has joined #ruby
<shellfu>
Heh I bet my desk could withstand a pickaxe. Its steel :P
ascarter has joined #ruby
<shellfu>
but im a nerd and its a cockpit for star citizen lol
anaeem1__ has joined #ruby
<izzol>
jhass: good point. No. I prefer to have just one information ;-)
<IceDragon>
Hurp durp
<IceDragon>
;-; I wanna make a lisp for mruby
edwinvdg_ has quit [Remote host closed the connection]
maximski has joined #ruby
kobain has quit [Max SendQ exceeded]
<IceDragon>
I just need to find a lisp parser, since I suck at making my own
maximski has quit [Max SendQ exceeded]
kobain has joined #ruby
<IceDragon>
orz
<jhass>
izzol: break aborts a loop, try updating your gist with it
maximski has joined #ruby
anaeem1_ has quit [Ping timeout: 248 seconds]
<shevy>
dudedudeman what makes me wonder in ruby is whether it takes longer to write things that are API satisfiable
<dudedudeman>
well, i wonder if the slightly extra time is worth it as it forces you to think through what your'e doing?
OrbitalKitten has joined #ruby
kobain has quit [Max SendQ exceeded]
<hanmac1>
izzol: that reminds me of the oldschool "mastermind" game ;P
gagrio has quit [Ping timeout: 276 seconds]
* IceDragon
waves to hanmac1
kobain has joined #ruby
GenghisKen has quit [Ping timeout: 250 seconds]
<IceDragon>
hanmac1: You wouldn't happen to know any lisp parsers in C or pure ruby?
<shevy>
dudedudeman not sure if it is just slight extra time
<hanmac1>
no i never used lisp
<shevy>
for instance, a while ago I started to fall in love with []
<dudedudeman>
shevy: ah, think it's enough to make you hate yourself? lol
Crisix has joined #ruby
<IceDragon>
sad >:
<shevy>
so I have a gem then called, rainbow. So, there must be a Rainbow[] method. which often is... Rainbow.new
lidenskap has joined #ruby
<shevy>
then I think there is in ruby-gtk, you can call methods like: .set_bla but also .bla =
mitchellhenke has joined #ruby
Crisix has quit [Max SendQ exceeded]
<ninjs>
izzol: why not just puts "Wrong" if test2.chars.sort != test1.chars.sort
<shevy>
then you have blocks available to every method, so you can use them as extra arguments all the time
<IceDragon>
shevy: usually bindings have set_bla if their underlying api uses a similar convention, just so you can use the same constructs and easily move from the ruby binding to the underlying api (rbSFML does this by offering you ruby setters and set_ methods)
<shevy>
:)
<shevy>
dudedudeman now you see where complexity arises!
davedev2_ has quit []
<IceDragon>
ninjs: I think you'd want to avoid creating 2 new array ;x
<IceDragon>
*arrays
<dudedudeman>
ha, tis true
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dudedudeman>
i'm still very young at this. but i try to glean wisdom and guidance from anyone i can in this field who has been doing it for a while
<IceDragon>
ninjs: In that test case you could just reverse one of the strings and then do == and all would be fine, that is, if the strings are always just the reverse of the other
ujihisa has quit [Ping timeout: 250 seconds]
<ninjs>
IceDragon:
vt102 has quit [Remote host closed the connection]
<ninjs>
I imagine he's building some kind of anagram thing, not a string reverse checker
rkazak has joined #ruby
<IceDragon>
ninjs: yeah, thats what I figured
<IceDragon>
oh yeah, each_char will return an enumerator O:
<havenwood>
wwwBUKOLAYcom: Please tell both channels if you cross post. If someone in #ruby-lang answered your emoticon nobody here would know and might reduplicate the effort.
<catsoup>
because the world is cruel, and promises are broken
<sts>
I'd expect the first to not return NIL
BlackGear has quit [Max SendQ exceeded]
BlackGear has joined #ruby
<havenwood>
sts: What did you expect it to return?
<adaedra>
havenwood: haha
BlackGear has quit [Max SendQ exceeded]
<IceDragon>
x:
teddyp1cker has quit [Client Quit]
x77686d has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
<IceDragon>
havenwood: I can't feel my sides now
BlackGear has joined #ruby
bMalum has joined #ruby
<ytti>
ytti@ytti ~> pry
<ytti>
[1] pry(main)> if 0 == 1 ; 'foo' ; end
<ytti>
=> nil
<adaedra>
yes, and ?
BlackGear has quit [Max SendQ exceeded]
<ytti>
in reference to sts's question
<adaedra>
ah, nvm
predator217 has quit [Ping timeout: 245 seconds]
spyderman4g63 has joined #ruby
BlackGear has joined #ruby
predator117 has joined #ruby
fryguy9 has joined #ruby
hazelux has quit [Ping timeout: 244 seconds]
vt102 has quit [Remote host closed the connection]
BlackGear has quit [Max SendQ exceeded]
<IceDragon>
sts: 0 will never be equal to 1, unless your ruby interpreter is a politician...
lolmaus__ has joined #ruby
BlackGear has joined #ruby
<IceDragon>
sts: I think you meant to get the element from the array
DerisiveLogic has joined #ruby
BlackGear has quit [Max SendQ exceeded]
<IceDragon>
sts: commented on the gist
lolmaus_ has quit [Ping timeout: 240 seconds]
<wasamasa>
apeiros: that guy is pretty creative
<apeiros>
wasamasa: datguy?
GnuYawk has quit [Ping timeout: 255 seconds]
<apeiros>
our special friend?
<wasamasa>
uhuh
<apeiros>
I guess he must be really bored
ag4ve_ has quit [Ping timeout: 245 seconds]
<sts>
IceDragon: i'm confused by [nil, nil]. I only want to get elements from the array which match a certain condition.
<wasamasa>
mhh
<IceDragon>
sts: Used select instead then :O
<IceDragon>
sts: I'll update my comment with an example
<sts>
arrr :)
<apeiros>
sts: an `if … end` where the condition is not satisfied returns nil. as ytti demonstrated above.
Guest20457 has quit [Ping timeout: 245 seconds]
ag4ve_ has joined #ruby
<apeiros>
sts: and with select, you can drop the if. your block just has to return a truthy value.
<IceDragon>
sts: Updated, though I'd go into more detail, but /shrug
<sts>
apeiros: I know that, that was just from debugging sorry :)
DerisiveLogic has quit [Ping timeout: 272 seconds]
<IceDragon>
but if you wanted to map (collect) and select, I'd use each_with_object, or inject
<IceDragon>
I prefer each_with_object
oddskill is now known as odd_the_medium
<IceDragon>
sts: Added an each_with_object example -,-
speakingcode has joined #ruby
gaganjyot has joined #ruby
<sts>
IceDragon: I just need to fetch elements which match a condition, so select should be fine.
odd_the_medium is now known as odd_the_skiller
sohrab has quit [Ping timeout: 250 seconds]
<IceDragon>
sts: okie then
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
goggy has joined #ruby
B1n4r10 has joined #ruby
B1n4r10 has quit [Client Quit]
Hijiri has quit [Quit: WeeChat 1.0.1]
juanpaucar has joined #ruby
juanpaucar has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
<ytti>
i didn't know about #each_with_object
<ytti>
seems like it'll save 1 line in quite typical code
<IceDragon>
ytti: each_with_object is a saner #reduce or #inject
<sts>
ytti! :) thanks
<ytti>
when you're iterating over enumerable, but not every element goes into anothe robject
<adaedra>
ytti: and have a better scope
<IceDragon>
sts: np, glad to be of service
jottr has quit [Ping timeout: 255 seconds]
<ytti>
IceDragon, i think it's totally different :) not saner
<ytti>
like i might often do
<ytti>
hash2 = {}
naftilos76 has joined #ruby
<ytti>
hash1.each do |key, value|
mikecmpbll has quit [Ping timeout: 240 seconds]
<ytti>
#sometimes insert something to hash2, but not for every key
<ytti>
end
<ytti>
it seems i can instead do
bkulbida has quit [Quit: leaving]
ki0 has quit [Read error: Connection reset by peer]
ki0_ has joined #ruby
bkulbida has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
<ytti>
hash2 = hash1.each_with_object([]) do |(key, value), hash_temp|
<ytti>
..
<ytti>
end
<ytti>
or does it work with hash like that?
catcher has joined #ruby
<IceDragon>
yup, unless your doing mruby, in which (key, value) expansion isn't supported (yet!)
bkulbida has quit [Client Quit]
<ytti>
neat
bkulbida has joined #ruby
<catcher>
Any php converts on? How long did it take you to become proficient with ruby?
<ytti>
proficient seem vague
<ytti>
i felt my ruby code was better than my perl code in about 3 weeks
<ytti>
but i never tried to study perl, i just wrote it very opportunistically
<IceDragon>
ytti: Dude its perl ;x
Guest52633 has joined #ruby
<ytti>
and i spent some time trying to learn ruby, so it's not entirely fair comparison
ki0_ has quit [Remote host closed the connection]
<adaedra>
catcher: it depends which level you want to achieve
<adaedra>
and if you want to replace php, you have also to take account the web framework you'll use to replace PHP's web stack
<IceDragon>
sinatra!
<IceDragon>
>.>;
jakolehm has quit []
<adaedra>
<.<;
<IceDragon>
sinatra is da bestest &~&
Guest52633 has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
GnuYawk has joined #ruby
<catcher>
Indeed, I'm just trying to get a sense of how different the languages themselves are. Level-wise, let's say php expert -> ruby expert.
rbennacer has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ytti>
i'm obviously biased
<ytti>
but i think php is one of the worst languages out there
bkulbida has quit [Quit: leaving]
bricker has joined #ruby
bkulbida has joined #ruby
jottr has joined #ruby
<ytti>
i think only reason why it even 'happened' is because in mid 90's if you wanted cheap web hosting, it was php
<ytti>
because php was super easy to get along with apache
Igorshp has quit [Remote host closed the connection]
<ytti>
and everything else required bit more work
<catcher>
The ruby documentation I've read is very good. I'm looking for real-world examples of how much time it took people to become truly proficient with backgrounds in other languages, including php.
<ytti>
i think php is very complex to learn, because the level of consistency in design is low
scripore has joined #ruby
<ytti>
it's hard to predict what function takes as an arguments, in what order and what does it return
<ytti>
and how the funcition is named
duderonomy has quit [Ping timeout: 246 seconds]
<IceDragon>
catcher: I started with ruby, coming from pascal (beginner level), took me roughly 3 years to get my bearings down (I started with 1.8.6, the days of the o so dreaded "RUBY IS SLOWWWWWWWwwwww")
<ytti>
but again, i fully accept my views are biased and based on pre php5
<toretore>
catcher: it depends on how much effort you put into it
* IceDragon
prepares for pascal flaming
<catcher>
ytti, I'd say you're right to an extent; I think the libraries are more flawed than the language itself, but same outcome.
Morkel has joined #ruby
<toretore>
catcher: if you already know programming, it'll only take a few months
* wwwbukolaycom
zachrab has joined #ruby
<catcher>
toretore, thanks, that was my guess based on the docs. 2-4 months if I'm using it a lot daily.
juanpablo_ has joined #ruby
michaeldeol has joined #ruby
<apeiros>
wwwBUKOLAYcom: advertising here is not welcome. either you have something ruby related, or you leave the channel.
krisquigley has joined #ruby
sgambino has joined #ruby
werelivinginthef has quit [Ping timeout: 256 seconds]
The_Phoenix has quit [Read error: Connection reset by peer]
<IceDragon>
apeiros: Why not warm up the old kick boot?
jottr has quit [Ping timeout: 272 seconds]
dotix has joined #ruby
dotix has joined #ruby
Zai00 has quit [Quit: Zai00]
<apeiros>
IceDragon: it's warm enough as it is
<IceDragon>
nah, needs to be smoldering hot
<IceDragon>
To the point where it burns through metal!
<IceDragon>
:3
rkazak has quit [Quit: Sleep.....ing....]
goggy has quit [Quit: Bye]
bkulbida has quit [Quit: leaving]
bkulbida has joined #ruby
<eam>
IceDragon: pascal is fantastic
Aswebb__ has joined #ruby
<IceDragon>
eam: Meh, I never liked pascal, I prefer C
bboss has joined #ruby
zachrab has quit [Ping timeout: 252 seconds]
Aswebb_ has quit [Ping timeout: 272 seconds]
scripore has quit [Quit: This computer has gone to sleep]
<preyalone>
How do I load 2.0 with chruby, where ruby 2.0 was installed with rvm?
<eam>
I prefer C as well, but pascal is still a great language
Lucky__ has joined #ruby
krisquigley has quit [Ping timeout: 255 seconds]
<adaedra>
wowowowow
<adaedra>
I leave #ruby 5 minutes
Stalkr_ has joined #ruby
<thomcom>
I wish I knew pascal. Back when I was playing tons of BBS games there was nobody around to help me make the jump from BASIC.
<adaedra>
And I come back, it speaks about C, pascal and BASIC
<eam>
how can we make ruby more like pascal
<IceDragon>
adaedra: also PHP
<sweeper>
man pascal
<adaedra>
ok, see ya
<sweeper>
is it still tbt?
rbennacer has joined #ruby
* adaedra
has quit the channel (Good bye)
i8igmac has quit [Ping timeout: 272 seconds]
* IceDragon
successfully scared away adaedra
DerisiveLogic has joined #ruby
* IceDragon
unlocks achievement "Mentioning evil languages in #ruby"
rodfersou has quit [Ping timeout: 264 seconds]
* wwwbukolaycom
<jhass>
!mute wwwBUKOLAYcom
thatslifeson_ is now known as Conner_A
ghr has quit [Ping timeout: 255 seconds]
nfk has joined #ruby
i8igmac has joined #ruby
<mg^>
Pascal. That brings back uncomfortable memories.
ndrei has quit [Ping timeout: 265 seconds]
scripore has joined #ruby
rodfersou has joined #ruby
<eam>
why all the hate? :(
<IceDragon>
eam: I was forced to learn pascal in school
<IceDragon>
;-;
<IceDragon>
FORCED
<eam>
me too, but it was fantastic
<mg^>
Yeah that pretty much fits.
bigmac_ has joined #ruby
<thomcom>
Man Land of Devastation was written in pascal
<thomcom>
Legend of the Red Dragon was too I think
<mg^>
Lots of BBS software was
zorak8 has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
<thomcom>
BBS was the height of human society :D
<mg^>
However... I had to learn Pascal on an implementation designed for 80 columns on a 40-column computer...
<thomcom>
Once the internet became prolific it was immediately hijacked by banks and NSA
<IceDragon>
I remember pleading with my CS teacher to teach ruby instead of pascal
<mg^>
I have a working telnet BBS with a working LoRD, too :)
maximski has joined #ruby
<thomcom>
lol what
<mg^>
running Renegade
<thomcom>
there's no overlap between ruby and pascal IceDragon??
<thomcom>
hehe
<thomcom>
mg^ awesome!
<thomcom>
can I telnet into your bbs?
<eam>
yeah I thought schools had dumped pasal by the time ruby was in common use
<mg^>
I map the telnet sessions to DosEMU instances that I dynamically spin up with the telnet sessions
<thomcom>
1995 Ruby First Appeared according to wikipedia
<thomcom>
Pretty sure 1995 is when pascal was Dead and Buried
<thomcom>
hehehe
<mg^>
thomcom: unfortunately no, I'm not positive of the security of the thing so I haven't unleashed it to the world
<IceDragon>
eam: Nope, they still teach Pascal, they used to do C and C++, buuuut, you know, shit happened, and teachers got sick of explaining the C-quirks
<thomcom>
whoa
<thomcom>
where were you taught pascal IceDragon?
<eam>
thomcom: should be closer to 1999, which iirc is when the AP computer science programs in high school switched over to C++ nationwide
<havenwood>
preyalone: Your question was answered in #chruby and #rvm. In the future please say in each channel if you crosspost so others can find the answers and not waste time with duplicate answers.
<mg^>
AP computer science?
<eam>
and then to java a few years later
<mg^>
You kids got everything handed to you.
<IceDragon>
thomcom: Eh em, first up, Jamaica, Manchester High School (before you go all AHHHHHH, yes Jamaica)
<mg^>
:-)
i8igmac has quit [Ping timeout: 250 seconds]
<thomcom>
I did C++ in CS #2 college in 1996
<mg^>
Anyone here do Terrapin Logo?
<eam>
I did logo
<thomcom>
The most anybody knew about computers in high school for me was HyperCard
<thomcom>
:'(
<apeiros>
HyperCard… <3
<eam>
logo on a commodore PET
rodfersou has quit [Ping timeout: 244 seconds]
<IceDragon>
thomcom: Well, I was the top of the class, since everyone was lost to programming >,>
<IceDragon>
almost felt like cheating
<mg^>
When I was a CIS major we did mostly Java, but for some classes (networking and security) we did C.
bboss has quit [Quit: bb pipy]
<thomcom>
still in Jamaica IceDragon?
<thomcom>
mg^ Land of Devastation is still my favorite game of all time
qba73 has quit [Remote host closed the connection]
chridal has quit [Ping timeout: 240 seconds]
gregf1 has quit [Quit: WeeChat 1.0.1]
<mg^>
I like TradeWars
<thomcom>
TradeWars is awesome
sohrab has joined #ruby
<thomcom>
The later versions of it got it wrong somehow and I fell out of using it.
<thomcom>
Tradewars 2002?
<mg^>
Yeah same here
<thomcom>
Did they make a Tradewars 2003 or something?
ctOSconnected has joined #ruby
<mg^>
Actually, that'd be a sweet one to clone in Ruby
goggy has joined #ruby
<shellfu>
yeah sucked it was only windows. I was going to throw a server up a few months ago
<thomcom>
I was writing a text adventure game in python - I think I'll switch it to ruby
<IceDragon>
thomcom: born and raised in Jamaica, ^~^ so yep
<shellfu>
ill donate servers to a trade wars project ;)
ctOSconnected has quit [Client Quit]
<thomcom>
nice IceDragon you making a living now in Jamaica doing software?
<IceDragon>
nope :(
dotix has quit [Ping timeout: 265 seconds]
<IceDragon>
sadly
<IceDragon>
thomcom: The languages used here are mostly C++ and Java
<thomcom>
Hmm. Run Tradewars in a DOSBox emulator, pipe it into a ruby server
<IceDragon>
especially Java
<mg^>
I'm a good enough programmer that I could probably write a TW clone. However I am not a good enough programmer that it would be considered a very good implementation.
<IceDragon>
o_O I'd like C#
michaeld_ has joined #ruby
jayeshsolanki has joined #ruby
<ytti>
i don't know much about geography, but ice does not seem apt for jamaica :)
queequeg1 has quit [Ping timeout: 245 seconds]
<IceDragon>
ytti: I just liked ice and dragons, and merged the 2 into a CamelCased union
granthatcher has quit []
djbkd has quit [Ping timeout: 256 seconds]
amdbcg has quit [Ping timeout: 248 seconds]
<ytti>
maybe i should change nick to SleepFood
<IceDragon>
ytti: You'd probably be SleepFood937
robertozimek has joined #ruby
jayeshsolanki has quit [Max SendQ exceeded]
<ytti>
darn
vim_shimm has quit [Ping timeout: 250 seconds]
jayeshsolanki has joined #ruby
michaeldeol has quit [Ping timeout: 264 seconds]
ctOSconnected has joined #ruby
rdark has quit [Quit: leaving]
<ctOSconnected>
how would you hack a database of a website using ruby
<ctOSconnected>
i can do it in cmd
rkazak has joined #ruby
<wasamasa>
lol
zzing has joined #ruby
<tobiasvl>
wtf
<wasamasa>
you must be either the worst hacker or troll ever present in #ruby
<ctOSconnected>
why
<IceDragon>
ctOSconnected: why?
<ctOSconnected>
i'm trying to write a code to access the database of a website
<IceDragon>
Just WHYYYYY
<tobiasvl>
ctOSconnected: so is your name a watch_dogs reference? are you trying to be the protagonist of watch_dogs
kstuart_ has quit [Quit: WeeChat 1.1.1]
<ctOSconnected>
so there's a software for it. not just cmd
failshell has quit [Remote host closed the connection]
<ctOSconnected>
tobiasvl:yeah because I can hack websites
<ctOSconnected>
me and my friend do it all the time
<IceDragon>
apeiros: I'm scared ;-;
<shellfu>
lol
mistermocha has joined #ruby
<ctOSconnected>
i can access a vpn server i use using cmd
<ctOSconnected>
but i dont know how to access that shell with ruby
mleung has joined #ruby
* shellfu
thinks script kiddies are cute.
<ctOSconnected>
....?
<ctOSconnected>
ok
<ctOSconnected>
fuck yall
<shellfu>
lol
ctOSconnected has left #ruby [#ruby]
<adaedra>
they're cute until they fuck you, shellfu
MatthewsFace has joined #ruby
Cust0sL1men has quit [Ping timeout: 240 seconds]
GaryOak_ has joined #ruby
<shellfu>
meh.
ramfjord has joined #ruby
centrx has joined #ruby
<apeiros>
y'all didn't say hi to good old deathcode?
* apeiros
afk for about an hour
<shellfu>
I dont own my companies systems. If they do get into my personal stuff, all they will find is open source code I have given away anyhow :)
<IceDragon>
I'm glad that's over
<IceDragon>
shellfu: And kittens
<shellfu>
I dunno. Mine may be fuzzy, but he bites like a son of a bitch
<IceDragon>
Every programmer should have a directory filled with cat and duck pictures
<adaedra>
I once saw one guy who got hand on a botnet and attacked an IRC network
ctOSconnected has joined #ruby
<ctOSconnected>
do you guys hack?
vt102 has joined #ruby
<adaedra>
One tried to kick him, he targeted and DDoS'd the client with notices, pm and ctcp...
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
* shellfu
has nothing to prove to anyone
<IceDragon>
yeah, I hack together some code that somehow makes my system run >_>
<adaedra>
"somehow"
<adaedra>
see ya
<ctOSconnected>
okay?
<ctOSconnected>
why are you guys
mclee_ has quit [Ping timeout: 255 seconds]
<ctOSconnected>
so condescending?
<ctOSconnected>
i'm asking a serious question here
* shellfu
remembers: Arrogance + Ignorance == Ego. Keep it in check or be embarrassed by it
<thomcom>
you're asking how to commit a felony asshole
<IceDragon>
adaedra: I know right, "somehow"
maximski has quit []
<thomcom>
"Hey guys how do I goes to teh prisons?!?!"
<ctOSconnected>
how is this a felony?
rbennacer has quit [Ping timeout: 256 seconds]
<IceDragon>
break in and enter
izzol has quit [Quit: leaving]
<IceDragon>
unlawful entry
<thomcom>
accessing something on the internet that you haven't been given access to is a felony
<havenwood>
be nice please.
<ctOSconnected>
yeah on the computer. not someone's house
<ctOSconnected>
I'm not mean
<ctOSconnected>
ok
<IceDragon>
Your invading personal property, a computer is someone's property
<thomcom>
no, ctOSconnected, accessing remote servers is a more serious criminal offense than stealing somebody's tv
<ctOSconnected>
so then i guess I'm going to prison then because I've done it multiple times
<thomcom>
See what they will do to you, look up @weev
* IceDragon
borrows thomcom's tv
<shellfu>
god I wish someone would steal my TV. then maybe the wife will let me get a new one
The_Phoenix has joined #ruby
ianseyer has quit [Ping timeout: 276 seconds]
* IceDragon
steals shellfu's tv and replaces it with a toaster
<shellfu>
mmmmm toast
<sohrab>
jhass: u here?
<IceDragon>
Except I have no use for tvs
<ctOSconnected>
weev is ugly
* IceDragon
returns the tv to shellfu
<thomcom>
I'm looking at a 50" 4k TV right now :D
<shellfu>
awww :(
hazelux has joined #ruby
<IceDragon>
Why have a TV when your laptop can do all it can and more ;3
<jhass>
sohrab: sup?
<IceDragon>
do it all*
<ctOSconnected>
IceDragon:why get a girlfriend when your hand can do it all and more ;)
<ctOSconnected>
if you have nice tv, pretty soon you have nice gf
<ctOSconnected>
confucious say
<jhass>
!mute ctOSconnected
<ponga>
i tried googling X is dead where X is programming language
<IceDragon>
jhass: arigato *me bows*
<shellfu>
ahhh silence is golden
<ponga>
i found python is not dead
krisquigley has joined #ruby
Limix has joined #ruby
<havenwood>
ponga: python 3?
<sohrab>
jhass: remember http://cloud.aeshna.de/u/mrzyx/screenshots/screenshot_20150414_223346.png? i've been thinking about it. i don't think i said this earlier, but the quiz asked for unique fragments among different lines, but also within each line. am i right that this doesn't solve the problem bc the set wouldn't accept the same word twice (if the same fragment appeared on one line)
<IceDragon>
ponga: It can't be, I'm still using ranger ;x
<noobQ>
shellfu: u should not say God name without a purpose check 10 commandments
thejoecarroll has joined #ruby
<ponga>
hi havenwood
<havenwood>
ponga: hey
<ponga>
nah i just searched for 'python is dead' and top page result didn't convince me enough it were dead
<IceDragon>
ponga: check if pascal is dead!
<IceDragon>
3:
<noobQ>
ponga: no language dies
<shellfu>
noobQ, isn't the christian gods name Jahova? I spelled it wrong im sure, but darnit Indiana Jones taught me SOMETHING
<jhass>
sohrab: yeah, you'd want an additional datastructure that maps line => unique framents in that line
<ponga>
IceDragon: it seems to stay at schredinger state of dead
<thomcom>
Jehova, ya
<tobiasvl>
jehova/yahweh
<IceDragon>
dang it!
<IceDragon>
die already pascal!
<IceDragon>
;-;
fryguy9 has quit [Quit: Leaving.]
<ponga>
IceDragon: you have to open the box sir
<IceDragon>
ponga: pass the key then
<noobQ>
shellfu: i gave advise and ur wish I am not too religious also
* IceDragon
puts on gloves and gas mask
<ponga>
somebody lost the key
<havenwood>
ponga: Very popular languages and dead languages have no overlap. Any language in the first group that is rumored to be in the second, well it isn't.
hazelux has quit [Ping timeout: 252 seconds]
<ponga>
its forever unknown
<noobQ>
shellfu: I am hindu who believe in christianity
<noobQ>
:-0
<IceDragon>
"There are only 2 kinds of languages, the ones that everyone complains about and the ones that nobody uses"
DeBot has joined #ruby
<shellfu>
To each their own. I dont judge someones belief system. Id be a damn fool to be that arrogant
<IceDragon>
I forgot where this quote came from
<ponga>
IceDragon: where does haskell fit in?
<havenwood>
Ruby.
<IceDragon>
ponga: Good point D:
* ponga
raises hat
<IceDragon>
Haskell is good, and people actually uses it
<Aristata>
Hello, I need some help, I am trying to use the postgres COPY command, but am getting this error: DataObjects::SyntaxError: ERROR: must be superuser to COPY to or from a file. Now I have been told that I can replace #{path} here: affected_rows = DataMapper.repository.adapter.execute("copy factset_holdings from '#{path}' delimiter '|' null '\\N';").affected_rows with STDIN, my question, is how do I read the contents of my file to STD
predator117 has quit [Ping timeout: 264 seconds]
<havenwood>
ponga: I just got some mruby working in crystal yesterday. Fun stuff. They're very different beasts so it's not an either or.
<ponga>
so you write something library in ruby and have it run on crystal?
<jhass>
sohrab: maybe I don't get the assignment then
<IceDragon>
ponga: More like using crystal in place of C to extend ruby for performance reasons
ctOSconnected has left #ruby [#ruby]
scripore has quit [Quit: This computer has gone to sleep]
<havenwood>
ponga: That's what I got working yesterday in the Hello, world! example I pasted above. Ruby embedded in Crystal. But you can then take that and use it as an extension in a Ruby gem. So Ruby in your Crystal in your Ruby.
<IceDragon>
havenwood: INCEPTION
zachrab has joined #ruby
scripore has joined #ruby
<sohrab>
jhass: i'm 99% sure you're right and idk what i'm doing. i'll spend some more time thinking about it. thanks for all the help :)
allcentury has joined #ruby
<ponga>
havenwood: that is so inception i thought what you are suggesting is what IceDragon said
<sohrab>
i already submitted the quiz... i'm just trying to deepen my understanding of data structures
chridal has joined #ruby
Andoriyu has joined #ruby
<sohrab>
do people use trees and graphs in ruby?
<IceDragon>
"yo dawg, we heard you like ruby, so we embed ruby in your ruby, so you can ruby while you ruby"
paulcsmith has joined #ruby
<sohrab>
i mean regularly...
<IceDragon>
sohrab: Gem uses a tree :3
<IceDragon>
sohrab: Apart from that, nope, not really, not on the surface that I've seen
snockerton1 has joined #ruby
<sohrab>
IceDragon: what do you mean Gem? gems in general?
snockerton1 has quit [Read error: Connection reset by peer]
<IceDragon>
sohrab: rubygems, uses a Tree for storing gem specs and their deps
snockerton1 has joined #ruby
<sohrab>
IceDragon: ah, interesting
thomcom has joined #ruby
goggy has quit [Ping timeout: 246 seconds]
<IceDragon>
sohrab: Believe or not, you end up with a tree easily in ruby by using Hashes
spider-mario has joined #ruby
snockerton1 has quit [Client Quit]
snockerton1 has joined #ruby
snockerton has quit [Ping timeout: 250 seconds]
gaganjyot has quit [Read error: Connection reset by peer]
snockerton1 has quit [Client Quit]
fryguy9 has joined #ruby
<sohrab>
IceDragon: hm. that kinda makes sense with my limited understanding
djbkd has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rodfersou has joined #ruby
tubuliferous_ has joined #ruby
scripore has joined #ruby
bnchrch has joined #ruby
gregf has joined #ruby
Lloyd is now known as lloyd
bnchrch has quit [Client Quit]
bnchrch has joined #ruby
bMalum has joined #ruby
DrCode has quit [Ping timeout: 264 seconds]
pietr0 has joined #ruby
adamjleonard has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
nszceta has joined #ruby
huddy has joined #ruby
naftilos76 has quit [Read error: Connection reset by peer]
eighthbit has joined #ruby
axl__ has joined #ruby
axl_ has quit [Ping timeout: 264 seconds]
axl__ is now known as axl_
naftilos76 has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
ponga has quit [Remote host closed the connection]
gsd has joined #ruby
towski_ has joined #ruby
tvw has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
towski_ has quit [Read error: Connection reset by peer]
ModusPwnens has joined #ruby
tubuliferous_ has quit [Ping timeout: 264 seconds]
<ModusPwnens>
In ruby, is there some sort of convention about how you should return data? For example, in Java, it's very common to make POJOs to return things since maps are kind of annoying. In ruby, is it more common to just return a hash?
<ModusPwnens>
If the things you are returning don't have behaviour associated with them, should you return a hash or a 'poro'?
<jhass>
a hash
<jhass>
it's also common to return an array if you want to return multiple values
workmad3 has quit [Ping timeout: 256 seconds]
<jhass>
the caller can do a, b = your_method
<ModusPwnens>
Is there some document or article I can refer to talking about the convention?
<jhass>
I'm not aware of any
wallerdev has joined #ruby
<ModusPwnens>
Our team is sort of new to ruby and I kind of want to have SOME source to use as data to begin talking about it
<jhass>
you can always just pick a popular gem and dig out an example where they do it that way
dcarmich has quit [Read error: Connection reset by peer]
ParmesanCaesar has quit [Ping timeout: 248 seconds]
failshell has joined #ruby
<mg^>
"Don't use parentheses around the condition of an if/unless/while." Yeah, that's kind of like quitting smoking. It doesn't go well for the first few weeks after switching from a language that requires them. :-)
OrbitalKitten has joined #ruby
riotjones has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
ponga has joined #ruby
<thomcom>
i hate useless parens
adamjleonard has joined #ruby
<thomcom>
parens that signify nothing
<thomcom>
AN IF STATEMENT! I wonder what these symbols afterward signify?
blt has quit [Read error: Connection reset by peer]
blt has joined #ruby
bricker has quit [Ping timeout: 256 seconds]
AlphaTech is now known as zz_AlphaTech
zz_AlphaTech is now known as AlphaTech
RegulationD has quit [Ping timeout: 255 seconds]
thumpba has quit [Ping timeout: 246 seconds]
riotjones has joined #ruby
wallerdev has quit [Quit: wallerdev]
AngryGarbo has left #ruby [#ruby]
fryguy9 has quit [Quit: Leaving.]
yfeldblum has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
juanpablo_ has joined #ruby
AlphaTech has left #ruby [#ruby]
havenwood has quit [Ping timeout: 276 seconds]
cjim_ has joined #ruby
dreinull75 has joined #ruby
lidenskap has quit [Remote host closed the connection]
blt has quit [Read error: Connection reset by peer]
colorados has quit [Ping timeout: 246 seconds]
blt has joined #ruby
riotjones has quit [Ping timeout: 248 seconds]
rbennacer has joined #ruby
reinaldob has joined #ruby
DerisiveLogic has quit [Ping timeout: 264 seconds]
<ohcibi>
why does bundle exec rake db:migrate tells me that rake is not part of the gemfile? it works locally and I'm using the same version of bundler on the server oO
reinaldob has quit [Remote host closed the connection]
<ohcibi>
i never added rake to my Gemfile oO
<dreinull75>
I have built a lib that basically accesses a db via Sequel with some sugar added to it. I don't trust this db because many fields are missing so I can't do all operations as expected (user.address.street problem). This is why I want to add a maybe monad to its classes. Is this a good idea? Can it be done? I was thinking of using the monads gem for that.
colorados has joined #ruby
<dreinull75>
So I can just go ahead and chain all kinds of things and only in the end I'd get a nil. Not in between.
delianides has joined #ruby
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<jhass>
dreinull75: check the null object pattern
Aswebb_ has joined #ruby
blt has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
<dreinull75>
jhass oh, forgot about that. One step back. I have read up on avdis naught gem
blt has joined #ruby
Aswebb__ has quit [Ping timeout: 245 seconds]
rbennacer has quit [Remote host closed the connection]
NinjaOps has quit [Remote host closed the connection]
kstuart has joined #ruby
michaeld_ is now known as michaeldeol
bricker has joined #ruby
TerjeLarsen has quit [Read error: Connection reset by peer]
fryguy9 has joined #ruby
terlar has joined #ruby
x1337807x has joined #ruby
ParmesanCaesar has joined #ruby
reinaldob has joined #ruby
maletor has joined #ruby
lolmaus__ has quit [Remote host closed the connection]
<dudedudeman>
i know i'm using the instance variable @monitors and i know it is not currently connected to that get request
<zenspider>
everything is an object
<dudedudeman>
jhass: i know i should be setting it in my get request
<jhass>
why don't you then
<zenspider>
there's no "chances are" about it.
lidenskap has quit [Client Quit]
<dudedudeman>
i do know vairables are not objects
<zenspider>
dudedudeman: do you see ANYTHING connecting that request to @monitors?
pcp135 has quit [Read error: Connection reset by peer]
<zenspider>
variables point at objects
<dreinull75>
For method_missing I need case insensitive matching to existing methods. Is selecting via casecmp my choice or is there a better solution?
<zenspider>
aka they're just a label for an object...
<dstarh>
Anyone know if it's possible to properly stub the initialize method of a Singleton with Mocha?
<dudedudeman>
labels. got it
<dudedudeman>
zenspider: i currently am not sure what to point @monitors at. @montiros = DreamColorMonitor.all?
<zenspider>
dstarh: I don't... but initialize is just a method, so probably
<jhass>
dreinull75: sounds like you're down a very wrong path, do you know at least that all methods are downcase or something?
<zenspider>
dudedudeman: that's up to you and how you're going to use it. looks like you only use it in the title, so that seems wrong
<toretore>
dreinull75: you'll get better answers if you explain the problem that makes you want to do this
lidenskap has joined #ruby
mclee_ has quit [Ping timeout: 252 seconds]
<weaksauce>
dudedudeman yes if you want to iterate over all the monitors and display them
<zenspider>
dreinull75: seems like a code smell to me
<dstarh>
zenspider this works NlpWrapper.stubs(:new).returns(nil) but then anything that later wants to use NlpWrapper.instance like NlpWrapper.instance.parse gets "can't call parse on null"
adamjleonard has quit [Quit: Leaving...]
<dstarh>
s/null/nil
zachrab has quit [Ping timeout: 256 seconds]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce>
try @monitors = DreamColorMonitor.first to play around with it
amdbcg has quit [Ping timeout: 256 seconds]
<zenspider>
dstarh: you have a singleton (bad idea) AND you want to stub initialize? that doesn't really make sense
vim_shimm has quit [Ping timeout: 244 seconds]
<zenspider>
weaksauce: but, not plural?
spyderman4g63 has quit [Ping timeout: 255 seconds]
<weaksauce>
ah yeah plural
zacts has joined #ruby
krisquigley has joined #ruby
<dudedudeman>
that still returns my #
<weaksauce>
gist the output
<toretore>
look at the html source dudedudeman
<dstarh>
zenspider it's a wrapper class calling off to java that takes a number of seconds to startup which is the reason for the singleton. I really only want to stub one method, parse but I don't want anything in the initialize to run
<zenspider>
ah. he's to_s'ing an object, getting #<blahblah> and that's treated by the web browser
<zenspider>
dstarh: first off... this sounds like a place where mocking is entirely unnecessary, just assign the singleton w/ a new object and use it. second, if you do insist on mocking, why not mock #instance?
<dreinull75>
jhess and zenspider, it realtes to the DB question before. The database has tables with capital letter in it so when using Sequerl I have to use upper case methods as well: user.Address for example. Implementing the Null object I can add a proxy method that uses standard method names and add a Null object in case it's nil.
<dreinull75>
yay, that English is bad today.
blt has quit [Read error: Connection reset by peer]
vectorhero has joined #ruby
adamjleonard has joined #ruby
blt has joined #ruby
<dstarh>
all of the method calls are calling out to external services which may or may not be available at test time
<dstarh>
zenspider ^
zachrab has joined #ruby
zachrab has quit [Client Quit]
reinaldob has joined #ruby
<toretore>
dstarh: if you're going to mock something you also have to figure out how that mock should behave
<ytti>
this is vague, but i remember some password replacement, which was perhaps some generated picture you click, does this sound familiar to anyone? I looking for an URL to it
<jhass>
dreinull75: in the model do def address; Address || Address::Null.new; end
Suge_Knight is now known as apoplexy
<toretore>
i.e. nil probably doesn't behave in the same way
<jhass>
self.Address
<dudedudeman>
ok. @monitors = DreamColorMonitor.find(1), hooked in to @monitors.tag in my erb template, return one value of what i'm looking for
wallerdev has joined #ruby
<dudedudeman>
except, there are multiple tags in my table, and i'm trying to list all of them
ismaelga has joined #ruby
anaeem1__ has quit [Remote host closed the connection]
vectorhero has left #ruby [#ruby]
<weaksauce>
ytti you sure that wasn't a captcha alternative
<dreinull75>
jhass there are lots of columns in those tables :( I want to short cut
<weaksauce>
ytti something like select the cat from the pictures
<toretore>
dudedudeman: what you want is to iterate through @monitors (=DCM.all), which is done using @monitors.each
krisquigley has quit [Ping timeout: 276 seconds]
sohrab has joined #ruby
<dudedudeman>
toretore: I was just typing that out!!
Igorshp has joined #ruby
adamjleonard has quit [Client Quit]
<toretore>
dudedudeman: inside erb this looks like <% @monitors.each do |monitor| %><%# use monitor here %><% end %>
<dudedudeman>
toretore: except, when i do that and then put an inline block to iterate over them, i get [#, #, #]
<toretore>
dudedudeman: code, not words
<toretore>
i don't understand human, show me code
<jhass>
dreinull75: shortcut with something like {address: :Address}.each do |name, column| define_method(name) { public_send(column) || const_get("#{name.capitalize}::Null.new"); end; end; then
<jhass>
dreinull75: er, .new in the wrong place, but you get the idea
<dudedudeman>
because i'm green at this and you never know something until you try?
<jhass>
be explicit, not smart
<toretore>
dudedudeman: look at what i showed you above
<weaksauce>
dudedudeman puts returns nil.
<dudedudeman>
toretore: i'm typing that up now
failshel_ has quit []
<weaksauce>
you will see that output in the console as #<DCM object id whatever>
<dreinull75>
jhass ok, looks plausible. Thanks!
<toretore>
dudedudeman: the only way to make something show up in the resulting html from an erb template is to use <%= %>
jottr has joined #ruby
<dudedudeman>
<% @monitors.each do |monitor| %><%= monitor %><% end %>
maximski has quit []
freerobby has joined #ruby
<dudedudeman>
i did that and got ###
<toretore>
ok
<weaksauce>
monitor.tag
<weaksauce>
or monitor.name
<toretore>
dudedudeman: what is `monitor` supposed to output?
<dudedudeman>
oh good lord. there it is
musashi1 has joined #ruby
allcentury has quit [Ping timeout: 255 seconds]
<dudedudeman>
well, except they are all in one string now
<dudedudeman>
if that makes sense
<toretore>
do you know html?
<weaksauce>
dudedudeman you have to wrap it in html to make it work
Rapier- has quit [Quit: (null)]
roolo has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
<dudedudeman>
toretore: monitor has a tag attribute, so weaksauce was right in saying to add .tag. a tag is just the identifier i'm using for these monitors
blt has quit [Read error: Connection reset by peer]
<dudedudeman>
and html, yes. i'm going to ul it
<ytti>
weaksauce, i think it was password replacement
blt has joined #ruby
<weaksauce>
ytti I have only seen it in relation to captchas sorry
<ytti>
darn, no problem
<zenspider>
dstarh: and? it's a singleton, but you are trying to mock new instead of instance. also, no mock necessary. just replace it with an object that does what you want. easy
<dudedudeman>
weaksauce and toretore, you guys are awesome
<dudedudeman>
<ul><% @monitors.each do |monitor| %><li><%= monitor.tag %></li><% end %></ul>
<toretore>
dudedudeman: look at the html source and understand how the erb template becomes that. <% %> (without =) disappears; <%= v %> is replaced with whatever v is;
<weaksauce>
dudedudeman RoR and sinatra are basically just fancy string replacer machines
paulcsmith has quit [Read error: Connection reset by peer]
paulcsmith has joined #ruby
casadei has quit [Remote host closed the connection]
casadei has joined #ruby
rkazak_ has joined #ruby
<dudedudeman>
toretore: right on. does the code i put in right above your comment seem correct? it's rendering what i want for now
<dudedudeman>
weaksauce: so i'm learning. thanks for the .tag call there.
maximski has joined #ruby
DerisiveLogic has joined #ruby
maximski has quit [Max SendQ exceeded]
<toretore>
dudedudeman: yes, it's correct; if what you want is a <ul> with <li>tag</li>
elfuego has left #ruby [#ruby]
<sohrab>
IceDragon: you end up with a tree easily in ruby by using Hashes
<toretore>
dudedudeman: again, look at the generated html; not at what the browser dsplays
<sohrab>
IceDragon: ^^ how is that possible if hashes only allow 1 value
maximski has quit [Max SendQ exceeded]
<sohrab>
(how does it branch?)
<IceDragon>
sohrab: key value pairs, and sub hashes
<dudedudeman>
toretore: i'll have to ask the dumb question, where should i be looking for the generated html?
blt has quit [Read error: Connection reset by peer]
<sohrab>
IceDragon: oh, duh. the value can be a hash with multiple sub-hashes. got it ty
<IceDragon>
sohrab: { a: { b: { c: { } } } }
<weaksauce>
right click dudedudeman view source
<toretore>
^
<IceDragon>
[:a][:b][:c]
blt has joined #ruby
<dudedudeman>
... i'm an idiot. i was thinking to look in the console
<dudedudeman>
sorry, that is the obvious thing to be doing lol
StephenOTT has quit [Remote host closed the connection]
vim_shimm has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
GaryOak_ has joined #ruby
maximski has joined #ruby
<weaksauce>
it's strings the whole way down
maximski has quit [Max SendQ exceeded]
hjkl01 has joined #ruby
thatslifeson_ has joined #ruby
<hjkl01>
1+1/2+1/3+1/4+ ... - log(n)
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
hazelux has quit [Remote host closed the connection]
ParmesanCaesar has quit [Ping timeout: 276 seconds]
allcentury has joined #ruby
maximski has joined #ruby
Igorshp has quit [Remote host closed the connection]
Conner_A has quit [Ping timeout: 265 seconds]
maximski has quit [Max SendQ exceeded]
adamjleonard has joined #ruby
codecop has quit [Remote host closed the connection]
blt has quit [Read error: Connection reset by peer]
maximski has joined #ruby
hjkl01 has left #ruby [#ruby]
blt has joined #ruby
revoohc has quit [Quit: revoohc]
odd_the_skiller is now known as oddskill_away
maximski has quit [Max SendQ exceeded]
fella7s has joined #ruby
pcp135 has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
pullphinger15 has joined #ruby
FernandoBasso has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
blt has quit [Client Quit]
allcentury has quit [Ping timeout: 245 seconds]
maximski has joined #ruby
michaeld_ has joined #ruby
Hijiri has joined #ruby
segv has joined #ruby
devyn_ has joined #ruby
KramerC_ has joined #ruby
allcentury has joined #ruby
pullphinger has quit [Read error: Connection reset by peer]
MyGreenP1 has joined #ruby
JStoker has quit [Killed (holmes.freenode.net (Nickname regained by services))]
JStoker has joined #ruby
haroldwu has joined #ruby
adamjleonard has quit [Quit: Leaving...]
Kilobyte|StupidC has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
adzuci_ has joined #ruby
felixjet_ has joined #ruby
devyn has quit [Ping timeout: 264 seconds]
batm has quit [Ping timeout: 264 seconds]
KramerC has quit [Ping timeout: 264 seconds]
fella6s has quit [Ping timeout: 264 seconds]
Kilo`byte has quit [Ping timeout: 264 seconds]
thomcom has joined #ruby
michaeldeol has quit [Ping timeout: 264 seconds]
haroldwu_ has quit [Ping timeout: 264 seconds]
adzuci has quit [Ping timeout: 264 seconds]
kstuart_ has joined #ruby
KramerC_ is now known as KramerC
Contigi777 has quit [Quit: Leaving]
jottr has quit [Read error: Connection reset by peer]
DerisiveLogic has quit [Ping timeout: 250 seconds]
_djbkd has quit [Remote host closed the connection]
jottr has joined #ruby
Rodya_ has quit [Quit: Leaving...]
kstuart has quit [Ping timeout: 264 seconds]
pullphinger15 has quit []
felixjet has quit [Ping timeout: 264 seconds]
_djbkd has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
ponga has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
thatslifeson_ has quit [Read error: Connection reset by peer]
n008f4g_ has quit [Ping timeout: 248 seconds]
mengu has joined #ruby
mengu has joined #ruby
_djbkd has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
<apeiros>
DeBot: hangman ruby
<apeiros>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<apeiros>
aha!
<apeiros>
DeBot: ertn
<DeBot>
␣n␣␣␣n␣␣et␣␣␣␣␣r␣t␣ [] 0/12
jlast has joined #ruby
<apeiros>
DeBot: _:#
<DeBot>
␣n␣␣␣n␣␣et␣␣␣#␣r␣t␣ [_:] 2/12
<centrx>
DeBot, potato_salad
<DeBot>
␣n␣o␣nd␣et␣od#ar␣t␣ [_:psl] 5/12
<apeiros>
:<
<dudedudeman>
Debot, anything
<Mon_Ouie>
DeBot: iy
<DeBot>
␣n␣o␣nd␣et␣od#arity [_:psl] 5/12
<dudedudeman>
what are we doing?
riskish has joined #ruby
<apeiros>
DeBot: ub
<DeBot>
Unbound␣et␣od#arity [_:psl] 5/12
<apeiros>
DeBot: mh
<DeBot>
UnboundMethod#arity [_:psl] 5/12 You won!
<wallerdev>
lolol
charliesome has joined #ruby
Guest64554 has joined #ruby
chinmay_dd has joined #ruby
riotjones has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_djbkd has joined #ruby
babykosh has quit [Quit: babykosh]
ReK2 has quit [Remote host closed the connection]
MyGreenP1 has quit [Ping timeout: 245 seconds]
jlast has quit [Ping timeout: 265 seconds]
_djbkd has quit [Remote host closed the connection]
evanjs has quit [Remote host closed the connection]
EminenceHC has joined #ruby
<dudedudeman>
what the heck just happened
<centrx>
a man was hung
riotjones has quit [Ping timeout: 255 seconds]
danzilio has quit [Remote host closed the connection]
* dudedudeman
bows head in remembrance
<GaryOak_>
hahahah
amdbcg has joined #ruby
<sonOfRa>
centrx: but he wasn't hung
<sonOfRa>
they saved him
DrShoggoth has quit [Ping timeout: 265 seconds]
<EminenceHC>
What should I look into if I want to do something like: x = 1 30% of the time, x = 2 70% of the time?
<zenspider>
how many bots? all the bots.
<sonOfRa>
EminenceHC: get a random number between 1 and 100
<sonOfRa>
if the number is between 1 and 30, x = 1
<sonOfRa>
x=2 otherwise
<zenspider>
or 1 to 10
<EminenceHC>
sonOfRa: I want to set the percentage.
<sonOfRa>
or 0 to 1, whatever
RegulationD has joined #ruby
ldnunes has quit [Quit: Leaving]
<zenspider>
because reducing fractions is awesome
maximski has quit [Ping timeout: 248 seconds]
<sonOfRa>
EminenceHC: only ever 2 numbers, or possibly more?
<zenspider>
this sure sounds like homework...
<sonOfRa>
it really does. Fun exercise, too
ozialien has quit [Ping timeout: 264 seconds]
<EminenceHC>
sonOfRa: Only two numbers, but the two numbers can change. Sometimes it will be 60% 40%, sometimes 70% 30% etc.
Contigi has joined #ruby
lukec has joined #ruby
<zenspider>
EminenceHC: you really should do your homework yourself. that's kinda the point.
pika_pika has quit [Ping timeout: 245 seconds]
<zenspider>
we're happy to point you in the right direction, but that's it
<EminenceHC>
zenspider: I want to, just not really sure where to start with a question like htat.
<sonOfRa>
EminenceHC: I already told you how to do it, you can figure out the rest
rkazak_ has quit [Ping timeout: 256 seconds]
<EminenceHC>
ok
kuiysdr has joined #ruby
_djbkd has joined #ruby
<EminenceHC>
sonOfRa: That makes sense.
terlar has quit [Ping timeout: 245 seconds]
<sonOfRa>
of course, you have to assume that your RNG is randomly distributed
<sonOfRa>
if it's not, your distribution will vary if you run your program very often
RegulationD has quit [Ping timeout: 244 seconds]
vickleton has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
<dreinull75>
jhass: I don't quite get this part of your code: || const_get("#{name.capitalize}::Null.new"
<dreinull75>
whats it used for?
kyrylo has joined #ruby
<jhass>
const_get("#{name.capitalize}::Null").new
<jhass>
get and instantiate the null variant of your class
<jhass>
if you're lazy you can also do a generic Null object that returns self on all method calls
Hounddog has quit [Remote host closed the connection]
<jhass>
though then you will likely have calls succeed with the null object that wouldn't succeed with the real one, thus potentially hiding errors
colorisco has quit [Quit: colorisco]
<jhass>
so I'd recommend to write null classes that map them out explicitly
GameGear has joined #ruby
<GameGear>
!balance
<GameGear>
.balance
<GameGear>
meh
_djbkd has quit [Remote host closed the connection]
huddy has quit [Quit: Connection closed for inactivity]
<jhass>
GameGear: ?
<GameGear>
lol
<GameGear>
wrong room
<GameGear>
XD
GameGear has left #ruby [#ruby]
ponga has quit [Remote host closed the connection]
<EminenceHC>
sonOfRa: Yeah, I like that if I want to trust the random number but I am looking for more of a solution that will be closer. For instance 30% of time Create an object, 70% of the time create the same object with a different parameter. I thought about pushing a 1 into an array every time the first type is created, and after 3 1's are in the array(30%), create the other type of object and push a 0 into the array, until the array reaches 10
<EminenceHC>
and resets.
<EminenceHC>
sonOfRa: Something tells me I am overthinking this.
<EminenceHC>
Count of 10.. not 10 total.
<sonOfRa>
EminenceHC: you are. You can rely on the RNG being distributed properly
paulcsmith has quit [Quit: Be back later ...]
<EminenceHC>
sonOfRa: Thanks
<sonOfRa>
It would be quite valid if you had a percentage of 30% for "1" and 70% for "2"
<sonOfRa>
and got 10 "1"s in 10 tries
<sonOfRa>
this is how randomness works
Tuxero has joined #ruby
<sonOfRa>
the probability of this happening is, of course, fairly low (you can calculate it, another good exercise!), but it can happen.
<sonOfRa>
if you run it a million times, however, you will quite certainly see a distribution that shows your 30/70 pattern
shellfu is now known as shellfu_afk
sohrab has quit [Ping timeout: 265 seconds]
<dreinull75>
jhass, sorry I'm a bit slow today. I basically CLASSNAME::Null.new? How does it create a new object? I'm not too familiar with the double colon assumed it's only used to access methods and consts from outside their usual scope.
reinaldob has quit [Remote host closed the connection]
jerius has quit [Quit: /quit]
Zai00 has joined #ruby
<sonOfRa>
one thing you might want to watch though: You want to re-use the same RNG instance for all your tries. Don't re-initialize the RNG for each try.
hazelux has joined #ruby
<EminenceHC>
sonOfRa: I understand that, but what if I want it to be a perfect 30%, 70% every ten times.
<jhass>
dreinull75: you would define that class
ismaelga has quit []
<sonOfRa>
EminenceHC: then you don't use an RNG at all
<jhass>
class Address < Sequel::Model; class Null; def street; end; def city; end; ....
<sonOfRa>
then you get an "amount" and a "distribution" parameter, calculate the correct distribution, and start creating objects
doodlehaus has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
DrShoggoth has joined #ruby
<dreinull75>
jhass, oh, inside the other class you mean?
kuiysdr has quit [Quit: Page closed]
<jhass>
yeah, a class is a namespace too
work is now known as fxck
<dreinull75>
jhass, ok, gotcha.
<jhass>
module Foo; class Bar; / class Foo; class Bar; essentially the same
_djbkd has joined #ruby
_djbkd has quit [Remote host closed the connection]
<dreinull75>
jhass, ok, that makes sense now.
cpt_yossarian has quit [Quit: And then he took off.]
cpt_yossarian has joined #ruby
freerobby has quit [Quit: Leaving.]
<EminenceHC>
sonOfRa: Thank you son of sun god.
reinaldob has joined #ruby
hannahkoala has joined #ruby
reinaldob has quit [Remote host closed the connection]
DrShoggoth has quit [Client Quit]
chinmay_dd has quit [Ping timeout: 252 seconds]
ozialien has joined #ruby
balazs_ has quit [Ping timeout: 256 seconds]
byprdct has joined #ruby
grindmodeon has quit [Quit: Leaving.]
grindmodeon has joined #ruby
grindmodeon has quit [Client Quit]
allcentury has quit [Ping timeout: 248 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
amdbcg has quit [Ping timeout: 246 seconds]
n008f4g_ has joined #ruby
hannahkoala has quit []
<weaksauce>
is there an easy way to tell if it's the last item in an .each block?
wallerdev has quit [Quit: wallerdev]
<adaedra>
current == collection.last
<apeiros>
weaksauce: why? just don't iterate over all items
<apeiros>
ary[0..-2].each do … end; special(ary.last)
<apeiros>
better than performing a test on every iteration
DEA7TH has quit [Ping timeout: 264 seconds]
<shadoi>
weaksauce: you want each_with_index so you can check what index you're at.
<weaksauce>
apeiros conditionally not adding a horizontal rule to a list.
pauly_oc has joined #ruby
<apeiros>
weaksauce: good, then what I said. or use something like .join
timonv has quit [Ping timeout: 252 seconds]
<weaksauce>
the each with index works and it's what I was going to use but I was curious if there was an easier way to do it without involving the index
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
reinaldob has joined #ruby
<apeiros>
weaksauce: if you already have code - gist. easiest way to get better written versions.
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<jhass>
and probably extract rendering the location into a partial
mrmargolis has quit [Remote host closed the connection]
<jhass>
or you don't do %hr and define the separators as a border-bottom
bkxd has joined #ruby
<jhass>
with CSS
scripore has joined #ruby
<jhass>
and skip the last one with the pseudo class, :last or whatever it was
Aswebb_ has quit [Ping timeout: 272 seconds]
<apeiros>
weaksauce: hrm, templates - is it really only that little per location? or is it more? if it is more, I'd use a partial and what jhass said.
<apeiros>
also, <hr>? I thought they died out in 1998…
<weaksauce>
good suggestions, jhass. seems not worth the trouble.
KC9YDN has quit [Read error: Connection reset by peer]
<weaksauce>
ha. apeiros just a quick separator for some data
kbarry has joined #ruby
<apeiros>
weaksauce: .panel:not(:last-child) { border-bottom: 1px solid black } # or somesuch
<kbarry>
Getting an error why trying to update a gem: "no such file or directory" /var/www/.gem/ruby/1.9.1/cache/bundler-1.9.4.gem
<kbarry>
I'm concerned because the directory doesnt make any sense, its as if an environmental path is broken, but i am not seeing the 1.9.1 is my paths.
<jhass>
hr:last_child { display: none; }
* jhass
hides
<zenspider>
what if first/last used negative indexing semantics like slice does? ary.first(-2) would be all but the last 2, etc.
<kbarry>
how can i troubleshoot where this path is coming from?
<apeiros>
zenspider: I'd find it both, useful and confusing
<zenspider>
kbarry: env | grep GEM
<zenspider>
apeiros: I'm thinking the same thing :)
<jhass>
?abi kbarry
<ruboto>
kbarry, Each Ruby release has actually two versions, the interpreter version and the ABI version. The interpreter version is what commonly is referred to, for example 2.1.5. The ABI version is for the binary interface used by compiled extensions and it is what you see in your paths. It's usually shared among one release series, for example for the Ruby versions 2.1.0 to 2.1.5 the ABI version is
adamjleonard has joined #ruby
rbennacer has quit [Remote host closed the connection]
speakingcode has quit [Quit: leaving]
rbennacer has joined #ruby
<jhass>
er,
badhatter has quit [Read error: Connection reset by peer]
lidenskap has quit [Remote host closed the connection]
<apeiros>
you killed it jhass, you killed it :<
<ninjs>
it's funny that the ruby community gets such a bad rap when I feel like the python community is way more harsh/cold
vim_shimm has joined #ruby
badhatter has joined #ruby
martin_work has joined #ruby
<apeiros>
ninjs: we're held to higher standards. and we're proud to.
kblake has quit [Read error: Connection reset by peer]
kblake has joined #ruby
<kbarry>
zenspider thanks, not seeing anything as the user with the particular problem.
<ninjs>
even just saying 'lol' in #python will get you grilled. It's so bizarre. Don't people have more important things to worry about than whether someone types 'lol' or 'haha'?
<kbarry>
ie, env | grep GEM returns nothing.
<apeiros>
wow, I actually got that selector right on first try (that .panel:not(:last-child) thingy - it works)
<kbarry>
(It returns on the root user, but i'm not having a problem there)
<apeiros>
I *always* mess up :last-child. I always want to write :last
freerobby has joined #ruby
hannahkoala has quit [Read error: Connection reset by peer]
hannahko_ has joined #ruby
<kbarry>
The other issue is, as far as i knowso, we have 1.9.3 installed, but the error says no such directory (where it mentions 1.9.1 as part of the path.)
zacts` has joined #ruby
cats has quit [Quit: Wow, rude.]
<jhass>
kbarry: the Ruby version 1.9.3 has the ABI version 1.9.1, which is used in the path
<jhass>
well, everything below it should create automatically
rbennacer has quit [Remote host closed the connection]
somnia has joined #ruby
<ninjs>
h00d you are creating a new item, 'Sword', with some other properties, 'Espada', '50', and nil, and adding it to the player.inventory array
phutchins has joined #ruby
<jhass>
your versions are quite outdated, any chance you could update at least rubygems?
krisquigley has joined #ruby
somnia is now known as lmi3
apoplexy has quit [Ping timeout: 250 seconds]
blt has joined #ruby
<weaksauce>
jhass perfect! it was last-child though
lmi3 has quit [Client Quit]
<weaksauce>
and apeiros the reason I am using hr's is because they are already styled nicely with foundation and I don't really want to try to recreate that
<h00d>
ninjs: ok,
<weaksauce>
more of a backend programmer than a css guy.
<kbarry>
jhass: thats part oft he problem we are working on :)
<kbarry>
We know things are a bit "dated" here.
jlast has joined #ruby
<jhass>
well, I guess you can try creating the directory path manually
hannahko_ has quit [Read error: Connection reset by peer]
<hoelzro>
I think that it's just that there were certain choices that were made that are backwards incompatible
ponga has quit [Ping timeout: 250 seconds]
<hoelzro>
and the language didn't provide enough new things (or enough fixes for bad old things) to encourage people to move
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
badhatter has joined #ruby
Matachines has joined #ruby
blt has quit [Remote host closed the connection]
<mwlang>
hoelzro: ah. that would be the difference between there and ruby’s painful switch to 1.9 from 1.8. lots of gains and speed improvements was plenty incentive.
pengin has quit [Read error: Connection reset by peer]
pengin has joined #ruby
Filete has joined #ruby
pauly_oc has quit [Ping timeout: 245 seconds]
freerobby has quit [Quit: Leaving.]
sinequanon has joined #ruby
zacts has joined #ruby
freerobby has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
pietr0 has quit [Quit: pietr0]
MatthewsFace has quit [Remote host closed the connection]
RandyT has joined #ruby
ParmesanCaesar has joined #ruby
freerobby has quit [Client Quit]
RandyT_ has quit [Ping timeout: 245 seconds]
jefus has joined #ruby
grindmodeon has quit [Quit: Leaving.]
juanpablo_ has quit [Quit: (null)]
juanpablo_ has joined #ruby
justin_pdx has joined #ruby
juanpablo_ has quit [Client Quit]
<ninjs>
mwlang: I think there's a different mindset in the ruby community too. more people welcome change because they are familiar with needing to change to keep up. Ruby has a much faster/more breaking dev cycle
juanpablo_ has joined #ruby
codefo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ParmesanCaesar has quit [Ping timeout: 250 seconds]
justin_pdx has quit [Client Quit]
juanpablo_ has quit [Ping timeout: 256 seconds]
_djbkd has quit [Remote host closed the connection]
jottr has quit [Read error: Connection reset by peer]