<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]
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?
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
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]
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]
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]
<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
<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]
<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>
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]
<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]
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>
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
<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.
<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
<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.
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]
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]
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…]
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.
<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]
<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]
<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]
<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
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]
<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
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?