jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
matugm has joined #ruby
matugm has joined #ruby
dgutierrez1287 has joined #ruby
yoongkang has quit [Remote host closed the connection]
yoongkang has joined #ruby
freerobby has quit [Quit: Leaving.]
<starfox_sf> I can ping both
ebbflowgo has joined #ruby
matugm has quit [Client Quit]
<jhass> sounds like google is blocking connections on port 25 from your network then
freerobby has joined #ruby
<starfox_sf> nice...
<jhass> home broadband?
<starfox_sf> yeah
<jhass> thank the spammers and windows people not securing their shit then ;)
<starfox_sf> I will make sure I send them a thank you card.
<jhass> that's nice
<starfox_sf> jhass: thanks btw
<jhass> yw
metallicrwr_ has joined #ruby
dgutierrez1287 has quit [Ping timeout: 264 seconds]
commondream has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
cats has quit [Ping timeout: 272 seconds]
havenn has quit [Ping timeout: 264 seconds]
arooni-mobile has quit [Ping timeout: 256 seconds]
al2o3-cr has quit [Ping timeout: 255 seconds]
ogpastaling has quit [Remote host closed the connection]
bruceleez has joined #ruby
djbkd_ has quit []
commondream has quit [Ping timeout: 265 seconds]
<bruceleez> hello - has anyone gone through Chris Pine's how to learn Ruby book?
<jhass> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
<bruceleez> well, I've created a program but kind of cheated by using a command that hasn't been mentioned in the book so far and I want to rectify this.
arescorpio has joined #ruby
<jhass> I see no issue
bmurt has quit []
<jhass> using the best tool you know is a good mindset
<lupine> unless it means you never learn about another tool, of course
<bruceleez> I have the following code "sorted_array = Array.new(array_size)" but the method "new" has not been mentioned.
dopie has quit [Quit: Leaving]
<lupine> hmm, that's an odd one
<lupine> you can just do []
GnuYawk has quit [Ping timeout: 256 seconds]
<lupine> the value of pre-filling your array with nils is questionable
cats has joined #ruby
<jhass> well, it does avoid the resizing if you know the target size you're going to fill up
<jhass> but that's perhaps something to optimize if it proves to be a bottleneck
<bruceleez> I'll share the code. I found the solution the other day but I'm returning to it to address this issue. What's the website to share code again?
<jhass> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
freerobby has quit [Quit: Leaving.]
vdamewood has quit [Quit: Life beckons.]
freerobby has joined #ruby
simplyianm has quit [Remote host closed the connection]
<bruceleez> I asked a question about sorting lists the other day and someone mentioned bubble sort. I'm wondering what is the most efficient way to sort?
vifino has joined #ruby
cytoskeletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bruceleez> that's a side question, but concerning the code, the issue is with line 11. The rest of the code is fine
<bruceleez> at least i think it is ;/
francois_ has joined #ruby
<jhass> you're overthinking this
bruno- has quit [Ping timeout: 244 seconds]
simplyianm has joined #ruby
<centrx> what the heck
<bruceleez> ?
symm- has quit [Ping timeout: 244 seconds]
francois_ has quit [Ping timeout: 246 seconds]
rgb-one has quit [Read error: Connection reset by peer]
cytoskeletor has joined #ruby
<centrx> bruceleez, Use Array#sort to sort?
kies has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
ndrei has quit [Ping timeout: 252 seconds]
CustosLimen has quit [Ping timeout: 245 seconds]
Scroff has quit [Remote host closed the connection]
<bruceleez> hi centrx - sorry i should have been clear. The aim of the program is to sort without using the sort method. if you enter any random words it will sort for you.
bmurt has joined #ruby
ReK2 has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
bmurt has quit [Client Quit]
mdz_ has joined #ruby
al2o3-cr has joined #ruby
Guest10032 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 255 seconds]
failshell has joined #ruby
mdz_ has quit [Ping timeout: 264 seconds]
lordkryss has quit [Quit: Connection closed for inactivity]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
micmus has quit [Ping timeout: 264 seconds]
mleung has quit [Quit: mleung]
mleung has joined #ruby
senayar has quit [Remote host closed the connection]
failshell has quit [Ping timeout: 252 seconds]
dopie has joined #ruby
AbinoamJr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krisquigley has joined #ruby
bruceleez has quit [Ping timeout: 272 seconds]
<lupine> quicksort
<lupine> whatever the question, quicksort is always the answer
<Ox0dea> lupine: Which pivot is best pivot?
LJT has quit [Quit: Sleeping...]
krisquigley has quit [Ping timeout: 276 seconds]
LJT has joined #ruby
LJT has quit [Client Quit]
Azure has quit [Ping timeout: 264 seconds]
cytoskeletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Azure has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.2]
micmus has joined #ruby
ylla has joined #ruby
mcclurmc has quit [Remote host closed the connection]
Guest6 has joined #ruby
serivich has joined #ruby
bruno- has joined #ruby
<shevy> I think I just accidentally found a loop in my program
mcclurmc has joined #ruby
<shevy> I had two different files with the same method name
yoongkang has quit [Remote host closed the connection]
scripore has joined #ruby
bmurt has joined #ruby
JamesDH has joined #ruby
JamesDH has quit [Client Quit]
EllisTAA has quit [Quit: EllisTAA]
Pupeno has joined #ruby
Spami has joined #ruby
mcclurmc has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
maletor has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
towski_ has quit [Remote host closed the connection]
bkxd has joined #ruby
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rubynewby has joined #ruby
mrmargolis has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
jphenow has joined #ruby
whoami has joined #ruby
whoami is now known as Guest77660
pontiki has joined #ruby
<rubynewby> Could anybody tell me what this might mean? I think it's related to ruby gems: https://gist.githubusercontent.com/anonymous/43e7953571e82a94f3f8/raw/0073a9f6a20c2951df98c3d7bf30496756494a70/gistfile1.rb
<jhass> a riddle?
Rollabunna has joined #ruby
<jhass> got some context?
chouhoulis has joined #ruby
<rubynewby> it is a sort of riddle and the only context was a hint about gems, so I thought ruby
allomov has joined #ruby
<rubynewby> seems like maybe I'm supposed to know what to put in the brackets to make it return the answer
nikhgupta has joined #ruby
<jhass> mmh, looks like something like brainfuck with a different grammar to me
<jhass> eh, grammar, keyword set or whatever you would call it
centrx has quit [Quit: Shutting down, Please wait...]
ebbflowgo has joined #ruby
<rubynewby> oh yea that's a good point, I think that might be the right direction
simplyianm has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 244 seconds]
ebbflowgo has left #ruby [#ruby]
chouhoulis has quit [Ping timeout: 255 seconds]
<al2o3-cr> haha
<jhass> otoh it's not really repetitive enough
allomov has quit [Ping timeout: 256 seconds]
<jhass> I mean the highest value in there would be something like 2, 3?
nikhgupta has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
<Ox0dea> It's JavaScript.
attlasbot has joined #ruby
<Ox0dea> It evaluates to: alert("flag=WhatKindOfMonsterCodesLikeThis?")
<Ox0dea> Make of that what you will.
<rubynewby> why do you say that
<rubynewby> oh
<al2o3-cr> lol :)
<rubynewby> well
jphenow has quit [Quit: Be back later ...]
simplyianm has joined #ruby
<jhass> meh
<Ox0dea> Hm?
<jhass> good thing we don't like JS I guess
simplyianm has quit [Remote host closed the connection]
<Ox0dea> Non-alphanumeric Ruby is also a "thing".
simplyianm has joined #ruby
<jhass> but it's not as ugly
<Ox0dea> It's... pretty u
yfeldblum has quit [Ping timeout: 265 seconds]
<Ox0dea> Whoops.
<jhass> shit, I remember actually reading that blog post now
simplyianm has quit [Remote host closed the connection]
<Ox0dea> Heh.
<Ox0dea> The JS one, or Ruby?
duncannz has joined #ruby
<jhass> the js one
mary5030 has joined #ruby
<Ox0dea> A number of people have explored that territory; that was just the first search result.
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> The JS approach is more interesting in that it's reaching into real objects and grabbing portions of their properties, but then the code is just brackets for days.
rubynewby has quit [Quit: Page closed]
<Ox0dea> Doing it in Ruby just involves taking advantage of how many symbols have meaning in the syntax.
<Ox0dea> Read: everything but '#'.
bmurt has quit []
balazs has joined #ruby
Yiota has joined #ruby
Lucky__ has joined #ruby
havenwood has joined #ruby
BlueProtoman has joined #ruby
RegulationD has joined #ruby
workmad3 has joined #ruby
<BlueProtoman> Kernel::format isn't a security risk with arbitrary format strings in the same way printf is in C, is it?
yfeldblum has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba_ has joined #ruby
nikhgupta has joined #ruby
<Ox0dea> >> '%9999999d' % 1
<ruboto> Ox0dea, I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
<Ox0dea> Sorry about that, ruboto.
RegulationD has quit [Ping timeout: 255 seconds]
ferr has joined #ruby
freerobby has quit [Quit: Leaving.]
workmad3 has quit [Ping timeout: 276 seconds]
ramfjord has quit [Read error: Connection reset by peer]
<Ox0dea> BlueProtoman: That was essentially a call to Kernel::format, in case you didn't catch it.
nikhgupta has quit [Client Quit]
<BlueProtoman> Ox0dea: I'm sorry, I don't follow.
ramfjord has joined #ruby
nikhgupta has joined #ruby
<Ox0dea> BlueProtoman: Are you aware that ruboto evaluates messages prefixed with ">> " as Ruby code?
<BlueProtoman> Ox0dea: Yes, that I figured out.
<Ox0dea> Then the rest should be clear.
<BlueProtoman> Ox0dea: Then I wouldn't have asked. Are you implying that Kernel::format is unsafe?
<Ox0dea> Do *you* like it when your server shits itself?
pepelui has joined #ruby
<Ox0dea> Neither does your server.
nikhgupta has quit [Client Quit]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<BlueProtoman> Ox0dea: Oh, that throws an ArgumentError, right?
ylla has quit [Ping timeout: 252 seconds]
hardlin3r has quit [Ping timeout: 250 seconds]
mrmargolis has quit [Remote host closed the connection]
Agoldfish has quit [Quit: G'Bye]
<BlueProtoman> Ox0dea: I should clarify. Remember that format flag I was fussing about earlier? I finished it, and decided that if the user provides bad input, that's not my problem. If there'
<BlueProtoman> If there's an exception, I just return the error message instead of the format string and get on with it.
jpfuentes2 has joined #ruby
<BlueProtoman> (The site user doesn't provide the format string; the Jekyll user, i.e. the website designer, does)
jerius has joined #ruby
noethics has quit [Ping timeout: 246 seconds]
CloCkWeRX has quit [Quit: Leaving.]
jerius_ has joined #ruby
<Ox0dea> BlueProtoman: You should be all right, then.
charliesome has joined #ruby
<Ox0dea> Ruby does give you the power to muck about with its internal bookkeeping, but you've gotta really want to.
<BlueProtoman> Ox0dea: Okay, just making sure. I wanna use this Liquid tag at work, and I wanna see if I can get it into the github-pages gem (I think a "format" tag would be really useful, and I'm not sure why there isn't one already).
<BlueProtoman> *and I also wanna see if
jerius has quit [Ping timeout: 256 seconds]
nikhgupta has joined #ruby
<BlueProtoman> (GitHub pages uses Jekyll, which is written in Ruby and can be extended with it; but they don't allow arbitrary plugins for security reasons, so I wanna try to get this approved)
justintv90 has joined #ruby
<pontiki> a sprintf-like format filter for liquid? i'd be all for it
ferr has quit [Quit: WeeChat 1.2]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
EllisTAA has joined #ruby
Rickmasta has joined #ruby
<BlueProtoman> pontiki: Go nuts. https://github.com/JesseTG/jekyll-format
nikhgupta has quit [Remote host closed the connection]
millerti has joined #ruby
<EllisTAA> i’m trying to create a tiny search engine for a class project, and when i run this file it says uninitialized constant DatabaseBuilder::Url (NameError)
yoongkang has joined #ruby
<EllisTAA> https://github.com/ellismarte/niche/blob/master/db/seeds.rb#L25 anyone know why that is happening? the Url class is a model that I made using AR
anthony has joined #ruby
anthony is now known as Guest15891
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ylla has joined #ruby
BlueProtoman has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
jonr22 has joined #ruby
metallicrwr_ is now known as loleyes
Guest15891 has quit [Client Quit]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 276 seconds]
bmurt has joined #ruby
dopie has joined #ruby
A205B064 has joined #ruby
nikhgupta has joined #ruby
davedev2_ has quit [Ping timeout: 265 seconds]
loleyes is now known as yayfoxes
commondream has joined #ruby
davedev24_ has joined #ruby
malconis has quit [Read error: Connection reset by peer]
jonr22 has quit [Ping timeout: 252 seconds]
caseypatrickdris has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
commondream has quit [Ping timeout: 276 seconds]
malconis has joined #ruby
al2o3-cr has quit [Ping timeout: 272 seconds]
djbkd_ has joined #ruby
yqt has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: zzz]
f3lp has joined #ruby
AbinoamJr has joined #ruby
phutchins has quit [Ping timeout: 276 seconds]
CustosLimen has joined #ruby
failshell has joined #ruby
simplyianm has joined #ruby
nikhgupta has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
nikhgupta has joined #ruby
allcentury has joined #ruby
bmurt has quit []
Guest77660 has quit [Ping timeout: 264 seconds]
failshell has quit [Ping timeout: 276 seconds]
simplyianm has quit [Ping timeout: 240 seconds]
Spami has quit [Quit: This computer has gone to sleep]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 252 seconds]
krisquigley has joined #ruby
mleung has quit [Quit: mleung]
<shevy> EllisTAA the constant called Url is not known to that file you showed
jonr22 has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
houhouli_ has joined #ruby
wildroman2 has joined #ruby
eggoez has quit [Ping timeout: 265 seconds]
<EllisTAA> i dont understand why … i have a model called Url
chouhoulis has joined #ruby
hoddoko has joined #ruby
Yiota has joined #ruby
Yiota has quit [Client Quit]
oo_ has joined #ruby
<shevy> you did not require whoever has Url defined
krisquigley has quit [Ping timeout: 256 seconds]
houhoulis has quit [Ping timeout: 256 seconds]
<EllisTAA> ok ill try that
axsuul has joined #ruby
wildroman2 has quit [Ping timeout: 265 seconds]
Yiota has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
eggoez has joined #ruby
<xxneolithicxx> hi all
EllisTAA has left #ruby [#ruby]
jonr22 has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
Yiota has quit [Client Quit]
<AbinoamJr> Hi!
phizzbuzz has joined #ruby
jerius_ has quit [Quit: /quit]
Yiota has joined #ruby
justintv90 has quit [Remote host closed the connection]
nikhgupta has quit [Ping timeout: 256 seconds]
Aryasam has joined #ruby
kies has quit [Ping timeout: 265 seconds]
pepperbreath1 has joined #ruby
dopie has joined #ruby
mdz_ has joined #ruby
ramfjord has joined #ruby
aylla has joined #ruby
pepperbreath has quit [Ping timeout: 246 seconds]
drizz has quit [Ping timeout: 244 seconds]
mdz_ has quit [Ping timeout: 240 seconds]
ylla has quit [Ping timeout: 265 seconds]
drizz has joined #ruby
djbkd_ has quit []
justintv90 has joined #ruby
ndrei has joined #ruby
freerobby has joined #ruby
bogdanteleaga has quit [Ping timeout: 245 seconds]
mkosaki has quit [Quit: Leaving...]
AbinoamJr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfockler has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 255 seconds]
braincrash has quit [Quit: bye bye]
dfockler has quit [Ping timeout: 264 seconds]
jonr22 has joined #ruby
mkosaki has joined #ruby
Azure has quit [Read error: Connection reset by peer]
bronson has joined #ruby
michael_mbp has quit [Excess Flood]
Rollabunna has joined #ruby
Musashi007 has joined #ruby
Miphix has joined #ruby
michael_mbp has joined #ruby
braincras has joined #ruby
nikhgupta has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
kies has joined #ruby
Azure has joined #ruby
nikhgupt` has joined #ruby
bogdanteleaga has joined #ruby
nikhgupta has quit [Remote host closed the connection]
nikhgupt` has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 264 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has quit [Ping timeout: 245 seconds]
nikhgupta has joined #ruby
axsuul has quit [Ping timeout: 256 seconds]
nikhgupta has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nikhgupta has joined #ruby
yayfoxes has quit [Ping timeout: 265 seconds]
balazs has quit [Remote host closed the connection]
RegulationD has joined #ruby
darkf has joined #ruby
workmad3 has joined #ruby
heftig has quit [Remote host closed the connection]
simplyianm has joined #ruby
nikhgupta has quit [Remote host closed the connection]
nikhgupta has joined #ruby
nikhgupta has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
caseypatrickdris has quit [Remote host closed the connection]
21WACFTOL has joined #ruby
acke has joined #ruby
psy_ has joined #ruby
psy_ has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 276 seconds]
Aryasam has quit [Quit: Bye]
LicHacker has joined #ruby
acke has quit [Ping timeout: 276 seconds]
psy_ has joined #ruby
serivich has quit [Ping timeout: 265 seconds]
heftig has joined #ruby
Yiota has joined #ruby
jonr22 has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
gix has quit [Ping timeout: 264 seconds]
CloCkWeRX has joined #ruby
j4cknewt has joined #ruby
CloCkWeRX has left #ruby [#ruby]
jonr22 has quit [Ping timeout: 265 seconds]
gix has joined #ruby
bruno- has joined #ruby
21WACFTOL has quit [Remote host closed the connection]
simplyianm has quit [Remote host closed the connection]
mleung has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
bruno- has quit [Ping timeout: 272 seconds]
djbkd_ has joined #ruby
acke has joined #ruby
Nahra` has quit [Remote host closed the connection]
francois_ has joined #ruby
Nahra` has joined #ruby
lessless has joined #ruby
joaomdmoura has joined #ruby
jonr22 has joined #ruby
Nahra` has quit [Remote host closed the connection]
devdazed has joined #ruby
Levko has joined #ruby
mcclurmc has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Alina-malina has quit [Quit: Leaving]
francois_ has quit [Ping timeout: 252 seconds]
allcentury has joined #ruby
mcclurmc has quit [Ping timeout: 265 seconds]
jonr22 has quit [Read error: Connection reset by peer]
simplyianm has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
jaequery has joined #ruby
quazimodo has joined #ruby
<quazimodo> hullor
failshell has joined #ruby
commondream has joined #ruby
jonr22 has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
failshell has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
pyon has joined #ruby
jonr2219 has joined #ruby
commondream has quit [Ping timeout: 252 seconds]
jonr2219 has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 256 seconds]
jonr22 has quit [Ping timeout: 265 seconds]
Forgetful_Lion has joined #ruby
sdothum has quit [Ping timeout: 252 seconds]
diegoviola has quit [Remote host closed the connection]
baweaver has joined #ruby
eggoez has quit [Ping timeout: 252 seconds]
davedev2_ has joined #ruby
krisquigley has joined #ruby
davedev24_ has quit [Ping timeout: 265 seconds]
mleung has quit [Quit: mleung]
krisquigley has quit [Ping timeout: 264 seconds]
CyborgCygnus has joined #ruby
CyborgCygnus has quit [Remote host closed the connection]
ramfjord has joined #ruby
Xiti has quit [Read error: Connection reset by peer]
jume has joined #ruby
noethics has joined #ruby
CyborgCygnus has joined #ruby
bronson has joined #ruby
arescorpio has quit [Quit: Leaving.]
oo_ has quit [Remote host closed the connection]
hanmac has joined #ruby
sleungcy has joined #ruby
riotjones has joined #ruby
stardiviner has quit [Ping timeout: 255 seconds]
<atmosx> hello
oo_ has joined #ruby
mleung has joined #ruby
yayfoxes has joined #ruby
balazs has joined #ruby
<Ox0dea> >> $__=$$/$$;_=$__+$__;__=$__+_;$_=_+_;@_=$__+$_;$-_=_**@_;$___=_*$-_;@__=$-_+$___;''<<$___+__*@_<<@__+_*$_<<@__+$__<<@__+__*__<<$-_+$__
<ruboto> Ox0dea # => "Ohai!" (https://eval.in/381133)
stoogenmeyer has joined #ruby
lxsameer has joined #ruby
balazs has quit [Ping timeout: 252 seconds]
whoami has joined #ruby
whoami is now known as Guest68102
stoogenmeyer has quit [Ping timeout: 276 seconds]
eggoez has joined #ruby
weemsledeux has joined #ruby
djbkd_ has quit [Remote host closed the connection]
nwmcsween has joined #ruby
Guest68102 is now known as howdoi
<nwmcsween> hmm so what am I doing wrong here? [1, 2, 3, 4, 5].reduce([0, 0, 0]) {|m, s| m[s <=> 0] += 1
<nwmcsween> }
doctorly has joined #ruby
RegulationD has joined #ruby
workmad3 has joined #ruby
kies has quit [Ping timeout: 265 seconds]
Rollabunna has joined #ruby
Pumukel has joined #ruby
djbkd_ has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
djbkd_ has quit [Client Quit]
<Ox0dea> Well, that's new.
workmad3 has quit [Ping timeout: 240 seconds]
dopie has quit [Quit: This computer has gone to sleep]
<Ox0dea> nwmcsween: You have to yield the memo at the end of the block.
<Ox0dea> >> [1, 2, 3, 4, 5].reduce([0, 0, 0]) {|m, s| m[s <=> 0] += 1; m}
<ruboto> Ox0dea # => [0, 5, 0] (https://eval.in/381135)
Rollabunna has quit [Ping timeout: 256 seconds]
Guest6 has quit [Quit: Textual IRC Client: www.textualapp.com]
<nwmcsween> ah so im returning the num instead of the memo
<Ox0dea> Right.
<pontiki> Ox0dea: yeah, it's so obvious :D
<Ox0dea> Hm?
mary5030 has quit [Remote host closed the connection]
<pontiki> [23:52:30] <Ox0dea>>> $__=$$/$$;_=$__+$__;__=$__+_;$_=_+_;@_=$__+$_;$-_=_**@_;$___=_*$-_;@__=$-_+$___;''<<$___+__*@_<<@__+_*$_<<@__+$__<<@__+__*__<<$-_+$__
<pontiki> [23:52:31] <ruboto>Ox0dea # => "Ohai!" (https://eval.in/381133)
oo_ has quit [Remote host closed the connection]
<Ox0dea> Am I to conclude you understand how it works?
riotjones has quit [Ping timeout: 240 seconds]
<pontiki> not a fucking clue
<nwmcsween> mmm ruby magic vars
<Ox0dea> $$ (process ID) is the only default global being used.
<Ox0dea> All the others are just assignments for the sake of brevity.
<nwmcsween> hmm I though $_ was somthing in ruby too
attlasbot has quit [Quit: Leaving]
<Ox0dea> It is, but it's being repurposed as storage in this case.
<nwmcsween> pure evilness
<Ox0dea> There's a Sinatra app written almost entirely in this way.
<Ox0dea> Spawned surely by Satan himself.
peteykun has joined #ruby
yardenbar has joined #ruby
Channel6 has joined #ruby
cbear0x has joined #ruby
charliesome has quit [Quit: zzz]
cbear0x has left #ruby ["Closing Window"]
bkxd has quit [Ping timeout: 252 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
<Ox0dea> nwmcsween: What's up with that reduction, anyhow?
<pontiki> i was watching jim weirich's keynote on y-combinator yesterday; that's p. ebille too
<nwmcsween> seperate ints into 3 classifications
<nwmcsween> - + 0
<Ox0dea> You're losing the numbers, though.
<nwmcsween> that's fine
<Ox0dea> pontiki: Why do strokes always seem to happen at the ends of sentences?
<baweaver> Better question, why are you trying that and what's the point?
dgutierrez1287 has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
<nwmcsween> hackerrank, project euler stuff
<baweaver> Which problem specifically
<nwmcsween> algorithms I think
<baweaver> was it that 5 problems post where you're not really a programmer if you can't solve them?
<nwmcsween> no idea just started playing some hackerrank problems
sophiapstefan has joined #ruby
<nwmcsween> most of the submitions are pretty bad imo
<sophiapstefan> Hello!
<baweaver> sounds par for course
AlexRussia has quit [Quit: WeeChat 1.2-dev]
LicHacker has quit [Ping timeout: 250 seconds]
Pumukel has quit [Remote host closed the connection]
<baweaver> nwmcsween: that one, and you want to use group_by
<nwmcsween> show me a better one
<nwmcsween> reduce will work
<baweaver> just a sec, simulating to make sure I have it right before I fill 10 lines of repl here.
postmodern has quit [Quit: Leaving]
<Ox0dea> >> [1, 2, -5, 0, -3, 0].group { |n| n <=> 0 }.map(&:size)
<ruboto> Ox0dea # => undefined method `group' for [1, 2, -5, 0, -3, 0]:Array (NoMethodError) ...check link for more (https://eval.in/381140)
<Ox0dea> >> [1, 2, -5, 0, -3, 0].group_by { |n| n <=> 0 }.map(&:size)
<ruboto> Ox0dea # => [2, 2, 2] (https://eval.in/381141)
dgutierrez1287 has quit [Ping timeout: 276 seconds]
j4cknewt has joined #ruby
<baweaver> yeah, pretty much that then map by divided by the array length
<Ox0dea> nwmcsween: Reaching for reduce for this was pretty novel.
jume has quit [Read error: Connection reset by peer]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> >> a = [-1, -2, -3, 0, 0, 1, 2, 3]; a.group_by { |i| i <=> 0 }.map { |k,v| v.size / a.length.to_f }
<ruboto> baweaver # => [0.375, 0.25, 0.375] (https://eval.in/381142)
<baweaver> Ox0dea: it's a hash by the way on group_by
<baweaver> so you get two for everything
<Ox0dea> baweaver: As expected?
<nwmcsween> [1] doesn't pass
<baweaver> nope
<baweaver> >> [1, 2, -5, 0, -3, 0,0,0,0].group_by { |n| n <=> 0 }.map(&:size)
<ruboto> baweaver # => [2, 2, 2] (https://eval.in/381143)
micmus has quit [Quit: Leaving]
<Ox0dea> Ah, derp.
<baweaver> happens
<Ox0dea> The price paid for trying to evenly distribute the example inputs.
<nwmcsween> I guess it doesn't matter you could still puts %f.2
acke has quit [Remote host closed the connection]
j4cknewt has quit [Ping timeout: 265 seconds]
Rollabunna has joined #ruby
xxneolithicxx has quit [Ping timeout: 255 seconds]
bruno- has joined #ruby
<Ox0dea> baweaver: How well do you know your way around parse.y?
<baweaver> since I have to google that, probably not
Lucky__ has joined #ruby
<Ox0dea> Ruby's parser.
<nwmcsween> man don't even
dopie has joined #ruby
<Ox0dea> %d(1 2 3) would be really nice...
<Ox0dea> I've been mulling over the commits that added %i() symbol arrays to see how easy it'd be to extrapolate, but it's fucking hairy.
<baweaver> Yeah, beyond my C skills for sure.
<nwmcsween> the parser must be monstrous
<nwmcsween> lets see it linky?
<Ox0dea> nwmcsween: It's currently 11,374 lines.
rippa has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
<Ox0dea> It's gotta be the nastiest parser in the mainstream programming world.
<nwmcsween> should see how rubinious parses ruby
zenguy_pc has joined #ruby
<Ox0dea> I suspect it's comparatively gorgeous.
commondream has joined #ruby
<nwmcsween> has to be better thank yacc
<nwmcsween> than
Spami has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
commondream has quit [Remote host closed the connection]
sophiapstefan has quit [Quit: sophiapstefan]
freerobby has quit [Quit: Leaving.]
mcclurmc has joined #ruby
francois_ has joined #ruby
<Ox0dea> Is there any precedent for enabling a gem to update itself when appropriate?
yoongkang has quit [Remote host closed the connection]
yoongkang has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
Cache_Money has joined #ruby
chouhoulis has joined #ruby
francois_ has quit [Ping timeout: 272 seconds]
mdz_ has joined #ruby
allcentury has joined #ruby
bosma has quit [Quit: Leaving]
Obfuscate has quit [Ping timeout: 265 seconds]
zotherstupidguy has joined #ruby
snockerton has joined #ruby
ScriptGeek has quit [Quit: Leaving.]
chouhoulis has quit [Ping timeout: 244 seconds]
allcentury has quit [Ping timeout: 265 seconds]
mdz_ has quit [Ping timeout: 252 seconds]
<snockerton> if I have an array of like hashes, [{a: 1, b: 2, c: 3}, {a: 2, b: 3, c: 4}] how can I turn this into an array of hashes minus a couple k/v pairs?
<snockerton> [{a: 1, b: 2}, {a: 2, b: 3}]
hotpancakes has quit []
sophiapstefan has joined #ruby
GnuYawk has joined #ruby
<Ox0dea> snockerton: You haven't very clearly specified your selection predicate, but...
<Ox0dea> >> [{a: 1, b: 2, c: 3}, {a: 2, b: 3, c: 4}].map { |h| h.select { |k, _| %i[a b].include? k } }
<ruboto> Ox0dea # => [{:a=>1, :b=>2}, {:a=>2, :b=>3}] (https://eval.in/381144)
failshell has joined #ruby
pontiki has quit [Quit: Textual IRC Client: www.textualapp.com]
<snockerton> what is %i ?
<Ox0dea> Symbol array literal.
<Ox0dea> >> %i[a b c] == [:a, :b, :c]
<ruboto> Ox0dea # => true (https://eval.in/381145)
<snockerton> ooo, very handy
<Ox0dea> There's also %w for "words", and both of their capitalized counterparts permit interpolation.
Spami has quit [Quit: This computer has gone to sleep]
failshell has quit [Ping timeout: 244 seconds]
Xiti has joined #ruby
CyborgCygnus has quit [Read error: Connection reset by peer]
<snockerton> is the underscore to indicate an unused value in the select block?
skade has joined #ruby
bosma has joined #ruby
chinmay_dd has joined #ruby
<sophiapstefan> Heya, I was here a couple days ago under my nickname, and haven't been available since, but- I'll paste it in- I'm trying to figure out how to make this figure go DOWN. I know I have to use an (x,y) type of coordinate system- but I'm basing this off of a template a book gave me, and I'm trying to make a game out of it, and I'm not experienced.
<sophiapstefan> Any suggestions? Let me know if it runs weirdly
krisquigley has joined #ruby
<sophiapstefan> (sorry for the block of text!)
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
psy_ has quit [Quit: Leaving]
<baweaver> This might be an interesting read on something similar
keen______ has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
simplyianm has quit [Remote host closed the connection]
keen_____ has quit [Ping timeout: 240 seconds]
yayfoxes has quit [Ping timeout: 265 seconds]
krisquigley has quit [Ping timeout: 252 seconds]
chinmay_dd has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<sophiapstefan> we've only learned a little about arrays. How do I make it as in the explanation?
Obfuscate has joined #ruby
chinmay_dd has joined #ruby
GnuYawk has quit [Ping timeout: 252 seconds]
jaequery has joined #ruby
wildroman2 has joined #ruby
simplyianm has joined #ruby
simplyianm has quit [Remote host closed the connection]
cvtsx has joined #ruby
<sophiapstefan> I think I would have to create a whole new class for the figure.
cvtsx has quit [Read error: Connection reset by peer]
<sophiapstefan> Hmmm....
skade has quit [Quit: Computer has gone to sleep.]
cvtsx has joined #ruby
wildroman2 has quit [Remote host closed the connection]
moshee has joined #ruby
<Ox0dea> It's embarrassingly non-object-oriented, but the overarching approach to movement may be of some use.
nickfausnight has joined #ruby
jaequery has quit [Ping timeout: 276 seconds]
snockerton has quit [Quit: Leaving.]
<Ox0dea> snockerton: Yes, using an underscore communicates that you're not interested in the value. In fact, Ruby even special-cases it.
<Ox0dea> >> [1, 2].map { |a, a| }
<ruboto> Ox0dea # => /tmp/execpad-a116c4804643/source-a116c4804643:2: duplicated argument name ...check link for more (https://eval.in/381153)
<Ox0dea> >> [1, 2].map { |_, _| }
<ruboto> Ox0dea # => [nil, nil] (https://eval.in/381154)
casadei has quit [Remote host closed the connection]
<Ox0dea> More specifically, any underscore-prefixed parameter name can be duplicated.
<sophiapstefan> Thank you all! This is incredibly helpful.
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> sophiapstefan: Did it work?
<sophiapstefan> The code given in the github link prints out a great world- but it doesn't move. I don't think i'm doing that right. I'll try something
ledestin has joined #ruby
<Ox0dea> sophiapstefan: Are you required to shell out to stty in order to get raw character input?
mc_fail has quit [Ping timeout: 246 seconds]
gianlucadv has joined #ruby
<Ox0dea> Maybe your instructor doesn't know about and would appreciate being made aware of io/console. :)
<sophiapstefan> Yes, unfortunately.
<Ox0dea> Alas.
<sophiapstefan> This is a very basic class- I think he just wants us to try and find a good way to get a solid x,y coordinate system in there. I hate the "here just try to figure it out for yourself before I teach you how to do it" problems. :((
scripore has quit [Quit: This computer has gone to sleep]
<sophiapstefan> Ah! It works- there's a few bugs, but that's fine....
toretore has quit [Quit: Leaving]
<Ox0dea> Famous last words.
<sophiapstefan> Truly!!
<nwmcsween> hmm can you express y combinator in ruby?
<nwmcsween> ah nvm yes
<Ox0dea> No.
lapide_viridi has joined #ruby
<Ox0dea> Z combinator, yes.
chinmay_dd has quit [Remote host closed the connection]
skade has joined #ruby
<Ox0dea> fac and fib are one more level of indirection "around" the Y combinator.
<Ox0dea> The Y combinator, strictly speaking, only works in normal-order languages.
houhouli_ has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
<Ox0dea> Erm, applicative-order...
skade has quit [Read error: Connection reset by peer]
<Ox0dea> Math is hard, let's go shopping.
skade has joined #ruby
<nwmcsween> now I wonder how the c version works must make a fat call stack
pragmatism has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nwmcsween> yep
A205B064 has quit [Ping timeout: 252 seconds]
<sophiapstefan> I would write a whole class for the player's figure. It would store its own position and its own size. I would also have it provide one more method: getRowCharacters(y) that returns the ascii characters that are in the specified row. That way, in your print loop, you can check each position, before you print it, for whether the figure is present in that position. If it is, then you can print all the characters for that row, then
<sophiapstefan> skip your loop forward a number of steps equal to the number of characters you just printed.
<sophiapstefan> Problem is- I have no idea how to do ANY of this!
<sophiapstefan> I know WHAT I have to do, just now how to do it.
<nwmcsween> I'd prob beat someone with a brick if I saw them write this: http://rosettacode.org/wiki/Y_combinator#C
<sophiapstefan> it's incredibly infuriating.
<nwmcsween> wrong chan?
chinmay_dd has quit [Remote host closed the connection]
<Ox0dea> nwmcsween: I wasn't very clear back there, but did you catch the gist?
<Ox0dea> Notice that fac and fib are both a lambda inside a lambda, rather than just a single lambda.
scripore has joined #ruby
<Ox0dea> This is to overcome the limitations of applicative order.
<Ox0dea> The lambda is evaluated too soon without the wrapper.
simplyianm has joined #ruby
<Ox0dea> sophiapstefan: It seems you're being taught, or else learning, how to press certain characters on your keyboard rather than how to program in Ruby. :/
<Ox0dea> *limitations of normal order
<Ox0dea> Christ.
<Ox0dea> Bedtime.
roolo has joined #ruby
<sophiapstefan> I would agree! But i have no other choice until the fall.
<Ox0dea> sophiapstefan: You don't appear to be illiterate. :P
michael_mbp has quit [Excess Flood]
<sophiapstefan> Yeah. I just have to tough it out until I manage to figure out what he wants!
<sophiapstefan> oh well.
balazs has joined #ruby
<baweaver> Say hello to most programming classes :/
simplyianm has quit [Ping timeout: 244 seconds]
Eiam has quit [Remote host closed the connection]
Musashi007 has joined #ruby
<baweaver> nwmcsween: To be fair it's more the theory behind it than anything
michael_mbp has joined #ruby
erts has joined #ruby
<Ox0dea> baweaver: And here I was convinced that there were little Turing machines inside all the transistors.
balazs has quit [Ping timeout: 252 seconds]
bkxd has joined #ruby
commondream has joined #ruby
dcarmich has joined #ruby
aylla has quit [Ping timeout: 246 seconds]
erts has quit [Quit: erts]
ex0ns has quit [Read error: Connection reset by peer]
ex0ns has joined #ruby
erts has joined #ruby
erts has quit [Changing host]
erts has joined #ruby
erts_ has joined #ruby
erts_ has quit [Remote host closed the connection]
RegulationD has joined #ruby
workmad3 has joined #ruby
MVPhelp has joined #ruby
GnuYawk has joined #ruby
commondream has quit [Ping timeout: 256 seconds]
mcclurmc has quit [Remote host closed the connection]
yayfoxes has joined #ruby
meph has joined #ruby
Ox0dea has quit [Quit: WeeChat 1.3-dev]
workmad3 has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 272 seconds]
skade has quit [Read error: No route to host]
skade has joined #ruby
aapole has joined #ruby
sophiapstefan has quit [Quit: sophiapstefan]
MVPhelp has quit [Remote host closed the connection]
MVPhelp has joined #ruby
moshee has quit [Ping timeout: 264 seconds]
yayfoxes has quit [Ping timeout: 272 seconds]
greenbagels_ has quit [Quit: Leaving]
allcentury has joined #ruby
greenbagels has joined #ruby
antgel has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
kraljev11 has joined #ruby
kraljev11 is now known as kraljev11_
yfeldblum has quit [Ping timeout: 265 seconds]
Akagi201 has joined #ruby
kraljev11 has joined #ruby
sophiapstefan has joined #ruby
sophiapstefan has left #ruby [#ruby]
_ht has joined #ruby
pepperbreath1 has left #ruby [#ruby]
bruno- has joined #ruby
kraljev11_ has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 244 seconds]
vdamewood has joined #ruby
swgillespie has joined #ruby
ta has quit [Remote host closed the connection]
j4cknewt has joined #ruby
niemc2 has joined #ruby
senayar has joined #ruby
skade has quit [Read error: Connection reset by peer]
j4cknewt has quit [Ping timeout: 256 seconds]
skade has joined #ruby
mleung has quit [Quit: mleung]
x77686d has joined #ruby
x77686d has quit [Client Quit]
ylla has joined #ruby
micmus has joined #ruby
ta has joined #ruby
speaking1ode has joined #ruby
n008f4g_ has joined #ruby
failshell has joined #ruby
ylla has quit [Remote host closed the connection]
Levko has quit [Quit: Page closed]
ylla has joined #ruby
hardlin3r has joined #ruby
acke has joined #ruby
yoongkang has quit [Remote host closed the connection]
failshell has quit [Ping timeout: 252 seconds]
Channel6 has quit [Quit: Leaving]
commondream has joined #ruby
skade has quit [Ping timeout: 255 seconds]
skade has joined #ruby
krisquigley has joined #ruby
skade has quit [Client Quit]
wildroman2 has joined #ruby
d0lph1n98 has joined #ruby
gluten_hell has joined #ruby
commondream has quit [Ping timeout: 265 seconds]
d0lph1n98 has quit [Client Quit]
CloCkWeRX has joined #ruby
krisquigley has quit [Ping timeout: 276 seconds]
Alina-malina has joined #ruby
k3asd` has joined #ruby
yoongkang has joined #ruby
acke has quit [Remote host closed the connection]
pragmatism has quit [Quit: Textual IRC Client: www.textualapp.com]
lapide_viridi has quit [Quit: Leaving]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
kraljev11 has quit [Ping timeout: 272 seconds]
yayfoxes has joined #ruby
allomov has joined #ruby
noethics has quit [Ping timeout: 272 seconds]
pragmatism has joined #ruby
k3asd` has quit [Quit: leaving]
k3asd` has joined #ruby
GnuYawk has quit [Ping timeout: 264 seconds]
sandstrom has joined #ruby
nhhagen has joined #ruby
phutchins has joined #ruby
unshadow has joined #ruby
allcentury has joined #ruby
ta has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
nhhagen has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
phutchins has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
nhhagen has joined #ruby
allcentury has quit [Ping timeout: 265 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
micmus has quit [Ping timeout: 244 seconds]
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
duncannz has quit [Ping timeout: 250 seconds]
havenwood has quit [Ping timeout: 246 seconds]
balazs has joined #ruby
_ht has quit [Ping timeout: 255 seconds]
balazs has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
workmad3 has joined #ruby
nhhagen has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
j4cknewt has joined #ruby
micmus has joined #ruby
ndrei has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
gluten_hell has quit [Quit: Computer has gone to sleep.]
workmad3 has quit [Ping timeout: 264 seconds]
doctorly has quit [Ping timeout: 250 seconds]
duncannz has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
zenguy_pc has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
ta has joined #ruby
niemc2 is now known as niemcu
JamesDH has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
ta has quit [Ping timeout: 255 seconds]
sinkensabe has joined #ruby
Aswebb_ has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
Guest80919 has quit [Changing host]
Guest80919 has joined #ruby
Guest80919 is now known as Affix
AlphaAtom has joined #ruby
rubie has quit [Remote host closed the connection]
AlphaAtom has quit [Client Quit]
<shevy> little beavers inside all the things
lkba_ has quit [Ping timeout: 264 seconds]
JamesDH has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 264 seconds]
JamesDH has joined #ruby
f3lp has quit [Ping timeout: 265 seconds]
ndrei has joined #ruby
AlphaAtom has joined #ruby
niemcu has quit [Ping timeout: 252 seconds]
DEA7TH has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Musashi007 has joined #ruby
yayfoxes has quit [Ping timeout: 252 seconds]
ylla has quit [Read error: Connection reset by peer]
ylla has joined #ruby
francois_ has joined #ruby
multi_io has quit [Ping timeout: 252 seconds]
ylla has quit [Read error: Connection reset by peer]
ylla has joined #ruby
Spami has joined #ruby
multi_io has joined #ruby
Spami has quit [Client Quit]
revath has joined #ruby
JamesDH has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yoongkang has quit [Remote host closed the connection]
bruno- has joined #ruby
francois_ has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
blue_deref has quit [Quit: bbn]
HotCoder has joined #ruby
kies has joined #ruby
zotherstupidguy has joined #ruby
tkuchiki has joined #ruby
lkba has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 276 seconds]
HotCoder has quit [Quit: Leaving]
failshell has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
zotherstupidguy has joined #ruby
yoongkang has joined #ruby
Musashi007 has quit [Quit: Musashi007]
ndrei has quit [Ping timeout: 256 seconds]
sinkensabe has joined #ruby
failshell has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
hectortrope has joined #ruby
timonv has quit [Remote host closed the connection]
<shevy> test
riotjones has joined #ruby
<jhass> failed
al2o3-cr has joined #ruby
stnly has quit [Quit: leaving]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j4cknewt has quit [Remote host closed the connection]
<shevy> :(
hectortrope has quit [Client Quit]
krisquigley has joined #ruby
ndrei has quit [Remote host closed the connection]
ndrei has joined #ruby
sinkensabe has quit [Remote host closed the connection]
nichtdiebohne has joined #ruby
stnly has joined #ruby
yoongkang has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 272 seconds]
ndrei has quit [Ping timeout: 265 seconds]
krisquigley has quit [Ping timeout: 276 seconds]
stardiviner has joined #ruby
ndrei has joined #ruby
ruurd has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
FernandoBasso has joined #ruby
bruno- has joined #ruby
ta has joined #ruby
yoongkang has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 276 seconds]
commondream has joined #ruby
duncannz has quit [Remote host closed the connection]
gluten_hell has joined #ruby
ta has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
commondream has quit [Ping timeout: 272 seconds]
ruurd has quit [Quit: Zzzzz z zz ...]
<shevy> what is wrong with these C++ guys
<shevy> what happened to good old naming schemes such as foobar-1.0.1
rubie has joined #ruby
<shevy> similar can be said about debian... http://ftp.debian.org/debian/pool/main/a/apt/apt_1.0.9.10.tar.xz and extracted, it suddenly becomes apt-1.0.9.10
MasterPiece has joined #ruby
gluten_hell has quit [Ping timeout: 276 seconds]
gluten_hell_ has joined #ruby
Billias has quit [Read error: Connection reset by peer]
gluten_hell_ has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
gluten_hell_ has joined #ruby
roshanavand has joined #ruby
tkuchiki has quit [Remote host closed the connection]
rubie has quit [Ping timeout: 265 seconds]
Billias has joined #ruby
riotjones has quit [Ping timeout: 272 seconds]
Ishiro has joined #ruby
mrsolo has quit [Quit: Connection closed for inactivity]
qwertme has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
aapole has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
zotherstupidguy has joined #ruby
niemcu has joined #ruby
noethics has joined #ruby
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
senayar has quit [Remote host closed the connection]
kraljev11 has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
startupality has joined #ruby
spider-mario has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
startupality has quit [Client Quit]
RegulationD has joined #ruby
Jackneill has joined #ruby
chinmay_dd has joined #ruby
ebbflowgo has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
allomov has quit [Remote host closed the connection]
konsolebox has joined #ruby
axsuul has quit [Ping timeout: 252 seconds]
edwinvdg_ has quit [Remote host closed the connection]
startupality has joined #ruby
edwinvdgraaf has joined #ruby
balazs has joined #ruby
skade has joined #ruby
platzhirsch has quit [Remote host closed the connection]
j4cknewt has joined #ruby
allomov has joined #ruby
balazs has quit [Ping timeout: 265 seconds]
bkxd has quit [Ping timeout: 244 seconds]
hakunin has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
ebbflowgo has quit [Quit: ebbflowgo]
chinmay_dd has quit [Remote host closed the connection]
workmad3 has joined #ruby
dopie has joined #ruby
Narzew has joined #ruby
tomphp has joined #ruby
platzhirsch has joined #ruby
skade has quit [Read error: No route to host]
skade has joined #ruby
kies has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
timonv has joined #ruby
sarkyniin has joined #ruby
ta has joined #ruby
roshanavand has quit [Ping timeout: 276 seconds]
startupality has quit [Quit: startupality]
allcentury has joined #ruby
chinmay_dd has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
ta has quit [Ping timeout: 276 seconds]
DexterLB has joined #ruby
lapide_viridi has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
roshanavand has joined #ruby
arturmartins has quit [Ping timeout: 276 seconds]
apt-get_ has joined #ruby
arturmartins has joined #ruby
stamina has joined #ruby
vickleton has joined #ruby
pontiki has joined #ruby
sarkyniin has quit [Read error: Connection reset by peer]
<pontiki> morning
<quazimodo> hullo
yfeldblum has joined #ruby
<pontiki> how're things?
skade has quit [Quit: Computer has gone to sleep.]
j4cknewt has quit [Remote host closed the connection]
MasterPiece has quit [Quit: Leaving]
skade has joined #ruby
roshanavand has quit [Remote host closed the connection]
failshell has joined #ruby
failshell has quit [Ping timeout: 240 seconds]
<apeiros> moin pontiki
<pontiki> hi apeiros
<apeiros> everything's horrible. and you?
nihils has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nichtdiebohne has quit [Ping timeout: 264 seconds]
nihils has quit [Read error: Connection reset by peer]
phutchins has joined #ruby
aapole has joined #ruby
serivich has joined #ruby
kirun has joined #ruby
<pontiki> everything is awesome!!
<pontiki> and all that denial-type bullshit
krisquigley has joined #ruby
pragmatism has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
platzhirsch has left #ruby [#ruby]
allomov has quit [Remote host closed the connection]
sonOfRa has quit [Quit: Bye!]
sonOfRa has joined #ruby
Ishiro has quit [Quit: (null)]
krz has joined #ruby
lapide_viridi has quit [Quit: Leaving]
meph has quit [Quit: Leaving.]
yoongkang has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
jpfuentes2 has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
jpfuentes2 has quit [Client Quit]
<apeiros> pontiki: cool, cool
<apeiros> is it at least getting better? :)
jpfuentes2 has joined #ruby
yoongkang has joined #ruby
<pontiki> one bit of stress is out of my life, the product has shipped
<pontiki> now it's just the lingering sense of doom
jpfuentes2 has quit [Client Quit]
konsolebox has quit [Remote host closed the connection]
<shevy> :)
<shevy> drama... dramatic... dramatiki!
mgorbach has quit [Ping timeout: 264 seconds]
skade has quit [Read error: No route to host]
jpfuentes2 has joined #ruby
<pontiki> sorry
hedgecore has quit [Ping timeout: 276 seconds]
mgorbach has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
<nickjj> pontiki, post-ship is usually more stress unless you have a well tested deployment/alerting system setup
<pontiki> we have had that, this isn't first release. i think this is version 5.x
<pontiki> but it contains major new functionality that i wrote major bits of
nfk has joined #ruby
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
<pontiki> and the added fun that no one was actually assigned to this project; we all had full-time gigs that paid
sarkyniin has joined #ruby
unshadow has quit [Quit: leaving]
<pontiki> idk, i shouldn't complain
mistnim has joined #ruby
<pontiki> i love this company
<pontiki> they're the best people i've worked with in probably two decades
jpfuentes2 has quit [Ping timeout: 265 seconds]
<apeiros> pontiki: awesome @ product has shipped!
spider-mario has joined #ruby
<apeiros> don't worry, the lingering doom will not be all that impactful
mistnim has quit [Remote host closed the connection]
k3asd` has quit [Ping timeout: 246 seconds]
<pontiki> i didn't want to get this emotionally invested
<apeiros> happens
<pontiki> always
<apeiros> :)
<apeiros> means you're still part human and not yet fully transformed to a mouse ;-p
jcaho has quit [Read error: Connection reset by peer]
apt-get_ has quit [Ping timeout: 276 seconds]
<pontiki> so many times i've worked at places and seen so many stupidities, especially in how management deals with people, that make me so angry
jcaho has joined #ruby
lkba_ has joined #ruby
<pontiki> generally well under a year
millerti has joined #ruby
<pontiki> smartest bloody group of people
lkba has quit [Ping timeout: 256 seconds]
sdothum has joined #ruby
ta has joined #ruby
<atmosx> hello
dgutierrez1287 has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
Soda has joined #ruby
Rickmasta has joined #ruby
j4cknewt has joined #ruby
charliesome has joined #ruby
<pontiki> hello, atmosx
ta has quit [Ping timeout: 252 seconds]
dfockler has joined #ruby
workmad3 has joined #ruby
rubie has joined #ruby
Narzew has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 272 seconds]
<atmosx> pontiki: I read you just shipped, cool.
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pontiki> ya, thanks
The_Phoenix has joined #ruby
<pontiki> first push to prod was a soft release last monday. i was adding major pieces of functionality until after midnight tuesday (so wednesday)
<pontiki> the app absolutely had to be done by the time the conference started on thursday
<atmosx> ah, high pressure
dfockler has quit [Ping timeout: 265 seconds]
<pontiki> indeed
<atmosx> you had any all-nighters?
<pontiki> i'm way too old for that
<atmosx> =)
<pontiki> but almost 20 hours on tuesday
<atmosx> I see, rails app?
<pontiki> yes
workmad3 has quit [Ping timeout: 245 seconds]
<pontiki> just a stupid rails app, moving and displaying data
<atmosx> and you didn't had any phonecalls about it the first 3 days it went live, so I guess you're fine.
<atmosx> Displaying data for a DS system to pick it up?
<pontiki> only 2
rubie has quit [Ping timeout: 265 seconds]
<pontiki> no, this is just forms and stuff
<atmosx> ah k
<pontiki> i mean, there's some science in the formulae for brewing, but that's none of my stuff
<pontiki> mine has been all the e-commerce stuff
<atmosx> I see
bruno- has joined #ruby
maxshelley has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pontiki> there's still a major major issue that i haven't figured out, but we've just side-stepped it in the app for now
charliesome has quit [Quit: zzz]
sarkyniin has quit [Ping timeout: 265 seconds]
zotherstupidguy has quit [Ping timeout: 240 seconds]
<pontiki> and crikey there's some embarrassing stuff in there i never want anyone to see
charliesome has joined #ruby
A205B064 has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
<jhass> so everything as always
<pontiki> indeed
<pontiki> this is the post-partum blues
<atmosx> hahahaha
chinmay_dd has quit [Remote host closed the connection]
<atmosx> There few things that I hate more than (extremely) slow procedures where you have to *wait* until something appears on a black screen.
startupality has joined #ruby
zotherstupidguy has joined #ruby
* atmosx is dumping an RPi image to an SD card
symm- has joined #ruby
<jhass> pkill -1 dd ?
<atmosx> jhass: no, no it's not an option.
scripore has quit [Quit: This computer has gone to sleep]
<atmosx> I have to get this music-box setup and get over with.
<jhass> also extremely slow? forgot to set a decent buffer size?
RegulationD has joined #ruby
<jhass> SIGHUP (1) makes dd print the progress
<atmosx> jhass: I'm using OSX's rdisk1 it goes as fast as it's physically possible.
<jhass> heh
<atmosx> it's prone to errors though
marr has joined #ruby
<atmosx> apeiros: you do web-dev too, at work?
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<atmosx> 1369.229683 seconds ~ 22 minutes.
<atmosx> a lifetime
yfeldblum has quit [Ping timeout: 265 seconds]
<jhass> how big?
chris2 has quit [Ping timeout: 252 seconds]
<atmosx> 1,7G Volumio1.55PI.img
caseypatrickdris has joined #ruby
<jhass> that's really slow
<jhass> you'll need to buy better sd cards
<atmosx> it's a class 10
RegulationD has quit [Ping timeout: 265 seconds]
<jhass> then rdisk1 is crap
<jhass> our your reader
<atmosx> maybe it's the card reader, but even the embedded card reader on the MBA is just as slow.
kirun_ has joined #ruby
arup_r has joined #ruby
<atmosx> do you have any numbers to back up your CLAIMS?
<atmosx> lol
failshell has joined #ruby
mistnim has joined #ruby
<pontiki> that does seem slow. mine get done in about 3 minutes
<pontiki> and i thought that was an interminable wait
mistnim has quit [Remote host closed the connection]
<jhass> class10 should make 10MB/s
<atmosx> and USB2 should make around 400 MB/s
caseypat_ has joined #ruby
<jhass> yeah, 3 minutes seems realistic for a class 10
<atmosx> I don't know why it's so slow but it has always been.
vickleton has quit [Ping timeout: 264 seconds]
kirun_ has quit [Client Quit]
hardlin3r has quit [Ping timeout: 276 seconds]
qwertme has joined #ruby
WillAmes has joined #ruby
caseypatrickdris has quit [Read error: Connection reset by peer]
mistnim has joined #ruby
<jhass> I mean 20 minutes, that's what, 1.5MB/s?
chris2 has joined #ruby
<jhass> my broadband is faster than that
aapole has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
failshell has quit [Ping timeout: 240 seconds]
<atmosx> jhass: you're making me feel awful. My broadband reaches 700 kb/s max.
allomov has joined #ruby
<jhass> :P
<atmosx> ..
k3asd` has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
<jhass> I do wonder if dd if=whatever of=/dev/whatever bs=5M or something like that is faster for you
bruno- has joined #ruby
<atmosx> ah no
<atmosx> tried that out
<jhass> with bs=5M or similar?
mistnim has quit [Remote host closed the connection]
bruno- has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
yoongkang has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lapide_viridi has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
mistnim has joined #ruby
Rickmasta has joined #ruby
<atmosx> I've treid with 1024K before didn't see any difference. Then I've read somewhere that with rdisk on OSX speed doesn't matter, it goes as fast as possible.
j4cknewt has quit [Remote host closed the connection]
<atmosx> r stands for 'raw', but it's dangerous. If an error occurs it won't get reported
leslie has quit [Ping timeout: 264 seconds]
<atmosx> I think the problem is the all-in-one SD card reader or my iMac is just too old.
bruno- has joined #ruby
endash has joined #ruby
mistnim has quit [Remote host closed the connection]
mistnim has joined #ruby
mdz_ has joined #ruby
leslie has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
stamina has quit [Quit: WeeChat 1.2]
<shevy> oh
<shevy> Mac
<shevy> now there is your problem
symm- has quit [Ping timeout: 276 seconds]
bruno- has quit [Read error: Connection reset by peer]
startupality has quit [Quit: startupality]
<atmosx> lol
<atmosx> linux is an accident waiting to "happen" :-P
mary5030 has joined #ruby
mistnim has quit [Remote host closed the connection]
<shevy> you have to know how to work with its warts :)
bruno- has joined #ruby
<atmosx> hehe true
codecop has joined #ruby
startupality has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
mdz_ has quit [Ping timeout: 276 seconds]
<pontiki> wow, i'm smelling cigar smoke from outside
<pontiki> who smokes a cigar at 7 in the morning??
<shevy> young people!
<shevy> my neighbor smokes late night
<pontiki> that's crazy talk
<shevy> since it is hot here, I have my window open, and the smoke gets in :(
unshadow has joined #ruby
<atmosx> pontiki: why are you awake at 7 am in the morning? Are you big on exercise or something?
<pontiki> i woke up about 5 am and couldn't get back to sleep
* atmosx the neighbours is at least 0.8 km away in all directions so...
<atmosx> err neighbour*
<pontiki> tho now i want to crawl back in bed, but i know my mom will start ringing for me any minute
<atmosx> pontiki: well, at least it's Sunday.
bruno- has joined #ruby
<atmosx> heh
skade has joined #ruby
<atmosx> gonna grab somethin to eat, later all
mary5030 has quit [Remote host closed the connection]
bruno- has quit [Read error: Connection reset by peer]
k3asd` has quit [Ping timeout: 265 seconds]
chouhoulis has joined #ruby
<shevy> Sundays are lazy days
edwinvdg_ has joined #ruby
bruno- has joined #ruby
<pontiki> they should be
<pontiki> but i still have to attend to my parents' needs
caseypat_ has quit [Ping timeout: 255 seconds]
bruno- has quit [Read error: Connection reset by peer]
edwinvdgraaf has quit [Ping timeout: 252 seconds]
codenihal has joined #ruby
<codenihal> What are symbols? i just cant get my head around them
<codenihal> ?
chouhoulis has quit [Ping timeout: 255 seconds]
bruno- has joined #ruby
zotherstupidguy has quit [Ping timeout: 264 seconds]
<pontiki> sorta like labels
bruno- has quit [Read error: Connection reset by peer]
<pontiki> idk if i have a good explanation...
<oddmunds> ^ Ruby's Symbols Explained
<pontiki> so a half-hour explanation?
<codenihal> Could I have something a bit smaller?
<oddmunds> codenihal: what exactly are you not getting your head around?
<codenihal> Ok, I better ask this as a question. Are they like global variables?
<jhass> no, they are values
<jhass> 1, "foo", :bar
zotherstupidguy has joined #ruby
<oddmunds> no. you can't assign anything to a symbol like you can a variable.
bin_005 has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
francois_ has joined #ruby
<codenihal> Alright, and what value do they hold? And why are they used instead of strings?
zenguy_pc has quit [Read error: Connection reset by peer]
ta has joined #ruby
zenguy_pc has joined #ruby
commondream has joined #ruby
bruno- has joined #ruby
chris2 has quit [Ping timeout: 276 seconds]
futilegames has joined #ruby
<codenihal> Alright, and what value do they hold? And why are they used instead of strings?
<oddmunds> i guess you could say that their names are the values they hold
<pontiki> a value is also not a variable
codecop has quit [Ping timeout: 256 seconds]
<pontiki> given the confusion, perhaps it's worth spending half an hour on it
<oddmunds> codenihal: would you say that 4 holds a value?
<codenihal> oddmunds, no
<oddmunds> then symbols do not hold any value
<codenihal> Why are they used instead of strings in rails?
Ox0dea has joined #ruby
<codenihal> Like :something
Forgetful_Lion has quit [Remote host closed the connection]
nickfausnight has quit [Quit: Connection closed for inactivity]
<Ox0dea> codenihal: http://bfy.tw/KXx
zz_Outlastsheep is now known as Outlastsheep
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> I mean, doesn't that make you feel at least a little silly?
francois_ has quit [Ping timeout: 245 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Read error: No route to host]
qwertme has joined #ruby
skade has joined #ruby
<codenihal> Ox0dea: Yes it does, yes it does. Thank you.
commondream has quit [Ping timeout: 252 seconds]
<Ox0dea> Well, I appreciate your honesty.
futilegames has quit [Client Quit]
weszlem has quit [Ping timeout: 244 seconds]
ta has quit [Ping timeout: 276 seconds]
<codenihal> Thanks for that link Ox0dea
<codenihal> and for sharing that wonderful site
ndrei has quit [Ping timeout: 252 seconds]
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
codecop has joined #ruby
ruurd has joined #ruby
codenihal has quit [Quit: Textual IRC Client: www.textualapp.com]
AlphaAtom has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
AbinoamJr has joined #ruby
chris2 has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
dgutierrez1287 has joined #ruby
zenguy_pc has joined #ruby
wmoxam has quit [Quit: leaving]
wmoxam has joined #ruby
lkba has joined #ruby
lkba_ has quit [Read error: Connection reset by peer]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allomov has quit [Remote host closed the connection]
charliesome has joined #ruby
<shevy> lol
<shevy> another one fell to Ox0dea's hammer
qwertme has joined #ruby
erts has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
scripore has joined #ruby
hexxx has joined #ruby
mrmargolis has joined #ruby
bin_005 has quit [Ping timeout: 265 seconds]
<pontiki> i was almost banned from a channel for using that
krisquigley has joined #ruby
greenbagels has quit [Quit: Leaving]
lapide_viridi has quit [Quit: Leaving]
micmus has quit [Quit: Leaving]
krisquigley has quit [Ping timeout: 250 seconds]
ahmadsoe has joined #ruby
AlphaAtom has joined #ruby
bruno- has joined #ruby
ruurd has quit [Quit: Zzzzz z zz ...]
hector__ has joined #ruby
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
yoongkang has joined #ruby
hexxx has quit [Quit: hexxx]
ziprar has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
codecop has quit [Remote host closed the connection]
psy_ has joined #ruby
ndrei has joined #ruby
railsraider has joined #ruby
sarkyniin has joined #ruby
dreatn has joined #ruby
atomical has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: zzz]
chris2 has quit [Ping timeout: 265 seconds]
jume has joined #ruby
devdazed has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc has quit [Read error: Connection reset by peer]
zenguy_pc has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
michael_mbp has quit [Excess Flood]
serivich has quit [Ping timeout: 240 seconds]
psy_ has quit [Ping timeout: 264 seconds]
qwertme has joined #ruby
michael_mbp has joined #ruby
j4cknewt has joined #ruby
chris2 has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
skade has quit [Read error: No route to host]
skade has joined #ruby
mary5030 has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
workmad3 has quit [Ping timeout: 265 seconds]
maxshelley has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lxsameer has quit [Quit: Leaving]
yqt has joined #ruby
ta has joined #ruby
weszlem has joined #ruby
scripore has joined #ruby
justintv90 has quit [Read error: Connection reset by peer]
<shevy> does one of you know the behaviour
<shevy> say, I have a gem called foobar
senayar has quit [Remote host closed the connection]
<shevy> the latest version is 1.0.0
startupality has quit [Quit: startupality]
mary5030 has quit [Ping timeout: 256 seconds]
<shevy> and I have it installed. if I then do "gem install foobar", will it download 1.0.0 again?
<shevy> the message is sort of confusing
<shevy> "Successfully installed kramdown-1.7.0"
arup_r has quit [Ping timeout: 265 seconds]
AbinoamJr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jalcine> if it doesn't have the gem cached, afaik
<shevy> I would have expected something like "Latest version kramdown-1.7.0 is already installed." or something like that
startupality has joined #ruby
havenwood has joined #ruby
<jalcine> what version of Bundler are you using? When I attempt to install an already installed gem, it's just quiet for me
chouhoulis has joined #ruby
<jalcine> on gem 2.4.5
<jalcine> (not Bundler then, gem)
<shevy> hmm I am on 2.4.8
<shevy> but now that you mention it
<shevy> I think I may have a gemrc file ...
<shevy> oh yeah... I have an entry there :verbose: true
<shevy> hmm no, it still writes that message
weszlem has quit [Ping timeout: 272 seconds]
ta has quit [Ping timeout: 252 seconds]
<shevy> jalcine, does gem not yield to you the "Successfully installed" part message?
<jalcine> nope
mdz_ has joined #ruby
<jalcine> also with 'verbose: true' in my ~/.gemrc
kraljev11 has quit [Ping timeout: 255 seconds]
aapole has joined #ruby
howdoi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
veleno has joined #ruby
michael_mbp has quit [Excess Flood]
failshell has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
mdz_ has quit [Ping timeout: 245 seconds]
michael_mbp has joined #ruby
<borodin> ok folks - I switched my app from development to production - it's serving pages but all the assets are missing (failed to,load resource - 404). Is there a checklist for "stuff you must do to switch to RAILS_ENV=production ?
veleno has quit [Client Quit]
failshell has quit [Ping timeout: 246 seconds]
aapole has quit [Ping timeout: 240 seconds]
blackmesa has quit [Quit: WeeChat 1.2]
<jalcine> err things like running `rake assets:precompile` and `rake db:migrate` are two that should be on there
<jalcine> in reverse order, bo
blackmesa has joined #ruby
k3asd` has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
startupality has quit [Quit: startupality]
hardlin3r has joined #ruby
dionysus69 has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
ikbenhet has joined #ruby
n3vtelen has joined #ruby
blackmesa has quit [Read error: Connection reset by peer]
n3vtelen has left #ruby ["Leaving"]
blackmesa has joined #ruby
AbinoamJr has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
michael_mbp has quit [Excess Flood]
darkf has quit [Quit: Leaving]
michael_mbp has joined #ruby
AbinoamJr has quit [Client Quit]
bkxd has quit [Ping timeout: 276 seconds]
blackmesa has quit [Ping timeout: 256 seconds]
<jhass> ?crosspost borodin
<ruboto> borodin, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
mcclurmc has joined #ruby
xcesariox has joined #ruby
enebo has joined #ruby
casadei has joined #ruby
cytoskeletor has joined #ruby
adac has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
trollstation has joined #ruby
<trollstation> Ruby fucking sucks pythons dick
<jhass> !mute trollstation
<jhass> such creativity
chinmay_dd has joined #ruby
jume has left #ruby [#ruby]
mcclurmc has quit [Ping timeout: 246 seconds]
<borodin> jhass sorry for the crosspost - I made a mistake
<borodin> but thanks for your help
rindolf has joined #ruby
<havenwood> g'mornin
<rindolf> Hi all.
<rindolf> havenwood: morning. Sup?
<borodin> still doesn't work, however. I wonder if it's due to using docker for the web server
dreatn has quit [Quit: On the other hand, you have different fingers.]
NeverDie has joined #ruby
<jhass> borodin: your reverse proxy is configured to serve them?
bkxd has joined #ruby
<borodin> in dev I don't have any proxy
<jhass> yes, that's normal
<havenwood> rindolf: Hmm, maybe brunch. ;)
wildroman2 has quit [Ping timeout: 276 seconds]
<rindolf> havenwood: om nom nom.
wildroman2 has joined #ruby
NeverDie has quit [Max SendQ exceeded]
trollstation has left #ruby [#ruby]
<jhass> !unmute trollstation
blackmesa has joined #ruby
niemc2 has joined #ruby
NeverDie has joined #ruby
<borodin> that guys has some recent pain he needs to free himself of
enebo has quit [Quit: enebo]
startupality has joined #ruby
ylla has quit [Ping timeout: 264 seconds]
niemcu has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
yardenbar has quit [Quit: Leaving]
blackmesa has quit [Ping timeout: 256 seconds]
<shevy> lol
commondream has joined #ruby
wildroman2 has quit [Ping timeout: 272 seconds]
scripore has quit [Quit: This computer has gone to sleep]
unshadow has quit [Quit: leaving]
zotherstupidguy has quit [Quit: WeeChat 1.2]
rubie has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
adac has quit [Ping timeout: 276 seconds]
Rickmasta has joined #ruby
_whitelogger has joined #ruby
allcentury has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DLSteve has joined #ruby
commondream has quit [Remote host closed the connection]
ruby-lang493 has joined #ruby
k3asd` has quit [Ping timeout: 264 seconds]
rubie has quit [Ping timeout: 265 seconds]
arturmartins has quit [Read error: Connection reset by peer]
arturmartins has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
weszlem has joined #ruby
davedev24_ has joined #ruby
wildroman2 has joined #ruby
ta has joined #ruby
davedev2_ has quit [Ping timeout: 265 seconds]
trollstation has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
nhhagen has joined #ruby
<trollstation> Jhass why you do that joker
S_Walker has joined #ruby
<jhass> !mute trollstation
<jhass> sorry for the noise
trollstation has left #ruby [#ruby]
<adaedra> wait, how could he talk if he was muted
<jhass> nah I unmuted after he left
<jhass> thought no need to clutter up the list
<jhass> thought wrong ;)
ruby-lang493 has quit [Ping timeout: 246 seconds]
<adaedra> ah yes, here it is — scrolled too fast
weszlem has quit [Ping timeout: 264 seconds]
scripore has joined #ruby
mdz_ has joined #ruby
ta has quit [Ping timeout: 252 seconds]
ikbenhet has quit [Ping timeout: 276 seconds]
cytoskeletor has quit [Ping timeout: 276 seconds]
mary5030 has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
mary5030 has quit [Remote host closed the connection]
rbennacer has joined #ruby
krisquigley has joined #ruby
mdz_ has quit [Ping timeout: 276 seconds]
<pontiki> borodin: you have the assets volume mounted for your web server container?
rbennacer has quit [Remote host closed the connection]
<pontiki> probably a stupid question, sorry
xcesariox has quit [Max SendQ exceeded]
<borodin> the app with all the assets etc is in a volume, yes
<borodin> typically this means when I make changes to the local filesystem, those changes appear in the webserver and in the browser
<shevy> jhass perhaps he has more than just that account here
railsraider has quit [Ping timeout: 240 seconds]
railsraider_ has joined #ruby
<jhass> maybe, I see no other client with the same host so we can't know
adac has joined #ruby
zotherstupidguy has quit [Ping timeout: 245 seconds]
zotherstupidguy has joined #ruby
krisquigley has quit [Ping timeout: 256 seconds]
pepelui has quit [Quit: Leaving.]
platosha__ has quit [Ping timeout: 256 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ylla has joined #ruby
platosha has joined #ruby
fsvehla has joined #ruby
platosha has quit [Max SendQ exceeded]
platosha has joined #ruby
atomical has joined #ruby
rbennacer has joined #ruby
RegulationD has joined #ruby
iamninja has joined #ruby
sinkensabe has joined #ruby
hakunin has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
ScriptGeek has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
`Nibble_ has quit [Quit: ...]
Guest6 has joined #ruby
k3asd` has joined #ruby
JDiPierro has joined #ruby
sinkensabe has quit [Remote host closed the connection]
niemc2 has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
endash has quit [Quit: endash]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 246 seconds]
mleung has joined #ruby
railsraider_ has quit [Quit: railsraider_]
startupality has quit [Quit: startupality]
allcentury has quit [Ping timeout: 256 seconds]
gluten_hell_ has joined #ruby
hakunin has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
balazs has joined #ruby
trollstation has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
mleung has quit [Quit: mleung]
mintux has joined #ruby
mintux has left #ruby [#ruby]
workmad3 has joined #ruby
Pisuke has joined #ruby
rubie has joined #ruby
MyMind has quit [Ping timeout: 265 seconds]
trollstation has left #ruby [#ruby]
bruno- has quit [Ping timeout: 264 seconds]
chinmay_dd has joined #ruby
phutchins has joined #ruby
balazs has quit [Remote host closed the connection]
bmurt has joined #ruby
balazs has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
bzb has joined #ruby
bzb has quit [Read error: Connection reset by peer]
balazs has quit [Remote host closed the connection]
spider-mario has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
mdw has joined #ruby
failshell has joined #ruby
cytoskeletor has joined #ruby
lessless has quit [Quit: Textual IRC Client: www.textualapp.com]
mgorbach has quit [Ping timeout: 240 seconds]
platzhirsch has joined #ruby
Akagi201 has quit [Remote host closed the connection]
someword has joined #ruby
commondream has joined #ruby
trollstation has joined #ruby
failshell has quit [Ping timeout: 276 seconds]
mgorbach has joined #ruby
railsraider has joined #ruby
railsraider has quit [Client Quit]
rbennacer has quit [Remote host closed the connection]
_ht has joined #ruby
rbennacer has joined #ruby
trollstation has left #ruby [#ruby]
lavros has joined #ruby
ta has joined #ruby
Scroff has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
scripore has quit [Quit: This computer has gone to sleep]
trollololo has joined #ruby
<trollololo> Yo punks
serivich has joined #ruby
ebbflowgo has joined #ruby
<trollololo> Ruby is shit
<havenwood> !mute trollololo
mleung has joined #ruby
platosha has quit [Ping timeout: 244 seconds]
trollololo has left #ruby [#ruby]
platosha has joined #ruby
_seanc_ has quit [Quit: _seanc_]
commondream has quit [Ping timeout: 265 seconds]
scripore has joined #ruby
trollflow has joined #ruby
<trollflow> Bitches
<havenwood> !mute trollflow
ta has quit [Ping timeout: 252 seconds]
trollflow has quit [Client Quit]
startupality has joined #ruby
trollmagic has joined #ruby
bgmarx has joined #ruby
<havenwood> !mute trollmagic
trollmagic has quit [Client Quit]
mleung has quit [Quit: mleung]
JDiPierro has joined #ruby
enebo has joined #ruby
mrsolo has joined #ruby
n008f4g_ has quit [Ping timeout: 250 seconds]
jenny209 has joined #ruby
<jenny209> Hi
JDiPierro has quit [Remote host closed the connection]
<jenny209> Cock suckers
<jenny209> Ruby crap
<havenwood> !ban jenny209 !T 1d
jenny209 was banned on #ruby by ChanServ [jenny209!*@*]
jenny209 was kicked from #ruby by ChanServ [User is banned from this channel]
slackbotgz has quit [Read error: Connection reset by peer]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
slackbotgz has joined #ruby
<havenwood> !unmute trollmagic
<havenwood> !unmute trollflow
<jhass> oh I didn't hit that one
AlphaAtom has joined #ruby
someword has quit [Quit: Leaving.]
<havenwood> \o/
trollalldaylong has joined #ruby
bgmarx has quit [Remote host closed the connection]
trollalldaylong has quit [Client Quit]
yardenbar has joined #ruby
simplyianm has joined #ruby
Master44 has joined #ruby
trollwashere has joined #ruby
nagaraj has joined #ruby
<nagaraj> Hi
<Master44> Its sublime text a good text editor?
<Master44> or any other sugestions?
bgmarx has joined #ruby
trollwashere has quit [Client Quit]
<jhass> Master44: it's fine, whatever comes now just ignore it
dagda1 has joined #ruby
<havenwood> Master44: Atom is a free option you might want to look into if you don't own a copy of Sublime.
<al2o3-cr> havenwood: have you tried atom?
<havenwood> al2o3-cr: Yup
<al2o3-cr> might have to try it, looks nice :)
bmurt has quit []
<Master44> I got some wifi issues
antgel has quit [Ping timeout: 272 seconds]
<havenwood> Master44: Here's the log if you mean you missed something here: http://irclog.whitequark.org/ruby/
Master44 has quit [Remote host closed the connection]
Master44 has joined #ruby
icedp is now known as mlatu
mlatu is now known as icedp
<Master44> got wifi issues, gtg sorry
Master44 has left #ruby [#ruby]
psy_ has joined #ruby
lavros has quit [Ping timeout: 240 seconds]
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
lavros has joined #ruby
<al2o3-cr> this is taking some time :(
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
micmus has joined #ruby
simplyianm has quit [Remote host closed the connection]
<al2o3-cr> eventually :)
peteykun has quit [Quit: Leaving]
AlphaAtom has joined #ruby
weemsledeux has joined #ruby
Yiota has joined #ruby
weszlem has joined #ruby
aapole has joined #ruby
startupality has quit [Quit: startupality]
jcoe has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
bgmarx has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
edwinvdg_ has joined #ruby
startupality has joined #ruby
phutchins has joined #ruby
ylla has quit [Ping timeout: 276 seconds]
francois_ has joined #ruby
weszlem has quit [Ping timeout: 265 seconds]
axisys has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 264 seconds]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
otherj has joined #ruby
dagda1 has joined #ruby
Someer has joined #ruby
dgutierrez1287 has joined #ruby
milktrader has joined #ruby
francois_ has quit [Ping timeout: 276 seconds]
<milktrader> Been a while since I programmed in Ruby, what release should I update to?
* milktrader has 1.9.2
<milktrader> I’m interested in developing a Sinatra app, btw
<Someer> milktrader: 2.2
<otherj> is there some reason why you wouldn't just use the latest?
<al2o3-cr> 2.2.2
<Someer> Maybe he/she is running Ubuntu and installed it from software center?
<milktrader> not sure if there are hidden hazards with using the *latest*
<milktrader> gotcha, 2.2.2 thanks
super has joined #ruby
<otherj> the people you are attracted to prefer people who use 2.2
<otherj> that's a fact my friend
mleung has joined #ruby
dgutierrez1287 has quit [Ping timeout: 255 seconds]
<milktrader> okay, is rvm still the king of all things ruby installation?
LJT has joined #ruby
<jhass> if it works for you then it works for you
<apeiros> milktrader: rvm is still good.
aapole has quit [Ping timeout: 256 seconds]
<milktrader> cool, the site looks update
<otherj> I like rbenv personally
LicHacker has joined #ruby
<jhass> I don't like the stupid ".ruby-version must contain the exact version" policy
<jhass> of rbenv
havenwood has quit [Ping timeout: 272 seconds]
LJT has quit [Client Quit]
nagaraj has quit [Ping timeout: 265 seconds]
nagaraj has joined #ruby
mleung has quit [Quit: mleung]
millerti has joined #ruby
startupality has quit [Quit: startupality]
blackmesa has joined #ruby
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
n008f4g_ has joined #ruby
yqt has quit [Ping timeout: 246 seconds]
erts has joined #ruby
Someer has quit [Ping timeout: 246 seconds]
LJT has joined #ruby
Scroff has quit [Remote host closed the connection]
EllisTAA has joined #ruby
<EllisTAA> morning
<al2o3-cr> afternoon
Scroff has joined #ruby
<nagaraj> Hi
<apeiros> ?ugt al2o3-cr
<ruboto> al2o3-cr, it's morning, see http://www.total-knowledge.com/~ilya/mips/ugt.html
<nagaraj> cxvxv
<nagaraj> hi
nagaraj has quit [Quit: Leaving]
<jhass> oh, a riddle, cxvxv
<jhass> roman number literal?
<al2o3-cr> :)
<EllisTAA> I’m trying to iterate over an array of urls and turn those urls into nokogiri objects using an each loop, but everytime it runs it raises an error ‘undefined method ‘join’ for #<String;-01293-01293”> does anyone know how i can iterate over a list of urls and turn them into nokogiri objects without getting this error?
<apeiros> they're gone already jhass
<jhass> hence I said anything
ilr has joined #ruby
<jhass> ilr: wb
<apeiros> ?code EllisTAA
<ruboto> EllisTAA, We can't help you without your code, please post it to https://gist.github.com
<EllisTAA> ok 1 sec
chinmay_dd has quit [Remote host closed the connection]
jcoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krisquigley has joined #ruby
<EllisTAA> you can ignore the name of the route for now ill move this to the seed folder
<EllisTAA> file*
<apeiros> EllisTAA: a) indentation?!??!?
<EllisTAA> yeah sorry about that
<apeiros> b) I'd assume sinatra? given the `get …`
<jhass> b) backtrace?
<jhass> * c)
<apeiros> d) if b is correct - sinatra probably wants a proper return value from the block, not just random plerp
Scroff has quit [Ping timeout: 276 seconds]
pyon has quit [Quit: fix config]
<EllisTAA> apeiros: what do u mean it wants a proper return value?
<apeiros> (at the moment your block returns website_que - since Array#each returns the receiver)
gregf has quit [Quit: WeeChat 1.1.1]
pyon has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> EllisTAA: first things first - *is* it sinatra? you know, because… context matters.
<EllisTAA> hmm so maybe if i just put ‘puts “done” after it is done iterating?
<EllisTAA> yes this is sinatra
mattarse has joined #ruby
<apeiros> great. next time you tell without asking :-p
erts_ has joined #ruby
<EllisTAA> ok :)
<apeiros> EllisTAA: how does a proper `get` with block look in sinatra look like?
<EllisTAA> get ‘/‘ do end
<apeiros> and that renders what?
<EllisTAA> content ...
<apeiros> or returns what to the browser?
<apeiros> your block is empty, so no, no content…
commondream has joined #ruby
ta has joined #ruby
senayar has joined #ruby
<EllisTAA> idk. it seems to be trying to join objects into a string …
krisquigley has quit [Ping timeout: 272 seconds]
chinmay_dd has joined #ruby
<EllisTAA> ok so the route is trying to return an object of strings to the browser but it can’t do that …
ledestin has joined #ruby
<jhass> because it should return ...
<apeiros> EllisTAA: time to read sinatra docs
erts has quit [Ping timeout: 255 seconds]
<apeiros> EllisTAA: see what a proper block to `get` should return.
<EllisTAA> :{
platosha has quit [Ping timeout: 264 seconds]
lavros has quit [Ping timeout: 276 seconds]
JDiPierro has joined #ruby
RegulationD has joined #ruby
lavros has joined #ruby
zenguy_pc has quit [Ping timeout: 255 seconds]
dionysus69 has quit [Remote host closed the connection]
gregf has joined #ruby
speaking1ode has quit [Ping timeout: 252 seconds]
commondream has quit [Ping timeout: 256 seconds]
zenguy_pc has joined #ruby
f3lp has joined #ruby
platosha has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
xxneolithicxx has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
ta has quit [Ping timeout: 252 seconds]
xxneolithicxx has quit [Max SendQ exceeded]
startupality has joined #ruby
speaking1ode has joined #ruby
Cache_Money has joined #ruby
Vendo has joined #ruby
Scroff has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
<Vendo> "Ruby will interpret your use of main as a regular variable or method name."
<Vendo> has this changed from 1.9?
dented42 has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> Vendo: context?
<apeiros> main is not a keyword in ruby, if that's what you mean
tomphp has joined #ruby
<Vendo> apeiros: So what does it mean to say it will interpret my use of main as a regular variable or method name?
Spami has joined #ruby
<Vendo> apeiros: I'm reading Eloquent Ruby parallel with The well grounded rubyist (1.9 version) and also have the pickaxe book 1.9&2.0. Is it ok to use those books?
<apeiros> again, context.
allomov has joined #ruby
<Vendo> A bit outdated
<apeiros> yes
vdamewood has quit [Quit: Life beckons.]
<apeiros> I don't have those books, so that context does not help
Scroff has quit [Ping timeout: 252 seconds]
<Vendo> v
<Vendo> main is a special term that the default self object uses to refer to itself. You can’trefer to it as main; Ruby will interpret your use of main as a regular variable or methodname.
<apeiros> but I guess all it means is: main is not a keyword. it's a normal method- or lvar name
<apeiros> gtg
wildroman2 has quit [Remote host closed the connection]
aapole has joined #ruby
yqt has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tennis_ has joined #ruby
chouhoulis has joined #ruby
<Vendo> It clearly says, "Ruby will interpret your use of main as a regular variable or methodname."
allomov has quit [Ping timeout: 255 seconds]
<jhass> can you phrase a more specific question?
EllisTAA has quit [Quit: EllisTAA]
<jhass> what's unclear to you?
<Vendo> Interpret? I can do main = 1
<jhass> yes
senayar has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
Scroff has joined #ruby
nhhagen has quit [Remote host closed the connection]
gubznf has joined #ruby
gubznf has left #ruby [#ruby]
aapole has quit [Ping timeout: 256 seconds]
joaomdmoura has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
e1nh4nd3r has joined #ruby
Scroff has quit [Remote host closed the connection]
e1nh4nd3r has quit [Client Quit]
Scroff has joined #ruby
e1nh4nd3r has joined #ruby
Scroff has quit [Remote host closed the connection]
workmad3 has joined #ruby
DEA7TH has quit [Ping timeout: 255 seconds]
flughafen_ has joined #ruby
ikbenhet has joined #ruby
senayar has joined #ruby
Akagi201 has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 252 seconds]
lessless has joined #ruby
Guest6 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
someword has joined #ruby
veleno has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
<flughafen_> shevy: ahoy
EllisTAA has joined #ruby
<flughafen_> certainty: hi
senayar has quit [Ping timeout: 246 seconds]
Channel6 has joined #ruby
yqt has quit [Ping timeout: 264 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
failshell has joined #ruby
atm0sphere_ has joined #ruby
bluOxigen has joined #ruby
bluOxigen has left #ruby [#ruby]
<atm0sphere_> is there any ruboto devloper here?
erts_ has quit [Quit: erts_]
chinmay__ has joined #ruby
epistrephein has joined #ruby
erts has joined #ruby
Channel6 has quit [Client Quit]
<jhass> atm0sphere_: sup?
veinofstars has joined #ruby
<atm0sphere_> any idea where to get ruboto example app for devloping android app?
<jhass> wat?
epistrephein has quit [Max SendQ exceeded]
<jhass> you mean the code evaluation?
<atm0sphere_> i know ruby and want to make android app
<jhass> what does ruboto have to do with it?
<atm0sphere_> i want tutorials
zenguy_pc has quit [Read error: Connection reset by peer]
lavros has quit [Ping timeout: 264 seconds]
chinmay_dd has quit [Ping timeout: 256 seconds]
mcclurmc has joined #ruby
epistrephein has joined #ruby
zenguy_pc has joined #ruby
baweaver has joined #ruby
lavros has joined #ruby
chinma___ has joined #ruby
chinma___ has quit [Remote host closed the connection]
<atm0sphere_> jhass:??
<jhass> exactly, ??
lkba has quit [Ping timeout: 252 seconds]
<jhass> oh, lol
<jhass> apeiros: ^ that's what you get from picking that name :P
Asher has quit [Quit: Leaving.]
<jhass> atm0sphere_: ignore me^^
Asher has joined #ruby
failshell has quit [Ping timeout: 244 seconds]
<atm0sphere_> one more question do i have trouble in installing ruboto on windows like rails??
<al2o3-cr> oh my god i burst out laughing so hard then it's not even funny lol
<jhass> ?ruboto
<ruboto> I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
cytoskeletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chinmay__ has quit [Ping timeout: 265 seconds]
<atm0sphere_> ruboto why r u not on ruboto channel?
<EllisTAA> hey yall. when i run be rake db:seed i get an error on line 33 when it tries to run seed_urls. the error is NameError: Undefined local variable or method ‘seed_urls’ for database builder class, does anyone know why https://gist.github.com/ellismarte/ff4da421a7f2fb2a1c9b#file-pp-rb-L33 my guess is there is something wrong with the end statement for the exceptions?
erts has quit [Quit: erts]
<al2o3-cr> i'm in tears here
mcclurmc has quit [Ping timeout: 244 seconds]
gianlucadv has quit [Ping timeout: 264 seconds]
erts has joined #ruby
jume has joined #ruby
erts has quit [Remote host closed the connection]
<jhass> EllisTAA: your indentation is still confusing...
<EllisTAA> which part? haha
swgillespie has joined #ruby
Scroff has joined #ruby
<jhass> that you unindented the method definitions
erts has joined #ruby
<jhass> anyway, you can't call methods before you define them
<EllisTAA> jhass: ah so i just need to put the methods above the initial method?
<jhass> there's no "initial method", but yes
<jhass> I'm not sure why you define a class at all there tbh
<EllisTAA> i didn’t have a class initially i just put it there bc i thought it would help me get over an error ill remove it
nertzy has joined #ruby
blueOxigen has joined #ruby
wildroman2 has joined #ruby
havenwood has joined #ruby
bgmarx has joined #ruby
Scroff has quit [Ping timeout: 244 seconds]
towski_ has joined #ruby
ilr has quit [Ping timeout: 265 seconds]
epistrephein has quit []
Spami has quit [Quit: This computer has gone to sleep]
baweaver has quit [Remote host closed the connection]
bgmarx has quit [Ping timeout: 240 seconds]
banister has joined #ruby
acke has joined #ruby
vickleton has joined #ruby
gkra has joined #ruby
startupality has quit [Quit: startupality]
weszlem has joined #ruby
<EllisTAA> sorry about the many questions, but now when i run be rake db:seed, i dont get any errors but nothing gets created in my db, do i need to call the run method? https://gist.github.com/ellismarte/ff4da421a7f2fb2a1c9b#file-pp-rb-L33
<jhass> of course?!
yqt has joined #ruby
<jhass> also why don't you fix your indentation already
Guest6 has joined #ruby
<EllisTAA> i thought i fixed it. how do i run it? i put run at the bottom of the file
<adaedra> ggVG=
k3asd` has quit [Ping timeout: 272 seconds]
zz_Outlastsheep is now known as Outlastsheep
k3asd` has joined #ruby
serivichi has joined #ruby
weszlem has quit [Ping timeout: 265 seconds]
weaksauce has quit [Excess Flood]
axsuul has joined #ruby
spider-mario has joined #ruby
otherj has quit [Quit: .]
serivich has quit [Ping timeout: 265 seconds]
k3asd` has quit [Remote host closed the connection]
atm0sphere_ has quit [Ping timeout: 246 seconds]
lavros has quit [Ping timeout: 256 seconds]
bmurt has joined #ruby
startupality has joined #ruby
ta has joined #ruby
ikbenhet has quit []
simplyianm has joined #ruby
JDiPierro has quit [Remote host closed the connection]
lavros has joined #ruby
simplyianm has quit [Remote host closed the connection]
RegulationD has joined #ruby
allomov has joined #ruby
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has joined #ruby
x1337807x has joined #ruby
weszlem has joined #ruby
bmurt has quit [Client Quit]
Guest6 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
EllisTAA has quit [Quit: EllisTAA]
EllisTAA has joined #ruby
<EllisTAA> why the fuck isn’t this working https://gist.github.com/ellismarte/ff4da421a7f2fb2a1c9b
<jhass> EllisTAA: slight refactor, didn't watch for bugs http://paste.mrzyx.de/pyeedshcl
nikhgupta has joined #ruby
JDiPierro has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
<atmosx> EllisTAA: can you be more specific, line etc?
sdothum has quit [Ping timeout: 255 seconds]
sinkensabe has quit [Remote host closed the connection]
ta has quit [Ping timeout: 272 seconds]
x1337807x has quit [Client Quit]
diegoviola has joined #ruby
doertedev has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
<EllisTAA> jhass: omfg how does yours work and mine doesnt. thank you so much for taking the time to help me out, i’m going to go read over your code and try to learn something
timmac has joined #ruby
<jhass> I kept it simple
<EllisTAA> what do you mean
timmac has left #ruby [#ruby]
<jhass> like not messing around with instance variables if there's zero need or extracting stuff that's a single line I'm repeating nowhere into a method
nikhgupta has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
krz has quit [Ping timeout: 276 seconds]
<EllisTAA> hmm ok cool im going to study this. thanks again
adac has quit [Ping timeout: 276 seconds]
mister_solo has joined #ruby
someword has quit [Quit: Leaving.]
blueOxigen has quit [Ping timeout: 264 seconds]
weaksauce has joined #ruby
sdothum has joined #ruby
axsuul has quit [Ping timeout: 246 seconds]
startupality has quit [Quit: startupality]
startupality has joined #ruby
<flughafen_> is there something wrong with this statement? if line.include? 'Scenario' && ! line.include? '#'
_seanc_ has joined #ruby
jume has left #ruby [#ruby]
<jhass> flughafen_: if you meant to do line.include?('Scenario' && !line.include?('#')), no ;P
<flughafen_> jhass: i totally meant to do that
<flughafen_> i was just testing you ;)
<jhass> cool
<flughafen_> of course you passed, since you're jhass
j4cknewt has quit [Remote host closed the connection]
<flughafen_> i think i read in the styleguide that you should always use () with functions?
aryaching has joined #ruby
<jhass> some say so, some say so
<jhass> I tend to leave them off where I can
<jhass> that's simply a case where you can't
lavros has quit [Ping timeout: 246 seconds]
bluOxigen has joined #ruby
<flughafen_> ok, that syntax looks weird.
francois_ has joined #ruby
axsuul has joined #ruby
<jhass> confused yet? line.include? 'Scenario' and !line.include? '#' would do what you intended
lavros has joined #ruby
<Vendo> line.include?('Scenario' && !line.include?('#'))
<Vendo> lol
<flughafen_> i searched and theyh said always use && ha.
<atmosx> flughafen_: to me that syntax is confusing to read, although I understand what you're up to.
speaking1ode has quit [Ping timeout: 256 seconds]
<Vendo> flughafen_: In that case, you should use and, not &&
<jhass> flughafen_: I agree, add parens instead of using and
<Vendo> flughafen_: You have to differ between control flow and boolean checks.
startupality has quit [Client Quit]
<flughafen_> well, it was weird that it didn't work with if (check1 && !check2)
<jhass> control flow via operator shortcuit is meh, hence I never use and and or
hakunin has joined #ruby
<Vendo> not a true Rubyist.
<jhass> lol
simplyianm has joined #ruby
<atmosx> we should ban him
<Vendo> ^^
<jhass> as if you had the authority to define that
<flughafen_> me? ;)
<jhass> na, Vendo
<flughafen_> oh
rbennacer has quit [Remote host closed the connection]
<flughafen_> yeah, ok, let's ban him ;)
EllisTAA has quit [Quit: EllisTAA]
<Vendo> jhass: Old authors do.
codecop has joined #ruby
pabloh has joined #ruby
codecop_ has joined #ruby
<jhass> I'd grant Matz that privilege, maybe. But he's nice so he'll never use it
<flughafen_> thanks jhass i'll just use that then
<Vendo> flughafen_: You will find the Ruby control flow and boolean checks to differ from other languages, like C.
<jhass> flughafen_: line.include?('Scenario') && !line.include?('#') would be my preferred form
francois_ has quit [Ping timeout: 264 seconds]
nikhgupta has joined #ruby
veleno has quit [Quit: veleno]
<flughafen_> i like that better. OOOOh, that's why it was complaining because I didn't use the () and it thiniks i'm going crazy with args?
<flughafen_> jhass: that would be my preffered way
<flughafen_> the 2nd way
<jhass> uh, did you carefully read my initial response?
workmad3 has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> that's what's equivalent to leaving the parens off
<flughafen_> ok
<Vendo> They also have precedence, hence it's obvious when to use one over the other.
<jhass> though the and variant is equivalent to the latter because the precedence rules for && and and differ (which is there only real difference)
simplyianm has quit [Remote host closed the connection]
Rickmasta has joined #ruby
<Vendo> different precedence*
<jhass> *their
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
axsuul has quit [Remote host closed the connection]
simplyianm has joined #ruby
dagda1 has joined #ruby
axsuul has joined #ruby
endash has joined #ruby
blueOxigen has joined #ruby
f3lp has quit [Ping timeout: 246 seconds]
<atmosx> jhass: what does the keyword next mean under rescue? https://gist.github.com/ellismarte/ff4da421a7f2fb2a1c9b#file-pp-rb-L43
senayar has joined #ruby
Rollabunna has quit [Remote host closed the connection]
<atmosx> go to next rescue clause?
<jhass> atmosx: nothing, it affects the block
<jhass> next returns from the current block
<jhass> break returns from the method calling the current block
LicHacker has quit [Ping timeout: 252 seconds]
JDiPierro has quit [Remote host closed the connection]
<jhass> and return returns from the current method
rbennacer has joined #ruby
<atmosx> ah so basically it exist with an error doesn't handle anything
<jhass> I forgot to remove it, I made it useless
<atmosx> and some descriptive message hopefully.
<al2o3-cr> next is like continue
<jhass> ah no, I removed it in my version
<atmosx> al2o3-cr: and what does continue due?
Outlastsheep is now known as zz_Outlastsheep
bluOxigen has quit [Ping timeout: 240 seconds]
<atmosx> keep the flow running to the next clause?
<Vendo> atmosx: Continue without affecting any current state.
<atmosx> then why rescue?
<atmosx> ah hm.
<jhass> I think next has the mostly same usecases as continue in other language is slightly better wording ;)
<atmosx> hehe
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
Aswebb_ has quit [Read error: Connection reset by peer]
senayar has quit [Ping timeout: 256 seconds]
Aswebb_ has joined #ruby
<jhass> >> def foo; a=[]; a << yield 1; a << yield 2; a << yield 3; a end; [foo {|i| next i if i == 2; i*4; }, foo {|i| break i if i == 2; i*4; }]
<ruboto> jhass # => /tmp/execpad-13ce2e28fd4d/source-13ce2e28fd4d:2: syntax error, unexpected tINTEGER, expecting keywor ...check link for more (https://eval.in/381311)
<jhass> derp
<jhass> >> def foo; a=[]; a << yield(1); a << yield(2); a << yield(3); a end; [foo {|i| next i if i == 2; i*4; }, foo {|i| break i if i == 2; i*4; }]
<ruboto> jhass # => [[4, 2, 12], 2] (https://eval.in/381312)
mister_solo has quit [Ping timeout: 265 seconds]
zz_Outlastsheep is now known as Outlastsheep
<adaedra> > not able to get sample right the first time
adac has joined #ruby
blueOxigen has quit [Ping timeout: 240 seconds]
<adaedra> come on jhass, you were better than that.
<flughafen_> hey adaedra
<adaedra> hey flughafen_
revath has quit [Ping timeout: 256 seconds]
<jhass> fun part: not the first time I made that exact mistake, I should know yield wants parens there :/
lavros has quit [Ping timeout: 256 seconds]
bluOxigen has joined #ruby
m8 has joined #ruby
veleno has joined #ruby
serivichi has quit [Ping timeout: 272 seconds]
Guest6 has joined #ruby
<atmosx> don't worry, we will forgive you
lavros has joined #ruby
veinofstars has quit [Ping timeout: 245 seconds]
<flughafen_> is system() recommended for executing a console app? i want the output to show as it goes. but i don't want to the ruby code to exit like with exec()
mcclurmc has joined #ruby
nikhgupt` has joined #ruby
<jhass> it always depends on your usecase, system sounds good for what you describe
<havenwood> flughafen_: what's the command you're running? or just generally?
<atmosx> http://craphound.com/littlebrother/download/ <-- here a nice read for teenagers, computers, hackers, security, surveillance state... It's the whole package.
<flughafen_> havenwood: cucumber
<flughafen_> i'm writing a little tool to help me develop/test stuff with cucumber/capybara/phantomjs
<atmosx> flughafen_: sounds cool
simplyianm has quit [Remote host closed the connection]
iooner has quit [Ping timeout: 256 seconds]
nikhgupta has quit [Ping timeout: 264 seconds]
mcclurmc has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
chussenot has joined #ruby
nikhgupt` has quit [Ping timeout: 264 seconds]
codecop_ has quit [Quit: Išeinu]
krisquigley has joined #ruby
Soda has quit [Remote host closed the connection]
<flughafen_> thanks guys
ayonkhan has joined #ruby
<flughafen_> i'm switching from selenium/firefox to phantomjs, holy crap it's so much faster
veleno has quit [Quit: veleno]
hoddoko has quit [Read error: Connection reset by peer]
ayonkhan has quit [Client Quit]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
ayonkhan has joined #ruby
ayonkhan has quit [Client Quit]
otherj has joined #ruby
ayonkhan has joined #ruby
ayonkhan has quit [Client Quit]
krisquigley has quit [Ping timeout: 256 seconds]
jaequery has joined #ruby
mrmargolis has quit [Remote host closed the connection]
simplyianm has joined #ruby
afrianska has joined #ruby
EllisTAA has joined #ruby
<EllisTAA> if i have a user table how can i return just there name based on the condition that their id is 1. so far i have User.where(id: 1)
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
AlexRussia has joined #ruby
<jhass> .pluck(:name) (assuming activerecord which your question lacks as context)
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
platosha_ has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<EllisTAA> god damn thank yoU!
lavros has quit [Ping timeout: 245 seconds]
<EllisTAA> that worked
xxneolithicxx has joined #ruby
simplyianm has quit [Remote host closed the connection]
platosha has quit [Ping timeout: 276 seconds]
lavros has joined #ruby
<atmosx> Here is a good read about the .pluck method lol http://solnic.eu/2015/06/06/cutting-corners-or-why-rails-may-kill-ruby.html
<EllisTAA> atmosx: ty
afrianska has quit [Ping timeout: 264 seconds]
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<atmosx> EllisTAA: I'm trolling the guy goes kinda crazy over the idea of adding 'pluck' to ruby because it's used by AR.
Miphix has quit [Quit: Leaving]
chouhoulis has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
Kricir has joined #ruby
crazydiamond has joined #ruby
psy_ has quit [Ping timeout: 252 seconds]
mdz_ has joined #ruby
someword has joined #ruby
iooner has joined #ruby
ta has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
axsuul has quit [Ping timeout: 265 seconds]
alem0lars___ has joined #ruby
pontiki has joined #ruby
micmus has quit [Ping timeout: 246 seconds]
jalopezsilva has joined #ruby
simplyianm has joined #ruby
jalopezsilva has quit [Client Quit]
mdz_ has quit [Ping timeout: 264 seconds]
EllisTAA has quit [Quit: EllisTAA]
Yiota has joined #ruby
veleno has joined #ruby
EllisTAA has joined #ruby
veleno has quit [Client Quit]
<EllisTAA> so when i iterate over an array of nokogiri objects i get a join error at the end because it wants to turn them into a string … how can i get over this? i dont want to return the array …
Yiota has quit [Client Quit]
<jhass> did you follow apeiros's link?
ayonkhan has joined #ruby
<EllisTAA> yeah it said sinatra expects a string …
Yiota has joined #ruby
psy_ has joined #ruby
<jhass> does each return a string?
<EllisTAA> no it returns a stupid array
ayonkhan has quit [Client Quit]
<jhass> there you go
JDiPierro has joined #ruby
ta has quit [Ping timeout: 276 seconds]
<EllisTAA> so how do i get it to not return the array?
ayonkhan has joined #ruby
<jhass> you can't
<EllisTAA> god damnit
<jhass> however you can have your block not return an array
<EllisTAA> what do u mean
<jhass> the last expression of a block is its return value
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has joined #ruby
bmurt has joined #ruby
<EllisTAA> ok … i’m iterating over nokogiri objects trying to print one of their atttributes … but it is returning an array of objects… …how can i get it to not return an array ..
scripore has joined #ruby
scripore has quit [Max SendQ exceeded]
lavros has quit [Ping timeout: 244 seconds]
rindolf has quit [Quit: http://www.shlomifish.org/ ; Yay! I'm a llama again.]
ruv has quit [Ping timeout: 255 seconds]
<jhass> again you can't
<jhass> but you can control what the last expression of your block is
<EllisTAA> how do i do that?
<havenwood> EllisTAA: Gist the code around what your talking about?
<EllisTAA> ok
jcoe has joined #ruby
<jhass> you add an expression to your block
toretore has joined #ruby
lavros has joined #ruby
millerti has joined #ruby
<EllisTAA> actually ignore that ill fix it up real quick
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
ixti has joined #ruby
bmurt has quit [Client Quit]
Xeago has joined #ruby
ayonkhan has joined #ruby
bruno- has joined #ruby
<jhass> add a file with the _full_ error output
<EllisTAA> ok
rbennacer has quit [Remote host closed the connection]
micmus has joined #ruby
sinkensabe has quit [Remote host closed the connection]
rbennacer has joined #ruby
<jhass> all_h1s is a local variable, it's not shared with the view in sinatra
hyperjuice has joined #ruby
allcentury has quit [Ping timeout: 255 seconds]
<jhass> #<NameError: undefined local variable or method `all_h1s' for #<Sinatra::Application:0x007f860b4acb88>>
niemc2 has joined #ruby
<EllisTAA> omg that worked lol
<EllisTAA> : \
<EllisTAA> thank you
Scroff has joined #ruby
<EllisTAA> however it didn’t return anything … is my form mesed up?
<EllisTAA> nvm ill figure it out
ayonkhan has quit [Client Quit]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ox0dea has quit [Ping timeout: 252 seconds]
Cache_Money has quit [Quit: Cache_Money]
babykosh has joined #ruby
AbinoamJr has joined #ruby
symm- has joined #ruby
roa has joined #ruby
<roa> .
dgutierrez1287 has joined #ruby
sarkyniin has quit [Ping timeout: 276 seconds]
avahey has joined #ruby
diegoviola has quit [Ping timeout: 245 seconds]
qwertme has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
<jhass> ..
psy_ has quit [Ping timeout: 276 seconds]
EllisTAA has quit [Quit: EllisTAA]
hectortrope has joined #ruby
AbinoamJr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JDiPierro has quit [Remote host closed the connection]
bgmarx has joined #ruby
Ox0dea has joined #ruby
lavros has quit [Ping timeout: 255 seconds]
lavros has joined #ruby
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
<Ox0dea> Anybody care to hazard a rough guess at how much space would be required to install all the gems?
bgmarx has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 265 seconds]
EllisTAA has joined #ruby
<jhass> 1.3 WonderBytes
horsecowdog has joined #ruby
ndrei has joined #ruby
hyperjuice has quit []
<EllisTAA> i’m trying to query some stuff in sinatra, and when i write “@all_h1s = H1.where(‘content LIKE?’, ‘%#{params[:search]}%’).all params search is seen as a string instead of as a variable
AbinoamJr has joined #ruby
<shevy> Ox0dea one gem would be, 50kb on average
<shevy> so we have... less than 120.000 gems
enebo has quit [Quit: enebo]
<Ox0dea> Fewer.
haxrbyte has joined #ruby
<Ox0dea> Sorry, it was a Game of Thrones reference.
<Ox0dea> I ran `gem install $(gem search | cut - ' ' -f 1)`, and now I'm waiting for something to happen.
senayar_ has joined #ruby
<jhass> see you 2020
<Ox0dea> That would be cut -d, of course.
<Ox0dea> I think my shell's probably going to complain the lenght of the argument list.
<Ox0dea> *length
<jhass> mmh
<jhass> I think the number was quite high
<jhass> individual argument size is quite low though
<EllisTAA> can anyone tell me why this line isn’t interploating foo? https://gist.github.com/ellismarte/ff4da421a7f2fb2a1c9b#file-error-txt-L8
<jhass> because single quotes don't interpolate
doertedev has quit [Ping timeout: 272 seconds]
simplyianm has quit [Remote host closed the connection]
<EllisTAA> thanks
<jhass> oh, and that weird percent literal there doesn't either
<jhass> what's up with that?
<jhass> does that even parse?
senayar has quit [Ping timeout: 272 seconds]
<atmosx> jhass: I don't think so
<EllisTAA> no that was a typo
<atmosx> lol
<atmosx> EllisTAA: are you getting paid? :-P
<jhass> pretty hard typo
<EllisTAA> lol
<EllisTAA> no not paid, im a student
wildroman2 has quit [Remote host closed the connection]
<jhass> do you have a cat?
roa has quit [Changing host]
roa has joined #ruby
<atmosx> EllisTAA: for a moment I was about to switch carrier
j4cknewt has joined #ruby
flughafe1 has joined #ruby
<EllisTAA> ouch
<EllisTAA> i have feelings
<Ox0dea> >> %/#{?a+?b}/
<ruboto> Ox0dea # => "ab" (https://eval.in/381332)
<atmosx> EllisTAA: j/k
ayonkhan has joined #ruby
ayonkhan has quit [Client Quit]
iamninja has quit [Ping timeout: 256 seconds]
ayonkhan has joined #ruby
erts has quit [Ping timeout: 245 seconds]
blackmesa has joined #ruby
flughafen_ has quit [Ping timeout: 276 seconds]
rkazak has left #ruby [#ruby]
rkazak has joined #ruby
yeticry has quit [Ping timeout: 265 seconds]
krz has joined #ruby
yeticry has joined #ruby
RegulationD has joined #ruby
<flughafe1> night atmosx adaedra jhass , i'll be back tomorrow when i get to work
Jackneill has quit [Read error: Connection reset by peer]
<atmosx> night :-)
<atmosx> sleep tight!
ayonkhan has quit []
borodin has quit [Quit: Textual IRC Client: www.textualapp.com]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<existensil> >> ?a
allcentury has joined #ruby
<ruboto> existensil # => "a" (https://eval.in/381333)
<existensil> what is that?
lavros has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 264 seconds]
lavros has joined #ruby
<mozzarella> >> ?a == 'a'
<ruboto> mozzarella # => true (https://eval.in/381334)
<Ox0dea> Ancient character literal syntax.
preller_ has joined #ruby
<mozzarella> ancient?
<jhass> 18>> ?a
<ruboto> jhass # => 97 (https://eval.in/381335)
_ht has quit [Quit: Konversation terminated!]
<havenwood> 19>> ?a
<ruboto> havenwood # => "a" (https://eval.in/381336)
<jhass> was useful back then
Xeago has quit [Remote host closed the connection]
<jhass> not anymore
<Ox0dea> It's still good for golf. :)
<jhass> 18>> "aaa"[0] == ?a
<ruboto> jhass # => true (https://eval.in/381337)
<Ox0dea> That equality still holds, of course.
qwertme has joined #ruby
<Ox0dea> And String has #bytes, so nothing really lost.
<havenwood> >> "aaa".chr == ?a
<ruboto> havenwood # => true (https://eval.in/381338)
<adaedra> 100% tests passing, 100% code coverage, guess it's time for doc
<jhass> 18>> "aaa"[0] == 'a'
<ruboto> jhass # => false (https://eval.in/381339)
borodin has joined #ruby
<jhass> that's what changed though
<jhass> which is why it was useful back then
<Ox0dea> >> '%c' % 'ab'
<ruboto> Ox0dea # => %c requires a character (ArgumentError) ...check link for more (https://eval.in/381340)
alem0lars__ has joined #ruby
<Ox0dea> I think that ArgumentError should go away.
alem0lars__ has quit [Remote host closed the connection]
<Ox0dea> It's the last indication that Ruby makes a distinction between characters and strings.
alem0lars___ has quit [Quit: Leaving]
<Ox0dea> Feels like a leaked abstraction to me.
k3asd` has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
Yiota has joined #ruby
EllisTAA has joined #ruby
wildroman2 has joined #ruby
lavros has quit [Quit: leaving]
iamninja has joined #ruby
commondream has joined #ruby
erts has joined #ruby
erts has quit [Changing host]
erts has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.2]
Aswebb__ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Xeago has joined #ruby
allcentury has quit [Ping timeout: 245 seconds]
flughafe1 has quit [Ping timeout: 265 seconds]
blue_deref has joined #ruby
someword has quit [Quit: Leaving.]
ta has joined #ruby
Agoldfish has joined #ruby
AbinoamJr has quit [Read error: Connection reset by peer]
bin_005 has joined #ruby
Aswebb_ has quit [Ping timeout: 272 seconds]
francois_ has joined #ruby
commondream has quit [Ping timeout: 265 seconds]
mfranzwa has joined #ruby
djbkd_ has joined #ruby
JamesDH has joined #ruby
ta has quit [Ping timeout: 276 seconds]
francois_ has quit [Ping timeout: 264 seconds]
nwmcsween has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MasterPiece has joined #ruby
JamesDH has quit [Client Quit]
EllisTAA has quit [Quit: EllisTAA]
yfeldblum has joined #ruby
sinkensabe has joined #ruby
JamesDH has joined #ruby
micmus has quit [Ping timeout: 245 seconds]
fsvehla has quit [Quit: fsvehla]
sinkensabe has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
Aswebb__ has quit []
senayar_ has quit [Remote host closed the connection]
TheHodge has joined #ruby
postmodern has joined #ruby
rbennacer has quit [Remote host closed the connection]
endash has quit [Quit: endash]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
sinkensabe has joined #ruby
JamesDH has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> isn't that the amount of arguments given?
wildroman2 has quit [Remote host closed the connection]
grzywacz has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Rollabunna has joined #ruby
dagda1 has quit [Ping timeout: 264 seconds]
hardlin3r has quit [Ping timeout: 264 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
sarkyniin has joined #ruby
dagda1 has joined #ruby
krisquigley has joined #ruby
zotherstupidguy has quit [Ping timeout: 240 seconds]
Rollabunna has quit [Ping timeout: 265 seconds]
zotherstupidguy has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
dagda1 has quit [Client Quit]
<Ox0dea> >> ['ab'.ord, 'ab'.chr]
<ruboto> Ox0dea # => [97, "a"] (https://eval.in/381342)
micmus has joined #ruby
<Ox0dea> shevy: Given the above, I would think '%c' % 'ab' ought to just be 'a'.
mrmargolis has joined #ruby
krisquigley has quit [Ping timeout: 252 seconds]
<apeiros> >> "%d" % "hi"
<ruboto> apeiros # => invalid value for Integer(): "hi" (ArgumentError) ...check link for more (https://eval.in/381343)
<apeiros> it's consistent with other printf substitutions
<Ox0dea> But it's inconsistent with what "character" means anywhere else.
<apeiros> or well, it's at least with that single one I just checked :)
tomphp has quit [Read error: Connection reset by peer]
<apeiros> not really. both methods state that they refer to the first character in the string
dagda1 has joined #ruby
tomphp_ has joined #ruby
mcclurmc has joined #ruby
gluten_hell_ has joined #ruby
<Ox0dea> String#ord's current documentation actually says that it returns the ordinal of "a one-character string".
<apeiros> I would have found it useful if both accepted an index argument
rbennacer has joined #ruby
maletor has joined #ruby
<apeiros> oh, right, I'm looking at "from gem mail-2.6.3" - seems like I haven't generated core docs here yet…
psy_ has joined #ruby
platosha_ has quit [Ping timeout: 244 seconds]
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
platosha_ has joined #ruby
<apeiros> in that case - that should be documented appropriately :)
gianlucadv has joined #ruby
<Ox0dea> Why not just fail with an ArgumentError for strings of size greater than 1?
<Ox0dea> In order to be consistent with '%c'. :P
mrmargolis has quit [Ping timeout: 244 seconds]
<apeiros> I'd again still prefer an index arg
<Ox0dea> I'm not sure how you mean.
allcentury has joined #ruby
<apeiros> "az".ord(1) # => 122
<apeiros> defaulting to 0
Musashi007 has joined #ruby
<Ox0dea> But Ruby strings can contain embedded NULs.
<apeiros> so?
<Ox0dea> Defaulting to nil would be more sensibl.
<Ox0dea> +e
<apeiros> no?
JimBurns83 has joined #ruby
mcclurmc has quit [Ping timeout: 265 seconds]
<apeiros> defaulting to nil would make no sense
horsecowdog has quit [Remote host closed the connection]
<Ox0dea> Ascribing an ordinal value to a nonexistent character seems pretty silly.
<apeiros> I think you're getting something wrong there…
<Ox0dea> You'd want String#ord to return the ordinal value of the nth character, right?
<Ox0dea> Oh!
<apeiros> an index param, as in "give me the ordinal of the character at the given index"
<Ox0dea> Derp.
<apeiros> herp :-p
<Ox0dea> Yeah, I gotcha. That was bad.
<apeiros> but right now it takes an argument for the encoding
j_mcnally has joined #ruby
<Ox0dea> No, String#ord doesn't take any arguments.
<apeiros> oh wait, chr takes the encoding arg
phat4life has joined #ruby
<apeiros> ok, so ord(index=0) would even be backwards compatible
acke has quit [Remote host closed the connection]
<Ox0dea> It seems like a reasonable enough change, but then why not apply the same reason to '%c'?
<Ox0dea> *reasoning
perturbation has joined #ruby
<apeiros> IMO the reasoning is that printf doesn't coerce. or doesn't seem to at least (I really only probed %d)
horsecowdog has joined #ruby
Musashi007 has quit [Quit: Musashi007]
bronson has joined #ruby
<apeiros> (nb: just trying to figure the reasoning - it's not my own)
<Ox0dea> Ruby doesn't have a character type/class.
failshell has joined #ruby
<apeiros> that's not really of relevance for that reasoning
<apeiros> the reasoning says "if you use %c, you want a single character, if you pass in something else, you did so in error and I tell you"
centrx has joined #ruby
centrx has quit [Remote host closed the connection]
<apeiros> but it's relatively arbitrary
<apeiros> could raise with "%d" % "10" too, but that it will coerce…
centrx has joined #ruby
tomphp has joined #ruby
tomphp_ has quit [Read error: Connection reset by peer]
<Ox0dea> >> '%c' % [97, 98]
<ruboto> Ox0dea # => "a" (https://eval.in/381344)
<Ox0dea> The defense rests.
<apeiros> % with an array is to fill multiple %'s ;-)
<al2o3-cr> Ox0dea: made a little script to calculate all bytes for all remote gems :)
<apeiros> i.e. what you show is that String% will not care if you have superfluous arguments
<Ox0dea> al2o3-cr: Please share.
bronson has quit [Ping timeout: 252 seconds]
<apeiros> >> '%c%c' % [97, 98]
<al2o3-cr> ok one sec
<ruboto> apeiros # => "ab" (https://eval.in/381345)
<apeiros> >> '%p --- %s' % ["97", "98"]
<ruboto> apeiros # => "\"97\" --- 98" (https://eval.in/381346)
<apeiros> counter-defense rests ;-)
failshell has quit [Ping timeout: 265 seconds]
pragmatism has joined #ruby
<Ox0dea> al2o3-cr: Whoops, I took that to mean you'd written and run such a script and had the data.
<al2o3-cr> oh, nah
<al2o3-cr> it's running now, i'll report back
<Ox0dea> Heh, well, thank you for taking one for the team.
bin_005_f has joined #ruby
Akagi201 has quit [Read error: Connection timed out]
<al2o3-cr> np :)
<Ox0dea> I'm thinking it's likely somewhere in the 5-10GB range.
bin_005 has quit [Ping timeout: 256 seconds]
<shevy> 10GB of what
<Ox0dea> Ice cream.
zotherstupidguy has quit [Ping timeout: 256 seconds]
<Ox0dea> The total storage space required to have all the gems installed.
<shevy> cool
<shevy> that should be submitted to the rubygems team
<shevy> so that they can include that into a new API call :-)
<al2o3-cr> we'll see
dellavg_ has joined #ruby
Akagi201 has joined #ruby
zotherstupidguy has joined #ruby
dellavg_ has quit [Client Quit]
ntln has quit [Quit: No Ping reply in 180 seconds.]
RazorX_ has quit [Ping timeout: 276 seconds]
<Ox0dea> I might as well start installing, I suppose.
RazorX has joined #ruby
arescorpio has joined #ruby
<Ox0dea> shevy: From whence comes your 50kb estimate?
axsuul has joined #ruby
pragmatism has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> s/From w/W/
grzywacz has quit [Ping timeout: 244 seconds]
aapole has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
<al2o3-cr> hehe no way bytes.rb:50:in `+': nil can't be coerced into Fixnum (TypeError) what a plonker
<shevy> Ox0dea well, most gems are small like 12kb
<shevy> and then there are some bigger ones like activerecord, shoes, passenger
alexandra has joined #ruby
e1nh4nd3r has quit [Quit: Leaving.]
Scroff has quit [Remote host closed the connection]
<Ox0dea> shevy: To clarify, I meant installed size after unpacking.
ta has joined #ruby
allomov has quit [Remote host closed the connection]
ntln has joined #ruby
Musashi007 has joined #ruby
<shevy> aha
Xeago has quit [Remote host closed the connection]
al2o3-cr has quit [Remote host closed the connection]
<Ox0dea> From a dirty place, expr $(du -bs | cut -f1) / $(ls | wc -l) says the average gem is 3.5MB.
al2o3-cr has joined #ruby
<shevy> hmmm in ruby cgi code I see this here:
<shevy> attr_reader('secure')
startupality has joined #ruby
<shevy> but that is the same as attr_reader :secure right?
<shevy> Ox0dea cool, that's quite huge
<Ox0dea> Looks like I'll not be installing all the gems locally after all. :/
swgillespie has joined #ruby
codecop has quit [Remote host closed the connection]
EllisTAA has joined #ruby
ta has quit [Ping timeout: 276 seconds]
<shevy> wimp!
alexandra has quit [Ping timeout: 240 seconds]
<Ox0dea> Ain't nobody got 3.5TB for the purposes of pointless experimentation.
horsecowdog has quit [Remote host closed the connection]
horsecowdog has joined #ruby
Usaur has joined #ruby
ahmadsoe has quit [Quit: Connection closed for inactivity]
<al2o3-cr> it come back with 700025595 bytes not unpacked :)
hardlin3r has joined #ruby
<Ox0dea> al2o3-cr: The gzipped tars, right?
<al2o3-cr> Ox0dea: yeah
EllisTAA has quit [Quit: EllisTAA]
<al2o3-cr> hrm .gem
Musashi007 has quit [Quit: Musashi007]
<shevy> 7TB?
<Ox0dea> Nah, that's just 700MB.
<al2o3-cr> that's under a gig
<shevy> ah
<shevy> that proves it
<shevy> ruby is small :>
startupality has quit [Quit: startupality]
<Ox0dea> But .gems are tar archives containing several gzip archives.
<Ox0dea> So that 700MB would feckin' balloon.
<al2o3-cr> oh yeah
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> al2o3-cr: You didn't happen to pull all those .gems down, did you?
Spami has joined #ruby
benanne has joined #ruby
<al2o3-cr> sorry, no
<al2o3-cr> why?
Ox0dea has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
Ox0dea has joined #ruby
towski_ has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
erts has quit [Remote host closed the connection]
<shevy> now I understand why bots download ruby gems
<Ox0dea> al2o3-cr: I thought I might be able to avoid hitting rubygems.org 100k+ times.
<shevy> we have two of them right here!
<Ox0dea> shevy: For science!
JDiPierro has joined #ruby
* al2o3-cr thinks he better hide from the internet police
skade has joined #ruby
tomphp_ has joined #ruby
tomphp has quit [Ping timeout: 264 seconds]
LJT has quit [Quit: Sleeping...]
<adaedra> *woop* *woop*
<adaedra> tis is te polis
ddarkpassenger has joined #ruby
rbennacer has quit [Remote host closed the connection]
<al2o3-cr> :D
vickleton has quit [Quit: Ex-Chat]
houhoulis has joined #ruby
<shevy> le french police hunting for le baguette thief
allcentury has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
tomphp_ has quit [Remote host closed the connection]
jerius has joined #ruby
tomphp has joined #ruby
<al2o3-cr> Je vois les policiers français au coin
<adaedra> Well, I'd be happy if baguette thieves were the only problem for le french police
LicHacker has joined #ruby
<adaedra> al2o3-cr: les poulets
baweaver has joined #ruby
<al2o3-cr> :)
bluOxigen has quit [Ping timeout: 256 seconds]
jaequery has joined #ruby
rbennacer has joined #ruby
<shevy> :D
shazaum has joined #ruby
FernandoBasso has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
dented42 has joined #ruby
tomphp has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
dented42 has left #ruby [#ruby]
mrmargolis has joined #ruby
ayonkhan has joined #ruby
mandarinkin has quit [Quit: Leaving]
maletor has joined #ruby
<shevy> adaedra writing about food makes me hungry
RegulationD has joined #ruby
Xeago has quit [Remote host closed the connection]
<adaedra> then go eat
hedgecore has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor has quit [Client Quit]
rubie has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 256 seconds]
davedev24_ has joined #ruby
jerius has quit [Quit: /part]
<shevy> ruby-cgi is confusing, it has:
<shevy> STDERR.print( %|(offline mode: enter name=value pairs on standard input)\n| )
<shevy> why did he use %|| there ?
AlphaAtom has joined #ruby
<al2o3-cr> shevy: its a delimiter
chouhoulis has joined #ruby
hector__ has quit [Quit: Leaving]
<shevy> what means /foo/n the n part? newline?
rubie has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
Musashi007 has joined #ruby
millerti has joined #ruby
<al2o3-cr> where?
<Ox0dea> There are 66 (!) different delimiters you can use.
perturbation has quit [Quit: Leaving]
<Ox0dea> He couldn't use () because he needs those characters in the actual string.
Pupeno_ has joined #ruby
acke has joined #ruby
allcentury has joined #ruby
<Ox0dea> %[] and %{} are more common, but I've seen %|| now and then.
<al2o3-cr> can even use whitespace
Guest6 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
startupality has joined #ruby
AndyBotwin has joined #ruby
<Ox0dea> shevy: %() strings permit escape sequences, whereas %q() ones do not; since he's using the former, \n is just a literal newline here.
<shevy> al2o3-cr the code I am looking at is this here:
<shevy> if words.find {|x| /=/n.match(x) }
patrick_star has quit [Ping timeout: 276 seconds]
chouhoulis has quit [Ping timeout: 272 seconds]
<Ox0dea> That n is a regular expression flag/modifier.
<al2o3-cr> yeah, like i
Pupeno has quit [Ping timeout: 256 seconds]
<Ox0dea> al2o3-cr: I made my .gem fetcher a shell one-liner, and I thought I might be able to just feed it to GNU parallel, but the jq utility seems to be blocking. :(
bin_005_f has quit [Remote host closed the connection]
<al2o3-cr> :(
bin_005_f has joined #ruby
CloCkWeRX has joined #ruby
kobain has joined #ruby
acke has quit [Ping timeout: 265 seconds]
decoponyo has joined #ruby
<al2o3-cr> shevy: /foo/n # that n means ASCII-8BIT encoding according to the docs
decoponio has quit [Ping timeout: 240 seconds]
otherj has quit [Quit: .]
chussenot has quit [Quit: chussenot]
<shevy> ah
<shevy> so I guess that must be a more recent change
<shevy> since that was not necessary in ruby 1.8.x era right?
<centrx> What year is it
<al2o3-cr> that's from the 1.9.3 docs by the way
<Ox0dea> centrx: Heh.
adac has quit [Ping timeout: 252 seconds]
rbennacer has quit []
<shevy> yeah, looks as if a lot of code had to happen due to that transition
quazimodo has quit [Ping timeout: 252 seconds]
fsvehla has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
<Ox0dea> Trunk's doc/regexp.rdoc says that "Regular expressions are assumed to use the source encoding", but this doesn't seem to be the case.
<Ox0dea> >> [''.encoding, //.encoding]
<ruboto> Ox0dea # => [#<Encoding:UTF-8>, #<Encoding:US-ASCII>] (https://eval.in/381361)
<shevy> hmm
<Ox0dea> This language is too big. Let's go shopping.
benanne has quit [Quit: kbai]
<al2o3-cr> :)
micmus has quit [Ping timeout: 246 seconds]
<al2o3-cr> >> [//u.encoding, //e.encoding, //s.encoding, //n.encoding] # all possible encodings
<ruboto> al2o3-cr # => [#<Encoding:UTF-8>, #<Encoding:EUC-JP>, #<Encoding:Windows-31J>, #<Encoding:US-ASCII>] (https://eval.in/381365)
skippy_77 has joined #ruby
commondream has joined #ruby
meph has joined #ruby
m8 has quit [Quit: Sto andando via]
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
<al2o3-cr> need to reboot
al2o3-cr has quit [Quit: the quieter you become, the more you are able to hear]
MasterPiece has quit [Quit: Leaving]
djbkd_ has quit []
Xiti has quit [Quit: Xiti]
ta has joined #ruby
mfranzwa has quit [Quit: mfranzwa]
<skippy_77> hey folks; I'm looking at a memory leak in google/protobuf, and it seems as though it may be related to a patch that was put into string.c as a part of 2.2.0-preview2. The behavior stops leaking memory in 2.3.0-dev. I'm curious if this is a core ruby issue, or if the google/protobuf lib is using rb_str_cat incorrectly. https://github.com/google/protobuf/issues/474
mfranzwa has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
commondream has quit [Ping timeout: 256 seconds]
axsuul has quit [Ping timeout: 265 seconds]
al2o3-cr has joined #ruby
bin_005_f has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 252 seconds]
mfranzwa has quit [Client Quit]
pengin has joined #ruby
gluten_hell_ has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 256 seconds]
<al2o3-cr> hehe, cool nicking that one :)
dgutierrez1287 has quit [Remote host closed the connection]
<Ox0dea> "Only enough file handles to run 252 jobs in parallel."
Pupeno_ has quit [Quit: Leaving...]
<Ox0dea> How best to increase this paltry figure?
<bougyman> what os?
<Ox0dea> Arch.
krisquigley has joined #ruby
<Ox0dea> I answered more specifically than Linux in case that would assist you in assisting me. :)
lkba has joined #ruby
volty has joined #ruby
<bougyman> what's ulimit tell you?
<Ox0dea> unlimited
niemc2 has quit [Ping timeout: 244 seconds]
<bougyman> cat /proc/sys/fs/file-max
<Ox0dea> That's the global maximum, not the maximum a single process is allowed to have open.
towski_ has quit [Remote host closed the connection]
<bougyman> or cat /proc/sys/fs/file-nr
pengin has quit [Remote host closed the connection]
<bougyman> and ulimit -Hn, ulimit -Sn ?
<bougyman> I assume you've seen all this tuff.
<Ox0dea> I have, and all the values are substantially higher than 252.
<bougyman> well each of those processes has a few fds.
<bougyman> is what i'm guessing
<bougyman> I can't tell how many, of course.
<bougyman> stdin and stdout and stderr are fds, afaik.
qwertme has joined #ruby
Guest6 has joined #ruby
krisquigley has quit [Ping timeout: 276 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
platosha_ has quit [Ping timeout: 255 seconds]
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
<Ox0dea> Ah, that makes sense.
<Ox0dea> I wonder if it's possible to tell parallel to repurpose the unused fds.
<Aeyrix> sysctl -w fs.file-max=10000
<Ox0dea> Aeyrix: Why, it's already at 197711?
* Aeyrix greps logs for where you told me what the value is.
Rollabunna has joined #ruby
towski_ has joined #ruby
platosha has joined #ruby
Limix has joined #ruby
<Ox0dea> I reckon bougyman figured it correctly. My soft limit is 1024, and 252 is suspiciously close to a quarter of that, so it seems the processes parallel spawns contribute their stdin, stdout, and stderr handles to the total.
yfeldblum has joined #ruby
<Ox0dea> Regrettable, but it makes sense enough.
apoplexy has joined #ruby
<apoplexy> hi what is better ruby or python, i need the answer immediately
<apoplexy> anddd go
<Ox0dea> Python.
willharrison-pho has quit [Quit: Connection closed for inactivity]
<Aeyrix> Please hand in your computer driving license and cancel your internet service.
<apoplexy> hahaha im just kidding :D
<Aeyrix> :D
<Ox0dea> apoplexy: Now that you've been given a definitive answer, don't you think you're in the wrong channel?
<Aeyrix> I wasn't kidding about the license. That exists, weirdly enough.
<Aeyrix> It's a European thing!
<centrx> I have a Master's degree in Advanced Word Processing
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> centrx: Wanna race?
Musashi007 has quit [Quit: Musashi007]
Vendo has quit [Quit: Page closed]
<centrx> >> 1.upto(Float::INFINITY).to_a
<ruboto> centrx # => (https://eval.in/381367)
Rollabunna has quit [Ping timeout: 276 seconds]
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> What happened there?
<Aeyrix> It terminated because it took too long to complete.
<centrx> It means I win
<Ox0dea> >> '%9999999d' % 1
<ruboto> Ox0dea, I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
sandstrom has quit [Quit: My computer has gone to sleep.]
<Ox0dea> Do I also win?
amclain has joined #ruby
<volty> that «computer licence» has nothing to do with europe, it's just crap publicity
<Aeyrix> Ok
<Ox0dea> volty: The people with Xs in their nicks were speaking, thank you very much.
<centrx> >> %w(win win chick din).map { |x| x + "nar" }
<ruboto> centrx # => ["winnar", "winnar", "chicknar", "dinnar"] (https://eval.in/381369)
heftig has quit [Read error: Connection reset by peer]
<Aeyrix> Lmao
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
heftig_ has joined #ruby
pragmatism has joined #ruby
<Aeyrix> Chicknar
bruno-_ has joined #ruby
Agoldfish378 has joined #ruby
<Ox0dea> So great.
Guest6 has quit [Read error: Connection reset by peer]
blue_deref has quit [Quit: bbn]
jaequery has joined #ruby
<apoplexy> Ox0dea: i always go with the underdog so you just got yourself a new teammate
jaequery has quit [Client Quit]
<apoplexy> now, how do we make Ruby better than Python, im willing to work hard, whos got ideas
<Aeyrix> Import system!.
failshell has joined #ruby
<Ox0dea> Named unicode literals!
bruno- has quit [Ping timeout: 276 seconds]
<volty> mabye ruby became web-centric. go with qtruby, for example(too few ppl use it). as fro the «better», ruby is already better
<volty> (I meant too web-centric)
<Aeyrix> What about Elixir
Agoldfish has quit [Ping timeout: 276 seconds]
aapole has quit [Ping timeout: 276 seconds]
<Aeyrix> Or Crystal
<Aeyrix> Or Haskell
<bougyman> elixir gives you an erlang vm to manage your processes.
<bougyman> if you like that, sure.
<Aeyrix> Hah.
<bougyman> I'm fine with a unix vm (or bare metal) managing my processes.
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<volty> the ruby lang is better, while the python community is more productive — more than it seems, taken into account the weirdness of that language, oo-monkey imitation comprised
ogpastaling has joined #ruby
<Aeyrix> Ye.
<Aeyrix> That's my opinion of it overall.
ogpastaling has quit [Remote host closed the connection]
ogpastaling has joined #ruby
failshell has quit [Ping timeout: 276 seconds]
centrx has quit [Quit: Shutting down, Please wait...]
<shevy> python has the better docs
<volty> by «more productive» I meant exactly that —- docs + interfacing with other langs + libs
serivich has joined #ruby
<volty> maybe «more freedom» translates in «more play» — so they are less free, but more serious
havenwood has quit [Ping timeout: 272 seconds]
<shevy> well, ruby is actually a pretty complex language
Channel6 has joined #ruby
<volty> to understand this (cause) you should try haskell (e.g.) — they play, play, play, fancy constructs, but nothing worth in the end
ogpastaling has quit [Ping timeout: 272 seconds]
<shevy> you have hash-arguments, normal arguments, keywords arguments, procs/lambda, and block arguments
heftig_ is now known as heftig
ogpastaling has joined #ruby
pragmatism has quit [Quit: Textual IRC Client: www.textualapp.com]
<volty> never mind, the answer lies in the typology of the users — python has still «academic» followers
<shevy> volty php has got one focus right back then, which was the web
skade has quit [Quit: Computer has gone to sleep.]
<shevy> there are lots of aging perl users in the scientific community
<shevy> you'd have to give them compelling reasons to want to switch
towski_ has quit [Remote host closed the connection]
<shevy> now they have perl 6 :>
<volty> they (grand-perlers) are too old to change habits :)
<shevy> yeah
<volty> maybe splitting the ruby community could do well, in the end // could be after forking
<Ox0dea> volty: Do you write code?
<volty> now I need to embed ruby in qt application
<shevy> splitting is a bad idea, you fragment and end up with less people who use a given language
<volty> Ox0dea: something :)
serivich has quit [Ping timeout: 255 seconds]
<volty> already wrote some extensions time ago, but now need a complete solution —- for migration purposes, as well as mixed development
k3asd` has quit [Ping timeout: 250 seconds]
<volty> but do not know what to choose - manually, rice, something else? can advice (except after googling, of course)?
serivich has joined #ruby
<shevy> whatever you do
<shevy> provide working examples
attlasbot has joined #ruby
<volty> what do you mean by «working examples» ?
blackmesa has quit [Ping timeout: 255 seconds]
tomphp has joined #ruby
dorei has joined #ruby
<volty> I can continue with an (abstract) example if some of you have some experience with extensions & embedding // now I use qtruby, could use a qt c++ written class from with ruby (and in run-time located by qtruby library routine), now I just want to start from qt c++ side and call ruby. that's all
<Ox0dea> You can call Ruby from C++ just fine.
<Ox0dea> Ruby's C API is actually not terrible to work with.
<Ox0dea> It's significantly more high-level than it might have been.
pwnz0r has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<volty> yes, thx. I was reading Rice. So my question is: should I go my way, or should I go with Rice. Because having something ready is nice, but if it isn't complete (satisfying) it would be time (and nerves) losing.
nofxx has joined #ruby
ogpastaling has quit [Remote host closed the connection]
dseitz has joined #ruby
dgutierrez1287 has joined #ruby
GnuYawk has joined #ruby
Akagi201 has quit [Remote host closed the connection]
Akagi201 has joined #ruby
MatthewsFace has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheHodge has quit [Quit: Connection closed for inactivity]
<Aeyrix> What are you doing?
Musashi007 has joined #ruby
<Aeyrix> Project wise.
roolo has quit [Remote host closed the connection]
<volty> various gui apps. one of which is my own editor. the last one being a chess interface - just for the sake of trying to freely mix qt c++ classes and qtruby classes
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fsvehla has quit [Quit: fsvehla]
pwnz0r has quit [Remote host closed the connection]
GnuYawk has quit [Ping timeout: 252 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwnz0r has joined #ruby
ixti has quit [Ping timeout: 276 seconds]
commondream has joined #ruby
<volty> you can't just deploy an app on (only) qtruby because isn't (that) stable. I guess (from what I see) that PyQt is much more stable, but I don't like python
qwertme has joined #ruby
ta has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j4cknewt has joined #ruby
havenwood has joined #ruby
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
Yiota has joined #ruby
<nofxx> volty, played with electron? or you really like qt
workmad3 has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
pwnz0r has quit [Ping timeout: 276 seconds]
<volty> nofxx: 1. I like qt 2. the first also because once you learn (it takes time) a lib you are bound to like it :) // but going to see what it is, thx
zotherstupidguy has quit [Ping timeout: 256 seconds]
zotherstupidguy has joined #ruby
chouhoulis has joined #ruby
ta has quit [Ping timeout: 276 seconds]
<volty> I see only electron ide. I can't see any gui toolkit there
<volty> s/see/find/
workmad3 has quit [Ping timeout: 252 seconds]
bkxd has joined #ruby
<volty> found, sorry.
djbkd has quit [Quit: Leaving...]
Limix has quit [Quit: Limix]
gianlucadv has quit [Ping timeout: 264 seconds]
chouhoulis has quit [Ping timeout: 276 seconds]
blackmesa has joined #ruby
blackmesa has quit [Client Quit]
hyperjuice has joined #ruby
commondream has quit []
startupality has quit [Quit: startupality]
scripore has joined #ruby
cats has quit [Ping timeout: 265 seconds]
Akagi201 has quit [Remote host closed the connection]
rubie has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 256 seconds]
Limix has joined #ruby
RegulationD has joined #ruby
DLSteve has quit [Quit: Leaving]
RegulationD has quit [Ping timeout: 246 seconds]
cats has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
j_mcnally has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CloCkWeRX1 has joined #ruby
<shevy> volty with working example I mean code that opens up a GUI :)
CloCkWeRX has quit [Ping timeout: 264 seconds]
axsuul has joined #ruby
gluten_hell_ has joined #ruby
CloCkWeRX has joined #ruby
platzhirsch has left #ruby [#ruby]
CloCkWeRX1 has quit [Ping timeout: 255 seconds]
quazimodo has joined #ruby
jphenow has joined #ruby
gluten_hell_ has quit [Ping timeout: 276 seconds]
dseitz has quit [Remote host closed the connection]
dseitz has joined #ruby
sdothum has quit [Read error: Connection reset by peer]
francois_ has joined #ruby
<volty> require 'Qt'; Qt::Application.new(ARGV); Qt::Label.new("Hi, <b><font color='red'>Shevy</font></b>").show(); $qApp.exec();
mattp__ is now known as mattp-
<shevy> LoadError: cannot load such file -- Qt
francois_ has quit [Ping timeout: 256 seconds]
sarkyniin has quit [Remote host closed the connection]
AndyBotwin has quit [Quit: Leaving]