havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
Pupeno has joined #ruby
KnownSyntax has quit [Ping timeout: 256 seconds]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
weemsledeux has joined #ruby
jgpawletko has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
nullwarp has joined #ruby
JackRousseau is now known as nymph
Pupeno has quit [Ping timeout: 245 seconds]
s00pcan has quit [Ping timeout: 252 seconds]
nerium has joined #ruby
s00pcan has joined #ruby
cschneid_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
zenlot1 is now known as zenlot
jam_ has joined #ruby
mg^^ is now known as mg^
pawnbox has quit [Ping timeout: 240 seconds]
Jardayn has quit [Quit: Leaving]
jam_ has quit [Ping timeout: 240 seconds]
hosttor has quit [Remote host closed the connection]
peterevjan has quit [Remote host closed the connection]
freerobby has joined #ruby
rjs90 has joined #ruby
PsionTheory has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
aegis3121 has quit [Ping timeout: 250 seconds]
DLSteve has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
firstdayonthejob has quit [Ping timeout: 256 seconds]
stevemackinnon has joined #ruby
ESpiney has quit [Ping timeout: 245 seconds]
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Brklyn has quit [Ping timeout: 250 seconds]
northfurr has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
moshee has joined #ruby
northfurr has joined #ruby
rjs90 has quit [Quit: Page closed]
dsilfen has quit [Remote host closed the connection]
victortyau has quit [Quit: Textual IRC Client: www.textualapp.com]
shazaum_ has joined #ruby
solocshaw has quit [Ping timeout: 252 seconds]
victortyau has joined #ruby
Channel6 has quit [Quit: Leaving]
despai_ has joined #ruby
peterevjan has joined #ruby
elifoster has joined #ruby
mondok has quit [Ping timeout: 264 seconds]
despai has quit [Ping timeout: 240 seconds]
joonty has joined #ruby
<riceandbeans> why does the following cause an error
<riceandbeans> foo['bar'] = String.new(baz['biff'])
<riceandbeans> baz['biff'] is 1.5
roshanavand has quit [Remote host closed the connection]
<riceandbeans> No implicit conversion of Float into String
solocshaw has joined #ruby
sepp2k has quit [Quit: Leaving.]
peterevjan has quit [Ping timeout: 264 seconds]
aupadhye has joined #ruby
<eam> >> String.new(1.5)
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<riceandbeans> I don't understand the issue
<shevy> String.new 1 TypeError: no implicit conversion of Fixnum into String
<riceandbeans> whp is there a conversion issue
hostess_ has quit [Quit: No Ping reply in 180 seconds.]
<riceandbeans> why
peterevjan has joined #ruby
<shadoi> You might want String(baz['biff']) to coerce it.
<eam> well, if the bot were working you'd see that's what you're doing and the ultimate answer is it's an error becaue only things with #to_str can be passed to String.new
tuelz1 has joined #ruby
<riceandbeans> so, not .new, just String()
<eam> riceandbeans: class Float; def to_str; to_s; end; end; String.new(1.5)
joonty has quit [Ping timeout: 248 seconds]
despai has joined #ruby
cschneid has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
hostess has joined #ruby
AustinMatherne has joined #ruby
bruce_lee has quit [Remote host closed the connection]
podman has quit [Quit: Connection closed for inactivity]
despai_ has quit [Ping timeout: 248 seconds]
tuelz1 has quit [Ping timeout: 260 seconds]
northfurr has quit [Quit: northfurr]
<riceandbeans> I don't understand eam
<shevy> to_str
pawnbox has joined #ruby
jgpawletko has quit [Remote host closed the connection]
davedev2_ has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
davedev24 has quit [Ping timeout: 250 seconds]
davedev24 has joined #ruby
davedev2_ has joined #ruby
blt has quit [Quit: WeeChat 1.3]
ElFerna has joined #ruby
peterevjan has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 264 seconds]
lyoshajapan has joined #ruby
jgpawletko has joined #ruby
davedev24 has quit [Ping timeout: 260 seconds]
peterevjan has joined #ruby
lemur has joined #ruby
freerobby has quit [Quit: Leaving.]
<Ox0dea> riceandbeans: Kernel#String calls #to_s on its argument; String.new calls #to_str.
despai has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr has joined #ruby
JDiPierro has joined #ruby
lemur has quit [Ping timeout: 260 seconds]
dlitvak has joined #ruby
<Ox0dea> I take that back. Kernel#String tries to call #to_str first, but it uses #to_s as a fallback; String.new does not.
<Ox0dea> In short: just use #to_s.
diegoviola has quit [Quit: WeeChat 1.4]
Sucks has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
IrishGringo has joined #ruby
Demetrio has quit [Quit: Leaving]
s00pcan has joined #ruby
despai has joined #ruby
sepp2k has joined #ruby
JDiPierro has quit [Ping timeout: 252 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
northfurr has joined #ruby
baweaver has quit [Remote host closed the connection]
Thib has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<despai> hello people
<despai> I'm looking for a tool that I can define a code template
<despai> then ask for few variables
<despai> and render a skeleton template appending some variables
<despai> do you know any lib has anything like that?
<despai> I don't want to reinvent the wheel
peterevjan has quit [Remote host closed the connection]
uri_ has joined #ruby
<Ox0dea> despai: Sounds like bog-standard string interpolation?
lyoshajapan has quit [Remote host closed the connection]
<despai> no no
<despai> I have few pieces of code that I always repeat, like a CRUD controller
<despai> and an ActiveRecord model
<despai> so I want to define the relationships separately and generate the AR model
<despai> something like the snippets that you have in atom or textmate
<despai> but programatically
lyoshajapan has joined #ruby
DmitryBochkarev has joined #ruby
dopamean_ has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
moeabdol1 has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
hxegon is now known as hxegon_AFK
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
william3 has quit [Remote host closed the connection]
bhaak has quit [Ping timeout: 250 seconds]
shadoi has quit [Quit: Leaving.]
lyoshajapan has quit [Remote host closed the connection]
moeabdol2 has joined #ruby
lyoshajapan has joined #ruby
shadoi has joined #ruby
shadoi has quit [Client Quit]
<Ox0dea> despai: And `rails g controller` isn't what you're looking for?
DmitryBochkarev has quit [Client Quit]
hxegon_AFK is now known as hxegon
<despai> I'm not using rails
william3 has joined #ruby
at46 has joined #ruby
davedev2_ has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
moeabdol1 has quit [Ping timeout: 240 seconds]
DmitryBochkarev has joined #ruby
jsaak_ has quit [Ping timeout: 240 seconds]
kies^ has joined #ruby
william3 has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
lessless has joined #ruby
arob has quit []
bhaak has joined #ruby
defendguin has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
jsaak has joined #ruby
IrishGringo has quit [Ping timeout: 260 seconds]
hxegon has quit [Quit: BRB]
bronson has quit [Remote host closed the connection]
davedev24 has joined #ruby
davedev24 has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
davedev24 has joined #ruby
hxegon has joined #ruby
marr has quit [Ping timeout: 250 seconds]
kies^ has quit [Remote host closed the connection]
BTRE has quit [Quit: Leaving]
peterevjan has joined #ruby
volty has joined #ruby
jgt2 has quit [Ping timeout: 240 seconds]
BTRE has joined #ruby
IrishGringo has joined #ruby
baweaver has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
Suntzu has quit [Quit: changing servers]
jorrin has joined #ruby
blackgoat has joined #ruby
Suntzu has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
shazaum_ has quit [Ping timeout: 240 seconds]
saneax_AFK is now known as saneax
mjc__ has quit [Quit: Connection closed for inactivity]
jbrhbr has quit [Quit: Leaving.]
ta_ has joined #ruby
CloCkWeRX has joined #ruby
mpistone has quit [Remote host closed the connection]
joonty has joined #ruby
p1k has joined #ruby
baweaver has quit [Remote host closed the connection]
ta has quit [Ping timeout: 240 seconds]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
despai_ has joined #ruby
tuelz1 has joined #ruby
sepp2k1 has joined #ruby
joonty has quit [Ping timeout: 252 seconds]
despai has quit [Ping timeout: 252 seconds]
sepp2k has quit [Ping timeout: 260 seconds]
baweaver has quit [Remote host closed the connection]
peterevjan has quit [Read error: Connection reset by peer]
peterevjan has joined #ruby
tuelz1 has quit [Ping timeout: 240 seconds]
Sucks has quit [Ping timeout: 250 seconds]
FooMunki has quit [Quit: FooMunki]
yqt has quit [Ping timeout: 250 seconds]
FooMunki has joined #ruby
IrishGringo has quit [Ping timeout: 260 seconds]
oetjenj has joined #ruby
Sucks_ has joined #ruby
jackjackdripper has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elifoster has quit [Ping timeout: 250 seconds]
grill has joined #ruby
kies^ has joined #ruby
weemsledeux has joined #ruby
DEA7TH has joined #ruby
NeverTired has quit [Quit: Connection closed for inactivity]
ajaiswal has joined #ruby
mephistophocles has quit []
defendguin has quit [Quit: Leaving.]
CloCkWeRX has quit [Ping timeout: 240 seconds]
volty has quit [Quit: Konversation terminated!]
Pupeno has joined #ruby
ElFerna has quit [Ping timeout: 264 seconds]
stevemackinnon has quit [Remote host closed the connection]
despai_ has quit [Quit: (Im oooooooout of heeeeereeee!!!)]
Thib has quit [Remote host closed the connection]
defendguin has joined #ruby
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Thib has joined #ruby
Thib has quit [Remote host closed the connection]
Thib has joined #ruby
Pupeno has quit [Ping timeout: 252 seconds]
peterevjan has quit [Remote host closed the connection]
betabet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uri_ has quit [Quit: --]
jbrhbr has joined #ruby
uri_ has joined #ruby
jam_ has joined #ruby
dsilfen has joined #ruby
aupadhye has quit [Ping timeout: 250 seconds]
Rasi has joined #ruby
TomPeed has joined #ruby
CloCkWeRX has joined #ruby
northfurr has quit [Quit: northfurr]
betabet has joined #ruby
northfurr has joined #ruby
arescorpio has joined #ruby
dsilfen has quit [Ping timeout: 245 seconds]
jam_ has quit [Ping timeout: 240 seconds]
stevemackinnon has joined #ruby
stevemackinnon has quit [Remote host closed the connection]
stevemackinnon has joined #ruby
exadeci has joined #ruby
davedev24 has quit []
jottr has joined #ruby
zambini has quit [Quit: Leaving.]
hacworld has joined #ruby
newbie22 has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
barhum2013 has joined #ruby
peterevjan has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
peterevjan has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 250 seconds]
hxegon has quit [Quit: BRB]
hxegon has joined #ruby
bb010g has joined #ruby
x77686d has quit [Quit: x77686d]
krobzaur_ has joined #ruby
hxegon is now known as hxegon_AFK
sepp2k1 has quit [Read error: Connection reset by peer]
bronson has joined #ruby
Alazoral has quit [Ping timeout: 245 seconds]
aupadhye has joined #ruby
youch has joined #ruby
dubek1 has joined #ruby
dubek1 has left #ruby [#ruby]
bronson has quit [Ping timeout: 240 seconds]
pwnd_nsfw has quit [Read error: Connection reset by peer]
sneakerhax has joined #ruby
dubek has quit [Disconnected by services]
mpistone has joined #ruby
hxegon_AFK is now known as hxegon
Vertroa has joined #ruby
joonty has joined #ruby
youch has quit [Ping timeout: 256 seconds]
peterevjan has joined #ruby
elifoster has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
tuelz1 has joined #ruby
joonty has quit [Ping timeout: 250 seconds]
lyoshajapan has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
at46 has quit [Remote host closed the connection]
betabet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
newbie22 has quit [Quit: Leaving]
araujo_ has joined #ruby
peterevjan has quit [Read error: Connection reset by peer]
peterevjan has joined #ruby
tuelz1 has quit [Ping timeout: 250 seconds]
araujo_ has quit [Max SendQ exceeded]
araujo_ has joined #ruby
araujo has quit [Ping timeout: 252 seconds]
GriffinHeart has joined #ruby
araujo_ has quit [Max SendQ exceeded]
ponga has joined #ruby
araujo_ has joined #ruby
oetjenj has quit [Ping timeout: 250 seconds]
uri_ has quit [Quit: --]
araujo_ has quit [Max SendQ exceeded]
GriffinHeart has quit [Remote host closed the connection]
at46 has joined #ruby
at46 has quit [Remote host closed the connection]
FooMunki has quit [Quit: FooMunki]
araujo_ has joined #ruby
at46 has joined #ruby
oetjenj has joined #ruby
northfurr has quit [Quit: northfurr]
betabet has joined #ruby
krobzaur_ has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
Sucks_ has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
uri_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Vertroa has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
Bloomer has joined #ruby
Sucks has joined #ruby
baweaver has quit [Ping timeout: 260 seconds]
victortyau has quit [Quit: Textual IRC Client: www.textualapp.com]
frem has quit [Quit: Connection closed for inactivity]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
psy_ has quit [Ping timeout: 245 seconds]
peterevj_ has joined #ruby
peterevjan has quit [Read error: Connection reset by peer]
CloCkWeRX has quit [Ping timeout: 272 seconds]
Rickmasta has quit [Ping timeout: 248 seconds]
lyoshajapan has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
lyoshajapan has joined #ruby
DLSteve has joined #ruby
ftj has joined #ruby
uri_ has quit [Quit: --]
grill has quit [Read error: Connection reset by peer]
jonathanwallace_ has joined #ruby
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
Brklyn has joined #ruby
havenn has joined #ruby
dasher00 has quit [Ping timeout: 272 seconds]
havenn is now known as Guest75160
Guest75160 has quit [Client Quit]
Ruby_Rocks_007 has joined #ruby
krobzaur_ has joined #ruby
whathappens has joined #ruby
jonathanwallace_ has quit [Ping timeout: 248 seconds]
<whathappens> hi
pilne has quit [Quit: Quitting!]
<havenwood> whathappens: hi!
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ruby_Rocks_007 has quit [Client Quit]
Brklyn has quit [Ping timeout: 272 seconds]
B1n4r10 has joined #ruby
uri_ has joined #ruby
at46 has quit [Remote host closed the connection]
peterevj_ has quit [Read error: Connection reset by peer]
x77686d has joined #ruby
peterevjan has joined #ruby
CloCkWeRX has joined #ruby
elifoster has quit [Ping timeout: 264 seconds]
shadoi has joined #ruby
jbrhbr has quit [Ping timeout: 272 seconds]
aryaching has joined #ruby
terminalrecluse has joined #ruby
brijesh has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
lyoshajapan has joined #ruby
bridge has joined #ruby
bridge is now known as Guest65301
jackjackdripper has quit [Quit: Leaving.]
terminalrecluse has quit [Client Quit]
jgpawletko has quit [Quit: jgpawletko]
joonty has joined #ruby
brijesh has quit [Remote host closed the connection]
Guest65301 has quit [Remote host closed the connection]
User458764 has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
GriffinHeart has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 250 seconds]
tuelz1 has joined #ruby
joonty has quit [Ping timeout: 272 seconds]
danieli has quit [Ping timeout: 272 seconds]
GriffinHeart has joined #ruby
ur5us has quit [Remote host closed the connection]
tuelz1 has quit [Ping timeout: 272 seconds]
crowell_ is now known as croxer
jgpawletko has joined #ruby
jgpawletko has quit [Client Quit]
Napear has joined #ruby
croxer is now known as crixer
pawnbox has joined #ruby
uri_ has quit [Quit: --]
hypermist has joined #ruby
<hypermist> how much do people normally charge for ruby deving ?
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
uri_ has joined #ruby
betabet has quit [Ping timeout: 252 seconds]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 250 seconds]
dopie has joined #ruby
krobzaur_ has quit [Ping timeout: 260 seconds]
dcunit3d has joined #ruby
askhat has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
radgeRayden_ has joined #ruby
Cyrus has quit [Ping timeout: 240 seconds]
radgeRayden has quit [Ping timeout: 276 seconds]
arescorpio has quit [Quit: Leaving.]
shadoi has quit [Quit: Leaving.]
braincrash has quit [Quit: bye bye]
zast has joined #ruby
Bugboy1028 has joined #ruby
mg^ has quit [Read error: Connection reset by peer]
mg^ has joined #ruby
chouhoulis has quit [Read error: Connection reset by peer]
GriffinHeart has quit [Remote host closed the connection]
user083 has quit [Read error: Connection reset by peer]
somenick has joined #ruby
user083 has joined #ruby
chouhoulis has joined #ruby
Vertroa has joined #ruby
Vertroa has quit [Client Quit]
cschneid has quit [Ping timeout: 260 seconds]
ICantCook has quit [Ping timeout: 260 seconds]
Meow-J has quit [Ping timeout: 260 seconds]
gmci has quit [Ping timeout: 260 seconds]
Guest85414______ has quit [Ping timeout: 260 seconds]
HashNuke has quit [Ping timeout: 260 seconds]
chrisseaton has quit [Ping timeout: 260 seconds]
peterevjan has quit [Remote host closed the connection]
catbusters has quit [Ping timeout: 260 seconds]
tpendragon has quit [Ping timeout: 260 seconds]
blackjid has quit [Ping timeout: 260 seconds]
frankS2 has quit [Ping timeout: 260 seconds]
braderhart has quit [Ping timeout: 260 seconds]
lyoshajapan has quit [Remote host closed the connection]
Y_Ichiro has joined #ruby
Y_Ichiro has joined #ruby
cardoni has joined #ruby
skarn has quit [Ping timeout: 260 seconds]
epochwolf has quit [Ping timeout: 260 seconds]
ruurd has quit [Ping timeout: 260 seconds]
andersh has quit [Ping timeout: 260 seconds]
crdpink2 has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crdpink has quit [Read error: Connection reset by peer]
jam_ has joined #ruby
hanmac has quit [Ping timeout: 260 seconds]
jaiks has quit [Ping timeout: 260 seconds]
Lloyd has quit [Ping timeout: 260 seconds]
vifino has quit [Ping timeout: 260 seconds]
Miron has quit [Ping timeout: 260 seconds]
pmarreck has quit [Ping timeout: 260 seconds]
tinnvec has quit [Ping timeout: 260 seconds]
basic` has quit [Ping timeout: 260 seconds]
LBRapid has quit [Ping timeout: 260 seconds]
Guest85414______ has joined #ruby
vifino has joined #ruby
Zackio has joined #ruby
tvl has joined #ruby
jaiks has joined #ruby
Liam- has joined #ruby
tvl is now known as tobiasvl
mistym has joined #ruby
bratchley has quit [Ping timeout: 260 seconds]
kappy has quit [Ping timeout: 260 seconds]
mistym has quit [Changing host]
mistym has joined #ruby
edwardly has quit [Ping timeout: 260 seconds]
Liam` has quit [Ping timeout: 260 seconds]
apipkin has joined #ruby
jmcc_______ has joined #ruby
jxf has joined #ruby
rideh has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
epochwolf has joined #ruby
DefV has joined #ruby
G has joined #ruby
tinnvec has joined #ruby
jlyndon has joined #ruby
Sp4rKy has quit [Ping timeout: 260 seconds]
zacstewart has quit [Ping timeout: 245 seconds]
vdamewood has joined #ruby
cschneid has joined #ruby
bratchley has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
rflot has joined #ruby
catbusters has joined #ruby
kireevco has joined #ruby
swgillespie has joined #ruby
Liam- is now known as Liam`
Sp4rKy has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
daxroc has joined #ruby
braderhart has joined #ruby
chrisseaton has joined #ruby
kith_ has joined #ruby
zacstewart has joined #ruby
Sthebig has joined #ruby
Sthebig has joined #ruby
HashNuke has joined #ruby
bttf has joined #ruby
jgpawletko has joined #ruby
sdothum has joined #ruby
Kamilion has joined #ruby
LBRapid has joined #ruby
jord has joined #ruby
zipkid has joined #ruby
jmhmccr has joined #ruby
Miron has joined #ruby
Lloyd has joined #ruby
gmci has joined #ruby
skakri` has joined #ruby
havenn has joined #ruby
blackjid has joined #ruby
kellabyte has joined #ruby
dragon9783 has joined #ruby
jhill_ has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
jam_ has quit [Ping timeout: 272 seconds]
adam^ has joined #ruby
andersh has joined #ruby
pmarreck has joined #ruby
kbni has joined #ruby
northfurr_ has joined #ruby
tris has joined #ruby
basic` has joined #ruby
CihanKaygusuz has joined #ruby
northfurr has joined #ruby
Vertroa has joined #ruby
jordanm has quit [Ping timeout: 260 seconds]
aep has quit [Ping timeout: 260 seconds]
gix has quit [Ping timeout: 260 seconds]
skakri has quit [Ping timeout: 260 seconds]
Lorn_ has quit [Ping timeout: 260 seconds]
peitera- has quit [Ping timeout: 260 seconds]
chridal has quit [Ping timeout: 260 seconds]
quarcu has quit [Ping timeout: 260 seconds]
Klumben has joined #ruby
havenn is now known as havenwood
lessless has quit [Ping timeout: 263 seconds]
Coldblackice has quit [Ping timeout: 263 seconds]
lianj has quit [Ping timeout: 263 seconds]
nomadic_ has quit [Ping timeout: 263 seconds]
Coldblackice_ has joined #ruby
parus has joined #ruby
lianj has joined #ruby
BackEndCoder has joined #ruby
tpendragon has joined #ruby
Didac has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
lnx has joined #ruby
ljarvis has joined #ruby
quarcu has joined #ruby
Lightsword has joined #ruby
hackeron has joined #ruby
Antiarc has joined #ruby
Skelz0r has joined #ruby
northfurr has quit [Ping timeout: 260 seconds]
j416 has quit [Ping timeout: 260 seconds]
northfurr_ is now known as northfurr
tw1sted has quit [Write error: Connection reset by peer]
<somenick> hi there, I'm trying to contribute a fix for https://github.com/elastic/logstash/blob/master/logstash-core-event/lib/logstash/timestamp.rb however with these tests I get these failures https://gist.github.com/alex88/1301f00644b6fee1c192 isn't parse a class method as at?
tw1sted_ has joined #ruby
skarn has joined #ruby
Shapeshifter has joined #ruby
peitera has joined #ruby
Lorn has joined #ruby
gf3 has joined #ruby
<hypermist> how much do people normally charge for ruby deving ? and has knowledge with bticoin stuf
peterhu has joined #ruby
valeri_ufo has joined #ruby
mmasaki has joined #ruby
<hypermist> bitcoin *
chridal has joined #ruby
redondos has joined #ruby
xpt has joined #ruby
saneax is now known as saneax_AFK
aep has joined #ruby
romero has joined #ruby
mattpatt has joined #ruby
axisys has joined #ruby
sugardrunk has joined #ruby
lessless has joined #ruby
jgpawletko has quit [Client Quit]
inukshuk has joined #ruby
romero is now known as Guest84795
kappy has joined #ruby
ckrailo has joined #ruby
sivoais has joined #ruby
frankS2 has joined #ruby
mikolalysenko has joined #ruby
j416 has joined #ruby
CloCkWeRX has joined #ruby
Bloomer has quit [Ping timeout: 250 seconds]
timmow has joined #ruby
braincrash has joined #ruby
nomadic has joined #ruby
machty has joined #ruby
gix has joined #ruby
hxegon has quit [Quit: BRB]
GriffinHeart has joined #ruby
Meow-J has joined #ruby
Bloomer has joined #ruby
ec\ has joined #ruby
rkazak has joined #ruby
freerobby has quit [Quit: Leaving.]
jottr has quit [Ping timeout: 264 seconds]
lyoshajapan has joined #ruby
Meow-J has quit []
GriffinHeart has quit [Remote host closed the connection]
im0b has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Vertroa has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
uri_ has quit [Quit: --]
ruurd is now known as Guest40619
juddey has quit [Ping timeout: 245 seconds]
hanmac has joined #ruby
bronson has joined #ruby
GriffinHeart has joined #ruby
hxegon has joined #ruby
sivoais has quit [Ping timeout: 245 seconds]
aryaching has quit [Ping timeout: 245 seconds]
lyoshajapan has quit [Ping timeout: 260 seconds]
jgt2 has joined #ruby
ponga has quit []
Cyrus has joined #ruby
dlitvak has joined #ruby
Cyrus is now known as Guest7681
speakingcode has quit [Ping timeout: 252 seconds]
sivoais has joined #ruby
speakingcode has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
pwnd_nsfw has joined #ruby
yfeldblum has joined #ruby
pawnbox has quit [Remote host closed the connection]
jgt2 has quit [Ping timeout: 250 seconds]
arthropododo has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
zacstewart has joined #ruby
dcunit3d has quit [Ping timeout: 252 seconds]
uri_ has joined #ruby
uri_ has quit [Client Quit]
jud has joined #ruby
sivoais has quit [Ping timeout: 276 seconds]
gix has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
sivoais has joined #ruby
joonty has joined #ruby
PlasmaStar has quit [Ping timeout: 240 seconds]
northfurr has quit [Quit: northfurr]
gix has joined #ruby
baweaver has joined #ruby
lyoshajapan has joined #ruby
tuelz1 has joined #ruby
graphettion has joined #ruby
joonty has quit [Ping timeout: 276 seconds]
blackgoat has quit [Quit: WeeChat 1.3]
northfurr has joined #ruby
lyoshajapan has quit [Ping timeout: 240 seconds]
sivoais has quit [Ping timeout: 252 seconds]
tuelz1 has quit [Ping timeout: 240 seconds]
rkazak has quit [Quit: Sleep.....ing....]
sivoais has joined #ruby
PlasmaStar has joined #ruby
sapslaj has joined #ruby
northfurr has quit [Quit: northfurr]
sgambino has joined #ruby
skade has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
dexter__ has quit [Ping timeout: 256 seconds]
zacstewart has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sivoais has quit [Ping timeout: 252 seconds]
ss_much has joined #ruby
pawnbox has quit [Remote host closed the connection]
sivoais has joined #ruby
moeabdol3 has joined #ruby
dlitvak has joined #ruby
aryaching has quit [Remote host closed the connection]
moeabdol2 has quit [Ping timeout: 256 seconds]
aryaching has joined #ruby
sivoais has quit [Quit: leaving]
krz has joined #ruby
pawnbox has joined #ruby
<Napear> can anyone recommend a good book/online tuts for learning CSS?
<Napear> like from a dev point of view
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
peterevjan has joined #ruby
bluOxigen_ has left #ruby [#ruby]
Ruby_Rocks_007 has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Ruby_Rocks_007 has left #ruby [#ruby]
CihanKaygusuz has quit [Quit: Connection closed for inactivity]
<kspencer> Napear: w3 schools
<kspencer> google it
peterevjan has quit [Ping timeout: 250 seconds]
PeteyT has joined #ruby
PeteyT has left #ruby [#ruby]
zacstewart has quit [Ping timeout: 276 seconds]
bMalum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
terminalrecluse has joined #ruby
zacstewart has joined #ruby
<Napear> kspencer: not a big fan of w3 schools, there lessons tend to be a bit vacuous, but thnx
<hypermist> How much do ruby developers charge ?
<ja> hypermist: ruby devs are paid in rubies
slawrence00 has quit [Read error: Connection reset by peer]
<hypermist> :P
<ja> ʘ‿ʘ
<hypermist> ja this is a serious matter :P
DEA7TH has quit [Quit: DEA7TH]
<hypermist> Cause the codes already there i just need it swapped to a different set of api, and i have no ruby knowledge so :\
GriffinHeart has quit [Remote host closed the connection]
konsolebox has quit [Quit: Leaving]
<ja> hypermist: My suggestion: Google it! ^-^
lyoshajapan has joined #ruby
PeteyT has joined #ruby
<hypermist> hmph looks a bit to expensive lol ja
dlitvak has quit [Ping timeout: 250 seconds]
PeteyT is now known as PeteyT1226
<ja> haha, well, Ruby devs tend to be well-paid, hypermist
PeteyT1226 is now known as ptierno
ptierno has quit [Changing host]
ptierno has joined #ruby
<hypermist> indeed ja, but sadly im a poor prick so no way in hell am i gunna be able to pay lots :p
ptierno has quit [Client Quit]
askhat has left #ruby ["Textual IRC Client: www.textualapp.com"]
PeteyT has joined #ruby
PeteyT has quit [Client Quit]
<ja> hypermist: Better buckle up and learn Ruby yourself then! :DDD
<hypermist> ;DDD maybe ;p
lyoshajapan has quit [Ping timeout: 240 seconds]
ptierno has joined #ruby
sivoais has joined #ruby
lyoshajapan has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
sapslaj has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
lyoshajapan has joined #ruby
duncannz has joined #ruby
Sucks has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
Amnez777 has quit [Ping timeout: 256 seconds]
somenick has quit [Ping timeout: 252 seconds]
sapslaj has joined #ruby
B1n4r10 has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
sivoais has quit [Ping timeout: 256 seconds]
hxegon is now known as hxegon_AFK
Esya has quit [Disconnected by services]
peterevjan has joined #ruby
hxegon_AFK is now known as hxegon
Esya- has joined #ruby
sivoais has joined #ruby
joonty has joined #ruby
zacstewart has quit [Ping timeout: 276 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
psy_ has joined #ruby
zacstewart has joined #ruby
shakes has joined #ruby
last_staff has joined #ruby
Rodya_ has quit [Remote host closed the connection]
jgt2 has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
tuelz1 has joined #ruby
joonty has quit [Ping timeout: 276 seconds]
adgtl has joined #ruby
sivoais has quit [Quit: leaving]
jam_ has joined #ruby
jgt2 has quit [Ping timeout: 240 seconds]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jam_ has quit [Read error: Connection reset by peer]
tuelz1 has quit [Ping timeout: 240 seconds]
jam_ has joined #ruby
Abrin has quit [Quit: Nettalk6 - www.ntalk.de]
codecop has joined #ruby
hosttor has joined #ruby
shiffles has joined #ruby
aryaching has quit [Ping timeout: 250 seconds]
Amnez777 has joined #ruby
Amnez777 has quit [Max SendQ exceeded]
Abrin has joined #ruby
Amnez777 has joined #ruby
Amnez777 has quit [Max SendQ exceeded]
chouhoulis has quit [Remote host closed the connection]
Amnez777 has joined #ruby
Amnez777 has joined #ruby
graphettion has quit [Remote host closed the connection]
dlitvak has joined #ruby
maokomioko has joined #ruby
Axy has quit [Read error: Connection reset by peer]
danielwzd has joined #ruby
BSaboia has joined #ruby
darkxploit has quit [Ping timeout: 264 seconds]
Abrin has quit [Quit: Nettalk6 - www.ntalk.de]
dlitvak has quit [Ping timeout: 276 seconds]
jam_ has quit []
chouhoulis has joined #ruby
Abrin has joined #ruby
ICantCook has joined #ruby
chouhoulis has quit [Remote host closed the connection]
Elysia has joined #ruby
<barhum2013> is .any? on an array slower than array.count > 0
<ja> I highly doubt it
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ja> But you’re using Ruby, so you shouldn’t be concerned with speed, barhum2013
zacstewart has quit [Ping timeout: 256 seconds]
zacstewart has joined #ruby
<Ox0dea> It's never okay to use Array#count without a block.
<ja> oh. ^-^ right
<barhum2013> Ox0dea: Thanks a lot!
chipotle has joined #ruby
<Ox0dea> barhum2013: Sure thing. :)
triangles has joined #ruby
Napear has quit [Quit: leaving]
peterevjan has quit [Remote host closed the connection]
Abrin has quit [Quit: Nettalk6 - www.ntalk.de]
ftj has quit [Quit: Textual IRC Client: www.textualapp.com]
UtkarshRay has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
jottr has joined #ruby
shakes has quit [Quit: Leaving]
dionysus69 has joined #ruby
Guest84795 has quit [Quit: leaving]
romero has joined #ruby
mpistone has quit [Remote host closed the connection]
aryaching has joined #ruby
sivoais has joined #ruby
peterevjan has joined #ruby
Abrin has joined #ruby
hxegon is now known as hxegon_AFK
juddey has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
vondruch has quit [Ping timeout: 245 seconds]
dsilfen has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
bluOxigen has joined #ruby
dsilfen has quit [Ping timeout: 250 seconds]
Abrin has quit [Ping timeout: 256 seconds]
sandstrom has joined #ruby
sivoais has quit [Ping timeout: 252 seconds]
hxegon_AFK has quit [Quit: BRB]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
sivoais has joined #ruby
nunchuck has quit [Ping timeout: 248 seconds]
jorrin has quit [Quit: Leaving]
sivoais has quit [Client Quit]
shiffles has quit [Ping timeout: 240 seconds]
bluOxigen_ has joined #ruby
defendguin has quit [Ping timeout: 272 seconds]
danielwzd has quit [Quit: Leaving]
shiffles has joined #ruby
bluOxigen has quit [Ping timeout: 248 seconds]
<pizzaops> So, when I run this code I get "stack level too deep". Googling tells me that's when you create some kind of never-ending recursion, but I don't see how that's happening here: https://gist.github.com/pizzaops/fc603ba5324d2a7fdab7
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> pizzaops: #hello is invoking #hello is invoking #hello...
<pizzaops> How is hello invoking hello?
<pizzaops> ohhh
peterevjan has quit [Remote host closed the connection]
<pizzaops> because i forgot the quotes, lolz
<pizzaops> doh.
shiffles has quit [Client Quit]
shiffles has joined #ruby
<pizzaops> I wrote that to confirm I could create helper methods to use in my class's initialize method, when the initialization logic is complex. This error got me worried I couldn't. Glad it was just a dumb mistake :D
nunchuck has joined #ruby
rubynuby has joined #ruby
<Ox0dea> Ew, complex initialization logic.
<rubynuby> hey, when i do :+.to_s
<rubynuby> it returns "+"
<rubynuby> but if i do "+".to_sym
<rubynuby> it shows up as :
<Ox0dea> >> '+'.to_sym
<ruby[bot]> Ox0dea: # => :+ (https://eval.in/512916)
<rubynuby> same for '+'.to_sym
<pizzaops> Ox0dea: blame the vSphere API, not me :/
<Ox0dea> pizzaops: Fair enough, I guess.
<rubynuby> '+'.to_sym
<rubynuby> "+".to_sym
<pizzaops> You have to do a lot of initial work to get it to do anything at all
<Ox0dea> pizzaops: Sure, but the constructor isn't necessarily the best place to do it.
joonty has joined #ruby
<rubynuby> maybe something is wrong with my ruby
zacstewart has quit [Ping timeout: 256 seconds]
<Ox0dea> It'd be your environment, not the interpreter.
<rubynuby> yeah, something is wrong with what I'm doing on my computer
<Ox0dea> Gonna have to nuke it from orbit, I reckon.
<rubynuby> oh god
<rubynuby> it works for :- but not for the others
aryaching has quit [Ping timeout: 240 seconds]
<Ox0dea> It might be your font?
last_staff has quit [Quit: last_staff]
karapetyan has joined #ruby
zacstewart has joined #ruby
ponga has joined #ruby
<rubynuby> well, i wanted to install ubuntu on my computer anyways
tuelz1 has joined #ruby
elifoster has joined #ruby
<rubynuby> might be a good time to do it
joonty has quit [Ping timeout: 240 seconds]
<Ox0dea> It's a sign!
<rubynuby> alright, thanks, im off
rubynuby has left #ruby [#ruby]
norc has joined #ruby
bluOxigen has joined #ruby
Macaveli has joined #ruby
shiffles has quit [Ping timeout: 240 seconds]
<pizzaops> Ox0dea: I think I figured out a way to avoid having to do it in the constructor. I was originally doing it to avoid calling a method that would always make a bunch of api calls, but I figured out a way to make it not do that. Can I ask for your thoughts? https://gist.github.com/pizzaops/1d14cbb8da1d247d0649
pwnd_nsfw has quit [Ping timeout: 250 seconds]
<pizzaops> For the sake of context,`@obj` is an instance of VirtualMachine, and I'm recursively going up the hierarchy to find the instance of "Datacenter" that represents the datacenter it's stored in.
bluOxigen_ has quit [Ping timeout: 240 seconds]
<Ox0dea> pizzaops: So that @vm_datacenter instance variable is being set elsewhere?
sivoais has joined #ruby
<pizzaops> Ox0dea: ah good catch. I meant to make it set that, instead of just doing the return
tuelz1 has quit [Ping timeout: 245 seconds]
<Ox0dea> pizzaops: Here's an approach that passes for idiomatic in some circles: https://eval.in/512919
<norc> Ox0dea, do you have any technique handy to change an objects superclass? (charlies method has been nobu'd a while ago)
<norc> Also good morning on that note.
<Ox0dea> norc: I do. :)
<norc> :)
<Ox0dea> norc: Er, wait... one of us has probably missed a subtlety.
<Ox0dea> I can't help but assume you're familiar with RBasic by now.
<norc> Regarding the greeting or what I asked for?
julieeharshaw has joined #ruby
<Ox0dea> Nothing subtle about it always being morning. :P
<norc> Oh I can see where this is going.
Puffball has quit [Read error: Connection reset by peer]
<norc> I came here expecting a Ruby land solution though. :-)
<norc> Im wondering whether its safe to simply change klass..
<Ox0dea> norc: Right, that's the approach I had in mind, but it's not quite the same thing. :/
dEPy has joined #ruby
lyoshajapan has quit []
Puffball has joined #ruby
lurch_ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
berserk_ren has joined #ruby
<norc> Ox0dea: Basically I just want dynamic_cast<> semantics to cast an object to an inherited class object. :p
<Ox0dea> norc: Aye, I know how you mean. I've poked around at the edges on this before, but never quite dug in.
sivoais has quit [Ping timeout: 272 seconds]
<Ox0dea> dynamic_cast<> for Ruby should absolutely be a thing.
akkad has quit [Ping timeout: 250 seconds]
<Ox0dea> There's the TypeData_* API under the hood, but I don't know whether it can be emulated robustly with Fiddle alone.
<Ox0dea> *TypedData
GriffinHeart has quit [Remote host closed the connection]
Hobbyboy has quit [Quit: I think the BNC broke.]
sivoais has joined #ruby
moeabdol4 has joined #ruby
GriffinHeart has joined #ruby
moeabdol3 has quit [Ping timeout: 260 seconds]
GriffinHeart has quit [Remote host closed the connection]
gorodetsky has joined #ruby
gorodetsky has quit [Client Quit]
<norc> Ox0dea: With dynamic_cast we could simply get rid of refinements, since that seems more like a workaround to achieve a similar thing.
beawesomeinstead has joined #ruby
akkad has joined #ruby
jbrhbr has joined #ruby
<apeiros> norc: gotta run, but refinements are lexically scoped. changing the superclass wouldn't. no?
* apeiros off
solars has joined #ruby
weemsledeux has joined #ruby
troulouliou_div2 has joined #ruby
brendan- has quit [Ping timeout: 248 seconds]
ur5us has joined #ruby
jbrhbr1 has joined #ruby
Burgestrand has joined #ruby
GriffinHeart has joined #ruby
<Ox0dea> norc: https://eval.in/512921
<Ox0dea> I'm with apeiros on not quite seeing the applicability to refinements, though.
kerunaru has joined #ruby
<norc> Ox0dea: Let me show you an example of what I mean.
sivoais has quit [Ping timeout: 250 seconds]
ta_ has quit [Remote host closed the connection]
jbrhbr has quit [Ping timeout: 276 seconds]
<norc> Or no. This is more easily explained.
djbkd has quit [Remote host closed the connection]
stevemackinnon has quit [Remote host closed the connection]
dEPy_ has joined #ruby
UtkarshRay has joined #ruby
saneax_AFK is now known as saneax
sivoais has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
krzkrz has joined #ruby
chouhoulis has joined #ruby
djbkd has joined #ruby
krz has quit [Ping timeout: 245 seconds]
<norc> Ox0dea: The whole point of refinements is because you want to change the behaviour of some class in some area of your code. Inheritance does that for you already.
tvw has joined #ruby
<Ox0dea> norc: Aye, and refinements are for "undoing" inheritance without getting your hands dirty.
dEPy has quit [Ping timeout: 260 seconds]
<norc> Which basically is just casting semantics. First you want an Array object to be a SerializableArray, and after a while you want it to be a normal Array object again.
<norc> (Or maybe that particular object can stay a SerializableArray)
troulouliou_div2 has quit [Ping timeout: 250 seconds]
snguyen has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
chouhoulis has quit [Ping timeout: 250 seconds]
<Ox0dea> You're right that Fiddle could be used to emulate refinements, but you'd have to manually do all the stuff you get for free by dint of their being lexically scoped.
haasn has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
snguyen has quit [Client Quit]
sivoais has quit [Ping timeout: 250 seconds]
mhoungbo has joined #ruby
ramfjord has joined #ruby
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc> Ox0dea: The "advantage" I see, is that you can change the behaviour of classes that some code outside your control uses, although I am still not entirely convinced whether that is a good thing.
sivoais has joined #ruby
<norc> (Since it completely breaks the concept of interfaces)
<Ox0dea> It's not a good thing. :P
<norc> Heh.
<Ox0dea> But people sometimes do bad things for good reasons.
<norc> That is how ActiveRecord was created.
<Ox0dea> Just so.
joneshf-laptop has quit [Remote host closed the connection]
joneshf-laptop has joined #ruby
dEPy_ has quit [Remote host closed the connection]
dEPy has joined #ruby
snguyen has joined #ruby
vl408 has joined #ruby
Mon_Ouie has joined #ruby
adgtl has quit [Read error: Connection reset by peer]
adgtl has joined #ruby
netcho has quit [Ping timeout: 272 seconds]
solars has quit [Quit: WeeChat 0.4.2]
vikas027 has joined #ruby
scepticulous has joined #ruby
sivoais has quit [Ping timeout: 250 seconds]
x77686d has quit [Quit: x77686d]
<Ox0dea> I imagine it'd require just shy of a Herculean effort to bring that up to speed.
bronson has joined #ruby
x77686d has joined #ruby
troulouliou_div2 has joined #ruby
sivoais has joined #ruby
User458764 has joined #ruby
x77686d has quit [Client Quit]
nodejunkie has joined #ruby
araujo_ has quit [Read error: Connection timed out]
bronson has quit [Ping timeout: 256 seconds]
infra-red has joined #ruby
dexter__ has joined #ruby
PedramT has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
solars has joined #ruby
atmosx has joined #ruby
araujo_ has joined #ruby
mondok has joined #ruby
sivoais has quit [Ping timeout: 260 seconds]
netcho has joined #ruby
dEPy has quit [Read error: Connection reset by peer]
infra-red has quit [Remote host closed the connection]
sivoais has joined #ruby
PedramT has quit [Ping timeout: 272 seconds]
dexter__ has quit [Ping timeout: 252 seconds]
Guest40619 is now known as ruurd
brendan- has joined #ruby
joonty has joined #ruby
Macaveli has quit [Ping timeout: 240 seconds]
firstdayonthejob has joined #ruby
Macaveli has joined #ruby
PedramT has joined #ruby
hosttor has quit [Remote host closed the connection]
jgt2 has joined #ruby
blackms has quit [Ping timeout: 264 seconds]
moeabdol has joined #ruby
infra-red has joined #ruby
snguyen has quit [Quit: Textual IRC Client: www.textualapp.com]
tuelz1 has joined #ruby
adgtl has quit [Remote host closed the connection]
joonty has quit [Ping timeout: 260 seconds]
karapetyan has quit [Remote host closed the connection]
infra-red has quit [Remote host closed the connection]
moeabdol4 has quit [Ping timeout: 252 seconds]
sivoais has quit [Ping timeout: 248 seconds]
karapetyan has joined #ruby
andikr has joined #ruby
jgt2 has quit [Ping timeout: 256 seconds]
pawnbox has quit [Remote host closed the connection]
sivoais has joined #ruby
pawnbox has joined #ruby
<norc> Is there a way to use refinements in pry?
tuelz1 has quit [Ping timeout: 260 seconds]
karapetyan has quit [Ping timeout: 240 seconds]
Brklyn has joined #ruby
infra-red has joined #ruby
mdw has joined #ruby
nerium has quit [Quit: nerium]
danieli has joined #ruby
infra-re_ has joined #ruby
Hobbyboy has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
blackms has joined #ruby
pawnbox has quit [Remote host closed the connection]
ss_much has quit [Quit: Connection closed for inactivity]
jbrhbr has joined #ruby
danieli has quit [Changing host]
danieli has joined #ruby
Brklyn has quit [Ping timeout: 240 seconds]
sivoais has quit [Ping timeout: 252 seconds]
jbrhbr1 has quit [Ping timeout: 248 seconds]
sivoais has joined #ruby
sandstrom has joined #ruby
infra-red has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
zyzioziom has joined #ruby
PedramT has quit [Ping timeout: 248 seconds]
Guest45453 is now known as Radar
vinleod has joined #ruby
<Ox0dea> norc: `TOPLEVEL_BINDING.eval 'using ...'` doesn't raise, but it also doesn't activate. :<
karapetyan has joined #ruby
nrsk_ has joined #ruby
vdamewood has quit [Ping timeout: 252 seconds]
moeabdol has quit [Quit: WeeChat 1.4]
sandstrom has quit [Client Quit]
vinleod is now known as vdamewood
nrsk_ has quit [Client Quit]
nrsk_ has joined #ruby
nrsk has quit [Ping timeout: 240 seconds]
<Ox0dea> Which is maybe a bug?
gigetoo has quit [Ping timeout: 250 seconds]
ta has joined #ruby
sivoais has quit [Ping timeout: 256 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
lessless has quit [Ping timeout: 250 seconds]
fedexo has joined #ruby
sivoais has joined #ruby
eGGsha has joined #ruby
blackms has quit [Remote host closed the connection]
ur5us has joined #ruby
sandstrom has joined #ruby
chouhoulis has joined #ruby
elifoster has quit [Ping timeout: 245 seconds]
moei has quit [Quit: Leaving...]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tesuji_ has joined #ruby
nrsk_ has quit [Quit: Bye]
<pizzaops> If I want to exclude a word from matching in a ruby regex, is there a more efficient way than [^w][^o][^r][^d]?
bluOxigen_ has joined #ruby
<pizzaops> As I understand it [^word] would be any single character that isn't w, o, r, or d.
bluOxigen_ has left #ruby [#ruby]
tesuji_ is now known as tsuke
<apeiros> pizzaops: (?!word), note that this does not advance the "cursor"
<ljarvis> pizzaops: [^(?:word)]
rhg135 has quit [Ping timeout: 256 seconds]
<apeiros> ljarvis: uh, no?
<ljarvis> wot
<apeiros> is that even valid?
_ht has quit [Ping timeout: 245 seconds]
TomyWork has joined #ruby
ht_ has joined #ruby
* apeiros tests
GriffinHeart has quit [Remote host closed the connection]
<pizzaops> ljarvis's solution is matching individual letters
<apeiros> eh, still a character class
<apeiros> >> /[^(?:word)]/ =~ "("
<ruby[bot]> apeiros: # => nil (https://eval.in/512940)
vondruch has joined #ruby
fedexo_ has joined #ruby
<ljarvis> i guess i need some coffee
<pizzaops> yeah apeiros your solution is also excluding any of the characters individually
<pizzaops> according to rubular
<apeiros> pizzaops: nope. how do you figure?
GriffinHeart has joined #ruby
aganov has joined #ruby
pawnbox has joined #ruby
<apeiros> /(?!word)/ =~ "w"
bluOxigen has quit [Ping timeout: 250 seconds]
<apeiros> >> /(?!word)/ =~ "w"
<ruby[bot]> apeiros: # => 0 (https://eval.in/512941)
chouhoulis has quit [Ping timeout: 240 seconds]
<apeiros> matches
duncannz has quit [Remote host closed the connection]
<pizzaops> Erm I didn't express that quite accurately, but https://www.dropbox.com/s/ktet0fav59191ov/Screenshot%202016-02-04%2000.17.14.png?dl=0
<ljarvis> ok i have coffee
<pizzaops> shouldn't foo match
aswen has joined #ruby
<ljarvis> no
<Ox0dea> pizzaops: What would it be matched by?
<pizzaops> ah right hah
<apeiros> as said, (?!) is non-consuming
<Ox0dea> Elseways called "zero-width".
<pizzaops> Is there a way to advance the cursor? E.g. if I doo (?!word).* then ord matches
<apeiros> the way you use it differs from [^w][^o][^r][^d]
moeabdol has joined #ruby
karapetyan has quit [Remote host closed the connection]
BSaboia has quit [Ping timeout: 256 seconds]
<apeiros> (?:(?!word).)*
rhg135 has joined #ruby
<apeiros> or +
<ljarvis> derp
sivoais has quit [Ping timeout: 245 seconds]
<apeiros> OMG, I tried to edit the PICTURE OF RUBULAR
<apeiros> who friggin posts a pic of rubular?!?
<Ox0dea> pizzaops: Look what you've done.
<ljarvis> :D
* ljarvis did the same
<pizzaops> lol
<ljarvis> also Dropbox is pig slow
* apeiros swings fist at pizzaops :-p
<pizzaops> >> [^w][^o][^r][^d].*foo =~ "word foo"
ishahnaz has joined #ruby
aufi has joined #ruby
<pizzaops> Hmm.
<pizzaops> Did I not invoke the bot correctly?
sivoais has joined #ruby
<apeiros> that would not match xofoo
<ljarvis> im confused about what you really want here
amclain has quit [Quit: Leaving]
<ljarvis> pizzaops: that's not valid ruby anyway
<apeiros> pizzaops: you're not registered?
<Mon_Ouie> You also didn't write a regexp literal
jottr has joined #ruby
<pizzaops> I am registered, but ah look I have a pm from nickserv
einarj has joined #ruby
einarj has quit [Remote host closed the connection]
mdw has joined #ruby
<apeiros> eval-in only for authed people, sorry :)
einarj has joined #ruby
<ljarvis> anyway, my question would be what do you really want here? this example might not be real-world enough
<pizzaops> Sure, here's the real world example. If I have two strings, one of which is foobar-baz.bot and the other is foobar.bot, I want something that matches foobar.bot but not foobar-baz.bot.
maokomioko has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> I, for one, am overwhelmed by clarification.
<ljarvis> =~ /foobar.bot/ :troll:
<ljarvis> anywayyy
<pizzaops> I'm not trolling. The real example is that when you make a disk in vSphere, it creates two files for it, one that's something.vmdk and another that's something-flat.vmdk
<ljarvis> ok your example just changed
<pizzaops> and I want to count the number of disks in a certain datastore, and to do that, I need to ignore the -flat files.
<pizzaops> Aka find match foobar.bot but not foobar-baz.bot
<ljarvis> is it always -flat ?
<pizzaops> Yes.
<pizzaops> The file I don't care about is always something-flat.vmdk, and th one I do care about is always something.vmdk
darkf has joined #ruby
<Ox0dea> Then you don't need a regular expression.
<apeiros> /.*(?<!-flat)\.vmdk/
<ljarvis> that's overkill imo
<ljarvis> but it'll work
* ljarvis would also not use regexp
<apeiros> whoops, forgot anchoring
<pizzaops> Ox0dea: to add to the problem, there are other files that don't end in vmdk, and i need to ignore them completely, which is why I opted for a regex, but I'm open to suggestions
<ljarvis> are these lines are just a big string?
<ljarvis> or*
<pizzaops> unfortunatey
<apeiros> pizzaops: Dir.glob('*.vmdk') # only gets .vmdk files
<Ox0dea> apeiros: To include the -flat ones.
<pizzaops> so to even further complicated it, it's not a real directory
<pizzaops> it's the result of an API query
<pizzaops> so all i have is the strings
einarj has quit [Client Quit]
<apeiros> and then reject based on filename[-11,5] == "-flat" (or whatever the correct offset is)
blaxter has joined #ruby
mark3 has joined #ruby
<ljarvis> I'd strip the extname and check if end_with?("-flat")
<apeiros> Ox0dea: you're too quick man! wait for the full answer :-p
<Ox0dea> pizzaops: strings.grep(/\w+\.vmdk/)
<Ox0dea> Assuming you've got an array of them.
<apeiros> well, if you already got an array of strings I'd probably indeed use ary.grep(/.*(?<!-flat)\.vmdk/)
<apeiros> rah
<ljarvis> rah
<apeiros> well, if you already got an array of strings I'd probably indeed use ary.grep(/\A.*(?<!-flat)\.vmdk\z/)
<apeiros> RAH!
<pizzaops> Ox0dea: yeah so i've got an array of them but that example doesn't eliminate the -flat
<Ox0dea> pizzaops: Needs more anchors.
<Ox0dea> How about a \z?
<apeiros> \z is the \zap wrong results
<Ox0dea> ^
ishahnaz has quit []
<Ox0dea> Er, sorry, you probably want an \A.
vondruch has quit [Ping timeout: 240 seconds]
<Ox0dea> \All the right answers.
<pizzaops> >> ['foo.vmdk', 'bar.vmdk', 'foo-flat.vmdk', 'bar-flat.vmdk'].grep(/\A.*(?<!-flat)\.vmdk\z/)
<ruby[bot]> pizzaops: # => ["foo.vmdk", "bar.vmdk"] (https://eval.in/512943)
<ljarvis> \All the \zapping
<pizzaops> wooo
sivoais has quit [Ping timeout: 240 seconds]
<Ox0dea> >> ['foo.vmdk', 'bar.vmdk', 'foo-flat.vmdk', 'bar-flat.vmdk'].grep(/^\w+\.vmdk/) # Just sayin'.
<ruby[bot]> Ox0dea: # => ["foo.vmdk", "bar.vmdk"] (https://eval.in/512944)
<ljarvis> enter -notflat
<apeiros> >> ['foo.bar.vmdk', 'bar.vmdk', 'foo-flat.vmdk', 'bar-flat.vmdk'].grep(/^\w+\.vmdk/)
<ruby[bot]> apeiros: # => ["bar.vmdk"] (https://eval.in/512945)
adac has joined #ruby
Dreamer3 has quit [Ping timeout: 245 seconds]
<Ox0dea> You win this time, apeiros.
<apeiros> actually wanted foo-bar.vmdk, typoed. but demonstrates the same issue.
<apeiros> \w+ is more brittle
<Ox0dea> *less robust
<apeiros> I WIN AGAIN!
* apeiros dances around singing
<Ox0dea> It's the same win!
<apeiros> more brittle is perfectly cromulent
<ljarvis> think yourself lucky i didn't get coffee earlier, apeiros
<ljarvis> cromulent
<Ox0dea> It's a great word.
<ljarvis> it's too early for this stuff
<Ox0dea> Just a fancier way of saying "kosher", more or less.
ht_ has quit [Ping timeout: 250 seconds]
_ht has joined #ruby
sivoais has joined #ruby
<Ox0dea> In its figurative sense, at any rate.
<pizzaops> I'm trying to find in ruby regex references what < means but I'm not seeing it
benhuda has joined #ruby
fedexo has quit [Write error: Connection reset by peer]
fedexo_ has quit [Read error: Connection reset by peer]
<Ox0dea> In apeiros' winner, it's a negative lookbehind.
Ruby_Rocks_007 has joined #ruby
<Ox0dea> /.*(?<!foo)/ means "match anything, but foo doesn't count".
<pizzaops> ah
einarj has joined #ruby
adgtl has joined #ruby
<apeiros> (?<! … ) is "before the cursor, … must not occur"
<apeiros> before = to the left
infra-re_ has quit [Remote host closed the connection]
<apeiros> so the .* matches up to .vmdk, and then it looks to the left of .vmdk and verifies that .* did not match -flat at the end
Macaveli has quit [Read error: Connection reset by peer]
Macaveli_ has joined #ruby
<pizzaops> Ahhhh. Thanks.
ljames has joined #ruby
blaxter has quit [Ping timeout: 250 seconds]
peterevjan has joined #ruby
firstdayonthejob has quit [Ping timeout: 264 seconds]
jottr has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
Pupeno has joined #ruby
dsilfen has joined #ruby
baweaver has quit [Remote host closed the connection]
brendan- has quit [Ping timeout: 248 seconds]
sivoais has quit [Ping timeout: 256 seconds]
nettoweb has joined #ruby
peterevjan has quit [Ping timeout: 256 seconds]
vondruch has joined #ruby
sivoais has joined #ruby
joonty has joined #ruby
dsilfen has quit [Ping timeout: 250 seconds]
comma8 has joined #ruby
dexter__ has joined #ruby
mondok has quit [Ping timeout: 264 seconds]
Ishido has joined #ruby
PedramT has joined #ruby
jgt2 has joined #ruby
<pizzaops> That was super helpful. Thanks again fokls.
<pizzaops> Love this channel.
bb010g has quit [Quit: Connection closed for inactivity]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tuelz1 has joined #ruby
<Ox0dea> <3
SCHAAP137 has joined #ruby
<Ox0dea> norc: https://eval.in/512961 :(
jgt2 has quit [Ping timeout: 245 seconds]
kp666 has joined #ruby
dsilfen has joined #ruby
Dreamer3_ has joined #ruby
gigetoo has joined #ruby
tuelz1 has quit [Ping timeout: 240 seconds]
<ljarvis> that's quite the line of code
<pizzaops> ljarvis: thank the vSphere API. None of that is me :)
blaxter has joined #ruby
sivoais has quit [Ping timeout: 240 seconds]
<pizzaops> I mean I wrote the line, but it's the necessary line to query vSphere with their Ruby library for this information.
<ljarvis> how awful
<pizzaops> It's pretty bad yes.
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwnd_nsfw has joined #ruby
<atmosx> it's awful
dsilfen has quit [Ping timeout: 260 seconds]
<pizzaops> So, you can iterate throughout all the vms and datastores and whatever if you want to, but it's way slower than using a property collector, since the former would be a potentially infinite number of api calls as you loop, while the latter is vSphere's search interface, which they call a property collector
<pizzaops> and you can describe the results you want to return, and get them all in one api call
<pizzaops> but it's definitely a nightmare.
sivoais has joined #ruby
<pizzaops> I'm just glad there's a library at all. . .it's a SOAP api.
<Ox0dea> norc! https://eval.in/512968
<Ox0dea> Poking raw memory is always the answer.
moeabdol has quit [Quit: WeeChat 1.4]
mikecmpbll has joined #ruby
<Ox0dea> Be advised that Pry'll segfault on exit after that. :P
<pizzaops> All this is just to make sure that when I create a new disk, the filename is unique. To be honest I'm tempted to just append SecureRandom.uuid
<pizzaops> Because my current way of doing it possibly doesn't even list all the disk files, since it doesn't list disks that are in the VM's datastore, but have been disconnected from the vm.
Xeago has joined #ruby
<pizzaops> vSphere + ESXi is basically a "virtual computer simulator". It's just as complicated as physically building one, you just don't need to handle the physical cables. You have to tell it what damn SCSI LUN the drive should use,
Yeomra has joined #ruby
ready has joined #ruby
aryaching has joined #ruby
tomphp has joined #ruby
JohnBat26 has joined #ruby
Snowy has joined #ruby
pink_vampire has quit [Read error: Connection reset by peer]
<pizzaops> AHAHAH IT WORKS IT MAKES GOD DAMN DISKS
<pizzaops> Sorry, I've just been working on this nightmare for so long.
last_staff has joined #ruby
<pizzaops> Also Ox0dea, do you ever sleep? You've helped me every time I've come on here, at random times.
<pizzaops> (and I do appreciate it!)
last_staff has quit [Client Quit]
mlehrer has joined #ruby
PedramT has quit [Remote host closed the connection]
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
jgt2 has joined #ruby
sivoais has quit [Ping timeout: 272 seconds]
Rickmasta has joined #ruby
sivoais has joined #ruby
PedramT has joined #ruby
aryaching has quit [Remote host closed the connection]
<p1k> What's the correct way to delay handling an interupt until I'm read to deal with it (with Thread.handle_interupt)?
infra-red has joined #ruby
PedramT has quit [Remote host closed the connection]
jgt2 has quit [Ping timeout: 250 seconds]
<toretore> p1k: put it on a queue
PedramT has joined #ruby
cajone has quit [Remote host closed the connection]
dasher00 has joined #ruby
vifino has quit [Ping timeout: 246 seconds]
<p1k> toretore: could you give an example / link to one?
aryaching has joined #ruby
chouhoulis has joined #ruby
krzkrz has quit [Ping timeout: 240 seconds]
jbrhbr has quit [Quit: Leaving.]
infra-re_ has joined #ruby
krzkrz has joined #ruby
<p1k> that's not exactly that I'm asking
rdark has joined #ruby
sftrabbit has joined #ruby
cajone has joined #ruby
Yeomra has quit [Quit: WeeChat 1.4]
infra-red has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Ping timeout: 276 seconds]
PedramT has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
sivoais has quit [Ping timeout: 264 seconds]
sivoais has joined #ruby
<toretore> p1k: what are you asking then?
SCHAAP137 has quit [Ping timeout: 260 seconds]
<p1k> I'm wondering how I can get the equivalent of SIG_BLOCK during an ensure section of my controller
rdark has quit [Ping timeout: 256 seconds]
Yeomra has joined #ruby
SCHAAP137 has joined #ruby
william3 has joined #ruby
bluOxigen has joined #ruby
<p1k> to my understanding ruby interupts have their own abstraction that's not os level ?
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PedramT has joined #ruby
<toretore> p1k: yes, afaik
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
Snowy is now known as Swnoy
Ruby_Rocks_007 has joined #ruby
william3 has quit [Remote host closed the connection]
<toretore> but i would push signals onto a queue and handle them in the main loop anyway and not have to deal with it
sandstrom has quit [Quit: My computer has gone to sleep.]
bluOxigen has quit [Ping timeout: 250 seconds]
jgt2 has joined #ruby
bluOxigen has joined #ruby
evidex has joined #ruby
<p1k> But is this the correct way to deal with the ruby Thread.raise? I understand there is a Thread.handle_interrupt but I'm not clear on how to block Thread.raise with it
sandstrom has joined #ruby
nalaginrut has joined #ruby
<toretore> Thread#raise raises an exception, which is different from a signal
sandstrom has quit [Client Quit]
<apeiros> p1k: you wrap the part which should not be interrupted with Thread.handle_interrupt
sivoais has quit [Ping timeout: 250 seconds]
<apeiros> p1k: Thread.handle_interrupt has plenty of examples
<apeiros> +docs
aupadhye has quit [Quit: Leaving]
sivoais has joined #ruby
aswen has quit [Ping timeout: 250 seconds]
<p1k> apeiros: It still interrupts in the middle of the code though -
<apeiros> ?code p1k
<ruby[bot]> p1k: We can't help you without your code, please post it to https://gist.github.com
<apeiros> without code, that's just a random assertion I can't comment in any way.
sandstrom has joined #ruby
dexter__ has quit [Ping timeout: 276 seconds]
toretore has quit [Quit: Leaving]
TheHodge has joined #ruby
djbkd has quit [Remote host closed the connection]
sandstrom has quit [Read error: Connection reset by peer]
<shevy> cooooooode!
karapetyan has joined #ruby
william3 has joined #ruby
ocbtec has joined #ruby
ziyadb has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
marr has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
The_Phoenix has joined #ruby
Conflict has joined #ruby
BTRE has quit [Quit: Leaving]
araujo_ has quit [Quit: Leaving]
Brklyn has joined #ruby
dmolina has joined #ruby
atmosx has quit [Quit: computer went to sleep...]
sivoais has quit [Ping timeout: 240 seconds]
hxegon has joined #ruby
sivoais has joined #ruby
stan has quit [Quit: Leaving]
Brklyn has quit [Ping timeout: 245 seconds]
varunwachaspati has joined #ruby
tuelz1 has joined #ruby
croberts has quit [Ping timeout: 248 seconds]
Hounddog has joined #ruby
PedramT has quit [Ping timeout: 240 seconds]
tuelz1 has quit [Ping timeout: 276 seconds]
lipoqil has joined #ruby
Xeago has quit [Remote host closed the connection]
Ruby_Rocks_007 has quit [Quit: Ruby_Rocks_007]
sivoais has quit [Ping timeout: 240 seconds]
stan has joined #ruby
sivoais has joined #ruby
Xeago has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
Mon_Ouie has quit [Quit: WeeChat 1.3]
dexter__ has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
blackmesa has joined #ruby
GriffinHeart has joined #ruby
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
dajobat has joined #ruby
Pupeno has joined #ruby
infra-red has joined #ruby
Bloomer has quit [Remote host closed the connection]
sami has quit [Ping timeout: 240 seconds]
sftrabbit has joined #ruby
craysiii has quit [Quit: Leaving.]
blackmesa has quit [Ping timeout: 276 seconds]
sivoais has quit [Ping timeout: 276 seconds]
sivoais has joined #ruby
sandstrom has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
infra-re_ has quit [Ping timeout: 272 seconds]
lsmola_ has quit [Quit: Leaving]
FooMunki has joined #ruby
vikas027 has left #ruby ["Textual IRC Client: www.textualapp.com"]
c355e3b has quit [Quit: Connection closed for inactivity]
chouhoulis has joined #ruby
infra-re_ has joined #ruby
dlitvak has joined #ruby
dlitvak has joined #ruby
sami has joined #ruby
aryaching has quit []
GriffinHeart has quit [Remote host closed the connection]
ferr has quit [Ping timeout: 250 seconds]
infra-red has quit [Ping timeout: 272 seconds]
exadeci has quit [Quit: Connection closed for inactivity]
aef has joined #ruby
colegatron has joined #ruby
blackms has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
trinaldi has joined #ruby
Guest82831 has quit [Ping timeout: 240 seconds]
Macaveli_ has quit [Ping timeout: 264 seconds]
SOLDIERz has joined #ruby
Macaveli has joined #ruby
sivoais has quit [Ping timeout: 250 seconds]
sivoais has joined #ruby
vondruch has joined #ruby
dasher00 has quit [Ping timeout: 240 seconds]
hxegon is now known as hxegon_AFK
hxegon_AFK is now known as hxegon
vondruch has quit [Client Quit]
atmosx has joined #ruby
loz has joined #ruby
<loz> greetings ruby friends!
<loz> what should I do to install a gem?
dlitvak has quit [Remote host closed the connection]
<loz> what I have now is:
<loz> gem install --local twurl
<loz> ERROR: Could not find a valid gem 'twurl' (>= 0) in any repository
Amnez777 has quit [Ping timeout: 272 seconds]
<apeiros> loz: why --local?
<loz> apeiros: good question, my friend!
<loz> apeiros: quick answer is:
<loz> >gem install twurl
<loz> You don't have write permissions for the /nix/store/h1aqj8zkwk64p67lilwrzi38vcqvhkik-ruby-2.2.2-p0/lib/ruby/gems/2.2.0 directory.
<loz> ERROR: While executing gem ... (Gem::FilePermissionError)
<apeiros> --local is not the solution to that. sudo is.
<apeiros> or installing your ruby in a way that it stores gems per user
dlitvak has joined #ruby
<loz> apeiros: sorry, but /nix/store is mounted in read-only, even root is not the one who can write there
ocbtec has quit [Ping timeout: 276 seconds]
<loz> apeiros: can't I just install gems for a user?
<apeiros> what did you do to ruby that it tries to write to a read-only place?
p1k has quit [Ping timeout: 250 seconds]
<loz> apeiros: I installed it safely in a way nothing can change or break installed files!
<apeiros> loz: so you customized things and don't think it'd be necessary to mention those customizations?
bronson has joined #ruby
<loz> apeiros: no, because each user install his own gems. ruby is shared for them, and should not be touched by anybody
<apeiros> well, I'll just answer the generic question generically then: yes, you can install gems for a user.
ht__ has joined #ruby
dlitvak has quit [Remote host closed the connection]
<loz> apeiros: could you point me how to do that?
<apeiros> gem help install
<apeiros> it should list the relevant option
Amnez777 has joined #ruby
Amnez777 has quit [Max SendQ exceeded]
sivoais has quit [Ping timeout: 276 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
<apeiros> iirc it contains `user`. been a while though.
ht__ has quit [Client Quit]
Amnez777 has joined #ruby
Amnez777 has quit [Max SendQ exceeded]
<loz> apeiros: yay, it worked, thank you very much!
sivoais has joined #ruby
Amnez777 has joined #ruby
Amnez777 has quit [Max SendQ exceeded]
* loz though --local is similar to python's pip, and it's not
Amnez777 has joined #ruby
Amnez777 has quit [Max SendQ exceeded]
cassianoleal has joined #ruby
william3 has quit [Remote host closed the connection]
Amnez777 has joined #ruby
Amnez777 has quit [Max SendQ exceeded]
bronson has quit [Ping timeout: 256 seconds]
Amnez777 has joined #ruby
Amnez777 has quit [Max SendQ exceeded]
jgt3 has joined #ruby
akkad has quit [Ping timeout: 245 seconds]
nchambers has quit [Ping timeout: 245 seconds]
einarj_ has joined #ruby
cyphactor has quit [Ping timeout: 250 seconds]
bafbomb has joined #ruby
einarj has quit [Ping timeout: 245 seconds]
<shevy> apeiros hmmm did p1k quit without showing any code? :D
GriffinHeart has joined #ruby
vondruch has joined #ruby
sirecote has quit [Ping timeout: 250 seconds]
Freeaqingme has quit [Quit: No Ping reply in 180 seconds.]
barhum2013_ has joined #ruby
Yeomra has quit [Ping timeout: 250 seconds]
bafbomb_ has quit [Ping timeout: 250 seconds]
gregf_ has joined #ruby
cassianoleal has quit [Ping timeout: 250 seconds]
jgt2 has quit [Ping timeout: 245 seconds]
CloCkWeRX has quit [Ping timeout: 245 seconds]
braincrash has quit [Ping timeout: 245 seconds]
barhum2013 has quit [Ping timeout: 245 seconds]
barhum2013_ is now known as barhum2013
ht__ has joined #ruby
boshhead has quit [Ping timeout: 250 seconds]
c0ncealed has quit [Ping timeout: 264 seconds]
ocbtec has joined #ruby
Koshian has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
infra-red has joined #ruby
sirecote has joined #ruby
ptierno has quit [Quit: leaving]
boshhead has joined #ruby
cyphactor has joined #ruby
baweaver has joined #ruby
Freeaqingme has joined #ruby
Yeomra has joined #ruby
bhaak has quit [Ping timeout: 250 seconds]
braincrash has joined #ruby
nchambers has joined #ruby
CloCkWeRX has joined #ruby
c0ncealed has joined #ruby
User458764 has joined #ruby
bhaak has joined #ruby
varesa has joined #ruby
akkad has joined #ruby
GriffinHeart has quit [Ping timeout: 260 seconds]
ht__ has quit [Client Quit]
ldnunes has joined #ruby
infra-re_ has quit [Ping timeout: 240 seconds]
infra-r__ has joined #ruby
ocbtec has quit [Ping timeout: 250 seconds]
sivoais has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 252 seconds]
ocbtec has joined #ruby
sivoais has joined #ruby
infra-red has quit [Ping timeout: 250 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
lubekpl has joined #ruby
<apeiros> shevy: *shrug*
shredding has joined #ruby
jottr has joined #ruby
tuelz1 has joined #ruby
william3 has joined #ruby
waka has quit [Ping timeout: 250 seconds]
huyderman has joined #ruby
hxegon is now known as hxegon_AFK
krzkrz has quit [Ping timeout: 250 seconds]
reaVer has quit [Remote host closed the connection]
Blaze_Boy has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
tuelz1 has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
futilegames has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
reaVer has joined #ruby
Blaze_Boy has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
sivoais has quit [Ping timeout: 240 seconds]
cassianoleal has joined #ruby
joconcepts_ has joined #ruby
Thib_ has joined #ruby
<joconcepts_> hello guys
sivoais has joined #ruby
c355e3b has joined #ruby
FernandoBasso has joined #ruby
Thib has quit [Ping timeout: 246 seconds]
DEA7TH has joined #ruby
platzhirsch has joined #ruby
Bloomer has joined #ruby
ht__ has joined #ruby
nfk|laptop has joined #ruby
futilegames has quit [Quit: futilegames]
hxegon_AFK has quit [Quit: BRB]
Hounddog has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
bruce_lee has joined #ruby
blackmesa has joined #ruby
ht__ has quit [Client Quit]
hamed_r has joined #ruby
triangles has quit [Ping timeout: 276 seconds]
<dajobat> Hi all.
Bloomer has quit [Ping timeout: 252 seconds]
nfk|laptop has quit [Ping timeout: 260 seconds]
AlexJakeGreen has joined #ruby
waka has joined #ruby
sivoais has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
sivoais has joined #ruby
evidex has quit [Remote host closed the connection]
evidex has joined #ruby
ferr has joined #ruby
Coldblackice_ has quit [Read error: Connection reset by peer]
<atmosx> rake (~> 10.4.2) this means equal or bigger right?
ropeney has joined #ruby
infra-red has joined #ruby
waka has quit [Ping timeout: 250 seconds]
zenguy_pc has quit [Ping timeout: 240 seconds]
<chrisarcand> atmosx: No; it means >= 10.4.2 and < 10.5.0
chouhoulis has joined #ruby
<atmosx> okay, I want to make that 10.5.0
Swnoy is now known as Comakip3000
<atmosx> I just remove ~> and stab 10.5.0 I guess
Comakip3000 is now known as Snowy
dlitvak has joined #ruby
<atmosx> chrisarcand: I want to get over this: You specified: rake (~> 10.4.2) and rake (= 10.5.0)
infra-r__ has quit [Ping timeout: 250 seconds]
Coldblackice has joined #ruby
<atmosx> I didn't specify ~> 10.4.2 some plugin probably did
GriffinHeart has joined #ruby
srenatus has joined #ruby
DEA7TH_ has joined #ruby
DEA7TH has quit [Ping timeout: 260 seconds]
DEA7TH_ is now known as DEA7TH
lsmola has joined #ruby
GriffinHeart has quit [Client Quit]
DEA7TH has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 256 seconds]
Blaze_Boy has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
zenguy_pc has joined #ruby
sivoais has quit [Ping timeout: 245 seconds]
minimalism has quit [Quit: minimalism]
mja has joined #ruby
Blaze_Boy has quit [Remote host closed the connection]
sivoais has joined #ruby
sftrabbit has joined #ruby
ht__ has joined #ruby
dionysus69 has joined #ruby
ht__ has quit [Client Quit]
platzhirsch has left #ruby [#ruby]
workmad3_ has joined #ruby
ocbtec has quit [Ping timeout: 256 seconds]
pandaant has joined #ruby
joonty has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
joonty has joined #ruby
ht__ has joined #ruby
infra-re_ has joined #ruby
Brklyn has joined #ruby
ocbtec has joined #ruby
dlitvak_ has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
ht__ has quit [Client Quit]
sivoais has quit [Ping timeout: 245 seconds]
ych has joined #ruby
ohcibi_ is now known as ohcibi
ht__ has joined #ruby
hxegon has joined #ruby
infra-red has quit [Ping timeout: 240 seconds]
sivoais has joined #ruby
Brklyn has quit [Ping timeout: 252 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
ht__ has quit [Client Quit]
ht__ has joined #ruby
hxegon has quit [Client Quit]
ht__ has quit [Client Quit]
hightower4 has quit [Ping timeout: 272 seconds]
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
Thib_ has quit [Remote host closed the connection]
hightower4 has joined #ruby
cassianoleal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Shaboum has joined #ruby
kp666 has quit [Remote host closed the connection]
ht__ has joined #ruby
<SebastianThorn> ruby still adds great stuff, love this language!
rhg135 has quit [Ping timeout: 256 seconds]
sandstrom has joined #ruby
dlitvak has joined #ruby
sivoais has quit [Ping timeout: 240 seconds]
dlitvak_ has quit [Ping timeout: 240 seconds]
p1k has joined #ruby
sivoais has joined #ruby
tuelz1 has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
ocbtec has quit [Ping timeout: 260 seconds]
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
ocbtec has joined #ruby
cassianoleal has joined #ruby
tuelz1 has quit [Ping timeout: 245 seconds]
<joconcepts_> hey guys
<joconcepts_> i have a Gem::Specification object of a specific gem, how can i found out if there are any updates for that gem?
Xeago has joined #ruby
Deck` has joined #ruby
nalaginrut has quit [Ping timeout: 240 seconds]
ht__ has joined #ruby
ElFerna has joined #ruby
nodejunkie has quit [Ping timeout: 252 seconds]
lipoqil has quit [Quit: Connection closed for inactivity]
<yorickpeterse> joconcepts_: you'd have to check rubygems.org probably via the API
<yorickpeterse> which probably means digging through the RubyGems code to see how it does that
<joconcepts_> it is not possible to that with the gem object?
<joconcepts_> i can get all outdated gems via Gem::Specification.outdated_and_latest_version
<joconcepts_> but that takes a long time
nalaginrut has joined #ruby
Mon_Ouie has joined #ruby
nymph has quit [Read error: Connection reset by peer]
cassianoleal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Deck` has quit [Client Quit]
<yorickpeterse> That's probably because that uses the API
Xeago has quit [Ping timeout: 252 seconds]
sivoais has quit [Ping timeout: 248 seconds]
FernandoBasso has quit [Quit: Leaving]
william3 has quit [Remote host closed the connection]
sivoais has joined #ruby
Deck` has joined #ruby
__ht has joined #ruby
ht__ has quit [Ping timeout: 250 seconds]
codecop has quit [Remote host closed the connection]
william3 has joined #ruby
__ht has quit [Client Quit]
varunwachaspati has quit [Quit: Connection closed for inactivity]
__ht has joined #ruby
Deck` has quit [Client Quit]
Deck` has joined #ruby
adgtl has quit [Remote host closed the connection]
sftrabbit has quit [Quit: sftrabbit]
sdothum has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
adgtl has joined #ruby
__ht has quit [Read error: No route to host]
Mon_Ouie has quit [Ping timeout: 248 seconds]
sivoais has quit [Ping timeout: 250 seconds]
futilegames has joined #ruby
futilegames has quit [Client Quit]
sivoais has joined #ruby
chouhoulis has joined #ruby
<Deck`> Is there any way to extract path from both http://url.com/path and url.com/path strings using URI module? Or regexp is the only way?
sftrabbit has joined #ruby
<shevy> joconcepts_ perhaps you can come up with an easy-to-use API, then suggest this to the #rubygems people linked with a github issue request
Thib has joined #ruby
Thib has quit [Read error: Connection reset by peer]
<shevy> Deck`, this works?
<shevy> x = URI.parse "http://url.com/path"; x.path # => "/path"
<shevy> not sure about non-http but you could .prepend the string to have that
Thib has joined #ruby
Thib has quit [Remote host closed the connection]
Thib has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
mikeiniowa has quit [Remote host closed the connection]
mikeiniowa has joined #ruby
<jhass> Deck`: ^ normalize it, url = "http://#{url}" unless url.start_with? "http"
<Deck`> shevy: it works but my actual goal is to get path in three cases: the path itself is given like: `path`, with http:// version and non-http version. So prepending wont work for me
sftrabbit has quit [Quit: sftrabbit]
<jhass> does `path` ever contain `/` in your case?
rideh has quit [Changing host]
rideh has joined #ruby
<jhass> because foo.bar/baz is a totally legit path
<jhass> and hence that's what URI.parse interprets it as
waka has joined #ruby
<Deck`> jhass: sure, I agree with URI.parse, my code deals with urls with http/https or with paths itself. It takes the string nad returns path, but there is new requirement: supporting www.url.com/path
gigetoo has quit [Ping timeout: 240 seconds]
ropeney has quit [Remote host closed the connection]
<Deck`> So I'm looking for the way without completely rewriting this using regexes
sivoais has quit [Ping timeout: 245 seconds]
<jhass> that gets horrible fast
adgtl has quit [Remote host closed the connection]
blackmesa has joined #ruby
<jhass> easier to write your own little parser if you seek to be correct
<jhass> but again, how are you going to differentiate?
<jhass> match against the public suffix list?
neu0 has joined #ruby
<jhass> it'll be a heuristic in any case
gigetoo has joined #ruby
sivoais has joined #ruby
<Deck`> got it, I think it would be something like %r{((https?://)?[^/]+/)?([^/]+)}
<atmosx> I updated the rake version on a Gemfile, do I need to worry about the Gemfile.lock - this is a github repo
<Deck`> just to make s in https optional, http:// optional and host optional
<jhass> atmosx: yes
<jhass> Gemfile is your wishes, Gemfile.lock is what's enforced
sergey_makagon has joined #ruby
<atmosx> jhass: hm, do can I delete Gemfile.lock from the repo ?
<jhass> you shouldn't
<atmosx> problem is how do I test this..
<jhass> what?
sftrabbit has joined #ruby
<atmosx> redmine_plugin
<jhass> ask #redmine
<atmosx> I guess I just install redmine and this plugin run rake
<jhass> last time I checked redmine heavily abused bundler
<atmosx> true
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nalaginrut has quit [Ping timeout: 240 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
adgtl has joined #ruby
duckpuppy has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
sivoais has quit [Ping timeout: 276 seconds]
sivoais has joined #ruby
nalaginrut has joined #ruby
Burgestrand has joined #ruby
sftrabbit has joined #ruby
Pupeno has joined #ruby
neu0 has quit [Quit: Leaving]
__ht has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
adgtl has quit [Ping timeout: 248 seconds]
__ht has quit [Client Quit]
yfeldblum has quit [Ping timeout: 260 seconds]
Lochez has joined #ruby
platzhirsch has joined #ruby
UtkarshRay has joined #ruby
nobitanobi has joined #ruby
<nobitanobi> Morning folks
dlitvak_ has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
pawnbox has quit [Remote host closed the connection]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mon_Ouie has joined #ruby
sivoais has quit [Ping timeout: 260 seconds]
kristofferR has joined #ruby
nettoweb has joined #ruby
<nobitanobi> Could anyone point me to good readings on why would not use class methods if being strict about object oriented paradigm?
dlitvak has quit [Ping timeout: 276 seconds]
sivoais has joined #ruby
aufi_ has joined #ruby
trinaldi_ has joined #ruby
trinaldi has quit [Disconnected by services]
trinaldi_ is now known as trinaldi
jhill_ has quit [Ping timeout: 240 seconds]
kireevco has quit [Ping timeout: 240 seconds]
sftrabbit has quit [Ping timeout: 240 seconds]
mikeiniowa has quit [Ping timeout: 240 seconds]
zipkid has quit [Ping timeout: 240 seconds]
colegatron has quit [Ping timeout: 240 seconds]
matp has quit [Ping timeout: 240 seconds]
sorah has quit [Ping timeout: 240 seconds]
aibot has quit [Ping timeout: 240 seconds]
mja has quit [Ping timeout: 240 seconds]
aufi has quit [Ping timeout: 240 seconds]
sirecote has quit [Ping timeout: 240 seconds]
redondos has quit [Ping timeout: 240 seconds]
aibot_ has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
blackmesa has joined #ruby
kristofferR has quit [Max SendQ exceeded]
Yeomra_ has joined #ruby
zipkid has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mja has joined #ruby
matp has joined #ruby
sorah has joined #ruby
kristofferR has joined #ruby
colegatron has joined #ruby
sirecote has joined #ruby
mja is now known as Guest26985
JohnBat26 has quit [Ping timeout: 240 seconds]
Pupeno has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
Yeomra has quit [Ping timeout: 248 seconds]
kireevco has joined #ruby
jhill_ has joined #ruby
kristofferR has quit [Client Quit]
billybob has joined #ruby
duckpuppy has quit [Ping timeout: 250 seconds]
Macaveli has joined #ruby
__ht has joined #ruby
<billybob> hey all. starting to learn ruby. i am confused on || - How can I compare 3 things where I only want to compare A && B || A && C ? Basically I want to say: If A == true && B == true or if A == true and C == true
<jhass> nobitanobi: not sure I'd agree, who claims so?
<billybob> but it evaluates both sides obviously. so how do I essentially use something like either
Yeomra_ has quit [Quit: WeeChat 1.4]
<jhass> billybob: A && (B || C)
Yeomra has joined #ruby
pawnbox has joined #ruby
<billybob> jhass: i swear I tried that many times. but let me go back and retry again. possible the data being fed to it wasnt correct ;(
<billybob> jhass: lol works exactly as I expected. who knows what i did before. thanks a bunch
<jhass> yw
sivoais has quit [Ping timeout: 250 seconds]
Rickmasta has joined #ruby
sivoais has joined #ruby
tvw has quit [Ping timeout: 245 seconds]
skakri` is now known as skakri
tyil has joined #ruby
__ht has quit [Ping timeout: 264 seconds]
synthroid has joined #ruby
emilkarl has joined #ruby
mdw has joined #ruby
karapetyan has joined #ruby
mfb2 has joined #ruby
Snowy has quit [Remote host closed the connection]
billybob has quit [Ping timeout: 252 seconds]
<tyil> I'm having an issue with Net::IMAP and STARTTLS: http://termbin.com/i328
blackmesa has quit [Ping timeout: 256 seconds]
<tyil> connections seem to just disconnect after invoking .starttls() on the IMAP connection
roshanavand has joined #ruby
sftrabbit has joined #ruby
roshanavand has quit [Remote host closed the connection]
dlitvak has joined #ruby
roshanavand has joined #ruby
aufi_ is now known as aufi
stevednd has joined #ruby
gregf_ has left #ruby [#ruby]
karapetyan has quit [Ping timeout: 240 seconds]
gregf__ has joined #ruby
User458764 has joined #ruby
ocbtec has quit [Ping timeout: 240 seconds]
dayjo has joined #ruby
dlitvak_ has quit [Ping timeout: 276 seconds]
<jhass> I'd peek at the server side log
duckpuppy has joined #ruby
jas02 has joined #ruby
<jhass> side note, !server["tls"].nil? && server["tls"] is redundant to just the latter term
__ht has joined #ruby
<tyil> doesn't it error out if server["tls"] isn't defined at all without the .nil? check?
ocbtec has joined #ruby
<jhass> >> {}["no"]
<ruby[bot]> jhass: # => nil (https://eval.in/513082)
<tyil> oh
<tyil> I'll update that
<tyil> the server log shows: Feb 4 14:14:20 mail dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=86.93.148.215, lip=192.168.1.12, TLS handshaking: SSL_accept() failed: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca: SSL alert number 48, session=<mbs9g/EqjqtWXZTX>
cassianoleal has joined #ruby
<jhass> sounds like your server uses a self signed cert, doesn't deliver the whole chain or uses a CA not trusted by your client
<tyil> self-signed
sivoais has quit [Ping timeout: 250 seconds]
<jhass> though a bit odd to get just a closed stream on the client, agreed
dajobat has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby
<jhass> anyway, bet that's the issue
<jhass> consider getting a letsencrypt, startcom or wosign cert?
Burgestrand has joined #ruby
<tyil> considered LE, but that sounds as a workaround, not a fix :p
<jhass> I'd claim the other way around
<jhass> everything else is a workaround
<tyil> besides that, the LE application didn't work on FreeBSD last time I tried
<jhass> thankfully the protocol is simple enough, no need for the messy official client
sivoais has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
<tyil> hmm, I'll look at it
<tyil> however, I still think that self-signed certs should be valid too >_>
<jhass> you're simply wrong about that
<nobitanobi> jhass: I have talked to several people that claims that the only method that a class should own is the initialize. I tend to use class methods for methods that will do the same thing regardless of the state of its instances
krzkrz has joined #ruby
<jhass> I'd prefer DANE spreading over a bandage like LE, but still better than self-signed
<tyil> DANE would be fine too
<tyil> but simply refusing self-signed without a way to accept them is bad
troulouliou_div2 has quit [Read error: Connection reset by peer]
sgambino has joined #ruby
tuelz1 has joined #ruby
<jhass> there's a way but it's nothing that should be spread as a solution to the problem
chouhoulis has quit [Ping timeout: 240 seconds]
__ht has quit [Ping timeout: 252 seconds]
sftrabbit has joined #ruby
mfb2 has quit [Remote host closed the connection]
hxegon has joined #ruby
<tyil> any solution that requires a single point of failure (CAs) that have proven themselves to fail is bad, so I should have a simple way to just accept my self-signed certs
<tyil> saying "self-signed is wrong" is on itself a wrong statement
joonty has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
<jhass> you can simply turn off validation
<ddv> tyil: ssl is not only about encryption, it is also about a third party identifying you
<shevy> NSA!
<nobitanobi> jhass: would love to hear why do you think using class methods it's "ok"
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jirte has joined #ruby
<tyil> ddv: I know, and using that with teh current CA system is not really any more secure than no third party validation at all
Macaveli has joined #ruby
<jhass> nobitanobi: it's just bloat if your object has no state and a single method
<tyil> you can pay anyone 5 bucks and they'll say "yeah that's correct" in the current CA system
codecop has joined #ruby
* shevy holds out his hand
dayjo has quit [Quit: Leaving]
<tyil> jhass: the problem remains if I call .starttls({}, false) though
<jhass> tyil: point is that you have to spend effort, so some validation increases attacker effort, self signed increases attacker effort not at all
<tyil> actually, the current CA system would only make an attacker more believable (the CA says it's correct so it cant be an attacker, right?)
<jhass> no
<tyil> so for 5 bucks the attacker has more chance of success
<jhass> even with automated systems it's significantly harder to get a "valid" cert for your domain
<jhass> and even if you deny that argument, training your users to "just accept" the warnings is really bad
<tyil> luckily Im not training anyone to do that
last_staff has quit [Quit: last_staff]
<jhass> but arguing self-signed cert as a valid alternative in general is doing that
<tyil> not really
sivoais has quit [Ping timeout: 250 seconds]
<tyil> but there's been a lot of arguing around the actual issue and denying the issue exists, however I still have the issue
psy_ has quit [Ping timeout: 276 seconds]
<jhass> tyil: did you even click my links?
<atmosx> he didn't
<atmosx> otherwise he would have certs by now
<jhass> I mean the latter ones
<tyil> to the GH sourcecode?
sivoais has joined #ruby
<jhass> yes
atmosx has quit [Quit: Lost in trance]
<tyil> it looks very fun and all, but what param would I have to add in to accept the self-signed cert?
blackmesa has joined #ruby
nrsk has joined #ruby
cassianoleal has quit [Ping timeout: 240 seconds]
troulouliou_div2 has joined #ruby
Zai00 has joined #ruby
sepanta has joined #ruby
<tyil> welp, since you seem to know just as little about it as I do, I'll ask around at another community (otherwise you would've just given me the right object to pass in)
sepanta has quit [Client Quit]
<jhass> sigh
<jhass> if you run with self-signed stuff you shouldn't be as clueless as you are in that area
<jhass> .starttls(verify_mode: OpenSSL::SSL:VERIFY_NONE)
* tyil sighs
<tyil> if you act so high and mighty you could've just helped someone
__ht has joined #ruby
<jhass> you were unwilling to accept the proper solution
AxonetBE_ has joined #ruby
adgtl has joined #ruby
<tyil> "proper" is only what you deem worthy of using, and you refuse to even consider other use-cases
exadeci has joined #ruby
solocshaw has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<jhass> there's no valid usecase for disabling validation besides having no control over the remote
Snowy has joined #ruby
newbie22 has joined #ruby
<jhass> I'd tell you to run your own PKI but then you're so fixiated on disabling validation that I no longer bothered
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
JohnBat26 has joined #ruby
<tyil> not really, but I like your childish attitude
sftrabbit has quit [Quit: sftrabbit]
pdoherty has quit [Ping timeout: 248 seconds]
__ht has quit [Client Quit]
<jhass> I like how you avoid effort at all costs
newbie22 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
icbm has quit [Quit: Computer sleeping]
sivoais has quit [Ping timeout: 264 seconds]
<tyil> if I wanted to avoid effort, I would've ran debian and run the LE client, wouldn't I?
DmitryBochkarev has joined #ruby
sivoais has joined #ruby
<tyil> instead, I'm actually trying to get some sane help out of a childish guy on irc who's just trying to be an elitist prick
sftrabbit has joined #ruby
<jhass> yes, I strongly oppose your viewpoint, that can only be childish and elitist
baweaver has joined #ruby
<jhass> despite giving you all the information you would need if you'd spend 10 minutes on reading them
frarwp has joined #ruby
<jhass> but you already know I'm not here to help you, so why bother doing that
<tyil> you're elitist because you're refusing to just help me, and your childish for saying things like "I'd tell you to run your own PKI but then you're so fixiated on disabling validation"
mdw has quit [Quit: Sleeping Zzzzz]
<tyil> if you're here to help, you should consider to drop this elitist act and make childish comments
symbol has joined #ruby
newbie22 has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
<ddv> tyil: lol relax
newbie22 has left #ruby [#ruby]
blackmesa has quit [Ping timeout: 250 seconds]
symbol has quit [Client Quit]
<ddv> tyil: you are not entitled to anything in this channel
<ddv> please keep that in mind, we are all volunteers in here
newbie22 has joined #ruby
newbie22 has quit [Remote host closed the connection]
reppard has joined #ruby
<tyil> I never claimed I was, I just told jhass that he's acting elitist and childish
<tyil> which he was
EAK has joined #ruby
<EAK> hi guys
<tyil> I came in here for help on an issue, not to get told I'm doing it all wrong because it doesn't fit into someones mindset
newbie22 has joined #ruby
atomical has joined #ruby
mfb2 has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
__ht has joined #ruby
supremekay has quit [Ping timeout: 240 seconds]
mdw has joined #ruby
dlitvak_ has joined #ruby
<EAK> i need to install this: gem install arduino_firmata
<EAK> ERROR: Loading command: install <ArgumentError>
mary5030 has joined #ruby
<jhass> EAK: OS, how did you install ruby? ruby -v, gem -v?
<EAK> unknown encoding name - CP720
__ht has quit [Client Quit]
<EAK> ruby 2.2.3
Abrin has joined #ruby
<EAK> gem 2.5.2
<EAK> windows 7 32
<jhass> mh, sounds to me like your system is set to a locale that ruby doesn't support
<jhass> no idea how to change it for a single program on windows, might be worth looking up, or just switch your system to english
dlitvak has quit [Ping timeout: 252 seconds]
supremekay has joined #ruby
vagnerd_2 has joined #ruby
__ht has joined #ruby
<jhass> that is less so the system language as much more the character encoding
vagnerd has quit [Read error: Connection reset by peer]
<EAK> ok, i change it
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
IrishGringo has joined #ruby
<EAK> I'm using Virtualbox in xubuntu
sivoais has quit [Ping timeout: 240 seconds]
jirte has left #ruby [#ruby]
triangles has joined #ruby
newbie22 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
duckpuppy has quit [Ping timeout: 240 seconds]
<jhass> that is windows -> virtualbox -> xubuntu -> ruby or xubuntu -> virtualbox -> windows -> ruby ?
amb77 has joined #ruby
sivoais has joined #ruby
__ht has quit [Client Quit]
<EAK> Main os is Xubuntu, Windows 7 is installed on Virtualbox
__ht has joined #ruby
newbie22 has joined #ruby
Timba-as has joined #ruby
rhg135 has joined #ruby
duckpuppy has joined #ruby
yardenbar has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
EAK_ has joined #ruby
Pupeno has joined #ruby
blackmesa has joined #ruby
EAK has quit [Ping timeout: 252 seconds]
ferr has quit [Quit: WeeChat 1.3]
mlehrer has quit [Ping timeout: 250 seconds]
__ht has quit [Quit: Konversation terminated!]
sandstrom has joined #ruby
lurch_ has quit [Quit: lurch_]
cassianoleal has joined #ruby
dsilfen has joined #ruby
<jhass> EAK_: why? why don't you use ruby on xubuntu?
<jhass> that should generally cause less trouble
dlitvak has joined #ruby
joonty has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dexter__ has quit [Ping timeout: 240 seconds]
<EAK_> thanks jhass, last problem solved
amb77 has quit [Quit: amb77]
<EAK_> I'm going to be ready for next one...
__ht has joined #ruby
edwardly has quit [Ping timeout: 248 seconds]
EAK has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
__ht has quit [Client Quit]
dlitvak_ has quit [Ping timeout: 272 seconds]
<nobitanobi> jhass: thanks for your thoughts
sivoais has quit [Ping timeout: 240 seconds]
flughafen_ has joined #ruby
reppard has quit [Ping timeout: 240 seconds]
EAK_ has quit [Ping timeout: 252 seconds]
sivoais has joined #ruby
adgtl has quit [Remote host closed the connection]
EAK has quit [Ping timeout: 252 seconds]
lurch_ has joined #ruby
JDiPierro has joined #ruby
newbie22 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
__ht has joined #ruby
zacstewart has quit [Ping timeout: 240 seconds]
ych has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacstewart has joined #ruby
lubekpl has quit [Ping timeout: 260 seconds]
ziyadb has quit [Quit: Connection closed for inactivity]
Xeago has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
last_staff has joined #ruby
Abrin has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
__ht has quit [Client Quit]
malconis has joined #ruby
tuelz1 has quit [Quit: WeeChat 1.3]
despai has joined #ruby
malconis has quit [Remote host closed the connection]
mlehrer has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
amb77 has joined #ruby
JohnBat26 has joined #ruby
malconis has joined #ruby
chouhoulis has joined #ruby
Timba-as has quit [Read error: Connection reset by peer]
JohnBat26 has quit [Client Quit]
sivoais has quit [Ping timeout: 272 seconds]
Timba-as has joined #ruby
platzhirsch has left #ruby [#ruby]
IrishGringo has quit [Ping timeout: 252 seconds]
sivoais has joined #ruby
EAK has joined #ruby
krobzaur_ has joined #ruby
lessless has joined #ruby
ESpiney has joined #ruby
sftrabbit has joined #ruby
iamvery has joined #ruby
<AxonetBE_> how can I encrypt an emailadres to pass in an url and decrypt it after again?
aryaching has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
<jhass> AxonetBE_: could be small enough for just doing RSA
<jhass> though no shared database? might be easier and safer to just pass a token and fetch it from there
__ht has joined #ruby
nalaginrut has left #ruby ["离开"]
Toledo|gone has joined #ruby
EAK has quit [Ping timeout: 252 seconds]
adgtl has joined #ruby
sivoais has quit [Quit: leaving]
Jackneill has joined #ruby
bMalum has joined #ruby
aegis3121 has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
__ht has quit [Client Quit]
__ht has joined #ruby
blackmesa has joined #ruby
__ht has quit [Client Quit]
dsilfen has quit []
carella_ has quit [Read error: Connection timed out]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
p1k has quit [Ping timeout: 245 seconds]
kies^ has quit [Ping timeout: 264 seconds]
carella has joined #ruby
reppard has joined #ruby
failshell has joined #ruby
dlitvak_ has joined #ruby
bronson has joined #ruby
failshell has quit [Client Quit]
stannard has joined #ruby
geekbri has joined #ruby
bweston92 has joined #ruby
Xeago has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 264 seconds]
saneax is now known as saneax_AFK
__ht has joined #ruby
despai_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 256 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nobitanobi has quit [Ping timeout: 252 seconds]
JDiPierro has quit [Remote host closed the connection]
despai has quit [Ping timeout: 250 seconds]
__ht has quit [Client Quit]
Xeago has joined #ruby
__ht has joined #ruby
dlitvak_ has quit [Ping timeout: 252 seconds]
__ht has quit [Client Quit]
JDiPierro has joined #ruby
Macaveli has joined #ruby
dlitvak has joined #ruby
sankaber has joined #ruby
fmcgeough has joined #ruby
dexter__ has joined #ruby
jgt3 has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
northfurr has joined #ruby
dlitvak_ has joined #ruby
akem has joined #ruby
jgt3 has joined #ruby
__ht has joined #ruby
sankaber has quit [Remote host closed the connection]
CloCkWeRX has quit [Quit: Leaving.]
sankaber has joined #ruby
shinnya has joined #ruby
dlitvak has quit [Ping timeout: 252 seconds]
dopamean_ has quit [Ping timeout: 245 seconds]
__ht has quit [Client Quit]
<norc> Im prying into a rather convoluted binding. The pry prompt is 4500 characters long, making it a bit messy.
<norc> This is so sad. :(
hayden_ has joined #ruby
TomPeed has joined #ruby
Rodya_ has joined #ruby
shinnya has quit [Ping timeout: 256 seconds]
whippythellama has joined #ruby
Macaveli has quit [Ping timeout: 264 seconds]
northfurr has quit [Quit: northfurr]
__ht has joined #ruby
nofacade has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Brklyn has joined #ruby
atomical_ has joined #ruby
BTRE has joined #ruby
flughafen_ has quit [Ping timeout: 260 seconds]
rashmirathi has joined #ruby
jtzero has joined #ruby
__ht has quit [Client Quit]
huddy has quit [Quit: Connection closed for inactivity]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
B1n4r10 has joined #ruby
Meow-J has joined #ruby
atomical has quit [Ping timeout: 250 seconds]
babblebre has joined #ruby
karapetyan has joined #ruby
nofacade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nofacade has joined #ruby
cassianoleal has quit [Quit: Went to take a nap...]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
zerowaitstate has joined #ruby
__ht has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
lurch_ has quit [Quit: lurch_]
sandstrom has joined #ruby
mlehrer has quit [Ping timeout: 256 seconds]
kalopsian has quit [Ping timeout: 256 seconds]
zeroDivisible has joined #ruby
vifino has joined #ruby
kalopsian has joined #ruby
__ht has quit [Client Quit]
__ht has joined #ruby
Sucks has joined #ruby
karapetyan has quit [Remote host closed the connection]
frem has joined #ruby
ych has joined #ruby
atomical_ has quit [Ping timeout: 264 seconds]
despai_ is now known as despai
dopamean_ has joined #ruby
nettoweb has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
__ht has quit [Client Quit]
platzhirsch has joined #ruby
karapetyan has joined #ruby
sandstrom has joined #ruby
vifino has quit [Quit: Who turned this off?! D:<]
bkxd has joined #ruby
aegis312_ has joined #ruby
avril14th has joined #ruby
aegis3121 has quit [Read error: Connection reset by peer]
lubekpl has joined #ruby
__ht has joined #ruby
dlitvak has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
__ht has quit [Client Quit]
ht__ has joined #ruby
anisha has joined #ruby
dlitvak_ has quit [Ping timeout: 256 seconds]
IrishGringo has joined #ruby
ht__ has quit [Client Quit]
cassianoleal has joined #ruby
rashmirathi has quit [Ping timeout: 245 seconds]
despai has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
icbm has joined #ruby
norc has quit [Ping timeout: 252 seconds]
ropeney has joined #ruby
ht__ has joined #ruby
mlehrer has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
ych has quit [Quit: Textual IRC Client: www.textualapp.com]
kies^ has joined #ruby
jsrn has quit [Read error: Connection reset by peer]
trinaldi has quit [Read error: Connection reset by peer]
ht__ has quit [Client Quit]
despai has joined #ruby
cassianoleal has quit [Quit: Went to take a nap...]
sandstrom has quit [Quit: My computer has gone to sleep.]
ht__ has joined #ruby
vifino has joined #ruby
trinaldi has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
Jardayn has joined #ruby
akem has quit [Remote host closed the connection]
kies^ has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
snguyen has joined #ruby
momomomomo has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
dhollinger has joined #ruby
VeryBewitching has joined #ruby
ht__ has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
<VeryBewitching> Good morning folks.
amb77_ has joined #ruby
amb77 has quit [Ping timeout: 240 seconds]
amb77_ is now known as amb77
Guest74375 is now known as Affix
Affix has quit [Changing host]
Affix has joined #ruby
Snowy has quit [Remote host closed the connection]
reppard has quit [Quit: leaving]
dlitvak has quit [Remote host closed the connection]
skweek has joined #ruby
IrishGringo has quit [Ping timeout: 260 seconds]
Amnez777 has joined #ruby
<yorickpeterse> omg stop casting spells on us
Amnez777 has quit [Max SendQ exceeded]
Amnez777 has joined #ruby
Amnez777 has quit [Max SendQ exceeded]
ht__ has quit [Client Quit]
pandaant has quit [Remote host closed the connection]
ht__ has joined #ruby
dlitvak has joined #ruby
Amnez777 has joined #ruby
dlitvak has joined #ruby
baweaver has joined #ruby
ta has quit [Remote host closed the connection]
sftrabbit has quit [Quit: sftrabbit]
Amnez777 has quit [Changing host]
Amnez777 has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamvery has quit [Ping timeout: 250 seconds]
sftrabbit has joined #ruby
ht__ has quit [Client Quit]
nettoweb has joined #ruby
newbie22 has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
exadeci has quit [Quit: Connection closed for inactivity]
yardenbar has quit [Quit: Leaving]
sgambino has joined #ruby
ht__ has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
Guest38 has joined #ruby
ElFerna has quit [Ping timeout: 264 seconds]
kies^ has joined #ruby
newbie22 has quit [Client Quit]
ht__ has quit [Client Quit]
sandstrom has joined #ruby
karapetyan has quit [Remote host closed the connection]
cassianoleal has joined #ruby
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snguyen has joined #ruby
mary5030 has joined #ruby
aganov has quit [Quit: Leaving]
mary5030 has quit [Remote host closed the connection]
ht__ has joined #ruby
mary5030 has joined #ruby
snguyen has quit [Client Quit]
decoponio has joined #ruby
dlitvak has quit [Ping timeout: 264 seconds]
Rickmasta has joined #ruby
dlitvak has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tsuke has quit [Ping timeout: 240 seconds]
ht__ has quit [Client Quit]
<shevy> lol
amb77 has quit [Remote host closed the connection]
centrx has joined #ruby
lessless has quit [Ping timeout: 260 seconds]
amb77 has joined #ruby
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak_ has joined #ruby
snguyen has joined #ruby
dlitvak has quit [Ping timeout: 245 seconds]
m3phisto has joined #ruby
MaveonRemaes has joined #ruby
MaveonRemaes has quit [Client Quit]
bMalum has quit [Ping timeout: 250 seconds]
sergey_makagon has quit []
platzhirsch has left #ruby [#ruby]
sandstrom has quit [Quit: My computer has gone to sleep.]
snguyen has quit [Quit: Textual IRC Client: www.textualapp.com]
nettoweb has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
ht__ has joined #ruby
<yorickpeterse> VeryBewitching: are you a witch???!1!11
<yorickpeterse> (I'll stop now)
melter has joined #ruby
<VeryBewitching> Bewitching != Involvement with Covens
<VeryBewitching> Necessarily, anyway
iamvery has joined #ruby
nettoweb has quit [Client Quit]
william3 has quit [Remote host closed the connection]
sneakerhax has quit [Quit: Leaving]
mdw has joined #ruby
mhoungbo has quit [Ping timeout: 256 seconds]
twintail has quit [Remote host closed the connection]
kedare has quit [Quit: WeeChat 1.0.1]
william3 has joined #ruby
vondruch has quit [Ping timeout: 250 seconds]
twintail has joined #ruby
astrofog has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
Jackneill has quit [Quit: Leaving]
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
ht__ has joined #ruby
x77686d has joined #ruby
jackjackdripper has joined #ruby
rkazak has joined #ruby
kith_ is now known as kith
mpistone has joined #ruby
lurch_ has joined #ruby
brendan-_ has joined #ruby
barhum2013 has quit [Quit: barhum2013]
william3 has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
ht__ has quit [Client Quit]
uri_ has joined #ruby
bMalum has joined #ruby
m3phisto has quit []
karapetyan has joined #ruby
tomchap__ has joined #ruby
scepticulous has quit [Ping timeout: 260 seconds]
idefine has joined #ruby
aufi has quit [Ping timeout: 245 seconds]
lessless has joined #ruby
cschneid_ has joined #ruby
ht__ has joined #ruby
blackms has quit [Remote host closed the connection]
User458764 has joined #ruby
william3 has joined #ruby
cdg has joined #ruby
symm- has joined #ruby
Deck` has quit [Ping timeout: 248 seconds]
newbie22 has joined #ruby
Abrin has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
newbie22 has quit [Client Quit]
newbie22 has joined #ruby
ht__ has joined #ruby
ht__ has quit [Client Quit]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<shevy> a lying witch! BURN HER!!!
<lagweezle> But, how do we know she is a witch?
<lagweezle> She turned me into a newt!
<Burgestrand> Ask it to debug haskell, nobody can debug haskell, only witches.
konsolebox has quit [Quit: Leaving]
brendan-_ is now known as brendan-
hobodave has joined #ruby
imperator has joined #ruby
rkazak has quit [Ping timeout: 276 seconds]
volty has joined #ruby
momomomomo has quit [Quit: momomomomo]
hobodave_ has joined #ruby
celly has joined #ruby
Pupeno has quit [Quit: Leaving...]
infra-re_ has quit [Remote host closed the connection]
polishdub has joined #ruby
arthropododo has joined #ruby
sandstrom has joined #ruby
hobodave has quit [Ping timeout: 240 seconds]
einarj_ has quit [Remote host closed the connection]
celly has quit [Remote host closed the connection]
celly has joined #ruby
karapetyan has quit [Remote host closed the connection]
<yorickpeterse> lagweezle: we don't, it's a witch so they can change shape!
<yorickpeterse> let me get the cement blocks
jbrhbr has joined #ruby
imperator has left #ruby ["Leaving"]
adgtl has quit [Remote host closed the connection]
<shevy> the italian job
jgt3 has quit [Ping timeout: 240 seconds]
<yorickpeterse> Burgestrand: false, witches won't openly brag about Haskell being great because it would blow their cover
<yorickpeterse> so non witches must also be able to debug Haskell
<yorickpeterse> Though it certainly requires magic
<yorickpeterse> ( •_•) ( •_•)>⌐■-■ (⌐■_■)
newbie22 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
despai has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<lagweezle> yorickpeterse: Not sure if you realize, but that was a reference to Monty Python.
<yorickpeterse> did not realize
wldcordeiro has quit [Ping timeout: 245 seconds]
<lagweezle> Monty Python and the Holy Grail; scene where they are trying to prove a person is a witch. I can't say it's a GOOD movie, but it sure is a fun watch if you're into that humor type.
weemsledeux has joined #ruby
skade has joined #ruby
zacstewart has quit [Ping timeout: 250 seconds]
cassianoleal has quit [Quit: Went to take a nap...]
dlitvak_ has quit [Ping timeout: 264 seconds]
zacstewart has joined #ruby
<VeryBewitching> shevy: I would welcome fire, it's cold and damp outside today.
<VeryBewitching> Not my favourite combination.
chouhoul_ has joined #ruby
ziyadb has joined #ruby
<shevy> lagweezle I know the dialogue by heart!
<lagweezle> steam bath!
<VeryBewitching> My favourite Monty Python is "The Ministry of Silly Walks" sketch
jaiks has quit [Ping timeout: 252 seconds]
sgambino_ has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest26985 has quit [Ping timeout: 240 seconds]
frarwp has quit [Remote host closed the connection]
huyderman has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 260 seconds]
sgambino has quit [Ping timeout: 250 seconds]
lsmola has quit [Ping timeout: 240 seconds]
hobodave_ has quit [Quit: Computer has gone to sleep.]
Snowy has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
amb77 has left #ruby [#ruby]
SCHAAP137 has quit [Remote host closed the connection]
nofacade has quit [Read error: Connection reset by peer]
amclain has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
idefine has quit [Remote host closed the connection]
Snowy has quit [Client Quit]
synthroid has quit [Remote host closed the connection]
idefine has joined #ruby
dlitvak has joined #ruby
mfb2 has quit [Remote host closed the connection]
ramfjord has joined #ruby
aegis312_ has quit [Ping timeout: 256 seconds]
jgt3 has joined #ruby
x77686d has quit [Quit: x77686d]
zambini has joined #ruby
hobodave has joined #ruby
mfb2 has joined #ruby
dlitvak has quit [Ping timeout: 250 seconds]
joonty has quit [Ping timeout: 245 seconds]
Bloomer has joined #ruby
IrishGringo has joined #ruby
sepp2k has joined #ruby
kolup has joined #ruby
elifoster has joined #ruby
adgtl has joined #ruby
andikr has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 245 seconds]
shredding has quit [Ping timeout: 240 seconds]
sgambino_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sgambino has joined #ruby
sneakerhax has joined #ruby
tjohnson has joined #ruby
JDiPierro has quit [Remote host closed the connection]
adac has quit [Ping timeout: 248 seconds]
webopsx has joined #ruby
mark3 has quit [Remote host closed the connection]
william3 has quit [Remote host closed the connection]
yalue has joined #ruby
ElFerna has joined #ruby
william3 has joined #ruby
infra-red has joined #ruby
djbkd has joined #ruby
infra-re_ has joined #ruby
[Butch] has joined #ruby
william3 has quit [Ping timeout: 240 seconds]
jbrhbr has quit [Quit: Leaving.]
AxonetBE_ has quit [Quit: AxonetBE_]
Deck` has joined #ruby
infra-red has quit [Ping timeout: 264 seconds]
duckpuppy has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
infra-red has joined #ruby
wldcordeiro has joined #ruby
despai has joined #ruby
infra-re_ has quit [Ping timeout: 248 seconds]
symm- has joined #ruby
Deck` has quit [Ping timeout: 256 seconds]
Timba-as has quit [Quit: Be back later ...]
jas02 has quit [Quit: jas02]
kristofferR has joined #ruby
aryaching has quit []
ferr has joined #ruby
mdw has joined #ruby
kolup has quit [Ping timeout: 276 seconds]
KensoDev has quit []
acidrainfall has joined #ruby
IrishGringo has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<acidrainfall> Hey guys. I'd like to take user input, and if the user just presses enter, accept a default value. I'm struggling with this one.
<acidrainfall> A prompt like "Please specify instance(s) - defaults to 01"
ElFerna has quit [Ping timeout: 272 seconds]
<jhass> acidrainfall: use p input to look at what value you get in that case, check for that value and replace it with your default
jottr_ has joined #ruby
<acidrainfall> So if they just press enter, it takes 01 as its value. I thought maybe something like "es_instances = gets || '01'" but that didn't work
<acidrainfall> p input?
<jhass> p es_instances in your case
<acidrainfall> oh
<acidrainfall> I haven't heard of p
<jhass> it's short for puts es_instances.inspect
<acidrainfall> oh ok
<acidrainfall> so take the input, and add an unless under it
Gnut has joined #ruby
mdw has quit [Client Quit]
hayden_ has quit [Quit: Connection closed for inactivity]
<jhass> rather an if
jottr has quit [Ping timeout: 252 seconds]
adgtl has quit [Remote host closed the connection]
johnnyt has quit [Ping timeout: 276 seconds]
KensoDev has joined #ruby
<acidrainfall> yeah an if is better
<acidrainfall> thanks jhass that got it
<jhass> cool
<jhass> yw
lurch_ has quit [Quit: lurch_]
<volty> !gets.chomp.empty? || "01"
newbie22 has joined #ruby
synthroid has joined #ruby
<jhass> I prefer es_instances = "01" if es_instances.nil? || es_instances.chomp.empty? here
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> (guards against pressing ctrl+d too)
<shevy> yeah whenever the cat presses the keys
adgtl has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Gnut> Is there a good method for converting an entire hash (with some nested arrays) to symbol keys?
jgt3 has quit [Ping timeout: 240 seconds]
idefine has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sftrabbit has quit [Quit: sftrabbit]
jottr_ is now known as jottr
sgambino has joined #ruby
vondruch has joined #ruby
tilllt has joined #ruby
rakm has joined #ruby
baweaver has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
<acidrainfall> volty: that's what I was trying to do.
<acidrainfall> It was the ! that I didn't have I guess.
<shevy> Gnut do you have a small subset as example of your hash?
djbkd has quit [Ping timeout: 276 seconds]
<tilllt> hi, a beginner question… if a variable is returned, which begins like this: "#<Ffprober::Wrapper:0x007ffa491fde20 @json= … (lots of json follows)“ what typ of data is that and why the crc at the beginning? and how do i access the json part?
<volty> gnut: it should go like this h.inject({}) { |nh, pair| nh[pair[0].to_sym] = pair[1] ;nh } // then you have to check if the pair[1] is a hash and recurse on on it
weemsledeux has quit [Ping timeout: 250 seconds]
celly has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 245 seconds]
<acidrainfall> I'm starting to write all my admin scripts in ruby (because fuck bash), but the most experience I have is in bash, sorry for the equivalency questions
<volty> so you should enclose it in a def and call recursively (i guess your 'nested arrays' really meant 'nested hashes')
<acidrainfall> in bash I can expand a range with {01..20}, in ruby it's (01..20)
xxmphp has joined #ruby
<acidrainfall> same thing. I want to take user input, to allow a user to specify a list of hostnames (server-(01..20).location)
<acidrainfall> I figured that might just... work and stuff. But variable.to_a isn't happy.
<volty> i am going to write sysv-rc-conf in qtruby. (going but who knows when ....)
blaxter has quit [Quit: foo]
<shevy> you are the qtruby man
skade has quit [Quit: Computer has gone to sleep.]
Felix444 has joined #ruby
felixal has joined #ruby
<volty> shevy: absolutely. useful and funny
<shevy> acidrainfall yeah shell scripts annoyed me too, in particular when things become more complex/bigger
<acidrainfall> Bash is nice because when there isn't a built-in function, I can just call a program
<shevy> just simple things like calling a function with arguments
<acidrainfall> Using my entire OS for scripting.
<volty> acidrainfall: try to restate what you want to achieve
<shevy> why can't bash use something like: def foo(a,b,c)
<shevy> ruby can :)
<acidrainfall> Okay. like this: "Please specify your hostnames:" and accept an answer like "server-(01..20).place.com", which would then expand to an array server-01.place.com, server-02.place.com, etc
<volty> Array.new(20) { gets.chomp }
<Papierkorb> volty: he wants to expand that input, not get 20 different user inputs
<shevy> hehe
johnnyt has joined #ruby
Puffball has quit [Remote host closed the connection]
jbrhbr has joined #ruby
<volty> ah, I see :)
jordanm has joined #ruby
idefine has joined #ruby
skade has joined #ruby
sanguisdex has joined #ruby
adgtl has quit [Remote host closed the connection]
<acidrainfall> haha
adgtl has joined #ruby
<acidrainfall> What I want is *super* easy in bash, I feel like Ruby has to have some analog
<shevy> acidrainfall you can write a DSL that will interprete the above
zacstewa_ has joined #ruby
<acidrainfall> :(
zacstewart has quit [Ping timeout: 256 seconds]
<Papierkorb> acidrainfall: nothing OOTB, but also nothing that's not doable
celly has joined #ruby
<volty> acidrainfall: yes it has. have to think
celly has quit [Remote host closed the connection]
<acidrainfall> Maybe I should go about this another way
celly has joined #ruby
<shevy> Gnut hash.map {|key, value| {key.to_sym => value} }.first works ? I got back: x = hash.map {|key, value| {key.to_sym => value} }.first # => {:masters=>[{:address=>"127.0.0.1", :port=>"6379", :quorum=>2, :down_after_milliseconds=>30000, :unixsocket=>"/tmp/redis-sentinel.sock", :unixsocketperm=>"777", :can_failover=>"yes", :parallel_syncs=>1, :failover_timeout=>900000}]} ... I think that is the equivalent
<volty> Gnut: you have to check if the pair two is an array, and if so iterate over it calling recursively if the element is a hash
aegis3121 has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
<Papierkorb> acidrainfall: have a method, which does str.match and matches for stuff like {0..1}. catch the str before and after, and the a..b stuff too. Interpret the a..b stuff and map it to an array. then, to the same recursively until the regex no longer matches
chouhoul_ has quit [Remote host closed the connection]
peterevjan has joined #ruby
dionysus69 has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<acidrainfall> :|
<Papierkorb> the interpet phase is pretty much (lo..hi).map{|cur| "#{before}#{cur}#{after}" }
<acidrainfall> Yeah I think I'll rethink this
dionysus69 has joined #ruby
<acidrainfall> Maybe I should have a list of hosts already configured
skade has quit [Quit: Computer has gone to sleep.]
Puffball has joined #ruby
<Papierkorb> Or allow multiple arguments if it's a CLI tool
celly_ has joined #ruby
xxmphp has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
adgtl has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
celly has quit [Ping timeout: 240 seconds]
<acidrainfall> Multiple arguments isn't a problem for me
Meow-J has quit [Quit: Connection closed for inactivity]
dmolina has quit [Quit: Leaving.]
<acidrainfall> It's that I don't want to copypasta 20 hosts every time I run this
craysiii has joined #ruby
Puffball has quit [Remote host closed the connection]
<volty> (host.scan /\((\d+)\.\.(\d+)\)/).flatten.map(&:to_i)
mikecmpbll has joined #ruby
<Papierkorb> acidrainfall: well if they're arguments, you could just use your shells expansion
Mon_Ouie has quit [Ping timeout: 250 seconds]
peterevjan has quit [Ping timeout: 276 seconds]
<Papierkorb> volty: try this in your shell: echo a{1..4}b
<volty> with that one you get the range in an array, then have to split the host on (....)
<volty> Papierkorb: I am allergic to shell :)
TomyWork has quit [Ping timeout: 248 seconds]
<Papierkorb> I'm sorry for your loss
SCHAAP137 has joined #ruby
<volty> don't be sorry - that I'm living better in ruby
<shevy> hehehe
<eam> acidrainfall: I have a library specifically tailored to dealing with large ranges of hosts
Azulinho has quit [Ping timeout: 248 seconds]
Puffball has joined #ruby
<eam> there's a rubygem and everything
jackjackdripper has quit [Quit: Leaving.]
<eam> there's also a go verison https://github.com/square/grange
<eam> if you're doing a lot of stuff with large sets of hosts I recommend adopting this syntax
despai has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
<acidrainfall> eam: Well aren't you just wonderful <3
_joes_ has quit [Quit: Connection closed for inactivity]
<eam> we developed the syntax a looooong time ago in inktomi search, where we regularly had to deal with lists of thousands of nodes
cassianoleal has joined #ruby
<eam> it also incorporates set operations so you can do stuff like @these_hosts - appservers001..020.site.com - /databases/
blandflakes has joined #ruby
<eam> groups, clusters, regex filters, intersections, etc
<eam> and then embed that syntax into ruby, javascript, w/e so all your cli tools and webapps can speak it
jgt3 has joined #ruby
uri___ has joined #ruby
KensoDev has quit []
zeroDivisible has quit [Ping timeout: 256 seconds]
sftrabbit has joined #ruby
<acidrainfall> eam: wow
KensoDev has joined #ruby
StinkySteve has joined #ruby
nrsk_ has joined #ruby
<volty> exp = /\((\d+)\.\.(\d+)\)/; r = Range.new *(s.scan(exp)).flatten.map(&:to_i); ss = s.split(exp); r.map { |i| "#{ss[0]}#{"%02d" % i }#{ss[-1]}"}; ;
Deck` has joined #ruby
KensoDev has quit [Client Quit]
TomyLobo has joined #ruby
KensoDev has joined #ruby
ocbtec has quit [Ping timeout: 264 seconds]
uri_ has quit [Ping timeout: 264 seconds]
Meow-J has joined #ruby
nrsk has quit [Ping timeout: 240 seconds]
ocbtec has joined #ruby
<volty> >> s = "boom-(1..20).fr"; exp = /\((\d+)\.\.(\d+)\)/; r = Range.new *(s.scan(exp)).flatten.map(&:to_i); ss = s.split(exp); r.map { |i| "#{ss[0]}#{"%02d" % i }#{ss[-1]}"}; ;
<ruby[bot]> volty: # => ["boom-01.fr", "boom-02.fr", "boom-03.fr", "boom-04.fr", "boom-05.fr", "boom-06.fr", "boom-07.fr", " ...check link for more (https://eval.in/513311)
<eam> acidrainfall: so like, here's an example from using mssh, which uses the range library to accept sets of hosts to work on and also to compress the output https://gist.github.com/eam/545dc3e0a185259158b1
<eam> mssh is another rubygem
troulouliou_div2 has quit [Quit: Leaving]
dfockler has joined #ruby
<eam> what I'm doing there is ssh'ing to an arbitrary list of hosts (defined by the range expression) and bucketing each one based on a hash of the /etc/passwd file -- to find out that two of my hosts don't have a matching /etc/passwd file and probably need to be fixed
KensoDev has quit [Client Quit]
araujo has joined #ruby
KensoDev has joined #ruby
<acidrainfall> nice
hamed_r has quit [Quit: Leaving]
nrsk_ has quit [Quit: Bye]
<Ox0dea> >> "boom-(1..5).fr"[/\((\d+)\.\.(\d+)\)/]; ($1..$2).map { |x| "#$`#{x}#$'" } # volty
<ruby[bot]> Ox0dea: # => ["boom-1.fr", "boom-2.fr", "boom-3.fr", "boom-4.fr", "boom-5.fr"] (https://eval.in/513314)
ramfjord has joined #ruby
<volty> Ox0dea: yap. my first idea. but breaked to allow him to check for the bounds (let's suppose the user types 1..100000000000000000000000000000) :P
<volty> nice piece anyway, by a master
<Ox0dea> s/master/troll/
<Ox0dea> Unbracketed interpolation and everything!
<volty> ahah
karapetyan has joined #ruby
<pipework> Ox0dea: you are into some weird stuff, bud.
zacstewa_ has quit [Ping timeout: 250 seconds]
KensoDev_ has joined #ruby
dionysus69 has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
<Ox0dea> volty: This is what I hear every time you say "ah ah": https://www.youtube.com/watch?v=B-Wd-Q3F8KM
zacstewart has joined #ruby
zyzioziom has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
AlexJakeGreen has quit [Remote host closed the connection]
KensoDev has quit []
<volty> ah, the muppets, wonderful
karapetyan has joined #ruby
UtkarshRay has quit [Ping timeout: 252 seconds]
x77686d has joined #ruby
cassianoleal has quit [Quit: Off to the other side!]
elifoster has quit [Ping timeout: 272 seconds]
idefine has quit [Remote host closed the connection]
trinaldi has quit [Quit: WeeChat 1.5-dev]
zyzioziom has joined #ruby
ferr has quit [Quit: WeeChat 1.3]
<shevy> :P
idefine has joined #ruby
nerium has joined #ruby
JDiPierro has joined #ruby
duckpuppy has joined #ruby
jbrhbr has quit [Quit: Leaving.]
StinkySteve has quit [Ping timeout: 252 seconds]
idefine has quit [Remote host closed the connection]
krzkrz has quit [Read error: Connection reset by peer]
zambini has quit [Quit: Leaving.]
uri___ has quit [Quit: --]
at46 has joined #ruby
Zai00 has quit [Quit: Zai00]
at46_ has joined #ruby
roshanavand has quit [Remote host closed the connection]
mlehrer has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 256 seconds]
User458764 has joined #ruby
newbie22 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
pilne has joined #ruby
at46 has quit [Ping timeout: 252 seconds]
mostlybadfly has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mdw has joined #ruby
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zambini has joined #ruby
baweaver has joined #ruby
jbrhbr has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mfb2 has quit [Remote host closed the connection]
Azulinho has joined #ruby
saneax_AFK is now known as saneax
Timba-as has joined #ruby
idefine has joined #ruby
blandflakes has joined #ruby
mfb2 has joined #ruby
treehug88 has joined #ruby
Xeago has joined #ruby
djbkd has joined #ruby
atmosx has joined #ruby
idefine has quit [Remote host closed the connection]
visudo has joined #ruby
skade has joined #ruby
<VeryBewitching> Hanumanuh
aegis3121 has quit [Ping timeout: 240 seconds]
newbie22 has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
aegis3121 has joined #ruby
evidex has quit [Quit: leaving]
evidex has joined #ruby
ETdude has joined #ruby
jxs_ has joined #ruby
webopsx has joined #ruby
hobodave has joined #ruby
ElFerna has joined #ruby
<shevy> hanmac?
newbie22 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
chouhoul_ has joined #ruby
whathappens has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
chouhoulis has quit [Ping timeout: 250 seconds]
amb77 has joined #ruby
at46_ has quit [Remote host closed the connection]
at46 has joined #ruby
at46_ has joined #ruby
evidex has quit [Remote host closed the connection]
podman has joined #ruby
sanguisdex has quit [Ping timeout: 240 seconds]
geekbri has quit []
emilkarl has joined #ruby
duckpuppy has joined #ruby
idefine has joined #ruby
oetjenj has joined #ruby
at46 has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
Burgestrand has joined #ruby
baweaver has quit [Remote host closed the connection]
shadoi has joined #ruby
Timba-as has quit [Quit: Be back later ...]
ElFerna has quit [Ping timeout: 250 seconds]
uri_ has joined #ruby
ElFerna has joined #ruby
uri_ has quit [Client Quit]
barajasfab has joined #ruby
saneax is now known as saneax_AFK
krobzaur has joined #ruby
freerobby has joined #ruby
vl408 has left #ruby [#ruby]
mdw has quit [Ping timeout: 260 seconds]
moted has joined #ruby
Bloomer has quit [Remote host closed the connection]
amb77 has quit [Ping timeout: 264 seconds]
krobzaur_ has quit [Ping timeout: 248 seconds]
mfb2 has quit [Remote host closed the connection]
mfb2 has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
crime has joined #ruby
<crime> guys, I made it to NYC. I don't have a job writing sick ruby all day yet, but I made it here anyways and that counts for something
pwnd_nsfw has quit [Read error: Connection reset by peer]
amb77 has joined #ruby
dfockler has quit [Read error: Connection reset by peer]
pwnd_nsfw has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
blandflakes has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
anisha has quit [Quit: Leaving]
<shadoi> sick ruby is surely in your future.
newbie22 has joined #ruby
<crime> i know, just gotta get my foot in the door somewhere
jottr_ has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
<eam> syck ruby
whathappens has quit [Read error: Connection reset by peer]
Timba-as has joined #ruby
Lochez has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dreinull has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
idefine has quit [Remote host closed the connection]
<newbie22> Is there such a thing as ruby certifications
idefine has joined #ruby
d10n-work has joined #ruby
adac has joined #ruby
<tubbo> newbie22: no.
agent_white has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
YankNYC has joined #ruby
<YankNYC> hey everyone
<YankNYC> would someone like to help refactor this method
idefine has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 252 seconds]
<aegis3121> Looks like #map
<YankNYC> ahh ok
saneax_AFK is now known as saneax
moted has quit []
PedramT has joined #ruby
blandflakes has quit []
karapetyan has quit [Remote host closed the connection]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
saneax is now known as saneax_AFK
adgtl has joined #ruby
adgtl has quit [Remote host closed the connection]
PedramT has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
yqt has joined #ruby
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has joined #ruby
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
askhat has joined #ruby
lilvim has quit [Max SendQ exceeded]
askhat has quit [Client Quit]
lilvim has joined #ruby
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
uri_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
askhat has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
uri_ has quit [Client Quit]
uri_ has joined #ruby
uri_ has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
kirun has joined #ruby
harly has quit [Ping timeout: 272 seconds]
askhat has quit [Client Quit]
<arup_r> When you have an array ["Monday", "Tuesday", "Wednesday"] and how do you create [{:name=>"Monday"}, {:name=>"Tuesday"}, {:name=>"Wednesday"}] ? I did like a.map { |day| {name: day} } .. amy more clever way ?
<aegis3121> Seems right.
DoubleMalt has joined #ruby
<Ox0dea> YankNYC: https://eval.in/513328
newbie22 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<Ox0dea> Ignore the mojibake.
rhg135 has quit [Ping timeout: 256 seconds]
spooq has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Xeago has joined #ruby
askhat has joined #ruby
mdw has joined #ruby
<YankNYC> ahhhh word boundaries!
<YankNYC> you're the bestest
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
askhat has quit [Client Quit]
aegis3121 has quit [Ping timeout: 260 seconds]
Burgestrand has joined #ruby
aegis312_ has joined #ruby
askhat has joined #ruby
skade has joined #ruby
sivoais has joined #ruby
askhat has quit [Client Quit]
hahuang65 has quit [Ping timeout: 250 seconds]
<Ox0dea> Oh, wow. Since when does Google observe backslashes in queries?
Burgestrand has quit [Client Quit]
rhg135 has joined #ruby
askhat has joined #ruby
Sucks has quit [Remote host closed the connection]
<Ox0dea> But yeah, word boundaries; they're pretty neat.
<YankNYC> Ox0dea so is there a way with Regular expressions to target a with that begins with and ends with
<SCHAAP137> finally, my weather cinch bot is working properly, it's awesome
<YankNYC> is that what the word boundary is for?
Xeago has quit [Remote host closed the connection]
pdoherty has joined #ruby
FernandoBasso has joined #ruby
<crime> why wouldnt you use something like text.scan(/\w+/).select { |word| word.length == 5}
<crime> isnt that a bit more immediately obvious for most?
davedev24 has joined #ruby
Burgestrand has joined #ruby
rhg135 has quit [Client Quit]
<YankNYC> crime you don't even need to do that if you use word boundaries in your regular expression
<YankNYC> checkout Ox0dea's paste
sandstrom has quit [Quit: My computer has gone to sleep.]
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
<crime> I saw it
yokel has quit [Ping timeout: 276 seconds]
<crime> i guess I just prefer to offload that sort of thing to ruby rather than the regex
futilegames has joined #ruby
<YankNYC> funny on this page http://www.regular-expressions.info/refwordboundaries.html it doesn't show how to capture a and c
john2496 has joined #ruby
futilegames has quit [Client Quit]
rhg135 has joined #ruby
<Ox0dea> crime: \w matches underscore.
benlieb has joined #ruby
<crime> so?
yokel has joined #ruby
<crime> that block would need to match five of them
<john2496> anyone know how to execute a method defined in a string, and pass arguments to that method? eg. method_name = "SomeClass.the_method"; method_name.call("some argument");
<Ox0dea> Someone's not paying attention.
sivoais has quit [Ping timeout: 260 seconds]
<benlieb> I'm trying to get a hash of specific attributes that a rails model has. It feels verbose. Is there a better/native way to do this? attribs = {}; [:name, :email, :message, :message_type].each{|attr| attribs[attr] = s[attr]}
<crime> i just hate regex. no need to use any more than necessary
minimalism has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
davedev24 has joined #ruby
doublemalt_ has joined #ruby
sivoais has joined #ruby
Macaveli has joined #ruby
<Ox0dea> john2496: Sounds dangerous.
Macaveli has quit [Client Quit]
<Ox0dea> You want #const_get and #public_send, but not really.
at46_ has quit [Remote host closed the connection]
<YankNYC> Ox0dea can you help me refactor one more pls?
<john2496> Ox0dea: yea, it's a bit wonky - I'm trying to create a generic ActiveJob
<john2496> Ox0dea: Awesome, thank you
<Ox0dea> john2496: Godspeed. :)
yfeldblum has joined #ruby
hosttor has joined #ruby
e4xit has joined #ruby
jbrhbr has quit [Quit: Leaving.]
celly_ has quit [Remote host closed the connection]
DoubleMalt has quit [Ping timeout: 256 seconds]
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
amb77 has quit [Remote host closed the connection]
Cohedrin has joined #ruby
ldnunes has quit [Quit: Leaving]
amb77 has joined #ruby
<YankNYC> Ox0dea this helps a lot. I can get things to pass but I appreciate the help making it better. it's going into my notes <3
Musashi007 has joined #ruby
Cohedrin has quit [Max SendQ exceeded]
<Ox0dea> YankNYC: You want /\bun.+ing\b/.
Cohedrin has joined #ruby
<Ox0dea> /[un]{2}/ will match things like "uu", "nn", and "nu".
ETdude has quit [Quit: Page closed]
benlieb has quit [Quit: benlieb]
ta has joined #ruby
baweaver has joined #ruby
ETdude has joined #ruby
pawnbox has quit [Remote host closed the connection]
Zai00 has joined #ruby
<YankNYC> right
<YankNYC> uniting
dlitvak has joined #ruby
TomPeed has joined #ruby
<ETdude> how can I hide join/leave messages?
<YankNYC> because everything i find shows how to target either or but not AND. so i'm at a loss
terminalrecluse has joined #ruby
<crime> check your client settings ETdude
firstdayonthejob has joined #ruby
jackjackdripper1 has joined #ruby
<Ox0dea> YankNYC: Maybe it helps to think of AND as the default semantics.
<ETdude> <<<total noob
<Ox0dea> All parts have to match unless explicitly specified otherwise.
<YankNYC> oh ok
jackjackdripper has quit [Ping timeout: 240 seconds]
spider-mario has joined #ruby
jackjackdripper1 has quit [Client Quit]
sivoais has quit [Ping timeout: 260 seconds]
jackjackdripper has joined #ruby
jottr_ is now known as jottr
<Ox0dea> >> %w[union uniting ending unending].grep(/\bun.+ing\b/) # YankNYC
<ruby[bot]> Ox0dea: # => ["uniting", "unending"] (https://eval.in/513333)
<YankNYC> those word boundaries are awesome
sivoais has joined #ruby
pdoherty has quit [Ping timeout: 250 seconds]
baweaver has quit [Ping timeout: 240 seconds]
<YankNYC> i have some more examples to do so i'll use what you showed me. thanks
Musashi007 has quit [Quit: Musashi007]
nerium has quit [Quit: nerium]
ElFerna has quit [Ping timeout: 240 seconds]
<Ox0dea> Happy to help. :)
Mon_Ouie has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
<YankNYC> yay it all clicks. no need to be afraid of regex's lol ttyl
hobodave has quit [Quit: Computer has gone to sleep.]
benlieb has joined #ruby
synthroid has quit [Remote host closed the connection]
mhoungbo has joined #ruby
dlitvak has joined #ruby
benlieb has quit [Client Quit]
x77686d has quit [Quit: x77686d]
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
sandstrom has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
pilne has left #ruby ["Leaving!"]
idefine has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
crime has quit [Ping timeout: 252 seconds]
hobodave has joined #ruby
sivoais has quit [Ping timeout: 276 seconds]
symm- has quit [Quit: Leaving...]
sivoais has joined #ruby
warprobot has joined #ruby
warprobot has quit [Remote host closed the connection]
grn has joined #ruby
agentmeerkat has quit [Ping timeout: 245 seconds]
idefine_ has joined #ruby
infra-re_ has joined #ruby
dlitvak_ has joined #ruby
idefine has quit [Ping timeout: 264 seconds]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tubbo> YankNYC: rubular.com also helps you be less afraid of regex
infra-red has quit [Ping timeout: 252 seconds]
bronson_ has joined #ruby
<aegis312_> http://regexr.com/ is alrso opretty handy
bronson has quit [Read error: Connection reset by peer]
polishdub_ has joined #ruby
<adaedra> ?regex
ETdude has quit [Ping timeout: 252 seconds]
dlitvak has quit [Ping timeout: 245 seconds]
iszak_ has joined #ruby
astrobunny has joined #ruby
skyjumpe1 has joined #ruby
S01780_ has joined #ruby
ndrx42 has joined #ruby
mary5030_ has joined #ruby
sivoais has quit [Ping timeout: 245 seconds]
grn_ has joined #ruby
ryotarai_ has joined #ruby
sivoais has joined #ruby
tomphp has joined #ruby
ahuman_ has joined #ruby
Marc- has joined #ruby
ndrx42 has left #ruby [#ruby]
hinbody_ has joined #ruby
tarantul_ has joined #ruby
karapetyan has joined #ruby
bove_ has joined #ruby
NET||abu- has joined #ruby
astrofog has quit [Quit: Quite]
Ankhers_ has joined #ruby
pluralism has joined #ruby
infra-red has joined #ruby
raenk_ has joined #ruby
[Butch]_ has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
B1n4r10 has joined #ruby
xpt1 has joined #ruby
x77686d has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
<Ox0dea> "Regexes are encapsulated sequences of commands, loops, control flow, assertions, and exception handling."
chouhoul_ has quit [Remote host closed the connection]
<Ox0dea> It's Just Programming™
jackjackdripper1 has joined #ruby
mkosaki_ has joined #ruby
baweaver has joined #ruby
ltd has joined #ruby
pmarreck_ has joined #ruby
AdamMeghji_ has joined #ruby
Puffball_ has joined #ruby
chouhoulis has joined #ruby
Lloyd__ has joined #ruby
codecop has quit [Remote host closed the connection]
Ankhers_ is now known as Ankhers`
infra-re_ has quit [Ping timeout: 248 seconds]
urbanmonk has joined #ruby
apipkin_ has joined #ruby
srenatus_ has joined #ruby
arian0n_ has joined #ruby
grn has quit [*.net *.split]
hobodave has quit [*.net *.split]
jackjackdripper has quit [*.net *.split]
firstdayonthejob has quit [*.net *.split]
dreinull has quit [*.net *.split]
ramfjord has quit [*.net *.split]
TomyLobo has quit [*.net *.split]
Puffball has quit [*.net *.split]
Gnut has quit [*.net *.split]
[Butch] has quit [*.net *.split]
arthropododo has quit [*.net *.split]
polishdub has quit [*.net *.split]
mpistone has quit [*.net *.split]
john2496 has quit [*.net *.split]
mary5030 has quit [*.net *.split]
Brklyn has quit [*.net *.split]
sorah has quit [*.net *.split]
aibot_ has quit [*.net *.split]
gigetoo has quit [*.net *.split]
FooMunki has quit [*.net *.split]
srenatus has quit [*.net *.split]
c355e3b has quit [*.net *.split]
Hobbyboy has quit [*.net *.split]
haasn has quit [*.net *.split]
chipotle has quit [*.net *.split]
im0b has quit [*.net *.split]
xpt has quit [*.net *.split]
Lightsword has quit [*.net *.split]
tris has quit [*.net *.split]
pmarreck has quit [*.net *.split]
Lloyd has quit [*.net *.split]
apipkin has quit [*.net *.split]
Guest85414______ has quit [*.net *.split]
nullwarp has quit [*.net *.split]
flughafen has quit [*.net *.split]
CoderPuppy has quit [*.net *.split]
ryotarai has quit [*.net *.split]
arian0n has quit [*.net *.split]
heftig has quit [*.net *.split]
techietrash has quit [*.net *.split]
mkosaki has quit [*.net *.split]
philtr_ has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
gilesww has quit [*.net *.split]
Ankhers has quit [*.net *.split]
ltd_ has quit [*.net *.split]
ironcamel has quit [*.net *.split]
astrobun_ has quit [*.net *.split]
AdamMeghji has quit [*.net *.split]
bove has quit [*.net *.split]
hinbody has quit [*.net *.split]
S01780 has quit [*.net *.split]
Domaldel has quit [*.net *.split]
snapcase has quit [*.net *.split]
ddv has quit [*.net *.split]
Diabolik has quit [*.net *.split]
RealMarc has quit [*.net *.split]
matt_d has quit [*.net *.split]
im0b_ has joined #ruby
NET||abuse has quit [*.net *.split]
heidar has quit [*.net *.split]
Laaw has quit [*.net *.split]
iszak has quit [*.net *.split]
hplar has quit [*.net *.split]
raenk has quit [*.net *.split]
skyjumper has quit [*.net *.split]
knight_ has quit [*.net *.split]
ahuman has quit [*.net *.split]
tarantul has quit [*.net *.split]
ndrst has quit [*.net *.split]
[Butch]_ is now known as [Butch]
ryotarai_ is now known as ryotarai
Ankhers` is now known as Ankhers
TomyLobo has joined #ruby
arthropododo has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
terminalrecluse has joined #ruby
Guest85414______ has joined #ruby
Lloyd__ is now known as Lloyd
hobodave has joined #ruby
haasn has joined #ruby
im0b_ is now known as im0b
AdamMeghji_ is now known as AdamMeghji
chipotle has joined #ruby
ElFerna has joined #ruby
pmarreck_ is now known as pmarreck
Diabolik has joined #ruby
Domaldel has joined #ruby
7F1AA9JOM has joined #ruby
Gnut has joined #ruby
ramfjord has joined #ruby
mpistone has joined #ruby
Brklyn has joined #ruby
ddv has joined #ruby
7F1AA9CTD has joined #ruby
Lightsword has joined #ruby
nullwarp has joined #ruby
tris has joined #ruby
snapcase has joined #ruby
c355e3b has joined #ruby
gilesww has joined #ruby
sorah has joined #ruby
hplar has joined #ruby
Laaw has joined #ruby
ironcamel has joined #ruby
ndrst has joined #ruby
FooMunki has joined #ruby
flughafen has joined #ruby
techietrash has joined #ruby
Sou|cutter has joined #ruby
CoderPuppy has joined #ruby
srenatus_ is now known as srenatus
c355e3b has quit [Max SendQ exceeded]
mpistone has quit [Max SendQ exceeded]
FooMunki has quit [Max SendQ exceeded]
techietrash has quit [Max SendQ exceeded]
Diabolik has quit [Max SendQ exceeded]
tris has quit [Max SendQ exceeded]
gilesww has quit [Max SendQ exceeded]
7F1AA9JOM has quit [Max SendQ exceeded]
Laaw has quit [Max SendQ exceeded]
hplar has quit [Max SendQ exceeded]
FooMunki_ has joined #ruby
Brklyn_ has joined #ruby
hinbody_ is now known as hinbody
apipkin_ is now known as apipkin
Brklyn has quit [Ping timeout: 250 seconds]
7F1AA9CTD has quit [Ping timeout: 250 seconds]
nullwarp has quit [Ping timeout: 250 seconds]
ironcamel has quit [Ping timeout: 250 seconds]
philtr has joined #ruby
abra0 has joined #ruby
heftig has joined #ruby
Hobbyboy has joined #ruby
Gnut has quit [Ping timeout: 250 seconds]
Sou|cutter has quit [Ping timeout: 250 seconds]
snapcase has quit [Ping timeout: 250 seconds]
c355e3b has joined #ruby
Diabolik has joined #ruby
Diabolik has quit [Excess Flood]
bove_ is now known as bove
aibot_ has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
flughafen has quit [Ping timeout: 250 seconds]
CoderPuppy has quit [Ping timeout: 250 seconds]
knight_ has joined #ruby
mpistone has joined #ruby
Diabolik has joined #ruby
Diabolik has quit [Excess Flood]
ramfjord has joined #ruby
sivoais has quit [Ping timeout: 264 seconds]
ironcamel has joined #ruby
Gnut has joined #ruby
Diabolik has joined #ruby
gigetoo has joined #ruby
sivoais has joined #ruby
heidar has joined #ruby
aegis312_ has quit [Quit: Textual IRC Client: www.textualapp.com]
urbanmonk has quit [Read error: Connection reset by peer]
hosttor has quit [Read error: Connection reset by peer]
matt_d has joined #ruby
cfa6rtx8 has joined #ruby
hosttor has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aegis3121 has joined #ruby
nullwarp has joined #ruby
Laaw has joined #ruby
hosttor has quit [Remote host closed the connection]
cpup has joined #ruby
techietrash has joined #ruby
tris has joined #ruby
whathappens has joined #ruby
chouhoul_ has joined #ruby
test` has joined #ruby
test` has quit [Remote host closed the connection]
sivoais has quit [Quit: leaving]
agent_white has quit [Ping timeout: 240 seconds]
juddey has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
mdw has quit [Ping timeout: 245 seconds]
firstdayonthejob has joined #ruby
hxegon is now known as hxegon_AFK
zyzioziom has quit [Quit: zyzioziom]
mdw has joined #ruby
mfb2 has quit [Remote host closed the connection]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
Pumukel has joined #ruby
djbkd has joined #ruby
gilesww has joined #ruby
tomphp has joined #ruby
Sou|cutter has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
zeroDivisible has joined #ruby
agent_white has joined #ruby
dlitvak has joined #ruby
tilllt has quit [Quit: tilllt]
Azulinho has quit [Quit: Azulinho]
djbkd has quit [Ping timeout: 248 seconds]
hxegon_AFK is now known as hxegon
Azulinho has joined #ruby
agentmeerkat has joined #ruby
dlitvak_ has quit [Ping timeout: 252 seconds]
Nanuq has joined #ruby
blackgoat has joined #ruby
moeabdol has joined #ruby
djbkd has joined #ruby
ElFerna has quit [Ping timeout: 240 seconds]
vF3hNGxc47h8 has joined #ruby
zambini has quit [Quit: Leaving.]
astrofog has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
tomphp has joined #ruby
<YankNYC> so i can't get this expression to work without or https://gist.github.com/genericlady/4e125a65c2109a46c9f0
<YankNYC> so Ox0dea you explained regular expression automatically use and. so when i take out the pipe it won't match. so i don't get it.
<YankNYC> the word boundaries aren't necessary even in this case right?
casadei has joined #ruby
<Ox0dea> YankNYC: It's unclear what you're trying to match there.
synthroid has joined #ruby
jtzero has quit [Read error: Connection reset by peer]
<YankNYC> i can make it clear
<YankNYC> let me run the test and show you
chouhoul_ has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<centrx> "the beginning and the end" obviously
atmosx has quit [Quit: computer went to sleep...]
hahuang65 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<shevy> a wheel!
AlexRussia has joined #ruby
infra-red has quit [Remote host closed the connection]
<centrx> the whole string shebang
<YankNYC> mmm no
synthroid has quit [Client Quit]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jtzero1 has joined #ruby
askhat has quit [Read error: No route to host]
wldcordeiro has quit [Ping timeout: 245 seconds]
<YankNYC> maybe my only choice is using to evaluations with two separate regular expressions
<YankNYC> err two evaluations
<Mon_Ouie> /\A[A-Z].+\.\z/
<Mon_Ouie> (and just replace \. with a character class for all the punctuation symbols you care about)
<Ox0dea> YankNYC: ^ Still "AND" semantics.
<Ox0dea> Match a capital letter at the beginning AND then anything else AND then punctuation at the end.
Shaboum has quit [Ping timeout: 260 seconds]
webopsx has joined #ruby
<YankNYC> ahhhhh
<YankNYC> i get it
nerium has joined #ruby
yalue has quit [Quit: return 0;]
bluOxigen_ has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
aegis3121 has quit [Quit: Textual IRC Client: www.textualapp.com]
Timba-as has quit [Quit: Be back later ...]
acidrainfall has quit [Ping timeout: 245 seconds]
crank1988 has joined #ruby
aegis3121 has joined #ruby
Toledo|gone has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
terminalrecluse has joined #ruby
acidrainfall has joined #ruby
urbanmonk has joined #ruby
FooMunki_ has quit [Quit: FooMunki_]
flughafen has joined #ruby
FooMunki has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.4]
<YankNYC> wow this is really hard
bluOxigen_ has quit [Ping timeout: 260 seconds]
bluOxigen has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mdw has quit [Quit: Sleeping Zzzzz]
ta_ has joined #ruby
hahuang65 has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 240 seconds]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jbrhbr has joined #ruby
newbie has joined #ruby
newbie is now known as Guest35482
tomphp has joined #ruby
TomyLobo has quit [Disconnected by services]
TomyLobo has joined #ruby
ElFerna has joined #ruby
aegis3121 has quit [Ping timeout: 276 seconds]
karapetyan has joined #ruby
tjohnson has quit [Ping timeout: 240 seconds]
zerowaitstate has quit [Ping timeout: 240 seconds]
agentmeerkat has quit [Ping timeout: 240 seconds]
Lloyd has quit [Ping timeout: 240 seconds]
yqt has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
aegis3121 has joined #ruby
tjohnson has joined #ruby
zipkid has quit [Ping timeout: 240 seconds]
Lloyd has joined #ruby
zerowaitstate has joined #ruby
IanMalcolm has quit [Max SendQ exceeded]
fmcgeough has quit [Quit: fmcgeough]
IanMalcolm has joined #ruby
dlitvak has joined #ruby
Aviio has joined #ruby
zipkid has joined #ruby
IanMalcolm has quit [Max SendQ exceeded]
jxs_ has quit [Remote host closed the connection]
elifoster has joined #ruby
IanMalcolm has joined #ruby
skweek has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
exadeci has joined #ruby
Felix444 has quit [Ping timeout: 245 seconds]
urbanmonk has quit [Quit: urbanmonk]
karapetyan has quit [Ping timeout: 240 seconds]
<YankNYC> here is the expression that worked \b\A[A-Z].+[!?.]$
<YankNYC> Thank you for the help today
gambl0re has quit [Ping timeout: 250 seconds]
pluralism has quit [Quit: Leaving]
newbie22 has joined #ruby
newbie22 has quit [Max SendQ exceeded]
dlitvak_ has joined #ruby
newbie22 has joined #ruby
skweek has quit [Read error: Connection reset by peer]
gambl0re has joined #ruby
skweek has joined #ruby
<Aviio> Hi all
duckpuppy has quit [Ping timeout: 276 seconds]
wldcordeiro has joined #ruby
dlitvak has quit [Ping timeout: 245 seconds]
Rickmasta has joined #ruby
<apeiros> \b\A[A-Z] seems to have redundancy. \b is probably irrelevant there.
trinaldi has joined #ruby
<apeiros> hi Aviio
Timba-as has joined #ruby
celly has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
agentmeerkat has joined #ruby
ElFerna has quit [Ping timeout: 250 seconds]
whathappens has quit [Remote host closed the connection]
<Ox0dea> I feel like /$^/ should raise Errno::EDOOFUS.
ElFerna has joined #ruby
Rodya_ has quit [Remote host closed the connection]
skweek has quit [Remote host closed the connection]
<YankNYC> This is the resulting code i'll try without \b but there might be an edge case. !!text.match(/\b\A[A-Z].+[!?.]$/)
Felix444 has joined #ruby
<YankNYC> is that an expensive way of doing it? because isn't it creating a match object
grn_ has quit []
skweek has joined #ruby
<YankNYC> @apeiros good call ty
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> It's more expensive than #=~, which just returns an index or `nil`.
<Mon_Ouie> You can just use =~ instead of match if you only care about whether or not the string is matched (I don't know if it's actually slower)
Rodya_ has joined #ruby
<YankNYC> Mon_Ouie merci', I tried that but maybe i'm grouping it wrong it's not passing
arup_r has quit []
<YankNYC> got it
dlitvak has joined #ruby
agentmeerkat has quit [Ping timeout: 240 seconds]
<apeiros> Ox0dea: "it looks like you're trying to anchor your regex, do you want me to help you with it?"
platzhirsch has joined #ruby
<YankNYC> IRC, best place to find smart people
<YankNYC> !!text.match(/\b\A[A-Z].+[!?.]$/)
<apeiros> text !~ /regex/
<YankNYC> !!(text =~ /\A[A-Z].+[!?.]$/)
<bougyman> FFFF/23F
<YankNYC> srry
ElFerna has quit [Ping timeout: 248 seconds]
despai has joined #ruby
kalopsian has quit [Ping timeout: 260 seconds]
<Ox0dea> bougyman: It's prime!
vagnerd_2 has quit [Quit: Leaving]
<bougyman> don't mention "Prime", please.
* bougyman in a bit of amazon hell atm
<eam> they're doing ATMs now?
dlitvak_ has quit [Ping timeout: 276 seconds]
<bougyman> I wouldn't be surprised.
last_staff has quit [Quit: last_staff]
skweek has quit [Ping timeout: 276 seconds]
peterevjan has joined #ruby
stevemackinnon has joined #ruby
<Ox0dea> eam: They're doing bookstores.
<eam> you do what you are
skweek has joined #ruby
agent_white has quit [Quit: brb]
peterevjan has quit [Remote host closed the connection]
zambini has joined #ruby
roshanavand has joined #ruby
pawnbox has joined #ruby
adac has quit [Ping timeout: 264 seconds]
x77686d has quit [Quit: x77686d]
lemur has joined #ruby
kalopsian has joined #ruby
JDiPierro has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 240 seconds]
ocbtec has quit [Quit: leaving]
pawnbox has quit [Ping timeout: 240 seconds]
lemur has quit [Ping timeout: 260 seconds]
<shevy> you eat what you do
ESpiney has quit [Ping timeout: 276 seconds]
<eam> you do what you eat!
B1n4r10 has quit [Ping timeout: 240 seconds]
flori has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
kirillzh has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
<Ox0dea> You eat what you are.
idefine_ has quit [Remote host closed the connection]
VeryBewitching has quit [Quit: Konversation terminated!]
<hxegon> glanced over here and thought I was looking at markov chain output :D
<shevy> haha
idefine has joined #ruby
<Ox0dea> "Thinking meat! You're asking me to believe in thinking meat!"
<eam> hxegon: I mean, you may well be (see earlier about how we're robots)
despai_ has joined #ruby
<Ox0dea> Meaty robots!
<eam> mobots
<Ox0dea> Meat moot.
roshanavand has joined #ruby
<eam> >> require 'meat' rescue 'sillycon is fine too'
<hxegon> Some choice output after pointing it at the navy seal copypasta: "you could have over the face of which has never been seen before on al-quadea, and your ip is being traced right now you're paying the top of which has never been seen before on this earth, mark my secret network of the fuck did you could have access to its full extent to me over seven hundred ways, and i will use it to its full extent to"...
nerium has quit [Quit: nerium]
x77686d has joined #ruby
mary5030_ has quit [Remote host closed the connection]
<shevy> my secret network of the fuck?!
<Ox0dea> So good.
dlitvak has quit [Remote host closed the connection]
<hxegon> 'you could have access to its full extent, to me over 700 ways" *blushes*
celly has quit [Remote host closed the connection]
despai has quit [Ping timeout: 260 seconds]
<Ox0dea> Hey, what's the cleanest way to get a mutable "view" into a String?
<eam> mutable view howso
<kaleido> for the noobs, define mutable
<Ox0dea> `str[3, 3].upcase!` != `str[3, 3] = str[3, 3].upcase`, and it's making me 0x5adface.
lubekpl has quit [Ping timeout: 248 seconds]
idefine has quit [Ping timeout: 245 seconds]
<kaleido> <-- noob
<hxegon> kaleido changable, descructable
<kaleido> thanks
<shevy> "He big in nothing, important in good elephant"
idefine has joined #ruby
<hxegon> R2, do you is fucking 0.0.
decoponio has quit [Quit: Leaving...]
<eam> Ox0dea: don't think it's possible, is it? String methods would need to essentially create a partially delegated String object
<Ox0dea> eam: Slices could certainly be referential, but that'd probably be bad.
<shevy> hxegon hehe... Yoda: "Pregnancy? Pregnancy?"
ramfjord has quit [Ping timeout: 256 seconds]
jtzero1 has left #ruby [#ruby]
<eam> impossible in the sense of "well, you can vi string.c"
<eam> ruby doesn't have slices, does it?
<eam> [] returns a new String
<Ox0dea> In the sense that #[] is an alias for #slice, sure it does.
<eam> I mean #slice isn't a slice in the rust sense
<hxegon> "They want to know him at fuck" Ok, grandpa, eat your pudding and put down the lightsaber
<eam> it's a String constructor
<Ox0dea> Right, but those are the semantics I'm looking for just now.
newbie22 has quit [Quit: Leaving]
<Ox0dea> I just wondered whether there was some clever hackery to be applied.
<eam> I think you'll need to implement your own methods on String
<Ox0dea> `class View`, it is! :(
sandstrom has joined #ruby
Timba-as has quit [Quit: Be back later ...]
casadei has quit [Remote host closed the connection]
jgt4 has joined #ruby
Pumukel has quit [Ping timeout: 245 seconds]
sgambino has joined #ruby
donske has joined #ruby
krobzaur has quit [Ping timeout: 250 seconds]
sgambino has quit [Client Quit]
<Mon_Ouie> String#[] is already copy-on-write, just remove all the copies before writes in string methods and enjoy the mayhem that causes :p
nerium has joined #ruby
doublemalt_ has quit [Remote host closed the connection]
harly has joined #ruby
zenlot1 has joined #ruby
sandstrom has quit [Client Quit]
<eam> mad cow disease
zenlot has quit [Ping timeout: 245 seconds]
jgt3 has quit [Ping timeout: 245 seconds]
<Aviio> is it possible to test output to console using minitest?
<Ox0dea> Aviio: StringIO.
ChameleonSix has joined #ruby
vdamewood has quit [Quit: Life beckons.]
peterevjan has joined #ruby
<Mon_Ouie> assert_output
ChameleonSix has left #ruby [#ruby]
<Ox0dea> Oh, right.
<Ox0dea> Aviio: -> { your thing }.must_output "something"
Contigi has joined #ruby
polishdub_ has quit [Quit: Leaving]
pawnbox has joined #ruby
roshanavand has quit [Remote host closed the connection]
go|dfish has joined #ruby
<despai_> hello
<despai_> anybody has a link that explains how certain ActiveRecord models can be shared between applications?
vF3hNGxc47h8 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<despai_> Like for example you have Payment, Invoice, InvoiceItems. You don't want to rewrite and maintain the same logic across different apps
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
JDiPierro has joined #ruby
pawnbox has quit [Ping timeout: 245 seconds]
djbkd has quit [Remote host closed the connection]
<hxegon> ?rails despai_
<ruby[bot]> despai_: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<despai_> I'm not using rails
<Aviio> Ox0dea + Mon_0uie: thanks, getting some undefined method error atm
yfeldblum has joined #ruby
<despai_> I'm using ActiveRecord alone
<hxegon> despai_ sorry, we get rails people a lot :P
travisthenavi has joined #ruby
<despai_> :?
<despai_> no, ActiveRecord is an ORM that you can use in rails or in any other platform
<Mon_Ouie> I don't know about ActiveRecord specifically, but why not just put your model classes in a gem, on which your three applications can depend?
travisthenavi has quit [Client Quit]
travisthenavi has joined #ruby
travisthenavi has quit [Client Quit]
yasha0x80 has joined #ruby
ramfjord has joined #ruby
JDiPierro has quit [Ping timeout: 260 seconds]
travisthenavi has joined #ruby
travisthenavi has quit [Client Quit]
Timba-as has joined #ruby
travisthenavi has joined #ruby
travisthenavi has quit [Client Quit]
hplar has joined #ruby
travisthenavi has joined #ruby
ruby-lang352 has joined #ruby
travisthenavi has quit [Client Quit]
roshanavand has joined #ruby
travisthenavi has joined #ruby
solocshaw has joined #ruby
Timba-as has quit [Client Quit]
peterevjan has quit [Remote host closed the connection]
eo has joined #ruby
Mon_Ouie has quit [Ping timeout: 248 seconds]
My_Hearing has joined #ruby
travisthenavi has quit [Client Quit]
<despai_> good idea
travisthenavi has joined #ruby
<despai_> lets try
travisthenavi has quit [Read error: Connection reset by peer]
<shevy> is .chars faster than .split(//) on a string?
travisthenavi has joined #ruby
mwlang has joined #ruby
travisthenavi has quit [Client Quit]
eo has quit [Client Quit]
skweek has quit [Ping timeout: 250 seconds]
travisthenavi has joined #ruby
juddey has joined #ruby
djbkd has joined #ruby
travisthenavi has quit [Client Quit]
dlitvak has joined #ruby
travisthenavi has joined #ruby
roshanavand has quit [Ping timeout: 245 seconds]
rodfersou has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Deck` has quit [Ping timeout: 240 seconds]
mhoungbo has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
<Aviio> huh...
<Aviio> assert_output(/There is 1 site defined in the sites config/) {@sut.count_sites(sites_hash)}
karapetyan has joined #ruby
<Aviio> why does this come across as 2 assertions?
dlitvak has quit [Ping timeout: 240 seconds]
ruby-lang352 has quit [Quit: Page closed]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has quit [Ping timeout: 240 seconds]
william3 has joined #ruby
at46 has joined #ruby
kies^ has quit [Ping timeout: 248 seconds]
<Ox0dea> shevy: Of course.
<shevy> yay!
<shevy> I shall purge all instances of .split(//)
Zai00 has quit [Ping timeout: 260 seconds]
<Ox0dea> Yay!
podman has quit [Quit: Connection closed for inactivity]
<Ox0dea> Aviio: You're asserting that it does in fact produce output and that the output matches your expectation.
<Aviio> ahh ok
<Aviio> Ox0dea: thanks
CloCkWeRX has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
william3 has quit [Remote host closed the connection]
<Ox0dea> Aviio: Sure thing. :)
william3 has joined #ruby
wolffles has joined #ruby
Abrin2 has joined #ruby
at46 has quit [Ping timeout: 252 seconds]
at46 has joined #ruby
Abrin has quit [Ping timeout: 240 seconds]
icbm has quit [Quit: Computer sleeping]
at46 has quit [Remote host closed the connection]
mhoungbo has joined #ruby
peterevjan has joined #ruby
mhoungbo has quit [Read error: Connection reset by peer]
sanguisdex has joined #ruby
despai_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hobodave has quit [Ping timeout: 256 seconds]
Zai00 has joined #ruby
<wolffles> trying to change text in a file the text are certain numbers need to add 1000 to numbers
<wolffles> example https://eval.in/513372
idefine has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 252 seconds]
yfeldblu_ has joined #ruby
peterevjan has quit [Ping timeout: 250 seconds]
<Aviio> does it have to do it in one line?
<wolffles> no
srenatus has quit [Quit: Connection closed for inactivity]
idefine has joined #ruby
Azulinho has quit [Read error: Connection reset by peer]
<My_Hearing> You want String#gsub
My_Hearing is now known as Mon_Ouie
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
zambini has quit [Quit: Leaving.]
Azulinho has joined #ruby
Aviio has quit []
Mekkis has joined #ruby
<wolffles> how do i gsub multiple numbers with a block?
Guest84191 has quit [Quit: WeeChat 1.3]
baweaver has joined #ruby
<wolffles> i cant find out the arguments it takes
funnel has quit [Ping timeout: 240 seconds]
idefine has quit [Remote host closed the connection]
FernandoBasso has quit [Quit: Leaving]
funnel has joined #ruby
<volty> >> string = "this 1 is confusing me, please help me 911 to 1911".gsub(/\d\d+/) { |s| (s.to_i + 1000).to_s }
<ruby[bot]> volty: # => "this 1 is confusing me, please help me 1911 to 2911" (https://eval.in/513375)
<volty> >> string = "this 1 is confusing me, please help me 911 to 1911".gsub(/\d\d+/) { |s| (s.to_i + 1000) }
solocshaw has quit [Ping timeout: 260 seconds]
<ruby[bot]> volty: # => "this 1 is confusing me, please help me 1911 to 2911" (https://eval.in/513377)
yasha0x80 has quit [Quit: Textual IRC Client: www.textualapp.com]
dlitvak has joined #ruby
<wolffles> oh wow
idefine has joined #ruby
baweaver has quit [Remote host closed the connection]
<wolffles> nice, question what does (/\d\d+/) mean. i know that d is a single digit and d+ is the whole number but what does it mean together?
pdoherty has joined #ruby
baweaver has joined #ruby
<volty> at least 2 digits
<wolffles> make sense now
<havenwood> wolffles: \d{2,}
<volty> yap, I missed that
<wolffles> so if i needed at least 3 it would be (/\d\d\d+/)?
<havenwood> wolffles: \d{3,}
<volty> as havenwood said
jinie has joined #ruby
dhollinger has quit [Quit: WeeChat 1.4]
<wolffles> ohh
mikeiniowa has joined #ruby
<volty> but if you prefer something exotic you can #{'\d' * 3 } :)
dlitvak has quit [Ping timeout: 250 seconds]
<wolffles> why the comma behind 3 can it take another argument
truenito has joined #ruby
<havenwood> wolffles: the maximum number of digits
<Mon_Ouie> the maximum amount of repitions
<volty> it's an open range
radgeRayden_ has quit [Quit: Leaving]
<wolffles> ah thanks :]
amb77 has left #ruby [#ruby]
<shevy> the coding waffles
<havenwood> wolffles: or say zero up to 3 digits max: \d{,3}
<wolffles> hi shevy how are ya
<havenwood> wolffles: exactly 3: \d{3}
<shevy> wolffles studying for chemistry! it's very boring
devbug has joined #ruby
<wolffles> noted
<wolffles> anatomy is much for exciting
<havenwood> wolffles: cheat sheet: http://rubular.com
Nanuq has quit [Ping timeout: 264 seconds]
solars has quit [Ping timeout: 260 seconds]
Azure has quit [Ping timeout: 240 seconds]
peterevjan has joined #ruby
j`ey has joined #ruby
at46_ has joined #ruby
zambini has joined #ruby
<j`ey> Im getting "NoMethodError: undefined method empty?' for #<URI::HTTPS.." when running "Net::HTTP::Post.new login_uri"
ropeney has joined #ruby
<j`ey> this.. was definitely working, but seems to have stopped working
SCHAAP137 has quit [Remote host closed the connection]
<j`ey> aka it was working, my program stopped, I started it again and now I get this error ^
rodfersou has quit [Quit: leaving]
<zerowaitstate> wolffles: I think anatomy being exciting is largely dependent on the subject under study
<j`ey> woops, wrong ruby version
j`ey has left #ruby [#ruby]
TomPeed has joined #ruby
jbrhbr has quit [Quit: Leaving.]
BTRE has quit [Ping timeout: 248 seconds]
<wolffles> very true but then again i only study the fun parts of the subject
Azure has joined #ruby
william3 has quit [Remote host closed the connection]
<volty> who has ubuntu here ?
zerowaitstate has quit [Quit: leaving]
astrofog has quit [Quit: Quite]
<havenwood> volty: is it contagious?
darkf has quit [Quit: Leaving]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<volty> havenwood: tired today, few minutes ago I did chmod o+r * /
<volty> if smb can kindly post an ls -l /
<havenwood> volty: i'm tired too!
TomPeed has quit [Ping timeout: 240 seconds]
<eam> still running yggdrasil
kirun has quit [Remote host closed the connection]
Tristan-Speccy has joined #ruby
Tristan-Speccy is now known as Guest18308
Nanuq has joined #ruby
duckpuppy has joined #ruby
<baweaver> eam: branching out?
Azure|dc has joined #ruby
Azure has quit [Ping timeout: 252 seconds]
ur5us has quit [Remote host closed the connection]
pantato has joined #ruby
duckpuppy has quit [Ping timeout: 245 seconds]
aegis3121 has quit [Ping timeout: 248 seconds]
BTRE has joined #ruby
peterevjan has quit [Remote host closed the connection]
<Ox0dea> volty: http://jslinux.org/
jbrhbr has joined #ruby
cfa6rtx8 has quit [Quit: Leaving]
<Ox0dea> It's missing /srv, but it should suffice.