havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<jhass> TeresaP: I don't understand the question, sorry
skweek has joined #ruby
<TeresaP> jhass let's say I'm doing this: rescue RuntimeError => e
nateberkopec has joined #ruby
<TeresaP> And under certain conditions I may decide not to raise
<TeresaP> If I continue on from there, will the thread be dead?
dr3w has quit [Ping timeout: 244 seconds]
<jhass> I'd say to not reraise the exception in a rescue is the normal thing, reraising is a lot rarer IME
<jhass> the thread will die if the exception is not handled within it
<jhass> reraising it counts as "not handling" it
djanatyn1 has joined #ruby
ruurd has quit [Ping timeout: 240 seconds]
<TeresaP> I have good reasons :)
TomPeed has joined #ruby
<TeresaP> jhass what counts as handling it then?
pipework has quit [Ping timeout: 284 seconds]
chrisseaton has quit [Ping timeout: 284 seconds]
bougyman has quit [Ping timeout: 284 seconds]
valeri_ufo has quit [Ping timeout: 284 seconds]
djanatyn has quit [Write error: Broken pipe]
<jhass> rescue'ing it
bougyman has joined #ruby
Anthony_ has joined #ruby
<jhass> without reraising it inside the rescue
pipework has joined #ruby
<TeresaP> ah ok great
<jhass> seriously, set Thread.abort_on_exception
<TeresaP> sounds like that'll work then
<baweaver> don't use raise for flow control
valeri_ufo has joined #ruby
<TeresaP> jhass I was just trying to determine if I needed to recreate the thread :)
<TeresaP> sounds like no
chrisseaton has joined #ruby
<TeresaP> Thanks!
_blizzy_ has quit [Disconnected by services]
ismaelga has joined #ruby
Anthony_ is now known as _blizzy_
djanatyn1 is now known as djanatyn
baweaver has quit [Remote host closed the connection]
roxtrongo has joined #ruby
<ismaelga> does any one know a benchmark-ips like for Node.js?
zenguy_pc has quit [Ping timeout: 246 seconds]
gennaro has joined #ruby
<Radar> ismaelga: did you google for that yet?
howdoicomputer has joined #ruby
<ismaelga> hi Rada! :) yep. I want a node.js version of it. I know this isn't the right place for it
<Ox0dea> Then GTFO?
<Ox0dea> <3
<ismaelga> But at least I know you guys know what I want :p
<Radar> ismaelga: Did you realise that there is a #node.js channel?
<Radar> This is not a directory service.
<ismaelga> also I needed one that works with Promises (thou I'm not sure if it even makes sense :s)
<Ox0dea> ismaelga: You're being quite rude.
<ismaelga> Radar: yes! And I asked there too
<Radar> ismaelga: I'm agreeing with Ox0dea here.
pawnbox has joined #ruby
<ismaelga> oh :( sorry guys
<ismaelga> I mean...
idefine has quit [Read error: Connection reset by peer]
<ismaelga> I was just trying to get some help since no one answered me on #Node.js
<Radar> If you want to ask Node questions, ask them on #Node.js
roxtrongo has quit [Ping timeout: 265 seconds]
<adaedra> Or to Google
<Radar> End of discussion.
idefine has joined #ruby
drewo has quit [Ping timeout: 260 seconds]
<ismaelga> wow. Ok. I'm sorry. Your totally right. I never though there was a problem asking it here...
sucks has joined #ruby
<ismaelga> thanks for your time. (I'm really sorry)
s2013 has joined #ruby
benlieb_ has joined #ruby
<Ox0dea> ismaelga: Following your rationale to its logical conclusion, there should just be one massive channel, because then surely *somebody* will be around to answer any given question. I suspect you can't in good conscience say that you'd prefer that state of affairs.
<havenwood> ismaelga: It's irc so it may take a while for a response. I'd suggest explaining what benchmark-ips is there as concisely as you can and then hang out a while to see if you get a bite.
pawnbox has quit [Ping timeout: 264 seconds]
quazimodo has quit [Ping timeout: 250 seconds]
<Ox0dea> Alternatively, be the change you wish to see in the world.
nlackbigger has joined #ruby
<ismaelga> Ox0dea: I agree with you 100%. I was just not thinking clearly I guess... Must be for working too long with javascript
exadeci has joined #ruby
arescorpio has joined #ruby
cirenyc has quit [Quit: Leaving...]
<ismaelga> In my mind I was seeing channels as communities, and I though it would be perfectly fine by question it here. But yeah, I can see now that doesn't make much sense
nofxx has joined #ruby
* havenwood grabs a pickfork
<ismaelga> * to question it here
<havenwood> Node? Where!? Get it!
<ismaelga> eheh
<ismaelga> <3
sucks has quit [Read error: Connection reset by peer]
zenguy_pc has joined #ruby
drig0r has quit [Ping timeout: 264 seconds]
sucks has joined #ruby
sankaber has joined #ruby
ibouvousaime_ has quit [Ping timeout: 255 seconds]
s00pcan has quit [Ping timeout: 244 seconds]
dlitvak has joined #ruby
Rickmasta has joined #ruby
NeverDie has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
rehat_ has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
cirenyc has joined #ruby
mjuszczak has joined #ruby
nlackbigger was banned on #ruby by havenwood [*!*@*178.62.241.95]
s00pcan has joined #ruby
NeverDie has quit [Max SendQ exceeded]
jamto11 has joined #ruby
allcentury has quit [Ping timeout: 276 seconds]
NeverDie has joined #ruby
allcentury has joined #ruby
NeverDie has quit [Client Quit]
<ismaelga> havenwood for a sec I though you banned me 0.0
<havenwood> ismaelga: No, certainly not! :)
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ilyes512 has joined #ruby
antoniobeyah has joined #ruby
<ismaelga> I know I sounded rude. But it's probably because I can't express me that well in english. I might sound like a robot without feelings but I'm not
hoopti has quit [Quit: Leaving]
<ismaelga> express myself?
<slash_nick> correct
Coldblackice has joined #ruby
<shevy> lol
automaton has joined #ruby
djbkd has quit [Remote host closed the connection]
arooni has joined #ruby
NeverDie has joined #ruby
jamto11 has quit [Ping timeout: 265 seconds]
dmolina1 has quit [Ping timeout: 276 seconds]
yoongkang has joined #ruby
slawrence00 has quit [Ping timeout: 255 seconds]
automaton has left #ruby ["WeeChat 1.3"]
NeverDie has quit [Client Quit]
yoongkang has quit [Ping timeout: 244 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
sucks has quit [Remote host closed the connection]
<null2> Question: How can I use a variable in an object name? eg: obj#{var} = String.new
<Ox0dea> null2: You probably don't actually want to do that.
<Ox0dea> Also, nobody says `String.new`.
<null2> I want to YAML::load a serialized object from disk and save it into an object which is the same as its filename on disk.
<Ox0dea> No. Use a Hash.
Guest21385 has quit [Quit: This computer has gone to sleep]
veduardo has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 244 seconds]
<null2> I don't understand what you mean. Link to something?
pawnbox has joined #ruby
<slash_nick> an object... you mean a variable?
<Ox0dea> null2: I suspect this isn't some constraint imposed on your code by something else, so just avoid the pain of dynamic identifier names.
<slash_nick> i want the variable name to match the file name?
pglombardo has quit []
tjohnson has joined #ruby
tvw has quit [Remote host closed the connection]
Shaz4um has quit [Quit: Leaving]
ixti has quit [Ping timeout: 260 seconds]
ledestin has joined #ruby
freerobby has joined #ruby
pawnbox has quit [Ping timeout: 255 seconds]
<EllisTAA> ?offtopic
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<Ox0dea> !cops
<Ox0dea> null2: Do you not have multiple serialized objects to load, then?
freerobby has quit [Client Quit]
Gnut has quit [Ping timeout: 240 seconds]
dfinninger has quit [Remote host closed the connection]
mdih has quit [Ping timeout: 252 seconds]
DLSteve has joined #ruby
Mia has quit [Read error: Connection reset by peer]
frem has quit [Quit: Connection closed for inactivity]
<null2> Ox0dea: I do
cdg has quit [Remote host closed the connection]
tulak has quit [Remote host closed the connection]
baweaver has joined #ruby
<jhass> EllisTAA: what exactly do you see as offtopic here?
htmldrum has joined #ruby
<EllisTAA> jhass: i was just trying to get the name of the offtopic channel
<jhass> EllisTAA: ?offtopic is for redirecting something there, in the future please just ask or use the alis service, /msg alis help
millerti has joined #ruby
<Ox0dea> null2: Then yeah, you want a Hash mapping paths to deserialized objects.
th_masv has joined #ruby
DrShoggoth has quit [Remote host closed the connection]
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
lipoqil has quit [Quit: Connection closed for inactivity]
cwong_on_irc has quit [Quit: Leaving.]
DrShoggoth has joined #ruby
<Ox0dea> Dir['foo/*'].each_with_object({}) { |file, hash| hash[file] = YAML.load_file file }
<Ox0dea> Something like that under the assumption they're all in the same directory.
yfeldblum has quit [Remote host closed the connection]
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
s2013 has joined #ruby
th_masv is now known as maxzzz
nateberkopec has quit [Quit: Leaving...]
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
quazimodo has joined #ruby
cwong_on_irc has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
mdih has joined #ruby
howdoicomputer has quit [Ping timeout: 264 seconds]
drewo has joined #ruby
kobain has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
<baweaver> #ruby-offtopic ?
haraoka has joined #ruby
cwong_on_irc has quit [Read error: Connection reset by peer]
cwong_on_irc has joined #ruby
kobain has joined #ruby
duncannz has joined #ruby
<Ox0dea> I'll be honest: I expected that to be empty.
<slash_nick> lol.. i ran into that tweet the other day
sanjayu has left #ruby ["Leaving"]
<Ox0dea> Were you speeding?
drewo has quit [Ping timeout: 272 seconds]
antoniobeyah has quit [Quit: antoniobeyah]
RegulationD has quit [Remote host closed the connection]
<slash_nick> always
<slash_nick> i got those wpm yo
roxtrongo has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
<Ox0dea> WTFs per mile.
bruce_lee has joined #ruby
freerobby has joined #ruby
<slash_nick> websearches per minute
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Quit: .]
bigkevmcd has quit [Ping timeout: 264 seconds]
roxtrongo has quit [Ping timeout: 240 seconds]
rideh- has quit [Remote host closed the connection]
mistermo_ has joined #ruby
duoi has quit [Ping timeout: 240 seconds]
gambl0re has quit [Ping timeout: 250 seconds]
Cache_Money has quit [Quit: Cache_Money]
dorei has quit []
shinnya has joined #ruby
rideh has joined #ruby
veduardo has quit [Quit: WeeChat 0.4.2]
mistermocha has quit [Ping timeout: 246 seconds]
mistermo_ has quit [Read error: Connection reset by peer]
graffix_ has joined #ruby
mistermocha has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
Arkon has joined #ruby
quarters has joined #ruby
rgtk has joined #ruby
<quarters> hello. I was wondering if rbenv can be used with linux. If not, is there a recommended alternative?
mdih has quit [Ping timeout: 252 seconds]
lemur has joined #ruby
<Ox0dea> quarters: It can, but chruby + ruby-install is better.
<havenwood> quarters: +1 chruby
karapetyan has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
<quarters> Ox0dea: sweet. Thank you. I'm guessing I can run apps that use rbenv w/no issues
griffindy has joined #ruby
<Ox0dea> quarters: No?
mistermocha has quit [Ping timeout: 246 seconds]
<quarters> b/c ruby mgrs shouldn't affect compatibility
axsuul has quit [Read error: Connection reset by peer]
<Ox0dea> If some application uses rbenv and you don't have rbenv installed...
sucks has joined #ruby
<havenwood> quarters: It's easy to point chruby to be able to see Rubies you installed with rbenv.
<quarters> nice
<quarters> thank you
<quarters> Ox0dea: because ultimately, rbenv isn't included in the gem file, which pretty much determines the app's dependencies, no?
<quarters> at least that's how I understood it
lemur has quit [Ping timeout: 240 seconds]
<Ox0dea> quarters: If rbenv is a "dependency", something has gone very wrong.
yoongkang has joined #ruby
tubulife- has quit [Ping timeout: 265 seconds]
rgtk has quit [Ping timeout: 260 seconds]
duoi has joined #ruby
<quarters> Ox0dea: that's kind of my point...it's not a dependency, so running the app on a computer that doesn't have rbenv installed shouldn't break the app
nlackbigger has quit [Quit: Page closed]
cirenyc has quit [Quit: Leaving...]
<havenwood> quarters: If you only need a single version of Ruby then you don't even need a Ruby version switcher.
wilsonc91 has joined #ruby
Arkon has quit [Quit: Leaving...]
rubie has joined #ruby
<quarters> havenwood: unfortunately(or fortunately?), I'm working on a project that uses jruby whereas I typically use ruby
<havenwood> quarters: Yeah, in development it's handy to be able to switch.
yoongkang has quit [Ping timeout: 250 seconds]
mjuszczak has quit []
drewo has joined #ruby
skweek has quit [Ping timeout: 264 seconds]
beauby has joined #ruby
allcentury has joined #ruby
leitz has quit [Quit: Nappy time]
Keltia has quit [Ping timeout: 260 seconds]
drewo has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
craysiii has joined #ruby
Kreas has joined #ruby
allcentury has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 272 seconds]
_blizzy_ has quit [Quit: Leaving]
<shevy> so yorickpeterse tweets offtopic!
ruby-lang373 has quit [Quit: Page closed]
TheSpectre has quit [Ping timeout: 244 seconds]
<blubjr`> hi, shevy
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cwong_on_irc has quit [Quit: Leaving.]
TheSpectre has joined #ruby
cirenyc has joined #ruby
vdamewood has quit [Ping timeout: 246 seconds]
UniFreak has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 264 seconds]
<Melpaws> is there a ruby equivalent for mongoimport —file from a json file? collection.insert(x) is not working for me
Strygwyr has joined #ruby
duoi has quit [Ping timeout: 272 seconds]
bigkevmcd has joined #ruby
duoi has joined #ruby
Strygwyr has left #ruby [#ruby]
ismaelga has quit [Remote host closed the connection]
<havenwood> Melpaws: I don't follow. Say more about the file with JSON and what you're trying to do?
<baweaver> !mute Strygwyr
symm- has quit [Ping timeout: 276 seconds]
<baweaver> I would suggest not clicking that link
dviola has quit [Quit: WeeChat 1.3]
<baweaver> joins from kiwiirc, leaves after single file post from shady site
cirenyc has quit [Quit: Leaving...]
<baweaver> yeah, no
aeontech has quit [Quit: aeontech]
duoi has quit [Ping timeout: 240 seconds]
axl_ has left #ruby [#ruby]
baweaver has quit [Remote host closed the connection]
<Melpaws> sorry @havenwood. I have json file that i would like to import into a collection. I've tried a number of things from open file read into a variable. Then use that variable as the document name Or read a json file for each line and do something like : https://gist.github.com/dylnnlsn/ab2fe9a2c1eacd358baa
nertzy2 has joined #ruby
dfinninger has joined #ruby
aplnn has joined #ruby
aeontech has joined #ruby
michaeldeol has quit [Ping timeout: 276 seconds]
<havenwood> Melpaws: I'm still foggy. Here's an example of reading and parsing some JSON from a file: require 'json'; json = File.read 'tmp.json'; JSON.parse json
nateberkopec has joined #ruby
<Melpaws> hm. do i have to parse the json or can the mongo client do that when using the import? (sorry .. i'm probably not communicating the best i can ). Ultimate goal is to get a json file i have into a mongo collection.
chipotle has quit [Quit: cheerio]
purplexed- has joined #ruby
Jardayn has quit [Quit: Leaving]
duoi has joined #ruby
mjwhitta has joined #ruby
Guest97_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
aplnn has quit []
RegulationD has joined #ruby
mary5030 has joined #ruby
koolq has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<koolq> Does anybody find real bugs anymore?
ismaelga has joined #ruby
<havenwood> koolq: Yes.
<havenwood> Melpaws: I think ask the Mongo folk.
towski_ has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 276 seconds]
<Melpaws> cool ; will do :)
<havenwood> koolq: One bug, Two bugs, Red bug, Blue bug ... Say! What a lot of bugs there are.
pawnbox has joined #ruby
<koolq> havenwood: The Alex in Alex Sotirov, bow in the presence of greatness. You should even be honoured I'd show up for this fake shit!
NeverDie has joined #ruby
dlitvak has quit [Remote host closed the connection]
<havenwood> koolq: This is not good, and I know why. A mouse has cut the wire, goodbye!
nateberkopec has quit [Ping timeout: 246 seconds]
<koolq> havenwood: You aren't very good at this.
<havenwood> koolq: Have a Ruby question?
<koolq> havenwood: I'm a ruby-pro. :)
<havenwood> koolq: Be nice?
<koolq> havenwood: Have I not been?
<koolq> [Not really interested in this dialogue, or sure how we arrived at it.]
fedexo has joined #ruby
<havenwood> koolq: Ah, not a ruby-pro like voiced in #ruby-pro.
pawnbox has quit [Ping timeout: 260 seconds]
jamto11 has joined #ruby
<havenwood> koolq: Well, happy Ruby to you in any case.
<koolq> havenwood: That's exactly what I was referring to, but the channel is a bit dead, sadly.
<havenwood> koolq: Ah, yeah.
baweaver has joined #ruby
cirenyc has joined #ruby
rubie has quit [Remote host closed the connection]
<havenwood> koolq: Time for a renaissance I suppose.
rubie has joined #ruby
mjwhitta has quit [Quit: mjwhitta]
<koolq> I suppose.
Ox0dea has quit [Quit: WeeChat 1.4-dev]
mary5030 has quit [Remote host closed the connection]
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<koolq> Interesting. fizzbuzz.rubyforge.org
roxtrongo has joined #ruby
user083 has joined #ruby
jamto11 has quit [Ping timeout: 272 seconds]
nertzy2 has quit [Quit: This computer has gone to sleep]
baweaver has quit [Ping timeout: 240 seconds]
GarethAdams has quit [Quit: Leaving...]
<koolq> I wonder at which point entry-level jobs for ruby programmers became the rage enough for a fizzbuzz gem.
roxtrongo has quit [Ping timeout: 265 seconds]
<blubjr`> two years ago
<blubjr`> ruby is dying
whippythellama has quit [Quit: WeeChat 1.3]
blubjr` is now known as blubjr
pdoherty has joined #ruby
<koolq> blubjr: I reckon Scala jobs are becoming a lot more popular.
EllisTAA has joined #ruby
Cache_Money has joined #ruby
fschuindt has joined #ruby
<EllisTAA> would it be possible to download a mobile app to my desktop??
<EllisTAA> could i download yelp for iphones to my macbook?
<koolq> blubjr: I don't know why Ruby popularity is dying. Then again, Rust exists.
mistermocha has joined #ruby
<jhass> EllisTAA: that's related to Ruby how?
<havenwood> koolq: Ruby seems to be holding strong well above Scala levels. Neither seem to be waxing or waning much as far as I can tell.
arescorpio has quit [Ping timeout: 240 seconds]
<koolq> EllisTAA: Emulators exist, but I'm not sure that it's all very interesting; this has little to do with Ruby.
<koolq> havenwood: I suppose it depends on the industry you're in.
<havenwood> koolq: No doubt!
yqt has quit [Ping timeout: 252 seconds]
mistermocha has quit [Ping timeout: 264 seconds]
nanoz has joined #ruby
shinnya has quit [Ping timeout: 264 seconds]
<fschuindt> @foo = Bar.new. How can I know all methods of @foo? But only the methods of Bar, not methods like .nil? or all the other ones?
<havenwood> fschuindt: Try: public_methods(false)
favadi has joined #ruby
dopie has joined #ruby
pawnbox has joined #ruby
<fschuindt> havenwood: yupi! thank you
<koolq> pry does something interesting with inherited objects, and their methods available.
jaequery has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pyon has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
purplexed- has quit [Ping timeout: 272 seconds]
cwong_on_irc has joined #ruby
dlitvak has joined #ruby
maikowblue has quit [Quit: .]
cirenyc has quit [Quit: Linkinus - http://linkinus.com]
duoi has quit [Ping timeout: 246 seconds]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandbird has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruurd has joined #ruby
Uptime has quit [Quit: :}]
Rickmasta has joined #ruby
user083 has quit [Quit: leaving]
Uptime has joined #ruby
TeresaP has quit [Ping timeout: 246 seconds]
duoi has joined #ruby
duoi has quit [Changing host]
duoi has joined #ruby
VeryBewitching has quit [Remote host closed the connection]
moei has quit [Quit: Leaving...]
axsuul has joined #ruby
Marsjan has joined #ruby
TomPeed has joined #ruby
<sandbird> hi all, i'm trying to implement a basic graph thru adjacency lists
ruurd has quit [Ping timeout: 240 seconds]
marsjaninzmarsa has quit [Ping timeout: 240 seconds]
<sandbird> eg, adj = { a => [d,c], b => [], c => [e,f] ... }
Marsjan is now known as marsjaninzmarsa
moei has joined #ruby
chipotle has joined #ruby
<sandbird> my vertices need to have a couple of properties so i made a simple class
fschuindt has quit [Quit: WeeChat 1.3]
myztic has quit [Ping timeout: 240 seconds]
<sandbird> i'd like to know if there is a way to initialize vertices a thru n in a loop, instead of each individually
<sandbird> eg, a = Vertex.new 'a' and so on
nateberkopec has joined #ruby
UtkarshRay has joined #ruby
m0nge has joined #ruby
rbowlby has quit [Remote host closed the connection]
myztic has joined #ruby
ruurd has joined #ruby
nateberkopec has quit [Ping timeout: 250 seconds]
DLSteve has joined #ruby
gambl0re has joined #ruby
jamto11 has joined #ruby
nertzy2 has joined #ruby
nertzy2 has quit [Client Quit]
rgtk has joined #ruby
ruurd has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
gusrub has joined #ruby
pawnbox has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
jamto11 has quit [Ping timeout: 246 seconds]
Uptime has quit [Quit: :}]
eggoez has quit [Ping timeout: 242 seconds]
rgtk has quit [Ping timeout: 260 seconds]
baweaver has quit [Ping timeout: 240 seconds]
solocshaw has joined #ruby
baweaver has joined #ruby
Uptime has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
eggoez has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
VeryBewitching has joined #ruby
Bellthoven has joined #ruby
mary5030 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sankaber has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
scripore has quit [Quit: This computer has gone to sleep]
The_Phoenix has joined #ruby
Rickmasta has joined #ruby
nixmaniack has joined #ruby
nixmaniack has quit [Remote host closed the connection]
nixmaniack has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
wilsonc91 has joined #ruby
ruurd has joined #ruby
quarters has quit [Ping timeout: 246 seconds]
wilsonc91 has quit [Client Quit]
Cache_Money has joined #ruby
sucks has quit [Read error: Connection reset by peer]
matp has quit [Remote host closed the connection]
rakm has joined #ruby
lubarch has joined #ruby
drewo has joined #ruby
ruurd has quit [Ping timeout: 240 seconds]
CodingWolf has quit [Ping timeout: 255 seconds]
rakm has quit [Client Quit]
hobbes_78 has joined #ruby
dopie has quit [Read error: Connection reset by peer]
braincrash has quit [Quit: bye bye]
ismaelga has quit [Remote host closed the connection]
casadei has quit []
benlieb_ has quit [Quit: benlieb_]
dopie has joined #ruby
jatb has quit [Ping timeout: 244 seconds]
unsymbol has quit [Ping timeout: 244 seconds]
drewo has quit [Ping timeout: 264 seconds]
Mon_Ouie has quit [Ping timeout: 250 seconds]
RedDwarf has joined #ruby
rideh has quit [Ping timeout: 244 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 244 seconds]
Zackio has quit [Ping timeout: 244 seconds]
retornam has quit [Ping timeout: 244 seconds]
bmn has quit [Ping timeout: 244 seconds]
three18ti has quit [Ping timeout: 244 seconds]
CrazyEddy has quit [Ping timeout: 244 seconds]
Guest3421 has quit [Ping timeout: 244 seconds]
mburns has quit [Ping timeout: 244 seconds]
olblak has quit [Ping timeout: 244 seconds]
mburns has joined #ruby
olblak has joined #ruby
Kamilion has quit [Ping timeout: 244 seconds]
roxtrongo has joined #ruby
three18ti has joined #ruby
diegoaguilar has joined #ruby
Guest3421 has joined #ruby
rideh has joined #ruby
unsymbol has joined #ruby
jatb has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
braincrash has joined #ruby
braincrash is now known as braincras
ismaelga has joined #ruby
retornam has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Fire-Dragon-DoL has joined #ruby
bmn has joined #ruby
haraoka has quit [Ping timeout: 272 seconds]
roxtrongo has quit [Ping timeout: 260 seconds]
sandbird has quit [Ping timeout: 246 seconds]
dlitvak has quit [Remote host closed the connection]
agent_white has joined #ruby
<agent_white> Evenin' folks
<blubjr> hey
<blubjr> agent white, my man 1
<blubjr> !
<koolq> ...
<agent_white> !1one!11
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kobain has quit [Ping timeout: 260 seconds]
<blubjr> mm
UtkarshRay has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
Parko has quit [Quit: In a while, crocodile]
ur5us has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 240 seconds]
The_Phoenix has quit [Quit: Leaving.]
UniFreak has quit [Ping timeout: 260 seconds]
ruurd has joined #ruby
Kamilion has joined #ruby
shinenelson has joined #ruby
safe has joined #ruby
nateberkopec has joined #ruby
UtkarshRay has joined #ruby
Bellthoven has quit []
ruurd has quit [Ping timeout: 240 seconds]
UniFreak has joined #ruby
<droptone> Question: I have a method that takes an XMLRPC datetime value returned from an API, then does a .to_time.strftime() on it, and it works fine.
lemur has joined #ruby
<droptone> But for some unknown reason, on this one specific value, .to_time fails, but if I run .inspect on the value it appears fine.
<droptone> It's very strange.
<droptone> The inspect call on it returns this: INSPECT: #<XMLRPC::DateTime:0x00000003c9b208 @year=1947, @month=6, @day=1, @hour=0, @min=0, @sec=0>
nateberkopec has quit [Ping timeout: 265 seconds]
baweaver_ has joined #ruby
<droptone> Here's an inspect call on one that .to_time works on fine: INSPECT: #<XMLRPC::DateTime:0x00000003d6b7f0 @year=2008, @month=1, @day=1, @hour=0, @min=0, @sec=0>
<droptone> Is it because the year is 1947 and that's too far in the past? That's the only thing I can imagine being wrong here.
varunwachaspati_ has quit [Quit: Connection closed for inactivity]
djbkd has quit [Remote host closed the connection]
<kiki_lamb> Anyonne familiar with the 'Modularity' gem? I've been playing with it, I notice it hasn't been updated in a couple of years... is it dead, has it been replaced, or is it just good enough as is?
Melpaws has quit [Quit: Leaving.]
michaeldeol has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
idefine has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 272 seconds]
idefine has joined #ruby
<droptone> kiki_lamb: In my experience, if a gem hasn't been updated in a few years, it's dead. It may still work or be useful, but it's not under active development.
<droptone> Because there's always some new Ruby build coming out or some new bug to fix.
<kiki_lamb> droptone: i dunno, for multi-year old gems, i've seen a pretty even split between 'dead' and 'replaced by something better', just curious which it is in this case
benlieb has quit [Quit: benlieb]
yoongkang has joined #ruby
freerobby1 has quit [Quit: Leaving.]
gusrub has quit [Ping timeout: 252 seconds]
<kiki_lamb> cause, you know, if it's the latter case, I should go play with that instead.
araujo_ has joined #ruby
araujo_ has quit [Max SendQ exceeded]
araujo_ has joined #ruby
araujo has quit [Ping timeout: 265 seconds]
araujo_ has quit [Max SendQ exceeded]
chouhoul_ has quit [Remote host closed the connection]
yoongkang has quit [Ping timeout: 250 seconds]
araujo_ has joined #ruby
ismaelga has quit [Remote host closed the connection]
ur5us has joined #ruby
araujo_ has quit [Max SendQ exceeded]
araujo_ has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 246 seconds]
krz has joined #ruby
ruurd has joined #ruby
araujo_ has quit [Max SendQ exceeded]
gix has quit [Ping timeout: 240 seconds]
safe has quit [Quit: Leaving]
lubarch has quit [Ping timeout: 240 seconds]
gix has joined #ruby
ruurd has quit [Ping timeout: 240 seconds]
UtkarshRay has quit [Remote host closed the connection]
Xiti` has joined #ruby
Xiti` has quit [Remote host closed the connection]
haraoka has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
dfinninger has quit [Remote host closed the connection]
Xiti has quit [Ping timeout: 260 seconds]
trosborn has joined #ruby
idefine has quit [Read error: Connection reset by peer]
Cache_Money has quit [Quit: Cache_Money]
michaeldeol has joined #ruby
tubulife- has joined #ruby
trosborn has quit [Client Quit]
maxz has quit [Quit: Textual IRC Client: www.textualapp.com]
Cache_Money has joined #ruby
Xiti has joined #ruby
hahuang65 has joined #ruby
_stu_ has quit [Quit: _stu_]
pawnbox has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
juddey has quit [Ping timeout: 244 seconds]
grill has joined #ruby
hahuang65 has joined #ruby
juddey has joined #ruby
davedev24 has quit []
saddad has joined #ruby
darkf has joined #ruby
dviola has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yes`r has joined #ruby
juddey has quit [Ping timeout: 264 seconds]
dviola has quit [Changing host]
dviola has joined #ruby
UtkarshRay has joined #ruby
baweaver_ has quit [Read error: Connection reset by peer]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
<yes`r> O_O
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
bb010g has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
trosborn has joined #ruby
<droptone> You raise a fair point.
gusrub has joined #ruby
<N|GGER> do i?
<setient> jfc.
<setient> no
<setient> don't feed the kid
<droptone> "Don't feed the troll"
<N|GGER> thank god i'm not being called a troll anymoer
<N|GGER> fuck you
<setient> kid
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
<setient> see
N|GGER has joined #ruby
<havenwood> !mute N|GGER troll
N|GGER has left #ruby [#ruby]
nixmaniack has quit [Remote host closed the connection]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
<setient> can you bant
N|GGER has left #ruby [#ruby]
<droptone> I'm guessing that's the guy who came in here getting feedback on possibly creating a programming language based on ebonics.
<setient> because join messages
nixmaniack has joined #ruby
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
nateberkopec has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
<droptone> So there's no way to stop old Nigger here?
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
<droptone> Because I did have a question.
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
N|GGER has left #ruby [#ruby]
N|GGER has joined #ruby
<havenwood> !ban N|GGER !P
N|GGER has left #ruby [#ruby]
<setient> i ignored it.
<koolq> Why are people trolls?
<setient> idk
<droptone> koolq: parental issues.
<droptone> "Dad never paid attention to me", "mom was overbearing", one or the other openly favored a sibling, etc.
N1GG3R has joined #ruby
N1GG3R was kicked from #ruby by ChanServ [User is banned from this channel]
snockerton has joined #ruby
<droptone> So anyway, I have a question, it may have been answered but nigger forced my logs past my buffer.
<setient> ask again!
<setient> maybe i can help
<droptone> I have an XMLRPC::DateTime object I'm returning from an API, and I"m using to_time.strftime to be able to print leading zeros for day, month, etc.
beauby has quit [Ping timeout: 260 seconds]
<droptone> and it's working fine, but for this one specific value, for no apparently reason, .to_time is failing.
<droptone> And I"m guessing it has to do with how old the date is, the year is 1947. Does the .to_time method use epoch time and can't handle dates with years older than 1970 or some such?
<setient> that most likey sounds right. for $REASONS.
<droptone> Yeah, so that's an issue.
<setient> google handling dates earlier than 1970 ruby
<droptone> Is there some other method to print leading zeros than .to_time?
<setient> i haven't done this mind you but that sounds like a legit guess
<droptone> I use .to_time, then .strftime
yfeldblum has joined #ruby
nateberkopec has quit [Ping timeout: 260 seconds]
tubuliferous_ has quit [Ping timeout: 250 seconds]
chipotle has quit [Quit: cheerio]
axl_ has joined #ruby
<droptone> Time class has some limit. Firstly, it can only represent dates between 1970 and 2038 ( since ruby v1.9.2, it can represent 1823-11-12 to 2116-02-20 ). Secondly, the time zone is limited to UTC and the system’s local time zone in ENV['TZ'].
rgtk has joined #ruby
<droptone> According to this, since 1.9.2, it can handle 1823 to 2116, and I'm using 2.2.2p95
djbkd has joined #ruby
jamto11 has joined #ruby
axl_ has left #ruby [#ruby]
<droptone> What an odd thing.
yfeldblum has quit [Ping timeout: 264 seconds]
tubuliferous_ has joined #ruby
Eiam_ has joined #ruby
<dopie> has anyone used RETS before?
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
reactormonk has joined #ruby
<reactormonk> cannot load such file -- test/unit/assertions - which gem should that be in?
yfeldblum has joined #ruby
<havenwood> droptone: In the future please don't feed trolls by repeating their obnoxious names.
<droptone> Hah, will do.
rgtk has quit [Ping timeout: 260 seconds]
jamto11 has quit [Ping timeout: 244 seconds]
djbkd has quit [Ping timeout: 240 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
zotherstupidguy has quit [Read error: Connection reset by peer]
zotherstupidguy has joined #ruby
<havenwood> droptone: It all ends on Tue Jan 19 03:14:07 GMT Standard Time 2038.
<havenwood> droptone: Epoch time.
pawnbox_ has joined #ruby
ledestin has joined #ruby
chouhoulis has joined #ruby
<havenwood> 2038 is getting disturbing close.
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
<havenwood> Thank goodness for 64-bit Ruby.
<havenwood> A Sunday in December in the year 292,277,026,596 is more acceptable.
<droptone> havenwood: my question is, convering this XMLRPC::DateTime object .to_time is failing for no apparent reason
<droptone> and the only thing I'm noticing is that the date is 1947
<droptone> the year of the date.
drewo has joined #ruby
<droptone> Should that fail? According to this article it should support as far back as 1823: http://stevenyue.com/2013/03/23/date-time-datetime-in-ruby-and-rails/
lubarch has joined #ruby
chouhoulis has quit [Ping timeout: 244 seconds]
<droptone> I don't need epoch time, I"m just using .to_time to then use .strftime so I can print the month and day with leading zeros.
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lubarch has quit [Client Quit]
snockerton has quit [Quit: Leaving.]
psy_ has quit [Remote host closed the connection]
<havenwood> droptone: It returns `nil` unless `Time.gm(*to_a)`.
zotherstupidguy has quit [Ping timeout: 244 seconds]
<havenwood> droptone: Sorry, paste fail.
<havenwood> droptone: Returns `nil` unless `@year >= 1970`.
nofxx has quit [Remote host closed the connection]
drewo has quit [Ping timeout: 250 seconds]
reactormonk has left #ruby ["WeeChat 1.1.1"]
zotherstupidguy has joined #ruby
chipotle has joined #ruby
Kreas has quit [Quit: Textual IRC Client: www.textualapp.com]
koolq has quit [Quit: leaving]
solocshaw has quit [Ping timeout: 250 seconds]
<havenwood> droptone: Is that what you're running into?
skade has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
<droptone> havenwoord: back, sorry, checking your link.
<droptone> Yup, that's it.
<havenwood> droptone: It seems XMLRPC::DateTime docs and methods haven't been updated for the change you point out.
<droptone> That's the exact issue.
<droptone> *sigh*
<droptone> Ok, so, if I want to print leading zeros, as I would with .to_time.strftime
<droptone> Any other methods you might recommend?
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> droptone: You could monkey-patch a fix for the method yourself. I don't know the best actual alternative.
ohaibbq has joined #ruby
sanjayu has joined #ruby
Guest97 has joined #ruby
<shevy> patch that monkey, patch it real good
<havenwood> freedom patch*
roxtrongo has joined #ruby
tubulife- has quit [Ping timeout: 250 seconds]
<droptone> lol
<droptone> Naah, lucky for me, this API I'm transferring data too allows single-digit entries for day and month separated by dashes.
<droptone> Hopefully they never fix that.
<droptone> Any way to make a request for whomever is in charge of that aspect of the Ruby codebase fix it?
<droptone> Since Time itself was patched back in 1.9.2?
roxtrongo has quit [Ping timeout: 260 seconds]
s1kx has joined #ruby
trosborn has quit [Quit: trosborn]
jaequery has joined #ruby
rbowlby has joined #ruby
<droptone> How does one go about making such a request?
<havenwood> droptone: You can report a bug on Ruby's bug tracker here: https://redmine.ruby-lang.org/projects/ruby/wiki/HowToReport
<havenwood> droptone: Or a pull request on the Githubs.
afschw has joined #ruby
<havenwood> droptone: :D
dhjondoh has joined #ruby
antoniobeyah has joined #ruby
<droptone> Feature request submitted.
<droptone> Hmm
<droptone> havenwood: Do you think it'd be possible to take an XMLRPC::DateTime and use the values to create a standard Time object, which would support dates prior to 1970?
m0nge has quit [Quit: Connection closed for inactivity]
<droptone> Perhaps simply obj = DateTime.parse("#{xmlobj.year}-#{xmlobj.month}-#{xmlobj.day} #{xmlrpc.hour}:#{xmlrpc.min}:#{xmlrpc.sec}")?
<droptone> something like that?
grill has joined #ruby
<droptone> I ask before inserting it into my codebase
<droptone> sorry, I screwed that up, but you get the gist.
Spami has joined #ruby
grill has quit [Client Quit]
kp666 has joined #ruby
Spami has quit [Remote host closed the connection]
<droptone> Anyone? I'm giving it a shot.
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
nixmaniack has quit [Remote host closed the connection]
jamto11 has joined #ruby
chipotle has quit [Quit: cheerio]
aufi has joined #ruby
grill has joined #ruby
norc has joined #ruby
jamto11 has quit [Ping timeout: 260 seconds]
yoongkang has joined #ruby
grill has quit [Client Quit]
anisha has joined #ruby
favadi has joined #ruby
<norc> >> StandardError.singleton_class.send(:define_method, :===) { |a| false }; begin; raise StandardError; rescue; end
<ruboto> norc # => StandardError (StandardError) ...check link for more (https://eval.in/472391)
<norc> Beautiful.
<norc> So. Next step is to figure out a way to throw into a rescue clause. :)
nixmaniack has joined #ruby
<norc> >> Exception.singleton_class.send(:define_method, :===) { |a| false }; raise Exception
<ruboto> norc # => /tmp/execpad-573c9a03fb2d/source-573c9a03fb2d:2:in `<main>': Exception (Exception) (https://eval.in/472392)
yoongkang has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby
mloy has quit [Remote host closed the connection]
lele` has quit [Ping timeout: 240 seconds]
mloy has joined #ruby
arooni has quit [Ping timeout: 272 seconds]
tagrudev has joined #ruby
nateberkopec has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
chouhoulis has quit [Ping timeout: 260 seconds]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 246 seconds]
krz has quit [Ping timeout: 244 seconds]
ponga has joined #ruby
nateberkopec has quit [Ping timeout: 252 seconds]
Pupp3tm4st3r has joined #ruby
htmldrum has quit [Ping timeout: 265 seconds]
codecop has joined #ruby
juddey has joined #ruby
krz has joined #ruby
jessemcgilallen has joined #ruby
lele has joined #ruby
saddad has quit [Ping timeout: 244 seconds]
tesuji has joined #ruby
drewo has joined #ruby
jessemcgilallen has quit [Read error: Connection reset by peer]
emilkarl has joined #ruby
jessemcgilallen has joined #ruby
amclain has quit [Quit: Leaving]
rubie has quit [Remote host closed the connection]
drewo has quit [Ping timeout: 250 seconds]
andikr has joined #ruby
DoubleMalt has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
k3asd` has joined #ruby
RobertBirnie has joined #ruby
haxrbyte has joined #ruby
haxrbyte has quit [Client Quit]
<zotherstupidguy> what happened to the ruby hangout https://www.youtube.com/channel/UCZKYKp38YY-hl5HlK1PRk1w/videos ?
quazimodo has quit [Ping timeout: 264 seconds]
<afschw> People got genuinely bored of Ruby.
cgfbee has quit [Remote host closed the connection]
jetter has joined #ruby
<jetter> what do you think of Jared Fogle? Can the same thing be said for homosexuals? Why or why not?
jessemcgilallen has quit [Quit: jessemcgilallen]
maxzzz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gusrub has quit [Quit: Leaving]
jetter is now known as jimbow
jimbow was kicked from #ruby by ChanServ [User is banned from this channel]
toomus has joined #ruby
<toomus> Hi all
k3asd` has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
fedexo has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
<toomus> How to produce string like this from array without tens of IF's?
UniFreak has quit [Ping timeout: 276 seconds]
tmtwd has joined #ruby
rgtk has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
ss_much has joined #ruby
jamto11 has joined #ruby
_djbkd has joined #ruby
craysiii has quit [Quit: Leaving.]
Azure|dc has joined #ruby
Azure has quit [Read error: Connection reset by peer]
<antoniobeyah> toomus: does the order matter?
nixmaniack has quit [Remote host closed the connection]
<toomus> antoniobeyah: yes
<toomus> antoniobeyah: order must be the same as in array
codecop has quit [Quit: Išeinu]
rgtk has quit [Ping timeout: 260 seconds]
drewo has joined #ruby
jamto11 has quit [Ping timeout: 244 seconds]
yoongkang has joined #ruby
_djbkd has quit [Ping timeout: 276 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stan has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
arup_r has quit [Quit: Leaving]
emilkarl has quit [Quit: emilkarl]
drewo has quit [Ping timeout: 276 seconds]
yoongkang has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
tubulife- has joined #ruby
nateberkopec has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
cgfbee has joined #ruby
emilkarl has joined #ruby
tubulife- has quit [Ping timeout: 272 seconds]
nofxx has joined #ruby
sdwrage has joined #ruby
houhoulis has joined #ruby
ibouvousaime has joined #ruby
<norc> >> ['johnny', 'teddy', 'lui'].join(", ")
<ruboto> norc # => "johnny, teddy, lui" (https://eval.in/472417)
mloy has quit [Ping timeout: 255 seconds]
<norc> toomus: You can use Array#join and #[] to achieve the desired effect.
djbkd has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 272 seconds]
<norc> This is how Rails implements that functionality.
UniFreak has joined #ruby
RegulationD has joined #ruby
<norc> You will probably end up duplicating that case statement if you do it correctly.
tmtwd has quit [Ping timeout: 252 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
nofxx has quit [Ping timeout: 260 seconds]
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
<toomus> norc: thx for to_sentence() function :D
aganov has joined #ruby
quazimodo has joined #ruby
karapetyan has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 246 seconds]
karapetyan has quit [Client Quit]
karapetyan has joined #ruby
TomyWork has joined #ruby
Guest97 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvw has joined #ruby
Guest97 has joined #ruby
<antoniobeyah> maybe a little extreme but it was fun
roxtrongo has joined #ruby
joonty has joined #ruby
quazimodo has quit [Read error: No route to host]
skade has joined #ruby
rubie has joined #ruby
<antoniobeyah> looking at the rails example is interesting. i didn’t know you could do a …-1
roxtrongo has quit [Ping timeout: 255 seconds]
<apeiros> hm, pondering to make the following feature request for ruby:
<apeiros> let all core bang methods return true/false instead of self/nil
<apeiros> there's so many people who experience the `returns self` case in the majority of cases and rely on it. only to have broken code because in some cases it will return nil.
zast has joined #ruby
<antoniobeyah> apeiros: wouldn’t that break method chaining?
nixmaniack has joined #ruby
<apeiros> antoniobeyah: that's the point - if you chain on bang methods, your code *already is* broken
nixmaniack has quit [Changing host]
nixmaniack has joined #ruby
<apeiros> and this change would make it abundantly clear that your code is broken.
jimbeaudoin has quit [Quit: Connection closed for inactivity]
rubie has quit [Ping timeout: 265 seconds]
<apeiros> because now it isn't only broken in the (potentially edge-) case of the bang method returning nil.
<apeiros> s/isn't only/wouldn't only be/
armyriad has quit [Ping timeout: 276 seconds]
TheHodge has joined #ruby
<apeiros> e.g.: ary.uniq!.first # <- this code is broken. it will work for some cases, but break in some. e.g. with ary = [1,2,3]
<antoniobeyah> i think only in some cases would your code be broken though, not always
marr has joined #ruby
<apeiros> antoniobeyah: if your code breaks in some cases, it is broken.
<apeiros> there's no middleground here.
armyriad has joined #ruby
rbowlby has quit [Remote host closed the connection]
yes`r has quit [Ping timeout: 250 seconds]
<antoniobeyah> i can hear that argument, not sure I would agree in all cases though. you certainly have other options to handle the cases I’m thinking of
<antoniobeyah> such as .reject
<apeiros> .reject isn't a bang method.
toomus has quit [Ping timeout: 246 seconds]
<apeiros> .reject! is. and reject! is precisely one of those which can return nil. so chaining on it is broken code.
<antoniobeyah> yeah what I was saying is that the cases I am thinking of could be replaced by the reject
poguez_ has quit [Quit: Connection closed for inactivity]
<apeiros> correct. if you want to chain, you use the non-bang method.
neanderslob has quit [Read error: Connection reset by peer]
dmolina has joined #ruby
yoongkang has joined #ruby
<antoniobeyah> i don’t use bang methods often, only when I know there will be invalid values in there. really only use flatten! and compact! after map operations
Ajkthx has quit []
<apeiros> chained to the map? if so -> broken code. because you almost certainly want the return value.
<apeiros> you'd be a prime candidate to profit from this change then :-p
neanderslob has joined #ruby
<antoniobeyah> nah, the code certainly works, runs every hour ;)
The_Phoenix has joined #ruby
quazimodo has joined #ruby
<apeiros> it runs != it's correct
<apeiros> it works by chance. and it's important to recognize that.
karapetyan has quit [Remote host closed the connection]
<apeiros> i.e., it'll work until you happen to not have a nil value in your map result.
<apeiros> >> [1,2,3].compact!
<ruboto> apeiros # => nil (https://eval.in/472440)
trosborn has joined #ruby
<apeiros> *whoops*
<apeiros> and there's absolutely *no reason* to use compact! there instead of the for this situation correct compact
<antoniobeyah> when will: ['a', '1'], ['b', '2']].flatten! fail?
<antoniobeyah> missed a [
<apeiros> >> [].flatten!
<ruboto> apeiros # => nil (https://eval.in/472443)
dmolina1 has joined #ruby
<apeiros> and there too - *no reason* to use flatten! instead of flatten.
dmolina has quit [Ping timeout: 244 seconds]
<apeiros> so yeah, you're indeed a prime candidate for this change. you use the wrong method for no good reason and you're atm lucky that your broken code hasn't failed.
<apeiros> the change would force you to use the correct method and not risk your code to break.
<antoniobeyah> so you are making the assumption that the input isn’t controlled by the caller?
<apeiros> there's no assumption.
bMalum has joined #ruby
The_Phoenix has quit [Ping timeout: 240 seconds]
<apeiros> if you want the return value, the current API of the bang methods means they're the wrong choice. there's really nothing to discuss about that part.
zast has quit [Quit: Leaving.]
parabolize has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
ElSif has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
<antoniobeyah> i see what you’re getting at, i can certainly see how it could be a slippery slope or a code smell
yfeldblum has quit [Ping timeout: 246 seconds]
<apeiros> it's neither. it's not a slippery slope. it's not a code smell. it is broken code.
karapetyan has quit [Remote host closed the connection]
<antoniobeyah> how do you define broken?
<antoniobeyah> that may be where our disconnect lies
<apeiros> buggy. not correct. working by chance instead of by design.
Cache_Money has quit [Quit: Cache_Money]
<apeiros> it's like `a = b/c` with b & c being integers works. it's broken code if c can be 0.
<antoniobeyah> so your assertion is that you cannot make code that is not buggy and correct if you use bang methods
nixmaniack has quit [Remote host closed the connection]
<apeiros> no
karapetyan has joined #ruby
nixmaniack has joined #ruby
<apeiros> I say that if a) you use bang methods for their return value and b) assume their return value to be the receiver, *then* your code is broken.
<apeiros> you can write perfectly correct code using bang methods. you can even write perfectly correct code using their return value. if you use the return value as an indicator for "something happened" (because that's what their return value is about)
karapetyan has quit [Remote host closed the connection]
<apeiros> e.g. `if str.gsub!(a,b) then puts "we had to amend your input" else puts "your input was fine, thanks" end`
chipotle has joined #ruby
<apeiros> but: `sanitized = str.gsub!(a,b)` is broken. there's no discussing that away.
<apeiros> the correct method for that would be gsub. not gsub!.
SCHAAP137 has joined #ruby
Couch has joined #ruby
<apeiros> it may work. it may work for the majority of input. but it's still not correct.
<antoniobeyah> ok, so you position is actually isn’t that its broken code, its more that ‘it depends’
nixmaniack has quit [Remote host closed the connection]
<antoniobeyah> which we are in agreement about
<shevy> :D
<apeiros> …
FunkyJunky has joined #ruby
yes`r has joined #ruby
ishamo has joined #ruby
zantonfr has joined #ruby
<ishamo> No rule to make target `/include/ruby.h', needed by `ossl_pkey_dsa.o'.
<apeiros> if all code using bang methods was broken I'd say remove it. *obviously* it depends. and I said under which conditions. and you were actually making a point in my case by exhibiting the precise way people fall into the pitfall.
neanderslob has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 1.3]
platzhirschi has joined #ruby
<ishamo> how to solf this? No rule to make target `/include/ruby.h', needed by `ossl_pkey_dsa.o'.
agent_wh1te has joined #ruby
nixmaniack has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
joonty has quit [Quit: joonty]
agent_wh1te is now known as agent_white
benlieb has joined #ruby
<platzhirschi> This is making me crazy any idea what's causing the inequality here? https://gist.github.com/platzhirsch/7afb3427e6566e7e6225 ? millisecond difference?
<apeiros> platzhirschi: probably
<apeiros> platzhirschi: use something like timecop
juddey has quit [Ping timeout: 260 seconds]
<shevy> ishamo sounds like openssl problem of your system, what OS do you use, ruby version, how did you install openssl etc.. - also upload the full trace to some pastie site
<platzhirschi> apeiros: though it's definitely the same .to_i value
<platzhirschi> just checled
<apeiros> platzhirschi: to_i is second precision
joonty has joined #ruby
timonv has joined #ruby
<apeiros> not sure whether to_f even captures the full precision. iirc it does not.
bMalum has quit [Quit: bMalum]
<antoniobeyah> i would recommend stubbing anything that uses time
<platzhirschi> maybe I can make TImecop freeze the time
<apeiros> platzhirschi: yes, that's why I suggested it. the other alternatives are stubbing as suggested by antoniobeyah, or by injecting
zantonfr has quit [Excess Flood]
<apeiros> (though, timecop technically is stubbing)
yfeldblum has joined #ruby
<shevy> antoniobeyah yeah! stab the time
chouhoulis has joined #ruby
emilkarl has quit [Quit: emilkarl]
<platzhirschi> Doesn't work either, maybe it's buggy in my super old RSpec 1.2 version.
<platzhirschi> I'll split up the method to make it more testable *take that*
RedDwarf is now known as Zackio
tubulife- has joined #ruby
platzhirsch has joined #ruby
lipoqil has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
trosborn has quit [Quit: trosborn]
chouhoulis has quit [Ping timeout: 260 seconds]
<ishamo> shevy, My Os is ubuntu14.4(64bit), the ruby version is 2.2.2. I try to install ruby. I have done this: 1, sudo apt-get install openssl libssl-dev 2. cd ruby, ./configure, make && make install. Then it heppened this error.
adac has joined #ruby
joonty has quit [Quit: joonty]
nixmaniack has quit []
DoubleMalt has quit [Remote host closed the connection]
joonty has joined #ruby
tubulife- has quit [Ping timeout: 250 seconds]
quazimodo has quit [Ping timeout: 265 seconds]
nofxx has joined #ruby
haxrbyte has joined #ruby
senayar has joined #ruby
haxrbyte has quit [Client Quit]
shredding has joined #ruby
<shevy> what openssl version do you have? I use openssl-1.0.2d and have no issues; also perhaps try with ruby 2.2.3 instead ftp://ftp.ruby-lang.org/pub/ruby/ruby-2.2.3.tar.xz
Elysia has quit [Ping timeout: 240 seconds]
gustav_ has joined #ruby
<shevy> the make target `/include/ruby.h also sounds incorrect, that would translate to absolute position /include/ruby.h no? my ruby.h is at /usr/include/ruby-2.2.0/ruby/ruby.h
ohaibbq has quit [Quit: Leaving...]
<ishamo> I've found the file ruby.h, now I am trying to find where the error happened and change the path right.
VeryBewitching has quit [Quit: Konversation terminated!]
trosborn has joined #ruby
krz has quit [Ping timeout: 246 seconds]
nofxx has quit [Ping timeout: 250 seconds]
lurch_ has joined #ruby
<ishamo> shevy, Yes, I am now trying as what you say. Thank you.
dotix has joined #ruby
dotix has joined #ruby
maloik has joined #ruby
<ishamo> I think I need to add something in the file Makefile under "/ruby-2.2.2/ext/openssl", But I don't know how to do it ..
tulak has joined #ruby
<antoniobeyah> you usually don’t have to modify anything
postmodern has quit [Quit: Leaving]
krz has joined #ruby
<maloik> This is a long shot, but does anyone know if Prawn has an irc channel, or if any of their contributors can be found on irc?
pawnbox_ has quit [Remote host closed the connection]
<maloik> docs say "find us on # on freenode"
<antoniobeyah> there is typically a configure file that takes care of that sort of stuff
<maloik> Also, hi
pawnbox has joined #ruby
FunkyJunky has quit [Quit: FunkyJunky]
<shevy> there are not many prawn devs active
benlieb has quit [Quit: benlieb]
<norc> maloik: Some contributors can be found here, #ruby-core exists but nobody ever speaks.
roxtrongo has joined #ruby
FunkyJunky has joined #ruby
<norc> And of course I read prawn as ruby.
<antoniobeyah> platzhirschi: did you run the configure script?
<norc> >_>
chipotle has quit [Quit: cheerio]
chipotle has joined #ruby
trosborn has quit [Quit: trosborn]
roxtrongo has quit [Ping timeout: 272 seconds]
agit0 has joined #ruby
juddey has joined #ruby
ibouvousaime has quit [Ping timeout: 252 seconds]
elaptics`away is now known as elaptics
jetpackjoe has joined #ruby
Coldblackice has quit [Ping timeout: 240 seconds]
ibouvousaime has joined #ruby
Guest97 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
timonv has quit [Ping timeout: 250 seconds]
dramagods has joined #ruby
roshanavand has joined #ruby
gregf has quit [Ping timeout: 276 seconds]
juddey has quit [Ping timeout: 260 seconds]
drewo has joined #ruby
agit0 has quit [Ping timeout: 260 seconds]
ziyadb has joined #ruby
drewo has quit [Ping timeout: 260 seconds]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
haxrbyte has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haraoka has quit [Ping timeout: 250 seconds]
rgtk has joined #ruby
Xeago has joined #ruby
trosborn has joined #ruby
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dramagods has quit [Remote host closed the connection]
djbkd has joined #ruby
nateberkopec has joined #ruby
jas02 has left #ruby [#ruby]
dramagods has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
benlovell has joined #ruby
herrgummy has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
hobbes_78 has quit [Ping timeout: 240 seconds]
dramagods has quit [Remote host closed the connection]
dramagods has joined #ruby
djbkd has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Ping timeout: 276 seconds]
gustav_ has quit []
herrgummy has left #ruby [#ruby]
Xeago has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Xeago has joined #ruby
jetpackjoe has joined #ruby
Mia has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
aryaching has joined #ruby
Xeago has quit [Remote host closed the connection]
FunkyJunky has quit [Quit: FunkyJunky]
chouhoulis has quit [Ping timeout: 240 seconds]
htmldrum has joined #ruby
karapetyan has joined #ruby
platzhirsch has left #ruby [#ruby]
pawnbox has quit [Remote host closed the connection]
nofxx has joined #ruby
scripore has joined #ruby
htmldrum has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
platzhirschi has quit [Quit: Page closed]
seal has joined #ruby
rodfersou has joined #ruby
duncannz has quit [Remote host closed the connection]
trosborn has quit [Quit: trosborn]
karapetyan has quit [Ping timeout: 260 seconds]
Guest97 has joined #ruby
nofxx has quit [Ping timeout: 255 seconds]
pawnbox has quit [Remote host closed the connection]
TPBallbag has joined #ruby
pawnbox has joined #ruby
roshanavand has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
FunkyJunky has joined #ruby
aryaching has quit [Ping timeout: 244 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
antoniobeyah has quit [Quit: antoniobeyah]
supergeek has joined #ruby
scripore has joined #ruby
antoniobeyah has joined #ruby
DoubleMalt has joined #ruby
beauby has joined #ruby
roxtrongo has joined #ruby
BlackCoyote has joined #ruby
rdark has joined #ruby
rdark has joined #ruby
supergeek has quit [Quit: Goodbue blue sky...]
FernandoBasso has joined #ruby
roxtrongo has quit [Ping timeout: 272 seconds]
dmolina1 has quit [Quit: Leaving.]
dmolina has joined #ruby
trosborn has joined #ruby
Xeago has joined #ruby
Peg-leg has joined #ruby
sanjayu has quit [Remote host closed the connection]
Coldblackice has joined #ruby
drewo has joined #ruby
roshanavand has joined #ruby
tulak has quit [Remote host closed the connection]
antoniobeyah has quit [Quit: antoniobeyah]
samuel02 has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
UniFreak has quit [Ping timeout: 272 seconds]
phildkim_ has joined #ruby
drewo has quit [Ping timeout: 264 seconds]
dotix has quit [Quit: Leaving]
sinkensabe has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
roshanavand has quit [Remote host closed the connection]
jetpackjoe has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest97 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
samuel02 has quit []
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trosborn has quit [Quit: trosborn]
axsuul has joined #ruby
dramagods has quit [Remote host closed the connection]
Sembei has quit [Quit: WeeChat 1.4-dev]
aryaching has joined #ruby
rgtk has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
UniFreak has joined #ruby
chouhoulis has joined #ruby
yoongkang has quit [Remote host closed the connection]
trosborn has joined #ruby
doddok has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
dramagods has joined #ruby
spiman has joined #ruby
chouhoulis has quit [Ping timeout: 244 seconds]
ldnunes has joined #ruby
tubulife- has joined #ruby
trosborn has quit [Quit: trosborn]
dramagods has quit [Ping timeout: 272 seconds]
roshanavand has joined #ruby
trosborn has joined #ruby
trosborn has quit [Client Quit]
lokulin has quit [Changing host]
lokulin has joined #ruby
tubulife- has quit [Ping timeout: 250 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
idefine has joined #ruby
Spami has joined #ruby
ishamo has quit [Quit: 离开]
dramagods has joined #ruby
krz has quit [Read error: Connection reset by peer]
krz has joined #ruby
idefine has quit [Ping timeout: 250 seconds]
scripore has quit [Ping timeout: 264 seconds]
gustav_ has joined #ruby
phildkim_ has quit [Ping timeout: 246 seconds]
TPBallba_ has joined #ruby
sanjayu has joined #ruby
TPBallbag has quit [Ping timeout: 272 seconds]
TPBallba_ is now known as TPBallbag
nofxx has joined #ruby
futilegames has quit [Quit: futilegames]
moeabdol has joined #ruby
davedev24 has joined #ruby
houhoulis has quit [Remote host closed the connection]
spiman has quit [Ping timeout: 264 seconds]
colli5ion has joined #ruby
spiman has joined #ruby
Ox0dea has joined #ruby
<Ox0dea> Which is the best Ruby misinterpreter?
nofxx has quit [Ping timeout: 240 seconds]
stamina has joined #ruby
arup_r has joined #ruby
drewo has joined #ruby
trosborn has joined #ruby
roshanavand has joined #ruby
dramagods has quit [Remote host closed the connection]
dramagods has joined #ruby
drewo has quit [Ping timeout: 260 seconds]
araujo has joined #ruby
krzkrz has joined #ruby
blueOxigen has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
sanjayu has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 250 seconds]
krz has quit [Ping timeout: 272 seconds]
axsuul has quit [Ping timeout: 276 seconds]
htmldrum has joined #ruby
nateberkopec has joined #ruby
krzkrz has quit [Ping timeout: 264 seconds]
gustav_ has quit [Remote host closed the connection]
Peg-leg has quit [Quit: Leaving.]
nateberkopec has quit [Ping timeout: 250 seconds]
JammyHammy has joined #ruby
trosborn has quit [Quit: trosborn]
jamto11 has joined #ruby
roshanavand has joined #ruby
bruce_lee has joined #ruby
vire has joined #ruby
djbkd has joined #ruby
moeabdol has quit [Ping timeout: 244 seconds]
roxtrongo has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
jamto11 has quit [Ping timeout: 265 seconds]
dramagods has quit [Ping timeout: 240 seconds]
roxtrongo has quit [Ping timeout: 260 seconds]
djbkd has quit [Ping timeout: 272 seconds]
prestorium has joined #ruby
dramagods has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
moeabdol has joined #ruby
karapetyan has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby
Rollabun_ has quit [Quit: Leaving...]
yoongkang has joined #ruby
maikowblue has joined #ruby
shredding has quit [Ping timeout: 276 seconds]
Ilyes512 has joined #ruby
kobain has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
trosborn has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
roshanavand has joined #ruby
yoongkang has quit [Ping timeout: 276 seconds]
FunkyJunky has quit [Quit: FunkyJunky]
dhjondoh has quit [Quit: dhjondoh]
yoongkang has joined #ruby
haxrbyte has joined #ruby
haxrbyte has quit [Client Quit]
lipoqil has quit [Quit: Connection closed for inactivity]
nettoweb has joined #ruby
Xeago has quit [Remote host closed the connection]
favadi has joined #ruby
favadi has quit [Client Quit]
favadi has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
kp666 has quit [Ping timeout: 240 seconds]
moeabdol has joined #ruby
<shevy> python
<agent_white> kek
drewo has joined #ruby
<agent_white> If I branch off a branch, how do I push to the sub-branch? `git branch -b feature develop` - I want to push commits to "feature" only, since I dun wanna merge with develop yet.
<agent_white> Or rather... is that good to do? I'm just looking at http://nvie.com/posts/a-successful-git-branching-model/
<adaedra> it's another branch, just do like any other branch
<adaedra> so from devel: `git checkout -b feature`, then at first push `git push -u origin feature`
<adaedra> once you done, merge feature into devel
unrar has joined #ruby
<unrar> hey
<gregf_> shoult it not just be: git checkout develop; git checkout -b feature_foo (add some change ) and finally raise a PR?
<gregf_> *should
<adaedra> you have to push your branch to your remote repository at some moment
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> if you want a PR from an automated tool
kp666 has joined #ruby
<agent_white> adaedra: I'm entirely new to branching... followed some tutorials/watched some videos on it. Just now really trying to work on learning how/when to branch.
dramagods has quit [Remote host closed the connection]
<agent_white> adaedra: And good deal, thank you :D
<adaedra> there's no "sub branches"
drewo has quit [Ping timeout: 252 seconds]
tubulife- has joined #ruby
<adaedra> each commit belong to a branch, and each commit has one or multiple (merge) parents
<agent_white> adaedra: So basically. Create the "develop" branch, create the "feature" branch. Commit to the 'feature', then rebase the feature into the develop?
beauby has quit [Ping timeout: 255 seconds]
trosborn has quit [Quit: trosborn]
<adaedra> yeah
pawnbox has quit [Remote host closed the connection]
<agent_white> adaedra: Erm... I'm terrible at wording this (as you can see). Basically, I have a feature I'm working on, and I want to make commits to it without merging into develop (since it's not done). What's the best/most proper way to do this?
pawnbox has joined #ruby
<adaedra> Personaly, I create a branch devel-<feature> and work on it. Once it's finished, I merge it into devel and remove the devel-<feature> branch.
Bellthoven has joined #ruby
tubuliferous_ has quit [Ping timeout: 264 seconds]
<agent_white> Ahhh.
<adaedra> (Even if right now I'm not respecting the scheme and shamefully do everything in devel.)
benlovell has quit [Ping timeout: 265 seconds]
tubuliferous_ has joined #ruby
sdothum has joined #ruby
tubulife- has quit [Ping timeout: 240 seconds]
<agent_white> adaedra: Hahah :P
<unrar> Question: what if you don't delete the branch after merging?
<unrar> Just merged a dev branch, unsure whether to delete it lol
<adaedra> it just stay here
donske has joined #ruby
<unrar> ruby is so lovely
donske has quit [Max SendQ exceeded]
aryaching has joined #ruby
<ddv> not always
k3asd` has joined #ruby
<Ox0dea> unrar, ddv: What makes you say so?
<unrar> it just works for me lol
krz has joined #ruby
pawnbox has quit [Remote host closed the connection]
<ddv> unrar e
<unrar> I dislike Rails though I only use standalone Ruby
pawnbox has joined #ruby
<unrar> currently working on an automatic API generator ayy
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> unrar: What's your favoritest Rubyism?
<unrar> blocks
nateberkopec has joined #ruby
<ddv> nothing special about closures
UniFreak has quit [Ping timeout: 250 seconds]
polysics has joined #ruby
<Ox0dea> Ruby does make them remarkably user-friendly.
graffix_ is now known as graffix
PaulCape_ has joined #ruby
haxrbyte has joined #ruby
gustav_ has joined #ruby
allcentury has joined #ruby
BaroMeter has joined #ruby
htmldrum has quit [Ping timeout: 272 seconds]
PaulCapestany has quit [Ping timeout: 264 seconds]
last_staff has joined #ruby
jottr has joined #ruby
nateberkopec has quit [Ping timeout: 276 seconds]
haxrbyte has quit [Quit: Leaving...]
Rollabunna has joined #ruby
s00pcan has quit [Ping timeout: 264 seconds]
Fraeon has joined #ruby
Coldblackice has quit [Ping timeout: 272 seconds]
joonty has quit [Quit: joonty]
BaroMeter has quit [Remote host closed the connection]
Bellthoven has quit []
s00pcan has joined #ruby
prestorium_ has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
k3asd` has quit [Ping timeout: 260 seconds]
roxtrongo has joined #ruby
haxrbyte has joined #ruby
haxrbyte has quit [Remote host closed the connection]
benlovell has joined #ruby
haxrbyte has joined #ruby
<j416> I'm looping infinitely and I want to give user chance to press 'q' to exit loop
<j416> how can I?
Ilyes512 has joined #ruby
<j416> thanks
prestorium has quit [Ping timeout: 272 seconds]
seal has quit [Quit: Ex-Chat]
CodingWolf has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
rgtk has joined #ruby
joonty has joined #ruby
beauby has joined #ruby
chouhoulis has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
rgtk has quit [Ping timeout: 260 seconds]
_blizzy_ has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Voker57 has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 264 seconds]
millerti has joined #ruby
matp has joined #ruby
benhuda has joined #ruby
aeontech has quit [Quit: aeontech]
allcentury has quit [Ping timeout: 260 seconds]
benlovell has joined #ruby
quazimodo has joined #ruby
Xeago has joined #ruby
haxrbyte has quit [Quit: Leaving...]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
synthroid has joined #ruby
arup_r has quit [Remote host closed the connection]
dramagods has joined #ruby
moeabdol has quit [Read error: Connection reset by peer]
rodfersou has quit [Ping timeout: 240 seconds]
rodfersou has joined #ruby
moeabdol has joined #ruby
arup_r has joined #ruby
arup_r is now known as Guest62617
k3asd` has joined #ruby
<gregf_> j416: loop { puts "whats your name"; a = gets().chomp(); sleep 1; puts "hey #{a}" } ?
Xeago has quit [Ping timeout: 240 seconds]
toomus has joined #ruby
<j416> gregf_: nah, needs to be nonblocking. but I solved it by just not doing it
<j416> thanks
<toomus> Hi all
chipotle has joined #ruby
prestorium_ is now known as prestorium
<toomus> Is it possible to do something like this: { key1: 'A', key2: 'B', key3: self[:key1] }
<adaedra> ?try
<ruboto> Why don't you try it and see for yourself?
<toomus> adaedra: I know this doesn't work
<toomus> adaedra: I ask if it possible to do something liek this somehow
dramagods has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
<adaedra> I don't think there's a way to reference the hash you're currently building, no
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
ismaelga has joined #ruby
<toomus> adaedra: your answer satisfied me :)
<adaedra> { key1: 'A', key2: 'B' }.tap { |h| h[:key3] = h[:key1] } # would let you do it in one expression
dramagods has joined #ruby
ismaelga has quit [Remote host closed the connection]
XenuLives has joined #ruby
<XenuLives> Hi - I want to specify a dependency in my gemspec that lives on Github. No gem exists for it. Possible?
<Ox0dea> XenuLives: Yes.
nateberkopec has joined #ruby
FilipeChagas has joined #ruby
dramagods has quit [Ping timeout: 246 seconds]
chipotle has quit [Quit: cheerio]
<XenuLives> Tell me more
<XenuLives> :)
axsuul has joined #ruby
<Ox0dea> XenuLives: Technology is amazing.
<XenuLives> Errr I did that.
<XenuLives> I know gem takes a git option
<XenuLives> However there's no Gemfile for this code, just source
<XenuLives> Will it still work?
s2013 has joined #ruby
<Ox0dea> Oh, sorry; I didn't realize you said gemspec and not Gemfile. :<
<Ox0dea> You'll have to use the latter.
toomus has quit [Quit: Page closed]
chipotle has joined #ruby
<XenuLives> Well actually
<XenuLives> There's a Gemfile but no gemspec
<Ox0dea> Then you're good. :)
doddok has left #ruby ["Leaving"]
sgambino has joined #ruby
<Ox0dea> s/gemspec/Gemfile/ in that LMGTFY link. ^_^
<XenuLives> I know how to Google :)
<Ox0dea> How can you know you know how to Google if you have to Google how to find out how well you know how to Google?
yqt has joined #ruby
<XenuLives> spec.add_runtime_dependency 'redis-rb-cluster', git: 'https://github.com/antirez/redis-rb-cluster.git'
<XenuLives> Doesn't work
<norc> Ox0dea: So I just noticed that there does not seem to be a difference between raise and throw in the code. Is there a way to somehow return from a longjmp caused by throw?
<Ox0dea> XenuLives: That's the sort of thing you'd put in a gemspec, not a Gemfile.
<XenuLives> That is in the gemspec
<Ox0dea> Right, which we've established cannot be convinced to add GitHub deps.
AlexRussia has joined #ruby
doddok has joined #ruby
<Ox0dea> norc: I hear the faintest bell ringing, but there aren't any breadcrumbs leading back to when I last encountered that aspect of the interpreter.
lavros has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.3]
dtordable has quit [Quit: Lost terminal]
dtordable has joined #ruby
<XenuLives> Ok well regardless this isn't working
<XenuLives> Am I better to distribute the dependency alongside my code?
<Ox0dea> XenuLives: Are you opposed on principle to specifying that particular dependency in your Gemfile?
<XenuLives> Nope
<XenuLives> It just doesn't work
<XenuLives> Could not find gem 'redis-rb-cluster (>= 0) ruby' in
<XenuLives> Source does not contain any versions of 'redis-rb-cluster (>= 0) ruby'
<XenuLives> (sorry for spam)
The_Phoenix has joined #ruby
Tempesta has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
<Ox0dea> XenuLives: Try it with the git:// protocol.
codecop has joined #ruby
Tempesta has joined #ruby
<XenuLives> Still no good
<Ox0dea> Set it on fire.
roshanav_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
roxtrong_ has joined #ruby
TPBallbag has quit [Remote host closed the connection]
mary5030 has joined #ruby
<XenuLives> Ok did a bit more research
<XenuLives> For future reference this isn't possible
<XenuLives> So will need to distribute code as part of my own package.
<XenuLives> Thank
<XenuLives> Thanks*
roxtrongo has quit [Ping timeout: 255 seconds]
gustav_ has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has joined #ruby
TPBallbag has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
decoponio has joined #ruby
skweek has joined #ruby
gustav_ has joined #ruby
djbkd has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 272 seconds]
dfinninger has joined #ruby
TPBallbag has quit [Ping timeout: 260 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
ESpiney has joined #ruby
djbkd has quit [Ping timeout: 250 seconds]
cwong_on_irc has quit [Quit: Leaving.]
spiman_ has joined #ruby
araujo has quit [Ping timeout: 252 seconds]
dfinninger has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby
roshanav_ has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 272 seconds]
spiman has quit [Ping timeout: 264 seconds]
cajone is now known as cajone_afk
banister has quit [Read error: Connection reset by peer]
skweek has quit [Ping timeout: 240 seconds]
sankaber has joined #ruby
gustav_ has quit [Remote host closed the connection]
idealexit has joined #ruby
dramagods has joined #ruby
araujo has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
araujo has quit [Max SendQ exceeded]
dramagods has quit [Remote host closed the connection]
bkxd has joined #ruby
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
k3asd` has quit [Ping timeout: 255 seconds]
sankaber has quit [Remote host closed the connection]
Miron has quit [Ping timeout: 240 seconds]
drbrain has quit [Ping timeout: 240 seconds]
sankaber has joined #ruby
Miron has joined #ruby
zeljkof has quit [Ping timeout: 240 seconds]
charles81 has quit [Ping timeout: 240 seconds]
drbrain has joined #ruby
BackEndCoder has quit [Ping timeout: 240 seconds]
Luna_Moonfang has quit [Ping timeout: 240 seconds]
catbusters has quit [Ping timeout: 240 seconds]
Luna_Moonfang has joined #ruby
diegoaguilar has joined #ruby
charles81 has joined #ruby
Guest89808 has joined #ruby
zeljkof has joined #ruby
Guest89808 has quit [Max SendQ exceeded]
Rickmasta has joined #ruby
Guest89808 has joined #ruby
catbusters has joined #ruby
dramagods has joined #ruby
Guest89808 has quit [Read error: Connection reset by peer]
yoongkang has quit [Remote host closed the connection]
BackEndCoder has joined #ruby
bMalum has joined #ruby
roshanavand has joined #ruby
dramagods has quit [Client Quit]
sepp2k has joined #ruby
Xeago has joined #ruby
rippa has joined #ruby
trekky has joined #ruby
<trekky> hi everyone
<trekky> seeking some advice to do with complex sql queries and activerecord
bkxd has quit [Ping timeout: 255 seconds]
skade has quit [Quit: Computer has gone to sleep.]
Guest62617 is now known as arup_r
yalue has joined #ruby
banister has joined #ruby
idefine has joined #ruby
bMalum has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 240 seconds]
<trekky> hello
bMalum has joined #ruby
cdg has joined #ruby
gustav_ has joined #ruby
agit0 has joined #ruby
<apeiros> f'cking oracle
* apeiros kicks the bin
<apeiros> ?rails trekky
<ruboto> trekky, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<apeiros> AR is mostly rails. more likely to get good answers there.
Ox0dea has quit [Quit: WeeChat 1.4-dev]
weckl has joined #ruby
idefine has quit [Remote host closed the connection]
<trekky> hi rubuto, i'm not actually using rails
<trekky> so it would be an active_record usage without rails
pdoherty has quit [Ping timeout: 276 seconds]
jgpawletko has joined #ruby
<apeiros> ?justabot trekky
<ruboto> trekky, I'm just a bot. You don't need to address me.
<apeiros> trekky: doesn't matter. see what I wrote.
<trekky> hi apeiros so looking for some advice on how best to proceed
TPBallbag has joined #ruby
<apeiros> trekky: as said - my advice is to ask your question in #rubyonrails. even if you don't use rails with AR.
<norc> apeiros: Funny, I was thinking the same thing today.
<apeiros> norc: want to hear the most funny part about it?
Ox0dea has joined #ruby
<norc> Shoot
TomPeed has joined #ruby
<apeiros> after oci8 failing to install so many times and in the end me basically removing everything from my laptop and reinstalling it, I succeeded in installing the ruby-oci8 gem. but bundle failed.
<apeiros> and because I was so primed, I immediately blamed oci8 again. but in fact it was nokogiri which failed. d'uh :D
<norc> Heh.
ItSANgo has quit [Quit: Leaving...]
<apeiros> well, oci8 isn't through yet. lets see…
<norc> apeiros: oci8 and AR oracle enhanced took me a few hours to figure out how to set everything up properly.
<norc> But it's easy once I figured it out. :)
<norc> capistrano has yet to complain
<apeiros> well, the directions looked simple enough
rubie has joined #ruby
grepwood has joined #ruby
<grepwood> hi everyone
<grepwood> I have code that says
<norc> apeiros: As long as both LD_LIBRARY_PATH and DYLD_LIBRARY_PATH are set oci8 behaves nicely. :)
<apeiros> norc: nope
<apeiros> el capitan prohibits that
<grepwood> ['htop','nano'].each do |pkg|
<apeiros> you need OCI_DIR now
<grepwood> package pkg do
<grepwood> action :install
<apeiros> grepwood: dude, use gist.
<norc> apeiros: Wow. Thank you for letting me know, I was thinking about upgrading Yosemite next week.
<grepwood> apeiros, gist is a part of github
<norc> apeiros: What does OCI_DIR need to point to?
<apeiros> grepwood: thanks for telling me, I did not know that before.
quazimodo has quit [Ping timeout: 246 seconds]
<grepwood> anyways,
<apeiros> norc: at this point I lost track. I think it was the same as DYLD_LIBRARY_PATH
<apeiros> but now I reinstalled all following the oci8 page using brew
<apeiros> and there it's just `brew --prefix`/something/i/forgot
<grepwood> I tried to abbreviate those 5 lines (the 3 I posted and 2 "end" lines afterwards) into 1, like this
<apeiros> and no idea where the oracle stuff ended up
<norc> Ah, I just installed the oracle dependencies by hand, installing ruby-oci8 with just rubygems.
<norc> That allows me to set up the dependency the same on all my target machines.
<apeiros> yeah, last time I did that too
<grepwood> ['htop','nano'].each.package(action => :install)
<apeiros> you can still do it that way
<norc> Interesting that there is a brew package for oci8 tho
<grepwood> which did not quite work, I don't understand why
<apeiros> grepwood: probably because there's no #package method on Enumerator
rubie has quit [Ping timeout: 265 seconds]
<grepwood> apeiros, could it be that it's a method that exists only in Chef?
<apeiros> it's ruby. you can ask a method for its origin.
<grepwood> wow
<apeiros> see Method#source_location and Method#owner
<grepwood> thanks
<apeiros> only fails to work with native methods (sadly - would be nice if they amended that)
gambl0re has quit [Ping timeout: 272 seconds]
<grepwood> NameError: undefined local variable or method `package' for main:Object
<maloik> Crossposting this from #mongodb because it may be Mongoid / ruby specific... can anyone explain this behavior? https://gist.github.com/hannesfostie/f50b7022b4e1bee46e74 What's weird is that as soon as I reload my console, the value is back to normal
<apeiros> maloik: maybe cached?
sarkis has joined #ruby
<slash_nick> not super familiar with mongoid, but it seems like you're just reading the value and setting it to a variable... then changing the value of the obj stored in the variable... never persisting your change. Should it be persisting?
tesuji has quit [Ping timeout: 246 seconds]
* slash_nick ignored you defining the #value method... whoops.
<maloik> well... here's an example without mongoid
<maloik> that surprised me
<slash_nick> still
Jardayn has joined #ruby
<sarkis> anyone know how i can figure out the default Faraday timeout: https://github.com/lostisland/faraday/#usage
<slash_nick> maloik: still looks like you're not choosing to persist your change...
<Ox0dea> grepwood: %w[htop nano].each { |pkg| package(pkg) { action :install } }
<Ox0dea> But just pretend you didn't see that, because it's gross.
ruby-lang783 has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<grepwood> Ox0dea, but I like it better that way...
th_masv has joined #ruby
<maloik> it's not about the persisting really, but for some reason I really did not expect the value of the original object to change
<maloik> it seems that's completely normal
<ruby-lang783> hello
sdwrage has joined #ruby
<slash_nick> maloik: i'm speaking to the value returning to it's original state when you restart your console
<apeiros> norc: ahahaha, installation works now. but connecting fails due to oracle network admin being in another location than before. and I have no friggin clue where :-S
<maloik> I never ran into problems with this before, but clearly this is a case for #dup
<norc> apeiros: Haha. Just write a new TNS file?
UniFreak has joined #ruby
<[spoiler]> Yo yo
banister has quit [Read error: Connection reset by peer]
linuxboy_ has quit [Remote host closed the connection]
<apeiros> norc: I do that like once every 3 years. I'm trying to puzzle together where the hell I'd have to put that and what it has to contain >.<
linuxboytoo has joined #ruby
_stu_ has joined #ruby
<Ox0dea> sarkis: Faraday does not impose a default timeout.
atomical has joined #ruby
<Ox0dea> It passes along any you explicitly define, but it's otherwise up to the underlying HTTP library.
purplexed- has joined #ruby
purplexed- has joined #ruby
atomical has quit [Client Quit]
<apeiros> norc: yay, thank god for workplace buddies who still have the file :D
<sarkis> Ox0dea: thanks - i thought so .. i was looking at httpclient - which i thinks the default
BSaboia has joined #ruby
arup_r_ has joined #ruby
atomical has joined #ruby
<ruby-lang783> has anyone used the arel gem?
arup_r has quit [Ping timeout: 260 seconds]
<apeiros> hrmpf, still the same error though. I'm close to exploding. or imploding. not sure which.
mh_laaks1 has left #ruby [#ruby]
linuxboytoo has quit [Ping timeout: 264 seconds]
aryaching has quit [Read error: No route to host]
gregf has joined #ruby
<Ox0dea> >> nil::TRUE
<ruboto> Ox0dea # => true (https://eval.in/472716)
linuxboytoo has joined #ruby
yes`r has quit [Ping timeout: 264 seconds]
<ruby-lang783> has anyne used arel gem to generate complex sql queries
malcolmva has quit [Ping timeout: 265 seconds]
babblebre has joined #ruby
aryaching has joined #ruby
allcentury has joined #ruby
rgtk has joined #ruby
XenuLives has quit [Quit: Leaving]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spiman_ has quit [Remote host closed the connection]
gregf has quit [Client Quit]
spiman has joined #ruby
jamto11 has joined #ruby
gustav_ has quit [Remote host closed the connection]
<norc> apeiros: I know your pain.
<norc> apeiros: It was really annoying since last time I had to recompile everything for each try.
<apeiros> with regards to wasted time to figure out how the f'ck it is supposed to work, oracle takes the cake by light years
bweston92 has joined #ruby
weemsledeux has joined #ruby
uri has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
Joke_Time has joined #ruby
roshanavand has joined #ruby
shinnya has joined #ruby
doodleha_ has joined #ruby
atomical_ has joined #ruby
Mia has joined #ruby
jamto11 has quit [Ping timeout: 272 seconds]
crazydiamond has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
gregf has joined #ruby
cornerma1 has joined #ruby
mary5030 has joined #ruby
<Joke_Time> Is Matz still improving ruby or not?
<Ox0dea> "Light-years isn't time... It measures distance!" -- Camper Liam, Pewter City Gym
th_masv has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sarkis> Joke_Time: no - move on to Golang
atomical has quit [Ping timeout: 255 seconds]
<Joke_Time> sarkis: Are you sure about that?
cornerman has quit [Ping timeout: 250 seconds]
arup_r_ is now known as arup_r
cornerma1 is now known as cornerman
malcolmva has joined #ruby
<sarkis> 100%
<sarkis> ruby can't be improved
<Joke_Time> why?
<sarkis> little gremlins in the code that change your variables on every run
chouhoulis has joined #ruby
<[spoiler]> lol
whippythellama has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
<[spoiler]> Joke_Time: could you be more precise what you mean with "Improving ruby?"
<[spoiler]> Does matz still work on Ruby? Yes
moeabdol has quit [Quit: WeeChat 1.3]
<sarkis> obviously trolling :)
<[spoiler]> sarkis: your answer wasn't too wrong either :P
<Joke_Time> [spoiler]: Is Matz doing his job to develop ruby or he lost hope for ruby?
dfinninger has joined #ruby
moeabdol has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
spiman has quit []
rubie has joined #ruby
<Joke_Time> Is Matz doing his job to develop ruby or he lost hope for ruby?
<sarkis> you're the worst troll i've seen in some time :D
<sarkis> so many better topics to troll
<polysics> I am pretty much sure that Ruby is a post-PhD project to most of the Japanese team, nothing more
tagrudev has quit [Remote host closed the connection]
<Bish> i keep reading about Array.sum, did it get removed?
<polysics> last time I met Matz he felt blissfully oblivious to an entire economy depending on Ruby :)
<[spoiler]> Joke_Time: lol. He's still working on Ruby, nobody lost any hope
anisha has quit [Quit: Leaving]
<polysics> it was around 2.0 design time
<polysics> but it's not like Matz is the only one working on Ruby either
<[spoiler]> ^
<[spoiler]> there's commit monster
pdoherty has joined #ruby
<[spoiler]> Let's not forget that beast
arup_r has quit [Ping timeout: 246 seconds]
gustav_ has joined #ruby
norc has quit [Ping timeout: 246 seconds]
<polysics> Matz himself is not as involved as he used to, he likes to dabble in things like mruby
arup_r has joined #ruby
<[spoiler]> mruby is <3, actually
arup_r is now known as Guest21079
<Bish> i feel stupid for this question, how do i sum an array?
<yorickpeterse> These days nobu probably writes most of the code
Edward_ has left #ruby ["Leaving"]
<[spoiler]> I even read one of his posts in Japanese about it (he was explaining some cool tricks)
<Joke_Time> I'm glad that ruby still actively develop T_T
<[spoiler]> Bish: Array#sum
Quandl has joined #ruby
aryaching has joined #ruby
<Bish> undefined method `sum' on an instance of Array
<[spoiler]> what really
<Bish> >> [1,2,3].sum
<[spoiler]> Array has no sum?
<ruboto> Bish # => undefined method `sum' for [1, 2, 3]:Array (NoMethodError) ...check link for more (https://eval.in/472732)
Quandl has quit [Client Quit]
<[spoiler]> use inject then
Yiota has joined #ruby
<Bish> >> [1,2,3].inject(&:+)
<ruboto> Bish # => 6 (https://eval.in/472733)
<polysics> mruby is pointless
<[spoiler]> you can use :+ without the &, too
<polysics> but might turn into something useful at some point
<[spoiler]> >> [1, 2, 3].inject :+
<ruboto> [spoiler] # => 6 (https://eval.in/472735)
yoongkang has joined #ruby
<Bish> because inject does check if first param is a symbol?
<[spoiler]> Yep
Guest21079 is now known as arup_r
<polysics> and yes, Nakada is probably the one who is actually working on Ruby the most these days
dhollinger has joined #ruby
arup_r has quit [Remote host closed the connection]
Joke_Time has quit [Quit: Page closed]
<[spoiler]> also if no memo is passed, the first element will be the memo (in case you want the product, 0 would be a bad memo)
<[spoiler]> but you couls use 1 I suppose
<[spoiler]> could
momomomomo has joined #ruby
Xeago has joined #ruby
<polysics> is a "Ruby is dead" post up on HN? Usually people come asking after that
gustav_ has quit [Remote host closed the connection]
<[spoiler]> polysics: LOL
* [spoiler] checks
<[spoiler]> Nope
<polysics> weird. Maybe Reddit :D
<[spoiler]> I am drinking this green tea and I keep farting
<polysics> completely OT and out of the blue, but since this is #ruby maybe someone can point me in the right direction
<polysics> I hate Sublime editing mode but I can't do without search in files
<polysics> is there a Vim plugin that works as good?
<Ox0dea> Wat.
bkxd has joined #ruby
lavros has quit [Quit: leaving]
<Ox0dea> polysics: In Vim, you just hit / in normal mode and start typing your search?
<[spoiler]> polysics: there's search mode in vim
<polysics> my job mostly involves diving into other people's code bases
<[spoiler]> it uses regexp
jimbeaudoin has joined #ruby
<Ox0dea> Bram's definition, anyhow.
Xeago has quit [Ping timeout: 240 seconds]
<[spoiler]> if you need search+replace: `:s%/regexp/replacement/g`
lavros has joined #ruby
<polysics> "search in files" in ST gives you results in the selected folder(s) and allows you to open the files with a click/command
<[spoiler]> erm %s not s%
momomomomo has quit [Ping timeout: 240 seconds]
<[spoiler]> Oh that
<[spoiler]> Not sure if vim has that
<polysics> think about doing something an extensive refactor
yoongkang has quit [Ping timeout: 276 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
<polysics> *something liek
<polysics> aaaand a typo again. Well, you get it. :P
<Ox0dea> There are several plugins for linking `grepprg` results with the Quickfix window.
nofxx has joined #ruby
<[spoiler]> I generally use Atom lately; I only use vim when I CBA to wait for atom to start up and need something done quickly
<polysics> ST has also developed a nasty habit of crashing
<Ox0dea> I have never even heard of Vim crashing.
<polysics> that's one of the reasons why I like it. At one point, I was using ST to find stuff then vim to edit the files
slawrence00 has joined #ruby
<Ox0dea> Jesus.
synthroid has quit [Remote host closed the connection]
<polysics> ST "Search in files" is THAT good :)
<[spoiler]> Why not grep
chouhoulis has joined #ruby
treehug88 has joined #ruby
<Ox0dea> polysics: I don't have any spoons to feed you, but Unite + <your favorite 'grepprg'> should be all you need to replace ST's "Search in files" entirely.
th_masv has joined #ruby
<polysics> Ox0dea: a google pointer is enough. Thanks!
<Ox0dea> Sure thing. <3
axl_ has joined #ruby
<Ox0dea> Unite is far and away the heaviest plugin I use, but it's *that* good. :)
beauby has quit [Ping timeout: 260 seconds]
dkphenom has joined #ruby
voodo has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
synthroid has joined #ruby
rgtk has quit [Remote host closed the connection]
roshanavand has joined #ruby
grepwood has quit [Quit: Leaving]
ismaelga has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
aganov has quit [Quit: Leaving]
momomomomo has joined #ruby
htmldrum has joined #ruby
linuxboytoo has quit [Remote host closed the connection]
<gregf_> polysics: you can also use ack
<Ox0dea> gregf_: Did you mean ag?
<gregf_> no no. 'ack'
<Ox0dea> No.
linuxboytoo has joined #ruby
<Ox0dea> ag > sift > ack > grep
<Ox0dea> In the general case, at any rate.
arup_r has joined #ruby
arup_r is now known as Guest43062
mic_e_ has quit [Remote host closed the connection]
<polysics> I think my main thing is getting Unite to do what ST does, the search program is not as important (though of course the better it is the better :) )
skade has joined #ruby
<Ox0dea> You'll have to get a feel for Vim's definition of "window" and "buffer", but that comes easily enough with intentful exposure.
<Ox0dea> *definitions
corserval has joined #ruby
bkxd has quit [Ping timeout: 272 seconds]
<Ox0dea> *those
<Ox0dea> English are hard. :<
<Ox0dea> *come
gambl0re has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
linuxboytoo has quit [Ping timeout: 244 seconds]
moeabdol has quit [Quit: WeeChat 1.3]
nofxx has quit [Remote host closed the connection]
gustav_ has joined #ruby
B1n4r10 has joined #ruby
FilipeChagas has quit [Quit: WeeChat 1.3]
Kruppe- has quit [Ping timeout: 255 seconds]
Aswebb_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
_stu_ has quit [Quit: _stu_]
<[spoiler]> salad sauce packaging sprayed EVERYWHERE
<[spoiler]> er wrong channel
<Bish> is there a neat way i can pick by chance in ruby?
Kruppe has joined #ruby
<[spoiler]> Bish: #sample
<Bish> predefined chance*
<polysics> ...or is it? we've had people saying worse things.
<Bish> like {string:probability,string:probability}
shinenelson has quit [Quit: Connection closed for inactivity]
gustav_ has quit [Remote host closed the connection]
<[spoiler]> er, not sure what that means so not sure how to help :o
<Ox0dea> Bish: Are you concerned with performance?
<Bish> no
<Ox0dea> The dumb but technically correct way to do it is to create an Array containing `n` copies of each element and then just #sample that.
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
<Ox0dea> `n` there being the various probabilities.
<[spoiler]> >> ["a"]*5 + ["b"]*3
<ruboto> [spoiler] # => ["a", "a", "a", "a", "a", "b", "b", "b"] (https://eval.in/472791)
agent_white has quit [Read error: Connection reset by peer]
cdg has quit [Remote host closed the connection]
s2013 has joined #ruby
bkxd has joined #ruby
cdg has joined #ruby
<Bish> i got them in very small percentages, can't use *
<Ox0dea> Yes, you can.
pawnbox has quit [Remote host closed the connection]
agent_white has joined #ruby
<Bish> ueh?
<Ox0dea> Normalization to the rescue!
<[spoiler]> if you know the population/sample size you can
DoubleMalt has quit [Remote host closed the connection]
nofxx has joined #ruby
linuxboytoo has joined #ruby
<Ox0dea> Bish: The proper way to do it is to sum the probabilities, grab a random number in that range, and determine which "fencepost" it maps to and choose the element there.
thejoecarroll has quit [Ping timeout: 255 seconds]
ismaelga has quit [Remote host closed the connection]
linuxboy_ has joined #ruby
jamto11 has joined #ruby
jamto11 has quit [Remote host closed the connection]
jamto11 has joined #ruby
<[spoiler]> There's an example here for weighted sampling (i think that is what you might need): http://ruby-doc.org/core-2.2.3/Enumerable.html#method-i-max_by
Voker57 has joined #ruby
ismaelga has joined #ruby
CrazyEddy has joined #ruby
ianchentw has quit [Ping timeout: 260 seconds]
rgtk has joined #ruby
thejoecarroll has joined #ruby
polysics has quit [Remote host closed the connection]
polysics has joined #ruby
<Ox0dea> [spoiler]: The weights are the elements themselves there, which is hardly what Bish is going for.
linuxboytoo has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
ccooke_ is now known as ccooke
bkxd has quit [Ping timeout: 272 seconds]
jamto11_ has joined #ruby
ismaelga has quit [Remote host closed the connection]
FernandoBasso has quit [Quit: WeeChat 1.3]
<Ox0dea> Never mind.
<[spoiler]> the example can be modified tho
karapetyan has quit [Remote host closed the connection]
nettoweb has joined #ruby
<Ox0dea> Sure, but the definition of #wsample is in fact correct.
<Ox0dea> The block is for mapping values to weights.
jamto11 has quit [Ping timeout: 244 seconds]
<Ox0dea> Cribbing it verbatim would look a little weird given that Bish has a map of probabilities.
ismaelga has joined #ruby
pawnbox has joined #ruby
cajone_afk is now known as cajone
polysics has quit [Ping timeout: 246 seconds]
<Bish> can you explain the dumb way to me?
<Bish> filling an array with 0.0003 samples of an object.
djbkd has quit [Ping timeout: 240 seconds]
<Bish> oh sorry, i disconnected for a second, didn't see the link
roshanav_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
<Bish> yeah that's cool, still i would be interested in the dumb way, just for the kicks
ElSif has joined #ruby
<Bish> i like ruby more than math, even if it's slow
Guest97_ has joined #ruby
FernandoBasso has joined #ruby
pawnbox has quit [Ping timeout: 272 seconds]
<Ox0dea> Bish: You'd have to normalize 0.0003 to 3, meaning you'd need to multiply all the other probabilities by 10_000 as well, meaning this isn't such a good idea.
<Bish> yeah i thought of that way
pawnbox has joined #ruby
roshanav_ has quit [Ping timeout: 272 seconds]
<[spoiler]> Bish: you can multiply by 10K and say it's a "big data problem" :D
sinkensabe has quit [Remote host closed the connection]
bubbys has quit [Ping timeout: 252 seconds]
[Butch] has joined #ruby
<Bish> i want to try it, let's see if my laptop handles it
bubbys has joined #ruby
Guest43062 is now known as arup_r
rodfersou is now known as rodfersou|lunch
tubulife- has joined #ruby
<Bish> okay, i guess i won't
<Bish> smallest percentage is 155220665^-1
k3asd` has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
TomyWork has quit [Remote host closed the connection]
Melpaws has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
jottr has quit [Ping timeout: 246 seconds]
s2013 has joined #ruby
<[spoiler]> There shold totally be something like `wsample_by {|e| e.some_property }`
ismaelga has quit [Remote host closed the connection]
pandaant has joined #ruby
pandaant has quit [Remote host closed the connection]
gregf has joined #ruby
Aswebb_ has quit []
unrar has quit [Quit: Leaving]
psy_ has joined #ruby
<[spoiler]> Bish: you could maybe discriminate (is that what it's called in English?) the really small probabilities
Guest97_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Bish: https://eval.in/472815
<Ox0dea> I think it's pretty nifty, if a little verbose.
s2013 has quit [Client Quit]
<Ox0dea> Array really should have #scanl.
vdamewood has joined #ruby
<Ox0dea> Ignore that explicit zero value I used; it should obviously be a parameter.
Xeago has joined #ruby
s2013 has joined #ruby
<Ox0dea> Ignore also all those damned `:b`s in the example output; just an unlucky roll of the dice.
<Ox0dea> Er, no, it seems it's actually wrong. :<
<Ox0dea> I'm gonna get more coffee.
<[spoiler]> LOL
<Bish> thank you, i will try to understand it, after i finish my work
<[spoiler]> Ox0dea: "I NEED MORE FUEL!"
rolfb has joined #ruby
<Bish> i took years of cs math, still a retard when it comes to this problem, i actually never solved it
bMalum has quit [Quit: bMalum]
<[spoiler]> Bish: it's more statistics than maths, imho
<Bish> well and statistic is.........
gustav_ has joined #ruby
<[spoiler]> it's wannabe maths
voodo is now known as voodo|away
<[spoiler]> :P
rolfb has quit [Client Quit]
<agent_white> Is this the right way to create rake tasks for a gem to create a database? https://gist.github.com/jakenotjacob/5c69f957973d8b7aa29d
gambl0re has quit [Read error: Connection reset by peer]
bMalum has joined #ruby
gambl0re has joined #ruby
<agent_white> (Attempting to flesh out my first 'gem', or at least project structured as one, so I'm figuring I should mimick Rails)
Xeago has quit [Ping timeout: 240 seconds]
linuxboy_ has quit [Remote host closed the connection]
<[spoiler]> agent_white: it looks OK, but it looks like you'll be repeating a lot of code
<[spoiler]> other than that, if it works it's good
linuxboytoo has joined #ruby
<agent_white> [spoiler]: I noticed that right off the bat as well. So I was starting to search "rake helpers"... should I be searching for that?
Ilyes512 has joined #ruby
<agent_white> Or just move out the "create default db" into a method inside Rakefile?
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[spoiler]> You could write a small rake helper, yeah and then have a format for the schemes, or--yes that
<agent_white> Which is better?
<[spoiler]> Depends on which is less complex to work with
_stu_ has joined #ruby
<[spoiler]> and how much implementation overhead vs usefulness you get
Pupp3tm4st3r has quit [Ping timeout: 260 seconds]
RegulationD has joined #ruby
<[spoiler]> If you don't need to generate a bazillion databases and don't need something insanely complex and versatile, just make it a method inside the rake file
<[spoiler]> a bazillion tables*
<agent_white> [spoiler]: Ah alrighty! Yeah this is just a IRC bot I'm making; here I'm just making a table for factoids. Not complex by any means, just making this to try and teach myself best practices.
Mia has quit [Read error: Connection reset by peer]
<agent_white> (a relational db is overkill as is, but just moving to it from sdbm just... for shits. :P)
<[spoiler]> In that case, 1 method to create the table(s) and 1 method which accepts seeds
linuxboytoo has quit [Ping timeout: 260 seconds]
gagrio-mtg has quit [Remote host closed the connection]
<agent_white> [spoiler]: Good deal. Thank you :D
<[spoiler]> Np! :)
gambl0re has quit [Read error: Connection reset by peer]
rubie has quit [Remote host closed the connection]
gambl0re has joined #ruby
nofxx has quit [Remote host closed the connection]
ismaelga has joined #ruby
<agent_white> Also, quick question: I assigned the sequel/sqlite db to a constant ("DB"). Is that ok? Or should I change that?
baweaver has quit [Remote host closed the connection]
voodo|away is now known as voodo
djbkd has joined #ruby
sdwrage has quit [Quit: Leaving]
dopie has joined #ruby
gagrio has joined #ruby
Cache_Money has joined #ruby
<apeiros> agent_white: that's fine.
<apeiros> depends a bit on the details on how fine it is :)
Channel6 has joined #ruby
toretore has joined #ruby
<agent_white> apeiros: Okey doke! Thank you... I think you and I might've spoken a few weeks ago about my config for this bot being a constant?
toretore has quit [Client Quit]
<agent_white> Or maybe it was someone else... anyways. Thank you :)
<apeiros> agent_white: sure, the better way is to have it on the relevant instance
toretore has joined #ruby
<apeiros> if I skimmed the backlog correctly, you're working on an irc bot?
<apeiros> in that case, I'd have Bot#db and #config
<apeiros> and have the bot instance available in all relevant places.
snockerton has joined #ruby
<agent_white> apeiros: Yup! I've rewritten it twice, though it worked both times... just trying to learn about programming patterns. So for this third go-round I'm attempting... the Command pattern... I think. :P
gagrio has quit [Client Quit]
<agent_white> Ah alrighty
<apeiros> doing it that way also teaches you a lot about dependencies.
rubie has joined #ruby
<apeiros> whenever you think "shit, no access to bot and hence db/config in this place"
ismaelga has quit [Remote host closed the connection]
<apeiros> and in all those cases you should ask yourself why it doesn't have (or even shouldn't have) access to the bot, but you want to have access to the db
gustav_ has quit [Remote host closed the connection]
bkxd has joined #ruby
<agent_white> Aye :) I'm trying to wrap my head around that... my original version passed the Bot class (holding EVERYTHING) everywhere... and it didn't feel right.
<agent_white> erm, Bot instance, rather
RobertBirnie has quit [Quit: Textual IRC Client: www.textualapp.com]
polysics has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
ismaelga has joined #ruby
cirenyc has joined #ruby
Guest97_ has joined #ruby
snockerton has left #ruby [#ruby]
tubulife- has quit [Ping timeout: 252 seconds]
Gnut has joined #ruby
shellie_ has joined #ruby
<Bish> Ox0dea: i feel so dumb for asking, but i gotta finish quick ;; how do i reverse the probability
<Ox0dea> Bish: Subtract each from the total.
cwong_on_irc has joined #ruby
<Bish> well if i do that, it doesn't sum to 1 anymore.. or im doing it wrong
shinnya has quit [Ping timeout: 272 seconds]
<Bish> but i mean if i have 2 0.3 they will both become 0.7, i feel so stupid.. jesus.
maloik has quit [Ping timeout: 276 seconds]
<Ox0dea> Hm, are you sure you want to reverse the probabilities across the board?
bkxd has quit [Ping timeout: 250 seconds]
<Bish> yes, im having them the wrong order the whole time , ofc i could change them at the point where i am creating them
<Ox0dea> I'm not even sure that's a well-defined operation.
<Bish> but i rather would convince myself that i finished 7th grade math
<Bish> OH it's not solveable, phew, im a lucky dude
Guest97_ has quit [Client Quit]
Myman has joined #ruby
<Bish> Ox0dea: is your algo changeable so it does pick small probabilities first D:
bweston92 has quit [Read error: Connection reset by peer]
<Ox0dea> If it were correct, you'd probably be able to get away with just flipping the comparison.
<Ox0dea> (But it is not correct.)
mistermocha has joined #ruby
Myman has quit [Client Quit]
rodfersou|lunch is now known as rodfersou
NeverDie has quit [Read error: Connection reset by peer]
polysics has quit []
<Bish> yeah i tried that.
<Bish> geez, i spent all this time solving this problem, in the end you solved it for me, and now it's the wrong way around
<Ox0dea> Bish: Oh, you didn't initially say that your probabilities summed to 1; just subtract each of them from 1, in that case.
<Ox0dea> Wait, no, dammit.
* Ox0dea looks for his brain.
<Bish> yes. my thought.
last_staff has quit [Read error: Connection reset by peer]
Myman has joined #ruby
last_staff has joined #ruby
last_staff has quit [Client Quit]
solenoids has quit [Ping timeout: 265 seconds]
<Ox0dea> But, I mean, it's a really strange thing to want to do; "reversing the probabilities" across the whole collection doesn't make sense.
Myman has quit [Client Quit]
last_staff has joined #ruby
<Bish> i created the percentages from a rank
<Ox0dea> The opposite of 10% is 90%.
synthroid has quit [Remote host closed the connection]
<Bish> small numbers were good, high numbers were bad, i got it wrong in the start
<Bish> i thought high ranks => good.
allcentury has quit [Ping timeout: 240 seconds]
<Ox0dea> Negate all the things?
<Bish> define negate pls, im done ;;
<Bish> like bitwise?
jottr has joined #ruby
<Ox0dea> If you find something is backwards, ya flip it around, yeah?
jottr_ has quit [Ping timeout: 240 seconds]
<Bish> my brain melted, how do i flip them around
sondr3 has joined #ruby
<Bish> .each |e| sum-e ?
<Bish> is that statisticially correct?
<Ox0dea> Whale, I was only talking about unary negation.
<Ox0dea> >> [-3,-2,-1].map(&:-@).sort
<ruboto> Ox0dea # => [1, 2, 3] (https://eval.in/472825)
bweston92 has joined #ruby
ixti has joined #ruby
<Bish> *tries*
<shevy> *cries*
<Ox0dea> It was just a demonstration of the principle.
linocisco has joined #ruby
<linocisco> hi all
<Ox0dea> "Negation" isn't as directly applicable to probabilities.
<Bish> shevy: because of me? sorry, i feel worse i promise
<shevy> it just rhymed
<shevy> could have gone with *fries* as well
<shevy> or *lies* !!!
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Bish> Ox0dea: well i can't do it, sorry, haaalpü
karapetyan has joined #ruby
<linocisco> for GUI application , what is good? anything better than FXruby?
gustav_ has joined #ruby
<shevy> linocisco ruby-gnome
dmitch has joined #ruby
<Bish> lowest is 101 highest is 22922416 sum is 15677287259
jottr_ has joined #ruby
<Ox0dea> Ayes, buys, cries, dies, eyes, fries, guys, highs, ..., jives, knives, lives, mines, nines, opines, prize, ..., rise, sais, tithes, uguyz, vies, wives, xylophones, ..., zebras.
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Bish> i could substract max of all of them, but i don't know if that "reverses" the percentage correctly
frem has joined #ruby
<Ox0dea> I'm pretty sure it doesn't. :<
<Bish> DAYUM WHAT DO I DO
atomical has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
yes`r has joined #ruby
gustav_ has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 240 seconds]
goodcodeguy has joined #ruby
<Ox0dea> Set it on fire.
atomical has quit [Client Quit]
Cache_Money_ has joined #ruby
karapetyan has quit [Ping timeout: 246 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Bish: This could be you: http://gunshowcomic.com/648
<Bish> pls, for the love of god, help me ;;
<Bish> i told my boss "this is easy, give me 30 mins"
Cache_Money has quit [Ping timeout: 260 seconds]
Cache_Money_ is now known as Cache_Money
<Ox0dea> Are you displaying these data somewhere?
<linocisco> is RubyMotion worth to try without knowing ruby?
BSaboia has quit [Read error: Connection reset by peer]
BSaboia has joined #ruby
Silicium has quit [Quit: leaving]
<Bish> Ox0dea: unfortunetely not
roshanavand has joined #ruby
<Bish> unfortunately*
<havenwood> linocisco: Yeah, there's a free version now and it's fun to try out.
atomical has joined #ruby
<linocisco> havenwood, i thought it is totally free ever
<havenwood> linocisco: No, before Sept there wsn't a free starter edition to try out.
solenoids has joined #ruby
nanoz has joined #ruby
<havenwood> linocisco: Now there is! (Can't do iWatch but can do iOS and Android.)
Rodya_ has joined #ruby
<linocisco> havenwood, have u tried? starter has limitation?
<havenwood> linocisco: Yeah, I had fun trying it. I'd like to play with it more. The starter edition does have limitations but it seemed functional enough to make real things.
Xeago has joined #ruby
<linocisco> havenwood, I am reading about it. splash screen is always there in free edition. what else ruby community use to write apple mobile apps?
aryaching has joined #ruby
tildes has joined #ruby
kostadinss has quit [Quit: Connection closed for inactivity]
_blizzy_ has quit [Quit: Leaving]
ruby-lang783 has quit [Ping timeout: 246 seconds]
trekky has quit [Ping timeout: 246 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
<Ox0dea> They don't...
senayar has quit []
<Bish> linocisco: ruboto is fun
momomomomo has quit [Quit: momomomomo]
<linocisco> Bish, thanks . let me check if it is free ever
k3asd` has quit [Ping timeout: 272 seconds]
<Bish> Ox0dea: tell me, what would you in my siutation, since you're smart, please.
Cache_Money has quit [Read error: Connection reset by peer]
<Bish> oh apple, i didn't read apple, sorry
<shevy> Ox0dea is smart but crazy
<Ox0dea> Bish: I have already advised you to commit arson.
<Bish> linocisco: you're lost.
<Bish> im crazy and stupid, we make a good team
amclain has joined #ruby
<Bish> ;;
<Ox0dea> linocisco: I suppose there must be some extremely small domain where Ruby is the right tool on iPhones, but I don't know its name.
Cache_Money has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
<linocisco> Bish, ok. good to know. Ox0dea thanks for your idea
<Ox0dea> Which idea was that...?
<shevy> the one to code naked
<linocisco> Ox0dea, there might be others you dont know
lavros has quit [Quit: leaving]
jaequery has joined #ruby
<Melpaws> i want to run mongo import inside ruby script. If i use exec or system, how can i pass it predifined variables? (like db , collection, file)
<Ox0dea> linocisco: If it exists, there's definitely only one. :P
<Ox0dea> Melpaws: Environment variables.
tmtwd has joined #ruby
pawnbox has quit [Remote host closed the connection]
SHyx0rmZ has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
<Bish> Ox0dea: is there no way to do it?
<Ox0dea> Bish: It is definitely impossible.
idefine has joined #ruby
joonty has quit [Quit: joonty]
<Melpaws> @Ox0dea : guessing this is way off :
yoongkang has joined #ruby
<Melpaws> system({"db => @@conn"}, {"collection" => "@@coll"},{ "file" => "@@tmp_json"}, mongoimport -d $db -c $collection --file $file )
<Bish> Ox0dea: but you do not want to help me anymore :/?
<Ox0dea> Bish: How can I help you with the impossible?
<Bish> wow, i read possible.. nvm
sepp2k has quit [Quit: Leaving.]
idefine has quit [Read error: Connection reset by peer]
nofxx has joined #ruby
allcentury has joined #ruby
<Ox0dea> Melpaws: Pretty far off, yeah.
<Ox0dea> Environment variables are "stringly-typed".
<Melpaws> boo. I 'll keep reading up then
jschmid has quit [Ping timeout: 272 seconds]
xcesariox has joined #ruby
jamto11_ has quit [Remote host closed the connection]
skweek has joined #ruby
Thiensubs has joined #ruby
pdoherty has quit [Ping timeout: 265 seconds]
xcesariox has quit [Client Quit]
stannard has joined #ruby
pawnbox has joined #ruby
yoongkang has quit [Ping timeout: 276 seconds]
dfinninger has quit [Remote host closed the connection]
linuxboytoo has joined #ruby
synthroid has joined #ruby
idefine has joined #ruby
mjuszczak has joined #ruby
_stu_ has quit [Quit: _stu_]
towski_ has joined #ruby
Thiensubs has quit [Ping timeout: 246 seconds]
wldcordeiro has quit [Ping timeout: 240 seconds]
aufi has quit [Quit: Konversation terminated!]
pdoherty has joined #ruby
<linocisco> hi all, honestly, I am new to advanced programming rather than hello world and some syntax of if , else, displaying (sum,avg,min,max) in C, C++ so far, I could no longer wait to write ruby and any good db driven web app, how should I learn and which book I should read first?
ismaelga has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 272 seconds]
vire has quit [Ping timeout: 272 seconds]
yes`r has quit [Ping timeout: 265 seconds]
cmhobbs has joined #ruby
dtordable has quit [Remote host closed the connection]
baweaver has joined #ruby
<cmhobbs> i've got a relatively straightforward gem-style directory structure and i'd like to add a ruby script to it to fire up the program from the command line. when i toss something into bin/ under my project directory, require (or require_relative) the main file under lib/, that file can't seem to locate any of the files it requires. how can i get around this?
ismaelga has joined #ruby
momomomomo has joined #ruby
<cmhobbs> sorry for such a complicated statement, i'm not sure else how to describe it
<cmhobbs> i want to call bin/somescript from the command line and have it load up everything under lib/ and execute part of my code
<cmhobbs> for what it's worth, i can load up everything under lib/ in pry and it works fine
kirun has joined #ruby
nateberkopec has quit [Quit: Leaving...]
baweaver has quit [Ping timeout: 240 seconds]
drewo has joined #ruby
symm- has joined #ruby
NeverDie has joined #ruby
tater has quit [Read error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number]
<nofxx> cmhobbs: actually, just require 'mygem' will work, but, for testing and other purposes use this:
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tater has joined #ruby
tater has quit [Changing host]
tater has joined #ruby
dtordable has joined #ruby
<nofxx> $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) after you shebang on the bin
<cmhobbs> it's not a gem
<cmhobbs> but yeah, i'm noodling around with load path right now
<cmhobbs> i don't have a gemspec file
<nofxx> cmhobbs: same, you just need to have the relative path on load path
<cmhobbs> thanks!
linuxboytoo has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 252 seconds]
<nofxx> cmhobbs: so your lib/mystuff.rb can require things as it should: require 'mystuff/some' , require'mystuff/another'
<cmhobbs> right
atomical has joined #ruby
<cmhobbs> this works, thanks for the input
Channel6 has quit [Ping timeout: 272 seconds]
TPBallbag has quit [Quit: don't try and hack my account Ballkenende]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<cmhobbs> i never can remember that incantation in its entirety
karapetyan has joined #ruby
xcesariox has joined #ruby
<nofxx> neither I, I always start with `head git/some/bin >> new/bin` hehe
<cmhobbs> ha
benlovell has quit [Ping timeout: 272 seconds]
linuxboy_ has joined #ruby
dmolina has quit [Quit: Leaving.]
<nofxx> linocisco: learn to program by chris pine
<nofxx> followed by why
<nofxx> 's poingnant guide
<nofxx> linocisco: then, just fire up a terminal and a editor and do a lil program with sequel or any other orm/odm
dstarh has joined #ruby
xcesariox has quit [Client Quit]
dealpete has joined #ruby
cmhobbs has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
<linocisco> nofxx, to learn ruby, i should read learn to program first? that will take so long to reach. the idea is my learning ruby is to learn rails without any problem. so to even learn ruby, there is one step ahead. ohmy gold
<linocisco> god
The_Phoenix has quit [Read error: Connection reset by peer]
stan has quit [Ping timeout: 260 seconds]
<nofxx> linocisco: did not understand what y/r saying. But if you mean the book title, it could be learn to program in ruby, it's 100% ruby
BSaboia has quit [Ping timeout: 276 seconds]
<[spoiler]> linocisco: you need to know programming in Ruby to use Rails (well, to use is effectively at least).
goodcodeguy has joined #ruby
drewo has quit [Quit: WeeChat 1.2]
grill has joined #ruby
<linocisco> nofxx, sorry I confused . i think learn to program only
zeroDivisible has quit [Quit: WeeChat 1.3]
eminencehc has joined #ruby
<linocisco> [spoiler], thanks
tildes has quit [Ping timeout: 264 seconds]
krz has quit [Quit: WeeChat 1.2]
tjohnson has quit [Quit: Connection closed for inactivity]
_djbkd has joined #ruby
<Bish> Ox0dea: i think your weighted sample has an error, too
diegoaguilar has quit [Ping timeout: 260 seconds]
<Bish> the thing with the highest probability never happens :D
<Bish> atleast in 45k tries, while it should be in every 10th
stamina has quit [Quit: WeeChat 1.3]
techietrash has joined #ruby
_djbkd has quit [Ping timeout: 264 seconds]
UniFreak has quit [Ping timeout: 272 seconds]
dravine has quit [Ping timeout: 265 seconds]
ornerymoose has joined #ruby
eminencehc has quit [Remote host closed the connection]
Alayde has joined #ruby
<[spoiler]> Bish: he did say it had an error
Alayde has left #ruby [#ruby]
gizmore has joined #ruby
karapetyan has quit [Remote host closed the connection]
<shevy> are you people still erroring it out here
<ornerymoose> Anyone here familiar with ruby-net-ldap? I can connect just fine, so credentials aren’t the issue. When I run a simple ruby script for an LDAP search, ‘message="No Such Object”’ is being returned. Any idea? I had my IT Admin send me a screen shot of attributes, and I’m doing a search on one that certainly exists: sAMAccountName
jamto11 has joined #ruby
eminencehc has joined #ruby
aryaching has quit []
yes`r has joined #ruby
jottr_ has joined #ruby
Xeago has quit [Remote host closed the connection]
dravine has joined #ruby
cjbottaro has joined #ruby
ismaelga has quit [Remote host closed the connection]
jamto11_ has joined #ruby
voodo has quit [Quit: Leaving...]
beatboxchad has joined #ruby
wldcordeiro has joined #ruby
<beatboxchad> yo
baweaver has joined #ruby
jamto11 has quit [Ping timeout: 260 seconds]
dravine_ has joined #ruby
baweaver has joined #ruby
B1n4r10 has joined #ruby
dravine has quit [Ping timeout: 240 seconds]
dravine_ is now known as dravine
diegoaguilar has joined #ruby
weckl has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
dfinninger has joined #ruby
momomomomo has quit [Quit: momomomomo]
linocisco has quit [Quit: Leaving]
tref has joined #ruby
nofxx has quit [Remote host closed the connection]
aeontech has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
howdoicomputer has joined #ruby
shinenelson has joined #ruby
djbkd has quit [Remote host closed the connection]
bigkevmcd has quit [Quit: Outta here...]
nateberkopec has joined #ruby
djbkd has joined #ruby
nateberkopec has quit [Client Quit]
bb010g has joined #ruby
Jackneill has joined #ruby
lsmola has quit [Ping timeout: 260 seconds]
gusrub has joined #ruby
ibouvousaime_ has joined #ruby
VeryBewitching has joined #ruby
ibouvousaime has quit [Ping timeout: 264 seconds]
<VeryBewitching> G'day folks.
EllisTAA has joined #ruby
<blubjr> hi very bewitching
* blubjr its me
lemur has joined #ruby
weemsledeux has joined #ruby
chouhoulis has quit [Remote host closed the connection]
agentmeerkat has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
lemur has quit [Ping timeout: 246 seconds]
tref has quit [Quit: tref]
s2013 has joined #ruby
fantazo has joined #ruby
shinnya has joined #ruby
adac has quit [Ping timeout: 240 seconds]
s2013 has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
ismaelga has joined #ruby
rbowlby has joined #ruby
Lytol has joined #ruby
crazydiamond has joined #ruby
rodfersou has quit [Ping timeout: 240 seconds]
gustav_ has joined #ruby
Meow-J has joined #ruby
rbowlby has quit [Remote host closed the connection]
mic_e has joined #ruby
rakm has joined #ruby
tulak has joined #ruby
lurch_ has quit [Quit: lurch_]
arup_r has quit []
rbowlby has joined #ruby
stannard has quit [Remote host closed the connection]
makaveli0227TL has joined #ruby
benlieb_ has joined #ruby
DoubleMalt has joined #ruby
darkf has quit [Quit: Leaving]
rakm has quit [Client Quit]
tref has joined #ruby
rakm has joined #ruby
fantazo has quit [Ping timeout: 240 seconds]
bMalum has quit [Ping timeout: 240 seconds]
mic_e has quit [Ping timeout: 240 seconds]
rodfersou has joined #ruby
adac has joined #ruby
pdoherty has quit [Ping timeout: 272 seconds]
bMalum has joined #ruby
render___ has joined #ruby
renderf__ has quit [Ping timeout: 265 seconds]
rbowlby has quit [Ping timeout: 260 seconds]
mistermo_ has joined #ruby
Xeago has joined #ruby
rbowlby has joined #ruby
techietrash_ has joined #ruby
mistermocha has quit [Ping timeout: 272 seconds]
mistermo_ has quit [Ping timeout: 265 seconds]
[Butch] has quit [Quit: I'm out . . .]
pdoherty has joined #ruby
mistermocha has joined #ruby
fantazo has joined #ruby
aeontech has quit [Ping timeout: 265 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> dumdedum
techietrash has quit [Quit: Bye! <(^_^<)]
aeontech has joined #ruby
rakm has joined #ruby
joonty has joined #ruby
mistermo_ has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
rbowlby_ has joined #ruby
rbowlby has quit [Ping timeout: 276 seconds]
pawnbox has quit [Read error: Connection reset by peer]
gustav_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
rdark has quit [Ping timeout: 240 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
techietrash_ has quit [Quit: Bye! <(^_^<)]
techietrash has joined #ruby
techietrash has quit [Changing host]
techietrash has joined #ruby
_stu_ has joined #ruby
phildkim has joined #ruby
rdark has joined #ruby
sdothum has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
strgbrew has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
gambl0re has quit [Remote host closed the connection]
gambl0re has joined #ruby
makaveli0227TL has quit [Remote host closed the connection]
jottr_ has joined #ruby
SenpaiSilver has joined #ruby
nettoweb has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
jottr_ has quit [Ping timeout: 260 seconds]
djbkd_ has joined #ruby
radgeRayden__ has joined #ruby
araujo has joined #ruby
nateberkopec has joined #ruby
baweaver has joined #ruby
araujo has quit [Max SendQ exceeded]
Regulati_ has joined #ruby
araujo has joined #ruby
tubulife- has joined #ruby
antoniobeyah has joined #ruby
radgeRayden_ has quit [Ping timeout: 265 seconds]
araujo has quit [Max SendQ exceeded]
djbkd_ has quit [Ping timeout: 250 seconds]
araujo has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
dealpete has quit [Quit: leaving]
pdoherty has quit [Ping timeout: 265 seconds]
djbkd has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
ledestin has joined #ruby
imperator has joined #ruby
gustav_ has joined #ruby
FernandoBasso has quit [Quit: Leaving]
<imperator> Anyone here go to RubyConf? How was it?
quazimodo has joined #ruby
dfdfdf has joined #ruby
s1kx has quit [Quit: bai]
dfdfdf is now known as dodddok
Xeago has quit [Read error: Connection reset by peer]
s1kx has joined #ruby
bkxd has joined #ruby
lemur has joined #ruby
s2013 has joined #ruby
User458764 has joined #ruby
pdoherty has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
moeabdol has joined #ruby
stevednd has quit [Remote host closed the connection]
tubulife- has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
strgbrew has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
cdg has quit [Remote host closed the connection]
lapide_viridi has joined #ruby
stannard has joined #ruby
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper has joined #ruby
tubulife- has joined #ruby
phildkim has quit [Quit: Leaving.]
ismaelga has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
<shevy> havenwood probably knows more
myztic has quit [Ping timeout: 264 seconds]
karapetyan has joined #ruby
tref has quit [Quit: tref]
SCHAAP137 has joined #ruby
kadoppe has quit [Ping timeout: 240 seconds]
xcesariox has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
strgbrew has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
kies has joined #ruby
mistermo_ has quit [Remote host closed the connection]
toretore has quit [Ping timeout: 260 seconds]
xcesariox has quit [Max SendQ exceeded]
jackjackdripper has quit [Quit: Leaving.]
kadoppe has joined #ruby
jackjackdripper has joined #ruby
idefine has joined #ruby
solenoids has quit [Ping timeout: 260 seconds]
yonatankoren has quit [Ping timeout: 276 seconds]
tubulife- has quit [Ping timeout: 260 seconds]
karapetyan has quit [Ping timeout: 264 seconds]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
idefine has quit [Remote host closed the connection]
lapide_viridi has quit [Quit: Leaving]
idefine has joined #ruby
aeontech has quit [Quit: aeontech]
malconis has joined #ruby
djbkd has quit [Remote host closed the connection]
mic_e has joined #ruby
djbkd has joined #ruby
arup_r has joined #ruby
prestorium has quit [Quit: Leaving]
arup_r is now known as Guest64354
maikowblue has quit [Ping timeout: 265 seconds]
Rollabunna has quit [Ping timeout: 260 seconds]
Guest64354 is now known as arup_r
Coldblackice has joined #ruby
yonatankoren has joined #ruby
aibot has quit [Remote host closed the connection]
bkxd has joined #ruby
aibot has joined #ruby
maikowblue has joined #ruby
B1n4r10 has joined #ruby
rodfersou has quit [Quit: leaving]
baweaver has quit [Remote host closed the connection]
Rephiax has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
mistermocha has joined #ruby
RobertBirnie has joined #ruby
mjuszczak has quit []
idefine has quit [Read error: Connection reset by peer]
B1n4r10 has quit [Ping timeout: 260 seconds]
idefine has joined #ruby
dfinninger has quit [Remote host closed the connection]
karapetyan has joined #ruby
solenoids has joined #ruby
idefine_ has joined #ruby
tref has joined #ruby
idefine has quit [Read error: Connection reset by peer]
axsuul has quit [Ping timeout: 250 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yes`r has quit [Ping timeout: 260 seconds]
myztic has joined #ruby
tref has quit [Client Quit]
idefine has joined #ruby
idefine_ has quit [Read error: Connection reset by peer]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yes`r has joined #ruby
agit0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Remote host closed the connection]
idefine_ has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
idefine has quit [Read error: Connection reset by peer]
tulak has quit [Remote host closed the connection]
<shevy> you people are becoming sleepy again
<shevy> the sign of weekends :(
mistermocha has joined #ruby
Rephiax has quit []
dfinninger has joined #ruby
tlaxkit has joined #ruby
sepp2k has joined #ruby
yfeldblum has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<agent_white> Nope! Haven't slept since yesterday!
<blubjr> hi agent white
ur5us has quit [Remote host closed the connection]
<agent_white> \o
nofxx has joined #ruby
dfinninger has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 246 seconds]
slawrence00 has quit [Ping timeout: 252 seconds]
B1n4r10 has joined #ruby
IrishGringo has joined #ruby
sepp2k has quit [Client Quit]
marr has joined #ruby
FernandoBasso has joined #ruby
Rodya_ has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
pkmiec has joined #ruby
djbkd_ has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nofxx has quit [Ping timeout: 240 seconds]
B1n4r10 has quit [Ping timeout: 250 seconds]
<arup_r> How would you refactor this method? https://gist.github.com/aruprakshit/453477a363fc93e02c20 I came up with some ugly code :)
dfinninger has joined #ruby
djbkd_ has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
rakm has joined #ruby
benlieb_ has quit [Quit: benlieb_]
<Zarthus> arup_r: join(', ')
<Zarthus> I have no idea why you would want a comma separated string though. It may look obvious in the code what it is. But to the user, it will just be confusing
<arup_r> Zarthus: those fields are in a table, and in a Page I will display an address of a user. So I am making the full_adress like that way
<arup_r> all fields might have a value or not
<arup_r> that is why the `if` check
<Zarthus> arup_r: but what if city is not set. Is the second comma the state or the zip?
<arup_r> makes sense now ?
baweaver has joined #ruby
djbkd has quit [Remote host closed the connection]
<arup_r> if value is not present, then we will not show.
ur5us has quit [Ping timeout: 252 seconds]
<Zarthus> Yes, but how will you confirm the second value is the second street when you cannot prove this?
<Zarthus> You might be expecting a second street, but it's actually the city it will show because street2 is nil.
<arup_r> hum
codecop has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
<saml> how can I turn a zip file to gem file?
chouhoulis has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
djbkd has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
asianMike has joined #ruby
agentmeerkat has quit [Ping timeout: 272 seconds]
k3asd` has joined #ruby
<shevy> saml first extract it
karapetyan has joined #ruby
<saml> yah i did. i can't find .gemspec anywhere
<shevy> saml then write a file called a .gemspec; you can populate it with dummy placeholder values mostly
colli5ion has quit []
<shevy> yeah you need one; bundler may allow to omit it but I think it requires a Gemfile instead anyway
<saml> https://wincent.com/wiki/RubyGems_file_format oh nice. don't need gemspec
karapetyan has quit [Remote host closed the connection]
benlieb has joined #ruby
karapetyan has joined #ruby
asianMike has quit [Client Quit]
astrostl has joined #ruby
asianMike has joined #ruby
<astrostl> how do i access a value from a nested hash? i'm importing a json file into a hash.
baweaver has joined #ruby
<astrostl> trying things like puts commonJson['details'['company']] fails
idefine_ has quit [Remote host closed the connection]
<jhass> astrostl: "fails"?
<astrostl> yields nothing
<jhass> oh, right, it does
baweaver has quit [Remote host closed the connection]
<astrostl> commonJson = JSON.parse(commonJsonFile) is taking things in, i'm just trying to access an 'inner' hash
benlieb has quit [Client Quit]
<jhass> people["details"]["company"]
idefine has joined #ruby
<jhass> use variable names to describe your data, not its format or structure
benlieb has joined #ruby
<astrostl> perfect, thx!
<jhass> also Ruby favors underscore_case for variable and method names
<agent_white> I can create a multi-dimensional array in J via... `a=: i. 4 4`... returning [[0,1,2],[3,4,5],[6,7,8]]. How can I do this in ruby?
<astrostl> yeah, i'l be circling back here for best-practice refactor stuff once i get it all working
<agent_white> rather... a=: i. 3 3
IrishGringo has quit [Ping timeout: 240 seconds]
idefine has quit [Read error: Connection reset by peer]
<jhass> astrostl: if it helps anything, [] is actually a method call, above could be rewritten as people.[]("details").[]("company"), or your initial attempt, commonJson.[]("details".[]("Company"))
<astrostl> nod
roxtrongo has joined #ruby
idefine has joined #ruby
benlieb has quit [Client Quit]
roxtrong_ has joined #ruby
sdfgsdfg has joined #ruby
Regulati_ has quit [Remote host closed the connection]
myztic has quit [Ping timeout: 260 seconds]
roxtrongo has quit [Ping timeout: 244 seconds]
Silox| has joined #ruby
<jhass> >> n = 3; Array.new(n) {|i| Array.new(n) {|j| i*n + j } } # agent_white
<ruboto> jhass # => [[0, 1, 2], [3, 4, 5], [6, 7, 8]] (https://eval.in/472955)
L1nuX has joined #ruby
phildkim has joined #ruby
brainfire has joined #ruby
Ilyes512 has quit [Ping timeout: 240 seconds]
<agent_white> jhass: You're the man :) Is it possible without declaring the variable n ?
sankaber has quit [Read error: Connection reset by peer]
<jhass> sure just replace all instances with 3
Rodya_ has joined #ruby
marcosantoniocar has quit [Read error: Connection reset by peer]
<agent_white> jhass: Neat. Thank you :D
<agent_white> I was curious about that.
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
gustav_ has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
bodgix has left #ruby [#ruby]
mistermo_ has joined #ruby
<agent_white> jhass: Following a friend' video on spiral arrays, where he wrote the code in J. Attempting to translate it into ruby. :P
sankaber has joined #ruby
<shevy> J?
antoniobeyah has joined #ruby
<blubjr> ascii apl
karapetyan has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
<agent_white> shevy: Yup! https://en.wikipedia.org/wiki/J_(programming_language) -- Sorry, I don't know the official lang site.
EllisTAA has quit [Quit: EllisTAA]
ur5us has joined #ruby
haxrbyte has joined #ruby
idefine_ has joined #ruby
idefine has quit [Read error: Connection reset by peer]
agit0 has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
djbkd has quit [Remote host closed the connection]
yes`r has quit [Ping timeout: 260 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
stannard has quit [Remote host closed the connection]
voodo has joined #ruby
johnhalowang has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
bMalum has quit [Quit: bMalum]
ornerymoose has quit [Ping timeout: 276 seconds]
Rollabunna has joined #ruby
antoniobeyah has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
antoniobeyah has quit [Client Quit]
dikaio has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
dlitvak has quit [Remote host closed the connection]
voodo has quit [Ping timeout: 260 seconds]
gustav_ has joined #ruby
dfinninger has joined #ruby
skade has joined #ruby
gustav_ has quit [Read error: Connection reset by peer]
gustav_ has joined #ruby
gustav_ has quit [Read error: Connection reset by peer]
hagabaka has quit [Quit: No Ping reply in 180 seconds.]
gustav_ has joined #ruby
haxrbyte has quit [Quit: Leaving...]
hagabaka has joined #ruby
haxrbyte has joined #ruby
haxrbyte has quit [Client Quit]
haxrbyte has joined #ruby
<johnhalowang> hi ph
johnhalowang has quit [Quit: Leaving.]
eminencehc has quit [Remote host closed the connection]
jetpackjoe has joined #ruby
andikr has quit [Remote host closed the connection]
atomical_ has joined #ruby
baweaver has joined #ruby
atomical has quit [Ping timeout: 255 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
_stu_ has quit [Quit: _stu_]
freerobby has joined #ruby
BlackCoyote has quit [Remote host closed the connection]
hagabaka has quit [Quit: No Ping reply in 180 seconds.]
nofxx has joined #ruby
juddey has joined #ruby
yalue has quit [Quit: return 0;]
jottr_ has quit [Ping timeout: 250 seconds]
dmcp_ has joined #ruby
Cache_Money has left #ruby [#ruby]
hagabaka has joined #ruby
djbkd has joined #ruby
yfeldblum has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
mistermo_ has quit [Remote host closed the connection]
mistermocha has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
nofxx has quit [Ping timeout: 255 seconds]
SCHAAP137 has joined #ruby
ixti has quit [Quit: WeeChat 1.3]
sdwrage has joined #ruby
al2o3-cr has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 264 seconds]
haxrbyte has quit [Quit: Leaving...]
babblebre has quit [Quit: Connection closed for inactivity]
baweaver has joined #ruby
voodo has joined #ruby
synthroid has quit []
astrostl has quit [Quit: Textual IRC Client: www.textualapp.com]
hagabaka has quit [Quit: No Ping reply in 210 seconds.]
RegulationD has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hagabaka has joined #ruby
benlieb has joined #ruby
baweaver has quit [Ping timeout: 244 seconds]
chipotle has quit [Excess Flood]
pkmiec has quit [Ping timeout: 246 seconds]
chipotle has joined #ruby
idealexit has quit [Remote host closed the connection]
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Coldblackice has quit [Ping timeout: 240 seconds]
skade has quit [Ping timeout: 272 seconds]
millerti has joined #ruby
voodo has quit [Quit: Leaving...]
eminencehc has joined #ruby
dfinninger has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
phildkim has left #ruby [#ruby]
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
millerti has quit [Ping timeout: 276 seconds]
racar has joined #ruby
karapetyan has joined #ruby
phildkim has joined #ruby
baweaver has joined #ruby
benlieb has quit [Quit: benlieb]
ur5us has quit [Remote host closed the connection]
pdoherty has quit [Remote host closed the connection]
haylon has joined #ruby
aeontech has joined #ruby
pdoherty has joined #ruby
chipotle has quit [Max SendQ exceeded]
karapetyan has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
chipotle has joined #ruby
haylon has quit [Client Quit]
jottr_ has joined #ruby
benlieb has joined #ruby
adac has quit [Ping timeout: 240 seconds]
Bellthoven has joined #ruby
karapetyan has joined #ruby
shinenelson has quit [Quit: Connection closed for inactivity]
ur5us has joined #ruby
Yzguy has joined #ruby
dorei has joined #ruby
asas has joined #ruby
Channel6 has joined #ruby
benlieb has quit [Client Quit]
mloy has joined #ruby
arup_r has quit []
B1n4r10 has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
rbowlby_ has quit [Ping timeout: 255 seconds]
blue_deref has joined #ruby
skade has joined #ruby
gambl0re has quit [Ping timeout: 260 seconds]
rbowlby has joined #ruby
dmcp_ has quit [Quit: Disconnecting...]
lapinferoce has joined #ruby
eminencehc has quit [Remote host closed the connection]
bMalum has joined #ruby
nateberkopec has joined #ruby
safe has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cjbottaro has joined #ruby
stannard has joined #ruby
karapetyan has quit [Remote host closed the connection]
stannard has quit [Remote host closed the connection]
stannard has joined #ruby
baweaver has quit [Remote host closed the connection]
juddey has quit [Ping timeout: 265 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aeontech has quit [Quit: aeontech]
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djcp has quit [Ping timeout: 272 seconds]
ItSANgo has joined #ruby
ItSANgo_ has joined #ruby
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
ayee has joined #ruby
karapetyan has joined #ruby
Oog has joined #ruby
<ayee> https://gist.github.com/JohnTheodore/8ac70ec387d5130bb33c .. I'm trying to install a gem and I get some ruby.h error. Though I have ruby-all-dev package installed. I'm on ubuntu 14, any ideas what is blocking this gem from being installed?
<dorei> oh, nokogiri
<dorei> no, it's unrelated
<dorei> the error is /usr/bin/ld: cannot find -lgmp
<ayee> dorei: How do I fix it?
skade has quit [Ping timeout: 272 seconds]
dfinninger has joined #ruby
<dorei> ayee: i guess you need to install the gmp dev package or whatever it's called @ ubuntu
rbowlby_ has joined #ruby
Napear has joined #ruby
scripore has joined #ruby
Napear has quit [Client Quit]
rbowlby has quit [Ping timeout: 240 seconds]
trosborn has joined #ruby
Napear has joined #ruby
nofxx has joined #ruby
dmitch has joined #ruby
Napear has quit [Client Quit]
phildkim has left #ruby [#ruby]
jessemcgilallen has joined #ruby
freerobby has quit [Quit: Leaving.]
Oog has quit []
asianMike has quit []
jessemcgilallen has quit [Quit: jessemcgilallen]
skade has joined #ruby
boxofrox has joined #ruby
nofxx has quit [Remote host closed the connection]
Oog has joined #ruby
skweek has quit [Ping timeout: 272 seconds]
rgtk has quit [Read error: Connection reset by peer]
imperator has quit [Quit: Leaving]
rgtk has joined #ruby
ESpiney has quit [Quit: Leaving]
juddey has joined #ruby
Ilyes512 has joined #ruby
Oog has quit [Client Quit]
Rodya_ has quit [Remote host closed the connection]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
iceden has quit [Ping timeout: 264 seconds]
Oli has joined #ruby
stannard has quit [Remote host closed the connection]
Oli is now known as Guest79127
gustav_ has quit [Remote host closed the connection]
Ilyes512 has quit [Quit: Textual IRC Client: www.textualapp.com]
decoponio has quit [Quit: Leaving...]
ItSANgo_ has quit [Quit: Leaving...]
quazimodo has quit [Ping timeout: 264 seconds]
symm- has quit [Quit: Leaving...]
malconis has joined #ruby
Oog has joined #ruby
lkba has joined #ruby
skade has quit [Ping timeout: 240 seconds]
tubulife- has joined #ruby
ibouvousaime_ has quit [Ping timeout: 252 seconds]
beast has joined #ruby
Bellthoven has quit []
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<slash_nick> anyone know how to convert a range to json?
<slash_nick> ah... nevermind
pkmiec has joined #ruby
baweaver has joined #ruby
Rodya_ has joined #ruby
tubuliferous_ has quit [Quit: ZNC - http://znc.in]
yfeldblum has joined #ruby
[Butch] has joined #ruby
kies has quit [Ping timeout: 246 seconds]
jottr_ has quit [Quit: WeeChat 1.3]
haylon has joined #ruby
kies has joined #ruby
haylon has quit [Client Quit]
uri has quit [Ping timeout: 240 seconds]
poguez_ has joined #ruby
solars has quit [Ping timeout: 265 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fantazo has quit [Quit: Verlassend]
roxtrong_ has quit []
PaulCape_ has quit [Quit: .]
aphprentice has quit [Ping timeout: 272 seconds]
PaulCapestany has joined #ruby
eminencehc has quit [Remote host closed the connection]
bjmllr has quit [Ping timeout: 272 seconds]
angiebadillo has quit [Ping timeout: 264 seconds]
amirpro has quit [Ping timeout: 264 seconds]
braderhart has quit [Ping timeout: 264 seconds]
err_ok has quit [Ping timeout: 264 seconds]
haylon has joined #ruby
akem has quit [Read error: No route to host]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jmaya has joined #ruby
benlieb has joined #ruby
alexherbo2 has quit [Quit: WeeChat 1.3]
pdoherty has quit [Ping timeout: 272 seconds]
jmaya has quit [Client Quit]
bjmllr has joined #ruby
roshanavand has joined #ruby
dfinninger has quit [Remote host closed the connection]
quazimodo has joined #ruby
Bellthoven has joined #ruby
dhollinger has quit [Quit: WeeChat 1.3]
sinkensabe has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roshanavand has quit [Ping timeout: 250 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
jamto11_ has quit [Remote host closed the connection]
vdamewood has quit [Max SendQ exceeded]
racar has quit [Ping timeout: 246 seconds]
haylon has quit [Quit: Leaving]
nateberkopec has quit [Quit: Leaving...]
skade has joined #ruby
bkxd has joined #ruby
tubulife- has quit [Ping timeout: 244 seconds]
nateberkopec has joined #ruby
NeverDie has joined #ruby
yoongkang has joined #ruby
bjmllr has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
saml has quit [Quit: Leaving]
sdwrage has quit [Ping timeout: 240 seconds]
Silox| has quit [Quit: Connection closed for inactivity]
_blizzy_ has joined #ruby
lapinferoce has quit [Quit: Leaving]
l4cr0ss has quit [Ping timeout: 276 seconds]
lkba_ has joined #ruby
djbkd has joined #ruby
karapetyan has quit [Remote host closed the connection]
Melpaws has quit [Quit: Leaving.]
lkba has quit [Ping timeout: 240 seconds]
Channel6 has quit [Ping timeout: 272 seconds]
sdwrage has joined #ruby
bjmllr has joined #ruby
karapetyan has joined #ruby
krajos has joined #ruby
djbkd has quit [Ping timeout: 272 seconds]
<krajos> Hey Everyone, aspiring rubyist here... I'm still learning but can't figure out a way to get what this problem is asking for (without resorting to code which is ugly as hell)... I'm asked to write a method that returns true if the inputed string contains a "z" within three chars after an "a"... So far I have: " if string.chars.include? ("a") "... heh. Please help!
axsuul has joined #ruby
<havenwood> krajos: One way would be to use a regular expression (Regexp).
FernandoBasso has quit [Quit: WeeChat 1.3]
jpfuentes2 has joined #ruby
<krajos> I can set multiple conditions in a regexp?
<krajos> thanks for the reply btw.
<krajos> I'll look into that
bluOxigen has joined #ruby
patrick2 has quit [Ping timeout: 260 seconds]
<havenwood> >> 'xyz zyx xyx' =~ /x.{2,4}y/
<ruboto> havenwood # => 0 (https://eval.in/473001)
<havenwood> krajos: ^ for example that's an 'x' with between two and four of any char followed by a 'y'.
blueOxigen has quit [Ping timeout: 240 seconds]
<havenwood> krajos: You can try out your Regexp here: http://rubular.com
bkxd has quit [Ping timeout: 250 seconds]
<havenwood> krajos: Or ask questions here in the channel!
EllisTAA has joined #ruby
<krajos> wow, thanks so much!!!!!!
<havenwood> krajos: no prob, welcome!
kies has quit [Ping timeout: 276 seconds]
idefine_ has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patrick2 has joined #ruby
<krajos> Thanks! I'm gonna go play with my new toy.
krajos has quit [Quit: Leaving]
<EllisTAA> i’m wanting to write a program that can traverse my computers directories, is this possible using ruby?
<havenwood> EllisTAA: Turing complete lang is turing complete.
bMalum has quit [Quit: bMalum]
idefine has joined #ruby
amoeba__ has quit [Quit: Leaving]
<EllisTAA> havenwood: …. so yes…?
arcanez has joined #ruby
sepp2k has joined #ruby
baweaver has joined #ruby
user083 has joined #ruby
<arcanez> is it better to do a1.push(*a2) or a1.push(a2) and then flatten!
stannard has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
<EllisTAA> havenwood: thanks
<havenwood> EllisTAA: np
rubie has quit [Remote host closed the connection]
<havenwood> arcanez: the former seems nicer without any context
troulouliou_dev has joined #ruby
idefine has quit [Ping timeout: 246 seconds]
blueOxigen has joined #ruby
<arcanez> havenwood: pushing stuff onto an already existing array.. current code is +=, wanting to use Array#push or Array#<<
brainfire has quit [Quit: Konversation terminated!]
shinenelson has joined #ruby
<arcanez> RHS might be an array though, so could either push(*rhs) or push(rhs) and flatten! when done
tlaxkit has quit [Ping timeout: 240 seconds]
<arcanez> wasn't sure if there was a performance difference or reason to use * over Array#flatten or vice versa
Jackneill has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 260 seconds]
baweaver has quit [Ping timeout: 240 seconds]
<ljarvis> x.concat Array(y)
Guest79127 has quit [Quit: Leaving]
bMalum has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
mary5030 has quit [Remote host closed the connection]
stannard has quit [Ping timeout: 264 seconds]
<arcanez> ljarvis: thanks
NeverDie has joined #ruby
<arcanez> probably silly to worry about the potential overhead of Array() in that instance
dkphenom has joined #ruby
HammyJammy has joined #ruby
baweaver has joined #ruby
<ljarvis> yeah I mean if it could be an array or might not be then you don't have a choice, checking it yourself just does what Array() does already
bkxd has joined #ruby
<arcanez> concat shows intent as well
tubuliferous_ has joined #ruby
<arcanez> ruby seems to be full of different ways to do things, but sometimes the different ways aren't as elegant
juddey has quit [Ping timeout: 240 seconds]
<ljarvis> you should always opt for readability and understanding before optimising for performance, either way
<arcanez> in the end, I just want to get rid of +=. stuck on ruby 1.9.3, so less for the gc to do is better
<ljarvis> it's better for you to quickly understand the code than the code to run quickly
juddey has joined #ruby
pdoherty has joined #ruby
rubie has joined #ruby
JammyHammy has quit [Ping timeout: 260 seconds]
gusrub has quit [Remote host closed the connection]
_stu_ has joined #ruby
tildes has joined #ruby
Oog has quit []
rakm has joined #ruby
Coldblackice has joined #ruby
rubie has quit [Remote host closed the connection]
<EllisTAA> a folder would never include a period in the name would it?
nateberkopec has quit [Quit: Leaving...]
<jhass> of course it can, on UNIX you even make a folder or file hidden by naming it .foo
weemsledeux has joined #ruby
rubie has joined #ruby
<EllisTAA> jhass: damn
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<blubjr> why
<jhass> blubjr: why what?
paradisaeidae has joined #ruby
<blubjr> why did ellistaa want to know
wldcordeiro has quit [Ping timeout: 240 seconds]
cwong_on_irc has quit [Quit: Leaving.]
dikaio has quit [Quit: ........]
<EllisTAA> blubjr: i’m trying to write a program that traverses the computers file structure and compresses files that haven’t been opened in over a month https://gist.github.com/ellismarte/dc4eb18967f85c53b25f
cwong_on_irc has joined #ruby
wprice has quit [Quit: wprice]
maloik has joined #ruby
<jhass> blubjr: it helps to formulate full sentences to ask such things, ie "Why would you care whether a directory has a dot in its name?"
sinkensabe has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 272 seconds]
rubie has quit [Remote host closed the connection]
cirenyc has quit [Quit: Leaving...]
<mg^> I'd probably use Rake::FileList
<mg^> could do that whole task in a Rakefile if you felt like it
<blubjr> ellistaa: you could use File.file?(file)
<blubjr> hi jhass
<EllisTAA> blubjr: :)!!!
<EllisTAA> mg^: ill take a look
<jhass> Dir["/foo/**/*"] would only return files since the ** descends into all directories
<EllisTAA> blubjr: wait File.file?(file) the argument is just a string … would i need to pass in the entire path?
pandaant has joined #ruby
FunkyJunky has joined #ruby