tkuchiki has quit [Remote host closed the connection]
amerine has quit [Quit: Computer has gone to sleep.]
amerine has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 260 seconds]
Silex has quit [Ping timeout: 240 seconds]
momomomomo has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby-lang
havenwood has joined #ruby-lang
Silex has joined #ruby-lang
saarinen has quit [Quit: saarinen]
epitron has quit [Remote host closed the connection]
epitron has joined #ruby-lang
tylersmith has joined #ruby-lang
cklee has quit [Quit: Connection closed for inactivity]
ddv has quit [Ping timeout: 260 seconds]
spuk has joined #ruby-lang
ddv has joined #ruby-lang
tkuchiki has joined #ruby-lang
amystephen has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
tdy has quit [Quit: WeeChat 0.4.3]
elia has quit [Quit: Computer has gone to sleep.]
momomomomo has quit [Quit: momomomomo]
bronky has joined #ruby-lang
stardiviner has joined #ruby-lang
_djbkd has quit [Remote host closed the connection]
vintik has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
mistym has quit [Remote host closed the connection]
marr has quit [Ping timeout: 260 seconds]
djbkd has quit [Ping timeout: 240 seconds]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
Technodrome has quit [Quit: Technodrome]
spuk has joined #ruby-lang
amerine has quit [Ping timeout: 264 seconds]
amerine has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
mistym has joined #ruby-lang
pixelhandler has quit [Quit: pixelhandler]
Miphix has joined #ruby-lang
kalehv has joined #ruby-lang
Cakey has joined #ruby-lang
weems|mac has quit [Quit: weems|mac]
mykoweb has joined #ruby-lang
sarkyniin has quit [Ping timeout: 255 seconds]
ItSAN____ has quit [Quit: Leaving...]
bronky has quit [Ping timeout: 245 seconds]
Cakey has quit [Ping timeout: 240 seconds]
xcesariox has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
Technodrome has joined #ruby-lang
weems|mac has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 240 seconds]
Averna has joined #ruby-lang
Averna has quit [Client Quit]
Averna has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
toastynerd has joined #ruby-lang
kalehv has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
kalehv has joined #ruby-lang
yfeldblu_ has quit [Ping timeout: 240 seconds]
Miphix has quit [Quit: Leaving]
Technodrome has quit [Quit: Technodrome]
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
kalehv has quit [Ping timeout: 240 seconds]
ItSANgo has joined #ruby-lang
vintik has joined #ruby-lang
mykoweb has quit [Ping timeout: 255 seconds]
Miphix has joined #ruby-lang
Technodrome has joined #ruby-lang
havenwood has joined #ruby-lang
mykoweb has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
havenwood has quit [Ping timeout: 264 seconds]
rubyNooby has joined #ruby-lang
Cakey has joined #ruby-lang
<rubyNooby>
anyone know how to pass a array of hashes as params in a form? right now when i try to place my array of hashes in a param it is passed as a string with the commas missing.
spastorino has quit [Quit: Connection closed for inactivity]
kalehv has quit [Ping timeout: 240 seconds]
arquebus has quit [Quit: Konversation terminated!]
harshp__ has joined #ruby-lang
stardiviner has joined #ruby-lang
djbkd has quit [Quit: My people need me...]
harshp_ has quit [Ping timeout: 260 seconds]
MikaAK has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
cschneid has quit [Ping timeout: 240 seconds]
CaptainJet has quit []
cschneid has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronky has quit [Quit: Lost terminal]
yfeldblum has quit [Ping timeout: 255 seconds]
pipework is now known as boten_anna
tectonic has quit []
_ht has joined #ruby-lang
yxhuvud has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
jxie has joined #ruby-lang
boten_anna is now known as pipework
havenwood has joined #ruby-lang
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby-lang
escues has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
kalehv has joined #ruby-lang
tylersmith has joined #ruby-lang
mykoweb has quit [Ping timeout: 245 seconds]
kalehv has quit [Ping timeout: 240 seconds]
tylersmith has quit [Ping timeout: 264 seconds]
escues has quit [Quit: escues]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
solars has joined #ruby-lang
apeiros has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
relix has joined #ruby-lang
ledestin has quit [Quit: ledestin]
yfeldblum has joined #ruby-lang
AKASkip has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
scmx has joined #ruby-lang
apeiros has joined #ruby-lang
dangerousdave has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
amerine has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby-lang
AKASkip has quit [Ping timeout: 255 seconds]
scmx has quit [Ping timeout: 272 seconds]
vintik has joined #ruby-lang
Eising has left #ruby-lang [#ruby-lang]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
willmarshall has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kwd has joined #ruby-lang
mykoweb has joined #ruby-lang
cornerman has joined #ruby-lang
MikaAK has joined #ruby-lang
Cakey has joined #ruby-lang
hahuang65 has joined #ruby-lang
vintik has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 240 seconds]
banister is now known as banisterfiend
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
scmx has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
arBmind1 has quit [Quit: Leaving.]
mykoweb has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby-lang
|jemc| has quit [Quit: WeeChat 0.4.3]
kalehv has joined #ruby-lang
AKASkip has joined #ruby-lang
Cakey has quit [Ping timeout: 245 seconds]
kalehv has quit [Ping timeout: 264 seconds]
tbuehlmann has joined #ruby-lang
ledestin has quit [Quit: ledestin]
MikaAK has quit [Remote host closed the connection]
MikaAK has joined #ruby-lang
nofxx_ has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby-lang
arBmind has joined #ruby-lang
arBmind1 has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
skade has joined #ruby-lang
arBmind has quit [Ping timeout: 250 seconds]
kiddorails has joined #ruby-lang
Technodrome has quit [Quit: Technodrome]
relix has quit [Remote host closed the connection]
relix has joined #ruby-lang
MikaAK has quit [Remote host closed the connection]
<Silex>
h.map{|k,v|"#{k}=#{v}"}.join(",") but surely there's something that does that already in URI or CGI or smth
<sluukkonen>
pretty sure I've used something from Rack::Utils to do that before
ledestin has quit [Quit: ledestin]
Averna has quit [Quit: Leaving.]
<sluukkonen>
oh that was asked 5 hours ago
alexju has joined #ruby-lang
ledestin has joined #ruby-lang
<apeiros>
also note that your map is broken. you forgot to escape the values.
mikecmpbll has joined #ruby-lang
benlovell has joined #ruby-lang
ironhide_604 has joined #ruby-lang
sMecKs has quit [Read error: Connection reset by peer]
kiddorails has quit [Remote host closed the connection]
kalehv has joined #ruby-lang
kiddorails has joined #ruby-lang
postmodern has quit [Quit: Leaving]
kalehv has quit [Ping timeout: 245 seconds]
benlovell has quit [Ping timeout: 255 seconds]
benlovell has joined #ruby-lang
<yorickpeterse>
morning fleshlings
Cakey has joined #ruby-lang
fullybaked has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
hahuang65 has joined #ruby-lang
knu has quit [Remote host closed the connection]
knu has joined #ruby-lang
hahuang65 has quit [Ping timeout: 256 seconds]
benlovell has quit [Ping timeout: 245 seconds]
benlovell has joined #ruby-lang
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has quit [Quit: ledestin]
Cakey has quit [Ping timeout: 245 seconds]
benlovell has quit [Ping timeout: 255 seconds]
ssam2 has joined #ruby-lang
miqui has quit [Ping timeout: 240 seconds]
benlovell has joined #ruby-lang
achiu1 has quit [Ping timeout: 245 seconds]
kiddorails has quit [Remote host closed the connection]
kiddorails has joined #ruby-lang
kalehv has joined #ruby-lang
kalehv has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby-lang
workmad3 has joined #ruby-lang
hahuang65 has quit [Ping timeout: 240 seconds]
marr has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.3]
kiddorails has quit [Remote host closed the connection]
miqui has joined #ruby-lang
hahuang65 has joined #ruby-lang
kiddorails has joined #ruby-lang
alexju has quit [Read error: Connection reset by peer]
<yorickpeterse>
apparently some web spider is trying to submit SSL certificates to one of our websites
<yorickpeterse>
wat
<yorickpeterse>
(at least it looks like that)
achiu1 has joined #ruby-lang
benlovell has quit [Ping timeout: 250 seconds]
knu has quit [Ping timeout: 250 seconds]
benlovell has joined #ruby-lang
hahuang65 has quit [Ping timeout: 272 seconds]
kek has joined #ruby-lang
knu has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
fullybaked has quit [Ping timeout: 250 seconds]
ledestin has joined #ruby-lang
Atttwww has quit [Remote host closed the connection]
Atttwww has joined #ruby-lang
sarkyniin has joined #ruby-lang
zenspider has quit [Ping timeout: 272 seconds]
zenspider has joined #ruby-lang
kiddorails has quit [Remote host closed the connection]
Atttwww has quit [Ping timeout: 264 seconds]
bin7me has joined #ruby-lang
Miphix has quit [Quit: Leaving]
ddv has quit [Changing host]
ddv has joined #ruby-lang
hahuang65 has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 250 seconds]
bin7me has quit [Quit: Leaving]
kiddorails has joined #ruby-lang
havenwood has quit []
mnngfltg has joined #ruby-lang
tylersmith has joined #ruby-lang
tylersmith has quit [Ping timeout: 260 seconds]
banister has joined #ruby-lang
DivineEntity has quit [Ping timeout: 250 seconds]
DivineEntity has joined #ruby-lang
kyb3r_ has quit [Read error: Connection reset by peer]
zenspider has quit [Remote host closed the connection]
mehlah has joined #ruby-lang
stamina has joined #ruby-lang
hahuang65 has quit [Ping timeout: 255 seconds]
shevy has joined #ruby-lang
shevy has left #ruby-lang ["I'll be back ... maybe"]
gregf_ has quit [Quit: leaving]
gpg_ has joined #ruby-lang
<gpg_>
hi all
<gpg_>
whats the diff between method and a method edning with a bang method!
<gpg_>
?
chrisco has joined #ruby-lang
<canton7>
a bang method normally only exists if there's also a non-bang version. the bang method is probably more "dangerous", or does something more unexpected
chrisco has quit [Client Quit]
<canton7>
quite often bang methods mutate the object they're called on, e.g. map! mutates, and map doesn't
<canton7>
but that's not always the case
<gpg_>
mutates meaning changes the method
<gpg_>
after it has been called
<gpg_>
i guess
<gpg_>
thanks!
<darix>
gpg_: non bang returns a new object
<darix>
bang method modifies the receiver directly
<gpg_>
yep thanks
<gpg_>
what about this method what does the bang mean:
<gpg_>
def legacy? !token end
<darix>
gpg_: that is "not"
<gpg_>
ok
<gpg_>
thanks
<gpg_>
!
yfeldblum has joined #ruby-lang
<gpg_>
not true
<gpg_>
not existing
<darix>
you.sure?
<gpg_>
i huess
<gpg_>
ok thanks
Voker57 has joined #ruby-lang
<gpg_>
so question mark methods like def legacy? !token end output true or false depend on cond
<gpg_>
boolen outputs
<gpg_>
true or false :) ?
<gpg_>
ok thnaks
<darix>
yes they are commonly used for true/False questions
<ljarvis>
gpg_: please string your sentences on a single line, not across loads, it's harder to read
<workmad3>
darix: strictly speaking, a bang method is a 'warning, this method does something different to a non-bang that you should be aware of'
yfeldblum has quit [Ping timeout: 255 seconds]
<ljarvis>
yeah ruby has stupid methods that mutate self that aren't bang methods
<darix>
workmad3: have you seen it used differently to what i wrote above?
<ljarvis>
*punch*
<workmad3>
darix: not a 'modifies receiver' method... plenty of methods modify the receiver without a !, and several notable methods don't do anything with the receiver but are different from a non-bang in a noticable way
<workmad3>
darix: e.g. exit vs exit!
<darix>
aha
<workmad3>
darix: also, in activerecord, save vs save! is to do with behaviour of validations
<darix>
ok
<darix>
forgot that part. dont use save! all that often :)
<workmad3>
darix: there's a good deal of overlap with 'this version doesn't modify the receiver and this version does' and 'this version does something you should be aware of' though, which causes the mis-apprehension :) and it doesn't help that in LISP, ! is used for exactly what you stated ;)
<workmad3>
darix: there are also cases where people add in ! methods without a non-bang alternative for (imo, bad) reasons... one that annoys me is the 'reload!' method in rails console :(
hahuang65 has joined #ruby-lang
miqui has quit [Remote host closed the connection]
TvL2386 has joined #ruby-lang
<darix>
workmad3: well if you take "!" as "danger ahead" marker ... then this is fine... I dont see what you would implement differently in "reload" :)
spastorino has joined #ruby-lang
<gpg_>
guys which line breaks first in my stack trace:
<gpg_>
i am trying to update valus in column with activerecord. i have output which is an array of strings. how do i replace current encrypted values with decrypted ones . My code: https://gist.github.com/ggeorgiev1/a211715c4dac5d2e2dae
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kiddorails has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
tylersmith has quit [Ping timeout: 255 seconds]
banister has joined #ruby-lang
sarkyniin has joined #ruby-lang
kiddorails has joined #ruby-lang
yfeldblum has joined #ruby-lang
banister_ has joined #ruby-lang
banister_ has quit [Max SendQ exceeded]
yfeldblum has quit [Ping timeout: 240 seconds]
banister_ has joined #ruby-lang
banister_ has quit [Max SendQ exceeded]
toastynerd has quit [Remote host closed the connection]
banister_ has joined #ruby-lang
banister has quit [Ping timeout: 256 seconds]
blurredbits has joined #ruby-lang
hahuang65 has quit [Ping timeout: 256 seconds]
centrx has quit [Quit: Mead error: Connection reset by beer]
CaptainJet has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
momomomomo has joined #ruby-lang
Miphix has quit [Quit: Leaving]
weems|mac has quit [Quit: weems|mac]
kwd has quit [Quit: Leaving.]
arBmind has joined #ruby-lang
karamazov has joined #ruby-lang
scmx has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
shinnya has joined #ruby-lang
apeiros has joined #ruby-lang
banisterfiend has joined #ruby-lang
tbuehlmann has quit [Quit: Leaving]
jlovick has joined #ruby-lang
banister_ has quit [Ping timeout: 260 seconds]
apeiros has quit [Ping timeout: 264 seconds]
solars has quit [Ping timeout: 245 seconds]
Miphix has joined #ruby-lang
VTLob has joined #ruby-lang
hahuang65 has joined #ruby-lang
banister has joined #ruby-lang
tdy has joined #ruby-lang
mnngfltg has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
symm- has quit [Read error: Connection reset by peer]
symm- has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
kiddorails has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
rippa has quit [Ping timeout: 250 seconds]
knu has quit [Ping timeout: 250 seconds]
pixelhandler has joined #ruby-lang
knu has joined #ruby-lang
benlovell has quit [Ping timeout: 245 seconds]
momomomomo_ has joined #ruby-lang
kiddorails has joined #ruby-lang
momomomomo has quit [Ping timeout: 240 seconds]
momomomomo_ is now known as momomomomo
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mistym has quit [Remote host closed the connection]
rippa has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
kiddorails has quit [Remote host closed the connection]
banisterfiend has quit [Quit: Computer has gone to sleep.]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby-lang
__butch__ has joined #ruby-lang
fullybaked has quit [Ping timeout: 264 seconds]
kek_ has joined #ruby-lang
kek has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby-lang
banisterfiend has joined #ruby-lang
kek_ has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby-lang
<yorickpeterse>
matti: ( ¯3¯)
vintik has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby-lang
toastynerd has joined #ruby-lang
arntempelgibbarn has joined #ruby-lang
toastynerd has quit [Ping timeout: 260 seconds]
ssam2 has quit [Quit: Leaving]
mistym has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
arBmind has quit [Quit: Leaving.]
hahuang65 has joined #ruby-lang
banisterfiend has quit [Quit: Computer has gone to sleep.]
arntempelgibbarn has quit [Ping timeout: 240 seconds]
gpg_ has quit [Quit: Page closed]
vintik has quit [Remote host closed the connection]
vintik has joined #ruby-lang
MikaAK has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
MikaAK has joined #ruby-lang
Johz has joined #ruby-lang
yfeldblum has joined #ruby-lang
jgpawletko has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
rcvalle has joined #ruby-lang
x0f has quit [Ping timeout: 256 seconds]
arBmind has joined #ruby-lang
henrikhodne has joined #ruby-lang
x0f has joined #ruby-lang
bronky has quit [Quit: leaving]
momomomomo has quit [Ping timeout: 255 seconds]
momomomomo has joined #ruby-lang
<henrikhodne>
I have a timestamp like "YYYY-MM-DD". Is there a way to get a Time (or a UNIX timestamp, which is what I eventually want) that represents midnight on the following day? I want something like Time.utc(year, month, day+1), but if day is 31, or whatever the last day of that month was, an "out of range" error happens.
<henrikhodne>
I'd love to stick to the stdlib if possible.
<centrx>
henrikhodne, ActiveSupport has methods like #tomorrow and #beginning_of_day. You can use that, or look at its source code.
vintik has quit [Remote host closed the connection]
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
<henrikhodne>
This is what I ended up with, since I need to use a specific timezone: TZInfo::Timezone.get("Europe/Berlin").local_to_utc(DateTime.iso8601("#{@to_date}T00:00:00+00:00").next_day.to_time.utc).local_to_utc(midnight_utc).to_i
mikecmpbll has quit [Quit: i've nodded off.]
<henrikhodne>
I had to use DateTime since I couldn't figure out how to get Date#to_time to use midnight UTC instead of midnight local time.
<centrx>
Time.now.tomorrow.beginning_of_day
solars has joined #ruby-lang
<henrikhodne>
centrx: I'd rather not depend on ActiveSupport.