closer changed the topic of #ruby-core to: check the latest release candidate for 1.9.1 release ftp.ruby-lang.org:/home/yugui/ruby-1.9.1-r26021+1.tar.bz2
madgen has quit [Ping timeout: 246 seconds]
mkosaki has joined #ruby-core
Aethenelle has quit [Quit: Aethenelle]
<znz_jp> biff: [ruby-changes:42446] nobu:r54520 (trunk): test_io_m17n.rb: nil default internal encoding - http://mla.n-z.jp/?ruby-changes=42446
<znz_jp> biff: [ruby-changes:42447] nobu:r54521 (trunk): load.c: raise name before conversion - http://mla.n-z.jp/?ruby-changes=42447
<znz_jp> biff: [ruby-changes:42448] nobu:r54522 (trunk): assertions.rb: set default internal encoding - http://mla.n-z.jp/?ruby-changes=42448
rafaelfr_ has joined #ruby-core
rafaelfranca has quit [Ping timeout: 276 seconds]
travis-ci has joined #ruby-core
<travis-ci> The build was broken. by @nobu: See https://travis-ci.org/ruby/ruby/builds/121848592
travis-ci has left #ruby-core [#ruby-core]
Aethenelle has joined #ruby-core
mkosaki has quit [Ping timeout: 244 seconds]
Aethenelle has quit [Quit: Aethenelle]
mkosaki has joined #ruby-core
mkosaki has quit [Ping timeout: 276 seconds]
mkosaki has joined #ruby-core
<znz_jp> biff: [ruby-changes:42449] nobu:r54523 (trunk): load.c: fix r54521 - http://mla.n-z.jp/?ruby-changes=42449
<znz_jp> biff: [ruby-changes:42450] nobu:r54524 (trunk): ext/tk/extconf.rb: add newline - http://mla.n-z.jp/?ruby-changes=42450
travis-ci has joined #ruby-core
<travis-ci> The build is still failing. by @nobu: See https://travis-ci.org/ruby/ruby/builds/121859921
travis-ci has left #ruby-core [#ruby-core]
travis-ci has joined #ruby-core
<travis-ci> The build is still failing. by @nobu: See https://travis-ci.org/ruby/ruby/builds/121860228
travis-ci has left #ruby-core [#ruby-core]
nokada has quit [Remote host closed the connection]
nokada has joined #ruby-core
nokada has quit [Ping timeout: 244 seconds]
mkosaki has quit [Ping timeout: 244 seconds]
shinnya has quit [Ping timeout: 244 seconds]
madgen has joined #ruby-core
nagachika has joined #ruby-core
nagachik_ has joined #ruby-core
nagachika has quit [Ping timeout: 260 seconds]
nagachika has joined #ruby-core
nagachik_ has quit [Ping timeout: 240 seconds]
nagachika has quit [Remote host closed the connection]
nagachika has joined #ruby-core
nagachika has quit [Ping timeout: 244 seconds]
madgen has quit [Ping timeout: 240 seconds]
<znz_jp> biff: [ruby-changes:42451] ktsj:r54525 (trunk): * lib/ostruct.rb: [DOC] fix position of nodoc directive. - http://mla.n-z.jp/?ruby-changes=42451
travis-ci has joined #ruby-core
<travis-ci> The build is still failing. by @ktsj: See https://travis-ci.org/ruby/ruby/builds/121909486
travis-ci has left #ruby-core [#ruby-core]
<zzak> [n1colas, irc.freenode.net] o/
shinnya has joined #ruby-core
<zzak> [arup_r, irc.freenode.net] I am making an CSV file by following the instructions https://gist.github.com/aruprakshit/8aa691ab5146447aebaf61015937a73a . I am confused by 'Quote Character' and 'Quote Escape'. How should I mention it?
madgen has joined #ruby-core
enebo has joined #ruby-core
<zzak> [arup_r, irc.freenode.net] any opinion ?
madgen has quit [Ping timeout: 240 seconds]
madgen has joined #ruby-core
<zzak> [PapierKorb, irc.freenode.net] arup_r: The quote char and its escape char are part of the CSV RFC, I wouldn't mention it. Neither which line ending to use, the CSV lib should work with any. If not, I'd auto-detect that.
<zzak> [arup_r, irc.freenode.net] Yes, Papierkorb. Thanks.. I was reading the Ruby CSV lib. And seems the recommendations they gave to me is the standard. So need to mention explicitly.
<zzak> [arup_r, irc.freenode.net] *no need
<zzak> [PapierKorb, irc.freenode.net] arup_r: I'll just guess that people who're putting orders into that system have no clue what a "line ending" even is, less so what line feeds are and "what's that .. 0x0A binary thing even supposed to mean? Better call helpdesk"
enebo has quit [Quit: enebo]
<zzak> [arup_r, irc.freenode.net] ok.
<zzak> [PapierKorb, irc.freenode.net] arup_r: regarding UTF-8, that's a tricky one. MS Excel for example still doesn't use UTF-8 by default. Users have to select it manually, and often forget to do so
<zzak> [arup_r, irc.freenode.net] But, I mentioned it explicitly. I hope the who ever will read the CSV from their side will be having the same instructions,.. I will just create CSV and upload them to FTP server
<zzak> [arup_r, irc.freenode.net] I hope whoever**
<zzak> [PapierKorb, irc.freenode.net] arup_r: Either insist on UTF-8 for now, or use some kind of auto detection (Not many encodings to try), or just have a checkbox the user can click on when uploading saying "MS-Excel exported file" or similar
<zzak> [arup_r, irc.freenode.net] Papierkorb: how to use auto detection?
<zzak> [PapierKorb, irc.freenode.net] arup_r: Who is the user? Someone technical? Some MS excel guy from sales or some secretary?
<zzak> [arup_r, irc.freenode.net] yes sales team
<zzak> [PapierKorb, irc.freenode.net] arup_r: I've never done encoding auto detection in Ruby yet, sorry.
<zzak> [arup_r, irc.freenode.net] ok, np
<zzak> [PapierKorb, irc.freenode.net] I think the easiest "fix" would be having a checkbox the user clicks when it's UTF-8. Else, expect the CSV to contain the windows-12xx encoding.
<zzak> [PapierKorb, irc.freenode.net] I think that's what we did with something similar for the start
<zzak> [PapierKorb, irc.freenode.net] arup_r: something else, consider adding a random part to the path if you just put it into public/ without any ACL in front of it. Else, people can just enumerate over it to grab CSV files, worse, if two requests come in at the same time, they may override each other
<zzak> [PapierKorb, irc.freenode.net] arup_r: something like "tagg_#{Time.now.to_i}_#{rand 1..1_000_000}.csv" should be okay-ish. The real fix would be doing a permission check on download ;)
<zzak> [arup_r, irc.freenode.net] Papierkorb: 1 min.
<zzak> [arup_r, irc.freenode.net] Idea is I will pull data from DB, then store them into a public folder. And then FTP program will upload the file to FTP server, and delete from rails. Here is the code till now. I am working on the exception handling part. https://gist.github.com/aruprakshit/8aa691ab5146447aebaf61015937a73a . But your file name genration Idea i liked. I am going to do it like that.
<zzak> [PapierKorb, irc.freenode.net] arup_r: Then do NOT use the public/ folder if you don't want to have it accessible through HTTP
<zzak> [arup_r, irc.freenode.net] oh, yes if exception occurs, my slack program will notify them.
<zzak> [arup_r, irc.freenode.net] Ok then where to put these?
<zzak> [PapierKorb, irc.freenode.net] Anywhere you like. Create a new directory for it if there's nothing matching. Maybe a sub-directory in tmp/
<zzak> [arup_r, irc.freenode.net] this is to debug, I will remove them :) https://gist.github.com/aruprakshit/8aa691ab5146447aebaf61015937a73a#file-newordersuploader-rb-L29-L30
<zzak> [arup_r, irc.freenode.net] ok
enebo has joined #ruby-core
enebo has quit [Quit: enebo]
nagachika has joined #ruby-core
nagachik_ has joined #ruby-core
nagachika has quit [Ping timeout: 260 seconds]
enebo has joined #ruby-core
madgen has quit [Ping timeout: 252 seconds]
madgen has joined #ruby-core
nagachik_ has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
nagachika has joined #ruby-core
nagachika has quit [Remote host closed the connection]
nagachika has joined #ruby-core
nagachika has quit [Ping timeout: 248 seconds]
enebo has joined #ruby-core
enebo has quit [Quit: enebo]