havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Can't talk? Register/identify with Nickserv first! || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
Rollabunna has joined #ruby
<darix> sharkman: read the ruby regexp doc?
veduardo has quit [Ping timeout: 240 seconds]
nofxx has quit [Ping timeout: 250 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
unclouded has quit [Ping timeout: 246 seconds]
<sharkman> k
Cache_Money has joined #ruby
Rollabunna has quit [Ping timeout: 260 seconds]
dopie has quit [Quit: This computer has gone to sleep]
<Cache_Money> I'm using Ubuntu 14.04. When I run `rbenv install --list` I only see 2.2.0-dev/preview1/preview2. I'm running 2.2.2p95 on my Mac. How do I install 2.2.2p95 on Ubuntu?
Melpaws has joined #ruby
<Cache_Money> Or how do I get it to show up as an option when installing with rbenv?
chipotle has joined #ruby
tjbiddle has joined #ruby
<nofxx> Cache_Money, my suggestion: add brightbox ruby repo, and avoid rbenv/rvm
<nofxx> you'll install/update ruby with apt-get
mordocai has quit [Read error: No route to host]
baroquebobcat has quit [Quit: baroquebobcat]
bayed has quit [Quit: Connection closed for inactivity]
SenpaiSilver_ has quit [Quit: Leaving]
<sharkman> this is listed as a start time on a webpage im scraping, 1442535900000, any ideas what format that is in? how i can make it a Date object?
SenpaiSilver has joined #ruby
gambl0re has quit [Ping timeout: 260 seconds]
<Ox0dea> >> Time.at(1442535900000 / 1000) # sharkman
<ruboto> Ox0dea # => 2015-09-18 00:25:00 +0000 (https://eval.in/435256)
ajafo has quit [Ping timeout: 246 seconds]
chipotle has quit [Quit: cheerio]
<Ox0dea> It's a Unix epoch with milliseconds.
<sharkman> oh perfect 0x0dea
<sharkman> thanks
innpr0cess has joined #ruby
<Ox0dea> Happy to help.
<sharkman> what is an epoch
unclouded has joined #ruby
chipotle has joined #ruby
<Ox0dea> Linguistically, an epoch is just a period of time.
marr has quit [Ping timeout: 255 seconds]
ajafo has joined #ruby
ChasedSpade has quit [Quit: No reason specified.]
howdoico1 has quit [Ping timeout: 244 seconds]
dariasmc has joined #ruby
<Ox0dea> In this case, it's just a timestamp that indicates the number of seconds since the midnight between 1969 and 1970.
<Ox0dea> Unix is old.
<sharkman> interesting that a website would choose to use that
<dariasmc> is p the inspect version of puts in ruby? any help?
<Ox0dea> sharkman: It's very common, which makes it convenient.
<sharkman> ah i see
sepp2k has quit [Quit: Leaving.]
tjbiddle_ has joined #ruby
pauly_oc has quit [Ping timeout: 255 seconds]
<Ox0dea> dariasmc: `p foo` is almost literally `puts foo.inspect`, yes.
tjbiddle has quit [Ping timeout: 265 seconds]
innpr0cess has quit [Client Quit]
tjbiddle_ is now known as tjbiddle
<Ox0dea> But #puts returns `nil`, whereas #p returns the argument.
<dariasmc> 0x0Dea: thanks a lot
<Ox0dea> Sure thing.
<dariasmc> 0x0dea: i started learning ruby today :D
haylon has joined #ruby
<Ox0dea> Yay! <3
Timba-as has quit [Quit: Be back later ...]
<Ox0dea> Where ya comin' from?
Timba-as has joined #ruby
siaw has joined #ruby
<siaw> dariasmc: :p
<haylon> Hey guys. Any idea on why the gem chef won't build on ubuntu because of libyajl2, even though its installed as well as the dev package?
<Ox0dea> haylon: Post compilation errors.
<oddalot> is it in your path?
<haylon> extconf.rb:104:in `makemakefiles': unhandled exception and what I read said I needed make and gcc, yet those are already installed with build-essential
rodfersou has joined #ruby
<darix> haylon: the rest of the text around it
<haylon> oddalot: i'm not sure, how would I check
rakm has joined #ruby
<haylon> One sec, making Gist
prosody is now known as prosodyC
<darix> check the log files in /home/predatorian/.rvm/gems/ruby-2.2.3/gems/libyajl2-1.2.0/ext/libyajl2
Exuma has joined #ruby
Timba-as has quit [Ping timeout: 256 seconds]
<haylon> I updated the Gist with the output of make.out
<darix> gmp-dev missing
araujo has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
<haylon> Thank you, that was what was missing.
<haylon> darix
Ox0dea has quit [Read error: No route to host]
ivanskie has joined #ruby
Ox0dea has joined #ruby
Exuma has quit [Client Quit]
saddad has quit [Ping timeout: 255 seconds]
dfockler has quit [Ping timeout: 260 seconds]
iamninja has quit [Ping timeout: 246 seconds]
haylon has quit [Quit: leaving]
ramfjord has quit [Ping timeout: 255 seconds]
eminencehc has quit [Remote host closed the connection]
Balzrael has quit [Quit: Leaving]
tjbiddle has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
saddad has joined #ruby
cndiv has quit [Quit: Quit]
daaask has joined #ruby
mjuszcza_ has joined #ruby
daaask has quit [Client Quit]
bmurt has joined #ruby
Exuma has joined #ruby
mordocai has joined #ruby
mjuszczak has quit [Ping timeout: 244 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dEPy has joined #ruby
hays has joined #ruby
tjbiddle_ has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tjbiddle has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
sepp2k has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
pietr0 has quit [Ping timeout: 244 seconds]
paulcsmith has quit [Read error: Connection reset by peer]
pietr0 has joined #ruby
linuxboy_ has quit [Remote host closed the connection]
chipotle has quit [Max SendQ exceeded]
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
sotojuan has joined #ruby
eminencehc has joined #ruby
weemsledeux has joined #ruby
drewvanstone has quit [Ping timeout: 246 seconds]
paulcsmith has joined #ruby
rodfersou has quit [Quit: leaving]
chipotle has joined #ruby
grayhat_jax has joined #ruby
grayhat_jax has left #ruby [#ruby]
mordocai has quit [Read error: No route to host]
baweaver has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
eminencehc has joined #ruby
EasyCo has joined #ruby
ndrei has joined #ruby
Exuma has quit []
eminencehc has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 255 seconds]
CloCkWeRX has joined #ruby
JDiPierro has quit [Remote host closed the connection]
nietzschette has quit [Quit: Nettalk6 - www.ntalk.de]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bmurt has quit []
ndrei has quit [Ping timeout: 272 seconds]
failshell has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
ndrei has joined #ruby
Contigi has quit [Read error: Connection reset by peer]
haraoka has joined #ruby
opensource_ninja has quit [Ping timeout: 250 seconds]
paulcsmith_ has joined #ruby
paulcsmith has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
maletor has quit []
Cache_Money has joined #ruby
failshell has joined #ruby
Cache_Money has quit [Client Quit]
voltalio has joined #ruby
paulcsmith_ has quit [Quit: Lingo: www.lingoirc.com]
rezzack1 has joined #ruby
dEPy has quit [Quit: (null)]
rezzack has quit [Ping timeout: 264 seconds]
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
shadoi has quit [Quit: Leaving.]
pontiki has joined #ruby
gambl0re has joined #ruby
<sharkman> does someone want to do me a favor
bmurt has quit []
linuxboytoo has joined #ruby
<monoprotic> what is it
<sharkman> can you sign up for an account on www.heritagesports.eu and let me use it? its a sports betting site
<sharkman> i wont bet, just need it to log in and see the lines
<monoprotic> why cant you?
<sharkman> i have one. i use it to bet. i need another to log into with a computer program
<sharkman> to scrape information
ndrei has quit [Ping timeout: 240 seconds]
<monoprotic> why cant you sign up for a second oen
<sharkman> they wont let me
<sharkman> one account per address
linuxboy_ has joined #ruby
<monoprotic> i see
<monoprotic> make up an address
Contigi has joined #ruby
<sharkman> i think my friend is doing it for me now. if he cant ill pay you, or someone else, a few dollars in bitcoins, if that makes it worth your time
<monoprotic> not me, maybe someone else
pharaoh2 has joined #ruby
ndrei has joined #ruby
drewvanstone has joined #ruby
maletor has joined #ruby
mprelude has quit [Ping timeout: 256 seconds]
<sharkman> boy im hungry. ive been working all day
<sharkman> havent even eaten much
linuxboytoo has quit [Ping timeout: 240 seconds]
maletor has quit [Client Quit]
diego2 has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
r_baron has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
linuxboy_ has quit [Ping timeout: 256 seconds]
filip_ has joined #ruby
<filip_> hi
<filip_> since true/false is frozen i18n specs are failing.
<filip_> anyone interesting in debuging it with me ? https://github.com/svenfuchs/i18n/issues/281
diegoviola has quit [Ping timeout: 272 seconds]
tkuchiki has joined #ruby
<filip_> ups, wrong link. this issue: https://github.com/svenfuchs/i18n/issues/324
SenpaiSilver_ has joined #ruby
<filip_> would be interested in pairprogramming
SenpaiSilver_ has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 252 seconds]
diego2 is now known as diegoviola
FernandoBasso has quit [Quit: WeeChat 1.3]
SenpaiSilver_ has joined #ruby
cina has quit [Ping timeout: 256 seconds]
SenpaiSilver_ has quit [Client Quit]
ndrei has quit [Ping timeout: 246 seconds]
SenpaiSilver_ has joined #ruby
ec\ has quit [Ping timeout: 240 seconds]
SenpaiSilver has quit [Ping timeout: 255 seconds]
webguynow has quit [Ping timeout: 250 seconds]
ipstatic_ has quit [Ping timeout: 240 seconds]
ec\ has joined #ruby
cina has joined #ruby
ndrei has joined #ruby
webguynow has joined #ruby
failshell has quit [Remote host closed the connection]
ipstatic has joined #ruby
nietzschette has joined #ruby
rushed has joined #ruby
tatsuya_o has joined #ruby
Guest61 has joined #ruby
robwri32 has joined #ruby
<Guest61> Evening everybody
<sharkman> hey i will pay someone $5 in bitcoins to make an account on a sports betting site to let me use. i wont deposit money. just want to use it to look at betting lines
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has left #ruby [#ruby]
<Guest61> i've got a begininer question
ndrei has quit [Ping timeout: 250 seconds]
ndrei_ has joined #ruby
webguynow has quit [Ping timeout: 255 seconds]
<monoprotic> Guest61 shoon
<monoprotic> shoot
psk17_ has joined #ruby
webguynow has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
psk17_ has quit [Read error: Connection reset by peer]
tatsuya_o has quit [Ping timeout: 246 seconds]
<Guest61> ok so i'm taking this ruby and rails class really wrapping my head around the conecpts and all, now i'm wanting to work with some real data... i've got this csv file with some relevant data.
ledestin has joined #ruby
<Guest61> whats the best way of doing this? i'm reading rake tasks, also i'm seeing some on the fly style variants.
<Guest61> which is what i'm trying to accomplish at this point my fall back is try and seed the db some how
<Guest61> so the error i'm getting relates to the file path of my csv file
<Guest61> csv_text = File.read('files/demo.csv')
<monoprotic> there is also a rails channel
<monoprotic> #rubyonrails
<Guest61> so this is a rails question?
nietzschette has quit [Quit: Nettalk6 - www.ntalk.de]
<monoprotic> just general advice
<Guest61> @monoprotic i guess your right
joufflu has quit [Ping timeout: 246 seconds]
<Guest61> can i still ask?
webguynow has quit [Ping timeout: 240 seconds]
kies has quit [Read error: Connection reset by peer]
webguynow has joined #ruby
kies has joined #ruby
<Guest61> i guess my question is where should i put the file, currently it resides in app/assets/files/demo.csv but the error message i'm getting does provide much more info
Spami has joined #ruby
Spami has quit [Remote host closed the connection]
xcesariox has quit [Ping timeout: 260 seconds]
mjuszcza_ has quit []
bmurt has joined #ruby
_djbkd has quit [Quit: My people need me...]
s00pcan has quit [Ping timeout: 246 seconds]
ndrei_ has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
sankaber has joined #ruby
filip_ is now known as bartuz
jenrzzz has quit [Ping timeout: 250 seconds]
s00pcan has joined #ruby
pygospa has quit [Ping timeout: 252 seconds]
BraddPitt has quit [Quit: leaving]
umgrosscol has joined #ruby
kyle__ has quit [Ping timeout: 260 seconds]
BraddPitt has joined #ruby
webguynow has quit [Ping timeout: 272 seconds]
danieli has quit [Quit: *does an epic backflip into nowhere*]
kyle__ has joined #ruby
<pontiki> Guest61: in Rails, the app/assets folder is for things which are supposed to be delivered to the user's client
dorei has quit []
webguynow has joined #ruby
<pontiki> you shouldn't use it for your back end application data
<Guest61> @pontiki i moved it over to a rake file and the csv into the db folder
* pontiki nods
<Guest61> @pontiki it seems to be connecting but i'm getting a new error
sil3nt_ has joined #ruby
dgutierrez1287 has joined #ruby
bartuz is now known as filip_
filip_ is now known as fbartuz
<Guest61> i should edit his solution to have as many columns as my spreed sheet correct?
fbartuz is now known as bartuz
ndrei has quit [Ping timeout: 240 seconds]
<pontiki> the model's attributes should match the columns in the CSV
jgt1 has joined #ruby
ndrei has joined #ruby
umgrosscol has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 256 seconds]
towski_ has quit [Remote host closed the connection]
x-light has joined #ruby
chipotle has quit [Max SendQ exceeded]
A124 has quit [Read error: Connection reset by peer]
jgt1 has quit [Ping timeout: 255 seconds]
chipotle has joined #ruby
Rollabunna has joined #ruby
postmodern has quit [Remote host closed the connection]
robwri32 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest61 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arescorpio has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
sepp2k has quit [Read error: Connection reset by peer]
A124 has joined #ruby
Rollabunna has quit [Ping timeout: 246 seconds]
jamesaxl has quit [Remote host closed the connection]
bmurt has quit []
moeabdol has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
webguynow has quit [Ping timeout: 256 seconds]
webguynow has joined #ruby
pygospa has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
houhoulis has joined #ruby
ndrei has joined #ruby
moeabdol has quit [Ping timeout: 264 seconds]
ngscheurich has joined #ruby
linux_dr has quit [Quit: linux_dr]
jenrzzz has joined #ruby
rcs has quit [Ping timeout: 240 seconds]
Guest61 has joined #ruby
robwri32 has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
webguynow has quit [Ping timeout: 252 seconds]
webguynow has joined #ruby
rcs has joined #ruby
ndrei has joined #ruby
rohit has joined #ruby
devbug has joined #ruby
<robwri32> @pontiki sorry i got disconnected
linuxboytoo has joined #ruby
cih has joined #ruby
s00pcan has quit [Quit: Lost terminal]
cih has quit [Ping timeout: 250 seconds]
iamninja has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
sil3nt_ has quit [Quit: Leaving]
siaw has left #ruby [#ruby]
ndrei has joined #ruby
<BraddPitt> what is the ruby way for formatting multiple method chaining?
stardiviner has quit [Ping timeout: 252 seconds]
grenierm has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rattatmatt has quit [Ping timeout: 272 seconds]
<RickHull> BraddPitt: got an example?
iamninja has quit [Ping timeout: 260 seconds]
<RickHull> generally: this.that.foo.bar # is fine
eminencehc has joined #ruby
eminencehc has quit [Remote host closed the connection]
bmurt has joined #ruby
<BraddPitt> what if it gets real long
<BraddPitt> each call on its own line?
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arooni has joined #ruby
<RickHull> generally: this.that.\nfoo.bar
bmurt has quit []
<RickHull> i would say it's up to you to decide where to linebreak a method chain
<RickHull> leave the dot on the first line, continue the method chain on the second line
ndrei has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
ndrei has joined #ruby
<RickHull> ~80ch linebreaks are the closest thing to a standard
solocshaw has quit [Ping timeout: 265 seconds]
rattatmatt has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> You can also have leading rather than trailing dots in most circumstances.
amystephen has quit [Quit: amystephen]
<Ox0dea> It makes it easier to see that it's a chain, but you can't comment out intermediates without introducing a syntax error.
pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 256 seconds]
<RickHull> interesting, i'd argue the opposite. with no trailing dot, it looks like a complete expression
<RickHull> (the first line of the chain)
<RickHull> given that we start at the first line
ndrei has joined #ruby
<Ox0dea> Hm?
<RickHull> this.that\n.foo.bar is misleading
<RickHull> this.that.\nfoo.bar is not
Guest61 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
robwri32 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Sure, but Ruby lets us do it anyway, and a column of dots is pretty visible.
<RickHull> yeah, for lines > 2, maybe
webguynow has quit [Ping timeout: 265 seconds]
<BraddPitt> o doagree RickHull
<BraddPitt> i disagree*
webguynow has joined #ruby
<BraddPitt> this.makes\n.more.sense
<BraddPitt> sure, it causes lookback
<Ox0dea> Why would you want that?
devbug_ has joined #ruby
<BraddPitt> because the other way makes you think the newline method might be its own call
<Ox0dea> > the newline method
niemcu has quit [Remote host closed the connection]
<RickHull> newline method > crystal method
segfalt`` has joined #ruby
<RickHull> foo = bar\n.ha_ha_only_kidding
cih has joined #ruby
cantaberry has joined #ruby
sharkman has quit [Quit: Leaving]
<RickHull> ary = [1,2,3]\n.reverse # boosh
devbug has quit [Ping timeout: 246 seconds]
<BraddPitt> if thats the case RickHull, i would do newline after assignment operator and then continue as usual
<RickHull> i like your style BraddPitt
<BraddPitt> foo = \nbar.then.whatever.else\n.if.needed
cih has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 272 seconds]
ndrei_ has joined #ruby
<RickHull> particularly given that tools like git do line-oriented diffs
<RickHull> i would avoid lines-in-isolation being misleading
ivanskie has joined #ruby
devbug has joined #ruby
<RickHull> that is, any mutiline expression
<RickHull> should have a trailing continuation token
<baweaver> I would laugh, choose one, put it in a style guide, and then proceed to laugh harder at everyone else wasting hours debating pointless things like that.
<RickHull> e.g. dot, equals
ngscheurich has quit [Ping timeout: 252 seconds]
beauby has quit [Ping timeout: 240 seconds]
<baweaver> Bike shedding at its finest
rushed has quit [Quit: rushed]
<pontiki> what colour is your shed, mate?
<RickHull> so long as it's black
<RickHull> to me, it's clear that you want to include the line-continuation token
<RickHull> to avoid the line-oriented diff problem
devbug__ has joined #ruby
devbug_ has quit [Ping timeout: 250 seconds]
gener1c has joined #ruby
<RickHull> both humans and ruby parsers operate top-to-bottom
<RickHull> so why introduce an ambiguity (is this a complete expression?) at the top line?
devbug has quit [Ping timeout: 246 seconds]
webguynow has quit [Ping timeout: 250 seconds]
Guest61 has joined #ruby
robwri32 has joined #ruby
<RickHull> thus, this decision is EZ-button
webguynow has joined #ruby
gener1c_ has quit [Ping timeout: 260 seconds]
umgrosscol has joined #ruby
ndrei_ has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
<RickHull> I'd go so far as to question the judgment of anyone who thinks it's really a tossup
braincrash has quit [Quit: bye bye]
<RickHull> (including Matz)
webguynow has quit [Ping timeout: 252 seconds]
umgrosscol has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
webguynow has joined #ruby
karapetyan has joined #ruby
matp_ has joined #ruby
beauby has joined #ruby
rezzack1 has quit [Ping timeout: 272 seconds]
braincrash has joined #ruby
braincrash is now known as braincras
joufflu has joined #ruby
ndrei_ has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
catcher has joined #ruby
matp has quit [Ping timeout: 250 seconds]
matp_ is now known as matp
stardiviner has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
ngscheurich has joined #ruby
opensource_ninja has joined #ruby
beauby has quit [Ping timeout: 250 seconds]
diegoviola has quit [Quit: WeeChat 1.3]
dopamean_ has quit [Read error: Connection reset by peer]
dopamean_ has joined #ruby
aaeron has quit [Quit: Leaving.]
hotguitar has quit [Ping timeout: 250 seconds]
psk17_ has joined #ruby
ndrei_ has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
<pontiki> i agree with you on this, but it's interesting to me that the norm in JavaScript is to do it the other way
<pontiki> s/but/and/
bb010g has joined #ruby
dopie has joined #ruby
<RickHull> oh god, don't get me started on trailing commas in JSON
rezzack has joined #ruby
<RickHull> worst.decision.ever except for the WWII stuff
joufflu has quit [Ping timeout: 240 seconds]
rohit has quit [Quit: Leaving]
<Ox0dea> Bletchley Park used JavaScript, you say?
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<RickHull> i was going to make a hitler or nazi analogy, then backed off
<Ox0dea> Still Godwin's.
<RickHull> just barely, i think i can still duck it
ndrei has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
rushed has joined #ruby
Guest61 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
robwri32 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt1 has joined #ruby
segfalt`` has quit [Ping timeout: 240 seconds]
chipotle has quit [Remote host closed the connection]
chipotle has joined #ruby
darkf has joined #ruby
jgt1 has quit [Ping timeout: 260 seconds]
iateadonut has joined #ruby
failshell has joined #ruby
<Ox0dea> RickHull: Still about?
ndrei has quit [Ping timeout: 265 seconds]
tatsuya_o has joined #ruby
nofxx has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Remote host closed the connection]
gix has quit [Ping timeout: 246 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
webguynow has quit [Ping timeout: 264 seconds]
failshell has quit [Ping timeout: 255 seconds]
<RickHull> yep
webguynow has joined #ruby
<RickHull> Ox0dea: ^
<Ox0dea> RickHull: I think you were probably right all along. http://i.imgur.com/tX3LCQd.png
<RickHull> not sure i get it, does this go back to my crystal method quip?
<Ox0dea> Much further back than that.
<Ox0dea> Note the double quotes.
arescorpio has quit [Remote host closed the connection]
<RickHull> i'm still whooshing
bartuz has quit [Ping timeout: 250 seconds]
tatsuya_o has quit [Ping timeout: 252 seconds]
<Ox0dea> We quibbled about Google trying to impose itself upon us when we explicitly request otherwise.
<RickHull> oh wow
<RickHull> way back
gix has joined #ruby
ndrei has joined #ruby
<RickHull> i'm not sure if it's my new job or what
<RickHull> but I have been recently very disappointed with web search results for the problems i've been facing
<RickHull> maybe it's because i'm so weak to expect that the internet can solve my problems with a few keywords
<RickHull> but websearch==google for me
PlasmaStar has quit [Ping timeout: 246 seconds]
<Ox0dea> > The production of too many useful things results in too many useless people.
<Ox0dea> I'm only poking fun, of course.
<RickHull> i agree with the sentiment
<Ox0dea> Marx was a clever fellow.
<RickHull> which implies that most of humanity is useless
<Ox0dea> Ask not for whom the bell tolls.
<RickHull> what does that mean?
jenrzzz has joined #ruby
<RickHull> i've read the hemingway book, and I love the metallica song
sotojuan has quit [Quit: Textual IRC Client: www.textualapp.com]
<RickHull> the reading of the book was so long ago, and it doesn't have the sticking power of the metallica lyrics
<Ox0dea> It's the same sentiment as expressed in "no man is an island", as I see it.
<RickHull> the bell tolling, that is an information delivery? a signal?
<Ox0dea> A death.
<RickHull> oh
<RickHull> not sure how i missed that critical bridge in all of it
<RickHull> i was fascinated by the hemingway story of being a spanish guerilla
rakm has joined #ruby
<RickHull> but not sure I got the big picture idea he was trying to send. a signal, if you will ;)
dopie has quit [Ping timeout: 252 seconds]
<RickHull> > The book's title is taken from the metaphysical poet John Donne's series of meditations and prayers on health, pain, and sickness (written while Donne was convalescing from a nearly fatal illness) published in 1624 as Devotions upon Emergent Occasions, specifically Meditation XVII. Hemingway quotes part of the meditation (using Donne's original spelling) in the book's epigraph, which in turn refers to the practice of funeral tolling:
<RickHull> > No man is an Iland, intire of it selfe; every man is a peece of the Continent, a part of the maine; if a Clod bee washed away by the Sea, Europe is the lesse, as well as if a Promontorie were, as well as if a Mannor of thy friends or of thine owne were; any mans death diminishes me, because I am involved in Mankinde; And therefore never send to know for whom the bell tolls; It tolls for thee.
<RickHull> so it's something like coming face-to-face with one's own demise
moeabdol has joined #ruby
psk17_ has quit [Quit: Leaving]
<RickHull> i'm not sure if it's about the futility of such -- don't even bother inquiring if it's for you or not -- it can't matter
<RickHull> or if it's more about a life well-lived gives no consideration for such
dima_ has joined #ruby
charliesome has joined #ruby
<Ox0dea> Art is about interpretation, you say?
<RickHull> art is shite, say I
PlasmaStar has joined #ruby
<Ox0dea> > Art is, for all its faults, at least selfless; a work of art gives, by its very nature and without even the possibility of reciprocation, the whole of itself. But WYGIWYS.
<RickHull> in that art is a message, i agree
<Ox0dea> Art is a mirror.
<RickHull> the message has no concern for its sender, only the recipient
ivanskie has quit [Ping timeout: 255 seconds]
Lucky__ has joined #ruby
RickHull has quit [Read error: Connection reset by peer]
RickHull has joined #ruby
<RickHull> i'm back, what did i miss
<RickHull> just when it was starting to get gfood
moeabdol has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
<pontiki> you're referring to the artifact, not the art
<pontiki> art is a process, and as such is entirely selfish
<RickHull> i'm with you so far
<pontiki> that's it :)
<RickHull> it's a personal expression, that can only have external value
<RickHull> if those who receive it value it as such
<pontiki> the artifact
<pontiki> but the process has instrinsic value
<pontiki> *only* intrinsic value
ndrei has quit [Ping timeout: 250 seconds]
devbug has joined #ruby
<pontiki> then again, my photog teacher said "it's not art until the check clears the bank" :)
shinnya has quit [Ping timeout: 272 seconds]
devbug__ has quit [Ping timeout: 240 seconds]
<pontiki> i love painting
<RickHull> makes sense to me. though i disagree with your photog teacher
aaeron has joined #ruby
kp666 has joined #ruby
<pontiki> oh, you know, he was joking (sommat)
<RickHull> well it's a good sentiment to hold
David27 has quit [Ping timeout: 250 seconds]
<baweaver> heh, then I've made a lot of art lately.
<RickHull> i just disagree with its truth value / definition
tkuchiki has quit [Remote host closed the connection]
sdfgsdfg has joined #ruby
pharaoh2 has joined #ruby
aaeron1 has joined #ruby
<RickHull> fundamentally, art is expression. it's when someone focuses on expression, particularly concerned with the resulting product, that process becomes art
Pathfinder has joined #ruby
towski_ has joined #ruby
<pontiki> when i shuffle through my paintings, they don't have any extrinsic or intrinsic value in themselves. they invoke memories and learning
aaeron1 has quit [Client Quit]
<pontiki> but it's not the thing itself
aaeron1 has joined #ruby
aaeron1 has quit [Client Quit]
aaeron has quit [Client Quit]
<pontiki> all art is performance; all performance is art
<RickHull> probably there is intrinsic value
dopie has joined #ruby
<RickHull> i would say when there is an intention for creating extrinsic value, thus art
<pontiki> nah, it's just paper and pigment
<RickHull> the art may fail or succeed at creating extrinsic value
Exuma has joined #ruby
<RickHull> it's the intention that matters
<pontiki> i can imagine that's important
grenierm has quit [Quit: grenierm]
tejasmanohar has joined #ruby
catcher has quit [Quit: catcher]
ndrei has joined #ruby
arooni has quit [Quit: Leaving]
Rollabunna has joined #ruby
tobiasvl has quit [Ping timeout: 250 seconds]
grenierm has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
Rollabunna has quit [Ping timeout: 250 seconds]
ndrei has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
ndrei has joined #ruby
beauby has joined #ruby
RickHull has left #ruby [#ruby]
Exuma has quit [Quit: ZZZzzz…]
ngscheurich has quit [Ping timeout: 246 seconds]
Exuma has joined #ruby
braincrash has joined #ruby
beauby has quit [Ping timeout: 264 seconds]
braincras has quit [Ping timeout: 252 seconds]
dgutierrez1287 has joined #ruby
Exuma has quit []
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
webguynow has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
webguynow has joined #ruby
karapetyan has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 240 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
dima_ has quit [Quit: This computer has gone to sleep]
karapetyan has joined #ruby
RickHull1 has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
lkba_ has joined #ruby
iamninja has joined #ruby
grenierm has quit [Quit: grenierm]
jenrzzz has quit [Ping timeout: 256 seconds]
rohit has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
voltalio has joined #ruby
pawnbox has joined #ruby
poguez_ has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
Melpaws has quit [Quit: Leaving.]
iamninja has quit [Ping timeout: 252 seconds]
devoldmx has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
Luming has joined #ruby
vondruch has joined #ruby
youngbaks has joined #ruby
Rutix has quit []
wldcordeiro has joined #ruby
ndrei has joined #ruby
houhoulis has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
beauby has joined #ruby
dEPy has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
ndrei has joined #ruby
yfeldblum has joined #ruby
beauby has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
<dEPy> Any way to check which gem is using another gem specified in Gemfile.lock?
pawnbox has quit [Remote host closed the connection]
astrobunny has joined #ruby
subshad has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
rushed has quit [Quit: rushed]
<pontiki> it's in the hierarchy
ndrei has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
ndrei has joined #ruby
<nofxx> when inside rescue how to re-raise the error? rescue Foo => e; ...... ; fail e ? raise e? super?
opensource_ninja has quit [Ping timeout: 240 seconds]
dEPy has quit [Quit: (null)]
gamov has joined #ruby
webguynow has quit [Ping timeout: 240 seconds]
webguynow has joined #ruby
Billias has quit [Read error: Connection reset by peer]
Pathfinder has quit [Ping timeout: 250 seconds]
Ox0dea has quit [Read error: No route to host]
Billias has joined #ruby
<gamov> Hello. I have a fairly simple question that I can't figure out nor google. Basically, I want to set a default block if no implicit block is given to a method but I can't make it work:
<gamov> assert_sorted array, &block
<gamov> block ||= ->{|i,j| i <= j }
saddad has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
<gamov> assert array.each_cons(2).all?(&block)
pawnbox has quit [Remote host closed the connection]
MichaelSmith has left #ruby [#ruby]
ndrei has joined #ruby
AndChat-43764 has joined #ruby
lkba_ has quit [Read error: Connection reset by peer]
astrobunny has quit [Remote host closed the connection]
x-light has quit [Ping timeout: 250 seconds]
Cache_Money has joined #ruby
tkuchiki has joined #ruby
mary5030 has joined #ruby
tejasmanohar has quit [Quit: tejasmanohar]
lkba has quit [Ping timeout: 260 seconds]
astrobunny has joined #ruby
dhjondoh has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
webguynow has quit [Ping timeout: 260 seconds]
webguynow has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
HAL2328 has joined #ruby
<apeiros> gamov: you got the syntax wrong. it's ->(i,j) { i <= j }
tejasmanohar has joined #ruby
astrobunny has quit [Remote host closed the connection]
moeabdol has joined #ruby
Rickmasta has joined #ruby
sdfgsdfg has quit [Ping timeout: 256 seconds]
hashrocket has quit [Quit: Connection closed for inactivity]
moeabdol has quit [Ping timeout: 240 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
tw1sted has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
webguynow has quit [Ping timeout: 255 seconds]
cih has joined #ruby
jgt1 has joined #ruby
<gamov> apeiros: sorry, i pasted wrongly. I made a gist: https://gist.github.com/gamov/96e7c36beababe48719a
webguynow has joined #ruby
cih has quit [Remote host closed the connection]
astrobunny has joined #ruby
shmilan has joined #ruby
dopie has quit [Quit: Leaving]
ndrei has joined #ruby
Timba-as has joined #ruby
x-light has joined #ruby
sdothum has joined #ruby
jgt1 has quit [Ping timeout: 240 seconds]
failshell has joined #ruby
cih has joined #ruby
tatsuya_o has joined #ruby
dariasmc has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 246 seconds]
sdothum has quit [Client Quit]
ndrei has joined #ruby
failshell has quit [Ping timeout: 272 seconds]
Timba-as has quit [Quit: Be back later ...]
<devn> ?a??b:?c
<ruboto> I don't know anything about a
Timba-as has joined #ruby
techietrash has joined #ruby
diegoviola has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cih has quit [Ping timeout: 265 seconds]
tjbiddle has quit [Quit: tjbiddle]
tatsuya_o has quit [Ping timeout: 246 seconds]
sdfgsdfg has joined #ruby
rohit has quit [Quit: Leaving]
drewvanstone has quit [Ping timeout: 240 seconds]
sdfgsdfg has quit [Read error: Connection reset by peer]
sdfgsdfg has joined #ruby
rattatmatt has quit [Quit: Leaving]
sdfgsdfg has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 255 seconds]
tagrudev has joined #ruby
ndrei has joined #ruby
Timba-as has quit [Ping timeout: 246 seconds]
dhjondoh has quit [Quit: dhjondoh]
Outlastsheep has quit [Ping timeout: 240 seconds]
Pathfinder has joined #ruby
jaequery has joined #ruby
youngbaks has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
mary5030 has quit [Remote host closed the connection]
yfeldblum has joined #ruby
mary5030 has joined #ruby
rattatmatt has joined #ruby
RandyT has quit [Ping timeout: 272 seconds]
cih has joined #ruby
Alina-malina has quit [Ping timeout: 246 seconds]
dhjondoh has joined #ruby
solars has joined #ruby
youngbaks has joined #ruby
last_staff has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
miguelff has joined #ruby
<gamov> mozzarella: same error
yfeldblum has quit [Ping timeout: 260 seconds]
<mozzarella> gamov: what is it?
ndrei has quit [Ping timeout: 255 seconds]
<mozzarella> works fine here
x-light has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
<gamov> mozzarella: ArgumentError: wrong number of arguments (1 for 2) (i'm using ruby 1.9.3, will retry on current ruby)
<mozzarella> gamov: are you sure you're using the code I just gave you…
<mozzarella> 1.9> def assert_sorted(array); block = block_given? ? Proc.new : lambda {|i,j| i+1 < j+1}; end; assert_sorted([])
glenn_ has joined #ruby
<mozzarella> 19> def assert_sorted(array); block = block_given? ? Proc.new : lambda {|i,j| i+1 < j+1}; end; assert_sorted([])
<mozzarella> what's the syntax, again?
<mozzarella> 19>> def assert_sorted(array); block = block_given? ? Proc.new : lambda {|i,j| i+1 < j+1}; end; assert_sorted([])
<ruboto> mozzarella # => #<Proc:0x83dbd34@/tmp/execpad-289e65dfdebc/source-289e65dfdebc:2 (lambda)> (https://eval.in/435423)
<mozzarella> see? works fine
astrobunny has quit [Remote host closed the connection]
codecop has joined #ruby
miguelff has quit [Quit: miguelff]
miguelff has joined #ruby
miguelff has quit [Client Quit]
dionysus69 has joined #ruby
miguelff has joined #ruby
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
ndrei has quit [Ping timeout: 260 seconds]
ndrei has joined #ruby
techietrash has quit [Quit: Bye! <(^_^<)]
Pupp3tm4st3r has joined #ruby
<nofxx> ✓✔✕✖✗✘➔➛➢➧ which are the coolest for a cli app? one of each
pawnbox has quit [Remote host closed the connection]
krz has joined #ruby
davedev24 has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
Rollabunna has joined #ruby
ndrei has joined #ruby
amclain has quit [Quit: Leaving]
alexUaN has joined #ruby
Timba-as has joined #ruby
weemsledeux has joined #ruby
astrobunny has joined #ruby
tejasmanohar has left #ruby [#ruby]
youngbaks has quit [Ping timeout: 250 seconds]
drewvanstone has joined #ruby
Timba-as has quit [Client Quit]
bruno- has joined #ruby
RandyT has joined #ruby
Rollabunna has quit [Ping timeout: 265 seconds]
pawnbox has joined #ruby
davedev24 has quit []
kp666 has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
webguynow has quit [Ping timeout: 246 seconds]
webguynow has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
HoloIRCUser4 has joined #ruby
Gnomethrower has joined #ruby
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
HoloIRCUser4 has quit [Remote host closed the connection]
shmilan has quit [Ping timeout: 240 seconds]
jgt1 has joined #ruby
Sembei has joined #ruby
<BraddPitt> i use ⤳ for my terminal prompt
<BraddPitt> i quite like it
Pisuke has quit [Ping timeout: 246 seconds]
astrobunny has quit [Remote host closed the connection]
miguelff has quit [Ping timeout: 250 seconds]
emilkarl has joined #ruby
pawnbox_ has joined #ruby
r0x0rZ has joined #ruby
stan has joined #ruby
<baweaver> λ for me
pawnbox has quit [Ping timeout: 264 seconds]
<nofxx> baweaver, that would make me want to play half life
eGGsha has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
diegoviola has quit [Ping timeout: 240 seconds]
miguelff has joined #ruby
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
<certainty> moin
<certainty> +1 for λ
youngbaks has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
<baweaver> Lambda Calculus for me.
<certainty> same here
* nofxx glad I had much more fun on teenages
linux_dr has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
iamninja has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
ndrei has joined #ruby
astrobunny has joined #ruby
miguelff has quit [Read error: Connection reset by peer]
<linux_dr> I just submitted a PR to the Vagrant project, but am still trying to get the unit tests to pass… (Before I saw the Travis log, I didn’t know how to build or test my changes)… any suggestions?… I’m not sure quite what I’m reading in the unit tests… :-(
ghostlines has joined #ruby
<certainty> nofxx: what's more fun than lambda calculus? xD
iamninja has quit [Ping timeout: 256 seconds]
pawnbox_ has quit [Read error: Connection reset by peer]
firstdayonthejob has joined #ruby
pawnbox has joined #ruby
tatsuya_o has joined #ruby
khebbie has joined #ruby
devbug_ has joined #ruby
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
devbug has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
cih has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
miguelff has joined #ruby
yfeldblum has joined #ruby
tatsuya_o has quit [Ping timeout: 246 seconds]
zacts has quit [Quit: leaving]
cih has joined #ruby
<baweaver> quick problem: Given an array of integers, find the integer that has an odd number of repetitions: [1,1,2] -> 2, [1,1,2,2,3,3,3] -> 3
<baweaver> (I know the answer, but have fun)
ndrei has quit [Ping timeout: 256 seconds]
code4fun has joined #ruby
<tbuehlmann> the one and only answer, I suppose
code4fun_ has joined #ruby
ndrei has joined #ruby
linux_dr has quit [Quit: linux_dr]
<baweaver> oh there are multiple
<baweaver> some involving hashes, others arrays, some with certain other fun bits
yfeldblum has quit [Ping timeout: 240 seconds]
<baweaver> Ox0dea, why aren't you here for golf fun....
<shevy> that dam golfing
cih has quit [Ping timeout: 240 seconds]
rezzack1 has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
michael_mbp has quit [Excess Flood]
cih has joined #ruby
skullcrasher has joined #ruby
dgutierrez1287 has joined #ruby
michael_mbp has joined #ruby
<baweaver> shevy: care to take a swing?
diego1 has joined #ruby
diego1 has quit [Client Quit]
rezzack has quit [Ping timeout: 246 seconds]
lsmola has joined #ruby
diegoviola has quit [Ping timeout: 256 seconds]
<gamov> mozzarella: sorry, went out for lunch. if I supply an empty array, it works, but not a full array… strange
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weemsledeux has joined #ruby
<baweaver> >> [1,1,2,2,3,3,3].reduce(:^)
<ruboto> baweaver # => 3 (https://eval.in/435439)
dgutierrez1287 has quit [Ping timeout: 260 seconds]
<baweaver> shevy: Lookit, reduce is smiling
khebbie has quit [Remote host closed the connection]
<baweaver> >> [1,3,2,1,2,3,3].reduce(:^)
<ruboto> baweaver # => 3 (https://eval.in/435440)
<mozzarella> gamov: uh?
ndrei has quit [Ping timeout: 246 seconds]
ndrei has joined #ruby
<gamov> mozzarella: with [], it passes but as long as something is in the array, it fails. looks like the calling method is not providing 2 parameters to the block. It's very strange, it's the same block…
khebbie has joined #ruby
CloCkWeRX has joined #ruby
<mozzarella> just show your code and the error message
youngbaks has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
aswen has joined #ruby
<baweaver> https://gist.github.com/baweaver/c9f3f7191a514b14a645 - Other fun problem, though that'll take a bit. Fork it and comment on the original if you want me to look over it.
<shevy> baweaver yeah those smileys in ruby due to : can be weird
<baweaver> shevy: want to take a stab at that one? :D
<baweaver> It's more fun.
<baweaver> I'll probably use it for interviews later.
djbkd has quit [Quit: Leaving...]
towski_ has quit [Remote host closed the connection]
tomaz_b has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
youngbaks has joined #ruby
ndrei has joined #ruby
Feyn has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
<shevy> stab ... stab... stabby lambda!
<shevy> -> :^
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gamov> mozzarella: it's your proposition, https://eval.in/435464
rushed has joined #ruby
HAL2328 has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
skade has joined #ruby
chipotle has joined #ruby
ndrei has joined #ruby
moeabdol has joined #ruby
skade has quit [Client Quit]
solars has quit [Ping timeout: 250 seconds]
allomov has joined #ruby
arup_r has joined #ruby
greenarrow has quit [Quit: 500]
greenarrow has joined #ruby
greenarrow has quit [Remote host closed the connection]
sanjayu has joined #ruby
greenarrow has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
toretore has quit [Quit: This computer has gone to sleep]
ndrei has quit [Ping timeout: 252 seconds]
youngbaks has quit [Quit: WeeChat 1.3]
moeabdol has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
Oka has quit [Quit: o/]
ruby-lang317 has joined #ruby
skade has joined #ruby
DoubleMalt has joined #ruby
vondruch has quit [Quit: Ex-Chat]
arup_r is now known as centrosome
ndrei has quit [Ping timeout: 244 seconds]
ruby-lang317 has quit [Ping timeout: 246 seconds]
rezzack1 has quit [Quit: Leaving.]
webguynow has quit [Ping timeout: 240 seconds]
webguynow has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
Asher has quit [Client Quit]
<gamov> mozzarella: ok, with 2.2,, it works: https://eval.in/435520 | block ||= lambda {|i,j| i < j} generates wrong results
SCHAAP137 has joined #ruby
ndrei has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Asher has joined #ruby
nyon has quit [Ping timeout: 250 seconds]
ptierno has quit [Quit: leaving]
centrosome has quit [Quit: Leaving]
arup_r has joined #ruby
code4fun_ has quit [Ping timeout: 246 seconds]
code4fun has quit [Ping timeout: 246 seconds]
solars has joined #ruby
devyn has quit [Ping timeout: 260 seconds]
Luming has quit [Remote host closed the connection]
CloCkWeRX has quit [Quit: Leaving.]
CloCkWeRX1 has joined #ruby
Luming has joined #ruby
Luming has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
Luming has joined #ruby
anisha has joined #ruby
Luming has quit [Remote host closed the connection]
<certainty> baweaver: what's your solution to find all integers that have an odd number of repitions?
<certainty> repetitions
vondruch has joined #ruby
Luming has joined #ruby
<baweaver> >> [1,5,3,4,4,3,1].reduce(:^)
<ruboto> baweaver # => 5 (https://eval.in/435546)
firstdayonthejob has quit [Ping timeout: 246 seconds]
<certainty> that just one
<certainty> i mean all
<certainty> it's a neat solution, no doubt
<baweaver> all?
webguynow has quit [Ping timeout: 250 seconds]
<baweaver> just a sec
Luming has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
webguynow has joined #ruby
Neverdie has quit [Quit: http://radiux.io/]
c0m0 has joined #ruby
pawnbox has joined #ruby
<maloik> am I right in arguing that when you call a method "add_ns_records_to_domain", all logic about when or when not to add those methods is better off outside of the actual method?
michael_mbp has joined #ruby
<maloik> to me this makes perfect sense, but a colleague has a bunch of guard conditions inside the method (that have to do with biz logic) that could make it return nil for a couple reasons and simply not do anything
pawnbox_ has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
ndrei has joined #ruby
<maloik> in this case, he's calling the method on after_create for each dns record object, where I'm arguing you should call it after_create "if the dns record is the first for that domain and the record itself isnt an NS record"
<baweaver> >> [1,2,3,3,4,4].reduce(Hash.new { |h,k| h[k] = 0 }) { |a,v| a[v].zero? ? a[v] += 1 : a[v] -= 1; a }.select { |k,v| v == 1 }.keys
<ruboto> baweaver # => [1, 2] (https://eval.in/435553)
arup_r has quit [Quit: Leaving]
lxsameer has joined #ruby
<certainty> baweaver: ok so with a hash. that's roughly the solution i had.
Macaveli has joined #ruby
<baweaver> could also:
<certainty> >> [1,2,3,3,4,4].each_with_object(Hash.new {|h,k| h[k] = 0 }) { |num, h| h[num] +=1 }.select { |_,v| v.odd? }.keys
<ruboto> certainty # => [1, 2] (https://eval.in/435555)
<baweaver> >> [1,2,3,3,4,4].group_by(&:itself).select { |k,v| v.length.odd? }.keys
<ruboto> baweaver # => [1, 2] (https://eval.in/435556)
<certainty> that's cool
<certainty> i like that
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
<baweaver> As to the pad mapper problem
kp666 has joined #ruby
Alina-malina has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
failshell has joined #ruby
<baweaver> If you can't tell I tend to spend too much time around FP languages, so I have a habit of avoiding state.
<certainty> baweaver: that's a good thing
<baweaver> especially when I use Spark
ndrei has quit [Ping timeout: 246 seconds]
<certainty> i try to stay true to the idioms and paradigm of the language i use though. Because my colleagues don't think functional most of the time
devyn has joined #ruby
ndrei has joined #ruby
<shevy> yeah your colleagues are non-functional crap
otacon- has joined #ruby
<certainty> that's not my words and i don't think it's true :)
<shevy> but they don't think functional!!!
Voker57 has joined #ruby
<shevy> I think in apples and bananas so object thinking goes so natural
<certainty> they don't think in terms of functions and idoms found in functional programming languges
AlexRussia has quit [Ping timeout: 246 seconds]
<shevy> I never understood functional programming
<certainty> where quite many discourage explicit state, especially mutable state
moeabdol has joined #ruby
<shevy> just like the bible
failshell has quit [Ping timeout: 264 seconds]
<certainty> shevy: you can still think of objects
<certainty> add arrows and you get categories (probably)
<certainty> not objects in the OO sense
pyon has joined #ruby
<baweaver> There ya go
<baweaver> Monads \o/
<certainty> shevy: some things map natural to things we know and are quite easily modeled as objects. What object would be a thing be that mirrors the identity function?
webguynow has quit [Ping timeout: 272 seconds]
<shevy> the what?
<certainty> identity function a function that returns it's argument
<certainty> its
webguynow has joined #ruby
<shevy> I even fail at parsing that statement :)
<baweaver> >> 1.itself
<ruboto> baweaver # => 1 (https://eval.in/435558)
ndrei has quit [Ping timeout: 265 seconds]
<baweaver> identity ^
karapetyan has joined #ruby
<baweaver> [1,1,2,2,3].group_by(&:itself)
<baweaver> >> [1,1,2,2,3].group_by(&:itself)
<ruboto> baweaver # => {1=>[1, 1], 2=>[2, 2], 3=>[3]} (https://eval.in/435559)
ndrei has joined #ruby
<certainty> you probably end up with an object that has no data, is just behavior. So what's the point in these things? The lines are blurry
pyon is now known as nyon
<certainty> shevy: also clojures and higher order functions is all you need to build things that embody most essential OO properties
<certainty> as a fun experiment i let our new colleagues build a pair out of functions only. They build cons/car/cdr as known in lisp just with functions
<shevy> you torture them :(
<certainty> no
<certainty> in the end they all found it very interesting
<shevy> they probably wanted to be nice to you :)
<baweaver> >> car, *cdr = [1,2,3,4,5]; car
<certainty> probably :) but i don't think so
<ruboto> baweaver # => 1 (https://eval.in/435560)
<baweaver> >> car, *cdr = [1,2,3,4,5]; cdr
<ruboto> baweaver # => [2, 3, 4, 5] (https://eval.in/435561)
otacon- has quit [Ping timeout: 272 seconds]
pawnbox_ has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 246 seconds]
blaxter has joined #ruby
<baweaver> would cdr auto-splat that?
ndrei has joined #ruby
[k- has joined #ruby
<certainty> this version only create cons cells (a . b). so it's not equivalent to the cdr in case of lists
<certainty> it's helps to realize that really data and code are really just two ways to see things
<certainty> somewhat dual
<baweaver> someone's been reading a lot of lisp.
<certainty> i'm a scheme programmer at heart
<baweaver> SICP was it?
<certainty> it's not really about homoiconicity though. it's more general
<certainty> baweaver: yeah sicp showed that as well
<certainty> i love that book
<certainty> but recently i fell in love with haskell
<certainty> not good at it, but i really like it
ndrei has quit [Ping timeout: 255 seconds]
devyn has quit [Ping timeout: 240 seconds]
tobiasvl has quit [Quit: fedup 22]
havenwood has quit [Ping timeout: 250 seconds]
DoubleMalt has quit [Ping timeout: 246 seconds]
devyn has joined #ruby
k3asd` has joined #ruby
chipotle has quit [Quit: cheerio]
baweaver has quit [Remote host closed the connection]
kedare has quit [Ping timeout: 256 seconds]
webguynow has quit [Ping timeout: 260 seconds]
webguynow has joined #ruby
tenderlove has quit [Ping timeout: 265 seconds]
devyn has quit [Ping timeout: 246 seconds]
<flughafen> oi oi oi!
<certainty> hi flughafen. What's crackin' in the capitol?
<flughafen> so much flying certainty !
<certainty> i see
kedare has joined #ruby
<flughafen> how are you doing certainty
<certainty> flughafen: i'm doing fine. A bit bored today but fine :)
<certainty> going to shop a new accoustic after work
Rollabunna has joined #ruby
<flughafen> what are you going to get?
<certainty> don't know yet. I wanted to try the taylor big baby
drewvanstone has quit [Ping timeout: 246 seconds]
<certainty> i will try some
Denis_ has joined #ruby
x-light has joined #ruby
<certainty> also i'll let them check the pickup the selector on my hagstrom. The bridge pickup sometimes just doesn't work. But i think it's a problem with the switch and not the circuitry or the pickup itself
<certainty> maybe too OT. Sorry about that
banjara has joined #ruby
devbug_ has quit [Read error: Connection reset by peer]
jgt1 has quit [Ping timeout: 260 seconds]
Rollabunna has quit [Ping timeout: 255 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devyn has joined #ruby
DoubleMalt has joined #ruby
<oddmunds> certainty: let me know if you find a place where that is _on_ topic. i want to talk about guitars.
<certainty> oddmunds: maybe #guitar ... don't know if that exists :)
lxsameer has quit [Quit: Leaving]
<oddmunds> certainty: it does, let's go there
Pupeno has joined #ruby
Pupeno has joined #ruby
marr has joined #ruby
Denis_ has quit [Quit: Leaving]
pocketprotector has quit [Ping timeout: 272 seconds]
Burgestrand has joined #ruby
groovyshark has joined #ruby
Outlastsheep has joined #ruby
<groovyshark> is math knowledge necessary for programming?
<Burgestrand> No.
Motoservo has joined #ruby
<Burgestrand> groovyshark: Sorry, forgot mention. Still no. :)
<groovyshark> what about algorithms
<yorickpeterse> morning
<Burgestrand> groovyshark: No.
khebbie has quit [Remote host closed the connection]
<Burgestrand> groovyshark: Both those things could help in certain cases, but in general programming doesn't require preparational skills to learn.
<groovyshark> you're wrong
<Burgestrand> groovyshark: You're wrong.
skade has joined #ruby
<groovyshark> you can't code a solution without figuring out an algorithm and algorithms require knowledge of math to solve
<Burgestrand> groovyshark: What kind of solution, to what problem?
<groovyshark> to any
rushed has quit [Quit: rushed]
<Burgestrand> groovyshark: I disagree.
<groovyshark> okay, do you have limited math knowledge?
neanderslob has quit [Read error: Connection reset by peer]
<Burgestrand> groovyshark: But perhaps your definition of algorithm is broader than mine.
<groovyshark> exactly my moiunt
<groovyshark> point*
<Burgestrand> groovyshark: I could argue everything is an algorithm, but that doesn't help anyone it just makes learning to program scarier.
<groovyshark> there is no specific definition of algorithm
<groovyshark> no it makes programming what it is it's not scary nor is it not scary
<groovyshark> it is what it is
<groovyshark> and telling people that they don't need to know high level math is dangerous and not beneficial to beginners
<Burgestrand> They don't.
<[k-> certainty: haskell is love, haskell is life! <3
<certainty> [k-: :) .. i also meant to have a look at some dependently typed languages. Idris would be cool since haskell
<Burgestrand> You don't need high-level math to hide an element in a web page, or to write a website to keep track of your books.
<groovyshark> giving beginners an understanding what subjects they need to know to be at the level where people are working is crucial to saving time for everyone
<shevy> and you know that all beginners need math
<groovyshark> you need math
<shevy> always
<groovyshark> shevy: he said you don't before
<Burgestrand> groovyshark: Your notion of "where people are working" is too specific.
pawnbox has joined #ruby
<shevy> FileUtils.mkdir_p('/tmp/foo') # lots of math required here
slani has quit [Remote host closed the connection]
<shevy> and he is completely right because it totally depends on what you are doing
<groovyshark> Burgestrand: my notion is jr dev level
<groovyshark> my definition&
allomov has joined #ruby
<groovyshark> my definition*
<shevy> ah, you are that gateway guy again :)
<groovyshark> but saying that you don't need math is dangerous and wastes everyone's time
webguynow has quit [Ping timeout: 246 seconds]
<Burgestrand> Yes there's trolling but it's also interesting. :)
<Burgestrand> groovyshark: Jr Dev level is not the rest of the world.
<shevy> Burgestrand :D
<groovyshark> jr dev level is the rest of the world
<Burgestrand> groovyshark: There's plenty of local businesses where they only want a simple website for simple needs, jr dev level is an illusion.
<karapetyan> ∑Ki=1R(N−i,K)
<groovyshark> the sr to jr ratio is astronomical
<karapetyan> that how it works!
webguynow has joined #ruby
<Burgestrand> groovyshark: The jr to hobby is even more so.
<groovyshark> there are a lot of jr developers and very few senior
<groovyshark> the difference between jr and sr is efficiency and knowledge
<Burgestrand> Just because your SF Bay Area startup is getting a lot of press coverage does not mean that's the norm.
startupality has joined #ruby
<groovyshark> no 99.99 % of startups fail
<Burgestrand> groovyshark: Your numbers are wrong.
<[k-> bring the debate to ?ot please
<groovyshark> well i might have embellished a little
rattatmatt has quit [Quit: Leaving]
<groovyshark> it's 90% but it's still just as bad
<Burgestrand> [k-: Sorry, I'm used to how this channel used to be a few years back when there was no OT channel. :)
<shevy> [k- is haskell offtopic!
<Burgestrand> … actually, now that there is an OT channel I can't see a clear definition of what the topic would actually be, apart from "ruby".
skade has quit [Quit: Computer has gone to sleep.]
jgt1 has joined #ruby
jgt1 has quit [Client Quit]
<[k-> shevy: a debate that looks like an argument is off limits!
jgt has joined #ruby
iamninja has joined #ruby
<Burgestrand> I would argue it's an argument that looks like a debate.
<Burgestrand> ;)
<groovyshark> [k-: it's a debate that is trying to ensure beginner's won't fall into the trap of being given wrong advice that waste's everyone's time
bigkevmcd has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
<certainty> shevy: haskell is never offtopic :p
<groovyshark> haskell is a shit language
<groovyshark> it miserably tried to copy c
<groovyshark> and it failed
<Burgestrand> What do you use to serialize JSON nowadays? YourModel#as_json, ActiveModel::Serializers, JBuilder, something else entirely?
poguez_ has quit [Quit: Connection closed for inactivity]
webguynow has quit [Ping timeout: 250 seconds]
<[k-> please take your insults to ?ot
<groovyshark> activerecord is what everyone uses
webguynow has joined #ruby
tjbiddle has joined #ruby
<Burgestrand> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<groovyshark> [k-: it's not an insult... please learn to read and if you knew a lick of haskell you'd see how pointless that language is
<Burgestrand> apeiros: You woken up yet? :)
greenarrow has quit [Quit: 500]
yfeldblu_ has joined #ruby
<[k-> please take your insults to ?ot
iamninja has quit [Ping timeout: 260 seconds]
khebbie has joined #ruby
pocketprotector has joined #ruby
<yorickpeterse> groovyshark: [k- actually writes Haskell
<yorickpeterse> groovyshark: also unless you have actual facts to back up statements like that, -> there's the door
<groovyshark> haskell is a ripoff from c
<[k-> thanks yorickpeterse
Pathfinder has quit [Ping timeout: 255 seconds]
greenarrow has joined #ruby
<groovyshark> why know haskell when you can do things more efficiently in c
<yorickpeterse> groovyshark: then you literally don't know what C and Haskell are
<groovyshark> knowing haskell is a waste of time
<atmosx> yorickpeterse: programming languages?
<atmosx> that was easy.
<groovyshark> c is the most important language to know in the world
yfeldblum has quit [Ping timeout: 246 seconds]
<yorickpeterse> groovyshark: this is also your last warning, keep it nice
<atmosx> to know in the known world.
<groovyshark> ruby is only useful to join the rails bandwagon
<groovyshark> and get a 100k salary at a startup
<groovyshark> literally all ruby libraries are written in c
Pathfinder has joined #ruby
felixr has joined #ruby
<atmosx> groovyshark: I wanna 100k salary on a startup too, but I wanna work from home. No reason to hang around when there's git and slack.
tatsuya_o has joined #ruby
<groovyshark> office orgies are a great reason to come to work at an office
<jhass> groovyshark: got a Ruby question? else this is getting rather offtopic and I'd like to ask you to stop it to keep the channel free for Ruby related problems. Thanks!
<atmosx> groovyshark: depends on the coworkers I guess. If you work for the 'Elite fashion agency' I'm all for it.
<groovyshark> i'm starting a company soon and there will be no policies against sexual behavior of any kind
<shevy> lol
<shevy> he just asks for it
<groovyshark> where is the offtopic channel?
<jhass> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<shevy> and it was triggered the moment jhass wrote something ;)
<prosodyC> That is key. Once we have threading it will be easier to read.
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
<shevy> so many gateways
gamov has quit [Quit: gamov]
radgeRayden has quit [Ping timeout: 246 seconds]
solars has quit [Ping timeout: 264 seconds]
<prosodyC> shevy: Yea. You said it.
leafybasil has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
Hounddog has joined #ruby
solars has joined #ruby
karapetyan has quit [Ping timeout: 252 seconds]
rikkipitt has joined #ruby
bigkevmcd has joined #ruby
Hounddog has quit [Ping timeout: 240 seconds]
FastJack has quit [Quit: leaving]
tvw has joined #ruby
CustosL1men has joined #ruby
<shevy> hmm we have .prepend on strings but no .append ?
Hounddog has joined #ruby
<jhass> it's called <<
<certainty> no Method#compose :(
<shevy> yeah but it looks non-synergistic when I also use .prepend :(
<shevy> string = ''
webguynow has quit [Ping timeout: 265 seconds]
<shevy> string.prepend 'hello '
<shevy> string << 'world!'
f4cl3y has joined #ruby
<certainty> string = "hellow world!"
<Burgestrand> >> "prepend" << "original" << "append"
<ruboto> Burgestrand # => "prependoriginalappend" (https://eval.in/435583)
<certainty> *scnr*
<Burgestrand> Slightly different semantics, keep that in mind.
webguynow has joined #ruby
leafybasil has joined #ruby
<certainty> if the strings are fresh it's no problem, but if the aren't :(
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zotherstupidguy has joined #ruby
<shevy> will this even work on ruby 3.0
CustosL1men has quit [Ping timeout: 272 seconds]
zotherstupidguy has quit [Client Quit]
devyn has quit [Ping timeout: 256 seconds]
felixr has quit [Ping timeout: 240 seconds]
<jhass> dunno, is there talk about immutable strings?
Balzrael has joined #ruby
<shevy> no real idea :)
<certainty> i hope so
<shevy> hehe
<shevy> I knew you showed require 'mutable_string'!
<Burgestrand> >> str = "original"; str[0, 0] = "prepend"; str[-1, 0] = "append"
<ruboto> Burgestrand # => "append" (https://eval.in/435584)
felixr has joined #ruby
<Burgestrand> >> str = "original"; str[0, 0] = "prepend"; str[-1, 0] = "append"; str
<ruboto> Burgestrand # => "prependoriginaappendl" (https://eval.in/435585)
<shevy> Burgestrand yeah, that was what I was thinking too...
<Burgestrand> We need a -0.
<shevy> "if I use [], then it can be synergistic - only differences would be the numbers"
webguynow has quit [Ping timeout: 272 seconds]
<shevy> or to use >> along with <<
<shevy> :D
webguynow has joined #ruby
astrobunny has quit [Remote host closed the connection]
miguelff has quit [Quit: miguelff]
devyn has joined #ruby
CloCkWeRX1 has quit [Ping timeout: 240 seconds]
<Burgestrand> certainty: This is maybe a good place to use refinements ;)
fandi has joined #ruby
<Burgestrand> I feel it's way overkill just to make code look pretty. :)
tobiasvl has quit [Remote host closed the connection]
<yorickpeterse> did somebody just literally suggested refinements?
<BLuEGoD> using EM Deferrable, how do I wait for the callback to succeed? - it's basically setting a value I need to return from that method...
<certainty> Burgestrand: you mean refinements to alter << in the context i want?
<Burgestrand> certainty: refinements to make sure there is a String#append and String#prepend!
<certainty> Burgestrand: oh ok :)
<adaedra> Hello
<Burgestrand> adaedra: Hi! Welcome.
<certainty> o/
<[k-> welcome adaedra
nofxx has quit [Ping timeout: 250 seconds]
CustosL1men has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
unop has joined #ruby
devoldmx has quit [Remote host closed the connection]
tvl has joined #ruby
tvl is now known as tobiasvl
miguelff has joined #ruby
banjara has quit [Quit: Leaving.]
tatsuya_o has joined #ruby
Gengxin has joined #ruby
Gengxin has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
skade has joined #ruby
workmad3 has quit [Quit: Lost terminal]
Igorshp has joined #ruby
Pathfinder has quit [Ping timeout: 240 seconds]
miguelff has quit [Ping timeout: 246 seconds]
tkuchiki has quit [Remote host closed the connection]
failshell has joined #ruby
Igorshp has quit [Remote host closed the connection]
Pupeno has quit [Quit: Leaving...]
pawnbox has quit [Remote host closed the connection]
Igorshp has joined #ruby
haraoka has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
FastJack has joined #ruby
pawnbox has joined #ruby
groovyshark has quit [Quit: Page closed]
Burgestrand has quit []
failshell has quit [Ping timeout: 246 seconds]
subshad has quit [Ping timeout: 250 seconds]
naps62 has joined #ruby
rdark has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
webguynow has quit [Ping timeout: 252 seconds]
webguynow has joined #ruby
karapetyan has joined #ruby
pawnbox_ has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
Beoran_ has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
lysw123 has joined #ruby
dionysus69 has joined #ruby
justinmcp_ has quit []
Beoran has quit [Ping timeout: 244 seconds]
solars has quit [Ping timeout: 250 seconds]
CustosL1men has quit [Ping timeout: 264 seconds]
mprelude has joined #ruby
konsolebox has joined #ruby
pawnbox has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
workmad3 has joined #ruby
pawnbox__ has joined #ruby
pawnbox_ has quit [Read error: Connection reset by peer]
lysw123 has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox__ has quit [Remote host closed the connection]
nyon has quit [Quit: F...ix you... something other than Emacs.]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
cih_ has joined #ruby
lysw123 has joined #ruby
tenderlove has joined #ruby
araujo_ has joined #ruby
cih has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
CustosL1men has joined #ruby
cvtsx has quit [Quit: Leaving]
Igorshp has quit [Remote host closed the connection]
Rollabunna has joined #ruby
khebbie has quit [Remote host closed the connection]
araujo has quit [Ping timeout: 252 seconds]
toretore has joined #ruby
pyon has joined #ruby
minimalism has quit [Quit: leaving]
Igorshp has joined #ruby
<[k-> with this, I'll become unstoppable!!!
<adaedra> everybody run
dhjondoh has quit [Quit: dhjondoh]
<yorickpeterse> first you got to find a job
<yorickpeterse> HE SHOOTS
<yorickpeterse> HE SCORES
<yorickpeterse> ᕕ(ᐛ)ᕗ
Rurik has joined #ruby
<certainty> also never create a document about how to write unmaintainable code in a way that is pleasing to the eye and easy to read :)
Rollabunna has quit [Ping timeout: 250 seconds]
<adaedra> This lacks some Comic Sans
<shevy> [k- yeah well I guess he refers to unmaintainable languages :)
Hrorek has joined #ruby
Rurik has quit [Read error: Connection reset by peer]
SenpaiSilver_ has quit [Quit: Leaving]
<shevy> epic quote from the page "Java is schizophrenic"
SenpaiSilver has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
dhjondoh has joined #ruby
timonv has joined #ruby
<adaedra> Before I was schizophrenic. Now we're doing fine.
<shevy> certainty you know, the 1990 era of the www
<shevy> blinking marquee
Rutix has joined #ruby
Rutix has joined #ruby
<certainty> shevy: oh yeah the good stuff
Burgestrand has joined #ruby
khebbie has joined #ruby
pimpin has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
ponga has joined #ruby
karapetyan has quit [Remote host closed the connection]
Rickmasta has joined #ruby
drewvanstone has joined #ruby
karapetyan has joined #ruby
devoldmx has joined #ruby
khebbie has quit [Ping timeout: 250 seconds]
webguynow has quit [Ping timeout: 250 seconds]
webguynow has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
drewvanstone has quit [Ping timeout: 246 seconds]
Pathfinder has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
khebbie has joined #ruby
dhjondoh has joined #ruby
Rollabunna has joined #ruby
hadrig has joined #ruby
iamninja has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
stamina has joined #ruby
karapetyan has joined #ruby
r_baron has joined #ruby
Hrorek is now known as Rurik
Rurik has quit [Changing host]
Rurik has joined #ruby
iamninja has quit [Ping timeout: 250 seconds]
webguynow has quit [Ping timeout: 255 seconds]
webguynow has joined #ruby
<izzol_> I need to create nice console output from my code, I'm looking some nice gem which will help to me create some sort of tables, colors or whatever which will help to see the output correctly
bruno- has joined #ruby
lysw123 has quit [Quit: Textual IRC Client: www.textualapp.com]
<certainty> izzol_: one such thing is highline
<certainty> also terminal-table
JDiPierro has joined #ruby
pyon is now known as nyon
JDiPierro has quit [Remote host closed the connection]
MagePsycho has joined #ruby
<shevy> izzol_ term-ansicolors for colors; for table, there was some ascii table generator. https://github.com/flori/term-ansicolor
bruno- has quit [Ping timeout: 250 seconds]
toretore has quit [Quit: This computer has gone to sleep]
<shevy> ohhhhh
dhjondoh has quit [Quit: dhjondoh]
leat has quit [Ping timeout: 240 seconds]
tjbiddle has quit [Quit: tjbiddle]
sdothum has joined #ruby
<shevy> hmm... how many ways do we have in ruby to create a directory... we can use fileutils mkdir ... and we could use system() too, e. g. to use coreutils mkdir. Are there any other ways?
youngbaks has joined #ruby
<workmad3> shevy: do you count fileutils mkdir_p to be a different way?
skade has joined #ruby
<certainty> that's more like creating a path :p
phutchins has joined #ruby
_MiW is now known as MiW
tkuchiki has joined #ruby
<shevy> workmad3 would be same, I am more thinking whether there is some exotic way via ffi or something
<certainty> Dir.mkdir
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty> are you bored shevy? xD
<shevy> I think we have a bit more variants when it comes to delete a file, at least, there is File.delete() but also a FileUtils* variant and the system() way
JDiPierro has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<shevy> certainty nope! I am working on something and using FileUtils right now to create a directory
<certainty> shevy: and you want to find the most exotic way to do it?
<workmad3> shevy: well, you could do all sorts of exotic things with ffi... you could use that to invoke C functionality... you could create a bridge between, say, PHP and ruby using FFI and use PHP's functionality... you could write a ruby program that outputs a python script to create a directory and execute it...
<izzol_> certainty: shevy thanks! I will check it ;-)
<workmad3> shevy: you could potentially write a C program that creates a directory by directly making system calls, and then invoke it from ruby using FFI...
<certainty> you could probably fiddle with the inode table and make another file appear to be a directory
<certainty> idk
<certainty> or a kernel module
<workmad3> certainty: yeah, I was wondering about that... seeing as directories in unix are just a special type of file, I wondered if you could write out a file with the correct contents and then set the directory bit on it
<shevy> certainty all variants :)
<workmad3> it required more than 10 seconds of googling to figure out though :)
Rollabunna has quit [Quit: Leaving...]
<certainty> shevy: well you can create a file via many webservices xD
<certainty> and directories
blueOxigen has joined #ruby
<certainty> webdav also
rodfersou has joined #ruby
webguynow has quit [Ping timeout: 240 seconds]
<shevy> workmad3 cool
webguynow has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
<shevy> one more reason to use ffi one day!
nfk has joined #ruby
<workmad3> heh :) write a sinatra service that creates a directory, run it on your machine, then write another sinatra service that will call back to that service when you hit it, run it on a remote server and then write a local ruby script that makes a request to the remote service
tcopeland has quit [Quit: Leaving.]
<certainty> or make php call that service to get the round trip
<workmad3> shevy: heh :) I doubt using FFI will replace FileUtils.mkdir as the goto method of creating directories ;)
leafybasil has quit [Remote host closed the connection]
r_baron has quit [Ping timeout: 265 seconds]
<workmad3> shevy: in fact, I think a language that gave that as the way to interact with the filesystem is the equivalent of doing this ;) http://zeroturnaround.com/wp-content/uploads/2015/09/erlang-map-reduce-comic.jpg
leafybasil has joined #ruby
glenn_ has quit [Quit: Konversation terminated!]
DoubleMalt has quit [Read error: Connection reset by peer]
devyn has quit [Ping timeout: 260 seconds]
araujo_ has quit [Quit: Leaving]
pimpin has quit [Remote host closed the connection]
devyn has joined #ruby
havenwood has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
Rurik has quit [Ping timeout: 252 seconds]
JDiPierro has joined #ruby
JDiPierro has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
leat has joined #ruby
prestorium has joined #ruby
dariasmc has joined #ruby
webguynow has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby
webguynow has joined #ruby
chills42 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
akemrir has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rurik has joined #ruby
blaxter has quit [Quit: foo]
konsolebox has quit [Ping timeout: 264 seconds]
greenarrow has quit [Quit: 500]
krz has quit [Quit: WeeChat 1.2]
<certainty> workmad3: haha :)
karapetyan has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
devoldmx has joined #ruby
pawnbox_ has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
solocshaw has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
nettoweb has joined #ruby
<Burgestrand> Could anybody shed some light in Rational vs. BigDecimal?
einarj has joined #ruby
webguynow has quit [Ping timeout: 252 seconds]
leat1 has joined #ruby
karapetyan has joined #ruby
leat has quit [Ping timeout: 250 seconds]
webguynow has joined #ruby
x-light has quit [Ping timeout: 255 seconds]
youngbaks has quit [Ping timeout: 240 seconds]
akemrir has quit [Quit: WeeChat 1.3]
Pupp3tm4st3r has joined #ruby
<Burgestrand> Aha, bigdecimal is not true accuracy, I guess rational is closer to true accuracy.
greenarrow has joined #ruby
ldnunes has joined #ruby
<Burgestrand> >> (BigDecimal.new("100") / BigDecimal.new("5.1")) * BigDecimal.new("5.1") == BigDecimal.new("100")
<ruboto> Burgestrand # => uninitialized constant BigDecimal (NameError) ...check link for more (https://eval.in/435721)
<Burgestrand> >> require "bigdecimal"; (BigDecimal.new("100") / BigDecimal.new("5.1")) * BigDecimal.new("5.1") == BigDecimal.new("100")
<ruboto> Burgestrand # => false (https://eval.in/435722)
<Burgestrand> >> (Rational("100") / Rational("5.1")) * Rational("5.1") == Rational("100")
<ruboto> Burgestrand # => true (https://eval.in/435723)
skade has joined #ruby
hotguitar has joined #ruby
leat1 has quit [Ping timeout: 252 seconds]
webguynow has quit [Ping timeout: 244 seconds]
webguynow has joined #ruby
jgt has joined #ruby
Rurik has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
Rurik has joined #ruby
monod has joined #ruby
youngbaks has joined #ruby
tommylom1ykins is now known as tommylommykins
failshell has joined #ruby
RandyT has quit [Ping timeout: 246 seconds]
pwnd_nfsw has joined #ruby
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
syath has joined #ruby
Igorshp has quit [Remote host closed the connection]
fandi has quit [Ping timeout: 256 seconds]
failshell has quit [Ping timeout: 246 seconds]
fandi has joined #ruby
pwnd_nfsw has quit [Ping timeout: 240 seconds]
<yorickpeterse> oh jesus, HAML's compiler ._______.
atomical has joined #ruby
suchness_ has joined #ruby
elperdut has joined #ruby
but3k4 has joined #ruby
motorush has joined #ruby
<motorush> hi
RandyT has joined #ruby
leat1 has joined #ruby
ekain has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
thramosal has joined #ruby
yardenbar has joined #ruby
drewvanstone has joined #ruby
devyn has quit [Ping timeout: 256 seconds]
<jhass> motorush: welcome, if you got a question just ask it ;)
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
webguynow has quit [Ping timeout: 250 seconds]
webguynow has joined #ruby
AndChat-43764 has quit [Ping timeout: 260 seconds]
drewvanstone has quit [Ping timeout: 246 seconds]
Luming has joined #ruby
thramosal has quit [Quit: Leaving]
Pupp3tm4st3r has quit [Quit: Leaving...]
Igorshp has joined #ruby
pwnd_nfsw has joined #ruby
pwnd_nfsw is now known as pwnd_nsfw
Luming has quit [Remote host closed the connection]
webguynow has quit [Ping timeout: 244 seconds]
webguynow has joined #ruby
jgt has quit [Ping timeout: 246 seconds]
markbrazil has joined #ruby
lkba has joined #ruby
leat1 has quit [Ping timeout: 250 seconds]
devyn has joined #ruby
startupality has quit [Quit: startupality]
thramosal has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
Igorshp has quit [Remote host closed the connection]
Feyn has quit [Quit: Leaving]
rikkipitt has quit [Remote host closed the connection]
iamninja has joined #ruby
stardiviner has joined #ruby
decoponio has joined #ruby
<stardiviner> I got error when start robe on Emacs, it reports error, seems readline or libncursesw.so error on ruby which installed with rbenv. Here is the link: https://gist.github.com/stardiviner/ed06e23d054fee68ffef
<stardiviner> Does anybody knows how to fix it?
<jhass> stardiviner: did you try the suggestion present in the error message?
<stardiviner> jhass: I'm using Arch Linux, and I checked my installed package, "readline" is installed
<jhass> tried rebuilding your Ruby then?
thramosal has quit [Quit: Leaving]
hadrig has quit []
<stardiviner> and package "ncurses" is installed too.
dgutierrez1287 has joined #ruby
leat1 has joined #ruby
<stardiviner> jhass: should I remove installed ruby from rbenv, and re-insatll it?
<jhass> yep
<stardiviner> jhass: why? I can't understand, I have not update ruby version.
<jhass> actually arch updated ncurses to 6 recently, so a rebuild is expected
<stardiviner> jhass: re-installing.
<jhass> if you look closes it's still inked against 5
<jhass> *closely
<stardiviner> jhass: aha, I get it. thanks very much, I check my ncurses version, it's 6.0-3. you're right.
<stardiviner> jhass: really thanks
<jhass> yw
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
jas02 has joined #ruby
maasha has joined #ruby
<maasha> if it possible to traverse a tree with a recursive each method?
siaw has joined #ruby
yfeldblu_ has quit [Ping timeout: 240 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<SebastianThorn> Hi, i got a problem with a csv-format whn importing a csv-file.
<siaw> can i please get some help with this?
<yorickpeterse> &ri String#=~
<`derpy> http://www.rubydoc.info/stdlib/core/String#%3D%7E-instance_method
karapetyan has quit [Read error: Connection reset by peer]
<yorickpeterse> &ri String#match
<yorickpeterse> &ri String#scan
<yorickpeterse> siaw: ^ read up on those methods
<SebastianThorn> the format escapes , with \, and that makes the csv-parser shift the values one steap
<SebastianThorn> step*
Rickmasta has joined #ruby
<siaw> yorickpeterse: thanks
maasha has quit [Ping timeout: 246 seconds]
karapetyan has joined #ruby
motorush has quit [Quit: Page closed]
<SebastianThorn> the docs of the format says this about escaping csv: http://pastie.org/10428885
karapety_ has joined #ruby
<karapety_> i ve got next formula http://prntscr.com/8hp26d and this code implement it: https://gist.github.com/karapetyan/c90c2613c09aaf063780
<SebastianThorn> not sure how i can fix this, any ideas?
andyrs has joined #ruby
segfalt has quit [Quit: segfalt]
naps62 has quit [Ping timeout: 246 seconds]
anisha_ has joined #ruby
naps62 has joined #ruby
karapetyan has quit [Read error: No route to host]
<jhass> karapety_: you lack the loop for the summation
<stardiviner> jhass: ask you one question, If I want to keep my previous installed Gems, what should I do to rebuild my ruby version in rbenv?
<karapety_> jhass: don't understand
<jhass> stardiviner: I don't use rbenv
dorei has joined #ruby
<SebastianThorn> one field looks like this #70007\,0510 but the csv-lib makes that into 2 values, #70007\ and 0510
<jhass> karapety_: actually where did you get that formula from? Looks like it's non-terminating?
anisha has quit [Ping timeout: 256 seconds]
<karapety_> it's a forum
<karapety_> yes, seems lke...
<stardiviner> jhass: oh, sorry
<karapety_> jhass: actually ive got huge problem with math
<karapety_> and with understanding loops ( nested loops, and recursive)
<jhass> that formula makes no sense, at least not if that's really all there is to it
youngbaks has quit [Quit: WeeChat 1.3]
lsmola has quit [Ping timeout: 240 seconds]
<karapety_> could you recommend some tasks to improve that skills
<karapety_> cause i can't (execute nested loops code in my head)
webguynow has quit [Ping timeout: 246 seconds]
<karapety_> +)
<jhass> SebastianThorn: ouch, and that while CSV actually defines a proper escape format...
webguynow has joined #ruby
atomical has joined #ruby
karapety_ has quit [Remote host closed the connection]
<SebastianThorn> jhass: you think there is anything i can do?
<jhass> SebastianThorn: well, write a parser for that
Pathfinder has quit [Ping timeout: 250 seconds]
lkba_ has joined #ruby
lkba has quit [Read error: Connection reset by peer]
<jhass> for a simple one, read line, iterate from 0..line.size, consume line[i] into a temporary string, yield and then clear it upon encountering , if line[i-1] != "\\"
markbrazil has quit [Quit: Leaving]
centrx has joined #ruby
<jhass> oh and ignore "\\" instead of adding it to the temporary string, unless line[i-1] == "\\" and so on
vdamewood has joined #ruby
<SebastianThorn> jhass: ye, that could be a solution
<SebastianThorn> jhass: i thought of replacing \, with ; while reading the file from disk
<jhass> SebastianThorn: what about \\, or \\\, ;)
<SebastianThorn> STOP
<jhass> hence simple parser is easier than regex or substitution
<SebastianThorn> i just wanna get it working for this week so i can have a chill weekend :P
<jhass> implementing ^ should cost less than an hour, try it
lkba_ has quit [Read error: Connection reset by peer]
<certainty> then write a parser dude
lkba has joined #ruby
<SebastianThorn> ye, you are right
<jhass> stick it into class Line; include Enumerable; def initialize(line); @line; end; def each; # ...; end; end; and you can Line.new(line).to_a to get a row
<jhass> well, maybe name it BrokenCSV::Row :P
voltalio has joined #ruby
jgt has joined #ruby
moshe has joined #ruby
<SebastianThorn> never done anything like this, recon it's gonna take a while :)
Rurik has quit [Ping timeout: 250 seconds]
<SebastianThorn> thanks for the help! :)
moshe is now known as moshef
lsmola has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
ignatiusjreilly has joined #ruby
<moshef> I’m trying to debug a gem while working in a rails app, but I’m asking here because I don’t think it’s related to rails.
<moshef> I’m using ruby 2.1.2 and pry-byebug, I open the gem code using bundle show, add bidning.pry somewhere but it doesn’t work
ignatiusjreilly has quit [Quit: ChatZilla 0.9.92 [Firefox 38.0/20150511103818]]
mdst has joined #ruby
devoldmx has joined #ruby
Burgestrand has quit []
<moshef> I used to do it quite often in the past when worked in earlier versions (ruby/rails, and I think I used pry-debugger rather than pry-byebug). I’m trying to understand if anything has changed since then..
pawnbox_ has quit [Read error: Connection reset by peer]
ignatiusjreilly has joined #ruby
pawnbox has joined #ruby
<moshef> the workaround is to install the gem locally, use ‘require_reloader’ gem which relaods the gems, and only then I can debug it..
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rurik has joined #ruby
Rurik has quit [Changing host]
Rurik has joined #ruby
<shevy> can I make a regex non-greedy? as in "match to the closest match, not to the maximum match"
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
failshell has joined #ruby
victortyau has joined #ruby
psy_ has quit [Ping timeout: 256 seconds]
<shevy> oh wait, solved it
<shevy> by using \S rather than .
ignatiusjreilly has quit [Client Quit]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ignatiusjreilly has joined #ruby
<certainty> shevy: these are not interchangable
DoubleMalt has joined #ruby
voltalio has joined #ruby
<shevy> my regex works now!!!
ignatiusjreilly has quit [Client Quit]
devoldmx has quit [Ping timeout: 256 seconds]
tcopeland has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
monod has quit [Ping timeout: 250 seconds]
<shevy> regexes make my brain go wild
jdawgaz has joined #ruby
<certainty> wild thing
unop has quit [Ping timeout: 244 seconds]
<shevy> I'd love to see a brain-plot power diagram, which part of coding costs the most energy, requires the largest amount of neurons activated and so on and so forth
Igorshp has joined #ruby
k3asd` has quit [Ping timeout: 246 seconds]
tomaz_b has quit [Ping timeout: 256 seconds]
hinbody has joined #ruby
dstarh has joined #ruby
devyn has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
cih_ has quit [Ping timeout: 246 seconds]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox_ has joined #ruby
aganov has joined #ruby
linuxboytoo has quit [Remote host closed the connection]
sgambino has joined #ruby
krz has joined #ruby
linuxboytoo has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
konsolebox has joined #ruby
segfalt has joined #ruby
mikecmpbll has joined #ruby
allomov has quit [Remote host closed the connection]
leafybas_ has joined #ruby
pecpec has joined #ruby
CloCkWeRX has joined #ruby
pawnbox has joined #ruby
p0wn3d__ has joined #ruby
khebbie has quit [Remote host closed the connection]
konsolebox has quit [Max SendQ exceeded]
konsolebox has joined #ruby
bmurt has joined #ruby
leafybasil has quit [Ping timeout: 246 seconds]
pawnbox_ has quit [Ping timeout: 256 seconds]
atomical has joined #ruby
karapetyan has joined #ruby
ruby-lang295 has joined #ruby
fandi has quit [Quit: Leaving]
<ruby-lang295> hi
khebbie has joined #ruby
JoshL has joined #ruby
<karapetyan> how to retrieve messages in channel if i was disconnected ?
<Kero> karapetyan: see topic :)
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<karapetyan> Kero: :)
<karapetyan> thx
devyn has joined #ruby
kappy has joined #ruby
sanjayu has quit [Ping timeout: 252 seconds]
atomical has quit [Ping timeout: 255 seconds]
timonv has quit [Read error: Connection reset by peer]
webguynow has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
solocshaw has quit [Remote host closed the connection]
webguynow has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
solocshaw has joined #ruby
ruby-lang295 has quit [Quit: Page closed]
<Cork> anyone know of a small package for constructing restful urls?
sankaber has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
pecpec has quit [Remote host closed the connection]
startupality has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solocshaw has quit [Ping timeout: 246 seconds]
solocshaw1 has joined #ruby
amystephen has joined #ruby
naftilos76 has joined #ruby
da3mian has joined #ruby
solocshaw1 is now known as solocshaw
omilun has joined #ruby
<omilun> hello ... i need to change color of irb shell
nateberkopec has joined #ruby
voltalio has joined #ruby
<bougyman> omilun: have you tried pry?
nickjj_ has joined #ruby
<shevy> omilun have you installed wirble yet?
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> whoa... last update 6 years ago
<omilun> bougyman: tried pry ? what is it?
<omilun> shevy: yes ... i have it
<omilun> shevy: it's great
<omilun> shevy: but it dose not have color option
p0wn3d__ has quit [Ping timeout: 252 seconds]
elperdut has joined #ruby
beast has joined #ruby
<shevy> ok
khebbie has quit [Remote host closed the connection]
<omilun> i need to chenge color this character : >
nickjj has quit [Ping timeout: 255 seconds]
<omilun> shevy: first caracter in irb
<bougyman> omilun: pry is an alternative to irb
<bougyman> it has fancy prompt stuff and colors on by default
<shevy> yeah well
<shevy> omilun it should be easy if you can find the place where it does >
vdamewood has quit [Ping timeout: 246 seconds]
<omilun> bougyman: no i dont have it
<shevy> then you can .prepend the ansicolours to it
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
<shevy> ruby-token.rb: [:TkGT, TkOp, ">"],
<shevy> not sure if this is the right file
<shevy> it's part of: TokenDefinitions = [[:TkGT, TkOp, ">"],
<shevy> in module RubyToken
<omilun> shevy: i have irbrc ... can change on it?
<shevy> not sure
<shevy> you can possibly reassign to the constant array there
<omilun> bougyman: how can i install pry? gem install pry?
<bougyman> yes
<shevy> old_copy = RubyToken::TokenDefinitions
<omilun> shevy: wow
CloCkWeRX has joined #ruby
<shevy> and then find the proper entry, prepend ansi colour... "\e[1;34m>\e[0;37m"
<shevy> that should make a blue >
<shevy> the irb source is a mess :\
<shevy> def_exception(:TkSymbol2TokenNoKey, "key nothing(key='%s')")
s00pcan has joined #ruby
nickjj has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
inteq has quit [Remote host closed the connection]
<omilun> shevy: ammm i cant understand . :D
mary5030 has joined #ruby
moshef has quit [Quit: moshef]
rippa has joined #ruby
nickjj_ has quit [Ping timeout: 255 seconds]
<shevy> well you can look at the copy in irb right? require 'pp; old_copy = RubyToken::TokenDefinitions; pp old_copy
<shevy> oops
pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> require 'pp'; old_copy = RubyToken::TokenDefinitions; pp old_copy; ''
<shevy> hmm
hs366 has joined #ruby
subshad has joined #ruby
deject3d has joined #ruby
nettoweb has joined #ruby
Burgestrand has joined #ruby
<shevy> oops... the return value is '=>' not '>'
deject3d has left #ruby [#ruby]
freerobby has joined #ruby
solocshaw has quit [Read error: Connection reset by peer]
solocshaw has joined #ruby
devdazed has joined #ruby
mjuszczak has joined #ruby
sonne_ is now known as sonne
sonne has quit [Changing host]
sonne has joined #ruby
<omilun> shevy: dosent work
karapetyan has quit [Remote host closed the connection]
<shevy> yeah I noticed I looked at the wrong token anyway :(
karapetyan has joined #ruby
<omilun> shevy: :(
<shevy> irb has even weird method calls such as: Token(op)
<omilun> shevy: aha
<shevy> I thought this might be the right one: [:TkASSOC, TkOp, "=>"]
<shevy> but it probably is only meant for Hashes, not the return value
nateberkopec has quit [Ping timeout: 255 seconds]
Rollabunna has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
<omilun> shevy: it's hard for me ... i'm a beginner
moeabdol has quit [Quit: WeeChat 1.3]
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> it's hard for me as well :)
<omilun> bougyman: pry have complition ?
hotguitar has quit [Remote host closed the connection]
jahpereira has joined #ruby
<izzol_> hmm, if I have a project in /opt/project1/ where I have a structure: bin, lib, test and so on. How I can include that project to the other file which is located in lets say /root/ ?
<jahpereira> good afternoon from Portugal
tacit7 has joined #ruby
<jahpereira> can anyone spare a min to help me out please?
<jahpereira> I am a junior developer currently working on a ruby on rails app
<izzol_> good afternoon from Germany ;-)
nym has quit [Quit: Connection closed for inactivity]
<jahpereira> hey izzol_ :)
bradland has quit [Ping timeout: 240 seconds]
_lexjm has joined #ruby
phantasm66 has joined #ruby
<jahpereira> and in order to understand the frontend part
<jahpereira> I bought a theme which I am trying to manipulate in order to get a grasp os scss and .erb files
<omilun> bougyman: it like irb ... how can i change it?
<jahpereira> but for example just to change a logo
sdothum has quit [Ping timeout: 240 seconds]
<jahpereira> i do not find any path to a *.png file which is driving me crazy
<jahpereira> I have spent the last hour trying to find a icon in order to change it
<jahpereira> can anyone help me out
<jahpereira> my erb file has this code:
<jahpereira> <a href="<%= root_url %>" class="logo">
<jahpereira> <i class="brankic-pen"></i>
<jahpereira> </a>
krz has quit [Ping timeout: 250 seconds]
tvw has quit [Ping timeout: 256 seconds]
<jahpereira> and scss:
<jahpereira> .logo {
<jahpereira> .brankic-pen {
<jahpereira> color: #000000;
<jahpereira> }
<jahpereira> }
<izzol_> :(
<jahpereira> no url, asset_path, asset_logo nothing o.O
<izzol_> jahpereira: Paste >3 lines of text on https://gist.github.com
bradland has joined #ruby
sdothum has joined #ruby
<jahpereira> probably this is a super dumb question but I only started learning RoR this week
tvw has joined #ruby
<Burgestrand> ?help
<ruboto> You can find an overview of my commands at http://ruby-community.com/ruboto/commands
tagrudev has quit [Remote host closed the connection]
<jahpereira> sorry izzol
<Burgestrand> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<Burgestrand> Hmm.
rbennacer has joined #ruby
<Burgestrand> ?flood
<ruboto> Please use https://gist.github.com for more than three lines of text!
<Burgestrand> A-ha!
<jahpereira> my question basically is: how just .brankic-pen {
<jahpereira> color: #8CAAC0;
<jahpereira> } references an image? (which I don’t find)
<jhass> how did I end up in #css?
<Burgestrand> jahpereira: again with the code, paste it in an appropriate location and link to it.
<jahpereira> but its below 3 lines o.O
<Burgestrand> jahpereira: without looking at the rest of your code, it's not uncommon to have a "require" somewhere in the CSS, which could include additional styling for your class.
_lexjm has quit [Ping timeout: 272 seconds]
momomomomo has joined #ruby
<jahpereira> Burgestrand: hum
<Burgestrand> jahpereira: the web inspector in your browser would probably help you to see where the image is coming from!
davispuh has joined #ruby
<jahpereira> yoep
<jahpereira> already did that
<jhass> might also be a gem
<jahpereira> the html code just says <i class="brankic-pen"></i>
<jahpereira> Burgestrand: or do you mean by analyzing the resources?
<jhass> jahpereira: so if you inspect that element, what locations do you get for associated CSS?
<Burgestrand> jahpereira: there's a style inspector in your web inspector, too!
meatherly has joined #ruby
youngbaks has joined #ruby
* jhass bets on a icon font coming from a gem
<jahpereira> ok
<jahpereira> used style inspector
<jahpereira> content: "\e6db";
<jahpereira> i guess its an icon font
<jhass> yup, that confirms the icon font
<Burgestrand> jahpereira: sounds about right!
<jhass> now the inspector should also show the location of that directive
<jahpereira> can anyone point me in the right direction
<jahpereira> on whether to replace this with a logo of mine
<jhass> which should give some clues as to where it comes from
<jahpereira> i have an image logo.png
<jahpereira> from what i read i should include it in the app>assets folder is that right?
ruby-95_ has joined #ruby
<Burgestrand> jahpereira: for one, remove the <i>-tag in your HTML.
<jhass> app/assets/images, yes
<jhass> and then just use <%= image_tag "logo.png" %> instead of the <i> tag
jgt has quit [Ping timeout: 256 seconds]
<Burgestrand> jahpereira: secondly, you'll most likely just want to add an image tag, ^
<jahpereira> hum
amicuscuriae has joined #ruby
<amicuscuriae> hi
<jhass> hi
<amicuscuriae> What's up
<jahpereira> Burgestrand: can u please expand more on image tags?
<ruby-95_> Hi guys. I have a question. What does it mean when a regular expression such as /a/ matches the 'a' in the string 'cat'? What does the word 'matches' mean here?
<Burgestrand> jahpereira: I get a feeling you might want to learn some more basic HTML and CSS, have a look at e.g. https://www.codecademy.com/en/tracks/htmlcss
<amicuscuriae> Is Ruby the most easiest with syntax and beginner friendly lang?
atomical has joined #ruby
felixr has quit [Quit: Konversation terminated!]
<momomomomo> why not md5 both
<amicuscuriae> is it good for GUI?
Porfa has joined #ruby
<amicuscuriae> Does it compile to binaries?
startupality_ has joined #ruby
<Porfa> yeheyllo!
<momomomomo> oh weird, was seeing a discussion from last night
<Burgestrand> ruby-95_: Yes.
startupality has quit [Ping timeout: 244 seconds]
startupality_ is now known as startupality
<momomomomo> ruby-95_: http://rubular.com
<jhass> ruby-95_: that depends on the operation, usually it means you can extract it, confirm there's a match or not, or replace the match
<Burgestrand> amicuscuriae: No, no, no.
<ruby-95_> 'matches' here means 'finds' right?
<jhass> >> s = "cat"; [s[/a/], s.match(/a/), s =~ /a/, s.sub(/a/, 'b')]
<ruboto> jhass # => ["a", #<MatchData "a">, 1, "cbt"] (https://eval.in/435792)
<jhass> ruby-95_: ^ that are your most common options
<jhass> >> s = "dog"; [s[/a/], s.match(/a/), s =~ /a/, s.sub(/a/, 'b')]
<ruboto> jhass # => [nil, nil, nil, "dog"] (https://eval.in/435795)
<jahpereira> Burgestrand: i have someknowledge of html and css
<ruby-95_> jhass: yes I get that, but what does 'matches' mean? does it mean 'to find a match for'?
<jahpereira> i just dont knwo much about rails
<jhass> ruby-95_: ^ compare to these examples that have no matches
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
<ruby-95_> like /a/ matches 'a' in 'cat'
<jahpereira> i would like to point out in the erb file to the scss class
<jahpereira> and then reference logo.png in sign_in.scss
<jhass> ruby-95_: I'm not sure if there's an outright synonym, what's your native language?
<Burgestrand> jahpereira: you can use a regular HTML-tag, too: <img src="…">, the difference is that you'll want to use "asset_path" to make the URL to the image correct.
pawnbox_ has joined #ruby
<amicuscuriae> Burgestrand, omg what? it don't compile to binaries?
<ruby-95_> It's english but this has been confusing me for days.
<jahpereira> Burgestrand: what you are saying is that i sould add <%= image_tag "logo.png" %> in the .erb file
<Burgestrand> jahpereira: yes.
hashrocket has joined #ruby
<jahpereira> but is this a correct practice?
<Burgestrand> amicuscuriae: I'm sorry, but you asked three questions so I tried to answer them all!
<jahpereira> should only the scss file know about the file logo.png?
momomomomo has quit [Quit: momomomomo]
andyrs has joined #ruby
<jahpereira> Burgestrand: shouldn’t
<jhass> ruby-95_: maybe one could say it fits, the pattern (regex) fits the string or not, like a bottle cap may fit a bottle or not
<SebastianThorn> jhass: ok ,managed to build a function that seems to do what i want
dgutierrez1287 has quit [Remote host closed the connection]
<jhass> SebastianThorn: great
<shevy> like a bottle cap may fit a bottle ... we are getting fairly philosophical here!
<Burgestrand> jahpereira: no, it's OK to code paths to assets in your HTML, that's what HTML does in using <img src="">-tag.
<Burgestrand> jahpereira: you could do some trickery with an empty element and background images if you want, but I wouldn't say that's any better, probably the other way around.
<jahpereira> Burgestrand: right
<jahpereira> Burgestrand: so, before I try it out
<amicuscuriae> Burgestrand, Omg so ruby don't compile to binary? there is no way out?
<Burgestrand> amicuscuriae: Ruby is a nice language for beginners (in my opinion), I wouldn't say it's good for GUI but not bad either, and finally Ruby does not (generally) compile to binary.
<jahpereira> Burgestrand: lets say I have my image “logo.png” in app>assets>images>folder1
<amicuscuriae> Burgestrand, sucks then
<amicuscuriae> bye
<Burgestrand> amicuscuriae: Bye!
<jahpereira> Burgestrand: how is the path generated <%= image_tag “folder1/logo.png" %> ?
Luming has joined #ruby
chills42 has quit [Remote host closed the connection]
<ruby-95_> jhass: right so when using /a/.match('cat'), we're asking the regexp whether it fits the string 'cat'? or is it better to say we're asking the regexp to find whether there's an 'a' in 'cat'?
Luming has quit [Remote host closed the connection]
<Burgestrand> jahpereira: Rails allow you to change where your assets are hosted, by using e.g. image_tag or asset_path, Rails will create the correct path if you use a CDN in the future, for example.
pawnbox has quit [Ping timeout: 264 seconds]
<jhass> ruby-95_: I'd actually go for the former, yes
<Burgestrand> jahpereira: It will also use a different path in production vs. development, to improve caching in production.
<jahpereira> Burgestrand: i see
amicuscuriae has left #ruby ["Leaving"]
<Burgestrand> jahpereira: more information here http://guides.rubyonrails.org/asset_pipeline.html
<jahpereira> alright
<jahpereira> ty! :)
segfalt has quit [Quit: segfalt]
<jhass> ruby-95_: but maybe in reverse, we're rather asking whether the string fits into the pattern of the regex
<Burgestrand> jahpereira: and finally, there's the #rubyonrails channel which is more towards RoR-only questions :)
<ruby-95_> jhass: whys is match defined in both String and Regexp?
<jahpereira> oh
<jahpereira> cool
<jahpereira> Burgestrand: thanks man ;)
<ruby-95_> jhass: why*
andyrs has quit [Client Quit]
dopamean_ has quit [Ping timeout: 256 seconds]
<jhass> ruby-95_: for convenience, there's no semantic meaning to the fact it's available on both
<Burgestrand> ?guys
<ruboto> Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<jhass> one probably just calls the other in fact
hal_9000_ has joined #ruby
<Burgestrand> jahpereira: ^, while I am a man I might not have been, something to keep in mind :)
<ruby-95_> jhass: Is it more conventional to use Regexp#match or String#match?
<jhass> ruby-95_: I generally go for String#match
segfalt has joined #ruby
<jhass> ruby-95_: since there's no Regexp#scan that feels more consistent
tvw has quit [Read error: Connection reset by peer]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ruby-95_> jhass: Okay. This is a little off topic, but when using wildcards in the terminal...we say ? matches any single character. What does 'matches' mean in this context then?
da3mian has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
umgrosscol has joined #ruby
voltalio has joined #ruby
<ruby-95_> jhass: As in, what english definition applies here? Does it mean 'is equal to'?
drewvanstone has joined #ruby
<jhass> ruby-95_: the same actually
tjohnson has joined #ruby
<jhass> it too is a pattern that matches a particular string or not
<jhass> "cat" matches the shell pattern "c?t" just like it matches the regular expression /./
Igorshp has quit [Remote host closed the connection]
<Burgestrand> Linguistics and semantics. Interesting.
<jhass> or /c.t/ for more closely related examples
dionysus69 has quit [Ping timeout: 272 seconds]
voltalio has quit [Client Quit]
<ruby-95_> jhass: A string matches a pattern, but why do we sometimes say that the pattern matches the string?
drewvanstone has quit [Ping timeout: 240 seconds]
<ruby-95_> jhass: or it doesn't matter?
<jhass> ruby-95_: I think you might be overthinking this, how about you just accept it as a domain specific term for now? I promise it'll start to make sense once you learn about and use enough regular expressions
<jhass> ruby-95_: both is said in colloquial usage, yes
<jhass> they mean the same
<ruby-95_> jhass: Thanks for your input.
pawnbox_ has quit [Remote host closed the connection]
ruby-95_ has quit [Quit: Page closed]
leafybasil has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
bkulbida has joined #ruby
da3mian has joined #ruby
voltalio has joined #ruby
jokke has joined #ruby
<jokke> hi
leafybas_ has quit [Ping timeout: 264 seconds]
khebbie has joined #ruby
Rurik has quit [Ping timeout: 264 seconds]
dima_ has joined #ruby
leafybasil has quit [Ping timeout: 246 seconds]
hs366 has quit [Quit: Leaving]
rikkipitt has joined #ruby
<jokke> i'm trying to go through all permutations of the combinations of elements in an array of arrays. so that [['a','A'],['b','B']] would result in ['ab','Ab','aB','AB']
<jokke> i have no clue how to do this
<jokke> oh and the arrays can be of different size
<monoprotic> try Array#product
<Burgestrand> Array#product is cool.
<jokke> ooh
<jokke> i see
<jokke> thanks
<[k-> &ri Array#permutations
<`derpy> No results
<monoprotic> they may be different dizes
<monoprotic> sizes
<[k-> without the s
<monoprotic> [k- hes not asking for permutations actually
lkba has joined #ruby
<Burgestrand> Maybe he is but gave the result as combinations by mistake!
<jokke> hmm
<[k-> @.@
<Burgestrand> … sorry, not necessarily he.
<monoprotic> he's not asking for combination etiher
<jokke> yeah that's awesome
<monoprotic> not in the math sense of the word
pecpec has joined #ruby
kies^ has joined #ruby
<Burgestrand> monoprotic: I've been away from this part of math for a while, aren't those the available combinations of size 2?
<workmad3> he's asking for the cartesian product
<Burgestrand> Ah.
<jokke> workmad3: yes
kp666 has quit [Quit: Leaving]
<monoprotic> which is why its #product :P
juanpablo_ has joined #ruby
startupality has quit [Ping timeout: 260 seconds]
startupality has joined #ruby
<workmad3> Burgestrand: the permutations of that array are `[['a', 'A'], ['b', 'B']]` and `[['b', 'B'], ['a', 'A']]` :)
<Burgestrand> >> ['a', 'b', 'A', 'B'].combination(2).map(&:join)
<ruboto> Burgestrand # => ["ab", "aA", "aB", "bA", "bB", "AB"] (https://eval.in/435844)
khebbie has quit [Remote host closed the connection]
<Burgestrand> >> ['a', 'b'].product(['A', 'B']).map(&:join)
<ruboto> Burgestrand # => ["aA", "aB", "bA", "bB"] (https://eval.in/435845)
<Burgestrand> Ruby is useful. ;)
<Burgestrand> workmad3: thanks!
VeryBewitching has joined #ruby
allomov has joined #ruby
dima_ has quit [Quit: This computer has gone to sleep]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
dionysus69 has joined #ruby
dopamean_ has joined #ruby
bigbadbear has joined #ruby
<shevy> havenwood what editor are you currently (~the last 7 days) using the most?
kies^ has quit [Ping timeout: 260 seconds]
<izzol_> There is a way to setup dynamic module name in ruby project?
r0x0rZ has quit []
freerobby has quit [Quit: Leaving.]
<[k-> dynamic module name?
<apeiros> Burgestrand: I assume the reason for your ping has been resolved?
pawnbox has joined #ruby
drewvanstone has joined #ruby
blaxter has joined #ruby
devoldmx has joined #ruby
emilkarl has quit [Quit: emilkarl]
karapetyan has quit [Ping timeout: 246 seconds]
chills42 has joined #ruby
<shevy> Burgestrand was battling it out with groovyshark!
<[k-> what happened?
dima_ has joined #ruby
<havenwood> shevy: That would be Atom with vim in second, in the last week.
<shevy> atom with vim?
<shevy> ah
kanika_ has joined #ruby
<shevy> you mean, first comes atom, then vim
<shevy> ok!
<havenwood> shevy: I was debating if I'd used vim more, but I think I've spent more time in Atom.
KervyN has quit [Quit: Goodbye cruel world]
phantasm66 has quit [Quit: *poof*]
dariasmc has quit [Ping timeout: 246 seconds]
<havenwood> shevy: I don't keep stats. :P I have been enjoying Atom.
dariasmc has joined #ruby
weemsledeux has joined #ruby
weemsledeux has quit [Client Quit]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
HAL2328 has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has quit [Ping timeout: 260 seconds]
dima_ has quit [Quit: This computer has gone to sleep]
kanika_ has quit [Quit: Leaving]
shmilan has joined #ruby
dima_ has joined #ruby
[Butch] has joined #ruby
blaxter has quit [Quit: foo]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Burgestrand has quit []
jas02 has quit [Quit: jas02]
pecpec has quit [Quit: Leaving...]
<izzol_> Ok, I have a stupid question :P
<izzol_> I have two projects (exactly the same), the only difference is the DB.
dgutierrez1287 has joined #ruby
KervyN has joined #ruby
<izzol_> One is located in /opt/node1 the other in /opt/node2
drewvanstone has quit [Ping timeout: 264 seconds]
<izzol_> And in /opt/master/ I have a file console.rb which has: require '/opt/node1/bin/console.rb' and require '/opt/node2/bin/console.rb'
<izzol_> but now when I execute Test::Foo.bar it works only on node1 ;-)
banister has quit [Read error: Connection reset by peer]
<izzol_> is it possible to do it in this way?
dseitz has joined #ruby
<izzol_> I know that I can change the module name in node2 but I don't want to do it :(
allcentury has joined #ruby
Igorshp has joined #ruby
Burgestrand has joined #ruby
<Burgestrand> apeiros: Indeed! :)
eminencehc has joined #ruby
Cache_Money has joined #ruby
kies^ has joined #ruby
polishdub has joined #ruby
KervyN has quit [Client Quit]
mjuszczak has quit []
dgutierrez1287 has quit [Ping timeout: 240 seconds]
KervyN has joined #ruby
omilun has left #ruby [#ruby]
<[k-> don't require both at the same time?
dfockler has joined #ruby
danieli has joined #ruby
blueOxigen has quit [Ping timeout: 260 seconds]
dman777_alter has joined #ruby
gizmore has joined #ruby
dima_ has quit [Quit: This computer has gone to sleep]
momomomomo has joined #ruby
leafybasil has joined #ruby
davedev24 has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
benlieb has joined #ruby
negev has joined #ruby
<negev> hello, anyone know why the mechanize gem would return form.file_uploads => [] for this form?
nateberkopec has joined #ruby
<nateberkopec> >> $ruby.is_a?(Object){|oriented| language}
<ruboto> nateberkopec # => true (https://eval.in/435856)
<nateberkopec> boom
segfalt has quit [Quit: segfalt]
youngbaks has quit [Ping timeout: 265 seconds]
dionysus69 has quit [Ping timeout: 250 seconds]
<monoprotic> haha
drewvanstone has joined #ruby
jahpereira has quit [Quit: jahpereira]
inteq has joined #ruby
<[k-> you forgot a -
andyrs has joined #ruby
leafybasil has quit [Remote host closed the connection]
krz has joined #ruby
terlar has joined #ruby
leafybasil has joined #ruby
moeabdol has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
andyrs has quit [Client Quit]
drewvanstone has quit [Ping timeout: 260 seconds]
Igorshp has quit [Remote host closed the connection]
alexUaN has quit [Quit: alexUaN]
Igorshp has joined #ruby
karapetyan has joined #ruby
Igorshp has quit [Remote host closed the connection]
HAL2328 has quit [Ping timeout: 265 seconds]
modern has quit [Ping timeout: 264 seconds]
tacit7 has quit [Remote host closed the connection]
devyn has quit [Ping timeout: 260 seconds]
yeticry has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
bugrum has joined #ruby
anisha_ has quit [Quit: Leaving]
bruno- has joined #ruby
I has joined #ruby
I has quit [Client Quit]
maniac has joined #ruby
<maniac> hey guys, how can i receive map data from rake task output without Proc object being returned ?
I has joined #ruby
unop has joined #ruby
I is now known as Guest59743
Guest59743 has quit [Client Quit]
negev has quit [Quit: leaving]
dopie has joined #ruby
bkulbida has quit [Quit: leaving]
bkulbida has joined #ruby
segfalt has joined #ruby
jdawgaz has joined #ruby
bkulbida has quit [Client Quit]
bkulbida has joined #ruby
Neverdie has joined #ruby
platzhirsch has joined #ruby
failshell has quit [Remote host closed the connection]
drewvanstone has joined #ruby
iateadonut has quit [Quit: Leaving.]
drewvans1one has joined #ruby
vdamewood has joined #ruby
Igorshp has joined #ruby
apt-get has joined #ruby
modern has joined #ruby
eminencehc has quit [Remote host closed the connection]
Newtonianb has joined #ruby
radgeRayden has joined #ruby
Soda has joined #ruby
eGGsha has joined #ruby
<Newtonianb> Question: I have a ruby script that is part of a git repository. That ruby script as part of the command it executes actualyl changes branch in my git repo and executes several commands. Could this cause any problems that the script being ran is part of the repo and the branch which it resides in changes?
startupality has quit [Quit: startupality]
vdamewood has quit [Changing host]
vdamewood has joined #ruby
eminencehc has joined #ruby
aganov has quit [Remote host closed the connection]
<[k-> it probably could, since it is being executed
Macaveli has joined #ruby
radgeRayden_ has joined #ruby
khebbie has joined #ruby
<Newtonianb> I'm wondering if on execute the whole script gets loaded in memory or whether it still relies on the script to run
<Newtonianb> *file
andyrs has joined #ruby
<Newtonianb> Kind of a bummer since the script is a deploy script that is supposed to do a bunch of things across branches and also want it tracked in the repo
pauly_oc has joined #ruby
khebbie has quit [Remote host closed the connection]
andyrs has quit [Client Quit]
<Cork> could one write something similar to system("sed -i -r 's/(something)/\1/' file"), but with only ruby code?
subshad has quit [Ping timeout: 260 seconds]
<Cork> what i'm asking for is an efficient search replace in a large text file without first loading it into memory
radgeRayden has quit [Ping timeout: 246 seconds]
nettoweb has joined #ruby
<tubbo> Cork: how do you know sed doesn't load the text file into memory?
<Cork> tubbo: memory usage
<tubbo> oh cool
<tubbo> :D
<tubbo> trying to think of something that doesn't have a VM or garbage collection that you can use regex in...
<tubbo> like, out-of-the-box
psy has joined #ruby
<tubbo> because what if a VM or GC thing is skewing your results...afaik sed is a C program so it wouldn't be affected by those things, it's just a compiled binary
suchness_ has quit [Ping timeout: 252 seconds]
<Cork> tubbo: if you're trying to be sarcastic...
scottschecter has quit [Quit: Leaving]
<Cork> i'm not getting it
abara has joined #ruby
<workmad3> Cork: you can do a line-by-line read in ruby so that you don't slurp in the entire file at once
<Cork> ya, i've gotten that far
abara has left #ruby ["Be back later ..."]
<Cork> but i'm not sure what to do with the modified line
maniac has quit [Quit: Leaving.]
<Cork> File.open().each_line {|line| line.gsub() }
<Cork> then what?
<Cork> that is where i get stuck
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
rbennacer has quit [Remote host closed the connection]
<workmad3> Cork: what I've done with that sort of thing in the past is `File.open("output", "w") do |out_file|; File.open("input", "r") do |in_file|; in_file.each_line {|l| out_file.write(in_file.gsub(...) ) } end; end`
rcvalle has joined #ruby
<Cork> and then move the file hmm
<Cork> not sure that will work
da3mian has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
KucukMubasir has joined #ruby
<KucukMubasir> hi guys, I installed ruby with ruby-installer but I want to remove it, how might I achieve this?
einarj has quit [Remote host closed the connection]
devoldmx has joined #ruby
pu22l3r_ has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
r_baron has joined #ruby
andyrs has joined #ruby
dionysus69 has joined #ruby
<KucukMubasir> it is mac osx and I already had RVM but I wrongfully used ruby-installer to install another version of Ruby. Now I want to remove it and reinstall with RVM
dfockler has left #ruby ["Leaving"]
pu22l3r has joined #ruby
pu22l3r_ has quit [Client Quit]
<KucukMubasir> is it safe to just delete the corresponding folder?
<havenwood> Cork: ruby -p -i -e "gsub 'cake', 'pie'" dessert.txt
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
<Cork> havenwood: from inside a ruby script
<havenwood> Cork: Aye, just an aside.
<havenwood> Cork: And couldn't resist the double-pie.
<havenwood> Pie!
<Cork> havenwood: basically currently i would have to run 4 system("sed") calls
Burgestrand has quit []
<Cork> i would like to make them ruby code
A124 has quit [Ping timeout: 268 seconds]
PaulCapestany has quit [Quit: .]
<Cork> i'm starting to wonder if i should go with system calls stead :/
<Cork> looks kinda crappy though
<havenwood> Cork: Just to throw an option into the mix: http://ruby-doc.org/stdlib/libdoc/shell/rdoc/Shell.html
devoldmx has quit [Ping timeout: 250 seconds]
<Cork> that is kinda cool...
UtkarshRay has joined #ruby
<Cork> really cool actually
<Cork> havenwood: thx!
dfinninger has joined #ruby
<havenwood> Cork: You're welcome!
dravine has quit [Ping timeout: 246 seconds]
dirtyonekanobi has joined #ruby
karapetyan has quit [Remote host closed the connection]
pu22l3r has quit [Quit: Lost terminal]
PaulCapestany has joined #ruby
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 240 seconds]
momomomomo_ is now known as momomomomo
karapetyan has joined #ruby
ItSANgo has quit [Quit: Leaving...]
webguynow has quit [Ping timeout: 265 seconds]
jerematic has joined #ruby
webguynow has joined #ruby
psy has quit [Disconnected by services]
psy_ has joined #ruby
jgt has joined #ruby
<jhass> havenwood: have some pies https://www.youtube.com/watch?v=ZNiRzZ66YN0
rwyoung has joined #ruby
pu22l3r has joined #ruby
pu22l3r has left #ruby [#ruby]
eminencehc has quit [Remote host closed the connection]
Lucky__ has joined #ruby
dravine has joined #ruby
dfockler has joined #ruby
dgutierrez1287 has joined #ruby
eminencehc has joined #ruby
rikkipitt has quit [Remote host closed the connection]
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rikkipitt has joined #ruby
eminencehc has quit [Remote host closed the connection]
webguynow has quit [Ping timeout: 244 seconds]
eminencehc has joined #ruby
webguynow has joined #ruby
rikkipitt has quit [Remote host closed the connection]
towski_ has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
leafybas_ has joined #ruby
p0wn3d__ has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dgutierrez1287 has quit [Ping timeout: 264 seconds]
pu22l3r has joined #ruby
PaulCapestany has quit [Quit: .]
dopie has quit [Quit: This computer has gone to sleep]
aswen has quit [Ping timeout: 260 seconds]
PaulCapestany has joined #ruby
leafybasil has quit [Ping timeout: 244 seconds]
amclain has joined #ruby
greenarrow has quit [Quit: 500]
ngscheurich has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
dopie has joined #ruby
bahar has quit [Changing host]
bahar has joined #ruby
last_staff has joined #ruby
mikecmpbll has quit [Ping timeout: 255 seconds]
allomov has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
Macaveli_ has joined #ruby
Macaveli_ has quit [Client Quit]
Macaveli has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
beast has quit [Remote host closed the connection]
r_baron has quit [Ping timeout: 252 seconds]
araujo has quit [Quit: Leaving]
cschneid_ has joined #ruby
slayerjain has joined #ruby
n008f4g_ has joined #ruby
araujo has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
araujo has quit [Max SendQ exceeded]
Jardayn has joined #ruby
banjara has joined #ruby
<shevy> if you have a number such as 765841 but it could also be 1234 or 765841765841, what way would you prefer to have it become "765_841" ? In other words the same way as ruby would allow one to use a number that would be more readable
momomomomo has quit [Ping timeout: 264 seconds]
karapetyan has quit [Remote host closed the connection]
momomomomo has joined #ruby
troyreadyy has quit [Quit: Leaving]
elperdut has joined #ruby
webguynow has quit [Ping timeout: 250 seconds]
webguynow has joined #ruby
elperdut has quit [Max SendQ exceeded]
Kruppe has quit [Ping timeout: 255 seconds]
elperdut has joined #ruby
karapetyan has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baroquebobcat has joined #ruby
Jackneill has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
stan has quit [Ping timeout: 264 seconds]
araujo has quit [Max SendQ exceeded]
<jhass> >> 1_2_3_4_5_67_89134
<ruboto> jhass # => 123456789134 (https://eval.in/435869)
jdawgaz has joined #ruby
<jhass> shevy: there are no limitations from ruby's side
dymk has left #ruby ["Leaving"]
Alayde has joined #ruby
ItSANgo has joined #ruby
<pipework> Ruby is limitless!
wildlander has joined #ruby
<shevy> people who use that are crazy
kobain has joined #ruby
DexterLB has quit [Ping timeout: 260 seconds]
<pipework> shevy: Underscores in numbers? No, it's fantastic.
banjara has quit [Quit: Leaving.]
<dfockler> haha that 1_000 syntax lolol
<[k-> people use commas in real life
<pipework> [k-: Ruby doesn't.
maletor has joined #ruby
<gizmore> ruby is law
karapetyan has quit [Ping timeout: 240 seconds]
<jhass> [k-: actually real world disagrees whether to use commas, spaces or points
<shevy> pipework no, underscores like 1_2_3_4
<pipework> shevy: Oh, more than just to separate thousand places?
<shevy> 1_2_3_4_5_67_89134
webguynow has quit [Ping timeout: 240 seconds]
<jhass> I wonder
<jhass> >> 1__3
<ruboto> jhass # => /tmp/execpad-e2a2ae28b0d3/source-e2a2ae28b0d3:2: trailing `_' in number ...check link for more (https://eval.in/435870)
<jhass> :(
webguynow has joined #ruby
<shevy> >> 1_3_
<ruboto> shevy # => /tmp/execpad-bcbcce0e070e/source-bcbcce0e070e:2: trailing `_' in number (https://eval.in/435871)
<pipework> >> 1_33
<ruboto> pipework # => 133 (https://eval.in/435872)
Guest43569 has quit [Quit: Leaving]
Melpaws has joined #ruby
JimmyNeutron has joined #ruby
<[k-> >> 1_10_10_7
<ruboto> [k- # => 110107 (https://eval.in/435873)
<[k-> id10t
bhaak has quit [Ping timeout: 252 seconds]
<pipework> It can be nice for other things that are less than base-10, I think.
Hounddog has quit [Read error: Connection reset by peer]
bhaak has joined #ruby
Ox0dea has joined #ruby
<izzol_> >> _1
<ruboto> izzol_ # => undefined local variable or method `_1' for main:Object (NameError) ...check link for more (https://eval.in/435875)
<jhass> >> 0b1110_0011
<ruboto> jhass # => 227 (https://eval.in/435876)
<izzol_> >> .class
<ruboto> izzol_ # => /tmp/execpad-35be7ed5ab9d/source-35be7ed5ab9d:2: syntax error, unexpected '.' ...check link for more (https://eval.in/435877)
RickHull1 has left #ruby [#ruby]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pipework> Oh, evidently greater than base 10 works.
Kruppe has joined #ruby
Igorshp has quit [Remote host closed the connection]
zenguy_pc has quit [Read error: Connection reset by peer]
nickjj has quit [Read error: Connection reset by peer]
<Ox0dea> >> 0xd_e_a
<ruboto> Ox0dea # => 3562 (https://eval.in/435878)
khebbie has joined #ruby
nickjj has joined #ruby
<Ox0dea> Ruby needs more radix literals.
mikecmpbll has joined #ruby
araujo has joined #ruby
khebbie has quit [Remote host closed the connection]
lsmola has quit [Ping timeout: 244 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
araujo has quit [Max SendQ exceeded]
EXID123 has quit [Ping timeout: 240 seconds]
sdothum has joined #ruby
voltalio has joined #ruby
p0wn3d__ has quit [Ping timeout: 260 seconds]
p0wn3d__ has joined #ruby
banjara has joined #ruby
rodfersou is now known as rodfersou|lunch
voltalio has quit [Client Quit]
araujo has joined #ruby
MagePsycho has quit [Quit: MagePsycho]
araujo has quit [Max SendQ exceeded]
devoldmx has joined #ruby
momomomomo has quit [Quit: momomomomo]
da3mian has joined #ruby
jgpawletko has joined #ruby
<izzol_> Ok, I'm starting weekend! Time for Sommerrodelbahn!
<Ox0dea> >> ($-0 = 42) rescue $!
<ruboto> Ox0dea # => #<TypeError: value of $-0 must be String> (https://eval.in/435879)
craysiii has joined #ruby
<Ox0dea> Ruby should use $-1 as the output base.
leafybas_ has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 265 seconds]
leafybasil has joined #ruby
p0wn3d__ has quit [Ping timeout: 250 seconds]
<pipework> Cause you know ruby's all about that base, 'bout that base, no exceptions
<Ox0dea> ^
<Ox0dea> >> Fixnum.prepend Module.new { def inspect; to_s $-1 || 10; end }; $-1 = 2; 42
<ruboto> Ox0dea # => 101010 (https://eval.in/435881)
michael_mbp has quit [Excess Flood]
banjara has quit [Quit: Leaving.]
c0m0 has quit [Ping timeout: 246 seconds]
zenguy_pc has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
p0wn3d__ has joined #ruby
michael_mbp has joined #ruby
petricore has joined #ruby
skullcrasher has quit [Remote host closed the connection]
HAL2328 has joined #ruby
vdamewood has quit [Quit: Life beckons.]
PaulCape_ has joined #ruby
voltalio has joined #ruby
failshell has joined #ruby
fred1807 has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
<fred1807> Hi mates.. How do I run this? do I need to compile? Is this a webserver/page? https://github.com/ephekt/ShouldISurf
<pipework> fred1807: It's a rack application.
<pipework> Look up how to run rack apps.
PaulCapestany has quit [Ping timeout: 240 seconds]
iamninja has quit [Ping timeout: 240 seconds]
otacon- has joined #ruby
<fred1807> too many information on google... confusing
<fred1807> is this a web page Irun locally?
<pipework> You might want to master using a search engine then, it seems a much more valuable skill.
ndrei has joined #ruby
shadoi has joined #ruby
dariasmc has quit [Ping timeout: 240 seconds]
failshell has quit [Ping timeout: 240 seconds]
platzhirsch has quit [Ping timeout: 250 seconds]
<fred1807> pipework: If you dont want to help, just dont
<Ox0dea> fred1807: You are resisting assistance.
<fred1807> Ox0dea: manpages assistance
PaulCapestany has joined #ruby
<fred1807> I sugest you read a manual on how to give assistance
<pipework> fred1807: Educate yourself, it's your prerogative and not my job. I gave you all you need to find exactly what you should be doing to find your answer. You'll find a lot of us have consulting fees if you'd like direct answers.
<pipework> Good luck with your attitude towards free help!
<fred1807> pipework: I was not talking to you, at first, there are 1k users in this public chanell, you just jump in whorign for attention
<pipework> People who are entitled, lul.
rezzack has joined #ruby
s2013 has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkf has quit [Quit: Leaving]
PaulCape_ has quit [Ping timeout: 240 seconds]
<jhass> fred1807: what did you try so far?
HAL2328 has quit [Quit: Leaving]
firstdayonthejob has joined #ruby
Axy has quit [Read error: Connection reset by peer]
<fred1807> I am installing a local web server on my mac,,, and will try to access it
pu22l3r has quit [Quit: leaving]
<fred1807> http://anvilformac.com found this when looking for ruby apps
<Ox0dea> fred1807: Are you using some off-brand search engine?
Taranis has left #ruby [#ruby]
bruno- has quit [Ping timeout: 264 seconds]
<pipework> Ox0dea: Don't become a stockholm syndrome supporter! :D
s2013 has quit [Read error: Connection reset by peer]
p0wn3d__ has quit [Ping timeout: 255 seconds]
ghostlines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
webguynow has quit [Ping timeout: 264 seconds]
rezzack has quit [Quit: Leaving.]
<shevy> lol
<shevy> btw
<shevy> Ox0dea, look how quickly things can happen: https://bugs.ruby-lang.org/issues/11536
hanmac has quit [Ping timeout: 246 seconds]
<shevy> suggestion - 2 hours later matz says ok, 3 hours later nobu adds it
romero has joined #ruby
webguynow has joined #ruby
syath has quit [Quit: WeeChat 1.2]
n008f4g_ has quit [Ping timeout: 250 seconds]
kidoz has quit [Quit: Ухожу я от вас]
araujo has joined #ruby
araujo has joined #ruby
postmodern has joined #ruby
bluOxigen has joined #ruby
da3mian has quit [Quit: Textual IRC Client: www.textualapp.com]
<fred1807> gemfile is like a mkefile?
<fred1807> makefile
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
<jhass> no, that's the Rakefile
<Ox0dea> shevy: Aye, that was certainly quick, but that method's absence was anomalous.
<jhass> the Gemfile lists the applications dependencies
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
wildlander has quit [Quit: Saliendo]
<fred1807> so in this case, https://github.com/ephekt/ShouldISurf, all I need to do ir "ruby surf.rb" , right? So how can I auto install everything there is on gemfile ?
<Ox0dea> fred1807: Why not just go surfing?
<fred1807> always the better option
da3mian has joined #ruby
<jhass> gem install bundler; bundle install; bundle exec ruby surf.rb; I guess
webguynow has quit [Ping timeout: 240 seconds]
juanpablo_ has quit [Quit: (null)]
rdark has quit [Quit: leaving]
webguynow has joined #ruby
juanpablo_ has joined #ruby
andyrs has joined #ruby
firstdayonthejob has joined #ruby
apt-get has quit [Ping timeout: 264 seconds]
dfinninger has quit [Remote host closed the connection]
jobewan has joined #ruby
<fred1807> hmm how do I start sinatra? `<main>': uninitialized constant Sinatra (NameError)
zenguy_pc has quit [Read error: Connection reset by peer]
tatsuya_o has quit [Remote host closed the connection]
hanmac has joined #ruby
<darix> did you do bundle exec ruby surf.rb?
<shevy> fred1807 did you require it
ndrei has quit [Ping timeout: 244 seconds]
<fred1807> yep, bundle exec ruby surf.rb
<LiquidInsect> there's a Bundler.require line in the config.ru file, which should do it
<darix> ah seems surf.rb isnt enough
<darix> fred1807: use rackup
<LiquidInsect> yeah
<darix> bundle exec rackup
<LiquidInsect> maybe bundle exec rackup
<LiquidInsect> yeah
<shevy> I don't know bundler. I do gem install sinatra, then start the .rb file via ruby; et voila
<LiquidInsect> maybe I shoudl type faster
catcher has joined #ruby
<darix> shevy: they have the requires for sinatra in config.ru
apt-get has joined #ruby
da3mian has quit [Changing host]
da3mian has joined #ruby
<dfockler> it's known the faster you type commands the more likely they will run correctly
<LiquidInsect> dfockler: https://ruby-jokes.github.io/close_enough/ maybe.
Jardayn has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
hashrocket has quit [Quit: Connection closed for inactivity]
<dfockler> Hahaha thanks for that
<shevy> darix I hate those russian files
<Ox0dea> The did_you_mean gem is actually going to be bundled with Ruby 2.3.
<shevy> I hope it won't interfere with the close_enough gem
Jardayn has joined #ruby
<shevy> lest we may have to add the did_you_really_want_to_do_this and the perhaps_you_try_some_other_way gems
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<darix> shevy: in russia files hate you
jdawgaz has joined #ruby
prestorium has quit [Ping timeout: 260 seconds]
CustosL1men has quit [Ping timeout: 255 seconds]
slayerja_ has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rwyoung has quit [Ping timeout: 246 seconds]
jdawgaz has quit [Client Quit]
ndrei has quit [Ping timeout: 268 seconds]
failshell has joined #ruby
slayerjain has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
Igorshp has joined #ruby
<dfockler> in files russia hates you
dopie has quit [Quit: This computer has gone to sleep]
yeticry has quit [Ping timeout: 252 seconds]
Denis_ has joined #ruby
khebbie has joined #ruby
adda_adda has joined #ruby
khebbie has quit [Remote host closed the connection]
yeticry has joined #ruby
<shevy> hmm
<shevy> if you'd have to name a method in ruby ... a method that shall generate a html table with four <td> per row... what name would you pick?
webguynow has quit [Ping timeout: 260 seconds]
Igorshp has quit [Ping timeout: 264 seconds]
<Ox0dea> Name things for what they do, not how they do it.
webguynow has joined #ruby
last_staff has quit [Quit: last_staff]
Exuma has joined #ruby
<shevy> yeah so what name
poli_ has quit [Ping timeout: 256 seconds]
zenguy_pc has joined #ruby
<Ox0dea> The method just spits out a 4xn HTML table?
<shevy> hmm... yeah, or at least it is supposed to do this... I just realized that it uses % 2 ... so I wonder how it can make 4 entries per ... row?
adda_adda has quit [Ping timeout: 264 seconds]
voltalio has joined #ruby
jaygen has joined #ruby
cndiv has joined #ruby
slayerja_ has quit [Ping timeout: 260 seconds]
<Ox0dea> Tables + mod-2 = zebras, more often than not.
<shevy> zebras!
<shevy> now THAT'S a good name!
<shevy> black | white | black | white
<shevy> Ox0dea you are a genius
da3mian is now known as frmendes
moeabdol has quit [Ping timeout: 246 seconds]
dopie has joined #ruby
<shevy> I added a zebra_table alias
momomomomo has joined #ruby
<shevy> "Rails? big problem: ruby"
<shevy> :(
juanpablo_ has quit [Quit: (null)]
juanpablo_ has joined #ruby
shmilan has quit [Ping timeout: 240 seconds]
<Ox0dea> shevy: "Zebra striping" isn't my invention, of course.
arup_r has quit [Quit: Leaving]
<shevy> well you brought the zebras to #ruby
iamninja has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
webguynow has quit [Ping timeout: 240 seconds]
slayerjain has joined #ruby
webguynow has joined #ruby
ndrei has joined #ruby
apt-get has quit [Read error: Connection reset by peer]
shinnya has joined #ruby
juanpablo_ has quit [Ping timeout: 240 seconds]
apt-get has joined #ruby
podman has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
webguynow has quit [Ping timeout: 250 seconds]
webguynow has joined #ruby
dfinninger has joined #ruby
dfinning_ has joined #ruby
youngbaks has joined #ruby
shmilan has joined #ruby
jhn has joined #ruby
Exuma has quit []
catcher has quit [Quit: catcher]
dopie has quit [Quit: This computer has gone to sleep]
workmad3 has quit [Ping timeout: 250 seconds]
dfinninger has quit [Ping timeout: 246 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
elperdut has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
frmendes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
andyrs has joined #ruby
baweaver has quit [Remote host closed the connection]
workmad3 has joined #ruby
elperdut has joined #ruby
pontiki has joined #ruby
Kruppe has quit [Quit: ZNC - http://znc.in]
baroquebobcat has quit [Quit: baroquebobcat]
Denis_ has quit [Quit: Leaving]
Kruppe has joined #ruby
Kruppe has quit [Client Quit]
andyrs has quit [Client Quit]
Kruppe has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
rodfersou|lunch is now known as rodfersou
<darix> headius got angry it seems
jackjackdripper has joined #ruby
<headius> I have a low tolerance for shenanigans
<eam> did I miss something
snockerton has joined #ruby
Rollabunna has quit [Remote host closed the connection]
jackjackdripper has quit [Client Quit]
naps62 has quit [Remote host closed the connection]
<shevy> yeah what did we miss
jackjackdripper has joined #ruby
<darix> shevy: scroll down on the link you posted ;)
prestorium has joined #ruby
baweaver has joined #ruby
leat1 has quit [Quit: leat1]
<shevy> oh I thought there was an IRC war :)
<shevy> but yeah
jeadre has joined #ruby
<capin> shevy: that's an interesting read. is that your blog?
slayerjain has quit [Ping timeout: 246 seconds]
<shevy> I think one of the simplest thing really is to show graphs with specific versions
prestorium has quit [Client Quit]
<miah> somebody was wrong on the internet
<shevy> capin nah. I always try to get a blog going but then I realize I am too lazy... :( also I don't have much of importance to tell anyway
Gnomethrower has quit [Quit: Textual IRC Client: www.textualapp.com]
<darix> miah: news at 11
<shevy> miah IT HAPPENS ALL THE TIME!!!
shadoi has quit [Read error: Connection reset by peer]
slayerjain has joined #ruby
shadoi has joined #ruby
* baweaver slowly lowers hammer
* baweaver wanders back off
<shevy> lol
slayerjain has quit [Max SendQ exceeded]
ghostlines has joined #ruby
<capin> shevy: it does interest me that an experienced rails / ruby developer who worked on Scribd would use WP for a blogging platform though :l
<darix> capin: you read all the way down to headius' comments?:D
<capin> darix: i didn't read the comments ...should i?
ItSANgo has quit [Quit: Leaving...]
<darix> yes
<headius> after I commented I discovered pretty much everyone thought the article was wrong
slayerjain has joined #ruby
Neverdie has quit [Quit: http://radiux.io/]
<shevy> yeah... though truth be told, while I think that PHP is awful, I think they managed to build some really great software. or perhaps "great" is not the right word... software that has become "popular". Two months ago, I found out that one bioinformatics group in vienna will be using drupal for their internal campus (the web-related parts there)
leafybasil has quit [Ping timeout: 260 seconds]
juanpablo_ has joined #ruby
baroquebobcat has joined #ruby
<baweaver> which rails dev uses wordpress now?
<miah> scribd was stuck on rails 2.5 for a long time iirc
<miah> because of the _many_ internal hacks
<baweaver> answer: a freaking ton of them
<shevy> baweaver the site at http://blog.jaredfriedman.com/ seems to do so
<miah> basically, anything scribd has to say about technology i'd take with a grain of salt
<miah> because their stack is fucked from top to bottom
<shevy> hehe
<darix> miah: and back?
<miah> i worked there for 3 months before RUNNING THE FUCK OUT
<baweaver> avdi mentioned once he uses wordpress so he could focus more on writing than tinkering, so PHP works well to deter that urge.
Igorshp has joined #ruby
<miah> use whatever the fuck you want for blogs. your personal opinion is different than mine, blah blah blah
ramfjord has joined #ruby
<miah> i personally use jekyll because html + css == instant page loads
<baweaver> I tend to agree, just because you _can_ build a blogging platform doesn't mean you _should_
<darix> miah: the only thing that annoys me about people using WP. many do not upgrade
<miah> but i dont bother writing anything because having opinions on the internet is a bad thing
<baweaver> there it was
<baweaver> I use Octopress because I've sunk time into it and it works.
<darix> that's why i suggest for many people "forget WP and similar tools. use static generators" ^^
<miah> i write md, run a command and then rsync the results.
<darix> https://pixls.us/ is fully static e.g.
<baweaver> honestly I think it doesn't matter
<eam> darix++ I can't fathom using a database to host ... static text
<darix> (except the comments which come from discourse)
momomomomo has quit [Ping timeout: 246 seconds]
<baweaver> Do whatever and worry about that text being written in the first place.
<miah> right
<stonecolddevin> i just wrote my own cms, with threaded comments and searchability. idgaf.
<eam> but I use an email list for that so w/e
<eam> who needs http?
towski_ has quit [Remote host closed the connection]
f00dMonsta has quit [Ping timeout: 246 seconds]
<darix> eam: the best request i got was. "we want WP and then have it running for 10years as archive after the event"
<miah> comments are just ways for people to piss on your work though
<Ox0dea> baweaver: Judging by the order of your expected output for pad_mapper(3, 7), the solution you had in mind wasn't reduce(:product); please explain.
<capin> i ended up writing a minimilistic blogging platform for my site using rails / Ruby, and am pretty happy with it
<eam> miah: depends, I get a lot of good comments on my mailing lists
momomomomo has joined #ruby
<miah> i wish i was part of that internet
<darix> miah: depends on your community i guess^^
youngbaks has quit [Ping timeout: 264 seconds]
<baweaver> Ox0dea: ?
<eam> miah: you're welcome to join :)
<miah> i havent found a community yet that lacks hostility
<baweaver> I know what you're mentioning, but not what exactly you mean.
jenrzzz has joined #ruby
chills42 has quit [Remote host closed the connection]
Sou|cutter has quit [Quit: bbiab]
<Ox0dea> baweaver: Your expected outputs are weird; one is row-major, the other isn't.
<baweaver> I wrote the tests as a vague example
<baweaver> hadn't run them yet.
<Ox0dea> Fair enough.
codecop has quit [Remote host closed the connection]
diegoviola has joined #ruby
elperdut has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<capin> miah: there's some friendly people in #rubyonrails
<miah> i dont rails
<stonecolddevin> hostility will be everywhere you go, you have to learn to just filter it
<Ox0dea> baweaver: The #match_array expectation saved the day, in any case.
<baweaver> fair, I'll update it later.
<baweaver> Y'might leave a comment there.
<baweaver> meetings everywhere today.
<miah> easier to not take part than it is to filter
elperdut has joined #ruby
<baweaver> stonecolddevin: that's what's screwed up is that people are expected to filter instead of others behaving like decent human beings.
grenierm has joined #ruby
<baweaver> victim shaming yo, not cool.
<drbrain> ↑ yup
RubyNoob has joined #ruby
<baweaver> besides, said people that need to be filtered tend to find themselves mode +q pretty fast
jud has quit [Ping timeout: 250 seconds]
<stonecolddevin> baweaver: uh i'm not shaming any victims. it's being accountable for yourself and taking care of yourself and not worrying about people that could stress you out
<baweaver> and if they don't, just say !.ops without the .
phutchins has quit [Ping timeout: 250 seconds]
<capin> miah: have you seen reddit :P
<darix> stonecolddevin: that's why we got the banhammer
ghostlines has quit [Read error: Connection reset by peer]
<Ox0dea> !​ops
<miah> i have, i avoid 99% of it. im on a few specific subs that are ok, and some that are mostly rage. but i play video games so..
<stonecolddevin> darix: that's something I can get behind.
<baweaver> different ! was it?
<Ox0dea> Sneakier.
DexterLB has joined #ruby
<baweaver> space?
RubyNoob has quit [Client Quit]
<darix> Ox0dea: dont worry. you dont have to fear me ... directly ;)
<miah> the problem with 'just filter it' is that different people deal with things different internally than others. and what works great for you, may not work great for me. in this case 'just filter it' does not work well for me.
<baweaver> well there are three extra bytes in there at least (226, 128, 139)
rezzack has joined #ruby
andyrs has joined #ruby
<Ox0dea> That'd be ZWSP.
Luming has joined #ruby
Luming has quit [Remote host closed the connection]
<baweaver> zero width space, TIL
drewvans1one has quit [Quit: leaving]
<Ox0dea> My condolences.
coecoe2000 has joined #ruby
youngbaks has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
<jhass> another trick is to use the LTR mark
slayerjain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
dstarh has joined #ruby
dopie has joined #ruby
ruby-doobie has joined #ruby
rezzack1 has joined #ruby
f00dMonsta has joined #ruby
Neverdie has joined #ruby
tcdowney has joined #ruby
atomical has joined #ruby
rezzack has quit [Ping timeout: 272 seconds]
khebbie has joined #ruby
stamina has quit [Ping timeout: 244 seconds]
last_staff has joined #ruby
<Ox0dea> >> require 'objspace'; ObjectSpace.memsize_of ''
<ruboto> Ox0dea # => 20 (https://eval.in/435890)
khebbie has quit [Remote host closed the connection]
slayerjain has joined #ruby
DexterLB has joined #ruby
Neverdie has quit [Client Quit]
coecoe2000 has quit [Quit: Leaving]
da3mian has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
grenierm has quit [Quit: grenierm]
<shevy> wat
<shevy> >> require 'objspace'; ObjectSpace.memsize_of 'a'
<ruboto> shevy # => 20 (https://eval.in/435896)
devoldmx has joined #ruby
<drbrain> >> require 'objspace'; (11..12).map { |size| ObjectSpace.memsize_of " " * size }
<ruboto> drbrain # => [20, 33] (https://eval.in/435899)
Neverdie has joined #ruby
pawnbox_ has joined #ruby
<drbrain> on 64 bit ruby you can fit 23 bytes in a struct RString
voltalio has joined #ruby
elperdut has quit [Ping timeout: 240 seconds]
<Porfa> hmm how can i trim a number ? for i.e. 4.9 * 1.33 = 6.517000000000001 i just want 6.5
ruby-doobie has quit [Ping timeout: 246 seconds]
mjuszczak has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
youngbaks has quit [Ping timeout: 268 seconds]
<drbrain> Ox0dea: or Arrays with more than three elements
chills42 has joined #ruby
jackjackdripper1 has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
elperdut has joined #ruby
<Ox0dea> >> foo = 4.9 * 1.33; [foo, foo.round(1), ('%.1f' % foo)] # Porfa
<ruboto> Ox0dea # => [6.517000000000001, 6.5, "6.5"] (https://eval.in/435900)
jackjackdripper has quit [Ping timeout: 246 seconds]
<Porfa> damnfooporfa
<Porfa> thx
startupality has joined #ruby
DLSteve has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
frmendes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cndiv has quit [Read error: Connection reset by peer]
cndiv has joined #ruby
ruurd has joined #ruby
momomomomo_ has joined #ruby
Balzrael has quit [Quit: Leaving]
momomomomo has quit [Ping timeout: 244 seconds]
momomomomo_ is now known as momomomomo
youngbaks has joined #ruby
cndiv has quit [Read error: Connection reset by peer]
cndiv has joined #ruby
AbdulRehman has joined #ruby
AbdulRehman has joined #ruby
AbdulRehman has quit [Client Quit]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruurd has quit [Quit: ZZZzzz…]
toretore has joined #ruby
psy_ has quit [Ping timeout: 268 seconds]
baweaver has quit [Remote host closed the connection]
kirun has joined #ruby
pocketprotector has quit [Quit: WeeChat 1.2]
pocketprotector has joined #ruby
chadwtaylor has joined #ruby
daed has joined #ruby
dgutierrez1287 has joined #ruby
grenierm has joined #ruby
mosez has joined #ruby
<cndiv> Hey #ruby, another n00b question. I'm learning from an online course (pragmatic studio) and they have me learning 2012 RSpec and some outdated things. My question is - is RSpec the big-name testing suite at this point? And if not, is the "domain-specific" language it uses universal for all testing suites? Am I learning something out-of-date?
da3mian has joined #ruby
<eam> it is not universal, it's fairly weird and specific to rspec. That said, it's still used by many
dgutierrez1287 has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
dgutierrez1287 has joined #ruby
<eam> many others use minitest or test-unit or other more standard looking/feeling testing suites
<Porfa> Ox0dea: when i call the var with the math, it doesn't output 6.5
<cndiv> eam: I totally get why I need to learn testing, but learning a specific language that people gave up on, in favor of something that's more modern/easier... sounds like a time waster.
<eam> (and if you learn these you'll be at home in test suites used by other languages)
<shevy> cndiv minitest is also popular and you could ask zenspider here every now and then for simple questions
<cndiv> shevy: Is there an advantage of RSpec over minitest or others? Or it's the same game, different method?
<eam> cndiv: rspec is common in ruby, but I agree with you -- I avoid it
tatsuya_o has joined #ruby
<Porfa> foo = 4.9 * 1.33; [foo, foo.round(1), ('%.1f' % foo)][1].to_s.gsub('.',',')
<cndiv> eam: I'm just (on step one) dealing with "Deprecation Warnings" and that makes me wary.
<Porfa> => "6,5"
<Porfa> 2.2.1 :389 > foo
<Porfa> => 6.517000000000001
<Porfa> why?
<Porfa> stop the madness
ruurd has joined #ruby
<eam> Porfa: why what?
<craysiii> what is this operator called: <<
<eam> cndiv: left shift
<Ox0dea> craysiii: Shovel.
<Porfa> i just want 6,5 in my console ;_;
fred1807 has quit [Quit: fred1807]
robbyoconnor has quit [Ping timeout: 246 seconds]
<eam> Porfa: so, round?
<cndiv> Porfa: Using their example code I get back a "Using `should` from rspec-expectations' old `:should` syntax without explicitly enabling the syntax is deprecated."
<darix> Porfa: works like that here.
<Ox0dea> cndiv: RSpec is still very popular, `should` not so much.
PaulCape_ has joined #ruby
<cndiv> Ox0dea: Is RSpec overly complex, you think? I'm a little surprised there isn't more of an... automatic way of creating tests, or something. Like a "what's this supposed to do?" sort of gem, or something that prompts you and then fills in the blanks. Or maybe I'm being lazy or ignorant of something.
PaulCapestany has quit [Ping timeout: 255 seconds]
<Ox0dea> cndiv: Yes, it's overly complex, but many people feel its DSL to be "human-readable", as it were.
<eam> the way we express "what's this supposed to do" is the code comprising the function itself
leafybasil has joined #ruby
<eam> presumably the methods own definition is the most concise way to express the function of the method
<cndiv> Ok, that makes sense. So I guess I'm going to push on with RSpec, as instructed, and try to patch using the error messages as they come up.
<eam> testing basically operates on the assumption that we screwed up in explaining what we want the computer to do
lkba has quit [Ping timeout: 240 seconds]
<cndiv> Like I've said before, all this is getting into my head, one way or another!
<darix> eam: or on the assumption "this code will cover all the cases but some nice person thought it should also eat that input data and not fail" :)
<eam> yes, expectations vary between authors
<cndiv> eam: But RSpec is standard enough that it's not unreasonable at all to use it in 2015
<cndiv> right?
<Ox0dea> Right.
<eam> cndiv: a matter of personal opinion, I think. Some projects you're likely to work with will use it
<eam> it's probably worth understanding
<cndiv> And then I can move on if necessary in the future, that makes sense.
<cndiv> I'm basically just making sure I'm not learning a depreciated, now-backwards, 'grandpa' sort of way through testing for no apparent reason.
chadwtaylor has quit [Ping timeout: 240 seconds]
<Ox0dea> *deprecated
cndiv has quit [Read error: Connection reset by peer]
PaulCape_ has quit [Max SendQ exceeded]
<Ox0dea> Test suites lose value as soon as you drive them off the lot.
cndiv has joined #ruby
yfeldblum has joined #ruby
PaulCapestany has joined #ruby
<cndiv> Ox0dea: Well, I meant depreciated - diminished in value over time, not just disapproved of. But both, really.
<Ox0dea> I doubt it, but okay.
<cndiv> I'm confused what you mean
chadwtaylor has joined #ruby
Melpaws has quit [Quit: Leaving.]
<eam> cndiv: pretty sure it's a "buy used" argument, maybe Ox0dea is anti-NIH?
ruurd has quit [Quit: ZZZzzz…]
<tubbo> lol
SCHAAP137 has joined #ruby
<tubbo> no Ox0dea just knows the difference between "deprecated" and "depreciated"
<tubbo> which most programmers simply don't
grenierm has quit [Quit: grenierm]
bugrum has quit [Remote host closed the connection]
<eam> I'm still trying to figure out why the dictionary misspelled referrer
<cndiv> Well, I'm not a programmer, that's what I'm working on, but I've read books before. I'm not trying to stir up trouble.
<eam> cndiv: your observations are astute and on-point; don't sweat it
<Ox0dea> cndiv: You're in good(?) company. <3
<tubbo> cndiv: it's cool, just a reoccuring joke i've noticed amongst programmers. you've probably heard "depreciated" a lot more than "deprecated" because your investments can't deprecate :P
tatsuya_o has quit [Read error: Connection reset by peer]
<eam> definately
<miah> we self deprecate, but rarely self depreciate
tatsuya_o has joined #ruby
momomomomo has quit [Ping timeout: 265 seconds]
<Ox0dea> Nothing is worse than "recurse".
<eam> "I'm such an idiot"
ruurd has joined #ruby
monoprotic has quit [Quit: bite me]
<cndiv> Ok, out of here for the day. Thanks for your help, all.
<miah> cndiv: <3
<Ox0dea> cndiv: Did you learn how to convert from `should` to `expect`?
<eam> ruby's expect support is lacking
<cndiv> Ox0dea: I will, as I work my way through the lesson. :-)
<Ox0dea> cndiv: Copy.
yfeldblum has quit [Ping timeout: 240 seconds]
<cndiv> Ox0dea: Copy which?
<Ox0dea> cndiv: That.
<cndiv> or, what?
<Ox0dea> 10-4.
<cndiv> Oh, alright. Thanks.
<eam> she's a which
chadwtaylor has quit [Read error: Connection reset by peer]
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chadwtaylor has joined #ruby
based_pdev has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
cndiv has quit [Quit: Be back later ...]
<Ox0dea> The score of the other game was two to two too.
<havenwood> Minitest!
pwnd_nsfw has quit [Ping timeout: 246 seconds]
k3asd` has joined #ruby
<havenwood> Ships with Ruby ✔︎ Rails default ✔︎ Faster ✔︎ Simpler ✔︎✔︎✔︎
eminencehc has quit [Remote host closed the connection]
<dorei> havenwood: does it have color output like rspec? :D
<havenwood> dorei: require 'minitest/pride'
<havenwood> dorei: Very rainbow ^ but yeah red/green is nice.
workmad3 has joined #ruby
linuxboy_ has joined #ruby
<havenwood> dorei: Pride ships with Ruby but you can use it as an example of how to do it in any custom fashion your like or use a plugin like minitest-rg.
<havenwood> s/your/you
Neverdie has quit [Quit: http://radiux.io/]
<dorei> i'll give it a try, thanx :)
banjara has joined #ruby
baroquebobcat_ has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
banjara has quit [Changing host]
banjara has joined #ruby
jeremati_ has joined #ruby
baroquebobcat has quit [Ping timeout: 240 seconds]
baroquebobcat_ is now known as baroquebobcat
linuxboytoo has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
Neverdie has joined #ruby
khebbie has joined #ruby
benlieb has quit [Quit: benlieb]
khebbie has quit [Remote host closed the connection]
jerematic has quit [Ping timeout: 265 seconds]
jeremati_ has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
pwnd_nsfw has joined #ruby
mosez has quit [Quit: Switching back to real life]
allcentury has quit [Ping timeout: 244 seconds]
vdamewood has joined #ruby
mosez has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
umgrosscol has quit [Remote host closed the connection]
paulcsmith has joined #ruby
aswen has joined #ruby
HAL2328 has joined #ruby
vdamewood has quit [Max SendQ exceeded]
ricer2 has quit [Quit: Caught SystemExit exception.]
diegoviola has quit [Quit: WeeChat 1.3]
bruno- has joined #ruby
hinbody has quit [Quit: leaving]
beginner_with_qu has joined #ruby
umgrosscol has joined #ruby
Oka has joined #ruby
failshell has quit []
d5sx43 has joined #ruby
<beginner_with_qu> Alright. If I wanted to randomly pair two distinct arrays [1x,2x,3x] [1y,2y,3y] such as [1x,2y] [3x,1y] [2x,2y] but I wanted to prevent any pair [2x,2y] from occurring, is there a simple way to go about this?
UtkarshRay has quit [Quit: Leaving]
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
paulcsmith has joined #ruby
<havenwood> >> [1, 2, 3].uniq.sample 2
slayerjain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ruboto> havenwood # => [2, 1] (https://eval.in/435924)
<havenwood> beginner_with_qu: oh
<beginner_with_qu> Hrm.
slayerjain has joined #ruby
<havenwood> beginner_with_qu: I just saw you want one from first and one from last. Maybe say more about the requirements. Are there always going to be a pair available?
allomov has joined #ruby
<Ox0dea> beginner_with_qu: Do you mean to say that you don't want to get back a pair whose elements are equal?
<beginner_with_qu> I took an array such as [xy,xy,xy] and broke it into [x,x,x] [y,y,y]. then shuffled y, and did an x_array.each do, to repair them. This gave me a new randomly sorted pairs. However
<beginner_with_qu> I want to exclude original pairs
<beginner_with_qu> none of these values should be considered equal to another
<eam> don't shuffle? Instead sample
jgt has quit [Ping timeout: 240 seconds]
<beginner_with_qu> sample might repeat
<eam> right, so don't
jerematic has joined #ruby
<eam> r = rand [1,2,3,4].size; # index of array one
d5sx43 has quit [Quit: Leaving...]
slayerjain has quit [Client Quit]
<eam> when you pick a rand for index of array two, don't let it equal r
baweaver has joined #ruby
<beginner_with_qu> Yes, thats exactly what Im looking for.
<eam> the problem is, r2 = rand(lim) until r2 != r1 is O(infinity)
<eam> probably fine though
<beginner_with_qu> Although Is there a way to call rand(x) and exclude a result?
<eam> no, just call it in a loop
<beginner_with_qu> Fair
<Ox0dea> beginner_with_qu: Could x be quite large?
<beginner_with_qu> Alright, that was my first guess, but it seemed convoluted
<eam> OR, a more technically correct solution might be to subtract 1 from the lim
<eam> and then adjust it with a bit of math
<beginner_with_qu> x and y are both strings, actually
<eam> that's O(1) for realsies
<Ox0dea> beginner_with_qu: No, I meant in your call to #rand there.
ricer2 has joined #ruby
<beginner_with_qu> eam, I'll work with that. Ox0dea I dont know what you mean by quite large
niemcu has joined #ruby
<eam> r1 = rand(100); r2 = rand(99); r2 +=1 if r2 >= r1
<Ox0dea> >> ([*1..10] - [7]).sample # random x from 1 to 10, never 7
<ruboto> Ox0dea # => 9 (https://eval.in/435926)
<Ox0dea> eam's is better, though.
jerematic has quit [Client Quit]
ruurd has joined #ruby
CloCkWeRX has quit [Ping timeout: 250 seconds]
baweaver has quit [Ping timeout: 240 seconds]
<beginner_with_qu> thanks for the help. I'm going to copy both and break them down until I'm certain I understand both, and move forward from there. :)
umgrosscol has quit [Remote host closed the connection]
<eam> solid strategy
tatsuya_o has quit []
HAL2328 has quit [Ping timeout: 240 seconds]
HAL2328 has joined #ruby
symm- has joined #ruby
redondo has quit [Ping timeout: 240 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
chills42 has quit [Remote host closed the connection]
baweaver has joined #ruby
araujo_ has joined #ruby
tejasmanohar has joined #ruby
Zackio has quit [Quit: C-x C-c]
moeabdol has joined #ruby
lea has quit [Ping timeout: 264 seconds]
x-light has joined #ruby
araujo has quit [Ping timeout: 250 seconds]
hashrocket has joined #ruby
kadoppe has quit [Ping timeout: 240 seconds]
Vile` has quit [Ping timeout: 240 seconds]
bazbing81 has joined #ruby
bazbing81 has quit [Client Quit]
dionysus69 has quit [Ping timeout: 240 seconds]
CustosL1men has joined #ruby
uber has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
<Porfa> hmmm anyone knows why… "Selenium::WebDriver::Support::Select.new(driver.find_element(:id, "BLABLA")).select_by(:text, "Não")" gives error… utf-8
<Porfa> how to make it work with utf 8 from the start?
jgpawletko has quit [Quit: jgpawletko]
<Porfa> just say "hey, everything here is gonna go around in utf, so you better listen carefully son"
andyrs has quit [Quit: gone to sleep. ZZZzzz…]
Zackio has joined #ruby
kadoppe has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
<Porfa> i have # encoding: UTF-8
beauby has joined #ruby
<bazbing80> the define method can take both a proc and an unbound method when defining its methods. Can I convert a proc (e.g. { 4 + 4 } ) into an unbound method and use that with 'define'. Or can I turn an unbound method (retrieved via .instance_method) and convert that into a proc and use it with define?
<Ox0dea> bazbing80: Why do you need to do any conversion?
Vile` has joined #ruby
startupality has quit [Quit: startupality]
freerobby has joined #ruby
<bazbing80> Ox0dea: not critical, but I'm refactoring my code and don't want a certain method to have to differentate between whether its been given a block (a proc) or an argument (an unbound method). I either want to give it only procs or only unbound methods
<Ox0dea> bazbing80: Oh, sorry. I misread. I thought you were asking about the #define_method metho.
<Ox0dea> *method
<eam> a block, a proc, a lambda, panama!
<bazbing80> Ox0dea: nope I understand that :)
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
slayerjain has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
<Ox0dea> bazbing80: Proc and UnboundMethod can't be used interchangeably, since the latter needs to be bound before being called.
<Ox0dea> I'm sure you're doing something a little crazy, so why not alias Proc#bind to #itself. :P
mjuszczak has quit []
llrot has joined #ruby
<llrot> how are programming talk throughs made on khan academy?
andyrs has joined #ruby
andyrs has quit [Client Quit]
aswen has quit [Ping timeout: 260 seconds]
<Ox0dea> llrot: Ctrl-U.
dopie has joined #ruby
voltalio has joined #ruby
<bazbing80> Ox0dea: it is a little crazy (only a little :P)...do you mean monkey-patch the Proc class and use alias_method :itself, :bind ?
jamesaxl has joined #ruby
<Ox0dea> bazbing80: Well, yeah, something like that.
<Ox0dea> Only it's backwards. :/
<Ox0dea> proc.bind().call(1, 2) vs. unbound.bind(1, 2).call
<bazbing80> Ox0dea: I know, I keep doing that! In my head I'm
<bazbing80> oops trigger happy enter..but yeah that could work, thanks :P
youngbaks has quit [Ping timeout: 255 seconds]
tcopeland has quit [Ping timeout: 260 seconds]
phutchins has joined #ruby
redondo has joined #ruby
<Ox0dea> bazbing80: You could have some proxy class that does the invocations in the proper order depending on whether it was constructed with a Proc or a UM.
gurnoorinder has joined #ruby
<gurnoorinder> hello everyone. Can anyone tell me which is the most suitable version of ruby for dev on mac os 10.6.8
<jhass> 2.2.3
<bazbing80> Ox0dea: that's a nice idea... .define takes UMs and Procs like a champ so I thought it was easy to convert between them. But I'll create a new class for practise
<gurnoorinder> i tried downloading 2.2.2 and it failed to complue. using chruby and ruby-install
MagePsycho has joined #ruby
<gurnoorinder> jhass: okay. 2.2.3?
<Ox0dea> bazbing80: It takes them, sure, but the problem is that you're not able to ignore which kind you got before calling it, right?
<jhass> gurnoorinder: that's what i said
<gurnoorinder> jhass: and incase it fails to install. any alternative version?
<havenwood> gurnoorinder: Did you install Homebrew first? Is it updated (`brew update`)? Is brew having issues (`brew doctor`)?
<jhass> gurnoorinder: in case it fails come here with the error message
<bazbing80> gurnoorinder: I remember rvm required GCC available through xcode, but mac days are over for me. Ubuntu now.
<gurnoorinder> i did brew doctor. resolved all the issues. it needs xcode 3.2.6 which i am downloading right now.
<shevy> yay! come to linux
<havenwood> gurnoorinder: Aha, yup.
<havenwood> gurnoorinder: Make sure to do a `brew update` before other commands.
<bazbing80> Ox0dea: ill create a gist haha. it's such a trivial thing, just gathering knowledge
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> bazbing80: Looking forward to seeing how you got into this mess. :P
d5sx43 has joined #ruby
<gurnoorinder> havenwood: good to see you again. i did and brew said everything is up to date.
<gurnoorinder> will do it again havenwood
<havenwood> Ah good.
lea has joined #ruby
eminencehc has joined #ruby
<havenwood> That Xcode version just didn't seem right since 7.0 has been released.
<bazbing80> Ox0dea: ill create a gist haha. it's such a trivial thing, just gathering knowledge
r_baron has joined #ruby
stamina has joined #ruby
slayerjain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
redondo has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
d5sx43 has quit [Quit: Leaving...]
segfalt has quit [Quit: segfalt]
mjuszczak has joined #ruby
uber has joined #ruby
niemcu has quit [Quit: Leaving]
<Ox0dea> bazbing80: Should I go look for it?
khebbie has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
troyready has joined #ruby
khebbie has quit [Remote host closed the connection]
deject3d has joined #ruby
<gurnoorinder> havenwood: but i am still using 10.6.8 and thats the max i can use on this version of mac os i think
devoldmx has joined #ruby
da3mian has quit [Quit: Textual IRC Client: www.textualapp.com]
<gurnoorinder> havenwood: somehow i am not able to install ruby versions more than 2.1.3 using chruby
yfeldblum has joined #ruby
<havenwood> gurnoorinder: Your GCC seems too old.
<miah> you can brew install gcc
<gurnoorinder> alright
<havenwood> gurnoorinder: There are workarounds. Update OS X!
<miah> to avoid the xcode plague
<miah> havenwood: not possible on all macs
<havenwood> miah: good point
<havenwood> 64-bit
<miah> i have a macbook stuck on 10.6.8
<havenwood> eek
<miah> THANKS APPLE
<gurnoorinder> okay. i willl try
ItSANgo has joined #ruby
llrot has quit [Quit: Page closed]
<gurnoorinder> havenwood: miah: i had 2.2.2 via rvm. now that i switched to chruby, there seems to be a problem
<miah> honestly, once the mac falls into 'unsupported by apple' territory its probably best to just put linux on it. but my daughter is using that macbook for now.
jschmid has joined #ruby
niemcu has joined #ruby
segfalt has joined #ruby
v4mpii has quit [Quit: Leaving]
<miah> gurnoorinder: you might have to re-install ruby 2.2.2 for chruby, or move your /usr/local/share/rvm/rubies/2.2.2 (or whatever its called) into ~/.rubies
<havenwood> gurnoorinder: RVM supports older systems and more Ruby patches, etc. It's tens of thousands of lines of shell.
<gurnoorinder> miah: maybe i will do that pretty soon if it doesnt work for me
<miah> i usually use ruby-install with chruby
<havenwood> gurnoorinder: brew tap homebrew/versions && brew install gcc5
<havenwood> gurnoorinder: Then: ruby-install ruby 2.2.3 -- CC=gcc-5
<miah> afk
<gurnoorinder> miah: i had deleted everything from mac. and i ma now making a fresh install
<havenwood> Or is it `CC=gcc-5.0`? Dunno.
devoldmx has quit [Ping timeout: 250 seconds]
<havenwood> gurnoorinder: Anyways, last time I tested it: ruby-install ruby 2.2.3 -- CC=gcc-4.9
<havenwood> gurnoorinder: Check the requirements (gcc >= 4.2): https://github.com/postmodern/ruby-install#requirements
<gurnoorinder> oops havenwood i just ran "brew install gcc"
<havenwood> gurnoorinder: That should grab gcc-5
<gurnoorinder> alright. will keep a check on that
<havenwood> The only reason to tap versions really is so we can give exact instructions on the CC=
redondo has joined #ruby
<gurnoorinder> havenwood: thanks. got it.
<gurnoorinder> miah: is upgrading the os worth it? i tried upgrading it once and it really screwed my system. it only has 4 gig of ram.
freezevee has joined #ruby
<gurnoorinder> havenwood: do u use a mac?
robbyoconnor has joined #ruby
da3mian has joined #ruby
robbyoconnor has quit [Client Quit]
Neverdie has quit [Quit: http://radiux.io/]
symm- has quit [Quit: Leaving...]
elperdut has quit [Ping timeout: 240 seconds]
kies has quit [Ping timeout: 256 seconds]
mesamoo has joined #ruby
tejasmanohar has quit [Quit: tejasmanohar]
SenpaiSilver has joined #ruby
beauby has quit [Ping timeout: 256 seconds]
amystephen has quit [Ping timeout: 264 seconds]
nettoweb has joined #ruby
urika has joined #ruby
bmurt has quit []
segfalt has quit [Quit: segfalt]
jenrzzz_ has joined #ruby
dopamean_ has quit [Ping timeout: 260 seconds]
beauby has joined #ruby
<havenwood> gurnoorinder: I often do, yeah.
<havenwood> gurnoorinder: Newer OS X actually compresses memory.
jenrzzz has quit [Ping timeout: 256 seconds]
iceyec has quit [Quit: iceyec]
omarJs has joined #ruby
<gurnoorinder> havenwood: so if i get 8 gig of ram total and upgrade it to yosemite, will it serve the purpose? and no performance issues?
<omarJs> Hello
r_baron has quit [Ping timeout: 246 seconds]
yalue has quit [Ping timeout: 260 seconds]
imperator has joined #ruby
<miah> i use a mac, for now. i tend to run the newest stuff. but i also have more than 4gb of ram. my other macbook that my daughter uses only has 2 gb of ram. its fine with 10.6.8, i cant upgrade it to anything higher than that so i have no idea if performance improves.
Azure|dc has joined #ruby
<gurnoorinder> miah: thanks a lot
<miah> ram upgrades, and os etc, all depend on your mac hardware though, so be aware of that
DLSteve has quit [Ping timeout: 240 seconds]
tacit7 has joined #ruby
<gurnoorinder> miah: i will take care of that
<gurnoorinder> thank
imperator has quit [Quit: Leaving]
<Porfa> how can i check for an element in selenium without it freaking out?
bigbadbear has quit [Ping timeout: 246 seconds]
<deject3d> this is the ruby channel not the selenium channel
rodfersou is now known as rodfersou|dinner
cschneid_ has quit [Remote host closed the connection]
<Porfa> sorry
Igorshp has quit [Remote host closed the connection]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Azure has quit [Ping timeout: 240 seconds]
beauby has quit [Ping timeout: 265 seconds]
<atmosx> yes but don't do it ever again
Jammyhammy|Work has joined #ruby
stamina has quit [Remote host closed the connection]
niemcu has quit [Quit: Leaving]
<atmosx> miah: I heard that the laest OS has perf. improvements, mostly.
<atmosx> so it shoul dbe okay
jgpawletko has joined #ruby
rakm has joined #ruby
HAL2328 has quit [Ping timeout: 240 seconds]
<havenwood> Porfa: Looks like there really is a #selenium channel. :) I bet the #rubyonrails channel is more familiar as well.
platzhirsch has joined #ruby
HAL2328 has joined #ruby
rodfersou|dinner has quit [Quit: leaving]
HAL2328 has quit [Max SendQ exceeded]
HAL2328 has joined #ruby
JoshL has quit [Remote host closed the connection]
HAL2328 has quit [Max SendQ exceeded]
Vile` has quit [Ping timeout: 264 seconds]
drewvanstone has quit [Ping timeout: 255 seconds]
paulcsmith has quit [Quit: Be back later ...]
HAL2328 has joined #ruby
HAL2328 has quit [Max SendQ exceeded]
<miah> atmosx: that to me sounds subjective
HAL2328 has joined #ruby
<miah> <- not planning on upgrading to elcapitan.
<miah> hoping to turn in my work laptop soon and not run osx again
Melpaws has joined #ruby
diegoviola has joined #ruby
amystephen has joined #ruby
djcp has quit [Ping timeout: 246 seconds]
jenrzzz_ has quit [Ping timeout: 250 seconds]
mjuszczak has quit []
ruurd has quit [Quit: ZZZzzz…]
drewvanstone has joined #ruby
chadwtay_ has joined #ruby
<HAL2328> miah, what's the matter with osx
FernandoBasso has joined #ruby
bugrum has joined #ruby
<HAL2328> miah, you want windows hell?
<miah> no. but its my personal opinion that its going down hill and i wish to not run it anymore.
<tcdowney> Windows 10 is a flawless operating system optimized for Ruby development. There is so such thing as "windows hell." :)
<miah> why are you assuming i'll run windows if i leave osx?
<havenwood> I have a soft spot for the BSDs.
jschmid has quit [Remote host closed the connection]
workmad3 has joined #ruby
<pipework> tcdowney: You're not even a good troll.
omarJs has quit [Ping timeout: 265 seconds]
<tcdowney> just jokin :P
* capin <3 arch
Vile` has joined #ruby
<pipework> Tell me about OS/2 being a haven for developers.
dfockler has quit [Remote host closed the connection]
mjuszczak has joined #ruby
<miah> going back to dos/desqview and turbopascal
dfockler has joined #ruby
* pipework prefers to DIY for fun, but just goes dpkg-based usually debian for not fun workytimes :(
<shevy> ewwww dpkg
chadwtaylor has quit [Ping timeout: 240 seconds]
mjuszczak has quit [Remote host closed the connection]
<pipework> shevy: It's not so bad after you learn how to be a packager.
<HAL2328> turbopascal ftw
iamninja has quit [Ping timeout: 265 seconds]
<HAL2328> miah, i do agree that osx hasn't improved much since 10.6. unless you care for twitter/facebook integrations
workmad3 has quit [Ping timeout: 250 seconds]
phreakocious has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
but3k4 has joined #ruby
but3k4 has quit [Client Quit]
khebbie has joined #ruby
<miah> i deleted my facebook so.
<pipework> HAL2328: But the crypto is claimed to have improved. :(
agent_white has joined #ruby
phreakocious has joined #ruby
tejasmanohar has joined #ruby
deject3d has quit [Quit: Computer has gone to sleep.]
ckinniburgh__ has joined #ruby
<havenwood> HAL2328: I disagree actually. The battery-life and speed improvements are substantial.
axl_ has joined #ruby
<havenwood> sudo sysctl -w kern.timer.coalescing_enabled=1 \o/
lkba has joined #ruby
cb_ has joined #ruby
<miah> isnt it 1 by default?
tcdowney has quit [Quit: Computer has gone to sleep.]
<havenwood> yeah
krz has quit [Quit: WeeChat 1.2]
ckinniburgh_ has quit [Ping timeout: 244 seconds]
baweaver has quit [Ping timeout: 264 seconds]
khebbie has quit [Ping timeout: 268 seconds]
ldnunes has quit [Quit: Leaving]
<havenwood> I wouldn't want to disable it either.
voltalio has joined #ruby
allomov has quit [Remote host closed the connection]
dopamean_ has joined #ruby
<miah> but it looks like that issue was fixed in newer xcode. i dont mess with sysctls on osx at all though
x-light has quit [Ping timeout: 265 seconds]
cornerma1 has joined #ruby
<HAL2328> havenwood, what's the hardware you are using?
<miah> i dont do anything crazy / non-standard to osx at this point. apart from using nix instead of homebrew.
ckinniburgh__ has quit [Ping timeout: 268 seconds]
<havenwood> HAL2328: 2.8 GHz Intel Core i7
A124 has joined #ruby
<HAL2328> havenwood, the battery life enhancements is more from your hardware consuming less imo, i have a 2.2 i7 from 2011. i've tried yosemite, not much change from 10.7-9
<havenwood> I like the additional polish in El Capitain. A few things I try and don't work now work. And polish. New features seems to be pretty much just filling in missing multi-screen stuff.
cornerman has quit [Ping timeout: 255 seconds]
freerobby has quit [Quit: Leaving.]
cornerma1 is now known as cornerman
<havenwood> Snappier now.
Neverdie has joined #ruby
gurnoorinder has left #ruby [#ruby]
<havenwood> HAL2328: They probably do target newer hardware with improvements but they seem real.
neanderslob has joined #ruby
<adaedra> My computer performance really went down with Yosemite though.
<adaedra> I hope El Cap makes that better.
dfockler has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
ledestin has joined #ruby
minimalism has joined #ruby
<HAL2328> havenwood, i agree. lion felt like an unfinished product. mavericks polished it quite the way i liked it.
ruurd has joined #ruby
<HAL2328> i like the polishes but the additional social features, trying to unite iOS with OS X should be left optional
Azure|dc is now known as Azure
<HAL2328> but that's wishful thinking apple wants ios users to be os x and android + os x to ditch their android for ios
<adaedra> They are? You don't have to put in your social acconts?
jschmid has joined #ruby
Voker57 has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
karapetyan has joined #ruby
AlexRussia has joined #ruby
badbodh has joined #ruby
omarJs has joined #ruby
ruurd has quit [Client Quit]
<miah> its not hard, google is doing a horrible job with android in regards to fragmentation and 'old device support' (any device older than 1 year is abandonded basically)
<miah> ive been an android user since it launched and i just feel like it gets worse and worse, mostly because of the way vendors treat their products though
<miah> within 6 months of getting any phone to market (which takes ~2 years) they're already replacing it
<HAL2328> adaedra, its not required that you log in, but its in the os x taking up resources.
<miah> cyanogen doesnt help at all. but this is all probably best for > #ruby-offtopic too =)
eminencehc has joined #ruby
jhn has quit [Quit: Textual IRC Client: www.textualapp.com]
KucukMubasir has quit [Quit: KucukMubasir]
<HAL2328> miah, not if we segway into community project: ruby-OS
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has quit [Ping timeout: 255 seconds]
niemcu has joined #ruby
<miah> doesnt seem like that conditional is returning a value though
dfinning_ has quit [Ping timeout: 246 seconds]
voltalio has joined #ruby
badbodh has quit [Remote host closed the connection]
niemcu has quit [Client Quit]
dfockler has joined #ruby
deject3d has joined #ruby
joegyoung has joined #ruby
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
Renich has joined #ruby
<joegyoung> Hi everyone. So i have question that I can't just figure out. I have "\\\\Storage01\\_Students\\2020\\kasandra.h.jackson" and I want to gsub all double slashes with single slashes. I can't do .gsub("\\","\") What the heck
jenrzzz has joined #ruby
<cantaberry> Is there a way to make a rubocop exception file specific?
<Ox0dea> joegyoung: You don't actually have double backslashes.
n4t3 has joined #ruby
x-light has joined #ruby
x-light has quit [Remote host closed the connection]
<Ox0dea> >> "\\".length # joegyoung
<ruboto> Ox0dea # => 1 (https://eval.in/435999)
inteq has quit [Remote host closed the connection]
neanderslob has quit [Ping timeout: 240 seconds]
<n4t3> Hi, I'm having a problem with 'micromidi' library, where it just can't handle me pressing two or more keys very quickly at once, and won't notify me of the NoteOf/NoteOff events.
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<n4t3> I know it's not a hardware problem with my electronic Clavinova keyboard, because it works fine with Anvil Studio 2015. I'm guessing something to do with thread issues??
neanderslob has joined #ruby
JoshL has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Melpaws1 has joined #ruby
shmilan has quit [Ping timeout: 240 seconds]
badbodh has joined #ruby
voltalio has joined #ruby
Igorshp has joined #ruby
<joegyoung> OK revised question. hot do I get "\\\\Storage01\\_Students\\2020\\first.h.last" to "\\Storage01\_Students\2020\first.h.last".....
<Ox0dea> Cantaberry: Does placing one of the special comments at the top of the file not suffice?
Melpaws has quit [Ping timeout: 240 seconds]
kies^ has quit [Ping timeout: 264 seconds]
luksaur has quit [Quit: Leaving]
grenierm has joined #ruby
<Ox0dea> joegyoung: Which method are you using to display these strings that you think contain double backslashes?
voltalio has quit [Client Quit]
devdazed has quit [Quit: Computer has gone to sleep.]
ruurd has joined #ruby
<zenspider> anyone have any idea what's different in require between 1.9.3 and 2.2.2 (with rails and bundler in the mix)? I'm monkey patching to see what requires are taking the longest. Works great on 1.9.3 but raises on 2.2.2 on bigdecimal saying it isn't in the gemfile (?!?!)
n4t3 has quit [Quit: ircII EPIC4-2.10.5 -- Are we there yet?]
unop has quit [Ping timeout: 248 seconds]
<joegyoung> Ox0dea: It is a string. I am using active_directory to pull a user's homefolder. This is the result
HAL2328 has quit [Quit: Leaving]
voltalio has joined #ruby
<zenspider> joegyoung: you're just confused between inspect output and the string contents
swgillespie has joined #ruby
eightyeight has quit [Remote host closed the connection]
based_pdev has joined #ruby
<zenspider> /Users/ryan/.gem/repos/capshare22/gems/bundler-1.10.6/lib/bundler/rubygems_integration.rb:292:in `block in replace_gem': bigdecimal is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
<zenspider> wtf
eightyeight has joined #ruby
eightyeight has quit [Changing host]
eightyeight has joined #ruby
<zenspider> now psych
<zenspider> ugh.
jdawgaz has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
<joegyoung> But if I do this: "\\\\Storage01\\_Students\\2020\\first.h.last".split(/\\/).join("\\") this I get "\\\\Storage01\\_Students\\2020\\first.h.last".. sucks
decoponio has joined #ruby
victortyau has quit [Quit: Leaving]
r_baron has joined #ruby
apt-get has quit [Ping timeout: 250 seconds]
jenrzzz_ has joined #ruby
<zenspider> again... you're confused simply by LOOKING at the string
ngscheurich has quit [Ping timeout: 250 seconds]
<zenspider> use puts
<joegyoung> I understat that the \ is special it is single when do \s or \e ..... puts OK I test
tacit7 has quit [Ping timeout: 255 seconds]
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 265 seconds]
m4rCsi has quit [Quit: No Ping reply in 180 seconds.]
mary5030 has quit [Remote host closed the connection]
<joegyoung> zenspider: ah.... puts not p
bkulbida has quit [Ping timeout: 246 seconds]
dman777_alter has quit [Quit: Lost terminal]
mary5030 has joined #ruby
<joegyoung> zenspider: thank you. Now I need to see how it ain't working in my script
petricore has joined #ruby
tcopeland has joined #ruby
badbodh has quit [Remote host closed the connection]
badbodh has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poguez_ has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
Soda has quit [Remote host closed the connection]
vikaton has joined #ruby
shmilan has joined #ruby
grenierm has quit [Quit: grenierm]
based_pdev has quit [Read error: Connection reset by peer]
axl_ has left #ruby [#ruby]
<zenguy_pc> how do parse (Array<OpenStruct>) ?
<zenguy_pc> the output
joegyoung has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nateberkopec has quit [Ping timeout: 240 seconds]
<zenguy_pc> from something like puts "#{authenticated_client.friends}"
MagePsycho has quit [Quit: MagePsycho]
eightyeight has left #ruby ["wwjd? jwrtfm"]
eminencehc has quit [Remote host closed the connection]
dima_ has joined #ruby
poli has joined #ruby
vdamewood has joined #ruby
araujo_ has quit [Quit: Leaving]
eminencehc has joined #ruby
swistak35_ has quit [Quit: ZNC - http://znc.in]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
A124_ has joined #ruby
A124 has quit [Read error: Connection reset by peer]
A124_ has quit [Client Quit]
A124 has joined #ruby
badbodh has quit [Remote host closed the connection]
Sou|cutter has joined #ruby
dima_ has quit [Quit: This computer has gone to sleep]
<Ox0dea> zenguy_pc: Could you clarify?
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kallis has joined #ruby
Kallis has quit [Max SendQ exceeded]
diegoviola has quit [Quit: WeeChat 1.3]
devoldmx has joined #ruby
snockerton has quit [Quit: Leaving.]
<zenguy_pc> using redditkit, redditkit.com . Authenticated_client = RedditKit::Client.new 'Username', 'password' ... puts "#{authenticated_client.friends}"
ekain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cache_Money has quit [Quit: Cache_Money]
<zenguy_pc> i get an output thats described as (Array<OpenStruct>) .. it has what i want in it but i have no clue how to parse it
<zenguy_pc> i just want the name value
<Ox0dea> zenguy_pc: your_array.map(&:username) should do.
Asher has quit [Quit: Leaving.]
<zenguy_pc> Ox0dea: ok, i'm looking it up
badbodh has joined #ruby
Igorshp has quit [Remote host closed the connection]
Renich has quit [Quit: Lost terminal]
Asher has joined #ruby
kies has joined #ruby
<Ox0dea> zenguy_pc: For future reference, use #p for debug output, not #puts.
banjara has quit [Quit: Leaving.]
devoldmx has quit [Ping timeout: 255 seconds]
<zenguy_pc> ok
<zenguy_pc> friend = (authenticated_client.friends).map ?
poli has quit [Ping timeout: 246 seconds]
<zenguy_pc> did you mean something like that?
kirun has quit [Read error: Connection reset by peer]
polishdub has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 264 seconds]
Porfa has quit [Quit: gggggnight everyone! :)))]
<Ox0dea> &ri OpenStruct Array#map
<Ox0dea> zenguy_pc: ^
<Ox0dea> Whoops. That's not the OpenStruct documentation I'd hoped would be linked.
<Ox0dea> adaedra: ^
<shevy> "I then spent maybe six hours fighting with RVM"
<shevy> havenwood!!! an unbeliever!
anjen has joined #ruby
<shevy> lol
<havenwood> shevy: They're doing it wrong.
shinnya has quit [Ping timeout: 265 seconds]
<Eiam> lol
<Eiam> chruby!
<shevy> the github tracker led to apeiros commenting 4 years ago :D https://github.com/rvm/rvm/issues/623
* havenwood does a chruby dance
hahuang65 has quit [Quit: WeeChat 1.3]
<shevy> I wonder if apeiros is using chruby now
<havenwood> shevy: I don't think so. If it ain't broke...
<shevy> I'll ask him when he is back, he is probably partying in brokeback swiss mountain as we type this!
jobewan has quit [Ping timeout: 250 seconds]
Cu5tosLimen has joined #ruby
m4rCsi has joined #ruby
Neverdie has quit [Quit: http://radiux.io/]
eminencehc has quit [Remote host closed the connection]
Nanuq has quit [Ping timeout: 264 seconds]
Nanuq has joined #ruby
ramfjord has joined #ruby
dfockler has quit []
DLSteve has joined #ruby
k3asd` has quit [Ping timeout: 255 seconds]
CustosL1men has quit [Quit: Leaving]
<beginner_with_qu> alright. I was asking this same thing earlier, and recieved help. However, I could not make use of this help due to incompetence. Now I need to see this thing work so I might be able to actually learn from my mistakes. Learning what deoesnt work is important sure, but enough of that. Anyone have the few minutes?
Neverdie has joined #ruby
<Ox0dea> beginner_with_qu: Fire away.
<beginner_with_qu> https://eval.in/436011
<beginner_with_qu> That's what I got working.
<beginner_with_qu> Which I mentioned before.
sunaku has joined #ruby
bmurt has joined #ruby
<zenguy_pc> when makign a reuby one liner, are the gems sperated by comma or end statement?
firstdayonthejob has quit [Ping timeout: 260 seconds]
Cu5tosLimen has quit [Quit: CustosLimen]
<Ox0dea> zenguy_pc: Stop it.
<zenguy_pc> ; ?
Cust0sLimen has joined #ruby
<Ox0dea> miah: Not really.
jenrzzz_ has quit [Ping timeout: 255 seconds]
<beginner_with_qu> Yeah I dont think that'd do what I need it too
<beginner_with_qu> Although it is cool
<Ox0dea> #zip is more appropriate here, but neither ensures that couples don't end up back together.
<miah> ya
<Ox0dea> beginner_with_qu: The technical term you're looking for is "derangement".
<beginner_with_qu> derangement. Making a note of that for reference
<Ox0dea> [2, 1, 0] is not a derangement of [0, 1, 2] since the 1 hasn't been displaced.
<beginner_with_qu> So either I need to create a derangement? method to loop the shuffle with, or locate a preexisting one
bmurt has quit []
<Ox0dea> beginner_with_qu: Even better would be to nix the question mark.
<beginner_with_qu> I figured the ? was to refer to a return of true/false
sunaku has left #ruby [#ruby]
<Ox0dea> beginner_with_qu: I meant that it'd be more reasonable to just write some #derange method.
<beginner_with_qu> check for derrangment. Unless you mean to say I should just make a method for derrangement
<beginner_with_qu> Right
<beginner_with_qu> sec
Kallis has joined #ruby
<beginner_with_qu> actually I've been trying to do this for the past hour. Now that I'm looking at the code reforming
Luming has joined #ruby
Luming has quit [Remote host closed the connection]
Luming has joined #ruby
blueOxigen has joined #ruby
<beginner_with_qu> Hmmm. sec again
hahuang65 has joined #ruby
Luming has quit [Remote host closed the connection]
eminencehc has joined #ruby
chadwtay_ has quit [Ping timeout: 250 seconds]
Luming has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
Luming has quit [Remote host closed the connection]
saddad has joined #ruby
Luming has joined #ruby
Luming has quit [Remote host closed the connection]
<Ox0dea> beginner_with_qu: Here's my take on the thing: https://eval.in/436014
Melpaws1 has quit [Quit: Leaving.]
Melpaws has joined #ruby
<Ox0dea> I suspect there's some very clever O(n) technique for deranging a sequence, but you're highly unlikely to bump into the O(∞) worst-case complexity of my approach.
astrobunny has joined #ruby
<beginner_with_qu> Hm.
GarethAdams has quit [Ping timeout: 252 seconds]
mwlang has joined #ruby
workmad3 has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
rgb-one has joined #ruby
<dorei> anyone using vim here? how could i fold def..end in vim ?
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
Exuma has joined #ruby
phreakocious has quit [Quit: gotta go]
phreakocious has joined #ruby
GarethAdams has joined #ruby
<Ox0dea> dorei: 'foldexpr' can be a function.
<Ox0dea> Almost all of the 'expr' settings, in fact.
jenrzzz has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
<dorei> i dont want to go down the vim rabithole, just some code to copy-paste into my .vimrc :)
joegyoung has joined #ruby
<Ox0dea> Why ever not? VimL is a very nice language!
shmilan has quit [Ping timeout: 240 seconds]
<beginner_with_qu> actually Ox0, I'm having trouble reading your help. :( "shuffle! while each_with_index.any? { |e, i| e == orig[i] } self" What is this doing?
HAL2328 has joined #ruby
<beginner_with_qu> It looks like shuffle until false. (shuffle! while) each_with_index is a single named object passing true if any? is met.
Kallis has quit [Read error: Connection reset by peer]
<beginner_with_qu> Then any is... doing what? I'm just starting to wrap my head around enumerable s, but I thought the { } was a quality of maps not any?
phreakocious has quit [Quit: gotta go]
<Ox0dea> beginner_with_qu: In this case, the braces are opening a block.
<Ox0dea> >> [1, 2, 3].any { |x| x.even? }
<ruboto> Ox0dea # => undefined method `any' for [1, 2, 3]:Array (NoMethodError) ...check link for more (https://eval.in/436015)
<Ox0dea> >> [1, 2, 3].any? { |x| x.even? }
<ruboto> Ox0dea # => true (https://eval.in/436016)
iamninja has joined #ruby
<Ox0dea> It walks the collection and returns true if it finds any element which satisfies the predicate, false otherwise.
phreakocious has joined #ruby
<beginner_with_qu> Would you have links to more detailed explinations, and other potential uses for blocks in this context?
<Ox0dea> Blocks are used everywhere in Ruby.
hessparker has joined #ruby
<beginner_with_qu> I know. I figured out each, do, maps yesterday.
<beginner_with_qu> >_>;
<Ox0dea> Right, #each takes a block.
<Ox0dea> {} is just another syntax for do/end, more or less.
<hessparker> hey, security rubyists: is there a string that after inspect can still be dangerous?
<beginner_with_qu> Oh? Thats new
Cust0sLimen has quit [Quit: CustosLimen]
<beginner_with_qu> Cool
<Ox0dea> Yay, Ruby. :)
<beginner_with_qu> Braces make more sense now.
<beginner_with_qu> I'll have to look up .zip
<Ox0dea> hessparker: Terminal escape sequences are escaped in #inspect output, so they can't muck with your terminal, if that's what you're asking after.
<beginner_with_qu> Why did you create the method within the array class rather then the main class?
<Ox0dea> beginner_with_qu: Because I think Array should have #derange. ^_^
<beginner_with_qu> So it would work either way
iamninja has quit [Ping timeout: 240 seconds]
<beginner_with_qu> array should have this, yeah
<beginner_with_qu> xD
<Ox0dea> beginner_with_qu: You're advised not to tinker with core classes, mind.
<Ox0dea> In this case, it's highly unlikely somebody else would want Array#derange to do anything else, so I think it's kosher.
Jackneill has quit [Ping timeout: 240 seconds]
<beginner_with_qu> I suspect I'll be keeping my hands off most classes until I'm far more sure of myself
Exuma has quit []
Kallis has joined #ruby
Cust0sLimen has joined #ruby
<beginner_with_qu> I'm still wrapping my head around hashes. The use of symbols has bothered me, since, strings seem to do the same thing better
<Ox0dea> beginner_with_qu: Some strings occur often enough that it's reasonable to just have the one to keep referring to rather than allocating brand-new ones each time.
phreakocious has quit [Quit: gotta go]
Kallis has quit [Read error: Connection reset by peer]
anjen has quit [Quit: anjen]
<beginner_with_qu> I think maybe I've misunderstood symbols then. is this suggesting that any instance of the symbol x: would function like a string, but also refer to the hashed pair?
<beginner_with_qu> :x x: one of the two
<Ox0dea> beginner_with_qu: Symbols are essentially just deduplicated Strings.
<Ox0dea> >> ['foo'.object_id == 'foo'.object_id, :foo.object_id == :foo.object_id] # beginner_with_qu
<beginner_with_qu> basically, it saves space.
<ruboto> Ox0dea # => [false, true] (https://eval.in/436017)
<Ox0dea> beginner_with_qu: Space and time.
ricer2 has quit [Ping timeout: 244 seconds]
phreakocious has joined #ruby
Neverdie has quit [Quit: http://radiux.io/]
Kallis has joined #ruby
<beginner_with_qu> Ive seen this enough now I need to ask. what is foo?
<Ox0dea> A metasyntactic variable.
<beginner_with_qu> xD
diegoviola has joined #ruby
<Ox0dea> Rather than cluttering up our limited attention spans by arbitrarily naming things, we have placeholders.
<beginner_with_qu> And a definition for the unenlightened?
<Ox0dea> See above.
<beginner_with_qu> Fair enough
<beginner_with_qu> re-references
astrobunny has quit [Read error: Connection reset by peer]
<beginner_with_qu> Thankyou pontiki
<beginner_with_qu> Alright, cool. This makes more sense now.
<beginner_with_qu> Gotta do some runs and then digging back into this. Thanks for the help ^_^
<Ox0dea> My pleasure. Y'all come back now, y'hear?
<pontiki> o.O
<pontiki> -.^
<craysiii> i feel culturally appropriated
cndiv has joined #ruby
chouhoulis has quit [Remote host closed the connection]
cndiv has quit [Client Quit]
<Ox0dea> So, how *do* you generate all derangements efficiently?
<Ox0dea> #permutation + #reject is O(n!). :/
<pontiki> i'm fighting my own derangement as we speak
banjara has joined #ruby
Neverdie has joined #ruby
AndrewG has joined #ruby
Jardayn has quit [Quit: Leaving]
<rgb-one> Any alternatives to Array#product for combining array elements?
<AndrewG> Sorry if this is a newb question (it is)... im new to ruby as of today, but I am fairly decent at Java. I'm wondering how include_class("java.lang.String") { |pkg, name| "J" + name } works. Specifically the "J" + name. Does it get returned to the method, and if so, how?
mesamoo has quit [Quit: Konversation terminated!]
sankaber has joined #ruby
banjara has quit [Ping timeout: 246 seconds]
whippythellama has quit [Quit: WeeChat 1.3]
otherj has joined #ruby
<Ox0dea> >> [].methods.grep(/ation/) # rgb-one
<ruboto> Ox0dea # => [:permutation, :combination, :repeated_permutation, :repeated_combination] (https://eval.in/436018)
<jhass> AndrewG: the {|pkg, name| "J" + name } part is called a block. The method can invoke it with yield, provide the parameters and read the return value
inteq has joined #ruby
phreakocious has quit [Quit: gotta go]
chills42 has joined #ruby
workmad3 has joined #ruby
mwlang has quit [Quit: mwlang]
phreakocious has joined #ruby
siaw has quit [Quit: siaw]
Kallis has quit [Read error: Connection reset by peer]
Neverdie has quit [Quit: http://radiux.io/]
workmad3 has quit [Ping timeout: 264 seconds]
rcvalle has quit [Quit: rcvalle]
<AndrewG> Thanks jhass
mikecmpbll has quit [Quit: i've nodded off.]
benlieb has quit [Quit: benlieb]
Kallis has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Kallis has quit [Read error: Connection reset by peer]
otherj has quit [Quit: .]
Kallis has joined #ruby
agent_white has quit [Quit: FRIDAE]
Neverdie has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
FernandoBasso has quit [Ping timeout: 252 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AndrewG has quit [Ping timeout: 246 seconds]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hessparker has quit [Ping timeout: 255 seconds]