<ryanneufeld>
agrantfile:7:in `to_bool': undefined method `blank?' for "false":String (NoMethodError)
Vile` has joined #ruby
ropeney has quit [Quit: Leaving]
SilverKey has quit [Quit: Halted.]
<ryanneufeld>
which doesn't make sense to me
<crime>
yeah thats weird
RegulationD has quit [Ping timeout: 276 seconds]
<weaksauce>
blank is not a ruby thing
<weaksauce>
it's a rails thing
<crime>
yeah strings dont have that method
<baweaver>
>> !!'false'
<ruby[bot]>
baweaver: # => /tmp/execpad-fd24853d35b9/source-fd24853d35b9:2: warning: string literal in condition ...check link for more (https://eval.in/559587)
<ryanneufeld>
weaksauce: thanks!!
<ryanneufeld>
that was it
<crime>
u can do .empty?
Rickmasta has joined #ruby
AncientAmateur has joined #ruby
AncientAmateur has quit [Client Quit]
<crime>
on strings, which is true for "" and ''
marr has quit [Ping timeout: 240 seconds]
<weaksauce>
blank? is true for strings like " "
<ryanneufeld>
ah
<baweaver>
>> nil.empty? # But be careful of this
<ruby[bot]>
baweaver: # => undefined method `empty?' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/559588)
<ryanneufeld>
thanks guys
* baweaver
still thinks that empty should be defined on nil
<patrick99e99>
Hey everyone.. I am trying to post an image blob with Net::HTTP... according to the ruby 2.0 Net HTTPHeader docs, it looks like I can, but I am having no such luck.. I am basically doing: request.set_form([['filename', 'lol.jpg'], ['file', File.open('lol.jpg')]], 'multipart/form-data')
<patrick99e99>
but somehow that is just not working........... if I curl, it works just fine.
kasisnu has joined #ruby
baweaver has quit [Remote host closed the connection]
<Radar>
patrick99e99: consider using typhoeus instead of Net:HTTP. Net::HTTP has an API that reminds me a lot of Angular.
<patrick99e99>
smathy: thanks.. Looking at that, do you know what "multipart_data" should look like? If I pass a file instance, I get a failure from the server I am uploading to "Unsupported Media Type".. which I assume is because it doesn't know the Content-type of the part is image/jpeg.
<patrick99e99>
is there a way to say, part 1 is Content-type: 'image/jpeg' ?
pawnbox has joined #ruby
danielpclark has joined #ruby
<michael_mbp>
hi all
<michael_mbp>
o/ Radar
<Radar>
hey michael_mbp
<michael_mbp>
anyone recall how to auto-wrap highlighted code in vim into a block?
chipotle has quit [Quit: cheerio]
symm- has quit [Ping timeout: 276 seconds]
mfb2 has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
symm- has joined #ruby
s00pcan has quit [Quit: Lost terminal]
jhack has quit [Quit: jhack]
djbkd has quit [Quit: My people need me...]
s00pcan has joined #ruby
<michael_mbp>
foound it ta
rahult_ has joined #ruby
jolts has quit [Ping timeout: 252 seconds]
mfb2 has quit [Ping timeout: 246 seconds]
s00pcan has quit [Remote host closed the connection]
s00pcan has joined #ruby
rahult has quit [Ping timeout: 244 seconds]
ropeney has joined #ruby
chipotle has joined #ruby
crime has quit [Ping timeout: 260 seconds]
vishwa has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
s00pcan_ has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<patrick99e99>
gah.. ok figured it out... the answer is: request.set_form([['file', file_instance, { :filename => 'my_file.jpg' }]], 'multipart/form-data')
binaryplease1 has joined #ruby
mjuszczak has quit []
<patrick99e99>
the options hash is apparently important
<Radar>
It's obvious in hindsight.
vdamewood has joined #ruby
pawnbox has joined #ruby
skweek has joined #ruby
binaryplease has quit [Ping timeout: 276 seconds]
lkba has joined #ruby
hxegon has quit [Ping timeout: 276 seconds]
GriffinHeart has quit [Remote host closed the connection]
blackmesa has joined #ruby
blackmes1 has quit [Ping timeout: 250 seconds]
pawnbox has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
lkba_ has quit [Ping timeout: 250 seconds]
mjuszczak has joined #ruby
saneax is now known as saneax_AFK
weemsledeux has joined #ruby
wilbert has joined #ruby
GriffinHeart has joined #ruby
<smathy>
patrick99e99, nice.
binaryplease1 is now known as binaryplease
s00pcan_ has quit [Remote host closed the connection]
<smathy>
Nothing about Net::HTTP is obvious, especially not where to find the docs for methods.
Xeago has quit [Ping timeout: 246 seconds]
allcentury has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
hxegon has joined #ruby
fsapo has quit [Remote host closed the connection]
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rahult has joined #ruby
bronson has joined #ruby
s00pcan_ has joined #ruby
htmldrum has joined #ruby
karapetyan has joined #ruby
w1lson has joined #ruby
speakingcode has joined #ruby
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 252 seconds]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amclain has quit [Quit: Leaving]
karapetyan has quit [Ping timeout: 244 seconds]
ferr has quit [Ping timeout: 260 seconds]
crazyphil has left #ruby [#ruby]
mjuszczak has quit []
patrick99e99 has quit [Quit: Page closed]
rahult has joined #ruby
jaguarmagenta has joined #ruby
tax has quit [Ping timeout: 252 seconds]
LoneHermit has joined #ruby
tax has joined #ruby
bradleyprice has joined #ruby
blaxter has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
tax has quit [Ping timeout: 250 seconds]
bradleyprice has quit [Ping timeout: 252 seconds]
deadnull_ has joined #ruby
deadnull_ has quit [Remote host closed the connection]
ropeney has quit [Ping timeout: 252 seconds]
deadnull_ has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
deadnull has quit [Ping timeout: 250 seconds]
deadnull_ has quit [Max SendQ exceeded]
deadnull has joined #ruby
deadnull has quit [Max SendQ exceeded]
deadnull has joined #ruby
Robtop__ is now known as pwnd_nsfw
symm-_ has joined #ruby
amincd has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
DotKite has quit [Ping timeout: 250 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<amincd>
hi, what does IO.sysopen do? I read the Ruby docs but don't fully get the point
flashpoint9 has quit [Remote host closed the connection]
tubuliferous has joined #ruby
tax has joined #ruby
mlakewood has quit [Quit: mlakewood]
blackmesa has quit [Ping timeout: 260 seconds]
jdawgaz has joined #ruby
bradleyprice has joined #ruby
jhack has joined #ruby
htmldrum has quit [Ping timeout: 246 seconds]
meinside has joined #ruby
baweaver has quit [Remote host closed the connection]
Guest58430 is now known as Cyrus
Cyrus has quit [Changing host]
Cyrus has joined #ruby
erict has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
hxegon has joined #ruby
Azure has quit [Remote host closed the connection]
rbennacer has joined #ruby
Vile` has quit [Ping timeout: 260 seconds]
kam270 has quit [Read error: Connection reset by peer]
deadnull has quit [Quit: Bye]
amincd has quit [Quit: Page closed]
brendan- has joined #ruby
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor_ has quit [Quit: Computer has gone to sleep.]
GinoMan2440 has quit [Ping timeout: 268 seconds]
<droptone>
Questino: I'm leveraging AR for this app and I'm attempting to minimize SQL transactions, since profiling indicates most of my activity revolves around SQL transiactions
<droptone>
Question*
davedev24 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
meinside has quit [Quit: Connection closed for inactivity]
<droptone>
Therefore, I'm essentially attempting to eager load this table into an array so that I can then perform analysis and comparisons on the values of the table while the contents of the table are in ram, without my app having to hit the DB
Spami has joined #ruby
Spami has quit [Client Quit]
<droptone>
Does anyone current present have experience with such activity?
<Gaelan>
droptone: Funny enough, I just asked a question about my implementation of this. Do you have a specific question?
davedev2_ has quit [Ping timeout: 252 seconds]
<droptone>
Gaelan: Well yes. to simplify the example, let's say I have a users table, and a patients table that belongs_to user.
<droptone>
I'm leveraging AR as my ORM
<droptone>
Basically
<droptone>
What happened was, I'm getting more customers for my app and I need to speed it up.
al2o3-cr has quit [Ping timeout: 276 seconds]
<benzrf>
Gaelan: nice :)
<droptone>
So I profiled it and it was clear the majority of my activity revolves around SQL DB queries, which are occurring against an Amazon RDS instance
<droptone>
So
<droptone>
right now, the way my app behaves is, simplified:
<benzrf>
Gaelan: hmm, not sure that's what you're looking for, though - the result hash will continue to default to []
pawnbox has joined #ruby
<droptone>
1) Load a bunch of data from a remote API provider
berserk_ren has quit [Ping timeout: 268 seconds]
<droptone>
2) Iterate through the data returned and compare it to the corresponding records on file
<droptone>
3) If needed, perform actions on said data and send them to another API
<droptone>
So what I'm trying to do is dump the "patients" table in an object so that I can perform the check-on-iteration in ram instead of having to hit the DB every time
Devalo has joined #ruby
rahult_ has quit [Read error: Connection reset by peer]
<droptone>
I'm trying to figure out the best way to do this minimizing SQL queries
rahult has joined #ruby
moeabdol1 has joined #ruby
w1lson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
emilford has joined #ruby
agent_white has quit [Quit: leaving]
agent_white has joined #ruby
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
w1lson has joined #ruby
axisys has quit [Ping timeout: 240 seconds]
Devalo has quit [Ping timeout: 268 seconds]
Bloomer has joined #ruby
<Gaelan>
benzrf: Huh. The argument could be made that an empty array makes more sense than nil. I guess it depends.
GriffinHeart has joined #ruby
moeabdol1 has quit [Ping timeout: 276 seconds]
<benzrf>
Gaelan: yr impl doesnt work anyway :V
jdawgaz has joined #ruby
* Gaelan
urbandictionary’s that emoticon
<Gaelan>
“Created by Internet pioneer Joe Griffith in August of 1999, the :V is as ambiguous as it is masterful, representing a variety of expressions and emotions. Occasionally seen on the somethingawful.com forums in one or more forms.”
Bloomer has quit [Read error: Connection reset by peer]
davedev24 has quit []
<benzrf>
:]
Bloomer has joined #ruby
<benzrf>
i think i have some kind of compulsive drive to add emoticons to my chats
defo has joined #ruby
tildes has joined #ruby
<benzrf>
and i guess i just kind of default to ambiguous/meaningless ones when i have nothing in particular to emote
GriffinHeart has quit [Remote host closed the connection]
ramfjord has joined #ruby
RegulationD has joined #ruby
axisys has joined #ruby
GriffinHeart has joined #ruby
stardiviner has quit [Ping timeout: 276 seconds]
Dimik1 has joined #ruby
Dimik1 has quit [Client Quit]
Dimik1 has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
al2o3-cr has joined #ruby
eboaz has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
bradleyprice has quit [Remote host closed the connection]
blaix has quit [Quit: Leaving.]
IrishGringo has quit [Ping timeout: 260 seconds]
Bloomer has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
<droptone>
So guys, got a question. If I have a User table, and I have a patients table that belongs_to :user, what is the preferred way of eager-loading user.patients to an object to minimize the number of SQL queries needed to load all patients for a given user?
eboaz has quit [Remote host closed the connection]
<droptone>
Using ActiveRecord, obviously.
Bloomer has joined #ruby
howdoicomputer has quit [Ping timeout: 250 seconds]
<Radar>
droptone: Are you serious.
<Radar>
You just asked this in #rubyonrails
eboaz has joined #ruby
<Radar>
And we gave you advice
<Radar>
and now you come and ask it here too?
<droptone>
Yes Radar, becuase every time I ask in #rubyonrails I get commentary like "this sounds like a hack" and "why are you doing this" and "I need code segments" instead of just providing an example, so I figured I'd give it a shot here.
<Radar>
droptone: For the umpteenth time: hire a consultant.
<droptone>
Exactly
<Radar>
droptone: Rails questions should go in #rubyonrails.
<droptone>
It's not a rails question.
<Radar>
This is not debateable.
<Radar>
Hire a consultant.
<Radar>
Goodbye.
<Radar>
See you in a week.
noService has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
LoneHerm_ has quit [Ping timeout: 246 seconds]
stardiviner has joined #ruby
defo has left #ruby [#ruby]
CloCkWeRX has joined #ruby
speakingcode has quit [Ping timeout: 268 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
Coldblackice_ has joined #ruby
w1lson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Read error: Connection reset by peer]
Yiota has joined #ruby
Rickmasta has joined #ruby
Yiota has quit [Client Quit]
ta_ has quit [Ping timeout: 260 seconds]
howdoicomputer has joined #ruby
yfeldblum has quit [Remote host closed the connection]
terminalrecluse has joined #ruby
emilford has quit [Ping timeout: 268 seconds]
danielpclark has quit [Quit: Leaving]
karapetyan has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
devbug has joined #ruby
chipotle has quit [Quit: cheerio]
chipotle has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
arescorpio has quit [Quit: Leaving.]
caudill has joined #ruby
blackgoat has quit [Ping timeout: 268 seconds]
GriffinHeart has quit [Remote host closed the connection]
Devalo has joined #ruby
hxegon has joined #ruby
zast has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
howdoicomputer has quit [Ping timeout: 250 seconds]
rbennacer has quit [Remote host closed the connection]
caudill has quit [Ping timeout: 268 seconds]
Xeago has joined #ruby
jackjackdripper1 has joined #ruby
vishwa has quit [Ping timeout: 276 seconds]
solocshaw has quit [Ping timeout: 244 seconds]
saneax_AFK is now known as saneax
jackjackdripper has quit [Ping timeout: 260 seconds]
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
Vile` has quit [Ping timeout: 276 seconds]
whyamievenhere has quit [Ping timeout: 260 seconds]
weaksauce has quit [Ping timeout: 250 seconds]
moeabdol1 has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
sauvin has joined #ruby
UserInNeed has joined #ruby
Sembei has quit [Read error: Connection reset by peer]
bobbycvi has quit [Quit: ...]
Sembei has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
GriffinHeart has joined #ruby
bluOxigen has joined #ruby
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
moeabdol1 has joined #ruby
djbkd has joined #ruby
victortyau has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Pupeno has quit [Ping timeout: 244 seconds]
last_staff has joined #ruby
moeabdol1 has quit [Ping timeout: 276 seconds]
maletor_ has joined #ruby
kareeoleez has quit [Remote host closed the connection]
Dimik1 has quit [Ping timeout: 276 seconds]
djbkd has quit [Remote host closed the connection]
last_staff1 has joined #ruby
djbkd has joined #ruby
last_staff has quit [Ping timeout: 240 seconds]
last_staff1 is now known as last_staff
tvw has joined #ruby
DotKite has quit [Quit: Page closed]
bitsapien has joined #ruby
djbkd has quit [Ping timeout: 246 seconds]
elaptics`away is now known as elaptics
nando293921 has quit [Ping timeout: 244 seconds]
<bitsapien>
is there a way to call a method say 'move' implemented in two different classes(inherited from the same class 'storage'), according to a configuration switch ? The configuration switch is a string. ’storage’ class is a singleton.
BrunoSaboia has joined #ruby
Bloomer has quit []
dionysus69 has joined #ruby
BSaboia has quit [Ping timeout: 240 seconds]
<Radar>
bitsapien: yes
<Radar>
bitsapien: let's keep the conversation here rather than in PM
heyimwill has quit [Ping timeout: 260 seconds]
<Radar>
bitsapien: What code do you have so far?
<bitsapien>
The configuration switch is a string which is either an 'A' or a 'B'. I do not want to call `A.move`, instead, I would like to call `Base.move`, which should decide which class's method to call according to the switch.
<Radar>
You could use a case statement for that.
<Radar>
case string
navneet has joined #ruby
karapetyan has joined #ruby
<Radar>
when a; A.move
<bitsapien>
that would be inefficient, right?
<bitsapien>
is there a better way?
<Radar>
Would it?
<Arcaire>
bitsapien: When are you setting the switch?
<Arcaire>
I did something recently where I modified which class a class inherited from based on a configuration option.
<bitsapien>
Nope, it returns a string, either 's3' or 'local'
<Arcaire>
It's honestly not super clean, but it means your initialized classes maintain those methods properly and you don't need a case around everything you do.
<Radar>
Oh right.
maletor_ has joined #ruby
GriffinHeart has joined #ruby
tildes has quit [Ping timeout: 260 seconds]
Pupeno has quit [Remote host closed the connection]
<Arcaire>
bitsapien: does the code i provided make sense to you?
<bitsapien>
Arcaire: going through it
<Radar>
bitsapien: Could it perhaps be Local or S3? that would make it easier.
<Radar>
I mean, you could convert it to that I guess.
<Radar>
then it's: StorageDriver.const_get(@storage)
<Arcaire>
bitsapien: So in your case, lines 29 and 33 would be "local" and "s3" respectively.
<bitsapien>
Radar: cool, that could be done, then?
RegulationD has joined #ruby
kareeoleez has joined #ruby
auzty has quit [Ping timeout: 260 seconds]
navneet has joined #ruby
kareeoleez has quit [Remote host closed the connection]
<Arcaire>
Should work even though it's a string. :)
devbug has quit [Quit: ZZZzzz…]
moeabdol has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
RegulationD has quit [Ping timeout: 246 seconds]
<Radar>
.capitalize won't work in plain Ruby.
<Radar>
Or am I thinking of something else
<Arcaire>
That works in plain ruby.
<Radar>
My bad, it will.
<Arcaire>
You're thinking of titleize.
<Radar>
I was still thinking about .constantize and how it's not available in plain Ruby.
Olipro has quit [Ping timeout: 260 seconds]
<Arcaire>
Far better than a bunch of case statements imo.
<Arcaire>
Since you only do it once instead of potentially multiple times per second.
Pupeno has joined #ruby
<bitsapien>
radar: arcaire's solution works for me :)
<Radar>
bitsapien: +1
<bitsapien>
Thanks a lot people :)
Devalo has quit [Remote host closed the connection]
blackgoat has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
solars has joined #ruby
terminalrecluse has joined #ruby
marcdel has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
toretore has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
pawnbox has quit [Remote host closed the connection]
w1lson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
Coldblackice_ has quit [Ping timeout: 240 seconds]
pandaant has joined #ruby
devbug has joined #ruby
devbug has quit [Client Quit]
pwnd_nsfw has quit [Ping timeout: 276 seconds]
maletor_ has quit [Quit: Computer has gone to sleep.]
firstdayonthejob has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
yardenbar has joined #ruby
fedexo has quit [Ping timeout: 268 seconds]
aganov has joined #ruby
bigkevmcd has joined #ruby
devbug has joined #ruby
<yardenbar>
Hello, I'm trying to connect to a FTP server using net/sftp lib. authentication is combined of ssh key and a password, both are passed as options hash. looking at the logs, I'm seeing the remote server requests the password, which after a timeout the connection fails.
Es0teric has joined #ruby
<yardenbar>
Has anyone encountered that behavior?
<Arcaire>
If you're using SFTP and the server is requesting a password you need to configure the server to accept key alone.
<yardenbar>
its a 3rd party, not in my control
<Arcaire>
That doesn't magically make it solveable.
<Arcaire>
You can pass a password.
<yardenbar>
The hash I'm passing is: {:password => "MY_PASS", :keys => [KEYS_ARRAY]}
victortyau has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
victortyau has joined #ruby
<yardenbar>
Arcaire, I tried to connect using the sftp util (from command line). the sftp server requires both password and ssh-key authentication. is there a way to tell net-sftp to authenticate using both?
skade has quit [Quit: Computer has gone to sleep.]
Coldblackice_ has quit [Ping timeout: 244 seconds]
ferr has joined #ruby
PedramT has joined #ruby
mrgrieves has joined #ruby
astrobun_ has joined #ruby
TvL2386 has joined #ruby
hk238 has joined #ruby
pwnd_nsfw has joined #ruby
TvL2386 has quit [Read error: Connection reset by peer]
TvL2386 has joined #ruby
marr has joined #ruby
tvw has quit [Ping timeout: 250 seconds]
marcdel has joined #ruby
PedramT has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
skade has joined #ruby
marcdel_ has joined #ruby
jottr has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
marcdel has quit [Ping timeout: 250 seconds]
troulouliou_div2 has joined #ruby
jottr has quit [Client Quit]
jottr has joined #ruby
alexherbo2 has joined #ruby
Xeago has quit [Remote host closed the connection]
tomphp has joined #ruby
Xeago has joined #ruby
andchar has joined #ruby
andchar has quit [Client Quit]
andchar has joined #ruby
igam has joined #ruby
dgncn has quit [Excess Flood]
william3 has quit [Remote host closed the connection]
andchar has quit [Client Quit]
skislak has joined #ruby
phatypus has joined #ruby
marcdel_ has quit [Ping timeout: 252 seconds]
dgncn has joined #ruby
andchar has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
william3 has joined #ruby
arthurnn has quit [Ping timeout: 250 seconds]
Xeago has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
ruby-lang538 has joined #ruby
Sovon has joined #ruby
<ruby-lang538>
need help in installing capybara on ruby 1.9.3
<Sovon>
when I hit 'gem install sass' I get an error saying 'could not find a valid gem'. Can anyone help me please ?
arthurnn has joined #ruby
Macaveli has quit [Ping timeout: 250 seconds]
<ruby-lang538>
Error installing capybara: mime-types-data requires Ruby version >= 2.0. this is the error i ma getting when i do gem install capybara on ruby 1.9.3
jaguarmagenta has quit [Remote host closed the connection]
Xeago has joined #ruby
<ruby-lang538>
anyone know how to resolve this problem
<ruby-lang538>
Error installing capybara: mime-types-data requires Ruby version >= 2.0. this is the error i ma getting when i do gem install capybara on ruby 1.9.3
<ruby-lang538>
Error installing capybara: mime-types-data requires Ruby version >= 2.0. this is the error i ma getting when i do gem install capybara on ruby 1.9.3
PedramT has joined #ruby
Macaveli has joined #ruby
pawnbox has quit [Remote host closed the connection]
<apeiros>
ruby-lang538: I think you have to unstuck your cmd and v key
sepp2k has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
aupadhye has joined #ruby
geek876 has quit [Quit: Page closed]
<ruby-lang538>
lol sorry
navneet has quit [Read error: Connection reset by peer]
navneet has joined #ruby
<ruby-lang538>
do you know how to resolve this problem
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
alec_ has joined #ruby
navneet has quit [Read error: Connection reset by peer]
<igam>
ruby-lang538: upgrade to ruby 2.0.
navneet has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
astrobun_ has quit [Ping timeout: 240 seconds]
william3 has quit [Read error: Connection reset by peer]
PedramT has quit [Ping timeout: 260 seconds]
<apeiros>
ruby-lang538: I'm curious - what part of "mime-types-data requires Ruby version >= 2.0" did you not understand?
<hanmac>
maybe its the ">=" part?#
william3 has joined #ruby
gdp has joined #ruby
<igam>
I'd say the "why" part.
<igam>
Why, oh why?
alec_ has quit [Read error: Connection reset by peer]
Macaveli has quit [Ping timeout: 240 seconds]
<ruby-lang538>
sorry i think I got it
<ruby-lang538>
thanks btw
<ruby-lang538>
bye
<ruby-lang538>
quit
alec_ has joined #ruby
lubekpl has joined #ruby
al2o3-cr has quit [Ping timeout: 276 seconds]
<jackdaniel>
o, igam here o/
Mon_Ouie has quit [Ping timeout: 260 seconds]
ferr has quit [Ping timeout: 244 seconds]
moei has joined #ruby
<apeiros>
ruby-lang538: so you won't tell us what part about that message confused you? because I'm genuinely curious.
ruby-lang538 has quit [Ping timeout: 250 seconds]
jottr has quit [Quit: WeeChat 1.4]
anisha_ has joined #ruby
tildes_ has joined #ruby
weckl has joined #ruby
anisha has quit [Ping timeout: 250 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<igam>
jackdaniel: hi!
<igam>
jackdaniel: yep, I had to use Xcodeproj (from cocoapods), and what I have in lisp is not as advanced (yet).
tildes has quit [Ping timeout: 276 seconds]
blaix has joined #ruby
Macaveli has joined #ruby
Devalo has joined #ruby
weckl has quit [Ping timeout: 240 seconds]
<igam>
jackdaniel: anyways, I write ruby as: (class Foo (def m (a b) (if (a == b) then 42 else nil end)) end), so…
<jackdaniel>
heh. I'm flirting with the idea to implement ruby atop of ECL's CRS as a second language
<_aeris_>
seeding the PRNG with the script name hash, not very cool for security, no ?
<jackdaniel>
(or third, if we count inlining C)
<igam>
Like this: (class Foo; (def m (a,b) (if (a == b) then 42 else nil end) end) end) (Foo.new.m 1,1)
<igam>
That's where you see that ruby is botched, with all those commans, and end before the closing parentheses… Whatever…
<igam>
jackdaniel: why not, nowadays, there's a ruby standard.
<jackdaniel>
yes, finding time for the task is more problematic :)
isxek has joined #ruby
al2o3-cr has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<gregf_>
that looks.. plain awful...
<igam>
not to a lisper :-)
Devalo has quit [Ping timeout: 268 seconds]
<gregf_>
lisp is not rocketscience :|
<igam>
Well, it looks awful, but not for the same reasons.
<jackdaniel>
gregf_: having common runtime for two languages is awful? hm, let's throw .net then
Gasher has joined #ruby
<jackdaniel>
s/throw/throw away/
<gregf_>
jackdaniel: no no.. that lisp syntax.. some folks just want to fuel their egos' :|.. fortunately theres better folks in Ruby!
<jackdaniel>
gregf_: syntax is just a tool – one tool fits one objective, the other one the second
<jackdaniel>
sexps are great if you do macros
<igam>
jackdaniel: well, one problem will be to mix the Ruby OOS with CLOS. Happily, the Ruby OOS is one of the closest to CLOS, and CLOS is so maleable, that it should be possible to write metaclasses for the whole Ruby OOS.
<jackdaniel>
or if you write a compiler (sexp is basically an AST, you don't have to use 10k yacc file)
Weavel has joined #ruby
<Sovon>
where can I get the SSL certificate *.pem file for the manual SSL certificate fix in Ruby ?
<igam>
gregf_: the ones who fill their egos are those who design new languages with botched syntaxes, instead of just having the humility of realizing that if there's a need for syntax, they don't know anything about it, but the end users of each application. And therefore lisp approach is the best: no syntax in the language, and tools to build new syntaxes for end-users.
Moosashi has quit [Quit: Moosashi]
<jackdaniel>
igam: I disagree. Good syntax eliminates thought
<igam>
Sovon: letsencrypt.org ?
<jackdaniel>
and is something very good for a certain kind of tasks
alec_ has quit [Remote host closed the connection]
<Sovon>
what ?
<igam>
jackdaniel: yes, but not pre-defined syntax. First comes the task, then the syntax you implement for that task.
workmad3 has joined #ruby
elaptics is now known as elaptics`away
<igam>
Sovon: letsencrypt.org will give you certificates.
<gregf_>
all this lisp discussion seems OT :|. this is Ruby!!!
ropeney has quit [Remote host closed the connection]
<igam>
Which is a matzacred lisp, so on topic. :-)
tildes_ has quit [Remote host closed the connection]
<jackdaniel>
igam: having common syntax reduces effort to learn it for outsiders, hence consolidates the community. Having good general purpose syntax is good. Either way I disagree with both of you :P
nofxx has quit [Ping timeout: 260 seconds]
<jackdaniel>
sorry for offtop (if it really is offtopic) – I've got stuff to do o/
<toretore>
the app dir is /home/User1/youtube-multiple-dl
<toretore>
go there
<toretore>
do everything from there
<someperson4465>
yes that is where i was
<toretore>
not inside bin
<toretore>
no it says in your gist you were in bin
isxek has quit [Remote host closed the connection]
<toretore>
then do `ruby -I. bin/youtube-multiple-dl`
LoneHerm_ has quit [Ping timeout: 244 seconds]
<someperson4465>
ruby: No such file or directory -- youtube-multiple-dl (LoadError) fomr directory /home/User1/youtube-multiple-dl from typing ruby youtube-multiple-dl
<toretore>
that's not what i told you to do
<toretore>
read it again
<someperson4465>
this one? then do `ruby -I. bin/youtube-multiple-dl`
william3 has joined #ruby
<someperson4465>
ruby -I. bin/youtube-multiple-dl i put that in and it didnt make an error
navneet has quit [Read error: Connection reset by peer]
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
n008f4g_ has joined #ruby
isxek has joined #ruby
pLaToOn has joined #ruby
que has joined #ruby
d0lph1n98 has joined #ruby
<someperson4465>
you meant do 'ruby -I' as a seperate command? not `ruby -I. bin/youtube-multiple-dl`all as one line?
htmldrum has joined #ruby
william3 has quit [Read error: Connection reset by peer]
<someperson4465>
ie ruby -I enter
baweaver has joined #ruby
<que>
hi guys, i got small thing and with my english skills i am unable to find the answer. i do curl quetion ( after that in shell i have to put password ) and i dont know how to put password from ruby script
william3 has joined #ruby
RegulationD has quit [Ping timeout: 268 seconds]
phatypus has quit [Quit: .>]
oqui has joined #ruby
<toretore>
que: gist your code
<toretore>
?gist
<ruby[bot]>
https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
alec_ has joined #ruby
alec_ has quit [Remote host closed the connection]
<que>
toretore: yeah but for future i also want to know how to put the password to shell
sgambino has joined #ruby
<toretore>
then you have to connect to the process stdin
<toretore>
using popen or similar
flashpoint9 has joined #ruby
<toretore>
and probably read its stdout to know when it's time
yfeldblum has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 252 seconds]
<que>
stdin not stdout ?
mdw has quit [Quit: Sleeping Zzzzz]
<someperson4465>
toretore i tried what you wrote and nothing happens i dont know what i did wrong but i tried reading it many times and nothing ahppens
<toretore>
`ruby -I. bin/youtube-multiple-dl -h
<toretore>
- the first `
<someperson4465>
did you mean all as one command or the full stop indicates two commands?
<toretore>
1
shayan has joined #ruby
<someperson4465>
ok i did that in the root and it didnt make an error just goes back to prompt
<someperson4465>
in the app root i mean /home/User1/youtube-multiple-dl
rdvdet has joined #ruby
moeabdol has joined #ruby
<someperson4465>
ok i tried with the -h on now and it gives me the progrms options so some progress :)
mdw has joined #ruby
<someperson4465>
oh i get what that did :D -h being for help
<oqui>
hey guys is there a ruby on rails specific channel?
adgtl has joined #ruby
<someperson4465>
alright i see now i can make it run with prefixing 'ruby -I. bin/' how would i add it to run via linux path
<ghr>
oqui #rubyonrails?
<someperson4465>
withouit typing that prefix
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_drow has joined #ruby
Moosashi has joined #ruby
ur5us has joined #ruby
nixmaniack has quit [Remote host closed the connection]
nixmaniack has joined #ruby
adgtl has quit [Ping timeout: 268 seconds]
nixmaniack has quit [Changing host]
nixmaniack has joined #ruby
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
genpaku has joined #ruby
n008f4g_ has quit [Ping timeout: 244 seconds]
redasus2 has joined #ruby
redasus has joined #ruby
nixmaniack has quit [Ping timeout: 246 seconds]
william3 has quit [Ping timeout: 246 seconds]
nixmaniack has joined #ruby
nixmaniack has quit [Remote host closed the connection]
mikecmpb_ is now known as mikecmpbll
nixmaniack has joined #ruby
nixmaniack has quit [Remote host closed the connection]
AlexRussia has joined #ruby
adgtl has joined #ruby
_3by8 has joined #ruby
<_3by8>
I assumed that I'd be able to do this in a method: self.date || self.created_at where self.date is a user-defined date. My thinking was that it would return date if it were there and created_at if it wasn't. Obviously, that doesn't work. How should that work?
william3 has joined #ruby
Xeago has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaguarmagenta has joined #ruby
Shashikant86 has joined #ruby
pawnbox has quit [Remote host closed the connection]
<TomyWork>
is it possible to install a global exception handler in ruby?
Xeago has joined #ruby
navneet has quit [Ping timeout: 260 seconds]
<TomyWork>
i'm trying to get my Vagrantfile a first chance at inspecting certain exceptions thrown by vagrant's puppet provisioner
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
Xeago has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 250 seconds]
johnmilton has joined #ruby
elaptics`away is now known as elaptics
Xeago has joined #ruby
<toretore>
_3by8: `def date` not `def self.date`
<_3by8>
toretore: oops, thanks.
Xeago has quit [Remote host closed the connection]
adgtl has joined #ruby
sepp2k has joined #ruby
Xeago has joined #ruby
rubirc has joined #ruby
allcentury has joined #ruby
blaix has joined #ruby
PedramT has joined #ruby
ur5us has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 260 seconds]
adgtl has quit [Ping timeout: 250 seconds]
p1k has joined #ruby
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PedramT has quit [Ping timeout: 244 seconds]
ropeney has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
minimalism has quit [Quit: minimalism]
GodFather has joined #ruby
ur5us has joined #ruby
navneet has joined #ruby
weckl has joined #ruby
rodfersou has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
Devalo has joined #ruby
moeabdol has joined #ruby
mdw_ has joined #ruby
drunkfox is now known as staticfox
droids___ has joined #ruby
Devalo has quit [Ping timeout: 268 seconds]
mdw has quit [Ping timeout: 250 seconds]
GriffinHeart has quit []
Yiota has joined #ruby
rubyNoob has joined #ruby
_3by8 has quit [Quit: Page closed]
spooq|2 has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
Pupeno has joined #ruby
PedramT has joined #ruby
que has quit [Quit: Page closed]
ur5us has joined #ruby
<rubyNoob>
Hi there fellow programmers. I have recently started using RubyMine. I made a project which is linked to my dropbox file ( so it automatically synchronizes my work and home computer ), but for some reasons it doesn't recognize global variables declared in other files within the project.
oliver___ has joined #ruby
PedramT has quit [Remote host closed the connection]
Yiota has quit [Ping timeout: 240 seconds]
<rubyNoob>
As example, in 1 file I have a global variable named @invoice_start = 0, in the another file I use this variable. But the IDE says: Cannot find declaration for field @invoice_start
<rubyNoob>
Anyone has an idea how to solve this ?
moeabdol has quit [Ping timeout: 240 seconds]
william3 has quit [Remote host closed the connection]
blaxter has joined #ruby
blackgoat has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
moeabdol has joined #ruby
william3 has joined #ruby
ldnunes has joined #ruby
<jokke>
any idea what's wrong here: extconf.rb:10:in `<main>': uninitialized constant Config
<jokke>
i'm trying to install nokogiri
william3 has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby
dionysus69 has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
ta__ has quit [Read error: Connection reset by peer]
flashpoint9 has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 250 seconds]
p1k has quit [Ping timeout: 268 seconds]
pawnbox has joined #ruby
roshanavand has joined #ruby
Emmanuel_Chanel has quit [Remote host closed the connection]
brendan- has joined #ruby
<jsaak>
rubyNoob: there are much better solutions for code sharing than dropbox, search for git or svn in google, also try to avoid global variables, they are not needed most of the time, if you insist on global variables try $var instead
shayan has quit [Quit: shayan]
anisha_ has quit [Quit: This computer has gone to sleep]
<newjersey>
so do I need ruby-dev on ubuntu to install jekyll
<newjersey>
?
moeabdol has quit [Ping timeout: 268 seconds]
grn has joined #ruby
moeabdol has joined #ruby
blackmesa has joined #ruby
Xeago has joined #ruby
IrishGringo has joined #ruby
<ddv>
newjersey: have you tried?
Devalo has joined #ruby
charlema_ has quit [Read error: Connection reset by peer]
<newjersey>
no I have not installed ruby-dev yet
charlemagne has joined #ruby
sgambino has joined #ruby
Snowy is now known as Ballk
Ballk is now known as Snowy
<newjersey>
I get ERROR: Failed to build gem native extension. and stack overflow https://stackoverflow.com/a/26161563/227646 said you need to in 2014 but I don't know ruby so I don't know if that was a short term bug or ...
diegoaguilar has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
htmldrum has quit [Ping timeout: 244 seconds]
Dry_Lips has quit [Ping timeout: 260 seconds]
<newjersey>
I have run gem update --system though
aeterne has joined #ruby
aeterne_ has joined #ruby
<newjersey>
is ruby-dev for people who want to work on the language itself or is it for users? the name is confusing
aeterne has quit [Remote host closed the connection]
JagaJaga has left #ruby ["WeeChat 1.4"]
djellemah_ is now known as djellemah
Devalo has quit [Ping timeout: 268 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_nex_ has joined #ruby
_nex_ has quit [Quit: leaving]
aspiers_ has joined #ruby
n008f4g_ has quit [Ping timeout: 246 seconds]
Macaveli has joined #ruby
vishwa has joined #ruby
victortyau has joined #ruby
william3 has quit [Ping timeout: 276 seconds]
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
william3 has joined #ruby
LoneHermit has joined #ruby
whiteline has quit [Read error: Connection reset by peer]
jds_ has joined #ruby
tubuliferous has quit [Ping timeout: 268 seconds]
qba73 has quit []
xthread has quit [Quit: Reconnecting]
xthread has joined #ruby
solars has quit [Ping timeout: 244 seconds]
william3 has quit [Ping timeout: 250 seconds]
SilverKey has quit [Quit: Halted.]
bob434 has quit [Quit: This computer has gone to sleep]
LoneHermit has quit [Ping timeout: 250 seconds]
PedramT has joined #ruby
jds_ is now known as jds
lxsameer has joined #ruby
alexherbo2 has quit [Ping timeout: 250 seconds]
bob434 has joined #ruby
htmldrum has joined #ruby
swills has joined #ruby
<isxek>
newjersey: the former
mjuszczak has joined #ruby
<newjersey>
isxek, so why would a user who just wants to run gem install jekyll need ruby-dev?
PedramT has quit [Ping timeout: 252 seconds]
whiteline has joined #ruby
grn has quit []
Waqas has joined #ruby
UglyVendetta has quit [Read error: Connection reset by peer]
htmldrum has quit [Ping timeout: 244 seconds]
UglyVendetta has joined #ruby
rbennacer has joined #ruby
joonty has joined #ruby
malconis has joined #ruby
<isxek>
newjersey: not completely sure what you're asking
augustold has joined #ruby
douglascorrea has joined #ruby
Waqas has quit [Ping timeout: 240 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Waqas has joined #ruby
<newjersey>
I am trying to do sudo gem install jekyll on lubuntu. I get ERROR: Failed to build gem native extension. and stack overflow https://stackoverflow.com/a/26161563/227646 said you need to in 2014 but I don't know ruby so I don't know if that was a short term bug or ...
<tobiasvl>
I think newjersey means that ruby-dev seems to be a dependency for compass, which assumedly is a dependency for jekyll?
Macaveli has joined #ruby
augustold has left #ruby [#ruby]
william3 has joined #ruby
<isxek>
newjersey: usually when you get those "failed to build gem native extension" errors, part of the gem needs to be built/compiled
<isxek>
newjersey: since you're on lubuntu, you might need to have the 'build-essential' package installed
<isxek>
newjersey: or, in other words, you would need to run 'sudo apt-get install build-essential'
<newjersey>
thank you
<newjersey>
nope, already installed
<Fernando-Basso>
apeiros: Let the guy use globals. Come on!
<apeiros>
Fernando-Basso: I've no idea whether it's a guy. they can use whatever, but globals are a bad idea.
<isxek>
newjersey: that's odd, lemme try
<Fernando-Basso>
:D
solars has joined #ruby
<Fernando-Basso>
M$ has a js library that had over 400 globals.
<Fernando-Basso>
Or had, idk.
<apeiros>
I'm not sure whether that should be a supporting argument for globals
<Fernando-Basso>
hahaha
<newjersey>
Fernando-Basso, send a pull request fixing it?
morochena has joined #ruby
Emmanuel_Chanel has joined #ruby
<Fernando-Basso>
newjersey: I would rather send a missile aiming M$ headquarters.
<isxek>
newjersey: how did you install ruby, by any chance?
<newjersey>
or better yet, rewrite it in typescript for them
<newjersey>
isxek, sudo apt install ruby
<Fernando-Basso>
apeiros: I'm sorry. I'm just joking. Of course globals shall not be used.
<Fernando-Basso>
I even think langs should not even provide them.
<newjersey>
ruby is already the newest version (1:2.3.0+1).
mdw has quit [Quit: Sleeping Zzzzz]
<isxek>
newjersey: I have v2.3.0 too, but I did not install ruby via 'apt-get'
<apeiros>
Fernando-Basso: depends. constants are in a way similar to globals and I consider them to be ok. but ruby is a great example - it could do well without the $globals and just use constants
<newjersey>
is this old?
william3 has quit [Read error: Connection reset by peer]
<isxek>
newjersey: I generally install Ruby through chruby/ruby-install, which builds Ruby inside my home directory
<apeiros>
newjersey: check the topic. 2.3.0 is the current ruby version.
<newjersey>
I don't know any ruby actually
<newjersey>
I just want to play with jekyll
lxsameer has quit [Ping timeout: 276 seconds]
<newjersey>
maybe there is a jekyll channel
<isxek>
newjersey: I'd suggest installing Ruby that way, to make the gems build
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3>
salviaD: gem binaries are installed with a wrapper script that points to the ruby they were installed under... so if you haven't installed bundler in ruby 2.3, your `bundle` binary will point to the system ruby you installed it with
<smathy>
salviaD, ...if you continue to want to play with different versions of ruby then I'd recommend chruby or rbenv and their installation helpers ruby-install or ruby-build.
symm- has joined #ruby
<salviaD>
workmad3: yep, I quickly imagined that, and my bundler is already linked to lastest ruby.
deadnull has joined #ruby
<shevy>
hmm will pull in active* gems
SCHAAP137 has joined #ruby
Devalo has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<shevy>
I did not try. I'd be way too lazy to modify anything and I am on ruby 2.3.0p0 (2015-12-25 revision 53290)
ruby-lang403 has joined #ruby
Vaevictus has joined #ruby
deadnull has quit [Client Quit]
armyriad has quit [Ping timeout: 240 seconds]
ruby614 has joined #ruby
ruby614 has quit [Client Quit]
<salviaD>
why people wont write portable sutff
<Vaevictus>
anyone do any scripting (expect like, perhaps) for ciscos over ssh ?
tomphp has joined #ruby
terlar has quit [Ping timeout: 244 seconds]
mikecmpb_ has quit [Ping timeout: 250 seconds]
armyriad has joined #ruby
<shevy>
salviaD I think many people can and do, the author probably did not have a lot of experience
sepp2k has quit [Quit: Leaving.]
<smathy>
salviaD, I bet if you paid them then they'd do something to your specifications.
<smathy>
...it's a free sample app, sheesh.
benlieb has joined #ruby
ruby-lang403 has quit [Ping timeout: 250 seconds]
tomphp_ has joined #ruby
<salviaD>
smathy: I am trying to run it, not modify it, and it seems that this wont install anywhere not the creator own computer
kareeoleez has joined #ruby
<salviaD>
without a rewrite
blackmesa has quit [Ping timeout: 276 seconds]
evidex has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
armyriad has quit [Ping timeout: 244 seconds]
armyriad has joined #ruby
tomphp has quit [Ping timeout: 268 seconds]
mfb2 has joined #ruby
armyriad has quit [Remote host closed the connection]
VeryBewitching has joined #ruby
Spami has joined #ruby
armyriad has joined #ruby
Gasher has quit [Quit: Leaving]
Xeago has joined #ruby
godzillaenlacasa has joined #ruby
ropeney has joined #ruby
ropeney has quit [Client Quit]
snockerton has joined #ruby
blaix has quit [Quit: Leaving.]
<phoo1234567>
Is there a better pasting site than pastebin.com for Ruby code?
<crime>
Vaevictus: cisco recently open-sourced chez scheme, which they use themselves
<salviaD>
arin.ga
<theRoUS>
given an array of arrays, how can i get combinations from them? e.g., [[1,2],['a','b']].<method>(2) should return [[1,'a'],[1,'b'],[2,'a'],[2,'b']]
<toretore>
phoo1234567: ?gist
SilverKey has quit [Quit: Halted.]
<toretore>
?gist phoo1234567
<ruby[bot]>
phoo1234567: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<theRoUS>
i'm sure it's staring me in the face but my brain is num..
yardenbar has quit [Ping timeout: 250 seconds]
<phoo1234567>
Thanks, toretore.
<theRoUS>
numb, even
Snowy has quit [Remote host closed the connection]
skade has joined #ruby
Xeago has quit [Remote host closed the connection]
dionysus69 has joined #ruby
<theRoUS>
complicated by the number of arrays, and the number of elements in each sub-array, being unpredictable
benlieb has quit [Quit: benlieb]
solars has joined #ruby
jaguarmagenta has joined #ruby
malconis has joined #ruby
<Vaevictus>
crime: i'll look into it
<theRoUS>
whoa, #product -- derp!
18WAASLIQ has quit [Quit: Lost terminal]
mfb2 has quit []
igam has quit [Ping timeout: 276 seconds]
moeabdol has joined #ruby
Cohedrin has joined #ruby
<al2o3-cr>
salviaD: Does it run when you run `./bin/youtube-multiple-dl --help` from the youtube-multiple-dl directory?
jaguarmagenta has quit [Ping timeout: 252 seconds]
benlieb has joined #ruby
<al2o3-cr>
salviaD: you sure you're not executing from bin directory directly?
synthroid has quit [Remote host closed the connection]
blue_lizzard has quit []
bradleyprice has joined #ruby
Xeago has joined #ruby
weaksauce has joined #ruby
polysics_ has quit [Ping timeout: 260 seconds]
nando293921 has quit [Quit: Lost terminal]
yardenbar has joined #ruby
polysics has quit [Ping timeout: 246 seconds]
nemoNoboru has joined #ruby
Cohedrin_ has joined #ruby
<salviaD>
al2o3-cr: it is not installed on /bin ... I did a fulll find / -name youtube-multiple-dl and it is not installe anywhere else than inner bin directory of the project
Synthead has quit [Quit: Synthead]
Xeago has quit [Remote host closed the connection]
<salviaD>
al2o3-cr: hey ya.. maybe some osx incompatibility with the installation
<smathy>
salviaD, installed and ran for me. I got an error on the download, but that seems well past where you got to. I'm on OSX too.
bradleyprice has quit [Ping timeout: 260 seconds]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
rodfersou|lunch is now known as rodfersou
Devalo has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 244 seconds]
n008f4g_ has joined #ruby
<salviaD>
al2o3-cr: oh I did not understood your question.... I see, I am runnning from bin/youtube-multiple-dl dir and it works
<al2o3-cr>
:)
<shevy>
YOU DID IT!!!
Axy has quit [Ping timeout: 252 seconds]
<phoo1234567>
I've been trying to learn the CSV capabilities in ruby and I can't seem to figure out how to get back to a CSV:Table from an array of CSV:Rows.
<phoo1234567>
For me, this all stems from the fact that there is no sort_by! method.
<phoo1234567>
And sort_by returns an array of CSV::Rows.
<smathy>
?xy
<ruby[bot]>
it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<phoo1234567>
No, it's really not that, ruby[bot].
<phoo1234567>
I'm trying to learn how to get back to a CSV::Table from an array of CSV:Rows.
<neha->
lol
<neha->
you'll never get help on irc
<neha->
poeple are obsessed with "What are you really trying to do"
SilverKey has joined #ruby
<neha->
they want to know your direction in life
bradleyp_ has quit []
<phoo1234567>
Oh, neha-, thanks.
<neha->
and will recommend you not even program and become a farmer instead
<phoo1234567>
Sorry for the noise.
<neha->
just saying from my experience
<toretore>
phoo1234567: what are you really trying to do?
<neha->
lol
<toretore>
that doesn't mean we're not right and everyone else is wrong
mlakewood has joined #ruby
gizmore has joined #ruby
<neha->
i wish i could start a room where people actually answered questions
<neha->
instead of all this BS
<neha->
maybe one day in the future :)
PedramT has joined #ruby
<toretore>
it's obvious here that phoo1234567 doesn't know what they're doing, so to actually help them get the problem solved we need to know more information
<phoo1234567>
toretore: I'm trying to import a CSV file, sort it and then work with it.
<smathy>
neha-, you should totally do that, we'll send everyone who doesn't make sense to you.
<phoo1234567>
Yes, toretore, beginner.
<smathy>
neha-, because, y'know, screw what their actual problem is, let's just blindly answer literally what they're asking.
<toretore>
phoo1234567: define "work with it"
SCHAAP137 has quit [Ping timeout: 250 seconds]
<phoo1234567>
Well, eventually, manipulate based on field contents, calculate means, standard deviations, ...
mrgrieves has joined #ruby
<phoo1234567>
If I could just get past the CSV::Table hump, I can continue reading.
blackmesa has joined #ruby
<phoo1234567>
I'm sorry if this was to silly and I'm sorry for the noise.
<phoo1234567>
Thanks for trying.
<toretore>
hey guys, i've got this gun pointing at my foot and i've tied it to a string. i'm trying to hunt for giraffes, but the string is too short, how can i make it longer so that it works?
<smathy>
phoo1234567, have it your way, you can't get from a Row back to a Table.
<Mon_Ouie>
Why would that require a CSV::Table? You can do map { |row| row["field"] }.reduce(0, :+) to calculate a sum, for example
skade has quit [Quit: Computer has gone to sleep.]
<toretore>
phoo1234567: i'd just convert everything into something that's not CSV::Anything
skade has joined #ruby
<phoo1234567>
It was pretty easy to use the symbols to access the columns, but OK. I'll try another approach.
mark_66 has quit [Remote host closed the connection]
<phoo1234567>
The data I have is in a tab delimited file, Mon_Ouie.
<toretore>
data = csv.map{|r| r.map(&:to_s) }
<toretore>
or something similar
<phoo1234567>
OK, toretore, thanks for your help.
<smathy>
Heh, we have a sickness, even when told not to address the actual problem we can't help ourselves.
<toretore>
then you get an array of arrays with strings. it's easier to work with
shmuli has joined #ruby
weckl has quit [Quit: Leaving]
FastJack has quit [Remote host closed the connection]
<phoo1234567>
I still wish I could sort the imported CSV in place.
<crime>
i blame neha-
<phoo1234567>
Maybe toretore's suggestion is best.
* smathy
wants no part of this insanity
replay has joined #ruby
<phoo1234567>
No, smathy, I wasn't pointing fingers and I'm sorry if it appears that way.
SCHAAP137 has joined #ruby
<phoo1234567>
Boy, *rough* channel.
<phoo1234567>
Is there a kindergarten ruby channel?
ramfjord has joined #ruby
<crime>
wasnt there a learn-ruby or something like that at one point?
tomphp_ has quit [Ping timeout: 244 seconds]
<phoo1234567>
I didn't see it in /list but I'll look again.
framling has quit [Ping timeout: 260 seconds]
<crime>
hm
<crime>
well you can always ask here. nobody can fault you for trying to get better
kareeoleez has quit [Remote host closed the connection]
Yiota has joined #ruby
rkazak has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
<phoo1234567>
I've got pretty thick skin. Not a problem. I just don't like to generate too much noise.
djbkd has joined #ruby
antgel has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
<smathy>
It's not about noise phoo1234567, it's about you asking a question that doesn't make sense and then resisting help from people trying to make sense of your problem.
<havenwood>
phoo1234567: There's a ##new2ruby channel that's a smaller place specifically for new folk. Feel free to ask anything here as well!
djbkd has joined #ruby
<phoo1234567>
Oh, I was completely unaware of my faux pas.
<phoo1234567>
I didn't intend to resist anything but thanks for the heads up.
<phoo1234567>
Thanks very much havenwood!
<smathy>
phoo1234567, "how to get back to a CSV:Table from an array of CSV:Rows" is like asking something like: "I'm learning to drive, and I'm facing the wrong way on the freeway and so I need to know how to reverse faster"
<phoo1234567>
Meh... I've been around IRC for a long time. I understand the nuances.
<phoo1234567>
And thanks again for the help.
<smathy>
Np.
<phoo1234567>
I'll check out the kindergarten havenwood suggested.
karapetyan has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 252 seconds]
<smathy>
...but still I think you should go further and do it the way toretore suggested, the CSV module is really just for the IO for csv files, you don't get great data structures for manipulating the data.
tildes has quit [Ping timeout: 252 seconds]
<phoo1234567>
Yes, I'm already on that path. I thought the CSV stuff was the right way to go based on the web reading I did.
<phoo1234567>
It did seem to solve the header interpretation.
last_staff has joined #ruby
<phoo1234567>
Lunch time over. Back to the grind.
william3 has joined #ruby
william3 has quit [Remote host closed the connection]
karapetyan has joined #ruby
william3 has joined #ruby
aupadhye has quit [Ping timeout: 268 seconds]
baweaver has joined #ruby
synthroid has joined #ruby
<toretore>
phoo1234567: you can actually do what you want with `csv2 = CSV::Table.new(csv1.sort_by{ whatever })`
blaix has joined #ruby
roelof has joined #ruby
<toretore>
it's just that CSV::Table doesn't implement a mutable `sort!`
<roelof>
how can I make the seconds avaible in the time_string method. @seconds give nill. Code so far : http://lpaste.net/161610
<phoo1234567>
Yes, that's how I got to this point and I couldn't see the forest through the trees.
ferr has quit [Ping timeout: 268 seconds]
<toretore>
or a `sort` for that matter; this method comes from Enumerable which doesn't know what a CSV::Table is and always returns an Array
karapetyan has quit [Ping timeout: 244 seconds]
<phoo1234567>
Thanks for taking the extra time to help me out, toretore.
mikecmpbll has joined #ruby
<toretore>
np, you were quite reasonable. a lot of people aren't
x77686d has quit [Quit: x77686d]
baweaver has quit [Ping timeout: 252 seconds]
<phoo1234567>
Sweet! No more temp variable csv3.
<toretore>
roelof: do you understand the difference between `self.seconds` and `@seconds`
<toretore>
?
<roelof>
I thougth I knew the difference but now I doubt that
<roelof>
@seconds is a instance variable
<toretore>
secondly, do you understand at what point @seconds gets set to a value (0) ?
<roelof>
self is pointing to the class so self.seconds should be the same as timer.seconds, right ?
roshanavand has quit [Ping timeout: 268 seconds]
<toretore>
roelof: thirdly, do you know how an uninitialized instance variable behaves?
<roelof>
toretore: yep, at the seconds function
<toretore>
and #3?
<toretore>
re #1, instance and @timer but close enough
<roelof>
I think a unintialized variable is always nill
<toretore>
right
Trieste has quit [Ping timeout: 264 seconds]
djbkd has quit [Remote host closed the connection]
<toretore>
where in your code does the `seconds` method get called?
<roelof>
oops, nowwhere
<roelof>
so i have to think how I schould call it so I see the seconds part, right ?
<toretore>
your attr_accessor is useless too because you're overwriting `seconds` and `seconds=`
Trieste has joined #ruby
nanoz has quit [Quit: <3]
<roelof>
toretore: oke, when I do self.seconds the output is 0
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
n008f4g_ has quit [Ping timeout: 252 seconds]
<roelof>
toretore: I think I need seconds= function somehow to change. Can you give me a tip ?
Xeago has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 260 seconds]
JakFrist has joined #ruby
Xeago has joined #ruby
jfutbol has joined #ruby
<roelof>
oke, this seems to be promosing : http://lpaste.net/161614 . I hope someone can give me a hint how I can make @timer.second a argument to this part : self.seconds=(0)
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<toretore>
roelof: what is it supposed to do?
n008f4g_ has joined #ruby
tildes has joined #ruby
tvw has joined #ruby
<roelof>
I have to convert the number zero to "00:00:00"
<roelof>
its a challenge of learn ruby which I found on github
baweaver has joined #ruby
<roelof>
I can now check the contents of seconds so the next step will be make the desired layout
<toretore>
describe in detail what your code does
<toretore>
(hint: it's wrong)
<smathy>
:)
theRealAlexz has quit [Ping timeout: 252 seconds]
Devalo has joined #ruby
<roelof>
toretore: the function seconds set the timer to zero . line 3 - 5
<roelof>
the function seconds= I can set the instance variable to a certain number which I want to convert . line 7 - 9
theRealAlexz has joined #ruby
<roelof>
on line 12 I try to read the instance variable so I can check it's value to make the desired output.
p0p0pr37_ has joined #ruby
tildes has quit [Ping timeout: 260 seconds]
<toretore>
roelof: line 12 and 18 call the same method
patrick99e99 has joined #ruby
<toretore>
why?
<roelof>
I thought that is what you mean. Line 18 I have copied from the Rspec file
chouhoulis has quit [Remote host closed the connection]
thomashaw has joined #ruby
p0p0pr37 has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
p0p0pr37_ is now known as p0p0pr37
mjuszczak has quit []
Devalo has quit [Ping timeout: 268 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
<toretore>
roelof: don't copy stuff into your program
<toretore>
write it line by line and make sure you understand what each line does
<patrick99e99>
Hey everyone, I've got some code that has some special behavior for file objects, and am wondering if there's a handy way to test for a file? seems like I have to do is_a?(File) || is_a?(Tempfile) ... but I hate that.. I could do something like .respond_to?(:close), but I don't really like that either...
<roelof>
toretore: oke, I can change it to : seconds = seconds=(@seconds) so the variabel seconds holds now the new value
pawnbox has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
pawnbox has joined #ruby
tildes has joined #ruby
<toretore>
roelof: you are lacking some very basic understanding of how ruby works, i suggest you read a book or some tutorials
nofacade has joined #ruby
symm- has quit [Ping timeout: 268 seconds]
<roelof>
toretore: Im doing ruby monk , I did finisched the Primer and doing now the Primer Ascent stuff
<toretore>
i don't know what that is, but you have to actually read something that explains how things work
<toretore>
not just do "challenges" or whatever without reading first
benlieb has quit [Quit: benlieb]
baweaver has quit [Remote host closed the connection]
<toretore>
patrick99e99: usually what you want is to test if something is an IO
chouhoul_ has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
<toretore>
patrick99e99: but this is difficult to know without knowing the context
synthroi_ has joined #ruby
djbkd has quit [Remote host closed the connection]
<roelof>
toretore: oke, thanks for the help. I will look for a good ruby book
<patrick99e99>
toretore: well, its hard to give broader context other than, I have a method that takes an object, and if it's a file (one that can have .read) called on it, then I need to branch off and do different behavior.
<patrick99e99>
maybe I should just do respond_to(:read)
bronson has quit [Ping timeout: 252 seconds]
elifoster has joined #ruby
jaruga___ has joined #ruby
bob434 has joined #ruby
<adaedra>
The problem is Tempfile which is a delegator
moei has quit [Quit: Leaving...]
sauvin has quit [Read error: Connection reset by peer]
<toretore>
patrick99e99: if you expect an object that responds to read with certain arguments and returns certain data then yes
Spami has joined #ruby
SilverKey has joined #ruby
Log1x has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
tildes has quit [Ping timeout: 268 seconds]
<toretore>
patrick99e99: why do you have to have this branch though?
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjuszczak has joined #ruby
jaruga___ has quit [Quit: jaruga___]
prestorium has quit [Read error: Connection reset by peer]
Pumukel has quit [Ping timeout: 252 seconds]
Log1x has joined #ruby
<baweaver>
sandelius: roelof: Much of anything written by avdi is worth a look. Also consider looking into his Ruby Tapas series
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
<roelof>
baweaver: thanks
<patrick99e99>
toretore: have to be able to do the nonsense to setup Net::HTTP to use multipart/form-data when a file is given to my http wrapper client
codecop has joined #ruby
moei has joined #ruby
salviaD has left #ruby [#ruby]
<baweaver>
As far as other print books: Eloquent Ruby, Practical Object Oriented Development in Ruby, Effective Ruby
<baweaver>
Eloquent will cover a lot of writing Ruby like Ruby, POODR gets into OO concepts heavily, and Effective is a series that focuses on professional tips and tricks of dealing with a language
<baweaver>
Effective Python is great too.
Dimik1 has joined #ruby
roshanavand has joined #ruby
<baweaver>
(* in reference to the Effective series, they're great books overall for any language)
newjersey has quit [Quit: Leaving]
newjersey has joined #ruby
<baweaver>
big thing though, as mentioned above as well, is to not copy and paste code you find. Try and do it from memory as much as possible, then go to docs.
<baweaver>
if the goal is learning, see if you can figure something out rather than look for a solution immediately
<baweaver>
after you come up with one, then look up and compare
jaruga___ has quit [Client Quit]
failshell has joined #ruby
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 260 seconds]
diegoaguilar has quit [Remote host closed the connection]
emilford has quit [Ping timeout: 240 seconds]
RegulationD has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
djbkd has joined #ruby
vondruch has joined #ruby
karapetyan has quit [Remote host closed the connection]
<weaksauce>
I love eloquent ruby
<crime>
baweaver with that avdi promotion, wow
<baweaver>
crime: be nice.
<crime>
arent I always?
<baweaver>
no
<weaksauce>
nope
<crime>
maybe its a cultural malalignment
<crime>
misalignment?
<mustmodify>
nine. (sp?)
<crime>
nein
<mustmodify>
ah
<mustmodify>
nein
<crime>
i meant what you knew tho
shinnya has joined #ruby
<mustmodify>
sure
<crime>
so thats only three people thank think im not a kind and gentle soul
RegulationD has joined #ruby
<crime>
if we work as a team im sure we could gather up thousands
newjersey has quit [Quit: Leaving]
<mustmodify>
three for three.
<mustmodify>
just saying.
<crime>
yeah definitely, i got good numbers, good percentages
<crime>
id say this is an optimal scenario
RegulationD has quit [Remote host closed the connection]
RegulationD has joined #ruby
tagaulap has quit [Quit: Connection closed for inactivity]
aspiers_ has joined #ruby
infra-red has joined #ruby
Cohedrin_ has quit [Ping timeout: 246 seconds]
<crime>
so idk if you guys have ever been to ##ruby, but it's worth it for the cringe-factor alone.
<crime>
pretty great
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jds has quit [Quit: Connection closed for inactivity]
berserk_ren has quit [Ping timeout: 240 seconds]
infra-red has quit [Client Quit]
banister has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<baweaver>
If I didn't know any better I'd think you had a highlighter on their name
LoneHerm_ has joined #ruby
yfeldblum has joined #ruby
snebel has joined #ruby
GinoMan2440_ has joined #ruby
GinoMan2440 has quit [Ping timeout: 252 seconds]
Cohedrin has joined #ruby
snebel_ has joined #ruby
bluOxigen_ has quit [Ping timeout: 276 seconds]
<baweaver>
They write good content, and one of their books was mentioned earlier. I see no reason to not mention it.
<baweaver>
The same as I tend to mention Radar/ssc's Rails book in the Rails channel when resources are asked for.
spider-mario has joined #ruby
<baweaver>
if you continue to obsess over avdi, or any mention thereof, I will not hesitate to ban you
minimalism has joined #ruby
snebel_ has quit [Client Quit]
<crime>
i didnt say anything inappropriate
<crime>
and i cant be restricted from talking about a highly prominent ruby community figure
roshanavand has quit [Quit: This computer has gone to sleep]
ferr has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<crime>
tens of thousands of people read him
jaguarmagenta has joined #ruby
<baweaver>
you were already rude towards them yesterday
dhollinger has quit [Quit: WeeChat 1.4]
<crime>
so? that doesnt mean I can never mention that person ever again
roshanavand has joined #ruby
<crime>
i was warned or w/e yesterday, and have refrained from direct harrassment so far today. no harm done
LoneHerm_ has quit [Ping timeout: 276 seconds]
<baweaver>
_direct_
mrgrieve1 has joined #ruby
<crime>
do you feel that I have harrassed anybody in here today? whether direct or not
<crime>
name them
<crime>
I'll issue an Official Crime Apology (TM)
<shevy>
come on people!
<baweaver>
It was heavily implied in the endorsement comment.
<baweaver>
but in any case, lunch time for me.
jaruga___ has joined #ruby
<roelof>
Thanks all for the explanation and have a good day/evening
baweaver has quit [Remote host closed the connection]
<crime>
heavily implied? I was only making an observation
<crime>
if I was going to talk shit about you endorsing his material, I can come up with something way snarkier than "check it out"
snebel has quit [Quit: Leaving]
<crime>
I endorse plenty of rubyists myself, even work of avdi's when necessary
jaguarmagenta has quit [Ping timeout: 276 seconds]
skade has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
failshell has quit []
dhollinger has joined #ruby
pandaant has quit [Remote host closed the connection]
Dimik1 has quit [Ping timeout: 276 seconds]
jackjackdripper1 has quit [Ping timeout: 276 seconds]
platzhirsch has joined #ruby
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
uptime has joined #ruby
<smathy>
crime, even now your choice of words is ambiguous at best, how about instead of "promote" and "endorse" (which both are commonly used to mean a statement has been financially incentivized) you use "recommend" which has no such connotation.
jackjackdripper has joined #ruby
<crime>
i strongly disavow any claims that I'm paid for my ruby contributions
<smathy>
...then no one will misunderstand your noble intentions.
<crime>
if that is the case, I will recommend things from now on
<crime>
suggest?
<crime>
encourage consideration of?
<havenwood>
I endorse moving this convo to #ruby-offtopic or #ruby-community so this channel can be used to discuss Ruby!
<smathy>
crime, you are free to use whatever word you like in reference to your own statements, but when commenting on the statements of others let's use "recommend" instead of "promote" and "endorse".
<smathy>
Thanks havenwood - timely reminder.
robbyoconnor has quit [Ping timeout: 260 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
<crime>
wait, so havenwood gets paid to mention offtopic then?
<havenwood>
?offtopic crime
<ruby[bot]>
crime: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
jackjackdripper1 has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
jackjackdripper has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
uptime has left #ruby ["I guess that's how it's post to be."]
n008f4g_ has quit [Ping timeout: 268 seconds]
ferr has quit [Quit: WeeChat 1.4]
ferr has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
baweaver has joined #ruby
deadnull has joined #ruby
roelof has quit [Quit: Page closed]
pawnbox has quit [Remote host closed the connection]
IrishGringo has joined #ruby
bob434 has joined #ruby
<crime>
ladies and gentleman, ###ruby has been created to service the greater ruby community. no rules, no one to hold you back or regulate you. enjoy it or dont.
deadnull has quit [Max SendQ exceeded]
devbug has joined #ruby
<shevy>
so many #
deadnull has joined #ruby
deadnull has quit [Client Quit]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<crime>
its strategically engineering to resist potential influence from this very channel, necessitating the ###
sdothum has joined #ruby
jfutbol has quit [Remote host closed the connection]
benlieb has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
PedramT has quit [Remote host closed the connection]
chouhoulis has joined #ruby
cyanboy has quit [Ping timeout: 240 seconds]
n008f4g_ has joined #ruby
polysic__ has quit [Remote host closed the connection]
crime has quit [Remote host closed the connection]
polysics has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
<sandelius>
I'm not much of a javascript guy but did a simple benchmark to test the speed of node's interpreter. It turns out that's not faster than Ruby? I know all about the async IO but people also say it's fast. Am I missing something?
aegis3121 has joined #ruby
<adaedra>
Yes, the fact that raw benchmarks are kind of irrelevant.
<sandelius>
adaedra it's not if it prove people are wrong
<Papierkorb>
sandelius: micro benchmarks are only helpful if that problem they solve is the exact problem you want to solve, which is rarely the case.
<sandelius>
I was trying the interpreter speed, not if it "scales"
<adaedra>
the interpreter speed? What does it mean?
htmldrum has joined #ruby
<adaedra>
The speed when doing what?
tildes has quit [Ping timeout: 252 seconds]
<adaedra>
Also, what people, wrong about what?
<sandelius>
adaedra different things, sorting arrays, some math, bla bla. no IO
crime has joined #ruby
nton has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
htmldrum has quit [Ping timeout: 252 seconds]
nofxx has quit [Remote host closed the connection]
flashpoi_ has quit []
Durin_ has joined #ruby
Emmanuel_Chanel has joined #ruby
flashpoint9 has joined #ruby
blue_lizzard has joined #ruby
chouhoulis has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
Devalo has joined #ruby
chouhoulis has joined #ruby
crime was kicked from #ruby by ruby[bot] ['trolling']
m8 has quit [Quit: Sto andando via]
xxneolithicxx has joined #ruby
Dimik has joined #ruby
w1lson has joined #ruby
Xeago has joined #ruby
<shevy>
sandelius they don't know either :)
Dimik1 has joined #ruby
kareeoleez has joined #ruby
<sandelius>
shevy got that :)
JBlazeCoder21 has joined #ruby
moeabdol has joined #ruby
benlieb has quit [Quit: benlieb]
d5sx43 has joined #ruby
thomashaw has quit [Quit: thomashaw]
<blue_lizzard>
Which ruby runs on the android platform (I don't care so much about Apple iOS).
<blue_lizzard>
s/\./?/
Durin_ has quit []
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pythoninthegrass has quit [Quit: Textual IRC Client: www.textualapp.com]
IrishGringo has joined #ruby
minimalism has joined #ruby
theunraveler has quit []
nemoNoboru has quit [Quit: Leaving]
aspiers_ has joined #ruby
deadnull has joined #ruby
skade has joined #ruby
joast has joined #ruby
braincrash has quit [Ping timeout: 276 seconds]
nullFxn has quit [Quit: leaving]
gregf has joined #ruby
frem_ is now known as frem
nullFxn has joined #ruby
nando294021 has quit [Ping timeout: 260 seconds]
n008f4g_ has quit [Ping timeout: 276 seconds]
tax has joined #ruby
jfutbol has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
[Butch] has quit [Quit: I'm out . . .]
deadnull has quit [Quit: Bye]
nullFxn has quit [Quit: leaving]
nullFxn has joined #ruby
IrishGringo has quit [Ping timeout: 268 seconds]
n008f4g_ has joined #ruby
gregf has quit [Quit: WeeChat 1.4]
kareeoleez has quit [Remote host closed the connection]
nullFxn has quit [Client Quit]
nullFxn has joined #ruby
ChiefAlexander has joined #ruby
jenrzzz has joined #ruby
x77686d has quit [Quit: x77686d]
nullFxn has quit [Client Quit]
nullFxn has joined #ruby
william3 has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
LoneHerm_ has joined #ruby
SilverKey has quit [Quit: Halted.]
gregf has joined #ruby
devbug has quit [Quit: ZZZzzz…]
Jonah11_ has quit []
joast has quit [Ping timeout: 268 seconds]
ChiefAlexander has quit [Remote host closed the connection]
LoneHerm_ has quit [Ping timeout: 276 seconds]
aegis3121 has quit [Ping timeout: 276 seconds]
bronson has joined #ruby
GinoMan2440 has joined #ruby
william3 has joined #ruby
moeabdol has quit [Ping timeout: 244 seconds]
x77686d has joined #ruby
zenlot has joined #ruby
zenlot6 has quit [Ping timeout: 250 seconds]
william3 has quit [Ping timeout: 250 seconds]
skade has quit [Quit: Computer has gone to sleep.]
Waqas has quit [Ping timeout: 276 seconds]
whippythellama has quit [Quit: WeeChat 1.4]
benlieb has quit [Quit: benlieb]
Xeago has quit [Remote host closed the connection]
lkba_ has joined #ruby
Weavel has quit [Quit: Easy as 3.14159265358979323846...]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lkba has quit [Ping timeout: 244 seconds]
allcentury has quit [Ping timeout: 260 seconds]
eggoez has quit [Ping timeout: 260 seconds]
duoi has quit [Ping timeout: 250 seconds]
djbkd has quit [Read error: Connection reset by peer]
n008f4g_ has quit [Ping timeout: 250 seconds]
benlieb has joined #ruby
jaguarmagenta has joined #ruby
duoi has joined #ruby
benlieb has quit [Client Quit]
eggoez has joined #ruby
duderonomy has joined #ruby
Rickmasta has joined #ruby
baweaver has quit [Remote host closed the connection]
devbug has joined #ruby
tsherman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaguarmagenta has quit [Ping timeout: 246 seconds]
jaruga___ has quit [Quit: jaruga___]
allcentury has joined #ruby
last_staff has quit [Quit: last_staff]
brent__ has quit [Quit: Connection closed for inactivity]
cschneid has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
ejnahc has quit [Ping timeout: 260 seconds]
ejnahc has joined #ruby
spider-mario has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.4]
allcentury has quit [Ping timeout: 276 seconds]
Uranio has quit [Quit: Leaving]
<benzrf>
... why did it just unban """diggernick"""
bobbycvi has joined #ruby
biberu has quit []
dorje has joined #ruby
firstdayonthejob has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
snockerton has quit [Quit: Leaving.]
lacuna has joined #ruby
<akkad>
band benzrf for saying it
SilverKey has joined #ruby
chouhoulis has quit [Remote host closed the connection]
weemsledeux has joined #ruby
tvon has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
SilverKey has quit [Client Quit]
<smathy>
?offtopic benzrf akkad
<ruby[bot]>
benzrf: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
benlieb has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
rahult has joined #ruby
axisys has quit [Ping timeout: 276 seconds]
gregf has joined #ruby
axisys has joined #ruby
aef has quit [Ping timeout: 252 seconds]
aspiers_ has quit [Ping timeout: 268 seconds]
xcesariox has joined #ruby
zenlot has quit [Read error: Connection reset by peer]
bzb has joined #ruby
agent_white has quit [Quit: bbl]
<Arcaire>
smathy pls
<Arcaire>
we have a !troll command? wut
bzb has quit [Client Quit]
zenlot has joined #ruby
RegulationD has quit [Remote host closed the connection]
Vile` has joined #ruby
moeabdol has joined #ruby
Nahra has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.4]
swills has joined #ruby
symm- has quit [Ping timeout: 244 seconds]
ChiefAlexander has joined #ruby
_wwwBukoLaycom has joined #ruby
robbyoconnor has joined #ruby
william3 has joined #ruby
CalimeroTeknik has quit [Ping timeout: 276 seconds]
johnmilton has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
ChiefAlexander has quit [Remote host closed the connection]
robbyoconnor has quit [Client Quit]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
bronson has quit [Read error: Connection reset by peer]
gregf has joined #ruby
banister has quit [Remote host closed the connection]
bronson has joined #ruby
william3 has quit [Ping timeout: 276 seconds]
valeri_ufo has quit [Ping timeout: 268 seconds]
valeri_ufo has joined #ruby
johnmilton has quit [Ping timeout: 252 seconds]
banister has joined #ruby
tubuliferous has quit [Ping timeout: 250 seconds]
ChiefAlexander has joined #ruby
banister has quit [Ping timeout: 260 seconds]
<graft>
that seems pretty powerful
<graft>
you can just summarily ban anyone by labeling them a troll?
wnd has quit [Quit: Disconnecting from stoned server.]
wnd has joined #ruby
<graft>
who runs this show anyway?
* graft
looks behind the curtain
rkazak has joined #ruby
brianpWins has quit [Ping timeout: 246 seconds]
gregf has quit [Quit: WeeChat 1.4]
brianpWins has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
drzel has quit [Ping timeout: 250 seconds]
emilford has quit [Ping timeout: 276 seconds]
VeryBewitching has quit [Quit: Konversation terminated!]
<eam>
Supreme executive power derives from a mandate from the masses, not from some f\
<eam>
arcical aquatic ceremony
<Arcaire>
graft: i'd imagine it's oper only
<eam>
whops
<Arcaire>
but yes, they can
<Arcaire>
and /cs info will give you a list
<Arcaire>
/cs info #ruby
ctrlrsf has quit [Ping timeout: 268 seconds]
<eam>
Ah, now we see the violence inherent in the system.
aspiers_ has joined #ruby
johnmilton has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]