<sungard>
I'm trying to use a start and an end date and loop through them, but only once for each month, I found how to do by day, but ideally I want a method that will be start_date..end_date and then dynamically run once per month
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
gizmore|2 has joined #ruby
Yxhuvud has joined #ruby
RougeR has quit [Ping timeout: 256 seconds]
opekktar_ has quit [Remote host closed the connection]
marxarelli is now known as marxarelli|afk
orbyt_ has joined #ruby
gizmore has quit [Ping timeout: 260 seconds]
Psybur has quit [Remote host closed the connection]
Psybur has joined #ruby
arescorpio has joined #ruby
sameerynho has joined #ruby
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
sluggo has quit [Quit: Page closed]
Yxhuvud has joined #ruby
memo1 has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
matled has quit [Read error: Connection reset by peer]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
<tbuehlmann>
I'm not really using currying and I haven't seen it in code at all, so that's why I'd have to read up on the topic again
<tbuehlmann>
and I don't have a problem with inline anonymous functions, so… ¯\_(ツ)_/¯
<dminuoso>
tbuehlmann: Idea is: all functions take only one argument. A function taking 2 arguments is considered a function that takes one argument, and returns another function that returns another argument.
<dminuoso>
(With some sugary so that you can still apply multiple arguments in one go through those layers)
<dminuoso>
So you can partially apply a function by passing less-than-required arguments
<tbuehlmann>
I know currying for procs/lambdas, but I'm not used to using it
cschneid_ has quit [Ping timeout: 265 seconds]
<dminuoso>
tbuehlmann: map(&toBase(16)) lets you express what code means, rather than what it does. With inline functions you constantly shift the focus from "code from an abstract point of view" to "details and semantics"
tomphp_ has joined #ruby
<dminuoso>
items.map(&calculatePrice) is far more telling than items.map { |i| ... }. It's also easier to test :P
tomphp has quit [Ping timeout: 246 seconds]
zapata_ has joined #ruby
<tbuehlmann>
items.map(&:calculate_price)? :D
zapata has quit [Ping timeout: 256 seconds]
gigetoo has quit [Ping timeout: 256 seconds]
<dminuoso>
tbuehlmann: Heh. I have actually found arguments for CamelCase :)
workmad3 has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
<tbuehlmann>
oh I didn't want to go down that path, but well :D
<dminuoso>
Heh.
<dminuoso>
Just wanted to see if I could trigger you.
<the_drow>
I don't know why I can't use what I added in that branch
<the_drow>
I'm suspecting the original version was installed as well
jottr has joined #ruby
<apeiros>
specinfra (~> 2.72) does not match 2.73.3 I'd say (radar correct me if I'm wrong)
<Radar>
you're wrong.
<apeiros>
=(
<Radar>
~> 2.72 will match any version greater than 2.72, but less than 3.x
<Radar>
at least, that's what I think
<Radar>
It is getting late here tho
Stanimir has joined #ruby
<apeiros>
I'm always unsure with spermy version :-/
rabajaj has quit [Ping timeout: 265 seconds]
jottr has quit [Ping timeout: 240 seconds]
<apeiros>
yeah, I'm indeed wrong. so that's not it.
ldnunes has joined #ruby
<the_drow>
so what gives?
<tbuehlmann>
~> 2.72 will match any version greater (_or equal_) than […]
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
<apeiros>
don't know, sorry the_drow.
karapetyan has joined #ruby
rabajaj has joined #ruby
noobineer has quit [Ping timeout: 276 seconds]
Beams has quit [Quit: .]
<Stanimir>
Hello, I'm a new Ruby programmer, coming from PHP. However, I have stumbled some strange errors, while installing my demo application on another PC. For example, when I try to save an object o a database and try to retirve it Ruby throws an exception : undefined method `each' for nil:NilClass
<ruby[bot]>
Stanimir: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
jeffreylevesque has quit [Ping timeout: 268 seconds]
synthroid has joined #ruby
Beams has joined #ruby
<Stanimir>
I'm on ruby 2.4.1 and ROR 5.1.6
<tbuehlmann>
Stanimir: can we move this to #RubyOnRails?
<Stanimir>
Sure.
Axy has quit [Ping timeout: 264 seconds]
duderonomy has joined #ruby
Beams has quit [Quit: .]
despai has quit [Quit: ...]
jottr has joined #ruby
rwb has quit [Ping timeout: 276 seconds]
hort has joined #ruby
hort has quit [Client Quit]
Asher has quit [Ping timeout: 240 seconds]
Beams has joined #ruby
Psybur has joined #ruby
inerthia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Ping timeout: 260 seconds]
gigetoo has quit [Ping timeout: 264 seconds]
gizmore|2 is now known as gizmore
gigetoo has joined #ruby
amar has joined #ruby
amar has quit [Ping timeout: 260 seconds]
cschneid_ has joined #ruby
bmurt has joined #ruby
Asher has joined #ruby
minimalism has quit [Quit: minimalism]
cschneid_ has quit [Ping timeout: 260 seconds]
Janky has joined #ruby
tcopeland has joined #ruby
jeffreylevesque has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
konsolebox has joined #ruby
n0m4d1c has joined #ruby
amar has joined #ruby
s2013 has joined #ruby
<the_drow>
apeiros, It was installed. I just forgot to add something somewhere else so that my changes would take effect
<the_drow>
I have a problem with shell escaping. Serverspec is trying to execute the following command: /usr/bin/firejail --quiet --noprofile --net=lxcbr0 --ip=10.0.3.3 -c /bin/nc\ -w\ 5\ -z\ 10.0.3.175\ 22 using spwan
<the_drow>
When I paste this to my shell I get /bin/bash: /bin/nc -w 5 -z 10.0.3.175 22: No such file or directory
amar has quit [Ping timeout: 264 seconds]
<the_drow>
Interestingly sh -c '/usr/bin/firejail --quiet --noprofile --net=lxcbr0 --ip=10.0.3.3 -c /bin/nc\ -w\ 5\ -z\ 10.0.3.175\ 22' works
dimik--- has joined #ruby
shinnya has joined #ruby
jcalla has joined #ruby
<the_drow>
but it doesn't work with bash -c '' :(
andikr has quit [Remote host closed the connection]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
doesn't sound like a ruby problem then. probably different envs?
<the_drow>
maybe
<the_drow>
I thought it was at first
mjolnird has joined #ruby
dionysus69 has joined #ruby
kapil___ has joined #ruby
<kapil___>
i have this function : `def columns_processor(table= @table, yamlSection = @yamlConfig[@config], columns_hide = /^(user_id|updated_at)$/, resultStore)`
<kapil___>
i want to call it like this: `columns_processor(columns_hide, [])`
<kapil___>
how can i do it?
<apeiros>
you can't.
SaHar_ has quit [Quit: Page closed]
<gizmore>
kapil___: write a wrapper method
<apeiros>
those are all positional arguments. and as the name "positional" suggests, they have to be used with the right position.
n0m4d1c has quit [Remote host closed the connection]
pastorinni has joined #ruby
cschneid_ has joined #ruby
netherwolfe has joined #ruby
yeticry has quit [Ping timeout: 260 seconds]
synthroid has quit [Remote host closed the connection]
yeticry has joined #ruby
hippo_in_helicop has quit [Quit: quit pro quo]
cschneid_ has quit [Ping timeout: 256 seconds]
<the_drow>
How do I create an object that can be cased to a time interval
<the_drow>
So that I can do sleep Foo.new()
duderonomy has joined #ruby
samort7 has joined #ruby
grilix_ has joined #ruby
<apeiros>
the_drow: sleep wants an Integer or FLoat
<the_drow>
so to_i
<apeiros>
so you'll have to do something like `sleep Foo.new.to_i` or `sleep Foo.new.to_f`
* apeiros
afk now
dimik--- has joined #ruby
cadillac_ has quit [Ping timeout: 264 seconds]
Asher has joined #ruby
lelliott has quit [Remote host closed the connection]
cadillac_ has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<phaul>
although one can argue that Foo.new.sleep(sometime) is less of a code smell. I mean it's pretty unlikely that Foo .to_i make sense out of the sleep context. But Im speculating of course
<the_drow>
phaul, I'm trying to quack like a duck here
<phaul>
in that it makes sense. It's just different aspect, having an intlike thing internally and calling sleep with it internally. I thought we were talking about external interface to the class..
mtkd has quit [Read error: Connection reset by peer]
Asher has joined #ruby
mtkd has joined #ruby
rahul_bajaj has joined #ruby
Asher has quit [Ping timeout: 255 seconds]
<elomatreb>
the_drow: If you're in Rails, ActiveSupport has a Duration type that can be .to_i'd into the number of seconds, IIRC
<the_drow>
elomatreb, Nope. Serverspec...
<the_drow>
but I found another way
sanscoeur has quit [Remote host closed the connection]
rabajaj has quit [Ping timeout: 276 seconds]
synthroid has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
rahul_bajaj has quit [Remote host closed the connection]
rabajaj has joined #ruby
Burgestrand has joined #ruby
cadillac_ has joined #ruby
cschneid_ has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Asher has joined #ruby
amar has joined #ruby
rabajaj has quit [Ping timeout: 260 seconds]
drale2k_ has joined #ruby
jottr has joined #ruby
cadillac_ has quit [Ping timeout: 276 seconds]
aupadhye has quit [Ping timeout: 268 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
cadillac_ has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
erlend has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 240 seconds]
erlend has joined #ruby
ta_ has joined #ruby
apeiros has quit [Ping timeout: 268 seconds]
NL3limin4t0r_afk has joined #ruby
apeiros has joined #ruby
gigetoo has quit [Ping timeout: 245 seconds]
sagax has joined #ruby
sepp2k has joined #ruby
gigetoo has joined #ruby
goatish has quit [Quit: Hibernating]
hlmjr has quit [Excess Flood]
hlmjr has joined #ruby
ellcs has quit [Remote host closed the connection]
lazyatom has quit [Quit: Connection closed for inactivity]
kapil___ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
nichol has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
schneider has quit [Ping timeout: 256 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 265 seconds]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
jcarl43 has joined #ruby
[Butch] has joined #ruby
cagomez has joined #ruby
cadillac_ has joined #ruby
cam27 has joined #ruby
ta_ has joined #ruby
amar has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 240 seconds]
qba73 has quit [Ping timeout: 265 seconds]
the_drow has quit [Ping timeout: 276 seconds]
amar has joined #ruby
noobineer has joined #ruby
John_Ivan has quit [Ping timeout: 260 seconds]
amar has quit [Read error: No route to host]
amar_ has joined #ruby
KeyJoo has joined #ruby
n0m4d1c has joined #ruby
amar_ has quit [Ping timeout: 260 seconds]
govg has quit [Quit: Lost terminal]
marius has quit [Quit: baj]
alfiemax has joined #ruby
marius has joined #ruby
zautomata2 has quit [Quit: WeeChat 1.9.1]
nichol has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
John_Ivan has joined #ruby
marius has quit [Quit: Ping timeout (120 seconds)]
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
marius has joined #ruby
n008f4g_ has joined #ruby
nichol has quit [Ping timeout: 256 seconds]
tolerablyjake has joined #ruby
karapetyan has quit [Remote host closed the connection]
zapata has joined #ruby
orbyt_ has joined #ruby
AJA4350 has quit [Quit: AJA4350]
zapata_ has quit [Ping timeout: 256 seconds]
mikecmpbll has quit [Ping timeout: 240 seconds]
clemens3 has quit [Ping timeout: 240 seconds]
mroutis has joined #ruby
jamesaxl has joined #ruby
mroutis has quit [Remote host closed the connection]
mroutis has joined #ruby
marius has quit [Quit: Ping timeout (120 seconds)]
marius has joined #ruby
eckhardt has joined #ruby
karapetyan has joined #ruby
Psybur_ has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
ta_ has joined #ruby
inerthia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sanscoeur has joined #ruby
hlmjr has quit [Quit: Konversation terminated!]
ledestin has joined #ruby
Psybur has quit [Ping timeout: 256 seconds]
al2o3-cr has quit [Ping timeout: 240 seconds]
openstruct has joined #ruby
openstruct has quit [Client Quit]
nichol has joined #ruby
Beams has quit [Quit: .]
armyriad has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
jottr has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
suukim has joined #ruby
rabajaj has joined #ruby
orbyt_ has joined #ruby
jottr has quit [Quit: WeeChat 2.0.1]
sent-hil has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mroutis has quit [Read error: Connection reset by peer]
mroutis_ has joined #ruby
icarus has quit [Ping timeout: 268 seconds]
amar has joined #ruby
* baweaver
wanders in
icarus has joined #ruby
chouhoulis has joined #ruby
harrycs has joined #ruby
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
amar has quit [Ping timeout: 265 seconds]
chouhoul_ has quit [Ping timeout: 264 seconds]
marius has quit [Quit: Ping timeout (120 seconds)]
<miah>
moin =)
[Butch] has quit [Read error: Connection reset by peer]
[Butch] has joined #ruby
bmurt has joined #ruby
mtkd has quit []
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
marius has joined #ruby
vutral|kali has quit [Ping timeout: 255 seconds]
bmurt has quit [Remote host closed the connection]
pilne has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
vutral|kali has joined #ruby
guille-moe has quit [Ping timeout: 256 seconds]
bmurt has joined #ruby
mtkd has joined #ruby
memo1 has quit [Ping timeout: 256 seconds]
claudiuinberlin has joined #ruby
vutral|kali has quit [Excess Flood]
erlend has quit [Ping timeout: 256 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
raynold has joined #ruby
vutral|kali has quit [Client Quit]
erlend has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
soahccc has quit [Quit: Cya]
Mia has quit [Ping timeout: 260 seconds]
d5sx43 has joined #ruby
d5sx43 has quit [Client Quit]
SuperL4g has joined #ruby
venmx has quit [Ping timeout: 276 seconds]
harry_ has joined #ruby
soahccc has joined #ruby
harrycs has quit [Ping timeout: 260 seconds]
chouhoul_ has joined #ruby
memo1 has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 276 seconds]
dinfuehr has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
gigetoo has joined #ruby
dinfuehr has joined #ruby
mjolnird has quit [Remote host closed the connection]
despai has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
memo1 has quit [Ping timeout: 276 seconds]
karapetyan has joined #ruby
orbyt_ has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
psychicist__ has joined #ruby
nichol has quit [Ping timeout: 276 seconds]
nichol has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has quit [Ping timeout: 240 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
n0m4d1c has joined #ruby
sauvin has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
char_var[buffer] has joined #ruby
memo1 has joined #ruby
shinnya has joined #ruby
phaul has quit [Ping timeout: 256 seconds]
memo1 has quit [Ping timeout: 264 seconds]
Burgestrand has quit [Quit: Closing time!]
memo1 has joined #ruby
cr3 has joined #ruby
<cr3>
if anyone happens to be running rubymine, how can I see what commands the IDE is running when I try to "run" something. In the event log, I just see the error but not the command :(
RougeR has joined #ruby
RougeR has quit [Changing host]
RougeR has joined #ruby
cadillac_ has quit [Ping timeout: 260 seconds]
hr3f has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
href has quit [Read error: Connection reset by peer]
hr3f is now known as href
cadillac_ has joined #ruby
sanscoeur has quit [Ping timeout: 264 seconds]
olblak has quit [Ping timeout: 256 seconds]
olblak has joined #ruby
dimik--- has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
minimalism has joined #ruby
Exuma has joined #ruby
memo1 has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 256 seconds]
memo1 has joined #ruby
kith has joined #ruby
kith has quit [Remote host closed the connection]
brodul has quit [Ping timeout: 256 seconds]
brodul has joined #ruby
tjbp has quit [Read error: Connection reset by peer]
tjbp has joined #ruby
cagomez has quit [Remote host closed the connection]
tcopeland has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
chrisseaton has quit []
chrisseaton_ has joined #ruby
chrisseaton_ has quit [Client Quit]
chrisseaton has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
cagomez has joined #ruby
<chrisseaton>
Does anyone know any resource on how Ruby interacts with locale environment variables? I can't see an impact on Time.now.strftime("%c") from changing LC_ALL. Should I?
cam27 has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
venmx has quit [Ping timeout: 268 seconds]
imode has quit [Ping timeout: 260 seconds]
memo1 has quit [Ping timeout: 264 seconds]
guacamole has joined #ruby
guacamole has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
sameerynho has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
tvw has quit [Read error: Connection reset by peer]
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #ruby
guacamole has quit [Client Quit]
duderonomy has joined #ruby
<mroutis>
chrisseaton: what are you trying to achieve?