« Back to channel list

#ruby - 04 December 2018

« Back 1 day Forward 1 day »
[00:02:11] jaddison: has joined #ruby
[00:22:55] hutch: has joined #ruby
[00:23:15] jaddison: has joined #ruby
[00:24:51] ph88: has joined #ruby
[00:25:22] ph88: i need to do some debugging on code, can i use a one liner to write a value to a file? i just want to see if some code executes
[00:26:17] phaul: ph88: sure you can. you have permission
[00:26:41] ph88: what's the code for it ?
[00:28:06] phaul: File.open('/tmp/blah', 'w') { |io| io.puts 'hello' }
[00:28:41] ph88: instead of 'hello' can i put any variable there ?
[00:28:54] ph88: do i need to import something first or will this always work ?
[00:29:12] phaul: this works without imports.
[00:29:23] kapil____: has joined #ruby
[00:29:56] ph88: file_put_contents('/tmp/blah', var_export('hello', true)); // same in php
[00:30:05] phaul: you can put anyting after io.puts, that can be converted into a string.
[00:31:55] dbz: has joined #ruby
[00:31:57] phaul: more info:
[00:32:03] phaul: &ri File.open
[00:32:04] rubydoc: https://ruby-doc.org/core-2.5.3/File.html#method-c-open
[00:34:54] phaul: &ri IO#puts
[00:34:54] rubydoc: https://ruby-doc.org/core-2.5.3/IO.html#method-i-puts
[00:40:25] jaddison: has joined #ruby
[00:50:29] jaddison: has joined #ruby
[00:51:32] AJA4350: has joined #ruby
[00:56:31] zenspider: has joined #ruby
[01:01:11] nchambers: has joined #ruby
[01:06:03] crankharder: has joined #ruby
[01:08:27] jaddison: has joined #ruby
[01:11:56] chimkan: has joined #ruby
[01:13:23] chimkan: has joined #ruby
[01:23:03] Cork: has joined #ruby
[01:37:45] TheBloke: has joined #ruby
[01:40:27] cnsvc: has joined #ruby
[01:46:57] graphene: has joined #ruby
[01:53:39] hutch: has joined #ruby
[01:56:03] bak1an: has joined #ruby
[01:58:29] hurricanehrndz: has joined #ruby
[02:08:00] arescorpio: has joined #ruby
[02:08:33] Azure: has joined #ruby
[02:09:12] orbyt_: has joined #ruby
[02:12:27] crankharder: has joined #ruby
[02:13:03] hurricanehrndz: has joined #ruby
[02:16:55] DTZUZO: has joined #ruby
[02:18:54] skweek: has joined #ruby
[02:30:44] hutch: has joined #ruby
[02:35:15] paulscoder: has joined #ruby
[02:40:13] white_lilies: has joined #ruby
[02:49:50] raulp: has joined #ruby
[02:57:41] hurricanehrndz: has joined #ruby
[03:30:45] mniip: has joined #ruby
[03:32:34] jaddison: has joined #ruby
[03:33:17] graphene: has joined #ruby
[03:41:24] akemot: has joined #ruby
[03:46:14] akaiiro: has joined #ruby
[03:46:47] za1b1tsu_: has joined #ruby
[03:53:44] dbz: has joined #ruby
[04:03:44] znz_jp: has joined #ruby
[04:03:44] \void: has joined #ruby
[04:08:14] akemot: has joined #ruby
[04:09:26] braincrash: has joined #ruby
[04:24:21] Exuma: has joined #ruby
[04:27:55] dbz: has joined #ruby
[04:31:00] hurricanehrndz: has joined #ruby
[04:33:05] za1b1tsu: has joined #ruby
[04:34:00] dbz: has joined #ruby
[04:40:20] patr0clus: has joined #ruby
[04:47:44] ivanskie: has joined #ruby
[04:56:44] dbz: has joined #ruby
[05:05:37] mr_rich101: has joined #ruby
[05:06:00] hutch: has joined #ruby
[05:18:55] dbz: has joined #ruby
[05:24:42] DTZUZO: has joined #ruby
[05:26:38] tdy: has joined #ruby
[05:28:24] KeyJoo: has joined #ruby
[05:32:26] sarink: has joined #ruby
[05:37:16] perique: has joined #ruby
[05:42:15] sauvin: has joined #ruby
[05:45:42] dbz: has joined #ruby
[05:52:19] reber: has joined #ruby
[05:57:49] cnsvc: has joined #ruby
[06:05:55] conta: has joined #ruby
[06:09:13] Dbugger: has joined #ruby
[06:09:30] gix: has joined #ruby
[06:14:41] Nicmavr: has joined #ruby
[06:32:08] aupadhye: has joined #ruby
[06:48:04] hurricanehrndz: has joined #ruby
[06:48:35] conta: has joined #ruby
[07:05:11] jcarl43: has joined #ruby
[07:13:49] roshanavand: has joined #ruby
[07:15:24] jetchisel: has joined #ruby
[07:19:49] aupadhye: has joined #ruby
[07:22:16] Furai: has joined #ruby
[07:38:49] \void: has joined #ruby
[07:45:36] peirama: has joined #ruby
[07:46:14] dbugger_: has joined #ruby
[08:00:51] peteretep: has joined #ruby
[08:10:23] piks3l: has joined #ruby
[08:12:10] clemens3: has joined #ruby
[08:12:30] dinfuehr_: has joined #ruby
[08:13:41] cnsvc: has joined #ruby
[08:19:56] flips: has joined #ruby
[08:23:02] bobdobbs: has joined #ruby
[08:24:51] ur5us: has joined #ruby
[08:45:07] aufi: has joined #ruby
[08:48:31] jsc: has joined #ruby
[09:03:22] sarink: has joined #ruby
[09:07:03] perique: has joined #ruby
[09:37:50] lucasb: has joined #ruby
[09:40:30] lxsameer: has joined #ruby
[09:42:47] roshanavand1: has joined #ruby
[10:06:36] waheedi: has joined #ruby
[10:06:59] LinuxKnight: has joined #ruby
[10:16:12] cnsvc: has joined #ruby
[10:22:35] Fusl: has joined #ruby
[10:30:06] bijan_: has joined #ruby
[10:34:13] saTchymoto: has joined #ruby
[10:34:22] status402: has joined #ruby
[10:40:06] leitz: has joined #ruby
[10:42:33] Fusl: has joined #ruby
[10:56:19] mangold: has joined #ruby
[11:20:18] bijan_: has joined #ruby
[11:33:33] Puffball: has joined #ruby
[11:33:43] bijan_: has joined #ruby
[11:34:24] piks3l: has joined #ruby
[11:35:26] bijan_: has joined #ruby
[11:40:44] cnsvc: has joined #ruby
[11:45:52] saTchymoto: has joined #ruby
[11:47:38] bijan_: has joined #ruby
[11:50:25] phaul: has joined #ruby
[11:52:34] bijan_: has joined #ruby
[11:59:44] nowhere_man: has joined #ruby
[12:01:15] keden: has joined #ruby
[12:01:18] bijan_: has joined #ruby
[12:12:54] timmow: has joined #ruby
[12:15:00] bijan_: has joined #ruby
[12:15:24] alem0lars: has joined #ruby
[12:16:17] roshanavand1: has joined #ruby
[12:19:35] bijan__: has joined #ruby
[12:23:00] dionysus69: has joined #ruby
[12:23:57] bijan_: has joined #ruby
[12:31:47] AJA4350: has joined #ruby
[12:32:12] bijan_: has joined #ruby
[12:35:55] roshanavand1: has joined #ruby
[12:37:02] bijan_: has joined #ruby
[12:37:46] conta: has joined #ruby
[12:39:22] conta: has joined #ruby
[12:44:09] mostlybadfly: has joined #ruby
[12:45:21] bijan__: has joined #ruby
[12:46:59] reber: has joined #ruby
[12:49:38] bijan_: has joined #ruby
[12:50:37] mikecmpbll: has joined #ruby
[13:00:36] saTchymoto: has joined #ruby
[13:07:25] bijan_: has joined #ruby
[13:09:56] cnsvc: has joined #ruby
[13:11:10] bak1an: has joined #ruby
[13:12:18] bijan_: has joined #ruby
[13:23:46] akemot: has joined #ruby
[13:39:44] peirama: has joined #ruby
[13:43:08] reber: has joined #ruby
[13:48:47] nolanv: has joined #ruby
[13:49:51] bmurt: has joined #ruby
[13:52:24] gheegh: has joined #ruby
[13:55:37] queip: has joined #ruby
[13:59:56] hutch: has joined #ruby
[14:07:23] status402: has joined #ruby
[14:13:44] jsral_: has joined #ruby
[14:17:45] eclm: has joined #ruby
[14:22:00] crankharder: has joined #ruby
[14:24:14] bijan_: has joined #ruby
[14:28:47] bijan_: has joined #ruby
[14:31:08] jcalla: has joined #ruby
[14:34:40] cnsvc: has joined #ruby
[14:36:24] bijan_: has joined #ruby
[14:38:06] awkwords: has joined #ruby
[14:40:45] bijan__: has joined #ruby
[14:43:50] Inline: has joined #ruby
[14:49:58] GodFather: has joined #ruby
[14:50:09] HailTheRobots_: has joined #ruby
[14:50:29] conta: has joined #ruby
[14:51:11] bijan_: has joined #ruby
[14:53:33] lxsameer: has joined #ruby
[14:55:54] bijan_: has joined #ruby
[14:59:12] bga57: has joined #ruby
[14:59:39] dbz: has joined #ruby
[15:01:26] nfk: has joined #ruby
[15:01:30] kapil____: has joined #ruby
[15:01:34] keden: has joined #ruby
[15:04:10] bijan_: has joined #ruby
[15:06:39] bijan_: has joined #ruby
[15:07:19] mangold: has joined #ruby
[15:10:36] Flonk: has joined #ruby
[15:15:51] akaiiro: has joined #ruby
[15:18:37] polishdub: has joined #ruby
[15:20:09] mangold: has joined #ruby
[15:22:23] nchambers: has joined #ruby
[15:24:03] gnufied: has joined #ruby
[15:28:06] conta: has joined #ruby
[15:40:00] gnufied: has joined #ruby
[15:43:14] conta: has joined #ruby
[15:43:17] graphene: has joined #ruby
[15:48:34] jottr: has joined #ruby
[15:50:23] conta: has joined #ruby
[15:53:53] rippa: has joined #ruby
[15:58:42] cow[moo]: has joined #ruby
[15:59:37] conta2: has joined #ruby
[16:00:20] Arkantos: has joined #ruby
[16:05:04] ivanskie: has joined #ruby
[16:13:40] cnsvc: has joined #ruby
[16:15:02] Blaguvest: has joined #ruby
[16:16:00] code_zombie: has joined #ruby
[16:26:11] jaddison: has joined #ruby
[16:28:08] BTRE: has joined #ruby
[16:42:38] Rapture: has joined #ruby
[16:44:51] cthulchu_: has joined #ruby
[16:48:00] HailTheRobots: has joined #ruby
[16:49:55] conta: has joined #ruby
[16:52:47] Renich: has joined #ruby
[16:59:03] bhaak: has joined #ruby
[17:00:48] gigetoo: has joined #ruby
[17:02:35] gix: has joined #ruby
[17:04:27] ellcs: has joined #ruby
[17:06:24] Lytol: has joined #ruby
[17:06:59] conta: has joined #ruby
[17:11:16] graphene: has joined #ruby
[17:12:25] awkwords: has joined #ruby
[17:23:01] Xiti: has joined #ruby
[17:24:45] hurricanehrndz: has joined #ruby
[17:25:17] \void: has joined #ruby
[17:28:51] awkwords_: has joined #ruby
[17:35:57] bmurt: has joined #ruby
[17:37:58] awkwords: has joined #ruby
[17:38:32] lxsameer: has joined #ruby
[17:42:49] maryo: has joined #ruby
[17:49:59] blackswan: has joined #ruby
[17:50:09] ivanskie: has joined #ruby
[17:51:21] gigetoo: has joined #ruby
[17:55:15] kapil____: has joined #ruby
[18:02:07] jaddison: has joined #ruby
[18:03:02] mikecmpbll: has joined #ruby
[18:04:45] orbyt_: has joined #ruby
[18:05:09] jcalla: has joined #ruby
[18:11:20] nchambers: has joined #ruby
[18:14:00] cnsvc: has joined #ruby
[18:25:16] pskosinski: has joined #ruby
[18:26:08] amelliaa: has joined #ruby
[18:29:11] eckhardt_: has joined #ruby
[18:36:02] dbz: has joined #ruby
[18:39:08] jottr: has joined #ruby
[18:43:02] coderphive: has joined #ruby
[18:43:17] hurricanehrndz: has joined #ruby
[18:47:01] conta: has joined #ruby
[18:47:24] awkwords_: has joined #ruby
[18:49:11] awkwords_: has joined #ruby
[18:56:13] dbz: has joined #ruby
[18:58:09] \void: has joined #ruby
[19:02:30] [Butch]: has joined #ruby
[19:03:42] orbyt_: has joined #ruby
[19:04:02] conta: has joined #ruby
[19:05:17] ausmat: has joined #ruby
[19:14:49] awkwords: has joined #ruby
[19:16:13] blackswan: has joined #ruby
[19:18:54] peirama: has joined #ruby
[19:20:01] sarink: has joined #ruby
[19:22:13] graphene: has joined #ruby
[19:29:24] jottr: has joined #ruby
[19:29:37] graphene: has joined #ruby
[19:29:49] lxsameer: has joined #ruby
[19:40:18] Aqo: has joined #ruby
[19:44:35] orbyt_: has joined #ruby
[19:50:12] conta: has joined #ruby
[19:51:53] blackswan: has joined #ruby
[19:53:39] HailTheRobots: has joined #ruby
[19:54:29] HailTheRobots: has joined #ruby
[20:00:09] awkwords: has joined #ruby
[20:03:06] Renich: has joined #ruby
[20:08:50] orbyt_: has joined #ruby
[20:18:26] blackmesa: has joined #ruby
[20:24:19] cd: has joined #ruby
[20:28:22] Paraxial: has joined #ruby
[20:29:19] SeepingN: has joined #ruby
[20:30:17] Paraxial: has joined #ruby
[20:31:42] graphene: has joined #ruby
[20:33:37] Paraxial: has joined #ruby
[20:38:42] awkwords: has joined #ruby
[20:44:50] jottr: has joined #ruby
[20:46:11] orbyt_: has joined #ruby
[20:53:57] jaddison: has joined #ruby
[20:55:35] blackswan: has joined #ruby
[21:04:44] akem: has joined #ruby
[21:06:31] piks3l: has joined #ruby
[21:09:57] conta: has joined #ruby
[21:22:18] sarink: has joined #ruby
[21:23:40] hutch: has joined #ruby
[21:23:58] sarink: has joined #ruby
[21:26:25] brandonkal: has joined #ruby
[21:31:17] agent_white: has joined #ruby
[21:39:45] awkwords: has joined #ruby
[21:41:46] conta: has joined #ruby
[21:46:44] akem: has joined #ruby
[21:51:36] roshanavand: has joined #ruby
[21:56:39] GinoMan: has joined #ruby
[22:02:17] blackswan: has joined #ruby
[22:04:07] crankharder: has joined #ruby
[22:07:45] uplime: has joined #ruby
[22:09:12] RougeR: has joined #ruby
[22:09:24] nowhere_man: has joined #ruby
[22:10:16] orbyt_: has joined #ruby
[22:13:10] SeepingN_: has joined #ruby
[22:17:19] crankharder: has joined #ruby
[22:25:24] nowhereman: has joined #ruby
[22:33:49] cnsvc: has joined #ruby
[22:38:49] CrazyEddy: has joined #ruby
[22:40:36] keden: has joined #ruby
[22:48:43] mangold: has joined #ruby
[22:57:57] Renich_: has joined #ruby
[23:03:05] awkwords: has joined #ruby
[23:05:18] cthu|: has joined #ruby
[23:19:27] queip: has joined #ruby
[23:34:19] Renich_: has joined #ruby
[23:40:19] roshanavand: has joined #ruby
[23:42:10] agent_white: has joined #ruby
[23:45:25] hurricanehrndz: has joined #ruby
[23:54:46] kapil____: has joined #ruby
[23:58:51] awkwords: has joined #ruby