brent__ has quit [Remote host closed the connection]
AnoHito has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 248 seconds]
AnoHito has joined #ruby
nesoi has joined #ruby
brent__ has joined #ruby
rundor has quit [Remote host closed the connection]
cagomez has quit [Ping timeout: 248 seconds]
rundor has joined #ruby
brent__ has quit [Remote host closed the connection]
AnoHito_ has quit [Ping timeout: 240 seconds]
AnoHito_ has joined #ruby
gix has quit [Quit: Client exiting]
gavxn has joined #ruby
<gavxn>
Hello!
AnoHito has quit [Ping timeout: 260 seconds]
<gavxn>
Are there any Windows Ruby programmers here?
rundor has quit [Ping timeout: 255 seconds]
AnoHito has joined #ruby
guardianx has joined #ruby
AnoHito_ has quit [Ping timeout: 255 seconds]
sarmiena_ has joined #ruby
<sarmiena_>
trying to track down a tricky bug and think it would be useful to see the a stacktrace of objects that invoked the current method i’m in. is this possible?
TomyLobo has quit [Ping timeout: 255 seconds]
HumbleBee has joined #ruby
zwild has joined #ruby
mim1k has joined #ruby
gix has joined #ruby
milardovich has quit [Remote host closed the connection]
zwild has quit [Remote host closed the connection]
AnoHito_ has joined #ruby
AnoHito has quit [Ping timeout: 260 seconds]
<nesoi>
sorry if this is a really dumb question, but how do I convert a TIme value to text in this format? 2009-03-29T14:50:29Z
<nesoi>
it's a value which outputs "Time" for this puts: puts "#{r.last_updated_at}"
npgm has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
mim1k has joined #ruby
mokiwis has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nesoi>
I tried Time.parse(timeVariable) but get: `_parse': no implicit conversion of Time into String
<elomatreb>
nesoi: That format looks like ISO8601. If it's an actual time object you can call #iso8601 on it to get that
<nesoi>
elomatreb: by call you mean timeVariable.iso8601 ?
<nesoi>
thanks btw!
<elomatreb>
Yes, r.last_updated_at.iso8601 in your case it seems
jenrzzz has quit [Ping timeout: 260 seconds]
kculpis has joined #ruby
<nesoi>
yes, that does it!
mim1k has quit [Ping timeout: 260 seconds]
<nesoi>
was that a breaking change between Ruby 1.9x and 2.4x?
TomyLobo has joined #ruby
kculpis has quit [Max SendQ exceeded]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
mahlon has quit [Read error: Connection reset by peer]
mokiwis has quit [Quit: My computer has gone to sleep...]
AnoHito_ has quit [Ping timeout: 260 seconds]
mahlon has joined #ruby
brent__ has joined #ruby
__Yiota has joined #ruby
gusrub has quit []
raspado has joined #ruby
DaniG2k has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
minimalism has quit [Quit: minimalism]
gavxn has quit [Quit: Page closed]
savoir-faire has quit [Excess Flood]
savoir-faire has joined #ruby
brent__ has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
MrBismuth has joined #ruby
TomyLobo has quit [Ping timeout: 255 seconds]
minimalism has joined #ruby
marr has quit [Remote host closed the connection]
blindMoe has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
MrBusiness has quit [Ping timeout: 255 seconds]
<blindMoe>
anyone mind helping me with this problem? Want to use avariable to store the name of an idenfier inside an object to grab it but am not sure how to do it in Ruby. https://gist.github.com/anonymous/35dc8b4126f14296873c71daf48d28c5 Lines 8 and 10 are the pertinent ones
mim1k has quit [Ping timeout: 255 seconds]
kies has quit [Ping timeout: 246 seconds]
cdg has joined #ruby
Lien has joined #ruby
HumbleBee has quit [Quit: Leaving]
<Lien>
hello?
AnoHito has joined #ruby
ascarter has quit [Ping timeout: 255 seconds]
wilbert has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
blindMoe has left #ruby ["Yeap"]
gnufied has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 260 seconds]
AnoHito has quit [Ping timeout: 260 seconds]
Lien is now known as elevenx0
DaniG2k has quit [Quit: leaving]
ddubs has joined #ruby
elevenx0 is now known as harlo
harlo is now known as elevenxo
im0nde has quit [Ping timeout: 246 seconds]
elevenxo has quit [Quit: Page closed]
bronson has joined #ruby
mim1k has joined #ruby
amclain has quit [Quit: Leaving]
AnoHito has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
mim1k has quit [Ping timeout: 260 seconds]
elevenx0 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
AnoHito has quit [Ping timeout: 255 seconds]
dcunit3d has joined #ruby
<elevenx0>
hello! just starting some ruby exercises on exercism.io and need help, was wondering if someone could kindly assist :)
AnoHito has joined #ruby
raspado has quit [Remote host closed the connection]
Havenn has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
comet23 has joined #ruby
<comet23>
i'm having trouble with regex
zwild has joined #ruby
<comet23>
where can i learn?
choke has quit [Ping timeout: 255 seconds]
AnoHito has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
raspado has joined #ruby
Havenn has quit [Client Quit]
comet23 has quit [Client Quit]
zwild has quit [Remote host closed the connection]
gizmore has joined #ruby
mim1k has joined #ruby
mtkd has quit [Ping timeout: 255 seconds]
mtkd has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gizmore|2 has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 240 seconds]
sarmiena_ has quit [Quit: sarmiena_]
jameser has joined #ruby
JoshS has quit [Ping timeout: 246 seconds]
raspado has quit [Quit: Leaving...]
jameser_ has joined #ruby
jameser has quit [Ping timeout: 240 seconds]
d^sh has quit [Ping timeout: 248 seconds]
d^sh has joined #ruby
Havenn has joined #ruby
Havenn is now known as Guest43870
tacoboy has quit [Remote host closed the connection]
mokiwis has joined #ruby
wilbert has quit [Ping timeout: 255 seconds]
ascarter has joined #ruby
Guest43870 has quit [Remote host closed the connection]
mokiwis has quit [Client Quit]
dviola has joined #ruby
ascarter has quit [Ping timeout: 260 seconds]
wilbert has joined #ruby
JoshS has joined #ruby
mim1k has joined #ruby
cpruitt has joined #ruby
br|ck has joined #ruby
empty_cup has quit [Quit: leaving]
mim1k has quit [Ping timeout: 240 seconds]
cpruitt has quit [Ping timeout: 240 seconds]
mokiwis has joined #ruby
ketan has joined #ruby
wilbert_ has joined #ruby
ketan has quit [Ping timeout: 260 seconds]
wilbert has quit [Ping timeout: 276 seconds]
Axy has joined #ruby
mokiwis has quit [Quit: See ya!]
nb_bez____ has quit [Quit: Connection closed for inactivity]
empty_cup has joined #ruby
dstrunk has joined #ruby
dstrunk has quit [Client Quit]
dstrunk has joined #ruby
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
cdg has joined #ruby
joevandyk has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 240 seconds]
mrconfused has quit [Ping timeout: 240 seconds]
rubycoder37 has joined #ruby
<rubycoder37>
hi
mim1k has joined #ruby
mrconfused has joined #ruby
br0d1n has quit [Quit: Leaving]
astrobunny has joined #ruby
duderonomy has quit [Ping timeout: 276 seconds]
millerti has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 260 seconds]
Emmanuel_Chanel has joined #ruby
guardianx has quit [Read error: Connection reset by peer]
<nesoi>
how do I unallocate a string value or otherwise get it to test as False? I have something like: if string which tests to see if there's a value in the string. how do I reset it to have no value so that test will fail?
<nesoi>
is it just =nil?
justbleed has joined #ruby
<nesoi>
that didn't work
marxarelli is now known as marxarelli|afk
<nesoi>
can anyone give me a clue? :/
bronson has joined #ruby
<elomatreb>
You want that a string will be treated as falsy in an if?
mrconfused has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
<rubycoder37>
how do I unslice this (1..100).each_slice(3).to_a so I can grab all the numbers from the first slice and the second, third, etc?
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
ecuanaso has joined #ruby
ecuanaso has quit [Client Quit]
chouhoulis has joined #ruby
ecuanaso has joined #ruby
ecuanaso has quit [Client Quit]
mim1k has joined #ruby
<elomatreb>
rubycoder37: You want the elements of the first N slices?
<comet23>
i don't like that site because there are multiple correct answers
<baweaver>
Welcome to regex
<comet23>
like you can match the first item or the last or all of them and it will tell you that's correct and it passes and lets you go to the next exercise
<comet23>
you don't really learn anything from there, at least i didn't
<comet23>
=(
<baweaver>
Not sure what you're talking about. It works fine for me.
<comet23>
go to the first exercise
<comet23>
you can do (*) or [a-z] or abc or a or b or c
<baweaver>
That's the point
<baweaver>
and that means that you understand how to match all of them
milardovich has joined #ruby
<comet23>
my point is that it's not useful to beginners like me who want to learn regex
<baweaver>
Experiment with aforementioned different ways
<comet23>
what elomatreb posted doesn't match what i need
<comet23>
i don't understand what he wrote means either
<nesoi>
comet23: if you go through it character by character, referring to a regex reference, you can understand what it means
<baweaver>
One of these days you're going to have to be self-sufficient in finding these things.
<baweaver>
because for the most part people are just surface level googling and shooting you the first link they find when you ask for sites.
jenrzzz has quit [Ping timeout: 260 seconds]
<comet23>
i'm not just asking for sites, books are better than sites
<baweaver>
That being said regexone is pretty decent for what it is. The entire point is that there are multiple solutions to matching something until you get to a certain level of specificity
<comet23>
everything else is too advanced for beginners because it's a reference manual
<baweaver>
There are plenty of basic tutorials online for this, and if you think the books aren't reference manuals you're in for a surprise later
aupadhye has joined #ruby
<baweaver>
Packt one was predictably bad. Sifting through the O'Reilly ones
anisha has joined #ruby
mrconfused has quit [Ping timeout: 246 seconds]
<baweaver>
Cookbook is tome level. Mastering is tome level. Introducing Regular Expressions is of a similar level to frontpage google results.
<comet23>
if i ever become good at regular expressions i am going to host a site on github that teaches newcomers to regular expressions in an easy to understand way
<Radar>
I would hope it explains the emailregex.com regex.
<comet23>
because if you didn't understand what you were writing you wouldn't be able to have written it in the first place
<baweaver>
It's a joke...
ascarter has joined #ruby
<baweaver>
Programmers often joke that they can't understand code they wrote a month ago if it's sufficiently complicated enough and not commented well
pmden has joined #ruby
Havenn_ has quit [Remote host closed the connection]
<comet23>
good night everyone thank you for the help
<Radar>
comet23: sorry, I'm not understanding why you didn't write any code.
<Radar>
Maybe you will write some tomorrow.
<Radar>
Sleep well :wave:
<baweaver>
Someone's been using Slack too much again Radar
<Radar>
baweaver: :+1:
<baweaver>
:thumbs-up:
<elomatreb>
comet23: Just got back. To answer your earlier question, as has been said, practice makes perfect
<baweaver>
Huh. So this is what eam deals with every day.
ascarter has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
ddubs has quit [Ping timeout: 260 seconds]
DeeJayh__ has joined #ruby
comet23 has quit [Ping timeout: 246 seconds]
krmela has joined #ruby
gothicsouth has joined #ruby
DeeJayh_ has quit [Ping timeout: 268 seconds]
wilbert_ has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
djbkd has quit [Remote host closed the connection]
andikr has joined #ruby
djbkd has joined #ruby
howdoi has joined #ruby
djbkd has quit [Ping timeout: 255 seconds]
andrzejk_ has joined #ruby
krmela has quit [Remote host closed the connection]
ketan has joined #ruby
ketan has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has quit [Ping timeout: 240 seconds]
havenwood_ has joined #ruby
havenwood_ has quit [Changing host]
havenwood_ has joined #ruby
szymon has joined #ruby
<szymon>
hi
Mortomes|Work has joined #ruby
enterprisey has joined #ruby
<havenwood_>
szymon: hi
conta has joined #ruby
havenwood_ has quit [Quit: ZNC 1.6.5 - http://znc.in]
szymon has quit [Quit: Leaving]
enterprisey has quit [Remote host closed the connection]
ricer2 has joined #ruby
alex`` has quit [Quit: WeeChat 1.9]
szymon has joined #ruby
alex`` has joined #ruby
pootiscoder has joined #ruby
ricer2 has quit [Ping timeout: 255 seconds]
ricer2 has joined #ruby
aufi has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
elevenx0 has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
bronson has joined #ruby
pb122 has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
xall has joined #ruby
hs366 has quit [Quit: Leaving]
bronson has quit [Ping timeout: 260 seconds]
ascarter has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
hs366 has joined #ruby
ur5us has quit [Remote host closed the connection]
InfinityFye has joined #ruby
ltem has joined #ruby
Ishido has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
mim1k has joined #ruby
cam27 has quit [Quit: cam27]
havenwood has quit [Quit: ZNC 1.6.5 - http://znc.in]
havenwood has joined #ruby
havenwood is now known as Guest63175
Guest63175 has quit [Changing host]
Guest63175 has joined #ruby
shiranuidong has quit [Ping timeout: 260 seconds]
mark_66 has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
patarr has joined #ruby
DaniG2k has joined #ruby
Guest63175 has quit [Quit: ZNC 1.6.5 - http://znc.in]
<ruby[bot]>
shmoon: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<shmoon>
which is why I pasted raw link :P
biberu has joined #ruby
mim1k has joined #ruby
milardovich has joined #ruby
havenwood has joined #ruby
brent__ has joined #ruby
<shmoon>
no one ? :/
bronson has joined #ruby
dionysus69 has joined #ruby
npgm has quit [Quit: Connection closed for inactivity]
<szymon>
shmoon, i think you need gem runt
<szymon>
shmoon, gem install runt
milardovich has quit [Ping timeout: 255 seconds]
ur5us has quit [Remote host closed the connection]
<szymon>
dminuoso, and they hava a :name and :color
<szymon>
dminuoso, i can create Car be Car.new(:name,:color) but i can create to Car.new(:name)
<dminuoso>
szymon: Let me rephrase. What's wrong with your code?
<dminuoso>
Seems to work fine
umaaji has quit [Quit: Leaving...]
<szymon>
dminuoso, it not change color when have new create
<dminuoso>
szymon: Don't lie to me.
<dminuoso>
szymon: It does.
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
noe has joined #ruby
cseder has joined #ruby
nowhere_man has joined #ruby
loveablelobster has joined #ruby
pandaant has joined #ruby
<szymon>
dminuoso, you have right somthing in spec :) thx
loveablelobster has quit [Client Quit]
Winter_Foxo has quit [Ping timeout: 276 seconds]
pandaant has quit [Remote host closed the connection]
Ishido has quit [Ping timeout: 260 seconds]
pootiscoder has joined #ruby
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rundor has joined #ruby
jameser has joined #ruby
pootiscoder has quit [Changing host]
pootiscoder has joined #ruby
gregf_ has joined #ruby
jameser has quit [Client Quit]
rundor has quit [Ping timeout: 248 seconds]
sarbs has quit [Ping timeout: 268 seconds]
sarbs has joined #ruby
Ishido has joined #ruby
_whitelogger has joined #ruby
bronson has joined #ruby
terens has quit [Ping timeout: 255 seconds]
nowhere_man has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 248 seconds]
mim1k has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
Ishido has quit [Ping timeout: 260 seconds]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
mrconfused has joined #ruby
rohitpaulk has quit [Ping timeout: 255 seconds]
brent__ has joined #ruby
patarr has joined #ruby
brent__ has quit [Ping timeout: 255 seconds]
savoir-faire has joined #ruby
patarr has quit [Ping timeout: 258 seconds]
Ishido has joined #ruby
auzty has quit [Quit: Leaving]
mrconfused has quit [Ping timeout: 276 seconds]
ldnunes has joined #ruby
ketan has quit []
__Yiota has joined #ruby
rundor has joined #ruby
jameser has joined #ruby
nowhere_man has quit [Remote host closed the connection]
rohitpaulk has joined #ruby
nowhere_man has joined #ruby
mrconfused has joined #ruby
rundor has quit [Ping timeout: 246 seconds]
nowhere_man has quit [Remote host closed the connection]
himynameisvic has joined #ruby
nowhere_man has joined #ruby
petruff has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
howdoi has quit [Quit: Connection closed for inactivity]
sepp2k has joined #ruby
nowhere_man has quit [Ping timeout: 248 seconds]
hightower2 has quit [Ping timeout: 248 seconds]
romankap_ has joined #ruby
Tempesta has quit [Quit: See ya!]
romankapitonov has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
rohitpaulk has quit [Ping timeout: 240 seconds]
roshanavand has quit [Quit: roshanavand]
jameser has joined #ruby
minimalism has quit [Quit: minimalism]
bkxd has joined #ruby
bkxd_ has joined #ruby
ascarter has joined #ruby
pootiscoder has quit [Quit: Going offline, see ya! (www.adiirc.com)]
pootiscoder has joined #ruby
pootiscoder has quit [Client Quit]
ascarter has quit [Ping timeout: 240 seconds]
oded has quit [Ping timeout: 240 seconds]
oded has joined #ruby
rohitpaulk has joined #ruby
troulouliou_div2 has joined #ruby
ta_ has joined #ruby
szymon is now known as Guest33663
Guest33663 has quit [Killed (weber.freenode.net (Nickname regained by services))]
Guest33663 has joined #ruby
gnufied has joined #ruby
chouhoulis has joined #ruby
stryek has quit [Remote host closed the connection]
Mortomes|Work has quit [Ping timeout: 260 seconds]
splitshot has joined #ruby
deep-book-gk_ has joined #ruby
Guest33663 has quit [Quit: Leaving]
Guest33663 has joined #ruby
cgfbee has quit [Remote host closed the connection]
deep-book-gk_ has left #ruby [#ruby]
romankap_ has quit [Read error: Connection reset by peer]
truenito has joined #ruby
<Guest33663>
dminuoso, ok thats help but i find bug in my code when i first time use new for car that give me a second color from constatn i must have first
mostlybadfly has quit [Quit: Connection closed for inactivity]
cam27 has joined #ruby
<Kanibal>
hey! I'm once again working on my text file cutting problem. I now have an array of "cut positions" that I remove from my string using the following code: cut.each {|c| @file.slice! (c[0]..c[1])}
<Kanibal>
Problem is that the indexes change after each loop
milardovich has joined #ruby
<Kanibal>
Does anybody have a clever idea how I could solve that?
oleo has joined #ruby
enodata has quit [Quit: enodata]
milardovich has quit [Remote host closed the connection]
mrconfused has joined #ruby
Ishido has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
cpruitt has joined #ruby
Rapture has joined #ruby
antgel has quit [Ping timeout: 246 seconds]
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
dionysus70 is now known as dionysus69
truenito has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 276 seconds]
rohitpaulk has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
rohitpaulk has joined #ruby
daivyk has joined #ruby
mrconfused has quit [Ping timeout: 246 seconds]
mrconfused has joined #ruby
spheric has quit [Ping timeout: 276 seconds]
rubydude has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
<rubydude>
Why does 1 <=> 1 == 0 result in a "syntax error, unexpected =="? However if I run the same code like this it works: 1.<=>(1).==(0) # => true
rohitpaulk has quit [Ping timeout: 260 seconds]
millerti has joined #ruby
Ishido has joined #ruby
<dminuoso>
rubydude: Optional parens have a metric fuckton of cases where you end up with ambiguities.
rundor has joined #ruby
<dminuoso>
rubydude: The rule is this: If it parses, be happy. If not, add parens.
<rubydude>
dminuoso: So it's not because of some kind of precedence rule right?
<rubydude>
dminuoso: Because both <=> and == have the same precedence so it should work.
<dminuoso>
rubydude: Right.
skweek has quit [Ping timeout: 248 seconds]
<dminuoso>
rubydude: It's a fundamental LALR(1) thing.
jhooker has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso>
It's just not parsable without parens.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
truenito has joined #ruby
mrconfused has quit [Ping timeout: 246 seconds]
mrconfused has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
himynameisvic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rundor has quit [Remote host closed the connection]
himynameisvic has joined #ruby
rundor has joined #ruby
himynameisvic has quit [Client Quit]
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 276 seconds]
rundor has joined #ruby
justbleed has quit [Read error: Connection reset by peer]
rubydude has quit [Quit: Page closed]
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
antgel has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
rundor has quit [Remote host closed the connection]
Silthias1 has quit [Quit: Leaving.]
jschoolcraft has joined #ruby
__Yiota has joined #ruby
Ishido has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
Ishido has joined #ruby
kassav_ has quit [Read error: Connection reset by peer]
kassav__ has joined #ruby
sgen has quit [Quit: Leaving]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has quit [Ping timeout: 258 seconds]
rohitpaulk has joined #ruby
npgm has joined #ruby
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 255 seconds]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
drcode has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
polishdub has joined #ruby
m4sk1n has joined #ruby
m4sk1n has left #ruby [#ruby]
Bish has joined #ruby
<Bish>
real stupid question i might be blind here
<Bish>
how do i find and get the result of the block
<Kanibal>
but that would of course run on the whole heavy hash
<Bish>
yes that is my problem
<Kanibal>
then I'd probably combine .find and afterwards .map
<Bish>
that would calculate it twice :o
<m4sk1n>
I'm trying to add Otter Browser detection togithub.com/fnando/browser/, it's my PR: https://github.com/fnando/browser/pull/310 my first contribition in Ruby project, what I'm doing wrong?
bronson has joined #ruby
<Bish>
oh i know that gem i used it before!
<splitshot>
m4sk1n, nando listed out what he didn't like right there in the comments.
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
jhooker has quit [Read error: No route to host]
jhooker has joined #ruby
sepp2k has quit [Quit: Leaving.]
jhooker has quit [Read error: No route to host]
jhooker has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
cagomez has quit [Remote host closed the connection]
noe has joined #ruby
jhooker has quit [Read error: No route to host]
jhooker has joined #ruby
cagomez has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
jhooker has quit [Read error: No route to host]
BSaboia has joined #ruby
jhooker has joined #ruby
Renich has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
Dimik has joined #ruby
cagomez has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
ivanskie has joined #ruby
<ivanskie>
hiiii
<ivanskie>
i have a complex xml file.... somewhere in there i have one liners like <start_addr>1122</start_addr>, i need to go through them all and increment them all by one.
<ivanskie>
how can i do that?
VeryBewitching has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
pmden has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
<ivanskie>
I've just tried atom, find all, and increment. doesn't work. tried sublime with increment selection, it apparently only works with single digits, so no go. and now i'm trying to figure out how to regex this thing or what not. argh
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
Guest24 has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
jhooker has quit [Read error: No route to host]
<ivanskie>
i have a few of these files to do. not sure if i want to reverse engineer the xml structure and manually re-create these xml files from csv files in ruby. manually incremement each of those values.
tau has joined #ruby
<ivanskie>
argh
petruff1 has quit [Ping timeout: 255 seconds]
jhooker has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
Bock has quit [Ping timeout: 268 seconds]
jhooker has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 255 seconds]
jhooker has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
marxarelli|afk is now known as marxarelli
jhooker has joined #ruby
AgentVenom has joined #ruby
jottr has joined #ruby
dviola has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 255 seconds]
<apeiros>
ivanskie: what regex have you tried?
watersoul has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
<ivanskie>
well i can find 4 digits between these >\d{4}< then go|dfish suggested "echo '<start_addr>1122</start_addr>' | ruby -pe 'sub(/(?<=<start_addr>)\d+(?=<\/start_addr>)/) { |n| n.to_i + 1 }'"
<ivanskie>
but i haven't figured out how to use it yet.
watersoul has joined #ruby
<apeiros>
exactly like that in the command line
<apeiros>
and you'd replace the echo part with e.g. `cat your_file.xml`
<ivanskie>
right so then i need to iterate over each line of the file
<apeiros>
no
<apeiros>
-p does that
<ivanskie>
oh
<apeiros>
`man ruby`
<apeiros>
the thing you should do when you see flags/options on a command you don't understand.
jhooker has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
jhooker has joined #ruby
truenito has joined #ruby
ixti has joined #ruby
<ivanskie>
true
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
<ivanskie>
thank you
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pmden has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
jhooker has joined #ruby
<Harzilein>
hi
<Harzilein>
uhm
<Harzilein>
i want to define a singleton method on a method, is that possible? i.e. method(:something).my_method should work. it won't work when i use method(:something).instance_eval do def my_method end end, likely because the object i'm operating on there is just a copy somehow
jhooker has quit [Read error: No route to host]
jhooker has joined #ruby
typeVoid has quit [Remote host closed the connection]
pmden has quit [Ping timeout: 255 seconds]
typeVoid has joined #ruby
__Yiota has quit [Client Quit]
strk has left #ruby [#ruby]
<centrx>
define a method on a method?
jhooker has quit [Read error: Connection reset by peer]
mtkd has quit [Ping timeout: 255 seconds]
jhooker has joined #ruby
<Harzilein>
say i have a ripl with its context set to my object. then when i want to refer to that method with method(:user_facing_method).descr and see a description
lxsameer has quit [Ping timeout: 240 seconds]
<Harzilein>
of course i could just have a hash descrs = {:user_facing_method => "descr"} and look that up through descrs[:users_facing_method], but i was curious if it is at all possible
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
mtkd has joined #ruby
<centrx>
Harzilein: I think the Method object returned by #method is just a copy, a representation
<centrx>
Harzilein: it wouldn't make sense to add a method to a method itself
typeVoid has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
tau has left #ruby [#ruby]
<centrx>
Harzilein: I would set it up differently, have a #method_description(:my_method_name) method
<centrx>
Harzilein: sounds like some meta-meta documentation though, are you writing a tutorial example or something?
jhooker has quit [Read error: Connection reset by peer]
<Harzilein>
centrx: that's just about the same as my hash example...
<centrx>
right
<centrx>
Harzilein: the descriptions need to be stored somewhere, and there isn't a place inherently in Ruby to store method meta-information, as far as I know
<Harzilein>
centrx: the repl is for interfacing with a mechanize-derived scraper, i.e. the system tries to do what it can from following its sequence, then drops the user to a repl
sarmiena_ has joined #ruby
<Harzilein>
centrx: because usually people will need to deviate from static sequences and just need some good tools from that point on
<centrx>
Harzilein: You could add a method to Method for descr
<centrx>
Harzilein: and have that access your hash
<centrx>
Harzilein: To the user it would be transparent, just doing method(:user_facing_method).descr
<centrx>
Harzilein: behind the scenes, descr would look at the method name, look it up in the hash
jhooker has quit [Read error: Connection reset by peer]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
jhooker has joined #ruby
<Harzilein>
sure. as i said, just curious if my desire for singleton methods on methods is at all anticipated in the language design
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
jhooker has quit [Read error: Connection reset by peer]
<randomA>
what framework to use for ruby on rails?
milardovich has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
quobo has quit [Quit: Connection closed for inactivity]
cagomez has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<inoperable>
randomA ehh, rails is a a framework already
cagomez has quit [Ping timeout: 255 seconds]
<inoperable>
but if you mean like what to use with rails check the awesome lists @ github
<randomA>
yeah like what to use with rails
ta_ has joined #ruby
<randomA>
i was thinking maybe google materialize?
<Papierkorb>
?rails randomA
<ruby[bot]>
randomA: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
DoubleMalt has quit [Ping timeout: 248 seconds]
mokiwis has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
alveric4 has joined #ruby
cagomez has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
<ivanskie>
pardon my non-ruby question. but uhm, how is it that cmder has permission to add shell registry to add "conemu here" to right click menu. but i can't manually add registry to shell to add "open with sublime" menu. (i don't have admin permissions, and neither cmder nor sublime are installed, standalone/portable )