00:00
woollyams has joined #ruby-lang
00:01
ChinggizKhan has joined #ruby-lang
00:02
cored has quit [Ping timeout: 276 seconds]
00:02
vlad_starkov has joined #ruby-lang
00:07
vlad_starkov has quit [Ping timeout: 268 seconds]
00:09
dingus_khan has joined #ruby-lang
00:12
tkuchiki has quit [Remote host closed the connection]
00:12
tylersmith has joined #ruby-lang
00:13
dingus_khan has quit [Ping timeout: 248 seconds]
00:14
krohrbaugh has quit [Quit: Leaving.]
00:16
nathanstitt has joined #ruby-lang
00:18
stardiviner_ has joined #ruby-lang
00:18
krohrbaugh has joined #ruby-lang
00:19
stardiviner has quit [Ping timeout: 240 seconds]
00:19
rwilcox has quit [Quit: Computer has gone to sleep.]
00:20
rwilcox has joined #ruby-lang
00:22
arubin has joined #ruby-lang
00:23
nathanstitt has quit [Quit: I growing sleepy]
00:23
hogeo has joined #ruby-lang
00:24
nathanstitt has joined #ruby-lang
00:28
marr has quit [Ping timeout: 256 seconds]
00:30
GarethAdams has joined #ruby-lang
00:31
DomKM has joined #ruby-lang
00:31
cirenyc has quit [Remote host closed the connection]
00:31
cirenyc has joined #ruby-lang
00:32
krohrbaugh has quit [Read error: Operation timed out]
00:32
gregmoreno has quit [Remote host closed the connection]
00:38
gregmoreno has joined #ruby-lang
00:39
tkuchiki has joined #ruby-lang
00:40
joshuawscott has joined #ruby-lang
00:44
doki_pen_ has quit [Read error: Operation timed out]
00:44
<
perry >
anyone know a better pcap gem than ruby-pcap? ruby-pcap seems to suffer from packet loss...
00:46
nathanstitt has quit [Quit: I growing sleepy]
00:47
havenwood has quit [Remote host closed the connection]
00:48
swav has joined #ruby-lang
00:48
GarethAdams has quit [Read error: Connection reset by peer]
00:49
GarethAdams has joined #ruby-lang
00:50
ChinggizKhan has quit [Quit: ZZzzzZZZzzzZZZZzz]
00:52
<
mclee >
haven't used it myself though, but it seems more updated than ruby-pcap
00:53
nathanstitt has joined #ruby-lang
00:54
<
lianj >
mclee: it works nice
00:55
andrewvos has joined #ruby-lang
00:55
doki_pen has joined #ruby-lang
01:00
andrewvos has quit [Ping timeout: 264 seconds]
01:00
cirenyc has quit [Quit: Leaving...]
01:00
snarfmason has joined #ruby-lang
01:02
saarinen has quit [Quit: saarinen]
01:03
jackhammer2022 has joined #ruby-lang
01:04
amerine has quit [Quit: Computer has gone to sleep.]
01:09
dingus_khan has joined #ruby-lang
01:13
dingus_khan has quit [Ping timeout: 240 seconds]
01:15
Aaaarg has quit [Quit: Aaaarg]
01:17
gregmoreno has quit [Remote host closed the connection]
01:22
ChinggizKhan has joined #ruby-lang
01:22
gregmoreno has joined #ruby-lang
01:23
arooni-mobile has quit [Ping timeout: 264 seconds]
01:25
ChinggizKhan has quit [Client Quit]
01:26
hahuang65 has joined #ruby-lang
01:27
Aaaarg has joined #ruby-lang
01:29
lcdhoffman has quit [Quit: lcdhoffman]
01:32
gregmoreno has quit [Remote host closed the connection]
01:32
brianpWins has quit [Quit: brianpWins]
01:33
nevill has joined #ruby-lang
01:34
krz has joined #ruby-lang
01:37
arooni-mobile has joined #ruby-lang
01:37
<
zzak_ >
perry: capp
01:39
flexd has joined #ruby-lang
01:42
GeissT has joined #ruby-lang
01:47
dankest has quit [Quit: Leaving...]
01:48
kstuart has quit [Ping timeout: 240 seconds]
01:50
GarethAdams has quit [Quit: Leaving...]
01:51
lsegal` has joined #ruby-lang
01:52
Domon has joined #ruby-lang
01:53
lsegal` has quit [Client Quit]
01:53
lsegal has joined #ruby-lang
01:54
pkrnj has joined #ruby-lang
02:01
S2kx has quit [Quit: Leaving]
02:02
fragamus has quit [Quit: Computer has gone to sleep.]
02:07
nathanstitt has quit [Quit: I growing sleepy]
02:08
dankest has joined #ruby-lang
02:09
nathanstitt has joined #ruby-lang
02:10
dingus_khan has joined #ruby-lang
02:13
jsullivandigs has quit [Remote host closed the connection]
02:14
dingus_khan has quit [Ping timeout: 248 seconds]
02:15
gregmoreno has joined #ruby-lang
02:22
<
hahuang65 >
Is there anyway around a Marshal.dump(obj).bytesize and getting the same byte size some other way? Having this weird issue where I can insert an object into Rails.cache, but when I try to delete it, it has a File object attached to it, which causes Marshal.dump to vomit...
02:23
<
whitequark >
that's surely weird
02:24
<
hahuang65 >
whitequark: isn't it?
02:25
Linkedipsoul has quit [Quit: This computer has gone to sleep]
02:27
synthetix has joined #ruby-lang
02:28
<
rickhull >
anyone familiar with extended regexp? /foo/x
02:29
<
rickhull >
i get a syntax error in the middle of one where i start a capture on one line, specify some subexpressions on the next lines, then close the capture paren on the subsequent line
02:31
gregmoreno has quit [Remote host closed the connection]
02:32
<
whitequark >
rickhull: gist it
02:33
synthetix has quit [Ping timeout: 240 seconds]
02:33
<
rickhull >
trying a new approach. /x does seem fraught with peril however
02:33
<
rickhull >
for example, don't use '/' in a comment
02:33
hahuang65 has quit [Quit: Computer has gone to sleep.]
02:34
<
whitequark >
rickhull: use %r{}x
02:34
<
whitequark >
so / won't be a special symbol
02:34
<
rickhull >
ok, that should solve the one
02:35
<
whitequark >
rickhull: hahaha
02:35
<
whitequark >
I know why your latest gist doesn't work
02:35
<
whitequark >
but I wanna brag
02:35
<
rickhull >
grip it and rip it :P
02:35
<
whitequark >
gem install parser --pre; ruby-parse -E foo.rb # foo.rb being your gist
02:36
<
whitequark >
you'll understand it in no time
02:36
<
rickhull >
how bout you gist the output ;)
02:36
<
whitequark >
-E, of course, being --explain :p
02:36
<
whitequark >
well ok, you boring one
02:36
<
whitequark >
it won't have the nice coloring!
02:37
amerine has joined #ruby-lang
02:38
<
whitequark >
tl;dr: # in regexps is only interpreted by regexp parser; ruby's parser just captures it as a part of regexp source.
02:38
<
rickhull >
could it be a "bug" since it's trying to parse a comment?
02:39
<
whitequark >
ruby's parser does not interpret regexps, though.
02:39
<
whitequark >
think of // or %r{} as a special kind of string which automatically executes Regexp.new() with the content.
02:43
<
rickhull >
i'd still consider a design bug, that /x cannot be implemented properly
02:44
<
rickhull >
should be documented, i think, at least
02:44
<
rickhull >
happy to file a ticket
02:44
<
whitequark >
ruby's parser is already insane enough
02:44
<
whitequark >
we
*really* shouldn't have another weird corner case in it.
02:44
<
rickhull >
yeah i'm not suggesting to edit ruby's parser
02:44
<
rickhull >
no doubt
02:44
<
rickhull >
but i would still document that comments using /x are parsed and will result in potentially unexpected behavior
02:45
<
rickhull >
and to use %r{} to help mitigate
02:46
adwhit has quit [Ping timeout: 260 seconds]
02:47
<
whitequark >
sure, sounds like a good idea
02:49
adwhit has joined #ruby-lang
02:50
Newbie0086 has joined #ruby-lang
02:50
<
rickhull >
could probably come up with another problematic comment char when using %r{}
02:50
<
whitequark >
well, that would be unbalanced }
02:50
<
whitequark >
balanced {} are fine.
02:50
<
rickhull >
ok so yeah, if i used %r{} then a commented end brace would have same behavior?
02:52
<
rickhull >
expected (not same) behavior with %r{}
02:52
<
whitequark >
a commented, unbalanced end brace, yes
02:53
dingus_khan has joined #ruby-lang
02:54
<
rickhull >
hm, maybe not
02:54
<
rickhull >
getting two different results in different pry sessions
02:56
synthetix has joined #ruby-lang
02:57
mdedetrich has joined #ruby-lang
02:58
<
Newbie0086 >
can someone help me , i install feed_tools but it does'not work
02:58
linc01n has joined #ruby-lang
03:02
<
whitequark >
add a magic encoding comment to your code
03:02
<
Newbie0086 >
what the magic encoding...
03:02
lcdhoffman has joined #ruby-lang
03:03
<
whitequark >
# encoding:utf-8
03:03
<
whitequark >
at the first line
03:03
<
Newbie0086 >
i have added
03:03
<
Newbie0086 >
#encoding:utf-8
03:03
<
Newbie0086 >
require 'rubygems'
03:03
<
Newbie0086 >
require 'feed_tools'
03:04
<
Newbie0086 >
whitequark: have any idea?
03:05
amerine has quit [Quit: Computer has gone to sleep.]
03:06
<
Newbie0086 >
when i installing FeedTool I found something wrong ,oops ,maybe feedtools too old
03:06
pkrnj has quit [Ping timeout: 268 seconds]
03:08
lcdhoffman has quit [Quit: lcdhoffman]
03:09
pkrnj has joined #ruby-lang
03:09
<
whitequark >
not sure
03:12
<
Newbie0086 >
thanks any
03:15
jsullivandigs has joined #ruby-lang
03:21
io_syl has quit [Ping timeout: 264 seconds]
03:21
gregmoreno has joined #ruby-lang
03:22
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
03:24
nathanstitt has quit [Quit: I growing sleepy]
03:26
gregmoreno has quit [Remote host closed the connection]
03:30
jackhammer2022 has quit [Ping timeout: 252 seconds]
03:31
gja has joined #ruby-lang
03:31
gja has quit [Changing host]
03:31
gja has joined #ruby-lang
03:31
meizaps has quit [Ping timeout: 252 seconds]
03:32
ryez has joined #ruby-lang
03:35
jackhammer2022 has joined #ruby-lang
03:38
jackhammer2022 has quit [Read error: Operation timed out]
03:42
DomKM has quit [Quit: Leaving.]
03:46
rippa has joined #ruby-lang
03:48
tpope_ has left #ruby-lang [#ruby-lang]
03:48
jackhammer2022 has joined #ruby-lang
03:50
mdedetrich has quit [Quit: Computer has gone to sleep.]
03:55
swav has quit [Remote host closed the connection]
03:56
swav has joined #ruby-lang
03:59
rippa has quit [Ping timeout: 248 seconds]
03:59
DomKM has joined #ruby-lang
04:00
rippa has joined #ruby-lang
04:01
swav has quit [Ping timeout: 276 seconds]
04:03
tRAS has joined #ruby-lang
04:12
nevill has quit [Quit: nevill]
04:15
Linkedipsoul has joined #ruby-lang
04:18
meizaps has joined #ruby-lang
04:21
vxr9 has quit [Quit: Lost terminal]
04:23
tRAS has quit [Quit: Mother, did it need to be so high?]
04:24
joshuawscott has quit [Quit: joshuawscott]
04:28
mdedetrich has joined #ruby-lang
04:28
amerine has joined #ruby-lang
04:32
erikh has joined #ruby-lang
04:34
dingus_khan has quit [Remote host closed the connection]
04:35
vlad_starkov has joined #ruby-lang
04:39
vlad_starkov has quit [Ping timeout: 260 seconds]
04:40
havenwood has joined #ruby-lang
04:44
tRAS has joined #ruby-lang
04:46
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
04:47
gja has quit [Quit: This computer has gone to sleep]
04:48
dhruvasagar has joined #ruby-lang
04:49
vlad_starkov has joined #ruby-lang
04:49
spuk has joined #ruby-lang
04:51
tylersmith has quit [Remote host closed the connection]
04:51
havenwood has quit [Remote host closed the connection]
04:52
mistym has quit [Remote host closed the connection]
04:53
jsullivandigs has quit [Remote host closed the connection]
04:53
jsullivandigs has joined #ruby-lang
04:54
synthetix has quit [Ping timeout: 248 seconds]
04:56
havenwood has joined #ruby-lang
04:57
ezkl has joined #ruby-lang
04:57
ryanf_ has joined #ruby-lang
04:57
ryanf_ has quit [Client Quit]
04:57
jsullivandigs has quit [Ping timeout: 240 seconds]
04:59
toretore has joined #ruby-lang
04:59
macmartine has joined #ruby-lang
04:59
Mon_Ouie has joined #ruby-lang
05:04
mbj has joined #ruby-lang
05:06
vlad_starkov has quit [Remote host closed the connection]
05:10
rsl has quit [Quit: Computer has gone to sleep.]
05:12
tonni has quit [Remote host closed the connection]
05:13
Aaaarg has quit [Quit: Aaaarg]
05:13
macmartine has quit [Quit: Computer has gone to sleep.]
05:18
tomzx_mac has quit [Ping timeout: 260 seconds]
05:19
dfdf has joined #ruby-lang
05:21
DomKM has quit [Quit: Leaving.]
05:22
apeiros has quit [Read error: Connection reset by peer]
05:22
apeiros has joined #ruby-lang
05:29
Rizzle has quit [Read error: Connection reset by peer]
05:30
Rizzle has joined #ruby-lang
05:31
mistym has joined #ruby-lang
05:33
ryez has quit [K-Lined]
05:35
nevill has joined #ruby-lang
05:36
Averna has quit [Quit: Leaving.]
05:36
tonni has joined #ruby-lang
05:41
vlad_starkov has joined #ruby-lang
05:43
x0f has quit [Ping timeout: 264 seconds]
05:44
swav has joined #ruby-lang
05:44
x0f has joined #ruby-lang
05:45
JohnBat26 has joined #ruby-lang
05:48
apeiros has quit [Remote host closed the connection]
05:51
wallerdev has quit [Quit: wallerdev]
05:51
tylersmith has joined #ruby-lang
05:52
dankest has quit [Quit: Leaving...]
05:56
GeissT_ has joined #ruby-lang
05:57
vlad_starkov has quit [Remote host closed the connection]
05:58
eam has quit [Read error: Connection reset by peer]
05:58
GeissT_ has quit [Client Quit]
05:59
GeissT_ has joined #ruby-lang
05:59
GeissT has quit [Ping timeout: 264 seconds]
06:00
GeissT_ has quit [Client Quit]
06:00
tylersmith has quit [Ping timeout: 264 seconds]
06:01
ffio has joined #ruby-lang
06:01
_ffio_ has quit [Ping timeout: 276 seconds]
06:02
gja has joined #ruby-lang
06:02
gja has joined #ruby-lang
06:02
gja has quit [Changing host]
06:04
pipework has quit [Remote host closed the connection]
06:10
mbj has quit [Ping timeout: 275 seconds]
06:12
workmad3 has joined #ruby-lang
06:21
workmad3 has quit [Ping timeout: 260 seconds]
06:28
swav has quit [Remote host closed the connection]
06:33
mytrile has joined #ruby-lang
06:33
dfdf has quit [Remote host closed the connection]
06:40
smook4 has quit [Ping timeout: 255 seconds]
06:43
relix has joined #ruby-lang
06:44
havenwood has quit [Remote host closed the connection]
06:44
hu45 has joined #ruby-lang
06:48
sush24 has joined #ruby-lang
06:49
dr_bob has joined #ruby-lang
06:52
eam has joined #ruby-lang
06:52
woollyams has quit [Ping timeout: 252 seconds]
06:54
jsullivandigs has joined #ruby-lang
06:54
Wardrop has quit [Quit: Wardrop]
06:56
GeissT has joined #ruby-lang
06:56
tylersmith has joined #ruby-lang
06:56
tonni has quit [Remote host closed the connection]
06:58
tbuehlmann has joined #ruby-lang
06:59
jsullivandigs has quit [Ping timeout: 252 seconds]
07:00
mbj has joined #ruby-lang
07:00
ffio has quit [Ping timeout: 252 seconds]
07:01
tylersmith has quit [Ping timeout: 268 seconds]
07:02
rolfb has joined #ruby-lang
07:06
ffio has joined #ruby-lang
07:06
mistym has quit [Remote host closed the connection]
07:07
smook4 has joined #ruby-lang
07:08
vlad_starkov has joined #ruby-lang
07:12
skade has joined #ruby-lang
07:12
relix has quit [Read error: Connection reset by peer]
07:12
relix_ has joined #ruby-lang
07:13
vlad_starkov has quit [Ping timeout: 240 seconds]
07:15
smook4 has quit [Ping timeout: 255 seconds]
07:18
crudson1 has joined #ruby-lang
07:19
swav has joined #ruby-lang
07:20
dagobah has joined #ruby-lang
07:20
vlad_starkov has joined #ruby-lang
07:20
vlad_starkov has quit [Remote host closed the connection]
07:21
sush24 has quit [Ping timeout: 246 seconds]
07:22
dfdf has joined #ruby-lang
07:23
sush24 has joined #ruby-lang
07:25
jds__ has joined #ruby-lang
07:26
hu45 has quit [Ping timeout: 260 seconds]
07:26
tonni has joined #ruby-lang
07:26
hashkey has joined #ruby-lang
07:26
mikewintermute has joined #ruby-lang
07:28
jds has quit [Ping timeout: 252 seconds]
07:30
GarethAdams has joined #ruby-lang
07:31
swav has quit [Remote host closed the connection]
07:33
nevill has quit [Quit: nevill]
07:34
firstdayonthejob has quit [Quit: WeeChat 0.4.1]
07:36
minivan has joined #ruby-lang
07:38
nevill has joined #ruby-lang
07:43
GarethAdams has quit [Read error: Connection reset by peer]
07:45
solars has joined #ruby-lang
07:47
Newbie0086 has quit [Quit: 离开]
07:50
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
07:51
charliesome has joined #ruby-lang
07:51
solars has quit [Ping timeout: 240 seconds]
07:52
Criztian has joined #ruby-lang
07:53
bastilian has joined #ruby-lang
07:53
barttenbrinke has joined #ruby-lang
07:55
dfdf has quit [Remote host closed the connection]
07:56
barttenbrinke has quit [Remote host closed the connection]
07:56
swav has joined #ruby-lang
07:56
apeiros has joined #ruby-lang
07:57
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
07:57
vlad_starkov has joined #ruby-lang
07:57
vlad_starkov has quit [Read error: Connection reset by peer]
07:58
vlad_starkov has joined #ruby-lang
08:01
chendo_ is now known as chendo
08:02
chinaboy_rubyfan has joined #ruby-lang
08:03
barttenbrinke has joined #ruby-lang
08:04
Mon_Ouie has quit [Quit: WeeChat 0.4.1]
08:04
chinaboy_rubyfan has quit [Client Quit]
08:05
minivan has quit [Quit: minivan]
08:05
Newbie0086 has joined #ruby-lang
08:05
elia has joined #ruby-lang
08:05
<
yorickpeterse >
morning
08:05
minivan has joined #ruby-lang
08:05
<
Newbie0086 >
this symbol means what?
08:06
<
Newbie0086 >
its time to Dinner
08:07
glebm has quit [Ping timeout: 276 seconds]
08:07
solars has joined #ruby-lang
08:07
<
Newbie0086 >
now 4:00 pm
08:09
<
Newbie0086 >
i want to make email spoofing by ruby but failed
08:09
vlad_starkov has quit [Remote host closed the connection]
08:10
jstemmer has joined #ruby-lang
08:10
countdigi has quit [Ping timeout: 240 seconds]
08:11
glebm has joined #ruby-lang
08:14
philnyc has quit [Ping timeout: 256 seconds]
08:16
Linkedipsoul has quit [Quit: This computer has gone to sleep]
08:20
nevill has quit [Quit: nevill]
08:20
<
yorickpeterse >
Newbie0086: stop pasting markov chains in #ruby-lang
08:20
<
yorickpeterse >
this isn't ruby_ebooks
08:27
umttumt has joined #ruby-lang
08:27
mytrile has quit [Remote host closed the connection]
08:30
gnufied has joined #ruby-lang
08:32
<
zzak_ >
injekt: hi!
08:37
countdigi has joined #ruby-lang
08:37
minivan has quit [Quit: minivan]
08:37
znz_jp has quit [Ping timeout: 260 seconds]
08:38
minivan has joined #ruby-lang
08:38
<
injekt >
zzak_: what's on the agenda for this evening?
08:40
<
yorickpeterse >
what we do every evening
08:40
Johz has joined #ruby-lang
08:40
<
yorickpeterse >
trying to take over the world
08:40
andrewvos has joined #ruby-lang
08:40
<
injekt >
pinky and the brain brain brain brain brain brain brain brain
08:40
relix has joined #ruby-lang
08:40
<
yorickpeterse >
in unrelated news, fuck maven
08:40
sush24 has quit [Ping timeout: 264 seconds]
08:40
<
andrewvos >
Oh yeah
08:40
<
andrewvos >
Don't you mean mvn
08:41
<
andrewvos >
mmm ven
08:41
<
yorickpeterse >
the Java build tool that can't actually build stuff
08:41
<
yorickpeterse >
because instead it bitches about something stupid
08:42
<
yorickpeterse >
e.g. it now seems to
*insist* that plugins have a version requirement specified
08:42
<
injekt >
I write my maven in nokogiri
08:42
<
andrewvos >
I write my nokogiri in maven
08:42
<
yorickpeterse >
also fuck the new github repo layout
08:42
<
yorickpeterse >
They got rid of the single most useful URL: git read-only links for cloning
08:42
jsullivandigs has joined #ruby-lang
08:42
<
yorickpeterse >
instead it's now just HTTPs, SVN (lol) and SSH if you have write access
08:43
<
injekt >
it's still read only if you dont own it
08:43
<
yorickpeterse >
and as always there's not really a place to bitch about this other than on Twitter
08:43
<
yorickpeterse >
injekt: yes, but I'd like to use the Git protocol instead of http
08:43
<
yorickpeterse >
mostly just personal preferences
08:43
<
injekt >
sure but if they had all the urls there people would be pissed off too
08:44
<
injekt >
I dont mind it, but for me github isn't for reading code, it's for managing my project. I have my code locally to read it
08:44
<
injekt >
they made reading my code on github easier, and managing my project harder
08:45
sush24 has joined #ruby-lang
08:47
<
yorickpeterse >
I don't like how the sidebar collapses on anything but the project dashboard
08:47
jsullivandigs has quit [Ping timeout: 264 seconds]
08:48
marr has joined #ruby-lang
08:51
sush24 has quit [Ping timeout: 264 seconds]
08:51
<
yorickpeterse >
lol
08:51
<
yorickpeterse >
not sure if trolling
08:52
<
whitequark >
yorickpeterse: "What's the difference between ant and maven? The creator of maven apologized."
08:52
<
whitequark >
yorickpeterse: I think trolling.
08:52
<
whitequark >
but that's easy to reply to without inflaming.
08:52
<
whitequark >
i.e. "classes are about organizing your code, and nothing more."
08:55
vlad_starkov has joined #ruby-lang
08:56
hashkey has quit [Ping timeout: 264 seconds]
08:56
sush24 has joined #ruby-lang
08:57
vlad_starkov has quit [Remote host closed the connection]
08:57
tylersmith has joined #ruby-lang
08:59
<
zzak_ >
injekt: asakusarb and drinks
08:59
<
zzak_ >
lol i almost wrote that as
08:59
<
zzak_ >
drbrain inks
09:00
Guest__ has joined #ruby-lang
09:01
Guest__ has left #ruby-lang [#ruby-lang]
09:02
tylersmith has quit [Ping timeout: 264 seconds]
09:03
Rizzle has quit [Read error: Connection reset by peer]
09:04
sush24 has quit [Ping timeout: 264 seconds]
09:05
Rizzle has joined #ruby-lang
09:07
Voker57 has joined #ruby-lang
09:07
hashkey has joined #ruby-lang
09:10
<
yorickpeterse >
whitequark: lol
09:10
<
yorickpeterse >
I saw a good talk yesterday about OO and such
09:10
<
yorickpeterse >
(local Ruby meetup)
09:10
<
yorickpeterse >
andrewvos: what's the eta on it?
09:10
sush24 has joined #ruby-lang
09:11
<
zzak_ >
controller specs sux
09:11
GarethAdams has joined #ruby-lang
09:11
<
zzak_ >
too much troll
09:12
<
andrewvos >
yorickpeterse: GOOD JOKE I AM LAUGHING OUT LOUD
09:14
<
yorickpeterse >
My work here is done
09:14
<
yorickpeterse >
Remember, if you need a good pun just light the pun signal
09:14
MaddinXx_ has joined #ruby-lang
09:14
* yorickpeterse
runs off in to the night
09:14
dagobah has quit [Read error: Operation timed out]
09:14
<
yorickpeterse >
even though it's 11:14 and sunny
09:15
dagobah has joined #ruby-lang
09:15
Aaaarg has joined #ruby-lang
09:16
sush24 has quit [Ping timeout: 264 seconds]
09:20
adambeynon has joined #ruby-lang
09:22
sush24 has joined #ruby-lang
09:24
kvs has joined #ruby-lang
09:24
amerine has quit [Quit: Computer has gone to sleep.]
09:26
<
yorickpeterse >
This is why I fucking hate cloning over https:
09:26
<
yorickpeterse >
Username:
09:26
<
yorickpeterse >
IT'S A FUCKING PUBLIC REPOSITORY
09:27
<
whitequark >
yorickpeterse: your answer is... useless
09:27
<
yorickpeterse >
que?
09:28
<
whitequark >
or maybe not
09:28
Kero has quit [Ping timeout: 240 seconds]
09:31
bastilian has quit [Read error: Connection reset by peer]
09:31
bastilian_ has joined #ruby-lang
09:31
hogeo has quit [Remote host closed the connection]
09:33
bastilian has joined #ruby-lang
09:34
bastilian_ has quit [Read error: Connection reset by peer]
09:34
dr_bob has quit [Ping timeout: 240 seconds]
09:34
<
whitequark >
I wonder if I should learn Simula...
09:34
<
yorickpeterse >
is it actually still used?
09:34
Domon has quit [Remote host closed the connection]
09:35
dr_bob has joined #ruby-lang
09:35
<
whitequark >
not really
09:36
<
whitequark >
horrible syntax
09:37
skade has quit [Ping timeout: 246 seconds]
09:38
skade has joined #ruby-lang
09:39
gh72 has joined #ruby-lang
09:40
Newbie0086 has quit [Remote host closed the connection]
09:41
andrewvos has quit [Ping timeout: 260 seconds]
09:42
<
whitequark >
yorickpeterse: but, Smalltalk has drawn its OO from Simula.
09:44
stef_204 has joined #ruby-lang
09:49
TvL2386 has joined #ruby-lang
09:50
apeiros has quit [Remote host closed the connection]
09:50
Criztian has quit [Ping timeout: 240 seconds]
09:51
Criztian has joined #ruby-lang
09:51
gh72 has quit [Quit: leaving]
09:54
andrewvos has joined #ruby-lang
09:56
<
erikh >
it's almost like you have both so you can use both
09:56
<
yorickpeterse >
lol UML
09:56
<
whitequark >
TurkeyAdapter
09:56
* whitequark
headdesks
09:56
<
whitequark >
I can't imagine anyone discussing this with a straight face.
09:57
tonni has quit [Remote host closed the connection]
09:57
tonni has joined #ruby-lang
09:58
tylersmith has joined #ruby-lang
09:58
vlad_starkov has joined #ruby-lang
10:00
<
erikh >
FartAdapter
10:01
<
erikh >
+bonus_content()
10:01
sush24 has quit [Ping timeout: 264 seconds]
10:01
kvs has quit [Read error: Connection reset by peer]
10:01
<
yorickpeterse >
AbstractFartInterfaceFactoryAdaptorFactoryGenerator
10:02
<
tbuehlmann >
+setOdor
10:02
<
yorickpeterse >
+getAbstractFartInterfaceFactoryAdaptorFactoryGeneratorGenerator()
10:02
<
yorickpeterse >
method names should be self documenting
10:02
* yorickpeterse
runs
10:02
tylersmith has quit [Ping timeout: 276 seconds]
10:02
vlad_starkov has quit [Ping timeout: 256 seconds]
10:03
sush24 has joined #ruby-lang
10:05
<
whitequark >
erikh: :D
10:07
kvs has joined #ruby-lang
10:08
vlad_starkov has joined #ruby-lang
10:08
sush24 has quit [Ping timeout: 252 seconds]
10:12
barttenbrinke has quit [Remote host closed the connection]
10:13
sush24 has joined #ruby-lang
10:14
vlad_starkov has quit [Ping timeout: 248 seconds]
10:22
mytrile has joined #ruby-lang
10:24
<
yorickpeterse >
import org.apache.commons.httpclient.methods.StringRequestEntity;
10:24
<
yorickpeterse >
haha java
10:25
<
yorickpeterse >
also lol at empty catch() blocks
10:25
<
yorickpeterse >
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
10:26
<
yorickpeterse >
DocumentBuilder builder = factory.newDocumentBuilder();
10:26
<
yorickpeterse >
hahahaha
10:26
ruurd has joined #ruby-lang
10:26
<
yorickpeterse >
I'm just very tempted to rewrite this in Ruby because really all it does is POST shit to a webservice
10:26
<
yorickpeterse >
the actual logic is like 20 LOC
10:26
<
yorickpeterse >
the rest is just Java boilerplate
10:27
hogeo has joined #ruby-lang
10:28
ditto572 has joined #ruby-lang
10:29
hashkey has quit [Read error: Connection reset by peer]
10:29
hashkey has joined #ruby-lang
10:30
hashkey is now known as Guest91823
10:30
jsullivandigs has joined #ruby-lang
10:30
Mon_Ouie has joined #ruby-lang
10:30
Mon_Ouie has joined #ruby-lang
10:31
mdedetrich has quit [Ping timeout: 260 seconds]
10:31
mikewintermute has quit [Quit: mikewintermute]
10:31
matled- has joined #ruby-lang
10:32
matled has quit [Read error: Connection reset by peer]
10:32
matled- is now known as matled
10:32
Glass_saga has quit [Ping timeout: 264 seconds]
10:33
Kabaka has quit [Ping timeout: 240 seconds]
10:33
ledestin has quit [Read error: Connection reset by peer]
10:34
mdedetrich has joined #ruby-lang
10:34
ledestin has joined #ruby-lang
10:34
jsullivandigs has quit [Ping timeout: 240 seconds]
10:37
* whitequark
has insomnia
10:37
* whitequark
is reading MSDN
10:37
<
whitequark >
it helps.
10:38
<
whitequark >
for example, it is a good idea to read through the description of every memory management function in Windows.
10:38
* whitequark
is at HeapSetInformation
10:39
<
mdedetrich >
assuming you call some method like this
10:39
<
mdedetrich >
do_stuff(Test)
10:39
<
mdedetrich >
where Test is a class
10:39
<
mdedetrich >
how do you detect, inside do_stuff, is actually a class reference (and not a variable)
10:40
<
whitequark >
mdedetrich: classes and variables do not belong to the same domain
10:40
<
whitequark >
you probably meant a regular object.
10:40
<
whitequark >
def do_stuff(klass); if klass.is_a? Class; # do something; end; end
10:41
<
mdedetrich >
whitequark: thanks
10:41
<
mdedetrich >
that worked
10:43
<
mdedetrich >
also what is the typical ruby collection that is an unordered array (or list)
10:43
Kabaka has joined #ruby-lang
10:44
Guest91823 is now known as hashkey
10:44
rippa has quit [Ping timeout: 248 seconds]
10:45
<
mdedetrich >
nvm, got it, ruby has set
10:49
pskosinski has joined #ruby-lang
10:50
mdedetrich has quit [Ping timeout: 252 seconds]
10:51
mdedetrich has joined #ruby-lang
10:51
jacktrick has joined #ruby-lang
10:57
<
kke >
can i convert pathname to regular io somehow?
10:57
barttenbrinke has joined #ruby-lang
10:57
<
kke >
i got a method that takes content_or_readable as argument and pathname lacks things like .eof? but has .read
10:58
<
kke >
oh, to_io, maybe that works
10:58
<
kke >
sounds too easy
10:58
tylersmith has joined #ruby-lang
10:59
<
jacktrick >
^said everyone new to ruby ever
11:00
<
kke >
yes, it was awesome in the beginning
11:00
<
kke >
"would be cool if it would work like this" -"wow, it does"
11:01
Domon has joined #ruby-lang
11:02
barttenbrinke has quit [Ping timeout: 246 seconds]
11:03
tylersmith has quit [Ping timeout: 252 seconds]
11:03
<
kke >
ah, actually it didn't, to_io was IO's method, not Pathnames
11:04
malev has joined #ruby-lang
11:08
<
kke >
now how come pathname doesn't have .eof? but has .read
11:10
<
lianj >
because eof? would suggest its already an opened io instance of some sort
11:10
<
yorickpeterse >
kke: a pathname to IO?
11:10
<
yorickpeterse >
You mean just a string containing the filepath?
11:10
<
kke >
yeah, seems so, it uses IO.read instead of having an io open already
11:10
<
yorickpeterse >
to_s
11:10
<
yorickpeterse >
>> require 'pathname'; Pathname.new('/foo').to_s
11:11
<
kke >
yeah looks like i'll need to handle that differently than passing a file/io/stringio because i want to read it buffered
11:13
postmodern has quit [Quit: Leaving]
11:14
sush24_ has joined #ruby-lang
11:16
<
yorickpeterse >
I'm probably misunderstanding but from what I know you cant convert a Pathname instance to an IO instance
11:16
<
yorickpeterse >
at least not out of the box
11:16
Domon has quit [Remote host closed the connection]
11:17
sush24 has quit [Ping timeout: 256 seconds]
11:17
<
rolfb >
yorickpeterse: any objects you can send a message with the pathname to do that for you?
11:17
verto has joined #ruby-lang
11:17
<
kke >
yeah, File.open
11:18
<
yorickpeterse >
rolfb: maybe IO and friends as such can take Pathname objects, not sure
11:18
<
kke >
but actually i realized i can just do FileUtils.copy content_or_readable, dest_path if a pathname is passed
11:18
<
kke >
yeah they mostly can
11:18
<
yorickpeterse >
>> require 'pathname'; File.open(Pathname.new('/etc/shadow'), 'r'); # This will raise because there's no filesystem
11:18
<
yorickpeterse >
hm, interesting
11:18
umttumt has quit [Remote host closed the connection]
11:18
barttenbrinke has joined #ruby-lang
11:19
<
kke >
>> require 'pathname'; Pathname.new('/etc/shadow').open('r') { r.read until r.eof? }
11:19
umttumt has joined #ruby-lang
11:21
<
yorickpeterse >
oh neat, didn't even know you could directly do that on Pathname
11:22
<
kke >
yeah and .exist? and .directory? and .unlink and things like that, they're awesome
11:26
mbj has quit [Read error: Connection reset by peer]
11:27
sush24_ has quit [Ping timeout: 268 seconds]
11:28
apeiros has joined #ruby-lang
11:29
andrewvos has quit [Ping timeout: 256 seconds]
11:29
sush24 has joined #ruby-lang
11:30
mbj has joined #ruby-lang
11:31
tbuehlmann has quit [Remote host closed the connection]
11:31
xxaM has quit [Remote host closed the connection]
11:32
barttenbrinke has quit [Remote host closed the connection]
11:32
rovert has joined #ruby-lang
11:34
mdedetrich has quit [Quit: Computer has gone to sleep.]
11:39
mytrile has quit [Remote host closed the connection]
11:40
tRAS has quit [Quit: Mother, did it need to be so high?]
11:41
swygue has joined #ruby-lang
11:42
dhruvasagar has quit [Ping timeout: 260 seconds]
11:42
dhruvasagar has joined #ruby-lang
11:44
stamina has joined #ruby-lang
11:45
ldnunes has joined #ruby-lang
11:49
<
yorickpeterse >
I'm writing Java
11:49
<
yorickpeterse >
somebody kill me please
11:49
<
yorickpeterse >
before I turn into a FactoryMonsterFactory
11:50
<
yorickpeterse >
BufferedWriter w = new BufferedWriter(new OutputStreamWriter(System.out,"UTF-8"));
11:50
<
yorickpeterse >
like...wat
11:50
Aaaarg has quit [Quit: Aaaarg]
11:50
barttenbrinke has joined #ruby-lang
11:51
znz_jp has joined #ruby-lang
11:55
hhatch has joined #ruby-lang
11:55
io_syl has joined #ruby-lang
11:56
<
gnufied >
the problem is JVM does not support Process.kill() natively
11:56
<
gnufied >
otherwise, you would have been dead by now.
11:56
<
gnufied >
lets wait for OOM error though
11:57
<
yorickpeterse >
fuckit, letting the Java people do this
11:57
dhruvasagar has quit [Ping timeout: 264 seconds]
11:58
dhruvasagar has joined #ruby-lang
11:59
tylersmith has joined #ruby-lang
11:59
relix has joined #ruby-lang
12:00
ditto572 has quit [Ping timeout: 256 seconds]
12:03
relix has quit [Client Quit]
12:03
tylersmith has quit [Ping timeout: 264 seconds]
12:05
dhruvasagar has quit [Ping timeout: 256 seconds]
12:05
dhruvasagar has joined #ruby-lang
12:06
<
whitequark >
pathname is awesome
12:06
<
whitequark >
I wish ruby never used strings for paths at all.
12:07
<
whitequark >
what about... path literals? and URL literals? way more useful than all those perlisms out there.
12:07
<
whitequark >
oh, yes, and more pervasive usage of URL.
12:07
yalue has joined #ruby-lang
12:07
<
whitequark >
Rails basically explodes if you try to pass Pathnames or URLs to it.
12:08
<
yorickpeterse >
URLFactoryBuilder
12:08
<
yorickpeterse >
also, brace yourselves:
12:08
<
yorickpeterse >
>> require 'uri' URI.regex
12:08
<
eval-in >
yorickpeterse => /tmp/execpad-370a4dc9665d/source-370a4dc9665d:2: syntax error, unexpected tCONSTANT, expecting keyword_end ... (
https://eval.in/33888)
12:09
<
yorickpeterse >
errrr
12:09
<
yorickpeterse >
fail me
12:09
<
yorickpeterse >
>> require 'uri'; URI.regexp
12:09
<
yorickpeterse >
...
12:09
<
yorickpeterse >
oh ha, there's actually a newline
12:09
<
yorickpeterse >
lel
12:10
<
yorickpeterse >
either way, I do agree that "String all the things!" is annoying
12:10
dhruvasagar has quit [Ping timeout: 256 seconds]
12:14
kvs has quit [Read error: Connection reset by peer]
12:14
jacktrick has quit [Quit: Leaving]
12:15
andrewvos has joined #ruby-lang
12:16
stamina has quit [Ping timeout: 264 seconds]
12:18
rolfb has quit [Quit: Leaving...]
12:18
<
whitequark >
awesome regexp
12:18
<
whitequark >
one of the more correct uses of regular expressions.
12:20
kvs has joined #ruby-lang
12:22
cored has joined #ruby-lang
12:22
cored has quit [Changing host]
12:22
cored has joined #ruby-lang
12:22
<
lianj >
hope no one uses it to check if the string is 'only' a uri
12:24
mdedetrich has joined #ruby-lang
12:25
hogeo has quit [Remote host closed the connection]
12:29
<
whitequark >
Next, the program calls CoGetClassObject to get a pointer to IExample.dll's IClassFactory object. Note that we pass the IExample object's GUID as the first argument. We also pass a pointer to our variable classFactory which is where a pointer to the IClassFactory will be returned to us, if all goes well.
12:31
rwilcox has quit [Ping timeout: 248 seconds]
12:33
<
yorickpeterse >
whitequark: are you suicidal?
12:33
<
yorickpeterse >
Should we get help?
12:33
relix has joined #ruby-lang
12:34
<
yorickpeterse >
and don't you dare export the OLE objects on the commandline for internet information
12:34
andrewvos has quit [Ping timeout: 252 seconds]
12:35
adambeynon has joined #ruby-lang
12:36
anekos has quit [Remote host closed the connection]
12:37
<
yorickpeterse >
fuckit, 10 minute nap tiem
12:37
anekos has joined #ruby-lang
12:38
benlovell has quit [Remote host closed the connection]
12:38
<
whitequark >
yorickpeterse: helps with insomnia
12:38
<
yorickpeterse >
How do you not make it worse? I'd get nightmares reading that
12:38
<
whitequark >
I never seen anything more bland and boring than MSDN.
12:38
<
yorickpeterse >
also pretty sure you can solve that by not dealing with parse.y every night before you go to bed
12:38
<
whitequark >
meh, it's just C++ reinvented before C++ compilers got production quality
12:39
<
whitequark >
then backported back to C++.
12:43
vlad_starkov has joined #ruby-lang
12:44
rsl has joined #ruby-lang
12:45
<
whitequark >
how do I add type annotations to ruby 2.0's method definitions with kwargs?
12:45
<
whitequark >
def foo(Bar baz: 1, Foo foo)?
12:45
<
whitequark >
everything else seems to not work
12:45
<
whitequark >
baz: Bar conflicts with kwarg syntax
12:46
<
whitequark >
variations over def foo(baz => Bar) cannot accomodate kwarg syntax if => is also used for type conversion
12:46
<
whitequark >
as in: def foo(baz: 1 => Bar) is ambiguous: is it (baz: 1) => Bar, or baz: (1 => Bar)
12:47
carloslopes has joined #ruby-lang
12:48
singpolyma has quit [Ping timeout: 256 seconds]
12:48
<
charliesome >
whitequark: how about
12:48
<
charliesome >
def foo((Bar)baz, (Fixnum)lol)
12:49
<
whitequark >
even more ugly
12:49
<
whitequark >
also related
12:49
<
whitequark >
though, not sure if actually necessary
12:49
cored has quit [Quit: leaving]
12:49
<
yorickpeterse >
hmm, that was nice
12:49
<
whitequark >
declaring type of lvars: it can be "Foo foo = 10"
12:49
<
whitequark >
or "foo = 10 => foo"
12:49
<
whitequark >
(inferred from type conversion)
12:50
<
yorickpeterse >
def foo(<Bar>baz, <Foo>foo)
12:50
<
yorickpeterse >
needs <<<more>>>
12:50
<
whitequark >
also related: types of ivars declared inside the class
12:50
<
whitequark >
Foo @bar ?
12:50
<
whitequark >
@bar => Foo ?
12:50
<
whitequark >
I like => because "Foo @bar" can be interpreted as a method call.
12:50
cored has joined #ruby-lang
12:50
cored has quit [Changing host]
12:50
cored has joined #ruby-lang
12:51
<
whitequark >
ruby's grammar leaves very little room for experiments.
12:52
<
yorickpeterse >
wouldn't => conflict with hashes?
12:52
<
whitequark >
yorickpeterse: it never occurs bare
12:52
krames has joined #ruby-lang
12:52
vlad_starkov has quit [Remote host closed the connection]
12:53
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:53
<
whitequark >
and if it ever occurs in a hash, you're free to disambiguate it with ()
12:53
<
injekt >
zzak_: ping
12:53
<
yorickpeterse >
whitequark: hmmm
12:53
<
whitequark >
I feel that I really need to stop using Ruby's grammar intact and use something way, way simpler instead
12:54
<
whitequark >
it can even allow mechanical transformation from Ruby code
12:54
<
yorickpeterse >
so def increment(number => Integer) => Integer; end
12:54
singpolyma has joined #ruby-lang
12:54
<
whitequark >
right now it's def increment(Integer number) => Integer; end
12:54
<
yorickpeterse >
oh and before I forget, please make the type system so that it checks for the ancestor chain (somehow) instead of directly the class
12:54
<
whitequark >
and I don't like how it is inconsistent
12:54
<
yorickpeterse >
that way you could also pass MyInteger (given it extends Integer)
12:54
<
yorickpeterse >
since that's the single most annoying thing of type systems in my opinion: they are far too strict
12:55
<
whitequark >
yorickpeterse: that's inheritance subtyping
12:55
<
yorickpeterse >
also, you can use hungarian notation!
12:55
<
whitequark >
and any sensible type system has it
12:55
<
yorickpeterse >
def iIncrement(iNumber); end
12:55
<
whitequark >
even nonsensical ones. Java, C++, etc.
12:55
<
yorickpeterse >
C++ doesn't have it as far as I'm aware of
12:55
<
whitequark >
it does
12:56
smook4 has joined #ruby-lang
12:56
carloslopes has quit [Ping timeout: 246 seconds]
12:58
mikewintermute has joined #ruby-lang
12:58
adambeynon has joined #ruby-lang
12:59
tylersmith has joined #ruby-lang
13:02
cdelo has joined #ruby-lang
13:03
tbuehlmann has joined #ruby-lang
13:03
jwollert has joined #ruby-lang
13:03
krz has quit [Ping timeout: 240 seconds]
13:04
tylersmith has quit [Ping timeout: 256 seconds]
13:04
khaase_ has joined #ruby-lang
13:06
sush24 has quit [Quit: This computer has gone to sleep]
13:06
krz has joined #ruby-lang
13:06
<
zzak_ >
injekt: pong
13:06
<
zzak_ >
injekt: im at a british pub LOL
13:07
<
kke >
splitting long ifs looks ugly somehow
13:07
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:07
<
kke >
because the next line of conditionals lines up with the code following it
13:07
adambeynon has joined #ruby-lang
13:08
<
yorickpeterse >
zzak_: how long are you in Glorious Dainippon anyway?
13:08
sush24 has joined #ruby-lang
13:09
breakingthings has joined #ruby-lang
13:10
mytrile has joined #ruby-lang
13:11
joshuawscott has joined #ruby-lang
13:12
<
zzak_ >
injekt: nice!
13:12
<
zzak_ >
yorickpeterse: i leave for home, and my cat, sunday
13:12
<
matti >
zzak_: Back in the US?
13:12
<
matti >
zzak_: Or enjoying humid night in Tokyo?
13:13
thiagoborges has joined #ruby-lang
13:13
<
yorickpeterse >
zzak_: Ah
13:14
<
injekt >
zzak_: I hope you're drinking something british
13:14
<
yorickpeterse >
zzak_: weren't you going to Euruko as well?
13:15
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:15
swygue has quit [Ping timeout: 240 seconds]
13:16
adambeynon has joined #ruby-lang
13:16
wmoxam has joined #ruby-lang
13:17
apeiros has quit [Remote host closed the connection]
13:19
<
yorickpeterse >
def polymorphic_path(record_or_hash_or_array, options = {})
13:19
<
yorickpeterse >
haha that variable name
13:20
adambeynon has quit [Client Quit]
13:22
<
injekt >
I think record would be enough
13:22
tkuchiki has quit [Remote host closed the connection]
13:23
<
whitequark >
duh, I really need to work something out with this syntax.
13:23
<
whitequark >
it is really going to end up as a disaster.
13:24
<
yorickpeterse >
Ruby++
13:24
<
yorickpeterse >
Ruby With Types
13:25
<
whitequark >
ruby already has types.
13:27
<
yorickpeterse >
Ruby With Static Types
13:27
<
yorickpeterse >
fine, w/e
13:27
<
yorickpeterse >
now just add macros and templates and you're done :>
13:28
<
gnufied >
i want ruby to support immutable variables and values
13:28
<
gnufied >
a = 10, a = 15 sorry
13:28
rippa has joined #ruby-lang
13:28
<
gnufied >
things like that
13:28
<
gnufied >
a.update(:crap => "foo") sorry!
13:29
<
gnufied >
injekt: not a fan?
13:29
<
injekt >
the first one doesnt make much sense
13:29
<
Mon_Ouie >
A = 10; A = 15
13:29
<
injekt >
that's not mutating the object
13:29
<
Mon_Ouie >
a.freeze
13:29
<
gnufied >
thats why we are talking about two things
13:29
<
injekt >
which is why freeze wouldn't help
13:29
<
gnufied >
1. immutable objects
13:29
<
gnufied >
2. immutable references
13:30
<
injekt >
well then no I dont agree with 2
13:30
<
injekt >
that's what constants are for
13:30
dr_bob has quit [Quit: Leaving.]
13:30
<
gnufied >
constants can always be overridden
13:30
<
injekt >
and 1 is solved by freeze basically
13:30
mikewintermute has quit [Quit: mikewintermute]
13:30
<
gnufied >
not really
13:30
<
injekt >
well not entirely
13:30
<
gnufied >
there bunch of edge cases around frozen objects
13:30
<
gnufied >
(last i looked)
13:31
<
injekt >
sounds like you want python
13:31
<
gnufied >
python has immutable references?
13:31
<
injekt >
no I was referring to objects
13:32
synthetix has joined #ruby-lang
13:32
<
gnufied >
Mon_Ouie: that just a warning and nobody will use constant for local immutable references will they?
13:32
ChinggizKhan has joined #ruby-lang
13:32
pipework has joined #ruby-lang
13:32
<
injekt >
I don't know if I see the benefit of local immutable references
13:32
<
injekt >
like at all
13:32
atmosx has joined #ruby-lang
13:32
<
yorickpeterse >
immutability isn't a holy grail
13:33
<
gnufied >
injekt: for one, one can guarantee that function is side-effect free?
13:33
<
yorickpeterse >
I probably shouldn't say that on HN
13:35
<
injekt >
it would remove a lot of the nice dynamic capabilities of ruby, or any dynamic language
13:35
<
injekt >
erlang has this right?
13:35
<
gnufied >
yes. clojure has it.
13:35
<
gnufied >
I am not saying it has to be made a default behaviour.
13:36
<
gnufied >
I am saying, it should be possible.
13:36
<
yorickpeterse >
I'd also say that by nature those systems would be less memory efficient, though you can probably optimize that to death as well
13:36
TvL2386 has quit [Quit: Ex-Chat]
13:36
benlovell has joined #ruby-lang
13:36
<
injekt >
why would they be less memory efficient? storing references?
13:37
<
gnufied >
probably he is thinking, updating a object will have to yield a new object
13:37
<
gnufied >
rather than modifying existing one.
13:38
<
gnufied >
he is right, but there are ways to get around that. people have been building functional data structures for decades
13:38
scampbell has joined #ruby-lang
13:38
<
injekt >
most languages yield new objects when mutating anyway, including ruby
13:39
<
gnufied >
not really. ruby strings are mutable.
13:39
<
gnufied >
so as about everything almost.
13:40
<
gnufied >
I am not saying immutable references or objects has to be default. because then we are looking at entirely different language.
13:40
<
gnufied >
they should be possible.
13:40
<
gnufied >
</2 cents>
13:41
<
yorickpeterse >
injekt: due to it being immutable you'd have to create new copies for every modifcation. However, like I said you can optimize for this
13:41
<
yorickpeterse >
up to the point where it might not make a difference
13:42
<
injekt >
im just gonna use go
13:42
tonni has quit [Remote host closed the connection]
13:43
<
gnufied >
i have been working very slowly through learning go properly!
13:43
umttumt has quit [Remote host closed the connection]
13:43
<
gnufied >
need something to use it for
13:44
gix has quit [Ping timeout: 245 seconds]
13:45
jwollert has quit [Ping timeout: 260 seconds]
13:45
tomzx_mac has joined #ruby-lang
13:46
adambeynon has joined #ruby-lang
13:47
<
yorickpeterse >
meanwhile I'm trying to make Rails deal with my contextual based link_to madness
13:47
<
yorickpeterse >
SO CLOSE
13:47
<
yorickpeterse >
SO GOD DAMN CLOSE
13:47
jwollert has joined #ruby-lang
13:48
<
injekt >
do you just wake up in the morning and think, "what kind of weird ass shit can i do today?"
13:48
<
injekt >
you always seem to have weird/interesting problems to solve
13:49
gix has joined #ruby-lang
13:49
<
yorickpeterse >
injekt: it's called "having a nice job"
13:49
<
gnufied >
and he is really short on co-workers and hence we have to listen. :-)
13:49
<
yorickpeterse >
or "being fucking crazy"
13:50
<
injekt >
I'll go for the later
13:50
<
gnufied >
what is this contextual link_to() yorick/
13:50
<
injekt >
I have a nice job and I dont have these kind of weird problems
13:50
<
yorickpeterse >
tl;dr: this app has "stacked pages" similar to Basecamp (basically contexts), I want link_to and such to deal with that
13:50
<
yorickpeterse >
or at least have a similar helper that can do that
13:50
<
injekt >
rather than writing full paths?
13:50
<
yorickpeterse >
Mind you you can have 4 contexts in a lot of cases
13:51
<
yorickpeterse >
so for each link you'll end up with a case/if-else statement to deal with that
13:51
<
yorickpeterse >
e.g. /contracts/1/users, /companies/2/users, /company_groups/2/users, etc
13:51
<
gnufied >
perhaps those presenters can solve some of the problem?
13:52
<
yorickpeterse >
I'm doing it in a one-liner
13:52
<
yorickpeterse >
at least that's what I want to achieve
13:52
<
gnufied >
as in - you are free to define polymorphic path helpers in them
13:52
<
yorickpeterse >
and I'm actually pretty close
13:52
<
gnufied >
whereas if you do that in models, people willl cry and fall over
13:52
<
yorickpeterse >
contextual_path(:edit, some_user_object) # => takes care of it
13:52
minivan has quit [Remote host closed the connection]
13:52
<
yorickpeterse >
I'm doing it in a helper
13:52
<
gnufied >
is defining path helpers in models, just cargo cult?
13:52
<
gnufied >
i mean hating it
13:53
<
injekt >
models should not care about views
13:53
<
yorickpeterse >
I'm currently abusing build_named_route_call for most of the work
13:53
<
yorickpeterse >
and that
13:53
fragamus has joined #ruby-lang
13:53
<
injekt >
if you include the url helpers in a model, you should be smacked
13:53
<
gnufied >
injekt: but they don't. they just have a method that a view can use.
13:54
<
gnufied >
injekt: I don't almost 100%.
13:54
<
injekt >
that's what view helpers were built for
13:54
<
gnufied >
but I am not very sure.
13:54
<
injekt >
or presenters if you like them
13:54
<
injekt >
git rebase is like the best thing ever
13:55
andrewvos has joined #ruby-lang
13:55
<
gnufied >
there is also polymorphic_url_for or something tbh
13:55
<
yorickpeterse >
injekt: I can never get the hang of it
13:55
<
injekt >
yorickpeterse: it's a god damn beast, so powerful, I only use the basic features
13:55
smook4 has quit [Ping timeout: 255 seconds]
13:56
<
yorickpeterse >
I always end up rebasing myself into hell
13:56
<
yorickpeterse >
(Git hell)
13:56
netShadow has quit [Ping timeout: 276 seconds]
13:57
vlad_starkov has joined #ruby-lang
13:57
<
injekt >
I dont do anything magical with it, I dont see myself as advanced with git on any level, it's way too confusing
13:57
<
injekt >
but rebase, rebase is the shit
13:57
<
yorickpeterse >
HAHAHAHA IT WORKS
13:57
<
yorickpeterse >
<insert picture of Frankenstein scene>
13:58
<
yorickpeterse >
contextual_path(:new, :user) or contextual_path(:new, user) (using an object)
13:59
<
yorickpeterse >
one last step: fixing the location of the available contexts, right now these come from a method
13:59
<
yorickpeterse >
but meh, I don't want to define one of those for every controller
13:59
vlad_starkov has quit [Remote host closed the connection]
13:59
<
injekt >
what are you building?
13:59
<
gnufied >
yorickpeterse: polymorphic_url didn't do?
13:59
<
yorickpeterse >
No, it slaps too much in front of it
14:00
<
yorickpeterse >
I needed the very last segment of the path, not everything
14:00
tylersmith has joined #ruby-lang
14:00
<
yorickpeterse >
so "user_path" instead of /foo/bar/user_path
14:01
nathanstitt has joined #ruby-lang
14:01
vbatts|work has joined #ruby-lang
14:02
mistym has joined #ruby-lang
14:03
Uranio has joined #ruby-lang
14:03
umttumt has joined #ruby-lang
14:04
tylersmith has quit [Ping timeout: 264 seconds]
14:04
gja has quit [Quit: This computer has gone to sleep]
14:05
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:05
jsullivandigs has joined #ruby-lang
14:06
relix has joined #ruby-lang
14:08
vbatts|work has quit [Quit: MeSoChatty 0.3.8]
14:09
jsullivandigs has quit [Ping timeout: 240 seconds]
14:10
x0f has quit [Ping timeout: 246 seconds]
14:11
netShadow has joined #ruby-lang
14:11
justinmburrous has joined #ruby-lang
14:12
x0f has joined #ruby-lang
14:13
smook4 has joined #ruby-lang
14:14
dhruvasagar has joined #ruby-lang
14:15
fragamus has quit [Quit: Computer has gone to sleep.]
14:19
krz has quit [Quit: krz]
14:20
rovert has quit [Quit: Leaving]
14:20
carloslopes has joined #ruby-lang
14:21
netShadow has quit [Read error: Connection timed out]
14:27
GeissT has quit [Read error: Connection reset by peer]
14:27
DomKM has joined #ruby-lang
14:29
atmosx has quit [Quit: And so the story goes…]
14:30
tonni has joined #ruby-lang
14:33
umttumt has quit [Remote host closed the connection]
14:33
nathanstitt has quit [Quit: I growing sleepy]
14:38
gnufied has quit [Quit: Leaving.]
14:41
mdedetrich has quit [Quit: Computer has gone to sleep.]
14:41
gregmoreno has joined #ruby-lang
14:42
jsullivandigs has joined #ruby-lang
14:42
ledestin has quit [Ping timeout: 246 seconds]
14:42
synthetix has quit [Read error: Operation timed out]
14:43
Uranio has quit [Quit: while you reading this, a kitty dies]
14:44
ledestin has joined #ruby-lang
14:46
gregmoreno has quit [Remote host closed the connection]
14:46
tomzx_mac has quit [Read error: Operation timed out]
14:47
randallagordon has quit [Quit: leaving]
14:47
randallagordon has joined #ruby-lang
14:48
gnufied has joined #ruby-lang
14:48
gnufied1 has joined #ruby-lang
14:49
wesside has joined #ruby-lang
14:52
cameronbarton has joined #ruby-lang
14:53
gnufied has quit [Ping timeout: 248 seconds]
14:54
andrewvos has quit [Ping timeout: 264 seconds]
14:55
hogeo has joined #ruby-lang
14:56
pipework has quit [Remote host closed the connection]
14:58
io_syl has quit [Quit: Computer has gone to sleep.]
14:59
wallerdev has joined #ruby-lang
14:59
wallerdev has quit [Client Quit]
14:59
<
erikh >
he invents them
14:59
<
erikh >
also I'm grumpy
15:00
nathanstitt has joined #ruby-lang
15:00
tylersmith has joined #ruby-lang
15:01
justinmburrous has quit [Remote host closed the connection]
15:01
justinmburrous has joined #ruby-lang
15:04
hogeo has quit [Remote host closed the connection]
15:04
tylersmith has quit [Ping timeout: 246 seconds]
15:05
ffio_ has joined #ruby-lang
15:06
ffio has quit [Ping timeout: 264 seconds]
15:09
andrewvos has joined #ruby-lang
15:10
gnufied1 has quit [Quit: Leaving.]
15:10
dhruvasagar has quit [Ping timeout: 240 seconds]
15:11
Squarepy has joined #ruby-lang
15:12
cameronbarton has quit [Ping timeout: 250 seconds]
15:15
gnufied has joined #ruby-lang
15:15
gnufied has quit [Write error: Broken pipe]
15:15
gnufied1 has joined #ruby-lang
15:16
Uranio has joined #ruby-lang
15:18
mytrile has quit [Remote host closed the connection]
15:24
andrewvos has quit [Ping timeout: 240 seconds]
15:25
dr_bob has joined #ruby-lang
15:28
mhenrixon has joined #ruby-lang
15:28
carloslopes has quit [Remote host closed the connection]
15:29
tbuehlmann has quit [Remote host closed the connection]
15:30
dr_bob1 has joined #ruby-lang
15:30
bastilian has quit [Quit: Leaving...]
15:30
dhruvasagar has joined #ruby-lang
15:30
s0ber has quit [Ping timeout: 245 seconds]
15:31
amcoder has joined #ruby-lang
15:31
dr_bob has quit [Ping timeout: 240 seconds]
15:32
banisterfiend has joined #ruby-lang
15:33
<
banisterfiend >
Asher: sup
15:33
s0ber has joined #ruby-lang
15:35
wallerdev has joined #ruby-lang
15:41
hogeo has joined #ruby-lang
15:42
anonymuse has joined #ruby-lang
15:42
arooni-mobile has quit [Ping timeout: 240 seconds]
15:44
amcoder has quit [Quit: …quit…]
15:45
tonni has quit [Remote host closed the connection]
15:46
havenwood has joined #ruby-lang
15:49
justinmburrous has quit [Remote host closed the connection]
15:51
mytrile has joined #ruby-lang
15:51
barttenbrinke has quit [Remote host closed the connection]
15:53
dhruvasagar has quit [Ping timeout: 252 seconds]
15:54
bastilian has joined #ruby-lang
15:55
badgerisk has joined #ruby-lang
15:56
gregmoreno has joined #ruby-lang
15:57
JpC0utur3 has joined #ruby-lang
15:58
krohrbaugh has joined #ruby-lang
15:59
carloslopes has joined #ruby-lang
16:00
krohrbaugh has quit [Client Quit]
16:01
krohrbaugh has joined #ruby-lang
16:01
gregmoreno has quit [Ping timeout: 256 seconds]
16:01
tylersmith has joined #ruby-lang
16:04
dankest has joined #ruby-lang
16:05
gnufied1 has quit [Quit: Leaving.]
16:05
hogeo has quit [Remote host closed the connection]
16:06
arooni-mobile has joined #ruby-lang
16:06
__butch__ has joined #ruby-lang
16:06
<
Uranio >
there is any SIMPLE gem for make a twitt?
16:07
<
ericwood >
the twitter gem
16:07
<
ericwood >
but you still have to grapple with OAuth for any and all twitter-related gems
16:07
<
ericwood >
so yay :D:D:D:D
16:07
carloslopes has quit [Ping timeout: 256 seconds]
16:07
tylersmith has quit [Remote host closed the connection]
16:07
Johz has quit [Ping timeout: 240 seconds]
16:08
<
Uranio >
ericwood: yeah, show be cool... but do not support proxy
16:08
<
Uranio >
oauth is not a problem
16:08
<
ericwood >
my mind broke trying to parse that sentence
16:08
<
Uranio >
proyx's support is the problem
16:08
<
ericwood >
elaborate plz!
16:12
<
Uranio >
ericwood: ericwood.mind=Cuban::Lang::WeirdEnglish.new do |input|
16:12
<
ericwood >
ah Cuban WeirdEnglish
16:12
<
Uranio >
the problem is in the proxy... I need to use a proxy
16:12
<
ericwood >
ah, see that I can't help you with
16:12
<
Uranio >
not connecting direct to internet
16:13
<
ericwood >
I don't know anything about proxying
16:13
<
ericwood >
but I feel like that should be done at the OS level
16:13
<
ericwood >
forward all traffic over the proxy?
16:13
<
ericwood >
but you probably don't want to do that (I wouldn't, either)
16:14
<
Uranio >
everything work, except the twitter gem... what should by the mistery
16:18
tkuchiki has joined #ruby-lang
16:19
ledestin has quit [Ping timeout: 276 seconds]
16:22
solars has quit [Ping timeout: 264 seconds]
16:23
io_syl has joined #ruby-lang
16:24
badgerisk has quit [Ping timeout: 250 seconds]
16:24
ledestin has joined #ruby-lang
16:24
elia has quit [Ping timeout: 264 seconds]
16:26
nathanstitt has quit [Quit: I growing sleepy]
16:26
sush24 has quit [Quit: This computer has gone to sleep]
16:29
dhruvasagar has joined #ruby-lang
16:31
vlad_starkov has joined #ruby-lang
16:35
banisterfiend has quit [Remote host closed the connection]
16:36
benlovell has quit [Ping timeout: 268 seconds]
16:36
banisterfiend has joined #ruby-lang
16:37
Criztian has quit [Remote host closed the connection]
16:38
nathanstitt has joined #ruby-lang
16:40
northelks has quit [Read error: Connection reset by peer]
16:40
northelks has joined #ruby-lang
16:42
carloslopes has joined #ruby-lang
16:43
NemesisD has joined #ruby-lang
16:43
<
NemesisD >
anyone know how to pull the numbers before and after the decimal in a bigdecimal
16:43
dr_bob1 has left #ruby-lang [#ruby-lang]
16:43
Kero has joined #ruby-lang
16:43
<
NemesisD >
im struggling to remember the term for it. i thought it was the mantissa but im not sure
16:44
rue_XIV has quit [Remote host closed the connection]
16:44
<
banisterfiend >
NemesisD: use mod
16:45
rue has joined #ruby-lang
16:46
<
NemesisD >
banisterfiend: ah so like integer, decimal = bigdec.divmod(1).map(&:truncate)
16:46
torrieri has joined #ruby-lang
16:46
<
NemesisD >
what are the terms for those 2 parts
16:48
<
banisterfiend >
#math ;)
16:48
stamina has joined #ruby-lang
16:49
workmad3 has joined #ruby-lang
16:52
melter has quit [Remote host closed the connection]
16:55
saarinen has joined #ruby-lang
16:56
marr has quit [Ping timeout: 260 seconds]
16:57
mytrile has quit [Remote host closed the connection]
16:58
<
Squarepy >
NemesisD, the definition distinguishes the pre-factor (mantissa) and the exponent (relative to the chosen base)
17:01
apeiros has joined #ruby-lang
17:01
adambeynon has joined #ruby-lang
17:02
krames has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
17:03
justinmburrous has joined #ruby-lang
17:03
tkuchiki has quit [Remote host closed the connection]
17:06
amerine has joined #ruby-lang
17:07
bastilian has quit [Quit: Leaving...]
17:07
krohrbaugh has quit [Quit: Leaving.]
17:09
krohrbaugh has joined #ruby-lang
17:11
enQA has joined #ruby-lang
17:11
fsvehla has joined #ruby-lang
17:13
<
erikh >
math math math
17:14
<
injekt >
math shmath
17:14
<
injekt >
math is hard lets talk concurrency
17:14
justinmburrous has quit [Remote host closed the connection]
17:14
<
erikh >
injekt: sadly, that's easier for me
17:14
JohnBat26 has quit [Ping timeout: 240 seconds]
17:15
justinmburrous has joined #ruby-lang
17:15
workmad3 has quit [Ping timeout: 264 seconds]
17:15
<
injekt >
erikh: me too :(
17:16
<
injekt >
and even more sadly not because im awesome at concurrency
17:16
hogeo has joined #ruby-lang
17:16
<
erikh >
hehe exactly
17:16
<
erikh >
I FEEL YA BRAH
17:16
<
injekt >
HEY DONT TOUCH THERE
17:17
<
erikh >
much pot was smoked during this time in my life
17:18
JohnBat26 has joined #ruby-lang
17:18
GarethAdams has quit [Quit: Leaving...]
17:20
mytrile has joined #ruby-lang
17:20
dagobah has quit [Remote host closed the connection]
17:20
hogeo has quit [Ping timeout: 276 seconds]
17:22
pskosinski has quit [Remote host closed the connection]
17:23
tylersmith has joined #ruby-lang
17:26
swav has quit [Remote host closed the connection]
17:28
mrsolo has joined #ruby-lang
17:30
symm- has joined #ruby-lang
17:31
ehutzelman has joined #ruby-lang
17:33
krames has joined #ruby-lang
17:34
flak has joined #ruby-lang
17:35
flak is now known as Guest81003
17:35
jonahR has joined #ruby-lang
17:37
rippa has quit [Ping timeout: 248 seconds]
17:39
Guest81003 has left #ruby-lang [#ruby-lang]
17:39
rippa has joined #ruby-lang
17:40
stamina has quit [Ping timeout: 248 seconds]
17:40
tRAS has joined #ruby-lang
17:42
sepp2k has joined #ruby-lang
17:43
joshuawscott has quit [Quit: joshuawscott]
17:48
dhruvasagar has quit [Ping timeout: 256 seconds]
17:49
dhruvasagar has joined #ruby-lang
17:50
vbatts|work has joined #ruby-lang
17:51
vbatts|work has quit [Read error: Connection reset by peer]
17:53
spinagon has joined #ruby-lang
17:55
dhruvasagar has quit [Ping timeout: 240 seconds]
17:56
gnufied has joined #ruby-lang
17:56
ruurd has quit [Quit: Leaving...]
17:57
rippa has quit [Ping timeout: 248 seconds]
18:01
gregmoreno has joined #ruby-lang
18:03
fedesilva has joined #ruby-lang
18:04
marr has joined #ruby-lang
18:05
Uranio has quit [Quit: while you reading this, a kitty dies]
18:09
joshuawscott has joined #ruby-lang
18:10
dhruvasagar has joined #ruby-lang
18:11
DomKM has quit [Quit: Leaving.]
18:11
tRAS has quit [Quit: Mother, did it need to be so high?]
18:11
torrieri has quit [Quit: Leaving...]
18:12
havenwood has quit [Read error: Connection reset by peer]
18:13
gnufied has quit [Quit: Leaving.]
18:14
stamina has joined #ruby-lang
18:15
tonni has joined #ruby-lang
18:16
mytrile has quit [Remote host closed the connection]
18:16
benlovell has joined #ruby-lang
18:17
justinmb_ has joined #ruby-lang
18:17
benlovell has quit [Client Quit]
18:17
firstdayonthejob has joined #ruby-lang
18:18
justinmburrous has quit [Ping timeout: 240 seconds]
18:20
vlad_starkov has quit [Remote host closed the connection]
18:22
segy has quit [*.net *.split]
18:22
ohsix has quit [*.net *.split]
18:22
robbyoconnor has quit [*.net *.split]
18:22
weeb1e has quit [*.net *.split]
18:22
pygmael has quit [*.net *.split]
18:22
Guest27874 has quit [*.net *.split]
18:22
cmckni3 has quit [*.net *.split]
18:22
segy has joined #ruby-lang
18:22
Guest27874 has joined #ruby-lang
18:22
robbyoconnor has joined #ruby-lang
18:22
zachlatta has joined #ruby-lang
18:23
ohsix has joined #ruby-lang
18:23
weeb1e has joined #ruby-lang
18:24
pygmael has joined #ruby-lang
18:25
rodj has joined #ruby-lang
18:28
DomKM has joined #ruby-lang
18:29
torrieri has joined #ruby-lang
18:30
carloslopes has quit [Remote host closed the connection]
18:33
carloslopes has joined #ruby-lang
18:33
mbj has quit [Quit: leaving]
18:33
zmike123 has joined #ruby-lang
18:34
justinmb_ has quit [Remote host closed the connection]
18:34
justinmburrous has joined #ruby-lang
18:42
justinmburrous has quit [Remote host closed the connection]
18:42
<
injekt >
wrong window
18:48
ruurd has joined #ruby-lang
18:48
enQA_ has joined #ruby-lang
18:49
enQA has quit [Quit: Page closed]
18:52
fsvehla has quit [Quit: fsvehla]
18:53
fsvehla has joined #ruby-lang
18:58
ehutzelman has quit [Remote host closed the connection]
18:59
DomKM1 has joined #ruby-lang
18:59
DomKM has quit [Ping timeout: 264 seconds]
19:00
krohrbaugh1 has joined #ruby-lang
19:00
krohrbaugh1 has quit [Client Quit]
19:00
elia has joined #ruby-lang
19:01
justinmburrous has joined #ruby-lang
19:03
justinmburrous has quit [Remote host closed the connection]
19:03
enQA_ has left #ruby-lang [#ruby-lang]
19:03
krohrbaugh1 has joined #ruby-lang
19:03
krohrbaugh has quit [Ping timeout: 240 seconds]
19:05
Mon_Ouie has quit [Quit: WeeChat 0.4.1]
19:06
synthetix has joined #ruby-lang
19:07
elia has quit [Quit: Computer has gone to sleep.]
19:07
Mon_Ouie has joined #ruby-lang
19:08
enQA has joined #ruby-lang
19:09
Linkedipsoul has joined #ruby-lang
19:10
elia has joined #ruby-lang
19:11
mbj has joined #ruby-lang
19:12
elia has quit [Client Quit]
19:16
enQA has quit [Ping timeout: 250 seconds]
19:17
_dumfrie- has quit [Ping timeout: 248 seconds]
19:17
dumfries has quit [Ping timeout: 248 seconds]
19:18
tbuehlmann has joined #ruby-lang
19:18
dhruvasagar has quit [Read error: Connection reset by peer]
19:21
ruurd has quit [Quit: Leaving...]
19:22
ruurd has joined #ruby-lang
19:23
ruurd has quit [Client Quit]
19:23
hhatch has quit [Ping timeout: 246 seconds]
19:29
pipework has joined #ruby-lang
19:30
Squarepy has quit [Quit: Leaving]
19:31
sepp2k1 has joined #ruby-lang
19:32
sepp2k has quit [Read error: Operation timed out]
19:38
krohrbaugh1 has quit [Quit: Leaving.]
19:40
krohrbaugh has joined #ruby-lang
19:42
Criztian has joined #ruby-lang
19:43
pskosinski has joined #ruby-lang
19:44
workmad3 has joined #ruby-lang
19:44
saarinen has quit [Quit: saarinen]
19:48
robbyoconnor has quit [Read error: Connection reset by peer]
19:49
adambeynon has joined #ruby-lang
19:54
<
wnd >
darn focus stealers
19:55
<
wnd >
actually, I believe the word is "thief". anyway. carry on.
19:57
heftig has quit [Ping timeout: 245 seconds]
19:57
Squarepy has joined #ruby-lang
19:59
sush24 has joined #ruby-lang
20:00
elia has joined #ruby-lang
20:02
jsullivandigs has quit [Remote host closed the connection]
20:02
jsullivandigs has joined #ruby-lang
20:03
carloslopes has quit [Remote host closed the connection]
20:04
<
apeiros >
wnd: cats on youtube again?
20:05
arooni-mobile has quit [Remote host closed the connection]
20:05
Linkedipsoul has quit [Quit: Leaving]
20:06
justinmburrous has joined #ruby-lang
20:07
jsullivandigs has quit [Ping timeout: 246 seconds]
20:08
justinmburrous has quit [Remote host closed the connection]
20:09
Linkedipsoul has joined #ruby-lang
20:13
benanne has joined #ruby-lang
20:14
jsullivandigs has joined #ruby-lang
20:16
postmodern has joined #ruby-lang
20:20
dc5ala has joined #ruby-lang
20:23
spinagon has quit [Ping timeout: 248 seconds]
20:24
tbuehlmann has quit [Remote host closed the connection]
20:27
zmike123 has quit [Quit: Выходжу]
20:29
gnufied has joined #ruby-lang
20:30
swav has joined #ruby-lang
20:31
heftig has joined #ruby-lang
20:31
andrewvos has joined #ruby-lang
20:33
Criztian has quit [Remote host closed the connection]
20:34
gnufied has quit [Quit: Leaving.]
20:34
pipework has quit [Remote host closed the connection]
20:35
torrieri has quit [Quit: Leaving...]
20:37
cored has quit [Ping timeout: 256 seconds]
20:38
<
yorickpeterse >
github plz
20:39
pipework has joined #ruby-lang
20:39
Criztian has joined #ruby-lang
20:39
cored has joined #ruby-lang
20:39
cored has quit [Changing host]
20:39
cored has joined #ruby-lang
20:40
kstuart has joined #ruby-lang
20:40
tdy has quit [Read error: Connection reset by peer]
20:41
kstuart has quit [Client Quit]
20:42
tdy has joined #ruby-lang
20:45
workmad3 has quit [Ping timeout: 246 seconds]
20:46
yaroslav has joined #ruby-lang
20:47
ffio_ has quit [Ping timeout: 264 seconds]
20:47
yaroslav has quit [Client Quit]
20:48
saarinen has joined #ruby-lang
20:48
Criztian has quit [Remote host closed the connection]
20:49
fragamus has joined #ruby-lang
20:50
kstuart has joined #ruby-lang
20:52
jsullivandigs has quit [Remote host closed the connection]
20:53
jsullivandigs has joined #ruby-lang
20:54
towski has joined #ruby-lang
20:55
torrieri has joined #ruby-lang
20:57
shykes has joined #ruby-lang
20:57
jsullivandigs has quit [Ping timeout: 256 seconds]
20:57
torrieri has quit [Client Quit]
21:00
jsullivandigs has joined #ruby-lang
21:00
michalr has joined #ruby-lang
21:02
MaddinXx_ has quit [Remote host closed the connection]
21:06
lcdhoffman has joined #ruby-lang
21:06
lcdhoffman has quit [Client Quit]
21:07
lcdhoffman has joined #ruby-lang
21:08
michalr has quit [Quit: leaving]
21:12
fsvehla has quit [Quit: fsvehla]
21:13
ldnunes has quit [Quit: Leaving]
21:15
dc5ala has quit [Quit: Ex-Chat]
21:16
vlad_starkov has joined #ruby-lang
21:18
<
andrewvos >
Ok so I want to make a cucumber formatter that shows the time remaining in a bar at the bottom of the screen. Suggestions?
21:18
<
andrewvos >
I have so far created a custom formatter that forward calls on to the Pretty formatter
21:19
sush24 has quit [Quit: This computer has gone to sleep]
21:19
<
andrewvos >
And I'm trying to write the bar at the bottom but have no idea how to make it work without ruining the ruby output
21:20
<
banisterfiend >
andrewvos: you'er using curses for the bar?
21:21
<
andrewvos >
banisterfiend: Nahh I'm just doing a print "\r" ; print "some shit"; print "\r" so far
21:21
<
andrewvos >
banisterfiend: But perhaps that is a better option
21:21
cored has quit [Ping timeout: 256 seconds]
21:21
<
andrewvos >
I kinda want something like tmux does
21:21
<
andrewvos >
For the entire test run
21:25
scampbell has quit [Remote host closed the connection]
21:26
Squarepy has quit [Quit: Leaving]
21:28
torrieri has joined #ruby-lang
21:31
kung_fu_mike has joined #ruby-lang
21:32
krames has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
21:32
cored has joined #ruby-lang
21:32
cored has quit [Changing host]
21:32
cored has joined #ruby-lang
21:33
<
kung_fu_mike >
When my application spins up, I need to create a class with a name based on a string eg:
21:33
<
kung_fu_mike >
new_class_name = "MyNewClass"
21:33
<
kung_fu_mike >
class new_class_name.constantize
21:33
<
kung_fu_mike >
Can someone point me in the right direction for doing that?
21:34
<
kung_fu_mike >
I am not sure if I should look at eval mixed with const_set in some way
21:34
<
kung_fu_mike >
or what
21:35
<
injekt >
>> Object.const_set("Foo", Class.new).new
21:35
sush24 has joined #ruby-lang
21:35
<
kung_fu_mike >
Ah ha, ok, that makes sense
21:36
sush24 has quit [Client Quit]
21:36
<
kung_fu_mike >
and is there a way to do it and have the class be a child class?
21:36
wmoxam has quit [Ping timeout: 264 seconds]
21:36
<
kung_fu_mike >
Thank you by the way
21:36
<
kung_fu_mike >
maybe like:
21:36
torrieri has quit [Ping timeout: 256 seconds]
21:36
<
apeiros >
kung_fu_mike: take a look at Class.new's documentation
21:37
<
kung_fu_mike >
Object.const_set("Foo", Class.new < ParentClass).new
21:37
<
kung_fu_mike >
yeah, I am looking for it now
21:37
<
kung_fu_mike >
That was the starting point I really needed
21:37
cameronbarton has joined #ruby-lang
21:40
<
kung_fu_mike >
Object.const_set("ChildExample", Class.new(String))
21:40
<
kung_fu_mike >
Awesome
21:40
<
kung_fu_mike >
thanks again
21:41
<
kung_fu_mike >
(If anyone searches the logs, the line above will make a class that descends from String)
21:41
kung_fu_mike has left #ruby-lang [#ruby-lang]
21:41
<
andrewvos >
Anyone know how to return the cursor to the bottom left?
21:41
<
andrewvos >
In terminal
21:42
<
injekt >
move your mouse
21:42
kvs has quit [Read error: Connection reset by peer]
21:42
<
yorickpeterse >
andrewvos: move the mouse to the bottom left
21:42
<
apeiros >
andrewvos: click!
21:42
<
andrewvos >
I CUT YOU BOTH
21:42
<
yorickpeterse >
The Dutch actually had an ad about this
21:42
<
yorickpeterse >
lemme look it up
21:43
thiagoborges has quit [Remote host closed the connection]
21:44
dingus_khan has joined #ruby-lang
21:46
<
andrewvos >
Curses.curx and Curses.cury
21:46
<
andrewvos >
FACEEEEPALM
21:46
stamina has quit [Ping timeout: 256 seconds]
21:47
kvs has joined #ruby-lang
21:47
rodj has quit [Quit: Page closed]
21:51
symm- has quit [Ping timeout: 246 seconds]
21:52
cameronbarton has quit [Ping timeout: 250 seconds]
21:56
<
zenspider >
mmmmm curry
21:57
krohrbaugh has quit [Quit: Leaving.]
21:58
krohrbaugh has joined #ruby-lang
21:58
<
erikh >
partial appetizers
21:59
breakingthings has quit [Quit: breakingthings]
21:59
vbatts|work has joined #ruby-lang
22:02
vbatts|work has quit [Client Quit]
22:03
torrieri has joined #ruby-lang
22:05
__butch__ has quit [Quit: Leaving.]
22:07
elia has quit [Quit: Computer has gone to sleep.]
22:08
setmeaway has quit [Quit: Leaving]
22:10
vlad_starkov has quit [Remote host closed the connection]
22:13
wesside has quit [Quit: Ice cream truck!]
22:14
krohrbaugh1 has joined #ruby-lang
22:14
krohrbaugh has quit [Read error: Connection reset by peer]
22:15
heftig_ has joined #ruby-lang
22:17
heftig has quit [Quit: Quitting]
22:17
pipework has quit [Remote host closed the connection]
22:17
heftig_ is now known as heftig
22:18
heftig has quit [Client Quit]
22:18
heftig has joined #ruby-lang
22:20
synthetix has quit [Ping timeout: 264 seconds]
22:30
Aloysius1 has quit [Remote host closed the connection]
22:31
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:38
andrewvos has quit [Ping timeout: 256 seconds]
22:40
Wardrop has joined #ruby-lang
22:41
shykes has left #ruby-lang [#ruby-lang]
22:45
elia has joined #ruby-lang
22:46
fragamus has quit [Ping timeout: 246 seconds]
22:48
FlyingLeap has quit [Quit: No Ping reply in 180 seconds.]
22:49
smook4 has quit [Ping timeout: 255 seconds]
22:49
FlyingLeap has joined #ruby-lang
22:49
estsauver has joined #ruby-lang
22:50
x0f has quit [Ping timeout: 264 seconds]
22:51
x0f has joined #ruby-lang
22:52
benanne has quit [Quit: kbai]
22:54
krohrbaugh1 has quit [Quit: Leaving.]
22:54
dingus_khan has quit [Remote host closed the connection]
22:55
dingus_khan has joined #ruby-lang
22:55
fragamus has joined #ruby-lang
22:56
x0f has quit [Ping timeout: 248 seconds]
22:56
nathanstitt has quit [Quit: I growing sleepy]
22:57
x0f has joined #ruby-lang
22:59
vlad_starkov has joined #ruby-lang
22:59
dingus_khan has quit [Ping timeout: 268 seconds]
23:02
mbj has quit [Quit: leaving]
23:02
x0f has quit [Ping timeout: 268 seconds]
23:02
krohrbaugh has joined #ruby-lang
23:03
x0f has joined #ruby-lang
23:03
kstuart has quit [Read error: Connection reset by peer]
23:04
andrewvos has joined #ruby-lang
23:05
kstuart has joined #ruby-lang
23:07
scottschecter has quit [Ping timeout: 245 seconds]
23:07
joshuawscott has quit [Quit: joshuawscott]
23:13
andrewvos has quit [Ping timeout: 252 seconds]
23:13
justinmburrous has joined #ruby-lang
23:16
anonymuse has quit [Quit: Leaving...]
23:16
crudson1 has quit [Quit: Leaving.]
23:16
cored has quit [Ping timeout: 264 seconds]
23:18
Mon_Ouie has quit [Read error: Operation timed out]
23:19
banisterfiend has quit [Read error: Connection reset by peer]
23:20
elia has quit [Quit: Computer has gone to sleep.]
23:22
krohrbaugh has quit [Quit: Leaving.]
23:22
dankest has joined #ruby-lang
23:23
synthetix has joined #ruby-lang
23:24
dLog_ has joined #ruby-lang
23:26
mdedetrich has joined #ruby-lang
23:26
dLog has quit [Ping timeout: 268 seconds]
23:26
arooni-mobile has joined #ruby-lang
23:27
krohrbaugh has joined #ruby-lang
23:29
banisterfiend has joined #ruby-lang
23:29
robbyoconnor has joined #ruby-lang
23:30
rsync has joined #ruby-lang
23:30
mrsolo has quit [Ping timeout: 245 seconds]
23:30
banisterfiend has quit [Read error: Connection reset by peer]
23:33
banister_ has joined #ruby-lang
23:35
justinmburrous has quit [Remote host closed the connection]
23:36
tomzx_mac has joined #ruby-lang
23:37
joshuawscott has joined #ruby-lang
23:39
saarinen has quit [Quit: saarinen]
23:46
saarinen has joined #ruby-lang
23:48
elia has joined #ruby-lang
23:51
sepp2k1 has quit [Quit: Leaving.]
23:53
elia has quit [Ping timeout: 276 seconds]
23:54
elia has joined #ruby-lang
23:55
dingus_khan has joined #ruby-lang
23:56
smook4 has joined #ruby-lang
23:57
saarinen has quit [Quit: saarinen]
23:59
andrewvos has joined #ruby-lang