havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
Trynemjoel has quit [Ping timeout: 245 seconds]
ziyangtian has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
jgnagy has joined #ruby
jgnagy has quit [Ping timeout: 246 seconds]
zotherstupidguy has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
pb122-two has quit [Read error: Connection reset by peer]
pb122 has joined #ruby
bkxd has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
chopin has quit [Remote host closed the connection]
nesoi has joined #ruby
Cohedrin has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
iomotoko has quit [Quit: leaving]
iomotoko has joined #ruby
cfec0b8d has quit [Remote host closed the connection]
iomotoko has quit [Client Quit]
Bock has joined #ruby
Bocaneri has quit [Read error: Connection reset by peer]
iomotoko has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
charliesome has joined #ruby
nankyokusei has joined #ruby
ddffg has quit [Ping timeout: 240 seconds]
dcluna has joined #ruby
cschneid_ has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 246 seconds]
chaugiang has joined #ruby
chaugiang has left #ruby [#ruby]
centrx has quit [Remote host closed the connection]
<zenspider> man... writing doco is BOOOORING
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
<nesoi> ok, so now I'm up to running rake again, and it's giving me this error:
<nesoi> 5:41
<nesoi> Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:
<nesoi> StandardError: An error has occurred, all later migrations canceled:
<nesoi> rake aborted!
<nesoi> the app wasn't written for any Rails release, it is a stand-alone that happens to use activerecord
<nesoi> 5:41
<nesoi> so what can I do to fix this?
<nesoi> 5:42
<nesoi> oops wrong channel. sorry!
<nesoi> sorry about that. trying to paste and clean it up
choke has quit [Quit: Textual IRC Client: www.textualapp.com]
<nesoi> trying again.
<nesoi> ok, so now I'm up to running rake again, and it's giving me this error:
<nesoi> the app wasn't written for any Rails release, it is a stand-alone that happens to use activerecord
<nesoi> Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:
<nesoi> StandardError: An error has occurred, all later migrations canceled:
<nesoi> rake aborted!
<nesoi> so what can I do to fix this?
r3vDev has joined #ruby
<nesoi> it took me a long time to get mysql to work, some old files were left over and interfering :(
segmond has joined #ruby
jgt2 has quit [Ping timeout: 240 seconds]
plujon has quit [Quit: ERC (IRC client for Emacs 25.2.1)]
nettoweb__ has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.8]
<Radar> nesoi: hi
nitric has quit [Ping timeout: 255 seconds]
<Radar> You need to inherit from ActiveRecord::Migration[5.0]
nettoweb__ has quit [Client Quit]
<nesoi> hi radar
<nesoi> how do I do that?
<nesoi> currently it says:
<nesoi> require 'active_record'
<nesoi> require 'active_support/all'
<Radar> class YourMigration
<Radar> class YourMigration < ActiveRecord::Migration[5.0]
centrx has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 240 seconds]
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
<zenspider> still not ruby issues...
<nesoi> radar, so code like this would be modified?
<nesoi> task :default => :migrate
<nesoi> end
<nesoi> ActiveRecord::Migrator.migrate(File.join("db", "migrate"), ENV["VERSION"] ? ENV["VERSION"].to_i : nil )
<nesoi> task :migrate => :environment do
<Radar> ?gist nesoi
<ruby[bot]> nesoi: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<zenspider> nesoi: stop pasting crap in here
<Radar> nesoi: The code in the migration would need to be modified, yes.
<nesoi> zenguy_pc: that was 4 lines, isn't that ok?
<Radar> nesoi: no.
<nesoi> I mean zenspider
<Radar> Gist anything over 2.
<nesoi> ok, sorry!
<Radar> nesoi: Also since this is about parts of the Rails framework, take it to #rubyonrails.
<nesoi> it's not done in rails though
<zenspider> it IS rails code
<nesoi> there's no rails in the actual applications
<nesoi> just activerecord
<zenspider> which is... rails
<elomatreb> Folks in #RubyOnRails will probably still know more about it
<nesoi> radar: you seemed to know though, rather than starting over, how would I modify these so that they can run?
<Radar> Before zenspider beats me to it.
<Radar> nesoi: please, let's take this into #rubyonrails.
<zenspider> hah!
nesoi has left #ruby [#ruby]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kneecaps has joined #ruby
<zenspider> this might be common sense but I'm the whitest-hat ever... if I'm in-place encrypting a disk (a time machine disk) ... will it be proportional to the data or space?
<zenspider> it isn't unmounting or anything either... voodoo I tell you
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
duderonomy has joined #ruby
d3d1rty has joined #ruby
dcluna has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
jenrzzz_ has joined #ruby
dasher00 has quit [Ping timeout: 260 seconds]
<Radar> zenspider: #ruby-offtopic please
<Radar> ;)
<zenspider> um... it's backing up ruby files
<zenspider> hrm... style issue. Should my main doco be on the class or should it be on the factory method that's creating it? The entry point is definitely the latter.
jgnagy has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<arahael> I'd say, the class.
<zenspider> I tend to agree... but I suspect that most ppl wouldn't even see the class (or know there WAS one) if I'm doing this right
<zenspider> oh fucking hell rdoc... moot point. The class is missing from the rdoc entirely
dasher00 has joined #ruby
<zenspider> what? just from the index
<zenspider> is there a ruby doco system that does NOT suck?
<zenspider> if you say "yard"... I will kick you for being so very very wrong
texasmynsted has joined #ruby
jenrzzz_ has quit [Ping timeout: 255 seconds]
<texasmynsted> is it possible to paste a multi-line block of code into IRB repl?
<zenspider> texasmynsted: did you try it?
bruce_lee has quit [Ping timeout: 246 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
<texasmynsted> yea
<texasmynsted> Just broke all over the screen
d^sh has quit [Ping timeout: 260 seconds]
<texasmynsted> Was looking for something like the :past command from the scala repl
d^sh has joined #ruby
enterprisey has joined #ruby
<havenwood> texasmynsted: You should be able to paste multiple lines just fine. I wonder if your readline is borked?
<havenwood> texasmynsted: Pry is also a popular irb alternative.
<havenwood> ?pry texasmynsted
<ruby[bot]> c
<ruby[bot]> texasmynsted: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-do
<texasmynsted> wow, Pry is pretty amazing
<texasmynsted> Thank you. I will try pry and maybe sometime, go back and see what what happening with irb
<arahael> z.
<arahael> .
SuperTux88 has quit [Ping timeout: 255 seconds]
lxsameer has quit [Quit: WeeChat 1.7]
<arahael> zenspider: If people don't know about the class, then perhaps they don't need the docs for it if they never interact with it.
Cohedrin has quit [Read error: Connection reset by peer]
meshsmith has joined #ruby
Cohedrin has joined #ruby
rkazak has joined #ruby
Vingador has joined #ruby
arescorpio has joined #ruby
robnester has quit [Ping timeout: 240 seconds]
herbmillerjr has quit [Quit: Konversation terminated!]
bilal80 has quit [Quit: bilal80]
robnester has joined #ruby
chopin has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
DTZUZU has joined #ruby
haylon has joined #ruby
duderonomy has quit [Ping timeout: 246 seconds]
poloych has joined #ruby
brent__ has quit [Quit: Connection closed for inactivity]
haylon has quit [Quit: haylon]
harfangk has joined #ruby
jgnagy has quit [Remote host closed the connection]
genpaku has quit [Remote host closed the connection]
centrx has quit []
bkxd_ has quit [Ping timeout: 260 seconds]
Tempesta has quit [Quit: See ya!]
user has joined #ruby
genpaku has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
user has quit [Ping timeout: 260 seconds]
rkazak has joined #ruby
r3vDev has quit [Quit: Leaving.]
chopin has quit [Remote host closed the connection]
poloych has quit [Remote host closed the connection]
nankyokusei has joined #ruby
Mia has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
haylon has joined #ruby
swills has quit [Ping timeout: 255 seconds]
Jayson_Virissimo has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
brucebag has quit [Ping timeout: 240 seconds]
rkazak has quit [Quit: Sleep.....ing....]
Jayson_Virissimo has quit []
ElFerna has joined #ruby
HoierM has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
ElFerna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Derperperd has quit [Quit: Peace out]
Vingador has quit [Remote host closed the connection]
Derperperd has joined #ruby
SuperTux88 has joined #ruby
jackjackdripper1 has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
jackjackdripper2 has joined #ruby
jackjackdripper2 has quit [Read error: Connection reset by peer]
sspreitz has quit [Ping timeout: 255 seconds]
jackjackdripper has quit [Ping timeout: 260 seconds]
jackjackdripper has joined #ruby
sspreitz has joined #ruby
jackjackdripper1 has quit [Ping timeout: 246 seconds]
herbmillerjr has joined #ruby
herbmillerjr has quit [Client Quit]
dlitvak has joined #ruby
perniciouscaffei has joined #ruby
herbmillerjr has joined #ruby
ivanskie-hom has joined #ruby
<ivanskie-hom> hi
uZiel has joined #ruby
<ivanskie-hom> can I do a file open with callback?
<ivanskie-hom> CSV.read(getFile(url)) #getFile(url) yields file contents after downloading it
<ivanskie-hom> I'm getting a getFile no block given error. first time trying to do callback for realz
gix has quit [Ping timeout: 255 seconds]
<ivanskie-hom> or do i have to do... getFile(url) do |file| contents = CSV.read(file)...... ?
<ivanskie-hom> hmm i think i'm almost at the aha momement
chopin has joined #ruby
<ivanskie-hom> dude if this works it'll be a day to celebrate
minimalism has joined #ruby
gix has joined #ruby
audy has left #ruby [#ruby]
_whitelogger has joined #ruby
<ivanskie-hom> no so fast :(
cfec0b8d has joined #ruby
<ivanskie-hom> i can't just point it to csv file online, i have to do digest auth first. so.. argh
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
nanoz has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
im0nde has joined #ruby
amclain has quit [Quit: Leaving]
patr0clus has quit [Quit: tempusfugit]
AnoHito has joined #ruby
im0nde has quit [Ping timeout: 246 seconds]
chopin has quit [Remote host closed the connection]
robnester has quit [Ping timeout: 246 seconds]
AnoHito_ has quit [Ping timeout: 246 seconds]
brucebag has joined #ruby
brucebag has joined #ruby
AnoHito_ has joined #ruby
AnoHito has quit [Ping timeout: 258 seconds]
dcluna has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
perniciouscaffei has joined #ruby
haylon has quit [Quit: Leaving]
<Radar> ivanskie-hom: hi.
texasmynsted has quit [Ping timeout: 255 seconds]
<Radar> what is getFile?
<ivanskie-hom> hey Radar!
<Radar> :)
<ivanskie-hom> hows it going!?
<ivanskie-hom> ok nevermind the !
chopin has joined #ruby
<Radar> It's going well, thanks :)
<Radar> We've just hired a junior who I've been mentoring here over the last couple of weeks.
dcluna has quit [Ping timeout: 240 seconds]
haylon has joined #ruby
<ivanskie-hom> omg
texasmynsted has joined #ruby
<ivanskie-hom> time for a glass of wine! I just figured this shit out on my own without getting someone else to fill in the blanks for me.
<ivanskie-hom> only took me ~4 hours to get the script to work. lol
haylon has quit [Ping timeout: 255 seconds]
<ivanskie-hom> took me a few hours to figure out its not basic auth too tho. thanks to a suggestion to look at headers here earlier.
meshsmith has quit [Remote host closed the connection]
duderonomy has joined #ruby
nertzy has joined #ruby
nanoz has joined #ruby
nanoz has joined #ruby
nanoz has quit [Changing host]
theunraveler has joined #ruby
robnester has joined #ruby
jgnagy has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
ignarps has quit [Quit: ZNC - http://znc.in]
jgnagy has quit [Ping timeout: 246 seconds]
renchan has joined #ruby
Cohedrin has joined #ruby
JoshS has joined #ruby
robnester has quit [Ping timeout: 246 seconds]
robnester has joined #ruby
theunraveler has quit []
<zenspider> ivanskie-hom: I recommend to people I mentor/teach to set a 30 minute threshold for being stuck. After 30 minutes, you need to walk away for at least 20 minutes and then you have to ask for help.
uZiel has quit [Ping timeout: 248 seconds]
ivanskie-hom has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dasher00 has quit [Ping timeout: 255 seconds]
nankyokusei has joined #ruby
charliesome has joined #ruby
dasher00 has joined #ruby
djbkd has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
dviola has quit [Quit: WeeChat 1.8]
ignarps has joined #ruby
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arescorpio has quit [Quit: Leaving.]
AnoHito has joined #ruby
AnoHito_ has quit [Ping timeout: 240 seconds]
nadir has quit [Quit: Connection closed for inactivity]
AnoHito_ has joined #ruby
mim1k has joined #ruby
AnoHito has quit [Ping timeout: 246 seconds]
AnoHito has joined #ruby
AnoHito_ has quit [Ping timeout: 258 seconds]
mim1k has quit [Ping timeout: 258 seconds]
djbkd has quit [Remote host closed the connection]
AnoHito_ has joined #ruby
bvcosta_ has joined #ruby
AnoHito has quit [Ping timeout: 260 seconds]
Cohedrin has joined #ruby
AnoHito has joined #ruby
djbkd has joined #ruby
AnoHito_ has quit [Ping timeout: 246 seconds]
bvcosta has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
chopin has quit [Remote host closed the connection]
<zenspider> >> /(?-mix:\w)|(?-mix:\d)/ == /\w|\d/
<ruby[bot]> zenspider: # => false (https://eval.in/812347)
<zenspider> but... but why?
djbkd has quit [Ping timeout: 246 seconds]
ShekharReddy has joined #ruby
cschneid_ has joined #ruby
cschneid_ has quit [Ping timeout: 260 seconds]
rohitpaulk has joined #ruby
KnownSyntax has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
<Radar> zenspider: guessing it's because it checks the length
KnownSyntax has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
<Radar> I don't know what the KCODE_FIXED thing is doing. options + encoding are equal (at least on my local 2.4.1 install). So it's either the length or the kcode_fixed thing
<Radar> >> /(?-mix:\w)|(?-mix:\d)/.source
<ruby[bot]> Radar: # => "(?-mix:\\w)|(?-mix:\\d)" (https://eval.in/812355)
<Radar> >> /\w|\d/.source
jenrzzz has joined #ruby
<ruby[bot]> Radar: # => "\\w|\\d" (https://eval.in/812356)
<Radar> TIL about Regexp#source
jgt2 has joined #ruby
cfec0b8d has quit [Ping timeout: 258 seconds]
rohitpaulk has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dcluna has joined #ruby
dasher00 has quit [Ping timeout: 255 seconds]
cfec0b8d has joined #ruby
dcluna has quit [Ping timeout: 240 seconds]
AnoHito_ has joined #ruby
dasher00 has joined #ruby
AnoHito has quit [Ping timeout: 246 seconds]
ur5us has quit [Remote host closed the connection]
cfec0b8d has quit [Ping timeout: 255 seconds]
rohitpaulk has joined #ruby
segmond has quit [Quit: l8r]
dcluna has joined #ruby
yogg-saron has joined #ruby
rohitpaulk has quit [Remote host closed the connection]
<zenspider> Radar: seems dumb... should be comparing the state machine
anisha has joined #ruby
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oleo has quit [Quit: irc client terminated!]
ShekharReddy has quit []
anisha has quit [Ping timeout: 246 seconds]
anisha has joined #ruby
charliesome has joined #ruby
dcluna has quit [Ping timeout: 255 seconds]
roshanavand has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
chopin has joined #ruby
djbkd has joined #ruby
djbkd has quit [Client Quit]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
rohitpaulk has joined #ruby
user__ has joined #ruby
AlexRussia has quit [Ping timeout: 255 seconds]
user__ has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 245 seconds]
chopin has quit [Ping timeout: 258 seconds]
im0nde has joined #ruby
im0nde has quit [Client Quit]
cfec0b8d has joined #ruby
im0nde has joined #ruby
nankyokusei has joined #ruby
lostapathy has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 246 seconds]
conta has joined #ruby
Guest73 has joined #ruby
hanmac has joined #ruby
lostapathy has joined #ruby
Guest73 has left #ruby [#ruby]
Xadren has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
jgt3 has joined #ruby
atmosx has quit [Quit: WeeChat 1.4]
scorphus` has joined #ruby
atmosx has joined #ruby
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
mmasaki has quit [Ping timeout: 245 seconds]
mmasaki has joined #ruby
sirecote has quit [Ping timeout: 240 seconds]
marcellus has quit [Ping timeout: 260 seconds]
jgt2 has quit [Ping timeout: 246 seconds]
uranellus has quit [Ping timeout: 240 seconds]
marcellus has joined #ruby
sjums has quit [Ping timeout: 260 seconds]
uranellus has joined #ruby
uranellus has joined #ruby
uranellus has quit [Changing host]
sjums has joined #ruby
sirecote has joined #ruby
rohitpaulk has quit [Ping timeout: 246 seconds]
rohitpaulk has joined #ruby
uZiel has joined #ruby
r3vDev has joined #ruby
andikr has joined #ruby
rohitpaulk has quit [Read error: Connection reset by peer]
rohitpaulk has joined #ruby
dionysus69 has joined #ruby
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
mim1k has joined #ruby
nertzy has quit [Read error: Connection reset by peer]
nertzy has joined #ruby
vali has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has joined #ruby
mochiyoda has joined #ruby
psychicist__ has joined #ruby
psychicist__ has quit [Client Quit]
mochiyoda_ has quit [Ping timeout: 258 seconds]
Silthias has joined #ruby
Xadren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zipace has joined #ruby
charliesome has joined #ruby
Xadren has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
jcao219 has joined #ruby
User458764 has joined #ruby
Silthias1 has joined #ruby
Mortomes|Work has joined #ruby
Silthias has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Read error: Connection reset by peer]
def_jam has joined #ruby
eb0t_ has joined #ruby
eblip has quit [Ping timeout: 240 seconds]
chopin has joined #ruby
Cohedri__ has joined #ruby
eb0t has quit [Ping timeout: 245 seconds]
bvcosta_ has quit [Read error: Connection reset by peer]
mark_66 has joined #ruby
bvcosta has joined #ruby
djbkd has quit [Remote host closed the connection]
aufi has joined #ruby
cgfbee has quit [Remote host closed the connection]
dcluna has joined #ruby
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
mtkd has quit [Ping timeout: 260 seconds]
zotherstupidguy has left #ruby [#ruby]
mtkd has joined #ruby
bkxd has joined #ruby
r3vDev has quit [Remote host closed the connection]
nahra has joined #ruby
chopin has quit [Remote host closed the connection]
Cohedri__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nertzy has quit [Read error: Connection reset by peer]
cgfbee has joined #ruby
nertzy has joined #ruby
Frank__ has joined #ruby
SaschaVoid has joined #ruby
aupadhye has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
Joufflu has quit [Ping timeout: 255 seconds]
antgel has joined #ruby
bkxd has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rohitpaulk has quit [Ping timeout: 246 seconds]
rohitpaulk has joined #ruby
dcluna has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 240 seconds]
SaschaVoid has quit [Quit: die();]
jcao219 has quit [Ping timeout: 246 seconds]
SaschaVoid has joined #ruby
aupadhye is now known as aupadhye|food
Cohedrin has joined #ruby
Joufflu has joined #ruby
dcluna has joined #ruby
ferr1 has joined #ruby
mikecmpbll has joined #ruby
Frank__ has quit [Quit: Mutter: www.mutterirc.com]
aupadhye|food is now known as aupadhye
tvw has quit []
dcluna has quit [Ping timeout: 255 seconds]
al2o3-cr has quit [Ping timeout: 260 seconds]
Frank__ has joined #ruby
Frank__ has quit [Client Quit]
mim1k has joined #ruby
haylon has joined #ruby
Xadren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xadren has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
haylon has quit [Ping timeout: 260 seconds]
Xadren has quit [Client Quit]
sleetdrop has joined #ruby
sligli has joined #ruby
sligli has quit [Client Quit]
nalread has joined #ruby
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgnagy has joined #ruby
vali has quit [Read error: Connection reset by peer]
jgt3 has quit [Ping timeout: 260 seconds]
howdoi_ has joined #ruby
Xadren has joined #ruby
jgnagy has quit [Ping timeout: 246 seconds]
Silthias1 has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Read error: Connection reset by peer]
Silthias has joined #ruby
mikecmpb_ has joined #ruby
howdoi_ has quit [Client Quit]
howdoi has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
enterprisey has quit [Remote host closed the connection]
Xadren has quit [Quit: Textual IRC Client: www.textualapp.com]
dcunit3d has joined #ruby
TheHodge has joined #ruby
nadir has joined #ruby
cfec0b8d has quit [Ping timeout: 240 seconds]
agentsmith has joined #ruby
agentsmith is now known as Guest69478
vali has joined #ruby
kies has quit [Ping timeout: 255 seconds]
chopin has joined #ruby
Beams has joined #ruby
mim1k has joined #ruby
Lyubo1 has quit [Ping timeout: 255 seconds]
mikecmpb_ is now known as mikecmpbll
chichou has joined #ruby
Axy has joined #ruby
bauruine has quit [Quit: ZNC - http://znc.in]
Lyubo1 has joined #ruby
bauruine has joined #ruby
Mia has quit [Ping timeout: 255 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
kies has joined #ruby
Mia has quit [Remote host closed the connection]
chopin has quit [Remote host closed the connection]
Axy has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
glejeune has joined #ruby
anisha has quit [Quit: Leaving]
lxsameer has joined #ruby
Kug3lis has joined #ruby
brent__ has joined #ruby
tomphp has joined #ruby
romank has joined #ruby
brent__ has quit [Ping timeout: 245 seconds]
shortdudey123 has quit [Ping timeout: 255 seconds]
shortdudey123 has joined #ruby
dcluna has joined #ruby
Pumukel has joined #ruby
TvL2386_ is now known as TvL2386
Kug3lis has quit [Quit: Textual IRC Client: www.textualapp.com]
cschneid_ has joined #ruby
Cork has quit [Quit: .]
nanoz has quit [Read error: Connection reset by peer]
Joufflu_ has joined #ruby
nanoz has joined #ruby
nanoz has joined #ruby
nanoz has quit [Changing host]
anisha has joined #ruby
dcluna has quit [Ping timeout: 255 seconds]
cschneid_ has quit [Ping timeout: 246 seconds]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Cork has joined #ruby
Joufflu has quit [Ping timeout: 255 seconds]
Kug3lis has joined #ruby
jgt3 has joined #ruby
Axy has joined #ruby
Cork has quit [Quit: .]
Mia has quit [Ping timeout: 240 seconds]
AlexRussia has joined #ruby
Axy has quit [Ping timeout: 258 seconds]
jjaii9 has joined #ruby
Cork has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
pandaant has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
<mikecmpbll> is there a standard way to ship ruby system software?
<mikecmpbll> package it up with a version of ruby some how?
charliesome has joined #ruby
Axy has joined #ruby
<universa1> uhmm... not really iirc... there was/is some project by one of the passenger guys, but it seems to be stagnant right now. then there was shoes (the gui stuff, haven't followed it in a long time, worked in the past (~5years ago)
<universa1> but warbler might work for you, packages your stuff with jruby into a jar and java is most of the times there :-)
<mikecmpbll> i'm looking at https://github.com/chef/omnibus but couldn't tell in 5 mins if it's what i'm after so thought i'd ask :)
<mikecmpbll> interesting, i'll check it out.
<universa1> an installer which installs a "packaged" ruby might also work
Mia has quit [Ping timeout: 268 seconds]
chopin has joined #ruby
<mikecmpbll> universa1 : looks neat!
jjaii9 has quit []
cjhowe7 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dcluna has joined #ruby
anisha has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
antgel has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rohitpaulk has quit [Ping timeout: 246 seconds]
chopin has quit [Remote host closed the connection]
antgel has joined #ruby
rohitpaulk has joined #ruby
dcluna has quit [Ping timeout: 240 seconds]
Guest69478 has quit [Remote host closed the connection]
charliesome has joined #ruby
rohitpaulk has quit [Remote host closed the connection]
nettoweb__ has joined #ruby
sleetdrop has quit [Remote host closed the connection]
dasher00 has quit [Ping timeout: 240 seconds]
cyclonis has joined #ruby
<cyclonis> anyone penetration testers here ?
paddor has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
dasher00 has joined #ruby
<paddor> Hi. I'm reverse engineering the authentication procedudure of a software product where the communication happens in XML documents over HTTP. It derives a shared secret using DHM to then encrypt the credentials to make up for environments where HTTPS is unavailable (so the documentation). Anyway... the response to the first "Connect" request contains the server's public key (encoded as a little-endian number, in Base64). I'm trying to use Ruby's OpenSSL::PKey::DH
<paddor> to calculate the shared secret, but it expects more than just Bob's public key. According to its example http://bit.ly/2qX10eP, it already expects some of Bob's DER-encoded information during initializiation. Which is which? How to feed it what I have? I thought using the same prime and generator, plus Bob's "public key" (the public number) is enough to calculate the same shared secret. But they're always different when I try it without DER-encoded information.
<paddor> Even just making the non-commented lines in this snippet work would be nice: https://gist.github.com/paddor/8fcf1d61fc6b436b61fcf27f886c6df8 Thanks for any input.
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
haylon has joined #ruby
haylon has quit [Ping timeout: 245 seconds]
mim1k has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
chopin has joined #ruby
<paddor> Alright. Apparently `DH.new(1024)` it will actually generate a prime number. A different one every time. That, of course, has to be the same for Alice and Bob. I guess I can use #set_pgq to do that, instead of reading that information from a DER or PEM encoded string.
jenrzzz has quit [Ping timeout: 255 seconds]
vali has quit [Quit: Leaving]
petruff has joined #ruby
dcluna has joined #ruby
<paddor> * OpenSSL::PKey::DH#set_pqg. Anyone an idea what q is?
GodFather has joined #ruby
normie1 has joined #ruby
arquebus has joined #ruby
nalread has quit [Ping timeout: 258 seconds]
nowhere_man has quit [Ping timeout: 255 seconds]
jgt3 has quit [Ping timeout: 258 seconds]
marr has joined #ruby
Fernando-Basso has joined #ruby
chopin has quit [Remote host closed the connection]
dcluna has quit [Ping timeout: 246 seconds]
dionysus69 has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
ur5us has quit [Remote host closed the connection]
arquebus has quit [Quit: konversation disconnects]
normie1 has quit [Quit: Textual IRC Client: www.textualapp.com]
glejeune has quit [Ping timeout: 268 seconds]
isene has joined #ruby
ElFerna has joined #ruby
<isene> I have an imap mail filter program that I've written in Ruby. It's fetching mail from various accounts and filtering them into local mail folders. It's been working flawlessly for years but this weekend it stopped working. I have narrowed it down to a problem with the "UNSEEN" flag (I am matching against only UNSEEN messages in my gmail accounts) - also ("NOT, "SEEN") fails: http://dpaste.com/3XT85GD
bvcosta has quit [Read error: Connection reset by peer]
bvcosta has joined #ruby
PatrikasZvaigzde has quit [Ping timeout: 255 seconds]
<isene> Hmm.... I found that the problem is not with the "UNSEEN" flag at all, but rather with matching "" (anything) - because matching with "*" and the UNSEEN flag does work
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
HoierM has joined #ruby
ElFerna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimalism has quit [Quit: minimalism]
brent__ has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
nettoweb__ has quit [Read error: Connection timed out]
glejeune has joined #ruby
brent__ has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
vali has joined #ruby
<isene> This means that with a recent update of Ruby, it is no longer possible to match with "" in NET::imap.search, you must match with "*" as a catch-all. I haven't seen this in any documentation (or any Google searches). FYI
<isene> Recent update => ruby 2.3.3p222
vuoto has joined #ruby
Coldblackice has quit [Remote host closed the connection]
Coldblackice has joined #ruby
Coldblackice has quit [Remote host closed the connection]
SpiffTR has joined #ruby
charliesome has joined #ruby
ur5us_ has joined #ruby
Coldblackice has joined #ruby
Coldblackice has quit [Remote host closed the connection]
Coldblackice has joined #ruby
Coldblackice has quit [Remote host closed the connection]
anisha has quit [Ping timeout: 240 seconds]
SpiffTR has quit [Client Quit]
<matthewd> isene: Which Ruby version was previously working differently? AFAIK those more obscure stdlib libraries don't change much these days
Coldblackice has joined #ruby
Coldblackice has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 255 seconds]
paddor has quit [Remote host closed the connection]
Coldblackice has joined #ruby
Coldblackice has quit [Remote host closed the connection]
brunocosta has joined #ruby
ur5us_ has quit [Remote host closed the connection]
ElFerna has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
brunocosta has quit [Quit: leaving]
cfec0b8d has joined #ruby
benjen- has quit [Remote host closed the connection]
psychicist__ has joined #ruby
benjen has joined #ruby
anisha has joined #ruby
vuoto has quit [Quit: Lost terminal]
dcluna has joined #ruby
ddffg has joined #ruby
Kug3lis_ has joined #ruby
Gabemo has quit [Read error: Connection reset by peer]
rgr has joined #ruby
Kug3lis has quit [Ping timeout: 246 seconds]
JacKass77 has joined #ruby
dcluna has quit [Ping timeout: 255 seconds]
JacKass77 has left #ruby [#ruby]
BSAlb has joined #ruby
Gabemo has joined #ruby
jgnagy has joined #ruby
jgt3 has joined #ruby
<isene> matthewd: I'm actually not quite sure which version was running previous to my apt-get distupgrade... I could dig a bit to find that out. It could also be gmail that fails on sending a "" to match instead of "*" (?)
BSaboia has quit [Ping timeout: 246 seconds]
jgnagy has quit [Ping timeout: 246 seconds]
jgt3 has quit [Ping timeout: 240 seconds]
yogg-saron has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
chopin has joined #ruby
ElFerna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bvcosta has quit [Remote host closed the connection]
pupsicle has joined #ruby
bvcosta has joined #ruby
bvcosta has quit [Remote host closed the connection]
rohitpaulk has joined #ruby
ElFerna has joined #ruby
bvcosta has joined #ruby
nowhere_man has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yogg-saron has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BTRE has quit [Read error: Connection reset by peer]
chichou has quit [Quit: WeeChat 1.8]
gnufied has quit [Quit: Leaving]
uZiel has quit [Ping timeout: 248 seconds]
bvcosta has quit [Remote host closed the connection]
bvcosta has joined #ruby
chopin has quit [Remote host closed the connection]
bvcosta has quit [Remote host closed the connection]
gnufied has joined #ruby
bvcosta has joined #ruby
ikoma has joined #ruby
BTRE has joined #ruby
bvcosta has quit [Remote host closed the connection]
bvcosta has joined #ruby
minimalism has joined #ruby
bvcosta has quit [Remote host closed the connection]
bvcosta has joined #ruby
pupsicle has quit [Remote host closed the connection]
ElFerna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mostlybadfly has quit [Quit: Connection closed for inactivity]
mim1k has joined #ruby
jusa has quit [Ping timeout: 255 seconds]
haylon has joined #ruby
jenrzzz has joined #ruby
dcluna has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
vali has quit [Ping timeout: 246 seconds]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
dcluna has quit [Ping timeout: 255 seconds]
DLSteve has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
hexian has joined #ruby
nowhere_man has joined #ruby
<hexian> can anyone tell me if it's possible to yield from a fiber in a method which is called from a C extension? it seems like it is not possible but I can't find any details about fibers and extensions, or anything useful about the exception that gets raised "fiber called across stack rewinding barrier"
ikoma has quit [Remote host closed the connection]
shinnya has joined #ruby
griffindy has joined #ruby
Kneecaps has quit [Ping timeout: 240 seconds]
oleo has joined #ruby
<hexian> I really wanted to use the oj gem to parse a large JSON stream, since it is far better optimized than all alternatives, but it seems like this isn't possible since it only supports reading from IO objects and if the #readpartial method yields out of the fiber, that exception gets raised
kies has quit [Ping timeout: 246 seconds]
dcluna has joined #ruby
chopin has joined #ruby
chopin has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
rohitpaulk has quit [Ping timeout: 240 seconds]
Kneecaps has joined #ruby
guardianx has joined #ruby
rohitpaulk has joined #ruby
MrBismuth has quit [Ping timeout: 255 seconds]
mrconfused has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
cyphase has quit [Ping timeout: 246 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
chouhoulis has joined #ruby
mrconfused has quit [Ping timeout: 240 seconds]
Alina-malina has quit [Ping timeout: 255 seconds]
GodFather has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
im0nde has quit [Ping timeout: 246 seconds]
agentsmith has joined #ruby
cfec0b8d has quit [Ping timeout: 246 seconds]
agentsmith is now known as Guest50852
mim1k has joined #ruby
MarkBilk_ has joined #ruby
rkoller has joined #ruby
MarkBilk has quit [Ping timeout: 260 seconds]
guardianx has left #ruby [#ruby]
ldnunes has joined #ruby
Alina-malina has joined #ruby
bash2 has joined #ruby
conta has quit [Quit: conta]
cyphase has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
MarkBilk__ has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
ElFerna has joined #ruby
gizmore has joined #ruby
jgnagy has joined #ruby
MarkBilk_ has quit [Ping timeout: 245 seconds]
jgt3 has joined #ruby
Silthias has quit [Read error: Connection reset by peer]
<hexian> well this is disappointing, out of all the high performance JSON gems, none of them can be used to parse a subset of data from a huge JSON stream
<hexian> seems like my only option is to use the pure ruby json-stream gem, which is going to have an insane amount of overhead
jgnagy has quit [Ping timeout: 240 seconds]
conta has joined #ruby
Kug3lis_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cyphase has quit [Ping timeout: 260 seconds]
Kug3lis has joined #ruby
rohitpaulk has quit [Ping timeout: 255 seconds]
jgt3 has quit [Ping timeout: 260 seconds]
mikecmpb_ has joined #ruby
dionysus69 has quit [Remote host closed the connection]
jgnagy has joined #ruby
cyphase has joined #ruby
dionysus69 has joined #ruby
mikecmpbll has quit [Ping timeout: 246 seconds]
Silthias has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
chaugiang has joined #ruby
chaugiang has left #ruby [#ruby]
oleo has quit [Quit: irc client terminated!]
bvcosta has quit [Remote host closed the connection]
ElFerna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
GinoMan has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
roshanavand has quit [Quit: roshanavand]
amclain has joined #ruby
djbkd has quit [Remote host closed the connection]
ElFerna has joined #ruby
mikecmpb_ has quit [Read error: Connection reset by peer]
ElFerna has quit [Client Quit]
mikecmpbll has joined #ruby
rippa has joined #ruby
psychicist__ has quit [Quit: leaving]
oleo has joined #ruby
jusa has joined #ruby
aupadhye has quit [Quit: Leaving]
psychicist__ has joined #ruby
<ule> hey guys.. how can I get ':foo' here? [:aaa, :bbb, {:foo => [:ccc, :ddd] } ]
<ule> :/
<ule> I can't use .last
<ule> because it's dinamically
jcao219 has joined #ruby
<hexian> ule: arr.last.keys.first
patientj has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
ElFerna has joined #ruby
<elomatreb> ule: `your_array.grep(Hash).flat_map(&:keys)` if there is more than one or you don't know the position
aufi has quit [Quit: Leaving]
mikecmpbll has joined #ruby
cschneid_ has joined #ruby
mesamoo has quit [Read error: Connection reset by peer]
<hexian> his question was not very clear, but whatever he is trying to do can probably be solved more efficiently than that
<ule> hexian: sorry and thanks
bvcosta has joined #ruby
<ule> elomatreb: +++++++
<ule> thank you very much
<elomatreb> hexian: "<ule> I can't use .last [because it's dinamically]"
ElFerna has quit [Ping timeout: 240 seconds]
<hexian> yeah well that could mean a lot of things
<ule> elomatreb: how can I get the value of :foo now?
<hexian> is there only a single hash in any position or can there be multiple hashes?
<ule> hexian: can have multimples
<hexian> then you'll need something along the linesof what elomatreb suggested
<elomatreb> I'd strongly advise you to reconsider your data structures, mixing different types with probably different meaning leads to the messy code we're discussing
mikecmpbll has quit [Read error: Connection reset by peer]
<ule> elomatreb: agree
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<elomatreb> The problem with "the value of :foo" is that there may be more than one
bvcosta has quit [Ping timeout: 255 seconds]
<elomatreb> >> [ { foo: 1 }, { foo: 2 } ].grep(Hash).flat_map(&:keys)
<ruby[bot]> elomatreb: # => [:foo, :foo] (https://eval.in/812814)
<ule> I see
mikecmpb_ has joined #ruby
<ule> oh man.. someone created this code 4 years ago
<ule> now I have to fix everything lol
god has joined #ruby
god is now known as Guest95682
Guest95682 has quit [Remote host closed the connection]
my123_ has joined #ruby
my123_ has joined #ruby
<ule> maybe if I just convert everything dinamically to hash or array
<ule> unifying the data structure to just one like you guys said
jenrzzz has quit [Ping timeout: 255 seconds]
mim1k has quit [Ping timeout: 268 seconds]
jgnagy has quit [Remote host closed the connection]
my123 has quit [Ping timeout: 260 seconds]
<adam12> I wonder why net-telnet ever became bundled with Ruby.
jgnagy has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
belmoussaoui has joined #ruby
<matthewd> adam12: It was a different time
user__ has joined #ruby
jgnagy has quit [Ping timeout: 260 seconds]
<adam12> yeah ;)
<adam12> I wonder if it was a proof of concept for TCPSocket
<elomatreb> Things like consumer routers still frequently use telnet for advanced administration
kies has joined #ruby
<apeiros> ule: it's dynamical btw., not dinamical
mim1k has joined #ruby
<apeiros> oh, weird, that backlog is from forever, why did znc replay it just now? o0
nanoz has quit [Ping timeout: 260 seconds]
<apeiros> oooh, I think I have to fix the datetime on my znc server :D
<elomatreb> It's from 15min ago?
<adam12> I wonder if expect is still packaged with ruby.
<apeiros> adam12: require and see
user__ has quit [Remote host closed the connection]
<adam12> apeiros: Just wondering aloud. Not actually curious.
<matthewd> apeiros: Well, it's dynamic :)
cdg has joined #ruby
<ule> Hash[*[:aaa, :bbb, {:foo => [:ccc, :ddd]}].grep(Hash).flatten(1)][:foo]
<ule> => [:ccc, :ddd]
<ule> :D
<ule> ugly as hell but
<apeiros> I think the look is not the bad part
<ule> it's not working
nchambers has quit [Changing host]
nchambers has joined #ruby
<ule> because in the real live I have :foo, :foo2
nchambers has quit [Changing host]
nchambers has joined #ruby
<apeiros> I think you should not provide us fake data
<ule> true
<ule> [:name, :tip, {:answers_attributes=>[:id, :name]}, {:media_attributes=>[:link]}]
<ule> here we go
ascarter has joined #ruby
<ule> I need :media_attribute values
<apeiros> do you have anything in the code which gives a name to those things?
<apeiros> also, do you have more examples?
brent__ has joined #ruby
<apeiros> I ask because with this single example, the structure makes no sense.
<apeiros> I mean, why have two hashes?
<ule> unfortunatelly, that's the way they created this shit
<ule> :/
<apeiros> it's not necessarily shit just because you haven't yet figured out the idea behind it (it may of course indeed be shit)
hobodave has joined #ruby
mark_66 has quit [Quit: Leaving.]
<ule> this is being passed to .permit method in rails.. this is a list of allowed parameters they want to allow in the controller
<apeiros> first thing you have to do when working with foreign code is trying to figure out the ideas. why were things done the way they are?
PresidentBiscuit has joined #ruby
<ule> apeiros: they should use only hash if I understood well
<ule> I don't have enough time to refactor every code using this hash
<apeiros> and from what are they dynamically building that array?
<ule> hash/array
<ule> apeiros: it's a constant.. it's a kind of whitelist of allowed parameters
hahuang65 has quit [Ping timeout: 255 seconds]
<apeiros> a constant? that doesn't sound very dynamic?
<ule> but people could change in the future
<apeiros> "stored in a central place" != "dynamic"
sleetdrop has joined #ruby
<ule> ok so... how can I get the freaking media_attributes values there?
<ule> :S
<apeiros> how do you know you need media_attributes' values?
<apeiros> from the name?
hutch34 has joined #ruby
marr has quit [Ping timeout: 258 seconds]
<ule> apeiros: I'll do something like.. if media_attributes.include? :link... do something
<apeiros> no, that's not what I'm asking
<apeiros> you want media_attributes values - why?
<apeiros> why those values? why not answer_attributes' values?
<ule> apeiros: because I will only perform updates for :link parameters inside media_attributes
nalread has joined #ruby
<apeiros> ok, that's what you want to use it for - but again, how do you know it's :media_attributes you want?
mim1k has quit [Ping timeout: 260 seconds]
<matthewd> ule: What is the high-level thing you're doing?
ferr1 has quit [Quit: WeeChat 1.8]
<ule> apeiros: because I know
chalkmonster has joined #ruby
<apeiros> ok, so that's fixed, given information
<ule> apeiros: I want to get media_attributes and deal with the data
<ule> that's it
<apeiros> you said that array is defined in one place, like `PermittedParams = [:name, :tip, {:answers_attributes=>[:id, :name]}, {:media_attributes=>[:link]}]`?
<ule> if I have media_attributes[:link] then I'll get this link and update my db
cdg has quit [Ping timeout: 260 seconds]
Jayson_Virissimo has joined #ruby
<ule> If I do: my_data_structure_var[:media_attributes]
<ule> *** TypeError Exception: no implicit conversion of Symbol into Integer
<matthewd> ule: What is the high-level thing you're doing?
<apeiros> well, I want to do other things and answers roll in slowly, so here is my assumption:
<apeiros> My suggestion would be to do: `PermittedMediaParams = {:media_attributes=>[:link]}; PermittedParams = [:name, :tip, {:answers_attributes=>[:id, :name]}, PermittedMediaParams]
<apeiros> you want to keep that information in one place, hence you try to extract from PermittedParams
<apeiros> and then use PermittedMediaParams directly in the places you need it - instead of extracting.
* apeiros around but potentially not attentive
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patientj has left #ruby [#ruby]
Kug3lis has joined #ruby
<ule> I can definitelly refactor this data structure
<ule> but that's not what I want
<ule> I want to just do something like foo[:media_attributes] and receive :link
dionysus69 has joined #ruby
<matthewd> ule: ?
sepp2k has joined #ruby
<apeiros> Array#find, but IMO a bad idea. but then again, my knowledge and understanding of your problem scope are limited.
bvcosta has joined #ruby
<ule> .grep(Hash).select { |x| x[:media_attributes] }[0][:media_attributes]
<ule> there we go
<ule> matthewd: sorry, I was trying some codes here..
PatrikasZvaigzde has joined #ruby
<ule> apeiros matthewd hexian elomatreb thanks!
statu has joined #ruby
<statu> hi all!
<statu> I have a doubt about Capistrano. I'm not sure if this is the correct place. If it isn't, sorry!
<statu> I have Rake task imported. If I run `cap -T` I can see it but I want to run it as part of the deploys. Just before deploy:updated. I tried adding Rake::Task['deploy:updated'].prerequisites.push('my:task') in deploy.rb but it does not execute it.
marxarelli has joined #ruby
Coldblackice has joined #ruby
Renich has joined #ruby
marxarelli has quit [Client Quit]
KeyJoo has joined #ruby
mrconfused has joined #ruby
mim1k has joined #ruby
roshanavand has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Joufflu_ has quit [Ping timeout: 246 seconds]
PresidentBiscuit has quit []
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
nowhere_man has quit [Read error: Connection reset by peer]
nowhereman has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
nitric has joined #ruby
pb122 has quit [Read error: Connection reset by peer]
cdg has joined #ruby
nowhereman has quit [Remote host closed the connection]
chopin has joined #ruby
rohitpaulk has joined #ruby
jgt3 has joined #ruby
duderonomy has quit [Ping timeout: 255 seconds]
nanoz has joined #ruby
nanoz has quit [Changing host]
nanoz has joined #ruby
al2o3-cr has joined #ruby
SaschaVoid has quit [Quit: bieeeeeere]
jgt3 has quit [Ping timeout: 260 seconds]
mim1k has quit [Read error: Connection reset by peer]
chopin has quit []
Jayson_Virissimo has quit []
mikecmpb_ has quit [Ping timeout: 240 seconds]
andikr has quit [Remote host closed the connection]
marxarelli has joined #ruby
cdg has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
Kneecaps has left #ruby [#ruby]
Renich has quit [Ping timeout: 246 seconds]
ldnunes has joined #ruby
Renich has joined #ruby
pb122 has joined #ruby
cyclonis has quit [Ping timeout: 260 seconds]
SeepingN has joined #ruby
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
synthroid has joined #ruby
cdg has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
marr has joined #ruby
mrconfused has quit [Ping timeout: 255 seconds]
uZiel has quit [Ping timeout: 248 seconds]
SilentNinja1 has joined #ruby
[Butch] has joined #ruby
BTRE has joined #ruby
GodFather has joined #ruby
julian is now known as alamar
haylon has quit [Read error: Connection reset by peer]
ledestin has joined #ruby
haylon has joined #ruby
frem has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
my123_ is now known as my123
ahrs has quit [Remote host closed the connection]
nanoz has quit [Quit: <3]
ahrs has joined #ruby
hahuang65 has joined #ruby
Beams has quit [Quit: .]
haylon has quit [Ping timeout: 240 seconds]
sds__ has joined #ruby
<Authenticator> I'm using Typhoeus (libcurl based) to make multiple Mutual-TLS connections to the same server. However, I need to connect with two sets of client certs and Typhoeus reuses the connection between them, meaning that all calls come from the same "user". I can't even get forbid_reuse to work, but I don't want that anyways. I want two separate connections both using keepalive properly.
cyclonis has joined #ruby
<sds__> i'm facing an issue with the fonction sock.put (related to the metasploit framework)
<sds__> it seems like the script just hang here
glejeune has quit [Ping timeout: 255 seconds]
<sds__> is there something to do in order to make it work? could it be a permission issue, network, etc?
<SilentNinja1> Hi Does Anyone know how I get Semantic Logger working? I already included the required gems semantic_logger
FastJack has quit [Read error: Connection reset by peer]
<SilentNinja1> include SemanticLogger::Loggable
renchan has quit [Quit: Leaving...]
<SilentNinja1> in the Class
<SilentNinja1> and call logger.info(" This is a message")
balazs has quit [Ping timeout: 260 seconds]
FastJack has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Authenticator> SilentNinja1: What fails? Do you just not see the logs anywhere?
cyclonis has quit [Ping timeout: 258 seconds]
jackjackdripper has joined #ruby
Renich has quit [Ping timeout: 268 seconds]
bash2 has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
romank has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgr has quit [Ping timeout: 246 seconds]
Renich has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 246 seconds]
marxarelli has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
gusrub has joined #ruby
Cohedrin has joined #ruby
nickjj_ has joined #ruby
balazs has joined #ruby
<SilentNinja1> yeah, I don't see any logs
snath has joined #ruby
<SilentNinja1> I do see the log file created
<SilentNinja1> I put the following in the config/application.rb file
balazs_ has joined #ruby
jgt3 has joined #ruby
nickjj_ has quit [Client Quit]
synthroid has joined #ruby
<SilentNinja1> I included the semantic_logger gem and awesome_print
<SilentNinja1> since I'm running the older version of Rails
<SilentNinja1> version 3.2.22.2
balazs has quit [Ping timeout: 260 seconds]
MrBismuth has joined #ruby
<SilentNinja1> so rails_semantic_logger only work on Rails 4.2 or higher?
jenrzzz has quit [Ping timeout: 255 seconds]
jgt3 has quit [Ping timeout: 246 seconds]
jcao219 has quit [Ping timeout: 240 seconds]
GinoMan has quit [Quit: Leaving]
bkxd has joined #ruby
ikoma has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<SilentNinja1> works from console but not in App
<Authenticator> SilentNinja1: Yeah, I just tried it in Pry and it works for me. Dunno about Rails.
<SilentNinja1> If I set logger = SemanticLogger['MyClass'], does that mean I only need to include
duderonomy has joined #ruby
<SilentNinja1> include SemanticLogger::Loggable
<SilentNinja1> for all the Classes I want to call the logger?
rohitpaulk has quit [Ping timeout: 240 seconds]
<Authenticator> That seems to be all you need to do.
bkxd has quit [Ping timeout: 255 seconds]
bvcosta has quit [Remote host closed the connection]
[Butch]_ has joined #ruby
[Butch]_ has quit [Client Quit]
jobewan has joined #ruby
kies has quit [Ping timeout: 246 seconds]
[Butch]_ has joined #ruby
[Butch] has quit [Ping timeout: 240 seconds]
[Butch]_ is now known as [Butch]
<SilentNinja1> Yeah, works from Rails Console, but not in my app
<SilentNinja1> am I missing anything from the config/application.rb settings?
<Authenticator> Sorry, I don't know the Rails side of it.
dcunit3d has quit [Ping timeout: 246 seconds]
jackjackdripper has quit [Read error: Connection reset by peer]
vuoto has joined #ruby
jackjackdripper has joined #ruby
mrconfused has joined #ruby
Guest50852 has quit [Remote host closed the connection]
statu has quit [Quit: Leaving]
cyclonis has joined #ruby
cfec0b8d has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
vuoto has quit [Client Quit]
gregf_ has quit [Ping timeout: 260 seconds]
Otti has joined #ruby
hexian has quit [Quit: Page closed]
tweezer has joined #ruby
cyclonis has quit [Ping timeout: 246 seconds]
davic has quit [Quit: Connection closed for inactivity]
jackjackdripper1 has joined #ruby
jgnagy has joined #ruby
__Yiota has joined #ruby
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
jackjackdripper has quit [Ping timeout: 260 seconds]
taurgal has joined #ruby
bathtub_shark has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
glejeune has joined #ruby
jackjackdripper1 has quit [Ping timeout: 268 seconds]
dcunit3d has joined #ruby
Bock has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
chalkmonster has quit [Quit: Daddy's flown, 'cross the ocean.]
ostera has joined #ruby
ostera has quit [Client Quit]
bathtub_shark has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
mikecmpbll has joined #ruby
Ishido has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
tweezer has quit [Quit: Mutter: http://www.mutterirc.com]
jcao219 has joined #ruby
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
dionysus69 has quit [Remote host closed the connection]
cyclonis has joined #ruby
rohitpaulk has joined #ruby
nankyokusei has joined #ruby
bvcosta has joined #ruby
dionysus69 has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tjbiddle has joined #ruby
rohitpaulk has quit [Ping timeout: 246 seconds]
cjhowe7 has joined #ruby
SilentNinja1 has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
cyclonis has quit [Ping timeout: 240 seconds]
cyclonis has joined #ruby
minimalism has quit [Remote host closed the connection]
minimalism has joined #ruby
petruff has quit [Ping timeout: 246 seconds]
antgel has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
rohitpaulk has joined #ruby
rkazak has joined #ruby
hobodave has quit [Ping timeout: 246 seconds]
hobodave_ has joined #ruby
HoierM has quit [Ping timeout: 246 seconds]
aufi has joined #ruby
vali has joined #ruby
glejeune has quit [Ping timeout: 255 seconds]
aufi has quit [Client Quit]
dcunit3d has quit [Ping timeout: 260 seconds]
kurajber has joined #ruby
rohitpaulk has quit [Remote host closed the connection]
kurajber has quit [Changing host]
kurajber has joined #ruby
blackwind_123 has joined #ruby
swills has joined #ruby
haylon has joined #ruby
dcunit3d has joined #ruby
jcao219 has quit [Ping timeout: 246 seconds]
taurgal has quit [Ping timeout: 255 seconds]
rkazak has quit [Quit: Sleep.....ing....]
<haylon> When using Thor, is there a way to make it depend on another Thor task being ran first, similar to Rake's dependency thing?
HoierM has joined #ruby
LastWhisper____ has joined #ruby
jackjackdripper has joined #ruby
im0nde has joined #ruby
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
Otti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
glejeune has joined #ruby
kies has joined #ruby
<patarr> Hi all. If I have a gem method that takes a block like Gem.do_thing(p1, p2, p3, p4) do |f| ...., how can I create an alias for this? All the code in the file calls this with the same arguments, so I want to DRY it up
ur5us has joined #ruby
muelleme has joined #ruby
<patarr> I don't know how to create a method that receives a block and then passes that block to the call within it
<apeiros> alias existing_name new_name
<matthewd> patarr: &block
<apeiros> and ^ if you actually want to do more than just alias
<patarr> apeiros: afaik, that only helps me alias a method, but not the call with arguments
<apeiros> ah, you indeed don't want an alias then
jgt3 has joined #ruby
<patarr> matthewd: so let's say I defined my_method(&block). Inside, I will call Gem.do_thing(1,2..) block ?
al2o3-cr has quit [Quit: WeeChat 1.8]
<apeiros> do_thing(1, 2, &block)
jgt3 has quit [Ping timeout: 255 seconds]
kies has quit [Ping timeout: 255 seconds]
hobodave_ has quit [Quit: Computer has gone to sleep.]
dennisvennink has joined #ruby
<patarr> apeiros: do I need to include the &? What does that do?
<apeiros> it tells ruby that it's the block argument
ikoma has quit [Remote host closed the connection]
jgnagy has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
ikoma has joined #ruby
bvcosta has quit [Remote host closed the connection]
<dennisvennink> I'm trying to get a list of all available objects (in 2.4.1). `Object.const_get` does the trick, but prints deprecation warnings for ::Fixnum, ::Bignum, etc. Is there a workaround?
<apeiros> use :Integer instead
<patarr> apeiros: thanks that worked
<apeiros> also const_get certainly does not get you all available objects
<eam> all objects or all classes?
<apeiros> ObjectSpace.each_object does
<apeiros> eam: not even the latter
<eam> apeiros: oh I agree, just trying to help find the right question
<apeiros> cost_get is about constants, what they reference is irrelevant
<apeiros> I see, makes sense I guess.
<matthewd> You could also just turn off the warnings :)
<matthewd> dennisvennink: So yeah, really depends what you actually need
<dennisvennink> My bad. I meant `Object.constants`. `ObjectSpace.each_object` does the trick and doesn't print deprecation warnings. :—)
<apeiros> o0
<apeiros> I do have the impression that you're doing it wrong
Otti has joined #ruby
<apeiros> but since I don't exactly know what you want to do…
bvcosta has joined #ruby
<dennisvennink> I should have worded it better. Problem is fixed though. Thanks. ;—)
hutch34 has quit [Ping timeout: 240 seconds]
<apeiros> "fixed". well, ok.
cyclonis has quit [Ping timeout: 240 seconds]
nhhc has joined #ruby
kies has joined #ruby
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
bvcosta has quit [Remote host closed the connection]
HoierM has quit [Ping timeout: 240 seconds]
<dennisvennink> `Object.constants` contains deprecated constants of deprecated classes. That's all.
taurgal has joined #ruby
arup_r has joined #ruby
bvcosta has joined #ruby
blackwind_123 has quit [Quit: On the other hand, you have different fingers.]
<arup_r> I am using savon gem. And getting error https://gist.github.com/aruprakshit/bcb8510f9f19071e6af19803d85315f2 .. Any idea what I need to fix?
belmoussaoui_ has joined #ruby
belmoussaoui has quit [Ping timeout: 255 seconds]
ikoma has quit [Quit: ikoma]
nankyokusei has quit [Remote host closed the connection]
jamesaxl has quit [Read error: Connection reset by peer]
<patarr> Has anyone ever had problems with Dir.mktmpdir? I keep getting an error like so: #<Errno::EISDIR: Is a directory @ rb_sysopen - /var/folders/8s/c8f1
bvcosta has quit [Remote host closed the connection]
<patarr> (rest of the path truncated - it looks random)
jamesaxl has joined #ruby
cyclonis has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
sagax has quit [Read error: Connection reset by peer]
dionysus69 has quit [Remote host closed the connection]
kies has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
hutch34 has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
cdg_ has joined #ruby
jamesaxl has joined #ruby
<centrx> patarr: Did you do a search online for that error message?
Otti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
muelleme has quit [Ping timeout: 246 seconds]
hobodave has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
cyclonis has quit [Ping timeout: 255 seconds]
bvcosta has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
cyclonis has joined #ruby
bvcosta has quit [Remote host closed the connection]
taurgal has quit [Ping timeout: 246 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jenrzzz has joined #ruby
<arup_r> nvm I solved it
Dry_Lips has quit [Quit: ZNC 1.6.3 - http://znc.in]
<patarr> centrx: sure did. Turns out I wasn't able to reason about why it was happening because the stacktrace was all jacked up due to it being in a block
<patarr> That's my one gripe with blocks >:(
p0p0pr37 has quit [Ping timeout: 268 seconds]
vondruch has quit [Client Quit]
vondruch has joined #ruby
belmoussaoui has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nadir has quit [Quit: Connection closed for inactivity]
belmoussaoui_ has quit [Ping timeout: 255 seconds]
cdg has joined #ruby
kies has joined #ruby
RobertBirnie has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
cdg_ has quit [Ping timeout: 246 seconds]
duderonomy has quit [Ping timeout: 245 seconds]
arup_r has quit []
duderono_ has joined #ruby
dc2 has joined #ruby
mrconfused has quit [Ping timeout: 246 seconds]
nowhere_man has joined #ruby
vondruch has quit [Quit: vondruch]
ur5us has joined #ruby
dcunit3d has quit [Ping timeout: 246 seconds]
__Yiota has joined #ruby
vondruch has joined #ruby
DEac- has quit [Quit: leaving]
vondruch has quit [Client Quit]
vondruch has joined #ruby
nalread has quit [Ping timeout: 246 seconds]
mrconfused has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
nowhere_man has quit [Remote host closed the connection]
DEac- has joined #ruby
__Yiota has quit [Client Quit]
belmoussaoui_ has joined #ruby
theunraveler has joined #ruby
ejnahc has quit [Ping timeout: 258 seconds]
bvcosta has joined #ruby
ejnahc has joined #ruby
__Yiota has joined #ruby
belmoussaoui has quit [Ping timeout: 258 seconds]
lxsameer has joined #ruby
sagax has joined #ruby
nowhere_man has joined #ruby
__Yiota has quit [Client Quit]
bvcosta has quit [Ping timeout: 240 seconds]
vali has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
al2o3-cr has joined #ruby
nowhere_man has quit [Quit: Konversation terminated!]
nowhere_man has joined #ruby
roychri has quit [Ping timeout: 240 seconds]
belmoussaoui has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
sspreitz has quit [Ping timeout: 246 seconds]
poloych has joined #ruby
theunraveler has quit []
nowhereman has joined #ruby
brent__ has quit [Remote host closed the connection]
blackmesa has joined #ruby
mahlon has quit [Ping timeout: 240 seconds]
belmoussaoui_ has quit [Ping timeout: 246 seconds]
poloych has quit [Remote host closed the connection]
mahlon has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
rikkipitt has joined #ruby
oliv_____ has joined #ruby
rikkipitt has quit [Client Quit]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has quit []
__Yiota has joined #ruby
al2o3-cr has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
brent__ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
belmoussaoui_ has joined #ruby
Xiti has quit [Quit: Xiti]
[Butch] has quit [Quit: I'm out . . .]
__Yiota has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
belmoussaoui has quit [Ping timeout: 240 seconds]
__Yiota has quit [Client Quit]
belmoussaoui has joined #ruby
Axy has quit [Read error: Connection reset by peer]
t-recx has joined #ruby
belmoussaoui_ has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
Mia has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Read error: Connection reset by peer]
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mia has joined #ruby
Xiti has joined #ruby
jenrzzz has joined #ruby
ldnunes has quit [Quit: Leaving]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mia has quit [Read error: Connection reset by peer]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
SilentNinja1 has joined #ruby
<SilentNinja1> hi is there a way to make stdout goto Semantic Logger? Thanks
lazyatom has joined #ruby
DEac- has quit [Quit: leaving]
__Yiota has quit [Client Quit]
jgt3 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
<apeiros> if semantic logger provides a proper interface, probably something like $stdout = Semantic::Logger.new
<apeiros> don't they have docs describing that?
DEac- has joined #ruby
Renich has quit [Quit: Renich]
DEac- has quit [Client Quit]
kies has quit [Ping timeout: 260 seconds]
faelkle has joined #ruby
DEac- has joined #ruby
nhhc has quit [Remote host closed the connection]
Pierreb|home has joined #ruby
<SilentNinja1> OK thanks
Talltree has quit [Ping timeout: 255 seconds]
dennisvennink has joined #ruby
dennisvennink has quit [Read error: Connection reset by peer]
Talltree has joined #ruby
dennisvennink has joined #ruby
dennisvennink has quit [Read error: Connection reset by peer]
dances_with_taco has joined #ruby
<SilentNinja1> didn't see one for for stdout
dennisvennink has joined #ruby
<SilentNinja1> actually they do have it. all good thanks!
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nahra has quit [Remote host closed the connection]
nahra has joined #ruby
ascarter has joined #ruby
marxarelli is now known as marxarelli|afk
mim1k has joined #ruby
t-recx has quit [Ping timeout: 260 seconds]
kurajber has quit [Quit: ..]
jgnagy has joined #ruby
vcavallo has quit [Remote host closed the connection]
haylon has quit [Remote host closed the connection]
nowhere_man has joined #ruby
haylon has joined #ruby
tomphp has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
jgnagy has quit [Ping timeout: 255 seconds]
jackjackdripper has joined #ruby
centrx has quit [Remote host closed the connection]
faelkle has quit [Quit: Textual IRC Client: www.textualapp.com]
nowhereman has quit [Ping timeout: 240 seconds]
haylon has quit [Ping timeout: 246 seconds]
moei has quit [Quit: Leaving...]
HoierM has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
DTZUZU has quit [Ping timeout: 268 seconds]
LastWhisper____ has joined #ruby
nowhere_man has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 240 seconds]
kies has joined #ruby
dances_with_taco has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
DTZUZU has joined #ruby
ddffg has quit [Ping timeout: 268 seconds]
herbmillerjr has quit [Quit: Konversation terminated!]
hobodave has quit [Quit: Computer has gone to sleep.]
__Yiota has joined #ruby
mrconfused has quit [Ping timeout: 246 seconds]
chouhoulis has quit [Remote host closed the connection]
jgt3 has quit [Ping timeout: 255 seconds]
nankyokusei has quit [Ping timeout: 246 seconds]
RobertBi_ has joined #ruby
hahuang65 has joined #ruby
hashrocket has quit [Quit: Connection closed for inactivity]
dances_with_taco has joined #ruby
nertzy has joined #ruby
RobertBirnie has quit [Ping timeout: 240 seconds]
oliv_____ has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
oliv_____ has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
oliv_____ has quit [Remote host closed the connection]
t-recx has joined #ruby
olivi____ has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
god has joined #ruby
god is now known as Guest50751
jgt3 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Guest50751 has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
nowhere_man has joined #ruby
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
AnoHito_ has quit [Quit: Leaving]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SilentNinja1 has quit [Ping timeout: 246 seconds]
olivi____ has quit [Ping timeout: 240 seconds]
<al2o3-cr> >> 2.3.remainder(0.6) == 2.3-0.6*(2.3/0.6)
<ruby[bot]> al2o3-cr: # => false (https://eval.in/812961)
<al2o3-cr> why oh why oh why
bvcosta has joined #ruby
<al2o3-cr> >> 2.3.remainder(0.6) == 2.3-0.6*(2.3/0.6).truncate
<ruby[bot]> al2o3-cr: # => false (https://eval.in/812962)
<al2o3-cr> why oh why oh why
<apeiros> because floats
hashrocket has joined #ruby
<apeiros> and because you should never ever do Float#==
<al2o3-cr> why exist then?
<apeiros> because ruby is not about protecting your feet
<al2o3-cr> lol :P nice call
<apeiros> if you want to shoot them, ruby will gladly hand you a rocket launcher for better effect.
mikecmpbll has quit [Quit: inabit. zz.]
Emmanuel_Chanel has quit [Quit: Leaving]
KeyJoo has quit [Ping timeout: 240 seconds]
<al2o3-cr> apeiros: how to get the bit reprentation of a double?
<apeiros> pack
bvcosta has quit [Remote host closed the connection]
<al2o3-cr> sprintf?
<apeiros> not sure which letter it was, ri will help
<apeiros> wouldn't know a format with sprintf
jackjackdripper has quit [Quit: Leaving.]
<al2o3-cr> apeiros: how can i be sure with pack?
DEac- has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
<al2o3-cr> what i'm doing is this
<apeiros> >> [Math::PI].pack("G").unpack("B*")
<ruby[bot]> apeiros: # => ["0100000000001001001000011111101101010100010001000010110100011000"] (https://eval.in/812963)
<apeiros> I don't know how you can be sure
<al2o3-cr> >> "i love you man"
<ruby[bot]> al2o3-cr: # => "i love you man" (https://eval.in/812964)
<elomatreb> >> "the machine does not love you back"
<ruby[bot]> elomatreb: # => "the machine does not love you back" (https://eval.in/812965)
<al2o3-cr> :(
<al2o3-cr> the machine lol :p
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<al2o3-cr> apeiros: when you upgrading to 2.4?
<elomatreb> 2.4>> "test"
<elomatreb> :(
<apeiros> anytime soon
p0p0pr37 has joined #ruby
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Changing host]
bvcosta has joined #ruby
<al2o3-cr> apeiros: it's a 2 second job know, nice to know you're not on peice work ;)
<apeiros> classic
DEac- has joined #ruby
Emmanuel_Chanel has joined #ruby
amclain has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
<al2o3-cr> some cool features in 2.4#
amclain has joined #ruby
<al2o3-cr> (1..10).sum(*args)
knight33 has joined #ruby
<al2o3-cr> String#unpack1
<al2o3-cr> Hash#transform_values (should be keys too)
<al2o3-cr> Hash performance lookup
jobewan has quit [Quit: Textual IRC Client: www.textualapp.com]
bvcosta has quit [Ping timeout: 255 seconds]
marxarelli|afk is now known as marxarelli
<al2o3-cr> deprecation of this that and tother
mim1k has quit [Ping timeout: 240 seconds]
jcao219 has joined #ruby
<al2o3-cr> nice thing that was added was buffer arg to Array#pack decent
stormbytes has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
<al2o3-cr> b = "".b; [1,2].pack('C2', buffer: b); b #=> "\x01\x02"
<stormbytes> trying to grab a random array element, using arr.rand(0**arr.length) is there some other way to do this?
<al2o3-cr> stormbytes: sample
<stormbytes> array.sample?
<al2o3-cr> &ri Array#sample
<stormbytes> gracias
moei has joined #ruby
patarr has joined #ruby
<stormbytes> sample randomizes the elements and returns the entire array, is there a way to limit it just 1 elem?
<Radar> what
<al2o3-cr> stormbytes: no it doesn't
<Radar> >> [1,2,3,4,5].sample
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar> Come again?
<ruby[bot]> Radar: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<stormbytes> nevermind i used the nrg number as random seed
<stormbytes> brain fart..
<Radar> ruby[bot]: why do not hate me
<Radar> why do you*
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> it's eval.in which hates you, not ruby[bot] :(
segmond has joined #ruby
<al2o3-cr> apeiros: carc.in good shit
AnoHito has joined #ruby
<al2o3-cr> apeiros: crystal, ruby and C
<al2o3-cr> that error souldn't even be
glejeune has quit [Ping timeout: 255 seconds]
<al2o3-cr> something wrong with ruby[bot] i think
patarr has quit [Ping timeout: 246 seconds]
<al2o3-cr> NoMethodError:undefined method blah....
<al2o3-cr> wtf
<apeiros> it's an error in handling an error message from eval.in
snath has left #ruby ["Leaving"]
oliv_____ has joined #ruby
<al2o3-cr> something is wrong, terribly wrong apeiros
blackwind_123 has joined #ruby
<apeiros> certainly
DEac- has quit [Quit: leaving]
DEac- has joined #ruby
<al2o3-cr> that's not eval.in
<apeiros> *sob*, yeah, sure, you know better than me about my bot.
<al2o3-cr> i use eval.in
<al2o3-cr> i alse use carc.in
<al2o3-cr> *also
lxsameer has quit [Quit: WeeChat 1.7]
patarr has joined #ruby
<al2o3-cr> i'd double check
<apeiros> and I use a pillow now. toodles.
<al2o3-cr> apeiros: nice
Cohedrin has quit [Read error: Connection reset by peer]
<al2o3-cr> i mean nomethoderror for [] nilclass ???
<al2o3-cr> but whatever
patarr has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
<al2o3-cr> experience is making mistake and learning from them
hutch34 has joined #ruby
nadir has joined #ruby
Cohedrin has joined #ruby
herbmillerjr has joined #ruby
poloych has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
knight33 has quit [Ping timeout: 240 seconds]
mkaito has quit [Read error: Connection reset by peer]
t-recx has quit [Quit: t-recx]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
mkaito has joined #ruby
wnd has quit [Ping timeout: 240 seconds]
wnd has joined #ruby
oliv_____ has quit [Remote host closed the connection]
perniciouscaffei has joined #ruby
cschneid_ has quit [Remote host closed the connection]
im0nde has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
blackwind_123 has quit [Ping timeout: 240 seconds]
ascarter has quit [Remote host closed the connection]
dances_with_taco has quit [Remote host closed the connection]
ascarter has joined #ruby
bkxd has joined #ruby
dances_with_taco has joined #ruby
ascarter has quit [Client Quit]
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
shinnya has joined #ruby
zenguy_pc has quit [Ping timeout: 258 seconds]
lazyatom has quit [Quit: Connection closed for inactivity]
brent__ has quit [Ping timeout: 255 seconds]
zenguy_pc has joined #ruby
blackwind_123 has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
jgnagy has joined #ruby
hobodave has joined #ruby
im0nde has joined #ruby
zenguy_pc has quit [Ping timeout: 255 seconds]
jgnagy has quit [Ping timeout: 255 seconds]
lagweezle is now known as lagweezle_away
Fernando-Basso has quit [Quit: WeeChat 1.8]
roshanavand has quit [Quit: roshanavand]
knight33 has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
cfec0b8d has quit [Remote host closed the connection]
Cohedrin has joined #ruby
haylon has joined #ruby
alveric3 has joined #ruby
nowhere_man has quit [Ping timeout: 246 seconds]
cdg has quit [Remote host closed the connection]
nowhere_man has joined #ruby
SuperLag has quit [Quit: Unplanned maintenance. Hooray.]
alveric2 has quit [Ping timeout: 255 seconds]
haylon has quit [Client Quit]
nankyokusei has joined #ruby
jgt3 has quit [Ping timeout: 246 seconds]
ascarter has joined #ruby