michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elton has joined #ruby
ElSif has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
aaeron has joined #ruby
YankNYC has quit [Quit: Connection closed for inactivity]
<hays>
Coraline: hm. i guess that makes some sense
michaeldeol has joined #ruby
rushed has quit [Quit: rushed]
casadei has quit [Remote host closed the connection]
gix has quit [Ping timeout: 255 seconds]
theery has joined #ruby
pwnd_nsfw has quit [Ping timeout: 240 seconds]
unreal has joined #ruby
gix has joined #ruby
Soda has quit [Remote host closed the connection]
eminencehc has joined #ruby
finisherr has quit [Quit: finisherr]
psy_ has quit [Ping timeout: 240 seconds]
_djbkd has joined #ruby
houhoulis has joined #ruby
drewvanstone has quit [Ping timeout: 250 seconds]
pwnd_nsfw has joined #ruby
biesiad has joined #ruby
biesiad has left #ruby [#ruby]
jun_ has quit [Remote host closed the connection]
Xeago has joined #ruby
Spami has joined #ruby
jun_ has joined #ruby
pyon has quit [Quit: Seasons will pass you byyy... I get uuup... I get dooown...]
rushed has joined #ruby
closer has quit [Ping timeout: 272 seconds]
ob_ has joined #ruby
SylarRuby has joined #ruby
closer has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
opensource_ninja has quit [Quit: opensource_ninja]
baegle has joined #ruby
pyon has joined #ruby
<baegle>
In rails, there's a global variables called ENV but I'm struggling to find a comprehensive list of all such predefined global variables. Can someone point me in the right direction?
maletor has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
arup_r has joined #ruby
neanderslob has quit [Ping timeout: 255 seconds]
wldcordeiro has joined #ruby
tcopeland has quit [Quit: Leaving.]
yfeldblum has quit [Ping timeout: 246 seconds]
<havenwood>
baegle: ENV is a constant in Ruby proper. In irb or pry check `ENV` or: ruby -e "p ENV"
<havenwood>
baegle: Check other constants in irb or pry with: Module.constants
renderfu_ has joined #ruby
neanderslob has joined #ruby
<havenwood>
>> global_variables
<ruboto>
havenwood # => [:$;, :$-F, :$@, :$!, :$SAFE, :$~, :$&, :$`, :$', :$+, :$=, :$KCODE, :$-K, :$,, :$/, :$-0, :$\, :$_, ...check link for more (https://eval.in/441942)
<baegle>
havenwood: Thank you. At first attempt, I found a constant called Rails, I attempted to puts Rails.inspect and it just gave me back "Rails"
wldcordeiro_ has joined #ruby
<havenwood>
?pry baegle
<ruboto>
baegle, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
Xeago has quit [Read error: Connection reset by peer]
wldcordeiro has quit [Ping timeout: 250 seconds]
bigkevmcd has quit [Read error: Connection reset by peer]
renderfu_ has quit [Ping timeout: 244 seconds]
<baegle>
thanks
bigkevmcd has joined #ruby
neanderslob has quit [Ping timeout: 240 seconds]
<havenwood>
baegle: Pry is nice for exploring Ruby in general. You might also want to ask in the Rails-specific #RubyOnRails channel regarding the Rails console and related gems.
reset has joined #ruby
<baegle>
havenwood: Thanks. I'm struggling with debugging the source of unroutable requests of running a rails app under a subdirectory, so I guess that's the right place to start
<havenwood>
baegle: Yeah, I'd suggest asking in the #RubyOnRails channel.
<havenwood>
baegle: I'd suggest asking there with a gist of the code involved and error output.
<havenwood>
?rails
<ruboto>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<havenwood>
baegle: You just need to register your nick to talk in Rails. Although I'm not sure if they have that enforced at the moment.
amystephen has joined #ruby
<baegle>
my nick is registered
<havenwood>
Aye, I should have just checked. :)
<baegle>
:) No worries. Most people who need help aren't registered
ob_ has quit [Ping timeout: 250 seconds]
sanjayu has joined #ruby
neanderslob has joined #ruby
Eiam_ has joined #ruby
amystephen has quit [Ping timeout: 255 seconds]
ob_ has joined #ruby
bvthanh has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
<havenwood>
baegle: export env vars that you want to be visible to subprocesses
bklane has quit [Remote host closed the connection]
aaeron has quit [Quit: Leaving.]
bklane has joined #ruby
Ademan has joined #ruby
Cork has quit [Ping timeout: 244 seconds]
Oka has quit [Quit: o/]
arooni has quit [Ping timeout: 246 seconds]
poguez_ has joined #ruby
iamninja_ has joined #ruby
<Ademan>
is there a "most idiomatic" way to iterate over every item in an array, but skipping the first N elements? in python I might iterate over a slice arr[n:]. I can similarly slice arr[n..arr.length] but what's idiomatic here?
jenrzzz has joined #ruby
Guest46541 has quit [Ping timeout: 264 seconds]
<drbrain>
Ademan: Array#drop
cih has joined #ruby
Cork has joined #ruby
ob_ has quit [Quit: Leaving]
iamninja_ has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
chipotle has joined #ruby
finisherr has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
<Ademan>
drbrain: thanks
lampshades has quit [Ping timeout: 252 seconds]
theery has quit [Remote host closed the connection]
sanjayu has joined #ruby
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
Spami has joined #ruby
kp666 has joined #ruby
cih has quit [Ping timeout: 264 seconds]
tjbiddle has quit [Quit: tjbiddle]
rismoney1_ has quit [Ping timeout: 255 seconds]
drewvanstone has joined #ruby
psy_ has joined #ruby
Musashi007 has joined #ruby
psy_ has quit [Max SendQ exceeded]
arescorpio has quit [Quit: Leaving.]
psy_ has joined #ruby
agent_white has joined #ruby
nerium has joined #ruby
nerium has left #ruby [#ruby]
<agent_white>
Evenin'
drewvanstone has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
arup_r has quit [Quit: Leaving]
sanjayu has quit [Remote host closed the connection]
<havenwood>
otacon-: Where do the dates come from, I'm curious? Why does a single date have an end date?
ndrei has joined #ruby
darkf_ has joined #ruby
ndrei_ has joined #ruby
DoubleMalt has joined #ruby
casadei has joined #ruby
darkf has quit [Ping timeout: 240 seconds]
<havenwood>
otacon-: I don't think extracting a module for those two methods is a particularly good idea. I'd be curious to see what they both looked like if you made them entirely separately. You might try asking for suggestions for refactoring from that vantage.
piotrj has quit [Remote host closed the connection]
TheWhip has quit [Remote host closed the connection]
<otacon->
do you mean having two modules, Validatable and Renderable, or would it be a better idea to move those to ActivityFeedDate?
<otacon->
and do away with the module(s) entirely
jimbow has joined #ruby
atomical has joined #ruby
<otacon->
let me add the exhibit methods for context
psy_ has quit [Ping timeout: 260 seconds]
casadei has quit [Ping timeout: 264 seconds]
jun_ has quit [Remote host closed the connection]
DoubleMalt has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
<havenwood>
!ban jimbow !P
<otacon->
havenwood: updated
jimbow was banned on #ruby by ChanServ [jimbow!*@*]
jimbow was kicked from #ruby by ChanServ [User is banned from this channel]
<arup_r_>
one more kick.. yay!
beast has quit [Quit: Leaving]
varunwachaspati has quit [Quit: Connection closed for inactivity]
rdark has joined #ruby
dawkirst has joined #ruby
freezevee has joined #ruby
<havenwood>
otacon-: I just meant to show a separate ActivityFeedDateRange and ActivityFeedSingleDate with no inheritance or mixins but both fully functional. I thought that might be a nice exercise to see where exactly the differences are and might get you better suggestions on refactoring.
SCHAAP137 has joined #ruby
Lildirt has quit [Ping timeout: 255 seconds]
firstdayonthejob has quit [Ping timeout: 246 seconds]
dawkirst has quit [Client Quit]
Musashi007 has quit [Quit: Musashi007]
ta has quit [Remote host closed the connection]
davedev2_ has quit []
PlasmaStar has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
Lildirt has joined #ruby
moeabdol3 has joined #ruby
moeabdol2 has quit [Ping timeout: 252 seconds]
Porfa has joined #ruby
PlasmaStar has joined #ruby
FrankD has quit [Ping timeout: 244 seconds]
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pumukel has joined #ruby
devoldmx has joined #ruby
Porfa has quit [Quit: Porfa]
alexUaN has quit [Quit: alexUaN]
krz has quit [Quit: WeeChat 1.2]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allomov has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
felixr has joined #ruby
psy_ has joined #ruby
cih has joined #ruby
futilegames has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
Deviad has quit [Ping timeout: 265 seconds]
otacon- has quit [Quit: Lost terminal]
houhoulis has quit [Remote host closed the connection]
drptbl has joined #ruby
drptbl has quit [Client Quit]
RegulationD has joined #ruby
anisha has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
anisha has joined #ruby
anisha has quit [Changing host]
Hounddog has joined #ruby
lipoqil has joined #ruby
Macaveli has joined #ruby
dawkirst has joined #ruby
platzhirsch has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
atomical has joined #ruby
futilegames has quit [Ping timeout: 240 seconds]
tawaffan has quit []
havenwood has quit [Ping timeout: 264 seconds]
niftylettuce has quit [Quit: Connection closed for inactivity]
futilegames has joined #ruby
qba73 has joined #ruby
platzhirsch has left #ruby [#ruby]
mikecmpbll has joined #ruby
piotrj has joined #ruby
aganov has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ilyes512 has joined #ruby
skade has joined #ruby
drptbl has joined #ruby
joonty has joined #ruby
charliesome has joined #ruby
tiredcat is now known as straycat
lampshades has quit [Remote host closed the connection]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
gustav__ has quit [Remote host closed the connection]
sanjayu has joined #ruby
blackmesa has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
newbieruby has joined #ruby
Zai00 has quit [Ping timeout: 246 seconds]
eminencehc has joined #ruby
workmad3 has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
<newbieruby>
Hey guys, I'm running ruby code through console and something is going wrong. Luckily it's logging to STDOUT but i don't know how to read or acces the log. How does stdout work? how do i check the error log?
<jhass>
newbieruby: stdout, unless you redirect it, is connected to your terminal, it's right displayed
Anti-Pizza has joined #ruby
piotrj has quit [Remote host closed the connection]
eminencehc has quit [Ping timeout: 260 seconds]
<newbieruby>
I'm running it through windows command promt, i have no additional terminals etc where there could be output and it's not displayed in the windows console. just the message "logging to STDOUT initialized with level INFO"
marwinism has quit [Remote host closed the connection]
Gnomethrower has joined #ruby
Gnomethrower has joined #ruby
<yorickpeterse>
morning
piotrj has joined #ruby
futilegames has quit [Ping timeout: 264 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zai00 has quit [Ping timeout: 264 seconds]
PaulCape_ has joined #ruby
htmldrum has quit [Ping timeout: 268 seconds]
shredding has joined #ruby
casadei has joined #ruby
PaulCapestany has quit [Ping timeout: 265 seconds]
<jhass>
newbieruby: probably there just aren't any log messages?
timonv has joined #ruby
jenrzzz has joined #ruby
postmodern has quit [Quit: Leaving]
karapetyan has quit [Remote host closed the connection]
<newbieruby>
jhass: Maybe not, but the code stops midway with the message logging to stdout. So I thought there might be answers there
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
htmldrum has joined #ruby
blaxter has joined #ruby
casadei has quit [Ping timeout: 260 seconds]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
arturmartins has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
Zai00 has joined #ruby
SylarRuby has quit []
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nfk has joined #ruby
beast has joined #ruby
htmldrum has quit [Ping timeout: 246 seconds]
pandaant has joined #ruby
arup_r_ has quit [Remote host closed the connection]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zai00 has quit [Ping timeout: 264 seconds]
stamina has joined #ruby
Ilyes512 has joined #ruby
Macaveli has joined #ruby
Pathfinder has quit [Ping timeout: 246 seconds]
Musashi007 has quit [Quit: Musashi007]
beauby has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
gustav__ has joined #ruby
dravine_ has joined #ruby
Burgestrand has quit []
bvthanh has joined #ruby
Macaveli has quit [Remote host closed the connection]
dravine has quit [Ping timeout: 265 seconds]
dravine_ is now known as dravine
<livcd>
what are some of the upcoming ruby 3 features ?
PaulCapestany has joined #ruby
<certainty>
who knows
gustav__ has quit [Remote host closed the connection]
<jhass>
the future knows
<adaedra>
But I'm tired of waiting for the future!
giuseppesolinas has quit [Quit: This computer has gone to sleep]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
<adaedra>
Ah want it now!
Kendos-Kenlen has quit [Quit: Konversation terminated!]
PaulCape_ has quit [Ping timeout: 272 seconds]
Kendos-Kenlen has joined #ruby
Xeago has quit [Remote host closed the connection]
nettoweb has joined #ruby
<gregf_>
i want patience and i want it now!
<gregf_>
is ruby3 going to be faster than php?
<certainty>
we'll see
dravine_ has joined #ruby
Flyy7 has joined #ruby
neanderslob has quit [Remote host closed the connection]
dravine has quit [Ping timeout: 250 seconds]
dravine_ is now known as dravine
ob_ has joined #ruby
<livcd>
i though ruby is generally faster than php
<livcd>
thought*
astrobunny has quit [Remote host closed the connection]
<livcd>
and python as well
<adaedra>
They all have different performance in different situations and different use cases
TvL2386 has joined #ruby
arup_r has joined #ruby
<certainty>
there are rumors though about things that might or might not come. Matz' talked about them. (last year i believe)
Voker57 has joined #ruby
Anti-Pizza has quit [Read error: Connection reset by peer]
drptbl has joined #ruby
jenrzzz has joined #ruby
felixr has quit [Ping timeout: 268 seconds]
peteykun has quit [Ping timeout: 240 seconds]
tfitts has quit [Read error: Connection reset by peer]
TheWhip has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
newbieruby has quit [Quit: Page closed]
eminencehc has joined #ruby
ledestin has joined #ruby
PaulCape_ has joined #ruby
krz has joined #ruby
marr has joined #ruby
PaulCapestany has quit [Ping timeout: 240 seconds]
eminencehc has quit [Ping timeout: 250 seconds]
tuor has quit [Quit: WeeChat 1.1.1]
nfk|laptop has joined #ruby
tuor has joined #ruby
mondayrain has quit [Ping timeout: 264 seconds]
K1MOS has joined #ruby
tagrudev has quit [Remote host closed the connection]
tagrudev has joined #ruby
tvw has joined #ruby
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
Pupeno has quit [Remote host closed the connection]
apt-get has joined #ruby
emilkarl has quit [Ping timeout: 240 seconds]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhjondoh has quit [Remote host closed the connection]
finisherr has quit [Quit: finisherr]
TheWhip has quit [Remote host closed the connection]
<Xeago>
So rather then making a array of strings, you'll make an array of lambda's
charliesome has joined #ruby
jcromartie has joined #ruby
vondruch has quit [Quit: Ex-Chat]
_el_fer_ has joined #ruby
jenrzzz has joined #ruby
TheWhip_ has quit [Remote host closed the connection]
minimalism has quit [Quit: leaving]
_mak has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 250 seconds]
hagabaka has quit [Quit: No Ping reply in 180 seconds.]
karapetyan has joined #ruby
skade has joined #ruby
InternetFriend has joined #ruby
tsujp has quit [Quit: tsujp is snoozing]
PaulCape_ has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
TvL2386 has joined #ruby
fella5s has quit [Quit: Leaving]
psy_ has joined #ruby
dhjondoh1 has joined #ruby
PaulCapestany has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
dhjondoh has quit [Ping timeout: 250 seconds]
dhjondoh1 is now known as dhjondoh
araujo has quit [Ping timeout: 250 seconds]
<_el_fer_>
hey ruby, good morning at least for me
yfeldblum has quit [Ping timeout: 246 seconds]
Kendos-Kenlen has quit [Read error: Connection reset by peer]
<Porfa>
Xeago: i can't get my way around it
Kendos-Kenlen has joined #ruby
<Xeago>
Porfa: if you want to run it, just don't make it a string?
araujo has joined #ruby
Kendos-Kenlen has quit [Read error: Connection reset by peer]
qiukun has quit [Quit: qiukun]
<Porfa>
but how can i make it not a string and still craft my command from the variables?
<Xeago>
If you want to run it at a later time, bind it using a lambda (you'll get an object returned) which you can #call later to invoke the code.
<Porfa>
i have to learn lambda, I'm really new and these are the first times I'm using arrays and loops
Kendos-Kenlen has joined #ruby
<shevy>
man
<shevy>
you don't have to learn lambda
<shevy>
you have to improve on what you currently know
vondruch has joined #ruby
blackmesa has joined #ruby
araujo has quit [Max SendQ exceeded]
dhjondoh1 has joined #ruby
allcentury has joined #ruby
gustav__ has quit [Remote host closed the connection]
<Porfa>
hey shevy whats up?
<Porfa>
:)
dhjondoh has quit [Ping timeout: 244 seconds]
dhjondoh1 is now known as dhjondoh
<certainty>
shevy: your future is dark
<certainty>
xD
<certainty>
shevy softtypes was one of the things i believe
<shevy>
hmm
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
jcromartie has joined #ruby
Rollabunna has joined #ruby
<Porfa>
if someone could crack that crap for me i would look into it and learn, that's what i do when i can't do soothing here, after reading the code i understand and i can handle the problem myself when i encounter it again
<Porfa>
but i guess everyone has their own method of doing things
RealMarc has quit [Ping timeout: 256 seconds]
<shevy>
no you don't just listen
<Porfa>
so shevy, do you understand what i am trying to do with that script? (bad denting aside)
<shevy>
you don't even want to indent properly
<Porfa>
and can you tell me what i do specifically need to learn so i can do it?
<Porfa>
no one taught me to indent, i don't get indention at all, for me i'd use tabs but i understand ruby prefers twospaces
araujo has joined #ruby
araujo has joined #ruby
<shevy>
this is not a question of tabs versus spaces
<shevy>
you simply indent incorrectly
<shevy>
it's a problem that begins even before the tabs versus spaces situation!
<shevy>
and this command does what? does it return a string? does it print a string?
p0wn3d has joined #ruby
_mak has joined #ruby
<shevy>
oh
<shevy>
Porfa, add this to the requires:
<shevy>
require 'pp'
<shevy>
then do, before the last puts - pp foo
<shevy>
and run the script again
<Porfa>
that command clicks on the f04_0002 element of the page I'm using, and writes the string that it's on ALQDETALHESPB, position 2
<Porfa>
ok
<shevy>
yeah ok so you can just iterate over your array
avril14th has joined #ruby
<shevy>
you already store all the information you require in your foo array
gustav__ has quit [Remote host closed the connection]
* avril14th
waves hi
<shevy>
foo = numbers.each_with_index.map do |number, idx|
<shevy>
^^^ there you have the number on the first slot, and the index on the second slot
gustav__ has joined #ruby
<shevy>
and please call your index index and not idx or fancy_pants
Burgestrand has quit []
casadei has joined #ruby
Flyy7 has joined #ruby
renderful has joined #ruby
<Porfa>
my require 'pp' returns false and i can't find corresponding gem name on google
<jhass>
it's in stdlib
PaulCapestany has joined #ruby
<jhass>
false means its already loaded
blackmesa has quit [Ping timeout: 250 seconds]
PaulCape_ has quit [Ping timeout: 240 seconds]
gustav__ has quit [Ping timeout: 264 seconds]
<shevy>
Porfa: here is pp http://ruby-doc.org/stdlib-2.2.3/libdoc/pp/rdoc/PP.html it's worth to have a look at this page once, you'll happily use pp whenever you get confused about your data structures, when you have big arrays and big hashes
wldcordeiro_ has quit [Quit: Konversation terminated!]
bankair has quit [Ping timeout: 256 seconds]
casadei has quit [Ping timeout: 260 seconds]
bankair has joined #ruby
<Porfa>
shevy: the html element starts count at 1 and the array at 0, that's why it's ilke that
sbhatore has joined #ruby
renderful has quit [Ping timeout: 265 seconds]
dirtyonekanobi has joined #ruby
<gregf_>
avril14th: long time no see
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
<shevy>
Porfa won't matter, you have a number
beauby has quit [Ping timeout: 264 seconds]
<shevy>
if you need to use array-formats, you deduct 1 from your index number
Flyy7 has quit [Quit: leaving]
<avril14th>
gregf_: indeed. way busy ^^
<shevy>
you said that driver.find_element(:id, "f04_0002").send_keys(ALQDETALHESPB[1]) is correct and works, and you got all the information you require already in your array, so all you have to do is iterate over it
<Porfa>
still, if it sends a number instead of the text that correspondent number holds, I'm happy.
JoL1hAHN is now known as nrk
segfalt has quit [Quit: segfalt]
krisquigley has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
atomical has joined #ruby
karapetyan has joined #ruby
<Porfa>
OH I GET IT
<shevy>
did you use pp?
<Porfa>
yes, but that's not it, I'm just printing the contents of the array the "way" i want, but I'm not interested in printing them i guess, I just need to iterate
julieeharshaw has quit [Ping timeout: 256 seconds]
iszak has quit [Ping timeout: 256 seconds]
iszak has joined #ruby
julieeharshaw has joined #ruby
ericjphillips has joined #ruby
<shevy>
pp isn't when you want to print them
<shevy>
it is when you want to look at it
<shevy>
so you know where you are at in your code
TheWhip has joined #ruby
Motoservo has joined #ruby
<shevy>
that way it'll be easier for you to iterate over it and extract what you need where you want it
<[k->
pp stands for pretty print though
<Porfa>
pp is in ruby 2.2.1 ? because the site you sent me is ruby 2.2.3
<Porfa>
and i did install something called "awesome print" and pp became avaiable
beauby has joined #ruby
Joshua__ has joined #ruby
<Joshua__>
hello
<jhass>
awesome_print provides ap, not pp
cirenyc has joined #ruby
<jhass>
pp is in stdlib since like forever
<Porfa>
ok
<Joshua__>
I have an important question
<yorickpeterse>
?ask
<ruboto>
Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
towski_ has joined #ruby
<Joshua__>
Okay! One moment, its going to seem very amateur because, well I am an amateur at ruby.
cirenyc has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PaulCape_ has joined #ruby
charliesome has joined #ruby
<shevy>
Porfa awesome print is annoying, pp is in stdlib
<shevy>
the colours kill me in awesome print
futilegames has joined #ruby
Xeago has quit [Remote host closed the connection]
ndrei_ has quit [Ping timeout: 264 seconds]
PaulCapestany has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Joshua__>
So I'm wonder what tools I will need to be able to build an web-app that can take your information you provide and match it with other people on the website, thats pretty much it. At the moment im learning Ruby on Codeschool.com. Will i need anything else to make such an app??
futilegames has quit [Client Quit]
<_el_fer_>
anything else other than what Joshua__ ?
<Joshua__>
I'm not trying to make this app at the moment, i need experience im just wondering what else i will need to do something like this? Like i've heard about "server-side" things
<shevy>
my happy webchatter friend
<_el_fer_>
oh I see, yes you will need a server to make a "web-app" and a couple of pages read about it absolutely :)
asxbr has joined #ruby
<Joshua__>
Are those the only tools?
<_el_fer_>
maybe learning ruby language it's not the best to make first steps, IMHO
<jhass>
Joshua__: what do you know already?
<Joshua__>
Ive learned HTML/CSS
<Joshua__>
Im diving into HTML5 and CSS3
<Joshua__>
But to make an app like this im sure ill need something else? Or atleast KNOW something else
<jhass>
you'll need a server side component, yes
<Joshua__>
i just dont wanna spend ALL my time learning ruby if something else is gonna be important later down the road.
zenguy_pc has quit [Read error: No route to host]
edwardly has quit [Ping timeout: 268 seconds]
<jhass>
to make a nice and responsive site you'll also need Javascript
<_el_fer_>
any language would be okay, but you do need a backend or 'server side'
msb_ has quit [Ping timeout: 256 seconds]
Pathfinder has quit [Remote host closed the connection]
<jhass>
but that can be added later
<Joshua__>
I dont know much about server-side components, is there specific ones that are better ? is it like a language?
<_el_fer_>
servers can be coded in any programming language
<jhass>
then dabble a bit with http://sinatrarb.com/ to get a feeling how a web app and its backend interact
minimalism has quit [Quit: leaving]
andyrs has joined #ruby
msb_ has joined #ruby
<Joshua__>
oh so you CODE a server?
<Joshua__>
And thank you guys for the help, very much appreciated!!
<jhass>
code is a general term, so say one code's HTML & CSS too
livathinos has quit [Remote host closed the connection]
<jhass>
*some say
eGGsha has quit [Read error: Connection reset by peer]
sdwrage has joined #ruby
<Joshua__>
Okay, im sorry ill rephrase that
leafybas_ has joined #ruby
<jhass>
but you'll need to know a programming language, HTML & CSS are so called markup languages
<_el_fer_>
you write code that runs in servers
<Joshua__>
so basically, you can program a server with a language such as ruby?
<_el_fer_>
to be precise
<jhass>
basically
<_el_fer_>
yes you do
<Joshua__>
okay
iamninja_ has quit [Read error: Connection reset by peer]
<Joshua__>
I'm gonna be an annoying person on her asking many questions if im stuck on a part in my current course haha
<Joshua__>
are you guys on her alot?
iamninja_ has joined #ruby
<jhass>
great
<Joshua__>
here**
<jhass>
usually there's someone around
<jhass>
don't focus on people so much, just ask the channel
<jhass>
also
<jhass>
?guys
<ruboto>
Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<Joshua__>
How much experience do you guys have or most people on here other than noobies
amystephen has joined #ruby
<_el_fer_>
I guess people here are newcomers like me, others have a wide expertise
<jhass>
from your level to experienced seniors with dozens of years of experience, you meet all levels here
leafybas_ has quit [Remote host closed the connection]
<Joshua__>
Okay awesome
leafybas_ has joined #ruby
<Joshua__>
Thank you for the help
<Joshua__>
Have any of you created web apps i can see? id like to check one out if you have it published online or something
TheWhip has quit [Remote host closed the connection]
<Joshua__>
Just for fun, if not its okay.
leafybasil has quit [Read error: Connection reset by peer]
<jhass>
mmh, I contribute to diaspora*, though the code quality over there is still kinda meh
<Joshua__>
diaspora?
Burgestrand has joined #ruby
<jhass>
you should be able to google it
<jhass>
(which you should do in general btw, show you did your research on a particular problem)
jcromartie has joined #ruby
minimalism has joined #ruby
<Porfa>
i don't get this, i already know how to set up my data into an array the way i want it, but i can't seem to get it out into the interpreter, fouesaihfxiufur
<jhass>
Porfa: current code?
<Porfa>
just onto the screen, this might look the most simple thing to you, sure but this is driving me nuts, i missing a very simple piece in this
<Porfa>
jhass: gisting
umgrosscol has joined #ruby
<Burgestrand>
Still at it I see!
drewvanstone has joined #ruby
krz has joined #ruby
baegle has quit [Ping timeout: 272 seconds]
prestorium has quit [Quit: Leaving]
<jhass>
Burgestrand: you know Porfa, it'll go on for a couple of days :P
<Burgestrand>
I still don't get it why you surround it with "-quotes and puts it.
anisha has quit [Ping timeout: 264 seconds]
<Porfa>
because if i take them out, i can't print the string on the screen
<jhass>
"the string" ?
<Porfa>
because of the "'s
<Burgestrand>
Porfa: Why do you want to print the string on the screen?
<Porfa>
i don't want to print the string on the string, i want to send the output strings as commands into the interpreter.
<Porfa>
screen*
<jhass>
then back to step one, why do you add "?
ndrei has joined #ruby
dstarh has joined #ruby
<Joshua__>
do you guys recommend any books i can buy to help me learn ruby on top of codeschool?
<Burgestrand>
Maybe it wants both?
<jhass>
Joshua__: I already linked you one
<Burgestrand>
Joshua__: are you a new programmer, or coming from another language?
<Joshua__>
For some reason id prefer a physical book
<Joshua__>
i feel like itd be easier for me
<jhass>
Joshua__: you can buy it
<Porfa>
I'm using the data on the array to know how many lines of ( driver.find_element(:id, "f04_000$$").send_keys(ALQDETALHESPB[$$]) ) i must do
<jhass>
I think there are physical copies
<shevy>
lol
towski_ has quit [Remote host closed the connection]
drewvanstone has quit [Ping timeout: 268 seconds]
<shevy>
Porfa did not read anything what was written before :)
<Burgestrand>
:(
<shevy>
and where from did $$ come ...
<Porfa>
shevy: i did, and i don't understand what you mean "iterate over it"
<jhass>
Porfa: just loop
<jhass>
you don't need to generate source code
Anti-Pizza has joined #ruby
baegle has joined #ruby
<Joshua__>
jhass:is it the "pine" that i can buy?
<Burgestrand>
It's already looping, but for some reason it is surrounding it's code in "-quotes.
<shevy>
Porfa you already iterate in your own code!!!! .each <--- this is an iteration
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zenguy_pc has joined #ruby
ob_ has left #ruby ["Leaving"]
<Burgestrand>
Learn to Program by Chris Pine. Ah yes. :)
<jhass>
pragmatism: get away from the idea of generating source code as far as possible. Transform arrays into other arrays, do actions for each item of an array
<Porfa>
jhass: it's not at the moment, but i think i should get "NameError: undefined local variable or method `driver' for main:Object" and I'm not even getting there
Xeago has quit [Remote host closed the connection]
corpsicle has quit [Ping timeout: 264 seconds]
corpsicle has joined #ruby
andyrs has joined #ruby
<jhass>
Porfa: get your things straight, you should be getting that error or no output at all with that code
arup_r_ has quit [Remote host closed the connection]
devdazed has quit [Quit: Computer has gone to sleep.]
<jhass>
you didn't run the code you showed for the behavior you described
<shevy>
mystery code
andyrs has quit [Client Quit]
<Porfa>
the line is driver.find_element(:id, "f04_000#{index+1}").send_keys(ALQDETALHESPB[#{index+0}])
<jhass>
actually you should've gotten a syntax error with those \"
<jhass>
that's not what you pasted into irb
subshad has quit [Ping timeout: 260 seconds]
<jhass>
we don't see your screen so we can't magically know what you're doing, but what you've shown doesn't go together
unshadow has joined #ruby
lkba_ has joined #ruby
anisha has joined #ruby
<Porfa>
ok i will try again.
subshad has joined #ruby
Joshua__ has quit [Quit: Page closed]
sanguisdex has joined #ruby
<Porfa>
it is the same :| irb just stands there with a question mark
j____ has joined #ruby
<shevy>
yeah
<shevy>
#{index+0}
bkxd has joined #ruby
<shevy>
please stop all of this
<shevy>
break it down into variables
<shevy>
then use those variables
andyrs has joined #ruby
_el_fer_ has quit [Quit: Leaving]
prestorium has quit [Quit: Leaving]
<jhass>
Porfa: stop pasting it into irb for a moment
<jhass>
save it to a file and do ruby that_file.rb
<jhass>
and adding quotes somewhere doesn't count as fi
<jhass>
*fix
freerobby has joined #ruby
skweek has quit [Remote host closed the connection]
bmurt has joined #ruby
<j____>
dasdsadwuiruwijajiJijdiewjijwiadieu
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
<jhass>
j____: how's your cat?
<j____>
fine
prestorium has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
`tim` has joined #ruby
<adaedra>
adieu
devoldmx has quit [Ping timeout: 260 seconds]
bigbadbear has joined #ruby
avi has joined #ruby
Psi-Jack has joined #ruby
sankaber has joined #ruby
Ilyes512 has joined #ruby
ruurd has joined #ruby
avi has quit [Client Quit]
prestorium has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
j____ has quit [Quit: Lost terminal]
xet7 has quit [Quit: Leaving]
prestorium has joined #ruby
system64 has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
rubybeginner has joined #ruby
<rubybeginner>
umm, hey guys, is this is chat for ruby language?
InternetFriend has joined #ruby
<jhass>
yes
<ruurd>
yep
<ruurd>
welcom
<ruurd>
e
<rubybeginner>
nice, then i got on the right place.
skweek has joined #ruby
JDiPierro has joined #ruby
<Burgestrand>
?guys rubybeginner
<ruboto>
rubybeginner, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<Porfa>
yeah welcome, and don't talk with me, you will learn nothing! but these guys are great
<rubybeginner>
thanks! How are you guys? Hope you're having a good day.
leafybasil has joined #ruby
<rubybeginner>
Right...
<adaedra>
õ_o
<Burgestrand>
:)
sanguisdex has quit [Quit: Leaving.]
<rubybeginner>
i feel stupid :D
beauby has quit [Ping timeout: 272 seconds]
<ruurd>
we all are
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Burgestrand>
It's normal, it'll pass!
<jhass>
I'm sure we can help you over the current urge though, where are you stuck?
<Burgestrand>
Then it'll come back again.
<ruurd>
so Burgestrand most languages use plural male for mixed groups.
<Burgestrand>
It's like a wave.
<jhass>
?guys2 ruurd
<ruboto>
ruurd, it doesn’t matter if it’s "normal"/gender neutral to say "guys" in your idiolect. "You guys" to refer to a mixed group is erasure. All we ask from you is to be a decent channel member and respect that. If you want to further discuss this, join #ruby-offtopic.
<rubybeginner>
jhass I actually want to start programing.
<Burgestrand>
This bot has everything!
<rubybeginner>
If i can say so...
<jhass>
rubybeginner: that's great
<Burgestrand>
?cookies
<ruboto>
I don't know anything about cookies
<jhass>
?cookie Burgestrand
<ruboto>
Burgestrand, here's your cookie:
<Burgestrand>
See.
joufflu has joined #ruby
<Burgestrand>
Everything, except plural cookies.
bigbadbear has quit [Ping timeout: 256 seconds]
<rubybeginner>
so, i know a little about html and css, i know those arent languages
<jhass>
as Burgestrand already pointed out max_nesting in particular
<Burgestrand>
I wonder if there's a way to control what happens when max_nesting condition is reached…
sgambino has joined #ruby
<jhass>
ah, I guess not
<system64>
jhass: Are those options passed recursively to every object that needs to be converted to json?
<Porfa>
yeah my array woerkd
<jhass>
system64: probably easiest to have a function that returns a new tree limited to the desired depth
<jhass>
I think so, yeah
iateadonut has joined #ruby
<Porfa>
but the last bit doesn't pass the index, it's a syntax error i have no idea how to properly put the index inside the [ ] 's
<system64>
I'll try it again, got some error last time I tried with options
<Burgestrand>
No way to control it in the ruby stdlib at least.
<Burgestrand>
Sorry, ruby core, bah.
<Burgestrand>
… maybe, stdlib.
<Burgestrand>
Pft.
<system64>
but building a tree of certain depth, is something I didn't think of :D
<jhass>
json is stdlib, yeah ;)
<Porfa>
how do i properly call the index+1 in here? --> .send_keys(ALQDETALHESPB[#{index+1}])
<Burgestrand>
Porfa: remove your #{}-thingies.
beauby has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whippythellama has joined #ruby
<rubybeginner>
wow, u guys are soo smart allready.
<Burgestrand>
Porfa: what text editor do yo uuse?
<Porfa>
coda
allcentury has joined #ruby
<Burgestrand>
Porfa: it should grey out all text after the #-sign.
<Porfa>
it does
<Burgestrand>
Good. That tells you that the code after the #-sign does not run. :)
PaulCapestany has joined #ruby
<ruurd>
Porfa coda? The Panic Coda?
<Burgestrand>
(it starts a comment)
<Porfa>
(yes the panic coda)
<Porfa>
yes Burgestrand , but in the whole line i have a # in there and it doesn't start a comment
<Porfa>
whole line driver.find_element(:id, "f04_000#{index+1}").send_keys(ALQDETALHESPB[#index+1])
<Porfa>
the first index gets passed
<Porfa>
the second doesn't
<jhass>
Porfa: foo("#{bar}") is different from foo(#{bar})
<Porfa>
i see
<jhass>
outside " it's just a comment
<system64>
jhass: The options are not being passed recursively
<system64>
I tried printing options in to_json()
<ruurd>
Porfa any particular reason why?
PaulCape_ has quit [Ping timeout: 265 seconds]
apt-get has joined #ruby
<system64>
For the first object, I get the options I passed - but for remaining I get JSON State object
<Burgestrand>
Porfa: aye, but it's inside "-signs isn't it?
<Porfa>
ruurd: yes, i have a database browser, sftp/ftp real time file preview, upload, etc etc.. i tried sublime text before, but some things don't work as i want
<jhass>
system64: bummer
<Burgestrand>
rubybeginner: already?
<jhass>
so I stand with making a copy of the tree is probably the easiest way, unless the tree is exorbitantly large that is
<ruurd>
Porfa but not a debugger. You could have a look at RubyMine...
<Porfa>
ok
<system64>
jhass: The tree is actually large
<Porfa>
ill look into that thank yo
<Porfa>
jet brains ruby mine, jet brains remind me of some fallout NPC burnout
<jhass>
system64: well or rather if you want to copy out to a high depth I guess
tkuchiki has quit [Remote host closed the connection]
<shevy>
did we ever find out where driver comes from?
<Burgestrand>
Porfa: why did you add "-quotes again, considering I suggested you should remove the #{}-thing around `index + 1` in the ALQDEALHESPB?
ZenDuck has joined #ruby
<Burgestrand>
…
<Burgestrand>
Porfa: ignore that, sorry.
<shevy>
haha
<shevy>
we are all stuck in a loop now!
<Porfa>
shevy: lol driver is the selenium instance
<Burgestrand>
I think my computer is sentient.
dravine has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
<shevy>
Porfa it sounds as if selenium may be too complicated for you!
<Porfa>
and everything is working now as expected
<shevy>
[TIME STAMP]
<Porfa>
LOL
<shevy>
I'll remind you later again ;)
bkxd has quit [Ping timeout: 240 seconds]
<ZenDuck>
Hi, I am using linuxbrew on a cluster (which uses ruby), and I have the following problem when trying to install something: Error: Input/output error @ rb_file_flock , thought this had something to do with flock so installed a new version (2.27) still happening...anybody know what is going on?
<ZenDuck>
I think it is a file lock problem, but for the life of me I can figure out how to solve it. dont know how to determine if another process is using the file...
tsujp has quit [Quit: tsujp is snoozing]
<certainty>
ZenDuck: lsof
<ZenDuck>
the whole error is: Error: Input/output error @ rb_file_flock - /home/jq2/.cache/Homebrew/Formula/curl.brewing
Rickmasta has joined #ruby
<tuor>
I tried to improve some stuff, but I know error handling is mostly missing and it's still not logging. Apart from this, what would you improve/change?
lkba_ has quit [Ping timeout: 264 seconds]
Kendos-Kenlen has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
<ZenDuck>
It is a cache directory, which I have recreated. Though this error is not specific to any brew formula, it fails with all brew formulas. lsof shows nothing :(
ndrei has quit [Ping timeout: 240 seconds]
Kendos-Kenlen has joined #ruby
<certainty>
tuor: without having looked too close. this really looks like you want more objects
<ZenDuck>
unless the brew ruby script has multiple processes somewhere that causes a lock...is that possible?
rubybeginner has joined #ruby
hal_9000_ has joined #ruby
<tuor>
certainty, why? (what would be the benefit?)
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
gustav__ has quit [Remote host closed the connection]
<certainty>
tuor: this class is huge. As i said, i haven't looked closely, but that's an indicator that it's doing too much
Xeago has joined #ruby
InternetFriend has joined #ruby
PlasmaStar has quit [Ping timeout: 246 seconds]
<ZenDuck>
has anyone here worked with brew formulas before (btw I know nothing of ruby...as in only know the name, and found this IRC)
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<certainty>
tuor: simple game. Summarize the responsibilities of that object.
<tuor>
export or import templates from a zabbix server.
PaulCape_ has joined #ruby
PaulCapestany has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
<certainty>
so you have two responsiblities at least
<certainty>
and it's either or
<certainty>
so no need to have them together
Cyther has joined #ruby
<tuor>
The thing is, it's using a gem for using the zabbix api. This class should give the missing possibility of the ZabbixApi gem.
symbol has joined #ruby
<tuor>
certainty, ok. I'll think about how to separate them. But when they need the same code (some methods) what do I do then?
PlasmaStar has joined #ruby
based_pdev has joined #ruby
<certainty>
tuor: find a way to share those common concerns
<tuor>
ok. Then i should make one class for the shared stuff, and one for each function (import | export).
<certainty>
tuor: i believe that all the actions are related to the import/export tasks, but if you look at the method prefixes you might notice that you already grouped them
<certainty>
this is a good place to start and try to make them proper objects
<tuor>
ok.
<certainty>
or infixes rather
<certainty>
the *_templates_* stuff for example
<certainty>
then the import_*
<certainty>
also looking at the top of the file
<certainty>
you probably want a class to encapsulate the rules
wldcordeiro has joined #ruby
<certainty>
that's how i'd start
tkuchiki has quit [Remote host closed the connection]
<tuor>
ok. I'll think about it (and try).
Xeago has quit [Remote host closed the connection]
TvL2386 has joined #ruby
Xeago has joined #ruby
Meow-J has joined #ruby
pontiki has joined #ruby
Ilyes512 has joined #ruby
wldcordeiro_ has joined #ruby
nfk|laptop has quit [Quit: yawn]
cassioscabral has quit [Quit: cassioscabral]
Ilyes512 has quit [Client Quit]
dravine has quit [Ping timeout: 240 seconds]
tuor has quit [Remote host closed the connection]
tuor has joined #ruby
rubybeginner has quit [Ping timeout: 264 seconds]
Ilyes512 has joined #ruby
dravine has joined #ruby
Xeago has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
leafybasil has joined #ruby
dirtyonekanobi has quit [Quit: Connection closed for inactivity]
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moparisthebest has left #ruby ["Leaving"]
rismoney1 has joined #ruby
jxv has joined #ruby
bigbadbear has joined #ruby
psy_ has quit [Ping timeout: 272 seconds]
bklane has joined #ruby
tuor has quit [Remote host closed the connection]
tuor has joined #ruby
bigbadbear has quit [Client Quit]
tomchapin has joined #ruby
prestorium_ has joined #ruby
mallu has joined #ruby
deric_skibotn has quit [Ping timeout: 244 seconds]
twohlix has quit [Ping timeout: 264 seconds]
beauby has quit [Ping timeout: 244 seconds]
_el_fer_ has quit [Quit: Leaving]
avril14th has quit [Read error: Connection reset by peer]
InternetFriend has joined #ruby
rubybeginner has joined #ruby
Burgestrand has quit []
twohlix has joined #ruby
p0wn3d has quit [Ping timeout: 252 seconds]
tuor has quit [Remote host closed the connection]
prestorium has quit [Ping timeout: 240 seconds]
anisha has quit [Ping timeout: 240 seconds]
tuor has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
TPBallbag has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PaulCapestany has joined #ruby
fifo_ has joined #ruby
ruurd has joined #ruby
dome22xl has joined #ruby
prestorium_ is now known as prestorium
NeverDie has joined #ruby
PaulCape_ has quit [Ping timeout: 252 seconds]
krisquigley has quit [Remote host closed the connection]
Kendos-Kenlen has quit [Read error: Connection reset by peer]
I has joined #ruby
SylarRuby has quit [Ping timeout: 264 seconds]
qba73 has quit [Read error: Connection reset by peer]
I is now known as Guest52475
aaeron has joined #ruby
qba73__ has quit [Client Quit]
huddy has joined #ruby
yardenbar has quit [Ping timeout: 265 seconds]
<Nego_Fua>
Hello Rubyists!
n008f4g_ has joined #ruby
bklane has joined #ruby
delianides has joined #ruby
qba73_ has quit [Ping timeout: 250 seconds]
aaeron has quit [Client Quit]
maletor has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
rushed has joined #ruby
niftylettuce has joined #ruby
dfockler has joined #ruby
Xeago has joined #ruby
diegobiavati_ has quit [Ping timeout: 260 seconds]
[k-_ has joined #ruby
shmilan has joined #ruby
towski_ has joined #ruby
OmiKrOn has joined #ruby
<OmiKrOn>
greetings
leafybas_ has joined #ruby
skweek has quit [Remote host closed the connection]
<OmiKrOn>
is there possible to specify a range of ruby versions within a Gemfile?
[k- has quit [Ping timeout: 256 seconds]
shmoon_ has joined #ruby
<shmoon_>
hi I've a question regarding CSV.generate, the `csv` variable accessible in the block, how can I access a particular array of that object or set ?
<shmoon_>
so I'm generating array on the go by enumerating over a collection
arup_r has quit [Ping timeout: 256 seconds]
<shmoon_>
I'm doing csv << arr inside that, but in the end I want to re-set the columns
SylarRuby has joined #ruby
<shevy>
no
eminencehc has joined #ruby
segfalt has joined #ruby
<OmiKrOn>
again...is there possible to specify a range of ruby versions within a Gemfile?
<shmoon_>
i wonder why they didn't allow this
chipotle has quit [Quit: cheerio]
dionysus69 has quit [Ping timeout: 240 seconds]
<shevy>
gateway is taking over #ruby
ruurd has joined #ruby
PaulCapestany has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.4-dev]
jeffreylevesque has joined #ruby
<jeffreylevesque>
is there a npm package that can check links?
rismoney1 has quit [Remote host closed the connection]
drewvanstone has joined #ruby
PaulCape_ has quit [Ping timeout: 272 seconds]
<shevy>
isn't npm javascript?
<dorei>
yeap
<dorei>
javascript eventloop
blackmes1 has joined #ruby
eminencehc has quit [Ping timeout: 252 seconds]
SylarRuby has quit [Ping timeout: 260 seconds]
<jeffreylevesque>
or gem
staticat_works has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
<shevy>
a gem for javasript?
<jeffreylevesque>
any package
<shevy>
lol
<jeffreylevesque>
that can check links on webpages
<shevy>
ah
demophoon is now known as bgresham
<shevy>
well, there are some ways
blackmesa has quit [Ping timeout: 265 seconds]
<shevy>
in default ruby via open(), you get the page as a string, then can apply a regex; or you use nokogiri; or mechanize if you need to interact with a webpage in a scripted manner
Alayde has quit [Ping timeout: 256 seconds]
<dorei>
jeffreylevesque: bing for webmasters offer this "service", and i'm pretty sure other sites offer this "service"
AlexRussia has joined #ruby
<dorei>
shevy: or phantomjs via poltergeist and capybara if u want a "live" dom
treehug88 has joined #ruby
based_pdev has quit [Quit: Leaving]
<shevy>
I don't want anything :)
apt-get_ has quit [Remote host closed the connection]
<shevy>
The basics of rust... already 250 pages long as .pdf ... that's quite a lot.
eminencehc has joined #ruby
<shevy>
perhaps we should do this in ruby too, to build a .pdf that can be auto-expanded
skweek has joined #ruby
freerobby has quit [Quit: Leaving.]
drptbl has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
<shevy>
"I'm primarily a programming language researcher, so the fact that Haskell has up to now been used for just university types has been ideal"
<shevy>
:)
krisquigley has quit [Remote host closed the connection]
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
finisherr has quit [Quit: finisherr]
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
piotrj has quit [Remote host closed the connection]
rubytor has joined #ruby
psy_ has joined #ruby
PaulCape_ has joined #ruby
InternetFriend has joined #ruby
baegle has quit [Remote host closed the connection]
blackmesa has joined #ruby
PaulCapestany has quit [Ping timeout: 240 seconds]
rcvalle has joined #ruby
arup_r has joined #ruby
bgresham is now known as demophoon
<rubytor>
Hello, how can I make a datetime difference with miliseconds include??? I need time_finish - time_start..... This is the pattern 2015-09-04T09:20:41.522+02:00
neektza has quit [Quit: Connection closed for inactivity]
bricker has joined #ruby
rcvalle has quit [Client Quit]
rcvalle has joined #ruby
blackmes1 has quit [Ping timeout: 260 seconds]
cassioscabral has joined #ruby
jschmid has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
cih has quit [Ping timeout: 240 seconds]
Axy has quit [Ping timeout: 244 seconds]
skade has quit [Quit: Computer has gone to sleep.]
<shevy>
those gateways
herbst has quit [Remote host closed the connection]
<treehug88>
rubytor: I did this, I forget how. The trick was to use a conversion from DateTime to epoch that preserved the fractional seconds
aaeron has joined #ruby
michaeldeol has joined #ruby
diegobiavati has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
[Butch] has joined #ruby
freerobby has quit [Quit: Leaving.]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
favadi has joined #ruby
PaulCapestany has joined #ruby
freerobby has joined #ruby
DenSchub has quit [Read error: Connection reset by peer]
<treehug88>
i8igmac yeah I wonder what you're trying to accomplish
platzhirsch has joined #ruby
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Hounddog has quit [Remote host closed the connection]
DrCode has joined #ruby
jenrzzz has joined #ruby
<i8igmac>
if you have ever played with autoit...
krisquigley has quit [Ping timeout: 250 seconds]
<i8igmac>
I made a aimbot for a game, by scanning the screen for colors and clicking on those locations
<ruurd>
Oh f**k that's DE specific
<pipework>
i8igmac: If you're trying to automate a browser, there's stuff for that. If you're trying to drive a graphical desktop, then that's different.
benlieb has joined #ruby
eminencehc has joined #ruby
<treehug88>
I've never used autoit, but it looks like it'll do what you're asking about directly
gusTester has left #ruby [#ruby]
sbhatore has joined #ruby
Sammitch has joined #ruby
piotrj has joined #ruby
eminencehc has quit [Remote host closed the connection]
thejamespinto has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
gusTester has joined #ruby
maletor has quit [Client Quit]
benlieb has quit [Quit: benlieb]
joonty has quit [Quit: joonty]
cjbottaro has joined #ruby
bklane has joined #ruby
ramfjord has joined #ruby
Limix has joined #ruby
karapetyan has quit [Remote host closed the connection]
krisquigley has joined #ruby
devoldmx has joined #ruby
karapetyan has joined #ruby
shmilan has quit [Ping timeout: 246 seconds]
skweek has joined #ruby
diegobiavati has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheRinger has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
leafybas_ has joined #ruby
devoldmx has quit [Ping timeout: 265 seconds]
Porfa has quit [Quit: Porfa]
karapetyan has quit [Ping timeout: 246 seconds]
rodfersou|lunch is now known as rodfersou
cirenyc has joined #ruby
skweek has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
PaulCape_ has joined #ruby
drewvanstone has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
leafybas_ has quit [Ping timeout: 260 seconds]
skade has joined #ruby
PaulCapestany has quit [Ping timeout: 252 seconds]
hanmac has joined #ruby
ruurd has quit [Ping timeout: 272 seconds]
bl0ndie has quit [Ping timeout: 265 seconds]
ruurd has joined #ruby
catcher has joined #ruby
based_pdev has joined #ruby
p0wn3d has quit [Ping timeout: 264 seconds]
<catcher>
I'm aware this Q isn't quite appropriate for this channel, but hoping someone knows. In Rubymine, is it possible to use a console during a debug / breakpoint stop? Basically looking for a way to eval without popping out the eval window.
benlieb has joined #ruby
benlieb has quit [Client Quit]
Guest52475 has quit [Quit: Leaving]
michaeldeol has joined #ruby
petricore has joined #ruby
freerobby has quit [Quit: Leaving.]
lxsameer has joined #ruby
VeryBewitching has joined #ruby
freerobby has joined #ruby
Ilyes512_ has joined #ruby
PaulCapestany has joined #ruby
DoubleMalt has joined #ruby
Porfa has joined #ruby
PaulCape_ has quit [Ping timeout: 240 seconds]
Ilyes512 has quit [Ping timeout: 244 seconds]
<shevy>
not sure if it is appropriate or not as it being a proper question or not - the problem is, there are barely any users of rubymine here really
jamesaxl has joined #ruby
p0wn3d has joined #ruby
<adaedra>
catcher: aren't you dropped in a console during a stop for immediate evalutation by default?
<adaedra>
shevy: now, how are you sure of this fact?
mondayrain has quit [Ping timeout: 252 seconds]
<catcher>
adaedra: yes, until I hit a breakpoint. Console is unresponsive until I continue execution
<shevy>
adaedra what do you use
<adaedra>
catcher: let me check
<adaedra>
shevy: depends
<shevy>
vim :)
drewvanstone has quit [Ping timeout: 264 seconds]
<shevy>
jhass uses sublime
<shevy>
havenwood uses atom
gizmore has joined #ruby
symm- has joined #ruby
<adaedra>
that's 3 users out of 1000+
<shevy>
nono
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<shevy>
950 are inactive
<dfockler>
I use sublime at home and vim in the sheets
<adaedra>
catcher: I just tested, on a pause, the console tab let me evaluate things
c0m0 has quit [Ping timeout: 252 seconds]
leafybasil has joined #ruby
<catcher>
adaedra: weird! Wonder what's up with my case
<adaedra>
I have a 0> and can type things here
ware has joined #ruby
moos3 has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
<ware>
noob here - i cloned a git repo and they say to 'install ruby, then bundle install at the root of expo'
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<catcher>
adaedra:
<ware>
i cant seem to figure out how / what that is
<catcher>
adaedra: sorry - I have >>, but even puts has no response
apt-get has joined #ruby
shmilan has joined #ruby
<catcher>
adaedra: you're debugging and hitting a breakpoint?
<adaedra>
ware: once you cloned the repository, you have to install ruby, i.e. from your system's package manager, then install bundler (gem install bumder), then run `bundle install` from the repository root.
<adaedra>
catcher: yes
K1MOS has joined #ruby
<ware>
boom - ty!
<catcher>
adaedra: in the console tab, which is independent from the debugger tab but next to it?
spider-mario has joined #ruby
<adaedra>
In the debugger pane, I have two tabs, Debugger and Console. The Console tab let me inspect.
<adaedra>
Deviad: &:to_s is calling #to_proc on :to_s. :to_s is a symbol.
PaulCape_ has quit [Max SendQ exceeded]
<workmad3>
Deviad: as shevy said, that's the symbol `:to_s`. The & in the call then informs the ruby runtime to call `to_proc` on that argument and pass the result as the block argument to the `map` method
<catcher>
adaedra: breaks as in breakpoint, or breaks as in no console?
<ware>
adaedra: dist-upgrade cuz wheezy doesnt want to install this unicode ruby package lol
OmiKrOn has joined #ruby
benlieb has joined #ruby
<adaedra>
Deviad: if you do &to_s, you're referring to a local variable.
<adaedra>
ware: wat
<ware>
i will give you one internet when i get this working though
<workmad3>
adaedra: or the result of calling `to_s` on self ;)
<adaedra>
catcher: breaks as the console tab does nothing.
<adaedra>
workmad3: indeed.
Oka has joined #ruby
<catcher>
adaedra: thanks for the sanity check. If you happen on a way to make it work, please lmk!
<adaedra>
catcher: if you want to debug from a rails/irb console, look at pry and pry-byebug. Great tools.
PaulCapestany has joined #ruby
<adaedra>
(They are not fully compatible with RubyMine though, so better run them from the terminal panel.)
OmiKrOn has quit [Client Quit]
banjara has joined #ruby
ruurd has joined #ruby
ruurd_ has quit [Ping timeout: 240 seconds]
yardenbar has joined #ruby
allomov has quit [Remote host closed the connection]
Sammitch has left #ruby [#ruby]
firstdayonthejob has joined #ruby
baweaver has quit [Remote host closed the connection]
bluOxigen has joined #ruby
jackjackdripper has joined #ruby
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Anti-Pizza has quit [Quit: Quit]
symm- has quit [Ping timeout: 240 seconds]
K1MOS has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Max SendQ exceeded]
ksteck has joined #ruby
eminencehc has quit [Remote host closed the connection]
neanderslob has joined #ruby
eminencehc has joined #ruby
bb010g has joined #ruby
jackjackdripper has quit [Client Quit]
banjara has quit [Ping timeout: 246 seconds]
jackjackdripper has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
PaulCapestany has joined #ruby
eminencehc has quit [Remote host closed the connection]
UtkarshRay has quit [Ping timeout: 240 seconds]
eminencehc has joined #ruby
banjara has joined #ruby
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banjara1 has joined #ruby
mwlang has joined #ruby
ruby-lang329 has quit [Ping timeout: 246 seconds]
hydrozen has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
piotrj has joined #ruby
Nego_Fua has quit [Ping timeout: 256 seconds]
banjara has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
andyrs has joined #ruby
PaulCapestany has quit [Quit: .]
eminencehc has quit [Ping timeout: 244 seconds]
agentmeerkat has joined #ruby
PaulCapestany has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
<Deviad>
adaedra, thanks
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
snockerton has joined #ruby
skweek has joined #ruby
<shevy>
so adaedra is a RubyMine user. I am surprised
tsujp has joined #ruby
<adaedra>
I use different tools at different times
giuseppesolinas has joined #ruby
duoi has joined #ruby
giuseppesolinas_ has joined #ruby
n008f4g_ has joined #ruby
Pupeno has joined #ruby
mxrguspxrt has joined #ruby
duoi has quit [Remote host closed the connection]
arup_r has joined #ruby
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
Pupeno has quit [Ping timeout: 255 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Coldblackice has joined #ruby
K1MOS has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
based_pdev_ has joined #ruby
mikecmpbll has joined #ruby
cirenyc has quit [Quit: Leaving...]
EllisTAA has joined #ruby
EllisTAA has quit [Client Quit]
SimplySeth has joined #ruby
iateadonut has quit [Quit: Leaving.]
<SimplySeth>
is there an alternative to gsub()?
ghanima has joined #ruby
EllisTAA has joined #ruby
renanoronfle has quit [Remote host closed the connection]
<pipework>
SimplySeth: what would you want out of an alternative?
<SimplySeth>
it doesn't give an error but it doesn't strip out the 'https://' either
eminencehc has joined #ruby
EllisTAA has joined #ruby
finisherr has joined #ruby
benlieb has quit [Quit: benlieb]
<apeiros>
SimplySeth: it does. but you throw the result away.
PaulCapestany has quit [Ping timeout: 260 seconds]
<apeiros>
gsub returns a new string
<apeiros>
gsub! modifies the string
symm- has joined #ruby
<SimplySeth>
apeiros: ahhhhhhh
codecop has quit [Remote host closed the connection]
<ghanima>
was wondering if someone could point me in a direction... I have a website that is making use of this autocomplete function for my site https://github.com/seatgeek/soulmate the problem is that I am trying to measure from a browser standpoint how long it takes for the content to render and display.... was wondering if anyone is familiar of you to monitor the dom and any changes to it and how long it takes to render
ware has quit [Quit: yolo]
<apeiros>
ah, the inner loop is actually .map, which would work. but your outer is .each, which returns the receiver
centrx has joined #ruby
dramagods has joined #ruby
<SimplySeth>
apeiros: gsub! ... works! ... thanks
gustav_ has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<apeiros>
SimplySeth: alternatively replace the .each with .map
<SimplySeth>
apeiros: hmmm okay
<SimplySeth>
apeiros: yes ... that works as well ... thanks
finisherr has quit [Ping timeout: 240 seconds]
kirun has joined #ruby
Xeago has joined #ruby
yqt has quit [Ping timeout: 240 seconds]
bubbys has quit [Ping timeout: 240 seconds]
PaulCape_ has quit [Quit: .]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
martin_work has joined #ruby
PaulCapestany has joined #ruby
bubbys has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
finisherr has joined #ruby
andyrs has joined #ruby
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
yqt has joined #ruby
atomical has joined #ruby
andyrs has quit [Ping timeout: 240 seconds]
Flying_Squirrel has quit [Ping timeout: 268 seconds]
Xeago has quit [Ping timeout: 244 seconds]
popsikle has joined #ruby
popsikle has left #ruby [#ruby]
popsikle has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arooni has joined #ruby
blaxter has quit [Quit: foo]
yardenbar has quit [Ping timeout: 256 seconds]
DoubleMalt has quit [Ping timeout: 264 seconds]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j____ has quit [Ping timeout: 244 seconds]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
PaulCape_ has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
psy has quit [Ping timeout: 264 seconds]
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
barhum2013 has quit [Ping timeout: 264 seconds]
PaulCapestany has quit [Ping timeout: 255 seconds]
piotrj has quit [Remote host closed the connection]
Xeago has joined #ruby
blackmes1 has quit [Ping timeout: 260 seconds]
piotrj has joined #ruby
iooner has joined #ruby
but3k4 has joined #ruby
sbhatore has quit [Quit: sbhatore]
mcullum_ has quit [Quit: Page closed]
Xeago has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 256 seconds]
SimplySeth has quit []
InternetFriend has joined #ruby
Xeago has joined #ruby
gusTester1 has joined #ruby
gustav_ has quit [Remote host closed the connection]
gusTester has quit [Read error: Connection reset by peer]
wldcordeiro_ has quit [Ping timeout: 272 seconds]
noethics has quit [Quit: Leaving]
DoubleMalt has joined #ruby
yardenbar has joined #ruby
mondayrain has joined #ruby
PaulCapestany has joined #ruby
krisquigley has joined #ruby
baweaver has quit [Remote host closed the connection]
devoldmx has joined #ruby
karapetyan has joined #ruby
Coldblackice has quit [Read error: Connection reset by peer]
PaulCape_ has quit [Ping timeout: 260 seconds]
InternetFriend has quit [Client Quit]
piotrj has quit [Remote host closed the connection]
gustav_ has joined #ruby
drewvanstone has joined #ruby
krz has quit [Quit: WeeChat 1.2]
psy has joined #ruby
agentmeerkat has quit [Ping timeout: 244 seconds]
psy has quit [Max SendQ exceeded]
araujo has quit [Ping timeout: 252 seconds]
piotrj has joined #ruby
InternetFriend has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
psy has joined #ruby
ramfjord has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 272 seconds]
araujo has joined #ruby
mondayrain has quit [Ping timeout: 255 seconds]
dhollinger has quit [Ping timeout: 264 seconds]
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
firstdayonthejob has joined #ruby
jenrzzz has joined #ruby
barhum2013 has quit [Quit: barhum2013]
evanjs has quit [Remote host closed the connection]
barhum2013 has joined #ruby
failshell has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
psy has quit [Ping timeout: 246 seconds]
tsujp has quit [Quit: tsujp is snoozing]
karapetyan has joined #ruby
cschneid_ has joined #ruby
drewvanstone has quit [Ping timeout: 240 seconds]
beast has quit [Disconnected by services]
beast_ has joined #ruby
agentmeerkat has joined #ruby
PaulCape_ has joined #ruby
PaulCapestany has quit [Ping timeout: 246 seconds]
howdoicomputer has joined #ruby
DoubleMalt has quit [Ping timeout: 265 seconds]
mbff has joined #ruby
<mbff>
Hello! I am using the mina deploy tool that creates a bundle install in shared/bundle. How can I use these gems when I call bundle exec?
maletor has joined #ruby
piotrj has quit [Remote host closed the connection]
Sigma00 has joined #ruby
dhollinger has joined #ruby
barhum2013 has quit [Quit: barhum2013]
baweaver has joined #ruby
<Pro|>
require 'whatyouwanttouse'
<havenn>
mbff: If I recall correctly `bundle install --deployment` will set that as the expected directory and is a "remembered" command so once set it'll remember it in the bundler config.
nertzy has joined #ruby
`based_pdev` has joined #ruby
workmad3 has joined #ruby
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
mwlang has quit [Quit: mwlang]
eminencehc has quit [Remote host closed the connection]
<mbff>
havenn, hmmm... not the case here? deploy@king:/sites/fargobikesharebackend/current$ bundle exec mina unicorn:restart
loc22 has joined #ruby
<mbff>
bundler: command not found: mina Install missing gem executables with `bundle install`
gustav_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 265 seconds]
pawnbox has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
dmolina1 has joined #ruby
justin2 has quit [Ping timeout: 260 seconds]
petricore has joined #ruby
mbff has quit [Quit: Leaving]
dfockler has quit [Remote host closed the connection]
PaulCape_ has quit [Ping timeout: 240 seconds]
axiomatic_345 has quit [Ping timeout: 246 seconds]
jt__ has joined #ruby
Giordano has joined #ruby
dfockler has joined #ruby
Timba-as has joined #ruby
hyperbolist has joined #ruby
dopamean_ has quit [Ping timeout: 272 seconds]
<Giordano>
hey guys, can I set a default value for a property without using a constructor/initialize method? Something like Java: class A { int value = 1; }
baweaver has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Xiti has quit [Quit: Xiti]
<shevy>
Giordano hey old webchat-friend
opensource_ninja has joined #ruby
AbdulRehman has joined #ruby
finisherr has joined #ruby
AbdulRehman has quit [Client Quit]
<Giordano>
sevy: Hello friend
sanguisdex has joined #ruby
krisquigley has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
s2013 has joined #ruby
hyperbolist has left #ruby ["WeeChat 1.0.1"]
Soda has quit [Remote host closed the connection]
baweaver has joined #ruby
loc22 has quit [Quit: Be back later ...]
Meow-J has quit [Quit: Connection closed for inactivity]
howdoicomputer has quit [Ping timeout: 256 seconds]
shmoon_ has quit [Quit: Connection closed for inactivity]
PaulCapestany has quit [Ping timeout: 264 seconds]
shmilan has quit [Ping timeout: 240 seconds]
eminencehc has joined #ruby
arup_r has quit [Quit: Leaving]
maletor has joined #ruby
psy has quit [Ping timeout: 250 seconds]
shmilan has joined #ruby
martin_work has quit [Ping timeout: 255 seconds]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
loc22 has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
wldcordeiro_ has joined #ruby
finisherr has quit [Quit: finisherr]
moeabdol has joined #ruby
i8igmac has quit [Quit: Bye]
but3k4 has joined #ruby
gregf has quit [Read error: Connection reset by peer]
leo19 has joined #ruby
i8igmac has joined #ruby
howdoicomputer has quit [Ping timeout: 260 seconds]
shakes has joined #ruby
PaulCapestany has joined #ruby
martin_work has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
hydrozen has joined #ruby
PaulCape_ has quit [Ping timeout: 264 seconds]
haxrbyte has joined #ruby
otacon- has joined #ruby
gregf has joined #ruby
loincloth has joined #ruby
<loincloth>
heyo... anyone using Timecop?
iamninja_ has quit [Read error: Connection reset by peer]
<BrazenBraden>
i am trying to get a rails container app up and running and am stuck behind the error "/app/vendor/bundle/ruby/2.2.0/gems/pg-0.18.3/lib/pg.rb:4:in `require': libruby.so.2.2: cannot open shared object file: No such file or directory - /app/vendor/bundle/ruby/2.2.0/gems/pg-0.18.3/lib/pg_ext.so (LoadError)" which i believe has something to do with ruby missing some libraries or something. any clues?
howdoicomputer has joined #ruby
tomaz_b has quit [Ping timeout: 256 seconds]
haxrbyte has quit [Client Quit]
iamninja_ has joined #ruby
renderful has joined #ruby
gustav_ has joined #ruby
<loincloth>
@BrazenBraden looks like search results for "pg_ext.so (LoadError)" are a decent start
<rubybeginner>
Anyone have spare minute for private chat?
dramagods has quit [Remote host closed the connection]
staticat_works has quit [Read error: Connection reset by peer]
<BrazenBraden>
loincloth, if i remove the pg gem, it then fails on another gem. always libruby.so cant read file
<loincloth>
re: Timecop, i am trying to test some code which polls another resource using loop { ...; sleep interval; } and it seems like sleep() behaves like normal even if, say, time is frozen
p0wn3d has quit [Ping timeout: 246 seconds]
<loincloth>
so at the moment i'm not sure how best to proceed testing such code
<loincloth>
i could move the "..." behavior there into a method and test that and then just assume loop and sleep work as expected
pandaant has quit [Remote host closed the connection]
moeabdol has quit [Quit: WeeChat 1.3]
<loincloth>
but i got comfy with the fake clock via sinon.js in a JavaScript context, which seems to adjust how sleep() behaves intuitively, so i'm hoping to be able to rock something like that
<loincloth>
@dfockler yeah i read over that... possibly i don't get it, but i'm not sure it ultimately helps me
<loincloth>
as i said, if i freeze time with Timecop and then call, say, sleep(30) it still hangs for 30 secs
<loincloth>
what i would like is that it hangs indefinitely because time is frozen and proceeds only when i step ahead in time with an explicit Timecop call
<dfockler>
it's still going to sleep shouldn't change based on the time
<loincloth>
well, given the assumptions in play, i don't agree
<loincloth>
sleep is based on time progressing
I3igmac has joined #ruby
imperator has left #ruby ["Leaving"]
<loincloth>
if time is frozen, it seems counter intuitive to sleep for some duration of time then
<dfockler>
in the example Timecop.freeze keeps the same time regardless of how long you sleep
anisha has quit [Quit: Leaving]
davidhq has quit [Read error: No route to host]
saddad has quit [Quit: WeeChat 1.4-dev]
moeabdol has joined #ruby
davidhq has joined #ruby
<loincloth>
i feel i'm not getting at some important detail here
_djbkd has quit [Remote host closed the connection]
<loincloth>
not explaining something because as i said i read that and i see what's happening
<dfockler>
It's probably me not understanding exactly what you are looking for
ownfocus has joined #ruby
<loincloth>
yeah it's ok
zendrix has joined #ruby
<dfockler>
I'm guessing you don't want the sleep call to actually happen?
<dfockler>
but just be skipped over?
wldcordeiro_ has quit [Ping timeout: 256 seconds]
i8igmac has quit [Ping timeout: 240 seconds]
<loincloth>
not quite... i can do that pretty easily using a rspec stub or such
<loincloth>
i think i want it to hang there indefinitely
I3igmac has quit [Client Quit]
<dfockler>
oh ok
<loincloth>
like it can't do anything because time is frozen
i8igmac has joined #ruby
<loincloth>
so say i have sleep(30.seconds) and the test hits that... and then i say Timecop.travel 20.seconds... it should still be hung
<dfockler>
That's not quite the purpose of Timecop
<loincloth>
but the second we travel past 30 seconds, things resume
<loincloth>
yeah, i'm getting that :D
<loincloth>
this is behavior i am trying to translate from other experiences in JavaScript land which might be part of the issue
<loincloth>
something with how clocks and sleep work there compared to Ruby perhaps
_djbkd has joined #ruby
PaulCape_ has joined #ruby
Pathfinder has joined #ruby
nettoweb has joined #ruby
<loincloth>
but i was able to do what i want here using sinon.js and its fake timer
<loincloth>
yeah... this has been a helpful convo for shedding some light on my assumptions and drawing my attention to some of these important details
<loincloth>
so thx :D
<loincloth>
i think for now i might move the behavior for the loop to a method and just test that
<dfockler>
sure :D I'm not sure I even understand how JS does timeouts
i8igmac has joined #ruby
bklane has quit [Remote host closed the connection]
<loincloth>
yeah i don't know the nitty gritty either
baweaver has joined #ruby
drptbl_ has joined #ruby
drptbl has quit [Ping timeout: 256 seconds]
michael_mbp has joined #ruby
_djbkd has quit [Remote host closed the connection]
ht__ has quit [Quit: Konversation terminated!]
I3igmac has quit [Ping timeout: 268 seconds]
axiomatic_345 has quit [Ping timeout: 240 seconds]
AbdulRehman has joined #ruby
_djbkd has joined #ruby
cjbottaro has quit [Ping timeout: 265 seconds]
dfockler has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
AbdulRehman has quit [Client Quit]
stamina has quit [Quit: WeeChat 1.3]
fullofcaffeine has quit [Read error: Connection reset by peer]
dhollinger has quit [Quit: Leaving]
fullofcaffeine has joined #ruby
<shevy>
nobody here does!
benlieb has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
EllisTAA has quit [Quit: EllisTAA]
skullcrasher_ has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
skullcrasher_ has quit [Remote host closed the connection]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PaulCapestany has joined #ruby
vF3hNGxc47h8 has joined #ruby
EllisTAA has joined #ruby
blackmes1 has quit [Ping timeout: 265 seconds]
duoi has joined #ruby
evanjs has joined #ruby
skullcrasher_ has joined #ruby
dagda1 has joined #ruby
<cschneid_>
If I have an increasing array: [1,4,7,12], and an input, 6, how can I find the 4 element? I can certainly inject and track previous and current value, and break w/ previous when I find a current that's too big. But is there a cleaner way?
jenrzzz has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
skullcrasher has quit [Quit: quit]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
orbitalo has quit [Remote host closed the connection]
PaulCape_ has quit [Ping timeout: 272 seconds]
Pathfinder has quit [Remote host closed the connection]
cassioscabral has quit [Quit: cassioscabral]
bklane has joined #ruby
skullcrasher has joined #ruby
bklane has quit [Remote host closed the connection]
parduse has quit []
skullcrasher_ has quit [Client Quit]
bmurt has quit []
<apeiros>
cschneid_: how are the input and the 4 (fourth? or the value 4, index 1?) element related?
axiomatic_345 has joined #ruby
<cschneid_>
apeiros: value 4 sorry. "Find me the index of the largest value that's smaller than my input" is what I want.
bklane has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
syath has quit [Quit: WeeChat 1.2]
iceyec has quit [Quit: Leaving]
TomyLobo has joined #ruby
apt-get has quit [Remote host closed the connection]
speakingcode has quit [Ping timeout: 264 seconds]
dravine has quit [Ping timeout: 255 seconds]
n_blownapart has joined #ruby
devoldmx has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
Eiam_ has joined #ruby
blackmes1 has joined #ruby
speakingcode has joined #ruby
dikaio has joined #ruby
scripore has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
last_staff has quit [Quit: last_staff]
jpfuentes2 has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ldnunes has quit [Quit: Leaving]
symbol_ has quit [Ping timeout: 264 seconds]
PaulCapestany has joined #ruby
Azure has quit [Ping timeout: 246 seconds]
mbff has joined #ruby
bklane has joined #ruby
gustav_ has quit []
dravine has joined #ruby
jpfuente_ has quit [Ping timeout: 264 seconds]
Azure has joined #ruby
<mbff>
Hello! I am using rbenv, mina, and bundler as apart of my deployments. I cannot get bundler exec to see vendor/bundle in my-app/current/vendor/bundle. Any ideas?
PaulCape_ has quit [Ping timeout: 250 seconds]
yardenbar has quit [Ping timeout: 246 seconds]
Eiam_ has quit [Ping timeout: 265 seconds]
jeffreylevesque has quit [Ping timeout: 268 seconds]
tenderlove has joined #ruby
tenderlove has quit [Remote host closed the connection]
<havenn>
mbff: Earlier in the error you showed it seemed like the Bundler gem wasn't installed rather than that it couldn't find vendor/bundle.
chipotle has joined #ruby
<mbff>
havenn, yes I have gone through alot of the mina code and defaults over the last 2 hours.
eminencehc has quit [Remote host closed the connection]
<havenn>
mbff: What's the latest error?
mary5030 has quit [Remote host closed the connection]
<mbff>
same error. Let me check the bundler path again
mary5030 has joined #ruby
<havenn>
mbff: Usually with rbenv the answer is something about shims and rehash. :P
axiomatic_345 has quit [Ping timeout: 246 seconds]
blackmes1 has quit [Quit: WeeChat 1.3]
popsikle has quit [Remote host closed the connection]
tenderlo_ has joined #ruby
drptbl_ has quit [Quit: My MAC has gone to sleep. zZz..]
tenderlove has quit [Ping timeout: 264 seconds]
<mbff>
Part of the confusion probably revolves the fact that bundler was install as a normal gem via gem install bundler while the app gems are installed via bundler --deployment
nwhirschfeld has joined #ruby
<mbff>
havenn, sounds about right.
system64 has quit [Quit: Connection closed for inactivity]
loc22 has quit [Ping timeout: 256 seconds]
PaulCape_ has joined #ruby
workmad3 has joined #ruby
mrsolow has quit [Read error: Connection reset by peer]
dfockler has joined #ruby
<mbff>
also just running "/home/$USER/.rbenv/shims/bundle" via ssh works/finds the bundle binary. So bundler exists
prestorium has quit [Quit: Leaving]
PaulCapestany has quit [Ping timeout: 264 seconds]
howdoi has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 250 seconds]
Voker57 has quit [Remote host closed the connection]
Ilyes512 has joined #ruby
<havenn>
mbff: Here's an example of configuring Mina with rbenv if you haven't looked at this one yet:
n_blownapart has quit [Remote host closed the connection]
<havenn>
I don't use a Ruby version switcher in production since I just use one Ruby in production.
martin_work has quit [Ping timeout: 252 seconds]
tenderlo_ has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
<mbff>
havenn, hmmm.... i should seriously consider that option
justin2 has joined #ruby
<havenn>
mbff: If it's not Rails you could probably even ditch Bundler and resolve dependencies and create your Gemfile.lock by setting `export RUBYGEMS_GEMDEPS="$GEMFILE_LOCATION_HERE"` and running: gem install -g "$GEMFILE_LOCATION_HERE"
eminencehc has joined #ruby
tenderlove has joined #ruby
jpfuentes2 has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
shmilan has quit [Ping timeout: 240 seconds]
eminencehc has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
<mbff>
havenn, thanks for the idea. That might work as a last resort but I am trying to stay away from "hacks" especially for deployment. I trust the dev of mina to know the best way to deploy. haha
baweaver has joined #ruby
Limix has joined #ruby
InternetFriend has joined #ruby
tenderlove has joined #ruby
zendrix has quit []
eminencehc has joined #ruby
PaulCapestany has joined #ruby
hal_9000_ has quit [Quit: hal_9000_]
baroquebobcat has joined #ruby
michael_mbp has quit [Excess Flood]
michaeldeol has joined #ruby
PaulCape_ has quit [Ping timeout: 264 seconds]
Limix has quit [Quit: Limix]
jobewan has joined #ruby
michael_mbp has joined #ruby
Flying_Squirrel has quit [Ping timeout: 264 seconds]
PaulCapestany has quit [Max SendQ exceeded]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
arooni has quit [Quit: Leaving]
arooni has joined #ruby
slawrence00 has joined #ruby
eminencehc has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
havenwood has joined #ruby
buck_ has joined #ruby
<buck_>
Hi. I know what a mutex is theoretically but I don't know how to use it in ruby code. Can someone explain how a mutex object works?
scripore has quit [Quit: This computer has gone to sleep]
mbff has quit [Ping timeout: 246 seconds]
tenderlove has joined #ruby
bklane has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
bklane has joined #ruby
tvw has quit []
tvw has joined #ruby
eminencehc has joined #ruby
asxbr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
subshad has quit [Remote host closed the connection]
gmci has joined #ruby
gmci is now known as Guest42003
evanjs has quit [Remote host closed the connection]
<havenwood>
shevy: Left right before I posted it. Me thinking of posting it scared em off.
bklane has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 255 seconds]
bklane has joined #ruby
<havenwood>
shevy: I didn't even get to wax poetic on the differences between Mutex and Monitor.
<havenwood>
shevy: Or go into MonitorMixin or at least ConditionVariable.
scripore has joined #ruby
i8igmac has quit [Quit: Bye]
glowcoil has quit [Quit: Connection closed for inactivity]
kidoz has quit [Quit: Ухожу я от вас]
i8igmac has joined #ruby
atomical has joined #ruby
Azure has quit [Quit: Oops.]
aerozepplin has joined #ruby
xaxisx has joined #ruby
hfp_work has quit [Ping timeout: 252 seconds]
<pipework>
havenwood: I hear waxing can lessen friction though. :p
bkxd has joined #ruby
NeverDie has joined #ruby
mondayrain has joined #ruby
tenderlove has quit [Ping timeout: 240 seconds]
dfockler has quit [Remote host closed the connection]
tenderlove has joined #ruby
atomical_ has joined #ruby
dopamean_ has joined #ruby
victortyau has quit [Quit: Leaving]
dfockler has joined #ruby
Ox0dea has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical has quit [Ping timeout: 255 seconds]
I3igmac has joined #ruby
umgrosscol has quit [Ping timeout: 240 seconds]
i8igmac has quit [Ping timeout: 240 seconds]
cek has joined #ruby
Porfa has quit [Quit: Porfa]
dramagods has joined #ruby
<cek>
i'm trying to match a string with regexp , but it doesn't work.
PaulCape_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
scripore has quit [Quit: Leaving]
jenrzzz_ has joined #ruby
<cek>
User-Agent: Mac OS X/10.1.1 (123123); ExchangeWebServices/1.0.1 (158); Mail/1.2 with %r{Mac OS X/([\d\.]+)\b.+(?:Mail/([\d\.]+)\b)?} . It doesn't catch second match
hfp_work has joined #ruby
<cek>
essentially, want to match on first match and if second doesn't exist, that's okay. But if exists, want to match it too.
aerozepplin has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Ping timeout: 264 seconds]
aerozepplin has joined #ruby
I3igmac has quit [Ping timeout: 240 seconds]
volongato has joined #ruby
Jackneill has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
Jardayn has quit [Quit: Leaving]
<Ox0dea>
cschneid_: I trust you ended up discovering #bsearch_index?
hfp__work has joined #ruby
_jimc has joined #ruby
<cschneid_>
Ox0dea: no, just implemented it w/ a while loop....
<Ox0dea>
cschneid_: Gross.
<cschneid_>
also backing off the refactor that required this in the first place
bkxd has quit [Ping timeout: 256 seconds]
sepp2k has joined #ruby
<cschneid_>
needs to be done, but not right now
dramagods has quit [Ping timeout: 264 seconds]
<shevy>
havenwood oh I see. I don't see leavers and joiners and have no time stamps :)
<Ox0dea>
Huh, #bsearch_index is 2.3, anyway.
devoldmx has joined #ruby
<Ox0dea>
cschneid_: Well, here's my take on #insert_keep_sorted for when you need it: https://eval.in/442520
<cschneid_>
Ox0dea: I have a lookup table w/ breakpoints which was my use
<cschneid_>
but cool :)
hfp_work has quit [Ping timeout: 272 seconds]
<pipework>
Wow, never seen anyone actually use the return value of a method definition, let alone like that.
dravine has quit [Quit: salut!]
tvon has joined #ruby
blackmesa has joined #ruby
inteq has quit [Remote host closed the connection]
<cek>
'first second'.match /(first).+(second)?$/ -- second not captured
hfp__work has quit [Ping timeout: 260 seconds]
<cek>
'first junk second junk'.match /(first).+(second)?/ not working :/
<shevy>
Ox0dea where have you been
<shevy>
[k- was missing you
whippythellama has quit [Quit: WeeChat 1.3]
devoldmx has quit [Ping timeout: 246 seconds]
PaulCapestany has joined #ruby
ericjphillips has joined #ruby
tenderlove has quit [Read error: Connection reset by peer]
hfp_work has joined #ruby
failshell has quit [Remote host closed the connection]
chipotle has quit [Read error: Connection reset by peer]
PaulCape_ has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
snockerton has quit [Quit: Leaving.]
jeffreylevesque has joined #ruby
tenderlove has joined #ruby
parduse has joined #ruby
hfp_work has quit [Ping timeout: 244 seconds]
bklane has quit [Remote host closed the connection]
<ruboto>
Ox0dea # => /tmp/execpad-bded2022df09/source-bded2022df09:2: syntax error, unexpected modifier_rescue, expecting ...check link for more (https://eval.in/442563)