00:04
orbyt_ has joined #ruby
00:05
Noxilex has quit [Ping timeout: 255 seconds]
00:09
kapil____ has quit [Quit: Connection closed for inactivity]
00:10
zachk has quit [Quit: Leaving]
00:23
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
00:24
s2013 has joined #ruby
00:27
code_zombie has quit [Quit: Leaving]
00:30
hightower2 has quit [Ping timeout: 245 seconds]
00:34
renich has joined #ruby
00:36
gix has quit [Ping timeout: 246 seconds]
00:39
renich has quit [Ping timeout: 246 seconds]
00:40
renich has joined #ruby
00:49
houhoulis has joined #ruby
00:51
bjpenn has quit [Ping timeout: 245 seconds]
00:53
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:55
s2013 has quit [Read error: Connection reset by peer]
00:55
m27frogy has quit [Read error: Connection reset by peer]
01:00
mangold has quit [Quit: This computer has gone to sleep]
01:01
kapil____ has joined #ruby
01:01
grilix has quit [Ping timeout: 258 seconds]
01:03
Azure has quit [Remote host closed the connection]
01:04
Azure has joined #ruby
01:14
gell5 has joined #ruby
01:16
grilix has joined #ruby
01:20
m27frogy has joined #ruby
01:21
mikecmpbll has quit [Quit: inabit. zz.]
01:31
imadper` has joined #ruby
01:33
imadper has quit [Ping timeout: 246 seconds]
01:36
imadper` has quit [Ping timeout: 272 seconds]
01:37
arescorpio has joined #ruby
01:38
orbyt_ has quit [Ping timeout: 246 seconds]
01:48
renich has quit [Ping timeout: 250 seconds]
01:50
renich has joined #ruby
01:55
Francisco has joined #ruby
01:57
Fr4n has quit [Read error: Connection reset by peer]
01:59
orbyt_ has joined #ruby
02:01
grvgr has quit [Quit: Connection closed for inactivity]
02:22
tdy2 has joined #ruby
02:24
tdy1 has quit [Ping timeout: 244 seconds]
02:29
bjpenn has joined #ruby
02:32
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:35
tdy3 has joined #ruby
02:35
teej has quit [Quit: Connection closed for inactivity]
02:37
Swyper has quit [Remote host closed the connection]
02:38
tdy2 has quit [Ping timeout: 246 seconds]
02:53
dviola has joined #ruby
02:53
uplime is now known as horselime
02:59
Swyper has joined #ruby
03:04
gigetoo has quit [Ping timeout: 245 seconds]
03:04
imadper has joined #ruby
03:12
dviola has quit [Quit: WeeChat 2.4]
03:16
cyberarm has quit [Ping timeout: 244 seconds]
03:23
arescorpio has quit [Quit: Leaving.]
03:31
teej has joined #ruby
03:34
postmodern has joined #ruby
03:39
Azure has quit [Ping timeout: 245 seconds]
03:41
mangold has joined #ruby
03:43
bjpenn has quit [Ping timeout: 246 seconds]
03:46
tdy3 is now known as tdy
03:54
segy has quit [Ping timeout: 246 seconds]
03:56
gigetoo has joined #ruby
03:56
ebbflowgo has quit [Quit: ebbflowgo]
03:59
brool has quit [Ping timeout: 252 seconds]
03:59
segy has joined #ruby
04:00
bambanx has joined #ruby
04:05
houhoulis has quit [Remote host closed the connection]
04:06
braincrash has quit [Quit: bye bye]
04:10
braincrash has joined #ruby
04:11
sauvin has joined #ruby
04:22
Nicmavr has quit [Read error: Connection reset by peer]
04:23
moei has joined #ruby
04:24
Nicmavr has joined #ruby
04:26
grilix has quit [Ping timeout: 245 seconds]
04:33
ur5us has quit [Remote host closed the connection]
04:34
stryek has quit [Quit: Connection closed for inactivity]
04:37
elcuervo has quit [Remote host closed the connection]
04:41
mic_mac has joined #ruby
04:47
mic_mac has quit [Quit: mic_mac]
04:47
mic_mac has joined #ruby
04:51
Devalo has joined #ruby
04:53
horselime is now known as uplime
04:55
Devalo has quit [Ping timeout: 246 seconds]
05:20
Swyper has quit [Remote host closed the connection]
05:21
bjpenn has joined #ruby
05:42
mic_mac has left #ruby [#ruby]
05:42
mic_mac has joined #ruby
05:45
dviola has joined #ruby
05:50
Inline has quit [Quit: Leaving]
06:06
renich_ has joined #ruby
06:06
reber has joined #ruby
06:07
renich has quit [Ping timeout: 255 seconds]
06:07
reber has quit [Remote host closed the connection]
06:08
reber has joined #ruby
06:09
renich_ is now known as renich
06:10
marz_d`ghostman has joined #ruby
06:15
laaron has joined #ruby
06:18
i1nfusion has quit [Remote host closed the connection]
06:19
i1nfusion has joined #ruby
06:20
aufi has joined #ruby
06:20
skwurl has joined #ruby
06:20
<
skwurl >
hey fairly active around here?
06:23
hightower2 has joined #ruby
06:23
conta has joined #ruby
06:23
<
skwurl >
working on sinatra app here. if i use datamapper.auto_migrate!, is it still necessary to use .finalize
06:29
Devalo has joined #ruby
06:32
nowhere_man has joined #ruby
06:33
gigetoo has quit [Ping timeout: 246 seconds]
06:36
mangold has quit [Quit: This computer has gone to sleep]
06:39
mangold has joined #ruby
06:39
hiroaki has quit [Ping timeout: 246 seconds]
06:40
Devalo has quit [Remote host closed the connection]
06:40
Devalo has joined #ruby
06:45
Devalo has quit [Ping timeout: 244 seconds]
06:46
gigetoo has joined #ruby
06:54
renich has quit [Quit: renich]
07:04
Dbugger has joined #ruby
07:10
aufi_ has joined #ruby
07:11
skwurl has quit [Quit: WeeChat 2.4]
07:14
aufi has quit [Ping timeout: 272 seconds]
07:14
r3m has quit [Quit: WeeChat 2.5-dev]
07:15
r3m has joined #ruby
07:18
mic_mac has quit [Quit: mic_mac]
07:18
tau has quit [Quit: k]
07:22
clemens3 has joined #ruby
07:22
mangold has quit [Quit: This computer has gone to sleep]
07:22
hahuang6| has joined #ruby
07:24
hahuang6- has quit [Ping timeout: 252 seconds]
07:27
dviola has quit [Quit: WeeChat 2.4]
07:29
i1nfusion has quit [Remote host closed the connection]
07:30
conta has quit [Quit: conta]
07:30
i1nfusion has joined #ruby
07:35
reber has quit [Remote host closed the connection]
07:41
clemens3 has quit [Ping timeout: 268 seconds]
07:45
jmcgnh has quit [Read error: Connection reset by peer]
07:49
jmcgnh has joined #ruby
07:50
voidwatch has joined #ruby
07:53
_joes_ has joined #ruby
07:57
grr12314 has quit [Remote host closed the connection]
07:57
grr12314 has joined #ruby
08:00
clemens3 has joined #ruby
08:01
andikr has joined #ruby
08:02
nowhere_man has quit [Ping timeout: 258 seconds]
08:05
SeepingN has quit [Read error: Connection reset by peer]
08:05
SeepingN has joined #ruby
08:08
laaron has joined #ruby
08:09
Noxilex has joined #ruby
08:11
Noxilex has quit [Client Quit]
08:14
schleppel has joined #ruby
08:17
postmodern has quit [Quit: Leaving]
08:20
TomyWork has joined #ruby
08:22
tdy has quit [Quit: WeeChat 1.9.1]
08:24
pabs has quit [Ping timeout: 244 seconds]
08:25
SeepingN has quit [Quit: The system is going down for reboot NOW!]
08:28
stooj has quit [Ping timeout: 244 seconds]
08:30
pabs has joined #ruby
08:31
suukim has joined #ruby
08:33
stooj has joined #ruby
08:37
Dbugger has quit [Ping timeout: 264 seconds]
08:39
alexeev_ has joined #ruby
08:42
mangold has joined #ruby
08:42
ur5us has joined #ruby
08:47
hightower2 has quit [Changing host]
08:47
hightower2 has joined #ruby
08:48
segy has quit [Ping timeout: 245 seconds]
08:53
segy has joined #ruby
08:56
bambanx has quit [Quit: Leaving]
09:00
ur5us has quit [Read error: Connection reset by peer]
09:00
ur5us has joined #ruby
09:00
GodFather has quit [Read error: Connection reset by peer]
09:01
GodFather has joined #ruby
09:12
dionysus69 has quit [Ping timeout: 268 seconds]
09:12
dan64 has joined #ruby
09:13
bjpenn has quit [Ping timeout: 272 seconds]
09:14
<
leftylink >
marz_d`ghostman: it doesn't look to me like anything in there is specifically rails
09:16
alem0lars has joined #ruby
09:16
<
leftylink >
&>> class C; attr_accessor :foo end; a = C.new; b = C.new; b.foo = 17; a.send("foo=", b.send("foo")); a.foo # marz_d`ghostman
09:20
nakuku has joined #ruby
09:20
nakuku has quit [Remote host closed the connection]
09:23
mikecmpbll has joined #ruby
09:25
alem0lars_ has joined #ruby
09:27
alem0lars has quit [Ping timeout: 245 seconds]
09:29
kapil____ has quit [Quit: Connection closed for inactivity]
09:30
voidwatch has quit [Ping timeout: 245 seconds]
09:39
ellcs has joined #ruby
09:43
bjpenn has joined #ruby
09:48
themsay has joined #ruby
09:49
bjpenn has quit [Ping timeout: 246 seconds]
09:51
dar123 has joined #ruby
09:53
deathwishdave has joined #ruby
09:55
Swyper has joined #ruby
09:56
gregf_ has joined #ruby
09:59
Swyper has quit [Ping timeout: 245 seconds]
10:00
rem_ has joined #ruby
10:01
Swyper has joined #ruby
10:05
Swyper has quit [Ping timeout: 244 seconds]
10:07
conta has joined #ruby
10:08
_joes_ has quit [Ping timeout: 250 seconds]
10:14
ebbflowgo has joined #ruby
10:20
_joes_ has joined #ruby
10:23
bjpenn has joined #ruby
10:25
Swyper has joined #ruby
10:25
dionysus69 has joined #ruby
10:27
ferr has quit [Quit: WeeChat 2.4]
10:27
bjpenn has quit [Ping timeout: 268 seconds]
10:29
Swyper has quit [Ping timeout: 246 seconds]
10:29
ur5us has quit [Remote host closed the connection]
10:30
Furai has quit [Quit: WeeChat 2.4]
10:31
Furai has joined #ruby
10:31
Swyper has joined #ruby
10:35
Swyper has quit [Ping timeout: 246 seconds]
10:41
ferr has joined #ruby
10:44
mangold has quit [Ping timeout: 252 seconds]
10:53
InfinityFye has joined #ruby
10:54
mangold has joined #ruby
10:55
_joes_ has quit [Ping timeout: 250 seconds]
10:55
mangold has quit [Client Quit]
10:57
conta has quit [Ping timeout: 255 seconds]
10:58
mangold has joined #ruby
10:58
bjpenn has joined #ruby
11:00
InfinityFye has left #ruby ["Leaving"]
11:01
<
Cork >
is it possible to alias a private method?
11:05
bjpenn has quit [Ping timeout: 250 seconds]
11:09
conta has joined #ruby
11:13
joast has quit [Ping timeout: 245 seconds]
11:16
Swyper has joined #ruby
11:33
fercell has joined #ruby
11:34
bjpenn has joined #ruby
11:34
fercell has left #ruby [#ruby]
11:37
laaron has joined #ruby
11:39
bjpenn has quit [Ping timeout: 250 seconds]
11:42
_joes_ has joined #ruby
11:45
<
dionysus69 >
any ideas how BigDecimal "0.00626962" can become "0.006269620000000001" stored in rails pg decimal column?
11:46
hightower2 has quit [Ping timeout: 245 seconds]
11:52
ldnunes has joined #ruby
11:54
themsay has quit [Read error: Connection reset by peer]
11:54
themsay has joined #ruby
11:58
hightower2 has joined #ruby
11:59
laaron has quit [Remote host closed the connection]
11:59
laaron has joined #ruby
12:03
_joes_ has quit [Ping timeout: 245 seconds]
12:03
<
Cork >
dionysus69: most likely cause of floating point in the decimal column
12:05
<
Cork >
phaul: hmm interesting... i get method undefined when i try
12:05
* Cork
digs deeper...
12:06
alexeev_ has quit [Remote host closed the connection]
12:06
_joes_ has joined #ruby
12:07
alexeev has joined #ruby
12:07
alexeev has quit [Remote host closed the connection]
12:09
AJA4350 has joined #ruby
12:11
bjpenn has joined #ruby
12:15
bjpenn has quit [Ping timeout: 244 seconds]
12:19
Swyper has quit [Ping timeout: 246 seconds]
12:22
mangold has quit [Quit: This computer has gone to sleep]
12:28
imadper has quit [Remote host closed the connection]
12:32
_joes_ has quit [Ping timeout: 245 seconds]
12:34
rem_ has quit [Quit: rem_]
12:35
alexeev has joined #ruby
12:39
alexeev has quit [Ping timeout: 252 seconds]
12:44
alexeev has joined #ruby
12:44
bjpenn has joined #ruby
12:46
Azure has joined #ruby
12:48
bjpenn has quit [Ping timeout: 246 seconds]
12:49
hightower2 has quit [Ping timeout: 268 seconds]
12:51
dviola has joined #ruby
12:54
Swyper has joined #ruby
12:54
griffindy has joined #ruby
12:55
bmurt has joined #ruby
12:58
griffindy has quit [Ping timeout: 245 seconds]
13:02
noark9 has joined #ruby
13:03
ubuntuisloved has joined #ruby
13:06
ebbflowgo has quit [Remote host closed the connection]
13:08
_joes_ has joined #ruby
13:14
alexeev has quit [Remote host closed the connection]
13:15
Fridtjof has quit [Ping timeout: 246 seconds]
13:16
bjpenn has joined #ruby
13:20
bjpenn has quit [Ping timeout: 245 seconds]
13:22
lucasb has joined #ruby
13:38
griffindy has joined #ruby
13:41
agent_white has quit [Quit: bbl]
13:47
Emmanuel_Chanel has quit [Ping timeout: 250 seconds]
13:47
<
dionysus69 >
Cork: meaning? I didn't really understand what is it caused by
13:47
alexeev has joined #ruby
13:47
<
Cork >
dionysus69: the database most likely stores the data as a floating point
13:47
<
Cork >
causing floating point errors
13:48
<
dionysus69 >
ahh, I thought BigDecimal converted the input to string by default
13:48
<
dionysus69 >
I didnt know BigDecimal(0.1) and BigDecimal("0.1") were different
13:49
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:49
<
Cork >
dionysus69: it does, (kinda) but it isn't bigdecimal cuasing the erorr
13:49
<
Cork >
databases has floating points too
13:49
<
Cork >
so depending on the column type you use, and the accuracy of that type you can get errors from there too
13:50
<
dionysus69 >
just checked with factory bot just now, if I save dec as a string, it doesn't get that trailing dust
13:50
<
dionysus69 >
the type is decimal, scale is 16
13:50
<
dionysus69 >
precision 32
13:51
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:51
bjpenn has joined #ruby
13:52
<
Cork >
posgress has a similar page if you use that
13:52
<
dionysus69 >
ok I ll find pg one, thanks!
13:53
Emmanuel_Chanel has joined #ruby
13:53
<
dionysus69 >
oh, decimal is name in rails, pg col type turns out is numeric(32,16)
13:56
bjpenn has quit [Ping timeout: 250 seconds]
13:58
segy has quit [Ping timeout: 244 seconds]
14:01
deathwishdave has joined #ruby
14:01
segy has joined #ruby
14:01
ferr has quit [Ping timeout: 244 seconds]
14:03
dviola has quit [Quit: WeeChat 2.4]
14:04
noark9 has quit [Ping timeout: 250 seconds]
14:05
dviola has joined #ruby
14:06
<
alexeev >
Is BigDecimal(0.1) and BigDecimal("0.1") are different? Why?
14:06
NeilCarvalho has joined #ruby
14:06
<
Cork >
0.1 is a floating value in ruby
14:06
<
Cork >
so you get the floating point error
14:07
<
Cork >
so ya, you never want a dot value that isn't a tring given to BigDecimal
14:08
mangold has joined #ruby
14:09
t0xik has joined #ruby
14:12
hightower2 has joined #ruby
14:14
ferr has joined #ruby
14:16
Swyper has quit [Remote host closed the connection]
14:18
dviola has quit [Quit: WeeChat 2.4]
14:19
conta has quit [Ping timeout: 245 seconds]
14:19
mangold has quit [Ping timeout: 252 seconds]
14:23
reber has joined #ruby
14:24
waheedi has joined #ruby
14:24
conta has joined #ruby
14:26
Swyper has joined #ruby
14:29
bjpenn has joined #ruby
14:30
Swyper has quit [Ping timeout: 245 seconds]
14:31
dviola has joined #ruby
14:32
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:33
bjpenn has quit [Ping timeout: 250 seconds]
14:37
RedSnarf has joined #ruby
14:39
waheedi has quit [Quit: waheedi]
14:40
cyberarm has joined #ruby
14:50
brool has joined #ruby
14:53
rippa has joined #ruby
14:54
mangold has joined #ruby
14:55
Swyper has joined #ruby
15:00
Swyper has quit [Ping timeout: 245 seconds]
15:00
brool has quit [Ping timeout: 252 seconds]
15:02
Swyper has joined #ruby
15:02
Nicmavr has quit [Read error: Connection reset by peer]
15:04
bjpenn has joined #ruby
15:04
Nicmavr has joined #ruby
15:04
Rapture has joined #ruby
15:05
hightower2 has quit [Changing host]
15:05
hightower2 has joined #ruby
15:05
grilix has joined #ruby
15:08
Brian-W-Gray has quit [Ping timeout: 252 seconds]
15:08
bjpenn has quit [Ping timeout: 250 seconds]
15:13
grilix has quit [Ping timeout: 244 seconds]
15:15
marz_d`ghostman has quit [Quit: Page closed]
15:16
grilix has joined #ruby
15:19
sergio_101 has joined #ruby
15:21
sergio_101 has left #ruby [#ruby]
15:22
polishdub has joined #ruby
15:23
cyberarm has quit [Ping timeout: 246 seconds]
15:26
dviola has quit [Quit: WeeChat 2.4]
15:27
hightower2 has quit [Ping timeout: 246 seconds]
15:28
cyberarm has joined #ruby
15:31
renich has joined #ruby
15:37
dar123 has joined #ruby
15:37
fnord__ has quit [Remote host closed the connection]
15:37
Swyper has quit [Remote host closed the connection]
15:37
za1b1tsu has joined #ruby
15:39
dviola has joined #ruby
15:42
Swyper has joined #ruby
15:43
bjpenn has joined #ruby
15:48
renich has quit [Remote host closed the connection]
15:51
alem0lars_ has quit [Remote host closed the connection]
15:53
nowhere_man has joined #ruby
15:53
<
al2o3-cr >
&fake Faker::Beer.brand
15:53
alem0lars has joined #ruby
15:54
<
al2o3-cr >
hmmm, tasty!
15:55
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:55
stooj has quit [Ping timeout: 244 seconds]
15:55
stooj has joined #ruby
15:58
conta has quit [Ping timeout: 246 seconds]
15:58
iNs_ has quit [Remote host closed the connection]
15:59
iNs has joined #ruby
16:00
blaguvest has joined #ruby
16:01
grr12314 has quit [Remote host closed the connection]
16:04
deathwishdave has joined #ruby
16:05
dviola has quit [Quit: WeeChat 2.4]
16:06
dviola has joined #ruby
16:06
orbyt_ has joined #ruby
16:07
aufi_ has quit [Ping timeout: 245 seconds]
16:07
TomyWork has quit [Ping timeout: 246 seconds]
16:09
Inline has joined #ruby
16:11
Azure has joined #ruby
16:12
orbyt_ has quit [Ping timeout: 268 seconds]
16:17
_joes_ has quit [Ping timeout: 272 seconds]
16:18
Dbugger has joined #ruby
16:19
Swyper has quit [Remote host closed the connection]
16:20
renich has joined #ruby
16:21
polishdub has quit [Remote host closed the connection]
16:24
dviola has quit [Quit: WeeChat 2.4]
16:24
cyberarm has quit [Ping timeout: 255 seconds]
16:24
llua has quit [Remote host closed the connection]
16:26
Swyper has joined #ruby
16:27
llua has joined #ruby
16:27
Swyper has quit [Remote host closed the connection]
16:27
<
keden >
&fake Faker::Beer.brand
16:27
<
rubydoc >
Stella Artois
16:28
_joes_ has joined #ruby
16:31
Swyper has joined #ruby
16:33
ua has quit [Quit: Leaving]
16:35
polishdub has joined #ruby
16:43
Francisco has quit [Read error: Connection reset by peer]
16:43
Fr4n has joined #ruby
16:44
Swyper has quit [Remote host closed the connection]
16:45
Swyper has joined #ruby
16:47
NeilCarvalho has quit [Ping timeout: 268 seconds]
16:47
bjpenn has quit [Ping timeout: 245 seconds]
16:50
i1nfusion has quit [Remote host closed the connection]
16:51
i1nfusion has joined #ruby
16:53
ua has joined #ruby
16:56
CrazyEddy has joined #ruby
16:56
za1b1tsu has quit [Remote host closed the connection]
16:56
za1b1tsu has joined #ruby
16:58
[Butch] has joined #ruby
17:00
clemens3 has quit [Ping timeout: 250 seconds]
17:01
dinfuehr_ has joined #ruby
17:02
dinfuehr has quit [Ping timeout: 245 seconds]
17:08
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:09
grilix has quit [Ping timeout: 250 seconds]
17:09
grilix has joined #ruby
17:10
Swyper has quit [Remote host closed the connection]
17:13
sauvin has quit [Read error: Connection reset by peer]
17:13
dinfuehr has joined #ruby
17:14
dinfuehr_ has quit [Ping timeout: 255 seconds]
17:17
joast has joined #ruby
17:18
Swyper has joined #ruby
17:19
Tempesta has quit [Ping timeout: 250 seconds]
17:20
andikr has quit [Remote host closed the connection]
17:23
deathwishdave has joined #ruby
17:25
bjpenn has joined #ruby
17:27
Swyper has quit [Remote host closed the connection]
17:27
deathwishdave has quit [Client Quit]
17:27
Fr4n has quit [Read error: Connection reset by peer]
17:28
Swyper has joined #ruby
17:28
renich has quit [Ping timeout: 272 seconds]
17:28
renich_ has joined #ruby
17:33
jottr has joined #ruby
17:37
_joes_ has quit [Ping timeout: 246 seconds]
17:37
Swyper has quit [Remote host closed the connection]
17:38
dinfuehr_ has joined #ruby
17:39
dinfuehr has quit [Ping timeout: 246 seconds]
17:39
deathwishdave has joined #ruby
17:42
Swyper has joined #ruby
17:44
nowhere_man has quit [Ping timeout: 258 seconds]
17:45
Swyper has quit [Remote host closed the connection]
17:48
Noxilex has joined #ruby
17:51
Noxilex has quit [Client Quit]
17:54
iNs_ has joined #ruby
17:54
iNs has quit [Ping timeout: 256 seconds]
17:57
hightower2 has joined #ruby
17:58
Devalo has joined #ruby
17:59
mikecmpbll has quit [Quit: inabit. zz.]
17:59
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:59
Swyper has joined #ruby
18:01
za1b1tsu has quit [Ping timeout: 245 seconds]
18:03
Flyingdog has quit [Quit: Leaving]
18:05
Tempesta has joined #ruby
18:10
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:12
NeilCarvalho has joined #ruby
18:13
ravenous_ has joined #ruby
18:13
ravenous_ has quit [Client Quit]
18:14
renich_ has quit [Quit: renich_]
18:16
renich_ has joined #ruby
18:16
zachk has joined #ruby
18:17
zachk has quit [Read error: Connection reset by peer]
18:18
zachk has joined #ruby
18:19
zachk has joined #ruby
18:19
zachk has quit [Changing host]
18:19
zachk has quit [Max SendQ exceeded]
18:20
Azure has joined #ruby
18:20
zachk has joined #ruby
18:20
zachk has quit [Changing host]
18:20
zachk has joined #ruby
18:21
deathwishdave has joined #ruby
18:21
Swyper has quit [Remote host closed the connection]
18:21
zachk has quit [Max SendQ exceeded]
18:26
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:26
gix has joined #ruby
18:27
orbyt_ has joined #ruby
18:29
Swyper has joined #ruby
18:30
lucasb has quit [Ping timeout: 252 seconds]
18:30
manveru has quit [Ping timeout: 252 seconds]
18:30
strmpnk has quit [Ping timeout: 252 seconds]
18:31
BuildTheRobots has quit [Ping timeout: 252 seconds]
18:32
teej has quit [Ping timeout: 252 seconds]
18:32
jhill has quit [Ping timeout: 252 seconds]
18:32
zipkid has quit [Ping timeout: 252 seconds]
18:32
dar123 has quit [Read error: Connection reset by peer]
18:33
bmurt has joined #ruby
18:33
manveru has joined #ruby
18:33
G has quit [Ping timeout: 252 seconds]
18:33
BuildTheRobots has joined #ruby
18:33
Fire-Dragon-DoL has quit [Ping timeout: 250 seconds]
18:33
dumptruckman has quit [Ping timeout: 250 seconds]
18:33
dar123 has joined #ruby
18:34
zipkid has joined #ruby
18:34
mikecmpbll has joined #ruby
18:35
jhill has joined #ruby
18:35
teej has joined #ruby
18:37
dumptruckman has joined #ruby
18:37
reber has quit [Remote host closed the connection]
18:39
Fire-Dragon-DoL has joined #ruby
18:40
SeepingN has joined #ruby
18:44
za1b1tsu has joined #ruby
18:45
strmpnk has joined #ruby
18:48
Swyper has quit [Remote host closed the connection]
18:51
c0dec has quit [Ping timeout: 250 seconds]
18:53
c0dec has joined #ruby
18:57
cow[moo] has joined #ruby
18:59
postmodern has joined #ruby
19:03
suukim has quit [Quit: Konversation terminated!]
19:07
kapil____ has joined #ruby
19:08
englishm_ has joined #ruby
19:10
mangold has quit [Ping timeout: 252 seconds]
19:20
themsay has quit [Ping timeout: 258 seconds]
19:20
themsay has joined #ruby
19:22
r3m has quit [Quit: WeeChat 2.5-dev]
19:23
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:23
r3m has joined #ruby
19:31
cd has joined #ruby
19:32
waheedi has joined #ruby
19:34
englishm_ is now known as englishm
19:47
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:49
ta_ has quit [Ping timeout: 244 seconds]
19:53
<
IGnorAND >
Hi, I'm trying to parse a html page with nokogiri. I want an array where x is 3 - 23 and only the uneven numbers. @parse_page.css(".moduletable_rates").css(".rate-info").children[1].children[x].children[5].inner_text
19:55
<
waheedi >
IGnorAND: is that one question or two?
19:55
<
IGnorAND >
waheedi: My question is how do I get the array
19:56
<
IGnorAND >
map doesn't work since not all elements have a children[5]
19:56
<
phaul >
&>> ((3..23) % 2).to_a
19:56
<
rubydoc >
# => [3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23] (
https://carc.in/#/r/6j7s )
19:56
Fridtjof has joined #ruby
19:56
ta_ has joined #ruby
19:57
<
phaul >
&>> 3.step(to:23, by: 2).to_a
19:57
<
rubydoc >
# => [3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23] (
https://carc.in/#/r/6j7u )
19:58
<
havenwood >
IGnorAND: children[3..23]
19:58
<
havenwood >
oh, uneven (odd), gotcha
19:59
Devalo has quit [Remote host closed the connection]
19:59
<
IGnorAND >
phaul: I was able to do (3..23).step(2).to_a
19:59
Devalo has joined #ruby
20:00
<
IGnorAND >
phaul: but I have no clue how to place that in stead of the x
20:00
<
havenwood >
IGnorAND: how about mapping?
20:00
<
havenwood >
IGnorAND: #flat_map
20:01
ta_ has quit [Ping timeout: 245 seconds]
20:02
Inline has quit [Ping timeout: 264 seconds]
20:04
Devalo has quit [Ping timeout: 250 seconds]
20:07
anothertorusr has quit [Ping timeout: 245 seconds]
20:07
Inline has joined #ruby
20:08
<
IGnorAND >
havenwood: it still seems to take all numbers
20:08
<
IGnorAND >
I'll go read the doc a bit
20:09
Devalo has joined #ruby
20:11
<
leftylink >
wasn't sure what was meant by "it" in "it still seems to take all numbers", so if you didn't find an answer from the docs, maybe some example code
20:13
ur5us has joined #ruby
20:14
[Butch] has quit [Ping timeout: 246 seconds]
20:15
hahuang65_ has joined #ruby
20:18
rindolf has joined #ruby
20:18
hahuang65 has quit [Ping timeout: 245 seconds]
20:18
<
al2o3-cr >
hi, rindolf :)
20:19
<
rindolf >
al2o3-cr: sup?
20:19
<
al2o3-cr >
all good brotha!
20:21
<
al2o3-cr >
IGnorAND: is inner_text supposed to be inner_html?
20:22
<
IGnorAND >
al2o3-cr: don't think it matters
20:22
za1b1tsu has quit [Remote host closed the connection]
20:23
<
al2o3-cr >
nope, it doesn't
20:23
hahuang65 has joined #ruby
20:23
<
IGnorAND >
leftylink: the map function goes through every element of the array. I want @parse_page.css(".moduletable_rates").css(".rate-info").children[1].children[3].children[3].inner_text, @parse_page.css(".moduletable_rates").css(".rate-info").children[1].children[5].children[3].inner_text, @parse_page.css(".moduletable_rates").css(".rate-info").children[1].children[7].children[3].inner_text etc
20:25
code_zombie has joined #ruby
20:25
ta_ has joined #ruby
20:25
<
al2o3-cr >
IGnorAND: then iterate over it; (3..23).flat_map { |x| @parse_page.css(".moduletable_rates").css(".rate-info").children[1].children[x].children[3].inner_text }
20:25
<
al2o3-cr >
(2..23).step(2) ...
20:26
hahuang65_ has quit [Ping timeout: 246 seconds]
20:26
anothertorusr has joined #ruby
20:27
m27frogy has quit [Ping timeout: 272 seconds]
20:31
<
al2o3-cr >
IGnorAND: ?
20:33
<
phaul >
&>> ((3 .. 7) % 2).map { |x| "some.complicated.stuff[#{x}]" }.join(' ')
20:35
m27frogy has joined #ruby
20:35
<
al2o3-cr >
phaul: what happened?
20:35
rubydoc has quit [Ping timeout: 245 seconds]
20:36
<
leftylink >
*waves* what happened? / nothing link, we were just about to have a feast
20:37
<
al2o3-cr >
&fake Faker::Beer.brand
20:37
Swyper has joined #ruby
20:37
<
al2o3-cr >
oh, pinged timed out :(
20:37
<
phaul >
kernel panic
20:37
anothertorusr has quit [Ping timeout: 245 seconds]
20:38
<
phaul >
openbsd. don't ask
20:39
<
al2o3-cr >
phaul: we pray for you :p
20:40
m27frogy has quit [Ping timeout: 250 seconds]
20:40
<
al2o3-cr >
i sing a little prayer for phaul lol
20:40
m27frogy has joined #ruby
20:41
rubydoc has joined #ruby
20:41
<
phaul >
&fake Faker::Beer.brand
20:42
<
rubydoc >
Pabst Blue Ribbon
20:42
<
phaul >
that will do
20:45
<
al2o3-cr >
&fake Faker::Beer.brand
20:46
<
al2o3-cr >
that stuff is shit!
20:46
<
phaul >
never heard of it
20:46
<
phaul >
ah irish lager
20:46
mikecmpbll has quit [Ping timeout: 245 seconds]
20:47
<
rindolf >
phaul: wow
20:47
mikecmpbll has joined #ruby
20:47
<
phaul >
&>> ((3 .. 7) % 2).map { |x| "some.complicated.stuff[#{x}]" }.join(' ') # IGnorAND
20:49
waheedi has quit [Ping timeout: 272 seconds]
20:49
<
al2o3-cr >
phaul: i think it's brewed by guinness
20:52
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:53
cthulchu has joined #ruby
20:56
cthu| has quit [Ping timeout: 250 seconds]
20:58
noboruma_ has joined #ruby
21:00
anothertorusr has joined #ruby
21:00
<
al2o3-cr >
&fake Faker::Crypto.sha2
21:00
<
rubydoc >
parser error at position 0 around `f'
21:00
<
al2o3-cr >
&fake Faker::Crypto.md5
21:00
<
rubydoc >
parser error at position 0 around `f'
21:02
m27frogy has quit [Ping timeout: 255 seconds]
21:02
<
phaul >
number in method name. We had the exact same bug with class names.
21:02
<
rubydoc >
parser error at position 0 around `r'
21:07
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:08
noboruma_ has quit [Quit: leaving]
21:09
alem0lars has quit [Ping timeout: 250 seconds]
21:10
Devalo has quit [Remote host closed the connection]
21:11
Devalo has joined #ruby
21:13
zachk has joined #ruby
21:14
rubydoc has quit [Remote host closed the connection]
21:14
rubydoc has joined #ruby
21:15
<
phaul >
&fake Faker::Crypto.sha2
21:15
<
phaul >
&fake Faker::Crypto.md5
21:15
<
rubydoc >
02a7e855dd279b6d7b371fd6c7d28111
21:15
Devalo has quit [Ping timeout: 245 seconds]
21:15
<
IGnorAND >
al2o3-cr: ow, I didnt think of that. (3..23).step(2).map { |x| @parse_page.css(".moduletable_rates").css(".rate-info").children[1].children[x].children[1].inner_text } works amazing
21:16
ldnunes has quit [Quit: Leaving]
21:16
<
IGnorAND >
al2o3-cr: I was trying to place the (3..23).step(2) after map {}
21:17
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
21:17
TvL2386_ has quit [Ping timeout: 244 seconds]
21:21
m27frogy has joined #ruby
21:21
TvL2386 has joined #ruby
21:28
deathwishdave has joined #ruby
21:30
<
al2o3-cr >
&fake Faker::WorldCup.team
21:30
<
rubydoc >
Saudi Arabia
21:31
<
al2o3-cr >
phaul: it can't do method calls can it?
21:35
ivanskie has joined #ruby
21:35
<
phaul >
hopefully I haven't put in any security holes with this. class_name, method_name are just strings from the parser
21:35
sagax has quit [Ping timeout: 246 seconds]
21:36
<
al2o3-cr >
phaul: security holes?
21:37
waheedi has joined #ruby
21:37
<
phaul >
like inject `rm -rf /`
21:37
<
al2o3-cr >
phaul: nah, bro.
21:38
<
phaul >
one has to be cautious ...
21:38
<
al2o3-cr >
seriously, nothing to be worried about
21:43
<
al2o3-cr >
phaul: that won't do shit anyway these days.
21:44
Devalo has joined #ruby
21:49
Devalo has quit [Ping timeout: 255 seconds]
21:54
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:55
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:56
laaron has joined #ruby
21:57
<
phaul >
&>> Class.send("x `ls -l` y")
21:57
laaron has quit [Remote host closed the connection]
21:59
mikecmpbll has quit [Quit: inabit. zz.]
22:01
laaron has joined #ruby
22:03
anothertorusr has quit [Ping timeout: 245 seconds]
22:04
Brainium has joined #ruby
22:05
waheedi has quit [Quit: waheedi]
22:06
laaron has quit [Client Quit]
22:07
laaron has joined #ruby
22:08
bambanx has joined #ruby
22:08
laaron has quit [Client Quit]
22:08
t0xik has quit [Quit: Connection closed for inactivity]
22:11
anothertorusr has joined #ruby
22:12
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:14
moei has quit [Quit: Leaving...]
22:15
laaron has joined #ruby
22:17
anothertorusr has quit [Ping timeout: 245 seconds]
22:21
Eiam has quit [Ping timeout: 252 seconds]
22:21
Eiam has joined #ruby
22:22
j6p has joined #ruby
22:23
duderonomy has joined #ruby
22:26
Dbugger has quit [Ping timeout: 268 seconds]
22:30
grilix has quit [Ping timeout: 244 seconds]
22:31
<
uplime >
this might be a silly question, but if your app needs to create a system user, is there a more ruby/rails way than just sticking a shellscript in the project root and having that user run it beforehand?
22:40
<
al2o3-cr >
uplime: just run as root then drop privs?
22:40
<
uplime >
al2o3-cr: what does that have to do with creating the user?
22:41
<
al2o3-cr >
create user first
22:41
<
al2o3-cr >
uplime: why would you create a user in a script?
22:41
<
uplime >
yes, thats what i asked
22:42
<
uplime >
because its a user for the app, not a normal user
22:42
dviola has joined #ruby
22:42
<
zenspider >
uplime: WHY would you have it IN the app?
22:42
<
uplime >
zenspider: i'm asking where i should have it
22:42
<
al2o3-cr >
uplime: create it first.
22:42
NeilCarvalho has quit [Ping timeout: 245 seconds]
22:43
Brainium has quit [Quit: Konversation terminated!]
22:43
<
zenspider >
I wouldn't provide ANYTHING. Just say it is a requirement. Let them decide what is right for their OS
22:43
<
uplime >
create the user before creating the user?
22:43
<
al2o3-cr >
oh, i see.
22:43
<
zenspider >
otherwise you're asking for trouble, because every OS is just slightly different
22:43
<
al2o3-cr >
sorry, uplime
22:44
<
uplime >
i only need to support posix
22:44
<
uplime >
so its just adduser
22:44
<
uplime >
np al2o3-cr
22:44
<
uplime >
erm, not adduser, i'd have to look up the command
22:45
<
zenspider >
uplime: every time a nerd says "just", they're massively underestimated something
22:46
<
al2o3-cr >
just add two sugars to that coffee
22:47
<
zenspider >
eg... OSX is posix. There is no useradd.
22:47
<
zenspider >
guaranteed these aren't all the same for adding users: AIX, HP-UX, IRIX, EulerOS, macOS, Solaris, Tru64, UnixWare, QNX Neutrino, Inspur K-UX, INTEGRITY
22:48
<
zenspider >
also interesting that linux is only listed as mostly posix... yet I think most ppl think of it is a fully
22:48
griffindy has joined #ruby
22:49
<
uplime >
i know linux isn't POSIX complete, also you are correct, i thought useradd was indeed posix
22:49
<
uplime >
guess im mistaken
22:49
<
uplime >
i'll leave it up to the packagers then
22:50
<
al2o3-cr >
uplime: maybe, there isn't then
22:51
<
al2o3-cr >
doesn't actually looks like there is.
22:51
<
uplime >
yeah, i was sorely mistaken
22:51
<
uplime >
glad i asked first
22:52
<
al2o3-cr >
yeah, got me too that one.
22:55
polishdub has quit [Quit: leaving]
23:05
schleppel has quit [Quit: Konversation terminated!]
23:12
NeilCarvalho has joined #ruby
23:14
laaron has quit [Remote host closed the connection]
23:15
<
miah >
newgrp is in there. maybe there is another list
23:15
renich has joined #ruby
23:16
laaron has joined #ruby
23:18
renich_ has quit [Ping timeout: 272 seconds]
23:19
<
al2o3-cr >
newgrp is posix?
23:20
<
al2o3-cr >
so it is
23:21
D9 has joined #ruby
23:21
<
miah >
ya im confused at that too lol
23:23
<
zenspider >
yeah. it is a mess.
23:23
<
zenspider >
just never try to automate it... otherwise you reinvent puppet/chef/ansible/hell
23:24
<
miah >
been there done that (and i work for chef)
23:24
<
miah >
mostly im confused that there is no su or equivilent in there, but we have newgrp.
23:25
<
miah >
possibly related to how people used the systems previously compared to now, more group usage probably. i dont see very complex groups anymore
23:26
<
miah >
but ive never really "used" newgrp either, just good group permissions
23:33
hphhphhphhphhphh has joined #ruby
23:34
t0x has joined #ruby
23:34
postmodern has quit [Quit: Leaving]
23:36
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:45
dar123 has joined #ruby
23:50
NeilCarvalho has quit [Remote host closed the connection]
23:54
dinfuehr has joined #ruby
23:55
dinfuehr_ has quit [Ping timeout: 245 seconds]