sharpmachine has quit [Remote host closed the connection]
ScriptGeek has quit [Quit: Leaving.]
havenwood has joined #ruby
ziikutv has joined #ruby
sharpmachine has joined #ruby
<ziikutv>
Hello any Ruby windows users? I cannot install Jekyll, it is saying something about building. Can soneone help? I tried using devkit but I get nothing.. Says [INFO] Skipping existing gem override for 'C:/Ruby22-x64'
GeissT has joined #ruby
<jesterfraud>
ziikutv: I'm one of those people that gave up on Ruby in Windows - I just run it in a VM now (using Vagrant)
<jesterfraud>
too many headaches around versions and building gems and having Windows specific builds of gems and...
<ziikutv>
yeah
<ziikutv>
I cannot belive proper support has not been made
htmldrum has quit [Ping timeout: 246 seconds]
ziikutv has left #ruby [#ruby]
whiteline has quit [Read error: Connection reset by peer]
whiteline has joined #ruby
balazs_ has joined #ruby
<ytti>
i honestly think msft has chance now
Aswebb_ has joined #ruby
<ytti>
becoming relevant to programming community at large
<ytti>
obviously it always was for game developers
_blizzy_ has quit [Ping timeout: 248 seconds]
<ytti>
but i'm really impressed that powershell guys are implement openssh out and in
<ytti>
ssh'ign into windows box and getting powershell, seems pretty cool to me
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby
astrobun_ has joined #ruby
Aswebb_ has quit [Ping timeout: 240 seconds]
symbol has joined #ruby
WillAmes has quit [Remote host closed the connection]
bungoman has joined #ruby
marr has quit []
centrx has joined #ruby
sinkensabe has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
charliesome has quit [Quit: zzz]
ledestin has joined #ruby
senayar has joined #ruby
j4cknewt has quit [Remote host closed the connection]
ohaibbq has quit [Quit: Leaving...]
sinkensabe has quit [Ping timeout: 256 seconds]
woodruffw has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
tjbiddle has joined #ruby
woodruffw has joined #ruby
l0oky has quit [Ping timeout: 244 seconds]
WillAmes has joined #ruby
jbw__ has joined #ruby
christiandsg has joined #ruby
jbw_ has quit [Ping timeout: 244 seconds]
dtcristo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sharpmachine has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
serivich has joined #ruby
jimmychimms has quit [Ping timeout: 255 seconds]
ruby835 has joined #ruby
tjbiddle has quit [Ping timeout: 250 seconds]
ruby835 has quit [Client Quit]
itissid1 has joined #ruby
itissid1 has left #ruby [#ruby]
tsou has joined #ruby
jenrzzz has joined #ruby
Blaguvest has quit []
l0oky has joined #ruby
mack25 has joined #ruby
<jesterfraud>
while true, I still have no plans to run a Windows server ytti
htmldrum has joined #ruby
houhoulis has joined #ruby
tjbiddle has joined #ruby
Volsus has quit [Ping timeout: 248 seconds]
Kalov has quit []
Volsus has joined #ruby
goodcodeguy has joined #ruby
chipotle has quit [Quit: cheerio]
jbw__ has quit [Ping timeout: 240 seconds]
jbw__ has joined #ruby
symbol has quit [Ping timeout: 240 seconds]
S3thc0n has quit [Remote host closed the connection]
sepp2k has quit [Read error: Connection reset by peer]
pwnz0r has joined #ruby
charliesome has quit [Ping timeout: 264 seconds]
allcentury has joined #ruby
jbw_ has joined #ruby
rubie has joined #ruby
zacstewart has joined #ruby
jbw__ has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
Tristan-Speccy has joined #ruby
radialneon has joined #ruby
pwnz0r has quit [Ping timeout: 248 seconds]
Musashi007 has quit [Quit: Musashi007]
kinda has quit [Remote host closed the connection]
rubie has quit [Ping timeout: 265 seconds]
senayar has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 256 seconds]
emergion has joined #ruby
endash has quit [Quit: endash]
tsou has quit [Quit: off]
dgutierrez1287 has joined #ruby
Musashi007 has joined #ruby
jpfuentes2 has joined #ruby
yuuvee has quit [Quit: Leaving...]
tsou has joined #ruby
dgutierrez1287 has quit [Ping timeout: 265 seconds]
bruno- has quit [Ping timeout: 246 seconds]
keen__________25 has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
junegunn has joined #ruby
havenwood has joined #ruby
keen__________25 has joined #ruby
EllisTAA has joined #ruby
sharpmachine has joined #ruby
tmtwd has quit [Ping timeout: 256 seconds]
zacstewart has quit [Ping timeout: 248 seconds]
drewvanstone has quit [Ping timeout: 240 seconds]
oddraisin has joined #ruby
charliesome has joined #ruby
bruno- has joined #ruby
Lilian` has joined #ruby
eshy has quit [Max SendQ exceeded]
eshy has joined #ruby
eshy has quit [Client Quit]
Lilian` has left #ruby [#ruby]
bruno- has quit [Ping timeout: 244 seconds]
njection has quit [Ping timeout: 248 seconds]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
zacstewart has joined #ruby
EllisTAA has quit [Ping timeout: 250 seconds]
leat has joined #ruby
eggoez has quit [Ping timeout: 244 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Adran has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
pwnz0r has joined #ruby
michael_mbp has joined #ruby
doertedev has joined #ruby
haxrbyte has quit [Ping timeout: 244 seconds]
Averna has joined #ruby
allomov has joined #ruby
<adaedra>
Hi
senayar has joined #ruby
pwnz0r has quit [Ping timeout: 248 seconds]
featheryahn_ has joined #ruby
halfdan has joined #ruby
bcavileer has joined #ruby
adambeynon has joined #ruby
harleypig has joined #ruby
djbender has joined #ruby
tonini has joined #ruby
chrisseaton has joined #ruby
pizzaops has joined #ruby
jeregrine has joined #ruby
<zenspider>
I forget... how do you page ops in a normal channel?
bigkevmcd has joined #ruby
dtcristo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra>
list them?
alxndr has joined #ruby
Musashi007 has quit [Quit: Musashi007]
cstrahan has joined #ruby
n1ftyn8_ has joined #ruby
<adaedra>
/msg ChanServ ACCESS LIST #...
<zenspider>
hrm... /stats p says 0 staff :/
neektza has joined #ruby
ckrailo has joined #ruby
ramblinpeck has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
tkuchiki has joined #ruby
<zenspider>
hrm... and that says that it is Halabund and freenode staff. and halabund isn't even listed on /whowas
<zenspider>
so, it is a dead channel. :/
Mendenhall has quit [Ping timeout: 244 seconds]
<zenspider>
there's a student throwing a shit fit
MiracleBlue has joined #ruby
<zenspider>
didn't do his homework on time I'm guessing
wpp has joined #ruby
<adaedra>
/msg ChanServ INFO`
dhjondoh has joined #ruby
deimos has joined #ruby
<adaedra>
should tell you state of the channel
avdi has joined #ruby
manveru has joined #ruby
firevolt has joined #ruby
revath has quit [Ping timeout: 256 seconds]
<zenspider>
yup. basically dead.
<zenspider>
welcome back irccloud members! :P
nickfausnight has joined #ruby
heidar has joined #ruby
hellschreiber has joined #ruby
rfv has joined #ruby
spastorino has joined #ruby
dukedave has joined #ruby
<zenspider>
wow... they're all just sloooowly trickling in
astrobun_ has joined #ruby
devbug has quit [Ping timeout: 244 seconds]
<adaedra>
good thing joins are hidden I get?
timonv has joined #ruby
needyou has joined #ruby
<needyou>
hey
Axy has joined #ruby
<needyou>
how can i create 2 level ruby array like Array -> Date => Time ?
joonty has quit [Quit: joonty]
petems has joined #ruby
charles81 has joined #ruby
vcoinminer has joined #ruby
<needyou>
and then compare this array with another one for same Date , Time ?
akahn has joined #ruby
rflot has joined #ruby
Mia has quit [Ping timeout: 244 seconds]
amitchellbullard has joined #ruby
<adaedra>
How would you use that? A little bit of code sample with expected results?
<needyou>
Will show u
joonty has joined #ruby
senayar has quit [Remote host closed the connection]
* apeiros
suspects needyou means Hash, not array, with Date as key and Time as value
coderkevin has joined #ruby
krainboltgreene has joined #ruby
white_bear has joined #ruby
bove has joined #ruby
mikecmpbll has joined #ruby
<adaedra>
apeiros: I do to, but better be sure?
pmarreck has joined #ruby
<apeiros>
but not sure, since that "Date => Time" part doesn't make too much sense to me
_blizzy_ has quit [Ping timeout: 265 seconds]
Guest85414______ has joined #ruby
<apeiros>
adaedra: certainly!
<apeiros>
I'd have asked, if you hadn't :)
<adaedra>
apeiros: apropos, guten morgen
astrobun_ has quit [Read error: Connection reset by peer]
ELLIOTTCABLE has joined #ruby
<apeiros>
ah, oui, bonjour adaedra
<jhass>
perhaps Date => [Time, Time, ...], who knows
<konsolebox>
apeiros: but he may need the keys non-unique and in order
cbednarski has joined #ruby
<apeiros>
jhass: *sob*, so now we need to also have somebody who's "who".
knowtheory has joined #ruby
jpinnix______ has joined #ruby
schaerli has quit [Remote host closed the connection]
dmoe has joined #ruby
poguez_ has joined #ruby
holsee_ has joined #ruby
<adaedra>
We're doomed.
<jhass>
mmh
<konsolebox>
needyou: maybe you want a struct/class/openstruct instance or similar, or a = [[date, time], [date, time], ...]
<jhass>
apeiros: must it be a doctor?
<needyou>
pastebin.com/adpRMwQ7
<ruboto>
needyou, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<apeiros>
konsolebox: I suggest we just patiently wait for needyou to show us as they said they would.
bjeanes has joined #ruby
<konsolebox>
apeiros: but you weren't ;)
varunwachaspati has quit [Ping timeout: 252 seconds]
ryba has quit [Remote host closed the connection]
<needyou>
check the pastebin link i send in channel
<apeiros>
jhass: huh? when does ruboto use this reponse instead of reposting it?
<adaedra>
that's... a lot of code
<apeiros>
we need ?minimalexample
glowcoil has joined #ruby
mjc_ has joined #ruby
max_v has joined #ruby
mrsolow has joined #ruby
<jhass>
apeiros: if crossposting fails for whatever reason
<apeiros>
needyou: pleaes, phrase your question in a way that's helpful to understand what you have and what you need
<needyou>
i want to run this as cron, check if new pending calndar events are presented, and compare if the pending one is conflicting with some accepted one.
ljen has joined #ruby
<apeiros>
needyou: just dumping a pile of code doesn't cut it.
ljarvis has joined #ruby
<apeiros>
jhass: I see
<apeiros>
makes sense
einarj has joined #ruby
<ljarvis>
moin
astrobun_ has joined #ruby
<needyou>
so i need to build an array with 2 levels, date, time
<adaedra>
salut ljarvis
CustosLimen has quit [Read error: Connection timed out]
<needyou>
check the responsestatus and compare if it conflicts with another event.
jimbeaudoin has joined #ruby
iamdevnul has joined #ruby
hashrocket has joined #ruby
HashNuke has joined #ruby
Lloyd has joined #ruby
lacrosse has joined #ruby
<apeiros>
moin ljarvis
Heero has joined #ruby
<needyou>
so i can accept of drop the event
<adaedra>
needyou: so you can do something like `var[date][time]`?
zacstewart has joined #ruby
<apeiros>
what's up with irccloud today? seems flakey…
<needyou>
some example ? i am not so familar with ruby
<needyou>
how must i build the var
neersighted has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
AdamMeghji has joined #ruby
<jhass>
needyou: do you realize that Time represents a fixed point in all Time, not just of any day?
timonv has quit [Read error: Connection reset by peer]
<jhass>
?xy needyou
<ruboto>
needyou, it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
Iskarlar has joined #ruby
CustosLimen has joined #ruby
zipkid has joined #ruby
hoey_ has joined #ruby
lancetw has joined #ruby
im0b has joined #ruby
bruno- has joined #ruby
last_staff has joined #ruby
heidar has quit []
astrobun_ has quit [Read error: No route to host]
<needyou>
jhass: i only want to build an array or var with the Date, Time of upcoming events, (LIST EVENT) part of the code. then compare these array -> start => dateTime / attendees => responseStatus if a responseStatus Date (NeedsAction) is conflicting with a Date / Time where the response Status is accepted, i can update the responseStatus to drop it.
<jhass>
needyou: I don't get why you need a Date and a Time
arup_r_ has joined #ruby
atomi has quit [Remote host closed the connection]
<needyou>
jhass: you got what i want to do ? : P
frankS2 has joined #ruby
countryHick has joined #ruby
dede has joined #ruby
shelling__ has joined #ruby
<needyou>
simply want to check the calendar events for conflicts, and drop the new event with responseStatus Needsaction if there is already a event on the same day / time presented with responsestatus accepcted jhass
akitada has joined #ruby
valkyrka has joined #ruby
arup_r_ has quit [Client Quit]
tonini has quit []
manveru has quit []
jxf has joined #ruby
harleypig has quit []
atomi has joined #ruby
thesheff17 has joined #ruby
djbkd_ has quit [Remote host closed the connection]
yo61 has joined #ruby
bruno- has quit [Ping timeout: 248 seconds]
manveru has joined #ruby
arup_r has quit [Ping timeout: 264 seconds]
<adaedra>
if you have a list of events, just go through it and check if start/end times are between even't start/end times
machty has joined #ruby
heidar has joined #ruby
<needyou>
and how can i do it adaedra
arup_r has joined #ruby
<jhass>
not sure. I'd probably start by .group_by'ing by status, then iterating over all events in NeedsAction and then .select out all conflicting ones out of the other groups and then do stuff with them
Averna has quit [Ping timeout: 240 seconds]
<needyou>
jhass: can you provide me some exampe code ?
senayar has joined #ruby
Limezacore has joined #ruby
<jhass>
not really since I don't get how to get the status from your code
<ljarvis>
needyou: are you learning Ruby?
Kharma has joined #ruby
<jhass>
.map'ping into a class Event; might help since then you have a place where you can neatly place some logic like .overlaps?(other_event)
<needyou>
jhass: there is an example , line 60
<needyou>
in the code
GitGud has quit [Ping timeout: 240 seconds]
<needyou>
event.attendees[0].responseStatus
intinig has joined #ruby
<jhass>
results.data.items.group_by {|event| event.attendees.first.responseStatus } then I guess?
<jhass>
might need some logic to find the highest among all attendees I guess
dtcristo has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
axl_ has joined #ruby
darxun has joined #ruby
CustosLimen has quit [Read error: Connection timed out]
joaomdmoura has joined #ruby
last_staff has quit [Remote host closed the connection]
haxrbyte_ has quit [Read error: Connection reset by peer]
dhjondoh has quit [Quit: dhjondoh]
codecop has joined #ruby
codecop_ has joined #ruby
haxrbyte has joined #ruby
ggherdov has joined #ruby
codecop__ has joined #ruby
Philipp_ has joined #ruby
<Philipp_>
why does it take at least 10 seconds to install any gem file?
<needyou>
jhass: all events are written in the calendar automaticaly, even if date conflicts, so i can get 2 events at the same time, i need to compare if there are 2 events at the same time , date and drop the one with responseStatus NeedsAction
<jhass>
and then by_status["needs_action"].each do |important_event| by_status["accepted"].select {|event| event.start.dateTime.between?(important_event.start.dateTime, important_event.end.dateTime) || event.end.between?(...) }.each do |conflicting_event| stuff(conflicting_event); or whatever
<needyou>
ah :D
prosodyContext has joined #ruby
<jhass>
well, then the other way around or idk
leat has quit [Remote host closed the connection]
leat has joined #ruby
tkuchiki has quit [Remote host closed the connection]
dhjondoh has joined #ruby
<jhass>
Philipp_: perhaps your connection to rubygems.org lacks
<jhass>
*lags
arup_r has quit [Read error: No route to host]
arup_r_ has joined #ruby
zacstewart has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
marr has joined #ruby
qiukun has quit [Quit: qiukun]
Musashi007 has joined #ruby
schaerli has joined #ruby
arup_r_ has quit [Client Quit]
<jhass>
Philipp_: you can run gem install -V whatever and see where it hangs
<Philipp_>
jhass how long does it take to install sensu-plugins-http?
<zenspider>
Philipp_: it doesn't. I just installed one in 0m2.835s cold, 0.787s hot, and 1.9 hot w/ rdoc generation
Iskarlar has quit [Ping timeout: 246 seconds]
<apeiros>
maybe a gem with native extension?
Igorshp has joined #ruby
<jhass>
Philipp_: 5s here, pulled in 3 or 4 more gems though
<jhass>
so roughly 1s per gem
<Philipp_>
jhass why does it load 6 mixlib cli gems?
<Philipp_>
with different versions?
tkuchiki has quit [Ping timeout: 264 seconds]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
<jhass>
it doesn't?
<Philipp_>
the -V output ships me it is requesting mixlib1.1, 1.2, 1.22, ...
haxrbyte has quit [Quit: Leaving...]
<jhass>
not overhere
Avat has joined #ruby
<jhass>
what's your gem -v ?
livathinos has joined #ruby
matcouto has joined #ruby
lkba_ has quit [Ping timeout: 246 seconds]
codecop_ has quit [Quit: Išeinu]
statu has joined #ruby
qiukun has joined #ruby
codecop__ has quit [Quit: Išeinu]
<Philipp_>
jhass gem -v => 2.0.14 (embeded with sensu)
<jhass>
that's really ancient
<jhass>
you should update to the 2.4 series
serivich has joined #ruby
noethics has joined #ruby
<statu>
Hi! I am trying Sinatra but I don't know how to pass variables to the views :/ I use erb as templates. The instruction that I use is "erb :index, :locals => {:test_sentence => "test sentence!"}" and then the template is rendered but nothing is displayed. The template code is "<%= @test_sentence %>". Any idea? Thanks!
tubulife- has joined #ruby
revath has joined #ruby
<jhass>
statu: @test_sentence is an instance variable, you're passing a local_variable
<jhass>
(remove the @)
<zenspider>
jhass: shouldn't affect the install time at all
<zenspider>
what does "embedded with sensu" mean?
<Philipp_>
there is an ruby installation within sensu /opt/sensu/embeded/...
<statu>
jhass: thanks!!
<Philipp_>
that's the same with chef
<zenspider>
do they know they misspelled embedded? :P
<jhass>
zenspider: you're sure? didn't the latter versions start to use the dependency API?
<Philipp_>
I did :/
<Philipp_>
it is called embedded sorry for that
<zenspider>
jhass: it'll look up deps a _bit_ faster, but not by much really. but the bottleneck will always be the download followed by the unpack & possibly build
schaerli has quit [Remote host closed the connection]
<zenspider>
Philipp_: just pokin at ya
tvw has joined #ruby
Muhannad has quit [Remote host closed the connection]
<zenspider>
Philipp_: what is the gem in question?
tubulife- has quit [Ping timeout: 260 seconds]
<Philipp_>
sensu-plugins-http
<Philipp_>
takes real0m11.470s
chussenot has joined #ruby
Siyfion has joined #ruby
wpp has quit [Ping timeout: 240 seconds]
Igorshp has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
serivich has quit [Ping timeout: 256 seconds]
posixpascal has joined #ruby
waka has joined #ruby
posixpascal has quit [Max SendQ exceeded]
chussenot has quit [Quit: chussenot]
tjbiddle has joined #ruby
quimrstorres has joined #ruby
dtcristo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bricker_ has quit [Ping timeout: 248 seconds]
troulouliou_div2 has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
eGGsha has joined #ruby
gagrio has quit [Ping timeout: 256 seconds]
Kharma has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
fella5s has joined #ruby
lkba has quit [Remote host closed the connection]
Igorshp has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
senayar has quit [Remote host closed the connection]
astrobun_ has joined #ruby
yuuvee has joined #ruby
Igorshp has quit [Remote host closed the connection]
chussenot has joined #ruby
dtcristo has joined #ruby
GeissT has joined #ruby
zacstewart has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 265 seconds]
krz has quit [Read error: Connection reset by peer]
quazimodo has quit [Ping timeout: 244 seconds]
intinig has quit []
Igorshp has joined #ruby
cheeti has joined #ruby
<cheeti>
hi
revath has quit [Remote host closed the connection]
<apeiros>
hi cheeti
<cheeti>
hi, how to convert pdf to csv using ruby code
max_v has quit [Ping timeout: 248 seconds]
djbkd_ has joined #ruby
senayar has joined #ruby
<bnagy>
cheeti: I suggest not doing that
<cheeti>
apeiros hi, how to convert pdf to csv using ruby code
<bnagy>
try wrapping something like pdftotext
<apeiros>
cheeti: that's rather vague
<apeiros>
cheeti: you do realize that a pdf can contain anything and is just a bunch of "painting" instructions?
<apeiros>
in other words: there are no generic solutions to convert a pdf to a csv at all, whether ruby or not. it'd always be a case specific solution.
PierreRambaud has joined #ruby
gagrio has joined #ruby
<cheeti>
bnagy my client requirment is like that only. i converted using tabula gem it's working but i have some conditions
ta has joined #ruby
djbkd_ has quit [Ping timeout: 240 seconds]
<canton7>
cheeti, presumably you've got a sample PDF you need to convert?
krz has joined #ruby
lokulin has quit [Changing host]
lokulin has joined #ruby
htmldrum has quit [Ping timeout: 260 seconds]
matcouto has joined #ruby
<shevy>
cheeti try to convert it into html then parse that :D
tonini has joined #ruby
<bnagy>
cheeti: uh that seems to be some terrifying bundled legacy java jar
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bnagy>
I would be completely floored if you find a pdf parser in native ruby
<adaedra>
mcnesium: should, but go look in the mac app store, it will tell ya
<mcnesium>
I dont have the full Xcode package, just the command line tools
granthatcher has joined #ruby
<adaedra>
ah
<adaedra>
that changes things
<mcnesium>
and i am on osx lion :)
<shevy>
come to linux!
<mcnesium>
lol is that a bot?
<adaedra>
L O L
fabrice31 has joined #ruby
<adaedra>
lion, that begins to be old
quimrstorres has quit [Ping timeout: 255 seconds]
sp1rs has quit [Ping timeout: 256 seconds]
eGGsha has joined #ruby
granthatcher has left #ruby [#ruby]
<mcnesium>
right, but this is on an mbp 3,1 2,2GHz and I dont trust apple when they say their newer OS wont slow down the system
phutchins has quit [Ping timeout: 248 seconds]
<adaedra>
you may want to try setting the c compiler manually like proposed in thre trace
ta has quit [Remote host closed the connection]
sp1rs has joined #ruby
leat has quit [Remote host closed the connection]
<shevy>
adaedra do you use linux
<adaedra>
shevy: depends. Right now, yes.
htmldrum has quit [Ping timeout: 244 seconds]
<shevy>
\o/
tjbiddle has quit [Quit: tjbiddle]
leat has joined #ruby
tmtwd has joined #ruby
postmodern has quit [Quit: Leaving]
<adaedra>
[k-: sorry to have a life besides #ruby
judofyr has quit [Remote host closed the connection]
al2o3-cr has quit [Ping timeout: 260 seconds]
htmldrum has joined #ruby
decoponyo has joined #ruby
<mcnesium>
adaedra: you mean when trying to install the rugged gem I can set the compiler manually?
<mcnesium>
looks like I cannot upgrade xcode CLT anymore on lion
decoponio has quit [Ping timeout: 260 seconds]
<adaedra>
“Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH."
<adaedra>
s/"/”/
tkuchiki has joined #ruby
user1138 has quit [Ping timeout: 246 seconds]
<mcnesium>
I dont know how to do that…
<adaedra>
setting the env variable CC should do it
lkba_ has quit [Remote host closed the connection]
yuuvee|away is now known as yuuvee
<mcnesium>
and what do I set it to? I dont know where I have to look for the right compiler
fabrice31 has quit [Remote host closed the connection]
<adaedra>
usually it's gcc
fabrice31 has joined #ruby
<adaedra>
so
<adaedra>
export CC="gcc"
<mcnesium>
ok got it
bruno- has joined #ruby
Igorshp has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
Lucky_ is now known as Guest5387
<mcnesium>
but it didnt change the error message :(
yfeldblum has quit [Ping timeout: 248 seconds]
<mcnesium>
also tried export CC="/usr/bin/gcc"
<mcnesium>
same no difference
tkuchiki has quit [Read error: Connection reset by peer]
olblak has quit [Quit: leaving]
al2o3-cr has joined #ruby
fabrice31_ has joined #ruby
tkuchiki has joined #ruby
tomaz_b has joined #ruby
olblak has joined #ruby
AlexAltea has quit [Ping timeout: 250 seconds]
Igorshp has joined #ruby
Jeff_D has joined #ruby
fabrice31 has quit [Ping timeout: 246 seconds]
<mcnesium>
is it really necessary to dist-upgrade osx to get a later CLT to have this one gem compiled correctly to get diaspora running ?
<adaedra>
I won't say so
<mcnesium>
good, I assume this would open more issues than it would fix
<Jeff_D>
MiniTest::Matchers question: is there an accepted way to pass multiple parameters, a la #chain in RSpec? Or is it customary to create a standalone class not matching the Matchers API, and then just use something like `test_instance.must be_valid` ?
<[k->
I thought I got pinged for something special
<[k->
it's just you, adaedra >:3
<adaedra>
[k-: same reaction this morning opening my client
<[k->
good for you! pings from me are always good!
<adaedra>
mcnesium: just have to find the way of supplying it the right compiler. Don't know exactly how though. Read the trace well, there may be clues.
tkuchiki has joined #ruby
quimrstorres has joined #ruby
thiagovsk has joined #ruby
haxrbyte has joined #ruby
Blaguvest has joined #ruby
Igorshp has joined #ruby
<[k->
xcode was available on lion
<[k->
however apple just made it available on Yosemite only
kp666 has joined #ruby
<adaedra>
not the problem, should be able to build without it
Igorshp has quit [Remote host closed the connection]
barkerd427 is now known as zz_barkerd427
Shidash has joined #ruby
<[k->
there's no gcc without it
<[k->
I have the whole darn thing installed
lala has quit [Quit: Connection closed for inactivity]
schaerli has quit [Remote host closed the connection]
<[k->
it hijacks all the dem file extensions :(
tjbiddle has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
<needyou>
hmmm
<mcnesium>
gcc -v gives gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
timonv has quit [Ping timeout: 260 seconds]
symm- has joined #ruby
<mcnesium>
without having xcode installed
<[k->
Yosemite drains battery much faster :c
<mcnesium>
also yosemite is ugly as hell
sp1rs has quit [Ping timeout: 255 seconds]
exadeci has joined #ruby
Jeff_D has quit [Quit: JMP $]
tjbiddle has quit [Ping timeout: 244 seconds]
woodruffw has joined #ruby
hool is now known as ZYPP
DoubleMalt has quit [Remote host closed the connection]
Igorshp has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
<adaedra>
[k-: there's totally gcc without xcode. You can use command line tools alone, or use a 3rd party gcc.
Avat has quit [Quit: Page closed]
<adaedra>
And yeah, Yosemite looks like shit, but at least I can send SMSs from my computer! \o/
fabrice31_ has quit [Read error: No route to host]
fabrice31 has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
axl__ has joined #ruby
diegoviola has joined #ruby
arturmartins has joined #ruby
crunk_bear has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
schaerli has quit [Remote host closed the connection]
endash has joined #ruby
fabrice31 has quit [Remote host closed the connection]
valkyrka has quit [Quit: valkyrka]
fabrice31 has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crunk_bear has quit [Client Quit]
ybian has quit [Ping timeout: 272 seconds]
ybian has joined #ruby
zz_barkerd427 is now known as barkerd427
schaerli has joined #ruby
serivich has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
Papierkorb has joined #ruby
centrx has joined #ruby
griffindy has joined #ruby
yuuvee has quit [Quit: Leaving...]
<centrx>
Good morning ladies, and shevy
rideh has joined #ruby
yuuvee has joined #ruby
<shevy>
YAY
<[k->
you need to be more inclusive, centrx
<[k->
--shevy
<shevy>
++shevy
<shevy>
--[k-
<adaedra>
free(shevy);
<shevy>
let loose the beast!
<centrx>
memory not found
<shevy>
what do you guys think of configuration files kept in yaml files only, in a directory, with the convention of one yaml file per configuratable option?
<Silex>
shevy: surely you mean one yaml per configurable "logical set of options"?
<adaedra>
no no, one file per option, like gconf does.
<adaedra>
because it makes so much sense.
<[k->
I would cry if there was one yaml file for one configuratable option
<[k->
adaedra: indeed
<Silex>
if the configuration files each contain one line I'd cry too yes
<shevy>
hmm... doesn't gconf use xml?
mary5030 has joined #ruby
<shevy>
Silex yes! one option only
<Silex>
it's not even yaml as this point
<Silex>
the file name is the key
<[k->
^
<Silex>
and the content is the value
eGGsha has joined #ruby
<[k->
json!
<shevy>
yes :)
Zai00 has joined #ruby
barkerd427 is now known as zz_barkerd427
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
timonv_ has joined #ruby
Spami has joined #ruby
cubicool has joined #ruby
crunk_bear has joined #ruby
axl__ has quit [Quit: Leaving]
<cubicool>
Hey folks. I find myself needing to programmatically generate single strings from data within hashes, and I'm looking for syntactic alternatives to doing it imperatively. In Python, for example, I can pass a generator to ''.join(). Can anyone provide any hints on this?
qiukun has quit [Quit: qiukun]
<centrx>
cubicool, Can you give an example? A Ruby Enumerator is like a generator
<cubicool>
Something like: hash.each { |k, v| v }.values.join ' ' should work for small cases, I think.
<centrx>
hash.values is the same as hash.each { |k,v| v } right?
<[k->
so you want to grab the values only?
prestorium has joined #ruby
<cubicool>
That example was too simple, sorry.
<cubicool>
Something more complicated is where I build a new value using the key and value...
allcentury has joined #ruby
<[k->
Hash#map
<[k->
this will return a associative array though
mary5030 has quit [Remote host closed the connection]
<jhass>
[k-: I like the output. It reflects my feelings about the code
statu has quit [Remote host closed the connection]
desigx has joined #ruby
sgambino has joined #ruby
<[k->
I predicted that before hand and made the code do it :3
scripore has quit [Quit: This computer has gone to sleep]
dionysus69 has quit [Ping timeout: 256 seconds]
Kully3xf has joined #ruby
dhjondoh has quit [Remote host closed the connection]
christiandsg has quit [Remote host closed the connection]
cheeti has quit [Quit: Page closed]
<needyou>
jhass: i only want to get the main initalize stuff in some classes
<dubkoidragon>
hey i need some help with some code only 31 lines how and where can i post it
<needyou>
and may convert some stuff to yield blocks
d10n-work has joined #ruby
<al2o3-cr>
?gist dubkoidragon
<ruboto>
dubkoidragon, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<cubicool>
[k-: If I have a multiline block of code, how can I use map() with Rubocop's default settings? It works, but it complains about using "{...} multi-line blocks"
<dubkoidragon>
ok so where
bayed has joined #ruby
WildBamboo-Josh has quit [Read error: Connection reset by peer]
helpa has quit [Remote host closed the connection]
kkeuning has joined #ruby
<dubkoidragon>
i got 2 answers
d10n-work has quit [Changing host]
d10n-work has joined #ruby
joshbamboo1 has joined #ruby
bayed has quit [Changing host]
bayed has joined #ruby
<dubkoidragon>
somewhere where i can do it quick
helpa has joined #ruby
<ljarvis>
cubicool: use do..end
pandaant has quit [Remote host closed the connection]
<jhass>
dubkoidragon: I see only one answer
<dubkoidragon>
oh
<cubicool>
ljarvis: I'm having trouble seeing how to use that syntax. I keep getting an Enumerator, so its just misuse on my part clearly. :)
DoubleMalt has joined #ruby
kkeuning has quit [Max SendQ exceeded]
t0rrieri has quit [Read error: Connection reset by peer]
<needyou>
someone got a good online curse for learning ruby basics ? class, yield blocks etc ?
<jhass>
dubkoidragon: also fix you indention, Ruby community standard is 2 spaces but yours is not even consistently indented
kkeuning has quit [Max SendQ exceeded]
<dubkoidragon>
jhass i hit edit where is thsi syntax highlighting
<jhass>
top left next to the filename
<al2o3-cr>
dubkoidragon: you're not assigning
but3k4 has joined #ruby
krz has joined #ruby
<jhass>
or just name it whatever.rb
<awk>
Please can someone help the ruby noob... http://pastebin.com/2RZCW0BA ... when it runs that git, it failed because it doesn't exist ... so I want to use if $? = 1 ... tell me it may be missing... if I remove the whole if .... and I run the script and then do a echo $? I get a 1, so I knoww it's failing.. just not sure why it's not doing the if $? after it's run ?
schaerli has quit [Remote host closed the connection]
<shevy>
but the charts are fancy!
<[k->
I need scattered graphs tho
<shevy>
mikecmpbll it actually finds some minor typos and such... "Space inside parentheses detected." indeed... I had one line like this: -> copy( input
<mikecmpbll>
ah, when i took over this codebase every method call was like that
<mikecmpbll>
._.
simplyianm has quit [Ping timeout: 248 seconds]
tkuchiki has joined #ruby
lxsameer has quit [Remote host closed the connection]
<[k->
so did you refactor or did you continue?
linuxboytoo has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
<mikecmpbll>
refactorized™ with regex replace
<[k->
:>
zr2d2 has quit [Ping timeout: 252 seconds]
krz has quit [Quit: WeeChat 1.0.1]
Igorshp has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
Igorshp has joined #ruby
leat has quit [Remote host closed the connection]
rubie has joined #ruby
Igorshp has quit [Remote host closed the connection]
dhjondoh has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chussenot has quit [Client Quit]
leat has joined #ruby
devbug has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
desigx has quit [Ping timeout: 244 seconds]
adegre has joined #ruby
adegre has quit [Client Quit]
christiandsg has quit [Remote host closed the connection]
atomical has joined #ruby
bricker has joined #ruby
devbug has quit [Ping timeout: 250 seconds]
max_v has quit [Ping timeout: 244 seconds]
bungoman has joined #ruby
lavros has joined #ruby
bmurt has joined #ruby
eGGsha has joined #ruby
yuuvee has quit [Ping timeout: 265 seconds]
Pupeno has quit [Remote host closed the connection]
whiteline has quit [Quit: Leaving]
quimrstorres has joined #ruby
chussenot has joined #ruby
bricker has quit [Ping timeout: 256 seconds]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
monstordh has joined #ruby
chussenot has quit [Client Quit]
fumihiro has joined #ruby
lkba has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
mandarinkin has quit [Ping timeout: 265 seconds]
zz_barkerd427 is now known as barkerd427
ndrei has joined #ruby
malconis has joined #ruby
chussenot has joined #ruby
cochise has quit [Remote host closed the connection]
malconis has quit [Remote host closed the connection]
malconis has joined #ruby
arup_r_ has joined #ruby
fabrice31_ has joined #ruby
scripore has joined #ruby
jgpawletko has joined #ruby
desigx has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
arup_r has quit [Ping timeout: 248 seconds]
mhib has joined #ruby
<shevy>
is ['a','b','c'] called the Array literal method?
DEA7TH_ has joined #ruby
<[k->
yes
leat has quit [Remote host closed the connection]
leat has joined #ruby
infinitestate has joined #ruby
ruurd has joined #ruby
<adaedra>
['a','b','c'] = %w[a b c]
<[k->
that's the percent literal
<adaedra>
that's shorter
ruurd has quit [Read error: Connection reset by peer]
<damnman>
in my example above...&& would have highest priority right? then "." then !
arup_r has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
JoshL has joined #ruby
monstordh has quit [Quit: good night to all...and to all a good night.]
<[k->
no, . followed by !
<[k->
so (blah) && (!blah)
<adaedra>
so like he said?
<[k->
&& is the lowest in this case
<[k->
. is the highest
<[k->
so what he said is wrong
<[k->
. > ! > &&
fgo has joined #ruby
dubkoidragon has quit [Ping timeout: 244 seconds]
Igorshp has joined #ruby
Tritone_ has quit []
<damnman>
yup so (!claim).declined? is the only way to negate the receiver
<al2o3-cr>
. highest precedence?
benlovel1 has joined #ruby
<ljarvis>
damnman: that code makes no sense, it'll call declined? or true or false
<[k->
there is a declined? on booleans?
<damnman>
too bad then not related to my issue
sarkyniin has quit [Ping timeout: 240 seconds]
rikkipitt has joined #ruby
niemcu has quit [Ping timeout: 244 seconds]
<[k->
it will evaluate !claim first and call declined on the result
<[k->
?code damnman
<ruboto>
damnman, We can't help you without your code, please post it to https://gist.github.com
<damnman>
ljarvis: which one? i was just giving random examples
prefixed has quit [Ping timeout: 264 seconds]
<ljarvis>
damnman: do you actually have some problematic code?
dopie has quit [Ping timeout: 265 seconds]
benlovell has quit [Ping timeout: 252 seconds]
<[k->
he seems to have a precedence issue
<damnman>
ljarvis: nope...im not sure what part is problematic..im debuggin still...i suspected it could have been a precedence thing but nope since !(dub.method?) is the same as !dub.method? in all situations...ill continue investigating
<damnman>
thanks guys
fgo has quit [Ping timeout: 256 seconds]
<ljarvis>
i mean.. if you showed us code we could probably help you
prefixed has joined #ruby
kp666 has quit [Quit: Leaving]
rbennacer has joined #ruby
niemcu has joined #ruby
bffff_ has joined #ruby
<damnman>
ljarvis: dude im aware of that..its useless until i reduce the scope... its 1000000000000lines of code
schaerli has quit [Remote host closed the connection]
<jhass>
mmh, what's the maximum date Date can handle? Do we have Date::MAX? :D
<[k-_>
i would .sample, but i realised you cant .to_a for dates
<chris2>
i think it uses bignums at some point
sharpmachine has joined #ruby
<jhass>
[k-_: I think you can?
matp has quit [Ping timeout: 256 seconds]
<adaedra>
why would you do that [k-_
<chris2>
but the range approach is efficient
<chris2>
ok, date uses floats
<[k-_>
adaedra: rand Date.today..(Date.today+7)
<chris2>
>> require 'date'; Date.today+1e308
<ruboto>
chris2 # => #<Date: 27379070069885077586246583451002161049059090341586289742119381817887024005617660270389263404 ...check link for more (https://eval.in/401680)
DrCode has joined #ruby
<[k-_>
:o
Guest20928 is now known as C0deMaver1ck
<jhass>
>> Date.today + 10**2048
<ruboto>
jhass # => uninitialized constant Date (NameError) ...check link for more (https://eval.in/401681)
nfk has joined #ruby
<jhass>
>>require "date" Date.today + 10**2048
<ruboto>
jhass # => /tmp/execpad-ee157ebeca76/source-ee157ebeca76:2: syntax error, unexpected tCONSTANT, expecting keywo ...check link for more (https://eval.in/401682)
<jhass>
though
<jhass>
anyway, ^ works
<chris2>
oh
<adaedra>
[k-_: yes, and?
nettoweb_ has joined #ruby
<jhass>
diegoviola: so you better have an upper bound too
<chris2>
good point
<[k-_>
sample gets a random item in the array?
<chris2>
of course only the float literal overflowed
<adaedra>
rand does too, without the array
<[k-_>
now to benchmark both of them :>
kirun has joined #ruby
white_bear has quit [Quit: leaving]
<adaedra>
what if you want a number between 0 and today? Generate an array of 365.25*2015 different value, then take one?
<adaedra>
values*
sarkyniin has quit [Quit: Quit]
kwd has quit [Quit: kwd]
nettoweb has quit [Ping timeout: 265 seconds]
sarkyniin has joined #ruby
<jhass>
yeah, Range#sample would be neat
<jhass>
but slow anyhow I guess
<[k-_>
i agree with your logic
<eam>
adaedra: I think you're making calendar assumptions
<shevy>
anyone knows of a project in ruby that does 3D creation of objects? ideally automated, with a 3D mesh that could be loaded up into modeller software
<masteraka>
ElSif: sorry, was afk
<olas>
jhass: thanks
dgutierrez1287 has joined #ruby
<ElSif>
masteraka: that's cool, do you use xcode?
TomyWork has quit [Ping timeout: 264 seconds]
<masteraka>
not really
maletor has joined #ruby
<masteraka>
i've used eclipse before
finisherr has quit [Quit: finisherr]
_blizzy_ has quit [Read error: Connection reset by peer]
<masteraka>
i came across a post on how to set up xcode with ruby
<[k-_>
i do not like xcode
<[k-_>
it takes way too long to start up
<[k-_>
in ruby, we have repls
<[k-_>
i cant stand the slowness >.>
<masteraka>
had some problems with dy_ld loading or s.th.
dgutierrez1287 has quit [Ping timeout: 256 seconds]
<ElSif>
masteraka: maybe, was still reading through it :) the basic general idea is in there, easiest way is to put together a makefile to let you get into the C with a debugger
<masteraka>
so i tried to do the same thing with Eclipse
<masteraka>
I just couldn't get the underlying gdb to load the source files
sarkyniin has joined #ruby
<masteraka>
plus, I suspect there is a whole can of worms with gdb on Yosemite - I had to use codesign with a created certificate
<masteraka>
plus stackoverflow metnioned that you may have to run Eclipse as root
symm- has quit [Ping timeout: 256 seconds]
riotjones has joined #ruby
<masteraka>
was wondering whether anyone actually had successfully gone through all those steps :)
<masteraka>
I'll try the XCode route one more time I guess....
presto has quit [Ping timeout: 264 seconds]
andikr has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
cochise has quit [Remote host closed the connection]
Casty has joined #ruby
<ElSif>
i have no idea :P seems like a bit of overkill really, though IDEs can sometimes make things easier
f0ster has joined #ruby
miwood has quit [Remote host closed the connection]
<masteraka>
unfortunately I've never worked with gdb directly
<masteraka>
:-(
atomical has quit [Ping timeout: 248 seconds]
<[k-_>
you only need an ide for java, really
<masteraka>
was hoping I could get a visual debugger going somehow
<masteraka>
[k-_: what about C and all its variants!
jschoolcraft has joined #ruby
<[k-_>
hmm, some consideration is to be done
<f0ster>
ide makes programming in any language easier
<adaedra>
masteraka: time to learn gdb then!
<f0ster>
people who don't know how to use debuggers are fools
<ElSif>
terminals have visuals ;)
jpfuentes2 has joined #ruby
<ElSif>
yea, i would suggest trying to go at it with gdb, will be a fun learning experience i promise :)
<masteraka>
f0ster: you get comfortable using visual debuggers....
<masteraka>
i do want to take a stab at gdb
<masteraka>
however, I have limited time to solve my issue
Hounddog has quit [Read error: Connection reset by peer]
jschoolcraft has quit [Max SendQ exceeded]
<f0ster>
masteraka: yeah.. I started with GDB. I still think visual studio is the best programming environment ever, but I never use it because I rarely code on windows
rehat has joined #ruby
<f0ster>
I use all the jetbrains ones for ruby/python/java et al on osx
miwood has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
<masteraka>
f0ster: VS + ReSharper was the best I used
balazs_ has joined #ruby
<masteraka>
it's basically VS with all the JetBrains stuff
<ElSif>
i like VS as an ide, gets a lot right, maybe someday MS will port it to linux :D
<f0ster>
masteraka: nice, using mono or something ?
timonv has quit [Ping timeout: 244 seconds]
<masteraka>
actually, I wonder whether JetBrains has a good IDE for Ruby :)
futilegames has quit [Quit: futilegames]
<masteraka>
i used .NET a few years abck
<f0ster>
ElSif: yeah probably.. since they open sourced .NET and made VS free it's only a matter of time
<f0ster>
masteraka: yeah rubymine
<ElSif>
i don't know if i would call it 'good'...
<ElSif>
if you like their other ides will will probably like it though
<masteraka>
my guess is it won't support ruby c extensions out of the box though...
<f0ster>
meh, I used it because it's really the only option, it's fine
<f0ster>
I've used it for coding and debuggin my rails projects
<masteraka>
in ruby land i'm perfectly happy using pry for my debugging
<ElSif>
thats the spirit :D
<f0ster>
I've never had consistent luck with pry.. between different versions of ruby etc pry debug and pry byebug have rarely worked 100%
AlexAltea has joined #ruby
<masteraka>
yeah
<ElSif>
as in they crash on your machine? I've only ever had issues if i was trying to get pry to do something strange.
<masteraka>
i haven't used ruby in a couple of years
<masteraka>
and then everything got upgraded
<masteraka>
and what used to work before doesn't work now
<ElSif>
if you are using it within an ide i would first think it was the ide's fault :)
<masteraka>
but relearning things is usually quicker than learning them for the first time
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
atomical has joined #ruby
<giuseppesolinas_>
hello
<ElSif>
hola
scripore has joined #ruby
balazs_ has quit [Ping timeout: 240 seconds]
<giuseppesolinas_>
I'm developing an application in which the logged superuser can create new users with a form, setting their username and password for the log-in
Igorshp has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
<giuseppesolinas_>
needless to say that those username and password are not the superuser's but of the new user
<ElSif>
that sounds fun
<jhass>
that sounds like rails
davedev24 has joined #ruby
icebourg has joined #ruby
<ElSif>
i think he means system users, though that is an assumption
gambl0re has joined #ruby
<f0ster>
ElSif: no like they always step in even when I execute a step over
<f0ster>
that was my prob with ruby 2.1.x
<giuseppesolinas_>
but my browser keeps ignoring this fact and even if I set autocomplete to "off" it keeps filling it in with the logged user's informations
<ElSif>
oh
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ElSif>
you win again jhass :)
<jhass>
;)
<giuseppesolinas_>
oh wow I thought I was typing in ##html
<giuseppesolinas_>
sorry
<giuseppesolinas_>
xD
<jhass>
lol
<ElSif>
i just choked T_T
<giuseppesolinas_>
plz forgib me
<jhass>
nevar
symm- has joined #ruby
radialneon has joined #ruby
giuseppesolinas_ has quit [Client Quit]
railsraider has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
bricker has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
rubie has joined #ruby
<ElSif>
ah, i think it might be that you are thinking of pry's binding context as a little different than it is, it is a little different than some other debugger semantics
sharpmachine has quit [Remote host closed the connection]
tubulife- has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
anisha has quit [Quit: Leaving]
syath has joined #ruby
<ElSif>
a good practice when you're not sure how it will step is to put binding.pry's where you think you might want to stop (even in gems, though you will want to remove those later)
<f0ster>
ElSif: no I used it for a year before that and it worked fine
serivich has quit [Ping timeout: 244 seconds]
<f0ster>
ElSif: but next and step do the same thing in one of the versions I had
<ElSif>
oh, nvm then, system issue??
<f0ster>
yeah idk, I was using pry-byebug
radialneon has quit [Read error: Connection reset by peer]
<f0ster>
because I had issues with pry and pry-debug when I was on ruby 2.0 and rails 3.29
rehat has quit [Read error: Connection reset by peer]
<ElSif>
yea, ive only ever had system issues with pry-debugger, usual because something in my environment was bad that i hadn't noticed :)
cochise has joined #ruby
<ElSif>
on Mac that happened more than it ever did on linux...
symm- has quit [Ping timeout: 246 seconds]
ixti has quit [Ping timeout: 246 seconds]
rehat has joined #ruby
ixti has joined #ruby
dfockler has joined #ruby
prefixed has quit [Remote host closed the connection]
rubie has quit [Ping timeout: 265 seconds]
ruurd has joined #ruby
prefixed has joined #ruby
prefixed has quit [Client Quit]
allomov has quit [Remote host closed the connection]
ragingcake has joined #ruby
<f0ster>
masteraka: I even use webstorm for js/php stuff
<f0ster>
ElSif: I wonder if it has to do with c bindings.. I do most of my dev on osx
Igorshp has joined #ruby
peter_paule has quit [Ping timeout: 240 seconds]
_blizzy_ has quit [Ping timeout: 255 seconds]
<ElSif>
maybe, though it's just as likely that im just bad at configuring mac environments XD
code1o6 has joined #ruby
code1o6 is now known as arfvidse
<f0ster>
ElSif: it's a little less nice than linux imo but mostly the same
arfvidse is now known as code1p6
code1p6 is now known as code1o6
maletor has quit [Quit: Computer has gone to sleep.]
<ElSif>
i think a lot of the time it had to do with there being just more stuff running in the mac env, i run very minimal linux envs (archbang for instance)
<havenwood>
ElSif: Works fine alongside Homebrew as well.
NeverDie has joined #ruby
joonty has quit [Quit: joonty]
niemcu has joined #ruby
valkyrka has joined #ruby
<masteraka>
OK, I managed to get XCode to stop at a breakpoint in my C extension!
konsolebox has quit [Read error: Connection reset by peer]
<ElSif>
yay! congrats
yqt has joined #ruby
<ElSif>
havenwood: thanks!
<masteraka>
basically had to springle some "-g"s inside the extconf generated Makefile manually
<ElSif>
lol, you should make a blog post :D
ddarkpassenger has joined #ruby
<masteraka>
I will at some point
<masteraka>
just need to figure out how to load it in Eclipse
<masteraka>
and in gdb
fgo has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
amystephen has quit [Quit: amystephen]
<masteraka>
then that's probably worth a blogpost...
tkuchiki has quit [Remote host closed the connection]
<eam>
masteraka: it'll be lldb on osx
<eam>
it's not too different from gdb, but there are a few oddities
msnyon has quit [Read error: Connection reset by peer]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<masteraka>
is that what XCode uses under the hood?
tkuchiki has joined #ruby
<eam>
I assume? I've never actually used xcode
werelivinginthef has joined #ruby
sterlingcalder has joined #ruby
treehug88 has quit [Remote host closed the connection]
pietr0 has joined #ruby
<adaedra>
masteraka: YES
eggoez has quit [Ping timeout: 256 seconds]
<adaedra>
oops
<headius>
certainty: no problem
rubie has joined #ruby
sterlingcalder has left #ruby [#ruby]
<masteraka>
"LLDB is the default debugger in Xcode on Mac OS X and supports debugging C, Objective-C and C++ on the desktop and iOS devices and simulator."
gwendall has joined #ruby
crunk_bear has joined #ruby
apt-get_ has joined #ruby
<masteraka>
yeah, should have RTFMed
bronson has joined #ruby
<code1o6>
Anyone looking to do a simple and fun project on ssh? MSG me if you are interested
treehug88 has joined #ruby
<adaedra>
masteraka: apple went on full llvm-based compile chain
<eam>
mostly a 1:1 translation with different syntax, the only big thing missing I found was batch mode (which I think may be added now? And there's a python interface)
<eam>
the xcode versions may be too old to support it though
gambl0re has quit [Remote host closed the connection]
freerobby1 has quit [Quit: Leaving.]
gambl0re has joined #ruby
chinmay_dd has quit [Read error: Connection reset by peer]
Lucky_ has joined #ruby
mcnesium_ has left #ruby ["Weechat part"]
bungoman has quit [Remote host closed the connection]
freerobby has joined #ruby
Siyfion has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chinmay_dd has joined #ruby
apfeluser has joined #ruby
tvw has quit []
arup_r has joined #ruby
paulcsmith has joined #ruby
cochise has quit [Read error: Connection reset by peer]
msgodf has quit [Remote host closed the connection]
blaines has quit [Ping timeout: 240 seconds]
devbug has quit [Ping timeout: 250 seconds]
simplyianm has quit [Read error: Connection reset by peer]
EllisTAA has joined #ruby
failshell has joined #ruby
simplyia_ has joined #ruby
dumdedum is now known as blaxter
peter_paule has joined #ruby
d10n-work has joined #ruby
ZeeNoodleyGamer has quit [Quit: WeeChat 0.4.2]
t0rrieri has quit [Ping timeout: 264 seconds]
kidoz has joined #ruby
Eiam has joined #ruby
No_One has joined #ruby
konr has joined #ruby
axl_ has joined #ruby
schaerli has joined #ruby
No_One has quit [Quit: Aiyaiyai]
axl_ has quit [Client Quit]
ZeeNoodleyGamer has joined #ruby
<Antiarc>
Matz' response is so delightful.
doodleha_ has quit [Ping timeout: 246 seconds]
<Antiarc>
If that was me I would have been "RTFM"
<Antiarc>
I need to be more MINSWAN
<workmad3>
Antiarc: MINASWAN
EllisTAA has quit [Quit: EllisTAA]
user1138 has joined #ruby
<Antiarc>
you know what I mean :P
<workmad3>
well, *I* do... but I'm correcting you so that others can have a chance without needing my brilliance ;)
<eam>
it'd be nice if ruby were to adopt use strict :)
gagrio has joined #ruby
<eam>
IMO that's the best way to take an originally fast and loose language and make it strict and predictable
<dfockler>
I'd like to see optional typing built in
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<eam>
of course then everyone would have to stop making fun of perl for having that as near ubiquitous boiler-plate :)
chinmay_dd has quit [Quit: Leaving]
EllisTAA has joined #ruby
devbug has joined #ruby
tkuchiki has joined #ruby
evlute has joined #ruby
kedare has quit [Ping timeout: 256 seconds]
<evlute>
hi i need some help with regexp. who do i set the global option?
imperator has joined #ruby
eGGsha has joined #ruby
<evlute>
.match(/.*/g) - g is not working
<apeiros>
evlute: in ruby, global is not part of the regex, but part of the method
michael_mbp has quit [Excess Flood]
EllisTAA has quit [Client Quit]
<apeiros>
i.e., you use scan, not match if you want all matches
endash has quit [Quit: endash]
<evlute>
apeiros: thank you apeiros
michael_mbp has joined #ruby
michael_mbp has quit [Excess Flood]
<shevy>
apieros is a nice guy
schaerli has quit [Remote host closed the connection]
prefixed has joined #ruby
kedare has joined #ruby
blaxter has quit [Ping timeout: 265 seconds]
<shevy>
hanmac well I think I suggested something similar about "def intialize"; now with rubocop becoming more popular, or at least I assume, "soft warnings" as option would not be bad in my opinion. I still don't think that ruby's warnings or error messages are always great, I recall bnagy complaining about -W0 not suppressing all warnings for instance
rubie has joined #ruby
tkuchiki has quit [Ping timeout: 248 seconds]
despai has joined #ruby
dubkoidragon has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
toretore has joined #ruby
EllisTAA has joined #ruby
<Senjai>
Morning ruby
lkba has quit [Ping timeout: 265 seconds]
michael_mbp has joined #ruby
ndrei has joined #ruby
<imperator>
there a good way to override a core class' allocation and deallocation functions?
yqt has quit [Ping timeout: 240 seconds]
icebourg has quit []
DoubleMalt has quit [Remote host closed the connection]
peter_paule has quit [Ping timeout: 264 seconds]
_djbkd has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
<workmad3>
imperator: probably not... a lot of core doesn't invoke the `new` method on the appropriate classes if you create things through, e.g. a literal
soloone has joined #ruby
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
jerius has quit [Quit: /part]
casadei_ has quit [Remote host closed the connection]
despai has quit [Quit: Leaving]
drewvanstone has quit [Ping timeout: 264 seconds]
bungoman has joined #ruby
jerius has joined #ruby
casadei_ has joined #ruby
bronson has joined #ruby
<imperator>
workmad3, basically want to override the free function to use _aligned_free on Windows for a custom string extension
Olipro_ is now known as Olipro
Rickmast_ has joined #ruby
segfalt_ has joined #ruby
Rickmasta has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
<workmad3>
imperator: hmm... sounds like you'd probably need to fork and patch ruby... but I'll admit it's into territory that I know very little about :)
<imperator>
eh, might be a bad idea - the deallocation code isn't simple
segfalt has quit [Ping timeout: 250 seconds]
segfalt_ is now known as segfalt
reset has joined #ruby
<workmad3>
imperator: yeah, I should probably make it much clearer that when I say "probably need to fork and patch ruby" I mean "THIS IS A HORRIBLE IDEA, DON'T DO THIS, I'M MERELY FOLLOWING A TRAIN OF THOUGHT THROUGH SCARY, SCARY AREAS"
dseitz has joined #ruby
bungoman has quit [Ping timeout: 248 seconds]
kazoo has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
freerobby has quit [Quit: Leaving.]
dopie has quit [Quit: This computer has gone to sleep]
freerobby has joined #ruby
<imperator>
lol
<imperator>
i'm not sure how big of a deal it is if it calls free instead of aligned_free
casadei_ has quit [Read error: Connection reset by peer]
<imperator>
might be nothing, might segfault the interpreter, we'll see
casadei_ has joined #ruby
danzilio has quit [Quit: My computer has fallen asleep!]
Igorshp has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
rdark has joined #ruby
<imperator>
(seems to segfault)
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
amystephen has joined #ruby
danzilio has joined #ruby
Alayde has quit [Quit: WeeChat 1.1.1]
axl_ has joined #ruby
jackjackdripper has joined #ruby
peter_paule has joined #ruby
kidoz has quit [Ping timeout: 264 seconds]
Mendenhall has quit [Ping timeout: 265 seconds]
tomphp has joined #ruby
ryanpc has joined #ruby
jblancet1 has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.1.1]
ryanpc has quit [Max SendQ exceeded]
giuseppesolinas has joined #ruby
AlphaAtom has joined #ruby
giuseppesolinas has quit [Client Quit]
amystephen has quit [Ping timeout: 244 seconds]
_djbkd has quit [Remote host closed the connection]
simplyia_ has quit [Read error: Connection reset by peer]
codecop has joined #ruby
schaerli has joined #ruby
simplyianm has joined #ruby
<eminence_>
How can I turn a string into a dynamic object query? I want to call Model.object, dynamically using something like var = 1 , object = "object#{1}"
<eminence_>
*** object = "object#{var}"
Alina-malina has joined #ruby
bungoman has joined #ruby
momomomomo has joined #ruby
<shevy>
what is that
<shevy>
anyway, you can use .send() to invoke any method
quimrstorres has quit [Remote host closed the connection]
<shevy>
should work via Model.send(string) in your case, if it can respond to that
k3asd` has joined #ruby
user1138 has joined #ruby
CustosLimen has joined #ruby
prefixed has quit [Changing host]
prefixed has joined #ruby
Zai00 has joined #ruby
quimrstorres has joined #ruby
blaines_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xyzzy12 has joined #ruby
barkerd427 is now known as zz_barkerd427
mhib has quit [Remote host closed the connection]
<eminence_>
I think i did a bad job of explaining. Say Model.first.object1 returns "value1". Model.first.object2 returns "value2". I want to make one dynamic query like: var = 2; Model.first.object(var) => "value2"
dgutierrez1287 has joined #ruby
freerobby has quit [Quit: Leaving.]
masteraka has quit [Ping timeout: 256 seconds]
<eminence_>
or var = 1; Model.first.object(var) => "value1"
<eam>
eminence_: you can do it just like that?
freerobby has joined #ruby
zz_barkerd427 is now known as barkerd427
riotjones has joined #ruby
freerobby has quit [Client Quit]
schaerli has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
dopie has joined #ruby
freerobby has joined #ruby
DoubleMalt has joined #ruby
peter_paule has quit [Ping timeout: 264 seconds]
<eminence_>
eam: That doesn't seem to work.
_djbkd has quit [Remote host closed the connection]
<shevy>
I don't get it
GitGud has quit [Quit: My name is your name]
<eam>
eminence_: describe what "doesn't seem to work" means so we can help you
dgutierrez1287 has quit [Ping timeout: 240 seconds]
rdark has quit [Quit: leaving]
<eminence_>
I am trying to tell a Model what object name to look for based on a variable. I cant seem to append the variable to the object name.
peter_paule has joined #ruby
<toretore>
eminence_: use real code in your explanations
<toretore>
better yet, gist some code
<eminence_>
toretore: Ill gist it
riotjones has quit [Ping timeout: 246 seconds]
<shevy>
you mean "based on the content of a variable"
<shevy>
x = 'foo'; method(x) is the same as method('foo')
eGGshke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whiteline has joined #ruby
imperator has quit [Quit: This computer has gone to sleep]
<shevy>
eminence_ what do you mean "middle of the object". I thought you send a string, right? and you can manipulate any string in any way as you see fit in ruby
<shevy>
>> x = 'abcdef'; x[3,0] = ' hello world! '; x
<eminence_>
Thanks guys, that works exactly how I want. I will look into cleaning up the schema but its for a very particular use case.
<shevy>
guess not all of roart is properly required
fabrice31 has joined #ruby
<ferret_guy>
shevy does that mean that Roart is having trouble with a gem called Connection?
ringarin has quit [Client Quit]
<ferret_guy>
how can I troubleshoot that? do I just need to require Connection?
ringarin has joined #ruby
<shevy>
not sure... the constant Roart::Connection::WWW is not known in the file where you trigger that NameError
<ElSif>
seems mildly reminiscent of a issue caused by not having spawned a connection/missing a setup step with the gem
<shevy>
I looked through the roar gem but I can not find any constant called WWW ?
<ferret_guy>
shevy what does the :: indicate a sub class?
<jhass>
ferret_guy: I'd look for alternatives. If that's no option, that projects last commit is 3 years ago, the last release is 5 years ago and the version you're using is even older (3-4 releases since)
<shevy>
you scope to it; for instance, module Roart; module Connection; class WWW
<jhass>
so use the latest git version with bundler if you have to use it
<jhass>
but it looks pretty dead
<shevy>
then you could do Roart::Connection::WWW but I can not find any WWW
<ljarvis>
ferret_guy: what are you trying to achieve?
t0rrieri has joined #ruby
msnyon has joined #ruby
DroidBur_ has joined #ruby
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ferret_guy>
ljarvis: in my gist I have the two possible outputs one is when their are no results and on that I want to return 0, the other has 6 results and on that I want to return 6
crunk_bear has joined #ruby
jhack32 has joined #ruby
ta has joined #ruby
symbol has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
gix has joined #ruby
msnyon_ has joined #ruby
<ljarvis>
ferret_guy: how it this data served to you? you're really not giving enough information (Or I'm just missing it)
<ferret_guy>
ljarvis: ahh sorry it is the result of a gttp get request using net/http :)
crunk_bear has quit [Remote host closed the connection]
<shevy>
if a file would have only include Foo statements, but let's say 10 of them... how would you call the .rb file that holds these statements?
<ljarvis>
then I guess you just watch to split the lines as you expect, ferret_guy
<shevy>
(Foo is just an example, it's of course 10 different names)
DroidBur_ has quit [Remote host closed the connection]
imperator has left #ruby ["Leaving"]
DroidBur_ has joined #ruby
DroidBurgundy has quit [Ping timeout: 264 seconds]
<ljarvis>
shevy: depends what they're for
msnyon has quit [Ping timeout: 250 seconds]
<ljarvis>
I have created a constants.rb as a dumping ground but it's bad for that reason exactly (and because in most cases, there's always a better place to put stuff). i.e categorising it
kadoppe has quit [Ping timeout: 256 seconds]
leat has quit [Ping timeout: 240 seconds]
khando__ has joined #ruby
Contigi has quit [Quit: Leaving]
DroidBur_ has quit [Client Quit]
kadoppe has joined #ruby
mike___1234 has joined #ruby
peter_paule has joined #ruby
barkerd427 is now known as zz_barkerd427
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jhack32 has quit [Remote host closed the connection]
<shevy>
right but many projects already use some kind of categorizing such as when they follow a "one class per .rb file" approach
lala has joined #ruby
leat has joined #ruby
khando has quit [Ping timeout: 265 seconds]
Siyfion has joined #ruby
Siyfion has quit [Client Quit]
<ljarvis>
that's correct..
dfockler has quit [Remote host closed the connection]
werelivinginthef has quit [Remote host closed the connection]
user1138 has joined #ruby
ruby-lang342 has joined #ruby
ruurd has joined #ruby
EagleDelta has quit [Remote host closed the connection]
peter_paule has quit [Ping timeout: 248 seconds]
leat has quit [Remote host closed the connection]
leat has joined #ruby
yqt has joined #ruby
msnyon_ is now known as msnyon
werelivinginthef has joined #ruby
momomomomo_ has joined #ruby
chussenot has quit [Quit: chussenot]
pocketprotector has quit [Ping timeout: 256 seconds]
marr has joined #ruby
ruby-lang342 has quit [Ping timeout: 246 seconds]
momomomomo has quit [Ping timeout: 260 seconds]
momomomomo_ is now known as momomomomo
dudedudeman has quit [Remote host closed the connection]
chussenot has joined #ruby
gix has quit [Quit: Client exiting]
nossidge has joined #ruby
chadwtaylor has quit [Quit: Leaving...]
<mandarinkin>
i have array of int, how to find max with index?
<ljarvis>
you could do this with a single iteration if you care about speed/object allocation
<ljarvis>
but im guessing you dont
<pfish>
how do you define method missing for a singleton class in c?
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Remote host closed the connection]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Papierkorb>
For a rspec test, how do I fake a class name?
michael_mbp has quit [Excess Flood]
<ljarvis>
?context Papierkorb
<ruboto>
Papierkorb, Please add more context to your question, what are you doing, why are you doing it, which libraries are involved. Post some code to gist if it clarifies your question.
<treehug88>
I'm seeking something specifically for REST
<ljarvis>
treehug88: you know REST is just HTTP requests right?
<treehug88>
sigh, yes, I know
ruurd has joined #ruby
<havenwood>
treehug88: Net::HTTP is in the stdlib.
<Ox0dea>
havenwood: But no Net::REST!
<treehug88>
rest_client it is
<havenwood>
Ox0dea: hehe >.>
<havenwood>
treehug88: rest_client is a Net::HTTP wrapper
<ljarvis>
lol
<ljarvis>
but it has rest in the name
<havenwood>
ljarvis: ahhhh
<havenwood>
i see
Soda has quit [Remote host closed the connection]
<havenwood>
treehug88: Yeah, if you want REST in the name... that's limiting.
<pfish>
Ox0dea: I am assuming that means something like this rb_define_singleton_method(rb_cPPR, "method_missing", ppr_yield, 0);
<treehug88>
I'm hearing httparty here
<treehug88>
thanks everyone
<havenwood>
treehug88: That's another Net::HTTP client.
<havenwood>
treehug88: Another wrapper.
<pfish>
where ppr_yield is the funciton I want called?
<treehug88>
havenwood: yup
rideh has quit [Quit: zap]
<havenwood>
treehug88: Anything rest-client or httparty are doing is just Net::HTTP. As mentioned, checkout HTTP.rb.
pengin has joined #ruby
davedev24 has joined #ruby
user1138 has quit [Ping timeout: 255 seconds]
<havenwood>
treehug88: Typhoeus is nice for parallel requests or HTTPClient Excon are nice pure Ruby options (not Net::HTTP wrappers).
<treehug88>
cool, thanks again havenwood
<Ox0dea>
pfish: Yes, ppr_yield() would be invoked if you called PPR.foobar.
<havenwood>
HTTPClient and Excon*
nossidge has quit [Quit: Page closed]
<pfish>
what if i called PPR
<Ox0dea>
pfish: Isn't it a class?
<Ox0dea>
If you want to be able to call PPR, you'll need to define it as a method.
<Antiarc>
Manticore if you're on JRuby, but I'm biased, I wrote it :P
Musashi007 has joined #ruby
nettoweb has joined #ruby
hanmac has quit [Ping timeout: 244 seconds]
<pfish>
Ox0dea: Ok the person who originally wrote this library had already figured it out so I am good. It ends up being rb_define_method(rb_mKernel, "PPR", ppr_yield, 0);
<Ox0dea>
Aye, but that's quite different from defining method_missing on a singleton class.
xkickflip has joined #ruby
choppington has quit [Ping timeout: 252 seconds]
<Ox0dea>
You had yourself a classic XY problem. :P
k3asd` has joined #ruby
dorei has quit [Ping timeout: 244 seconds]
codecop has quit [Remote host closed the connection]
user1138 has joined #ruby
pengin has quit [Remote host closed the connection]
choke has joined #ruby
dfockler has joined #ruby
eGGsha has joined #ruby
bronson has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
avitzurel has joined #ruby
ruurd has joined #ruby
choppington has joined #ruby
ruurd has quit [Client Quit]
ERIK__ has quit [Ping timeout: 246 seconds]
clamstar has joined #ruby
user1138 has quit [Ping timeout: 246 seconds]
felixr has quit [Ping timeout: 240 seconds]
pengin has joined #ruby
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 248 seconds]
momomomomo_ is now known as momomomomo
michaeldeol has joined #ruby
user1138 has joined #ruby
hanmac has joined #ruby
rbennacer has quit [Ping timeout: 256 seconds]
t0rrieri has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Remote host closed the connection]
desigx has quit [Ping timeout: 246 seconds]
dfockler has quit [Remote host closed the connection]
eggoez has quit [Ping timeout: 252 seconds]
tomaz_b has quit [Quit: Leaving]
baweaver has quit [Remote host closed the connection]
masteraka has joined #ruby
allomov has quit [Remote host closed the connection]
dfockler has joined #ruby
eggoez has joined #ruby
allomov has joined #ruby
ruurd has joined #ruby
endash has quit [Quit: endash]
<pfish>
Ox0dea: Yeah lol.
<pfish>
it works though
workmad3 has quit [Ping timeout: 246 seconds]
hinbody has quit [Quit: leaving]
pico-pete has quit [Read error: Connection reset by peer]
GitGud has joined #ruby
pico-pete has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
diegoviola has quit [Quit: WeeChat 1.2]
hahuang65 has joined #ruby
danzilio has quit [Quit: Baiii!]
allomov has quit [Ping timeout: 250 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gregf1 has joined #ruby
gregf has quit [Read error: Connection reset by peer]
chussenot_ has joined #ruby
devbug has quit [Ping timeout: 265 seconds]
chussenot has quit [Ping timeout: 240 seconds]
chussenot_ is now known as chussenot
lordkryss has joined #ruby
baweaver has joined #ruby
bmurt has quit []
michaeldeol has quit [Ping timeout: 264 seconds]
k3asd` has quit [Ping timeout: 244 seconds]
deol has joined #ruby
deol has quit [Client Quit]
decoponyo has quit [Quit: Leaving...]
allomov has joined #ruby
blkperl has quit [Ping timeout: 255 seconds]
niemcu has joined #ruby
failshell has quit [Remote host closed the connection]
michaeldeol has joined #ruby
eminence_ has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 256 seconds]
Mendenhall has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
eggoez has quit [Ping timeout: 240 seconds]
khando has quit [Ping timeout: 246 seconds]
DEA7TH_ has joined #ruby
pfish has quit [Quit: Page closed]
<shevy>
we are writing more and more code every day
ndrei has joined #ruby
wallerdev has joined #ruby
<toretore>
but loving less
<toretore>
how is anything real if it's inside computers
FernandoBasso has joined #ruby
blkperl has joined #ruby
<shevy>
well for now we have sort of limited interfaces, but things will get better eventually
<willharrison>
hm I will check that out, I don't know about it
rubie has quit [Remote host closed the connection]
<Ox0dea>
Plus another closing brace.
acke has quit [Quit: Leaving...]
<willharrison>
ah interesting
davejlong has quit [Ping timeout: 265 seconds]
veduardo has joined #ruby
chussenot has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
tkuchiki has joined #ruby
dabradley has joined #ruby
senayar has joined #ruby
jhack32 has joined #ruby
<Ox0dea>
willharrison: You've still got to use an intermediate, but at least you can keep it a "pipeline".
<willharrison>
yeah
<willharrison>
I think thats what I was wanting
<willharrison>
I'm trying to reduce a simple program to 1 line
<willharrison>
lol
<Ox0dea>
Yay!
<willharrison>
been trying to teach my brother ruby but we're still at while loops and if statements. i figure he wont get to see the cool stuff before he goes to college so i want to show him a one liner of a program i had him write
<Eiam>
hmm. any suggestions on how to debug this issue? I have workers (resque) waiting for work, and resque-scheduler, saying its acknowledged the addition of a job to the schedule... but no workers pick up any work
<ElSif>
1 more the.. dequels?
<adaedra>
shevy: pathname is nice
<dfockler>
sequals
Guest51636 has quit [*.net *.split]
alem0lars has quit [*.net *.split]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
Hey, *that's* why he wrote faster_method_source.
<monstordh>
Newb alert. Trying to get a SASS environment set up. I just found out that sass-globbing 1.1.1 has issues with relative paths and breaks for projects using things like: @import "../../variables/**/*". I have uninstalled and reinstalled -v 1.1.0, which works by all testimonies I have read. However, whenever I do a bundle install sass-globbing 1.1.1 is automatically RE-installed. How do I get this to stop? Am I using a version of sass version that can only
<monstordh>
sass-globbing 1.1.1? Currently using 3.4.16 (Selective Steve)
<ElSif>
did you only post that cause you got an @ mention in it? ;)
<dfockler>
haha
<dfockler>
that looks pretty snazzy
<havenwood>
ElSif: Yes, that's what makes me tick. Without mentions I die.
<havenwood>
ElSif: But no that's not why I posted it, heh.
<havenwood>
ElSif: Give it a try...
<ElSif>
i probably will :)
lannonbr has joined #ruby
<ElSif>
with that and sublime text who needs rubymine?
<ElSif>
(not that i ever use rubymine...)
aryaching has quit [Ping timeout: 240 seconds]
<havenwood>
ElSif: Could do a Sublime plugin for it too, I'm sure.
<dfockler>
I've always been using sublime, maybe I'm not getting my full ruby potential
victortyau has quit [Quit: Leaving]
<ElSif>
ooo i was looking for a new python project, maybe thats it?
<dfockler>
I used eclipse a while ago and I barely remember java
<havenwood>
Load new stuff into Pry, and it automatically has access to it ^
<havenwood>
Would be quite a handy tool for an editor as well
quimrstorres has quit [Remote host closed the connection]
Stratege has quit [Ping timeout: 246 seconds]
zz_barkerd427 is now known as barkerd427
quimrstorres has joined #ruby
baweaver has quit [Remote host closed the connection]
otertore has quit [Quit: Page closed]
lorikeet has joined #ruby
iceyec has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<ElSif>
hmmm, ive never written a sublime text extension, seems like that could be fun
arescorpio has quit [Quit: Leaving.]
bruno- has joined #ruby
MasterPiece has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
<Ox0dea>
ElSif: I vaguely recall the API being a little unpleasant.
<Ox0dea>
Then again, Python.
* monstordh
stepping away to clear my head and eat dinner
<Ox0dea>
monstordh: Thanks.
njs126 has joined #ruby
<dfockler>
monstordh: grilled cheese?
<monstordh>
anything at this point
pepperbreath1 has joined #ruby
<Ox0dea>
Gruyère best cheese.
<Ox0dea>
Feel free to say why you're wrong.
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<ElSif>
lol, hey now, don't go starting any more flame wars with python
<Ox0dea>
ElSif: We're in #ruby, bud. Snakes die often here.
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
endash has quit [Quit: endash]
pepperbreath has quit [Ping timeout: 244 seconds]
gamename has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 244 seconds]
<ElSif>
snake is delicious so i guess thats ok
gamename has joined #ruby
tsvenson has joined #ruby
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 246 seconds]
momomomomo_ is now known as momomomomo
CloCkWeRX has quit [Ping timeout: 256 seconds]
niemcu has quit [Read error: Connection reset by peer]
casadei_ has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
mikecmpbll has quit [Quit: i've nodded off.]
alem0lars has joined #ruby
c355E3B has quit [Quit: Connection closed for inactivity]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
barkerd427 is now known as zz_barkerd427
casadei_ has joined #ruby
monstordh has quit [Quit: monstordh]
silverdust has joined #ruby
silverdust is now known as Guest70108
ruby-lang589 has joined #ruby
dgutierrez1287 has joined #ruby
gamename has quit [Ping timeout: 256 seconds]
masteraka has quit [Quit: Leaving.]
Volsus has joined #ruby
sshuff is now known as sshuff|gone
j4cknewt has quit [Remote host closed the connection]
christiandsg has joined #ruby
baweaver has joined #ruby
balazs_ has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
axl_ has quit [Quit: axl_]
<[k->
Ox0dea!
dgutierrez1287 has quit [Ping timeout: 264 seconds]
dopie has quit [Quit: This computer has gone to sleep]
bungoman has quit [Remote host closed the connection]
<[k->
time to leave :(
[k- has quit [Quit: -a- IRC for Android 2.1.25]
momomomomo has quit [Quit: momomomomo]
willywos has quit [Ping timeout: 244 seconds]
mike___1234 has quit [Ping timeout: 244 seconds]
balazs_ has quit [Ping timeout: 256 seconds]
tno has quit [Remote host closed the connection]
EllisTAA has joined #ruby
kirun has quit [Quit: Client exiting]
EllisTAA has quit [Client Quit]
Spami has joined #ruby
<dfockler>
I wonder why Ruby never got picked up by the scientific community
<dfockler>
I guess python has a more orderly vibe to me
dopie has joined #ruby
<shevy>
I think there are about at the least 2x as many python users out there
<dfockler>
that's true
<shevy>
#python has 1662 scaly friends
<dfockler>
probably more RoR users than python users
<shevy>
for C or C++ users, often they just pick one "scripting" language and then stick to it
<shevy>
take relion (image processing of 3d cryoelectron microscopy datasets), it's written in C++ and the author knows python so that paved the way already
havenwood has quit [Ping timeout: 244 seconds]
masteraka has joined #ruby
yardenbar has quit [Quit: Leaving]
wallerdev has quit [Ping timeout: 264 seconds]
htmldrum has joined #ruby
hagabaka has quit [Ping timeout: 246 seconds]
hagabaka has joined #ruby
Musashi007 has joined #ruby
<ElSif>
list comprehensions are cool :) especially if you like the word 'for'
<shevy>
we hate for!
<dfockler>
[for bean in beans]
<shevy>
[for x in y in z over a]
sankaber has joined #ruby
allomov has quit [Remote host closed the connection]
maletor has quit []
ruurd has joined #ruby
allomov has joined #ruby
<jhass>
back.chunk(&:crispy?)
<jhass>
er, fail
<jhass>
bacon.chunk(&:crispy?)
pdoherty has quit [Quit: Leaving]
albedoa has joined #ruby
<Ox0dea>
jhass: Did you start with "bacon" and end with "speck"?
maletor has joined #ruby
<jhass>
idk what happened, really
<jhass>
my muscle memory is all messed up recently :/
allomov has quit [Ping timeout: 255 seconds]
<Ox0dea>
range(float('inf')) # => TypeError
<Ox0dea>
Python is awesome.
Torrieri has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
ascarter has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JoshL has joined #ruby
<Ox0dea>
Gotta import a module just to iterate over N.
<shevy>
jhass it comes naturally so - you are getting older
charliesome has quit [Quit: zzz]
Channel6 has quit [Quit: Leaving]
psy_ has joined #ruby
<Ox0dea>
shevy: Everything is always getting older; do you even causality?
mike___1234 has joined #ruby
<shevy>
age deteriorates matter
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<albedoa>
stupid question: i see things like `if rand > 0.1` with the intent of resolving to 'true' 90% of the time. i know it's incredibly unlikely to affect anything, but shouldn't it technically be `>= 0.1` since it excludes 1.0 as an option?
ryanprior has joined #ruby
workmad3 has joined #ruby
<polpak>
Ox0dea: I have to say that's not a situation I've ever needed
<Ox0dea>
polpak: Pardon?
<polpak>
Ox0dea: enumerating forever
choke has joined #ruby
pandaant has joined #ruby
<dfockler>
Generators!
<dfockler>
by any other name
<dfockler>
Stream processing is like enumerating forever
<Ox0dea>
dfockler: range() is a generator in Python 3, but you still can't tell it to enumerate indefinitely.
GnuYawk has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
polpak: The purpose of enumerating "forever" is to be able to stop at some point, but without explicitly defining an upper bound.
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<polpak>
Ox0dea: sure, I've just never needed to count while I did it
[H]unt3r has joined #ruby
<ryanprior>
I have an array A that's behaving in a way I don't understand. If I call `A.map { |a| a.foo.nil? }` then I get an array back like [False, True, False, False] but what I want is the entries in A for which it's False. So I then try `A.select { |a| a.foo.nil? }` but I get the error NoMethodError: undefined method `foo' for "e":String
<shevy>
albedoa probably. although if you are sure you require 90% then I would use numbers that allow clear percentages towards that, rather than rand without arguments
<albedoa>
shevy thank you
<ryanprior>
Any idea why I wouldn't get a NoMethodError with `map` but then do get one with `select`?
<shevy>
albedoa I think 0 is also excluded though
<Ox0dea>
shevy: It's not.
Igorshp has joined #ruby
<albedoa>
shevy "If called without an argument, or if max.to_i.abs == 0, rand returns a pseudo-random floating point number between 0.0 and 1.0, including 0.0 and excluding 1.0."
<shevy>
Ox0dea how likely will rand give 0?
<albedoa>
so incredibly unlikely
<dfockler>
ryanprior: because map's 'a' is an array
<Ox0dea>
shevy: It's as likely as it giving you any other number, more or less.
<albedoa>
which is also why my question is nitty too
workmad3 has quit [Ping timeout: 256 seconds]
jhack32 has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
<albedoa>
or: it is incredibly unlikely to affect whatever it is you are trying to do
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ryanprior>
dfockler: if that's true, then why does `[1,2].map { |x| x }` yield [1,2] and not [[1],[2]]?
<dfockler>
it's not an array, my bad
<Ox0dea>
ryanprior: I suspect you're looking for the #reject method.
AlphaAtom has joined #ruby
<Ox0dea>
> NoMethodError: undefined method `foo'
<Ox0dea>
That hints at some powerful confusion.
mary5030 has joined #ruby
drewvanstone has joined #ruby
<ryanprior>
Ox0dea: I know, I feel powerfully confused. If it works with map how does it error out with select.
pandaant has quit [Remote host closed the connection]
<polpak>
ryanprior: the problem is you changed what's in A between the map and the select
<Ox0dea>
ryanprior: Are you... actually calling #foo on a String?
<polpak>
ryanprior: somehow you got a string in there
quimrstorres has quit [Remote host closed the connection]
<polpak>
mutation ftl
<ryanprior>
polpak: okay, how is it different? according to documentation it looks to me like map and select both pass each respective element into the block?
<Ox0dea>
Yes, that's correct.
<polpak>
ryanprior: that's correct
<Ox0dea>
ryanprior: Are you simply trying to remove the nils from an Array?
<polpak>
Ox0dea: no, he wants to know what a's have foo==Nil
ruby-lang589 has quit [Ping timeout: 246 seconds]
<ryanprior>
no, I have an array of data structures and I want to keep only those which have non-nil in a particular field
<Ox0dea>
A.select { |a| a.foo }, then.
<dfockler>
and I want to know why map doesn't throw an error but select does!
<polpak>
ryanprior: oh you want reject then
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chussenot has quit [Quit: chussenot]
<polpak>
Ox0dea: that could remove things for which foo is false
<Ox0dea>
I'm willing to wager that doesn't matter in this instance, but you're not wrong.
masteraka has left #ruby [#ruby]
<polpak>
ryanprior: but either way the issue isn't reject/select it's that you've mutated A
<dfockler>
ahhh! mutation! thanks polpak
apfeluser has quit [Ping timeout: 256 seconds]
<ryanprior>
polpak: my strong gut feeling is that I am not mutating A. In any case, I am confident that I am not mutating it intentionally.
<Ox0dea>
ryanprior: Post code?
mary5030 has quit [Ping timeout: 264 seconds]
bigkevmcd has quit [Ping timeout: 240 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
<polpak>
ryanprior: it's unfortunately very easy to mutate things unintentionally
dopie has quit [Quit: This computer has gone to sleep]
quimrsto_ has joined #ruby
<Ox0dea>
ryanprior: Did you inadvertently use #map! somewhere?
thiagovsk has joined #ruby
wallerdev has joined #ruby
<ryanprior>
Ox0dea: not anywhere in my code. I'm using Pry to work on this, is it possible Pry is mutating something behind my back?
<Ox0dea>
Doubtful.
<Coraline>
What does the array look like right now?
<Ox0dea>
Coraline: It's got some square brackets, a few commas, and an element or two.
drewvanstone has quit [Ping timeout: 244 seconds]
finisherr has quit [Quit: finisherr]
<ryanprior>
I tried freezing A (`A.freeze; A.reject {...}`) and it still raises the NoMethodError, not a RuntimeError as I would expect when unintentionally mutating a frozen array.
<Coraline>
Ox0dea: that's helpful, thanks!
bruno- has joined #ruby
<polpak>
ryanprior: well if it's already been mutated, freezing it won't help
<polpak>
ryanprior: you have a string in your array. when it encounters the string and calls .foo it bails
<polpak>
ryanprior: make sure the Array has what you think it does
user1138 has joined #ruby
Ilyas has quit [Read error: Connection reset by peer]
Zai00 has quit [Quit: Zai00]
<ryanprior>
polpak: that's what I was trying to do by using A.map {...} first
endash has joined #ruby
<ryanprior>
I reasoned to myself, Ryan I said, you should use `map` to make sure your array's got what you really think it's got.
zacstewart has quit [Remote host closed the connection]
<polpak>
ryanprior: bleh. where is the array coming from?
Mendenhall has joined #ruby
<ryanprior>
It's a huge pile of commands built using the GLI gem.
baweaver has quit [Remote host closed the connection]
<polpak>
ryanprior: where some of the commands are strings and some are some other object?
<ryanprior>
none of them should be strings, I don't think
<polpak>
ryanprior: well if none of them were strings it wouldn't tell you that String has no method .foo
<ryanprior>
and if they were strings, then I would hope that `map` would also raise NoMethodError when I tried to call `foo` on the string which doesn't have `foo`
<polpak>
ryanprior: that's true
<polpak>
ryanprior: the strings were introduced after the map then
<ryanprior>
but I don't understand how I did, because I froze the array and then tried map and it worked, then tried select and it didn't.
<shevy>
I have to convert x seconds into a hh:mm:ss format. Is there a proper name for the hh:mm:ss format though? I want to name the class or method properly
blackmesa has joined #ruby
Ox0dea has joined #ruby
<Ox0dea>
shevy: "Timestamp" is pretty standard nomenclature.
baweaver has joined #ruby
<shevy>
ok
gwendall has quit [Remote host closed the connection]
konr has quit [Quit: Connection closed for inactivity]
<Ox0dea>
ryanprior: I can confirm that I'm seeing this error, even outside of pry.
gwendall has joined #ruby
<ryanprior>
polpak: `A.map { |a| a[1].respond_to? :nodoc }` returns an array of all `true` so for some reason that's not helpful?
ruurd has quit [Quit: ZZZzzz…]
rubie has quit [Remote host closed the connection]
<ljen>
Hi all – I'm writing a basic Lisp parser and I'm trying to figure out how to jump to another index on the next turn iterating through an array? Is this possible and if so what is the best way to handle it? Here is my code in case you are curious: https://github.com/paeeon/lisp-interpreter/blob/master/interpreter.rb
rcvalle has joined #ruby
<polpak>
Ox0dea: wtf
allcentury has quit [Ping timeout: 248 seconds]
zr2d2 has joined #ruby
avitzurel has quit [Remote host closed the connection]
michaeldeol has joined #ruby
iateadonut has joined #ruby
avitzurel has joined #ruby
iateadonut has quit [Client Quit]
Outlastsheep is now known as zz_Outlastsheep
<Ox0dea>
It seems Hash#select only yields keys to one-argument blocks. :/
Kyhz has quit [Ping timeout: 240 seconds]
<Ox0dea>
That is in outright violation of the principle of least surprise.
<mozzarella>
what do you mean?
Ropeney has joined #ruby
<pontiki>
it made Ox0dea surprised
<ryanprior>
Ox0dea: I literally just said that out loud to my coworker
aaeron has joined #ruby
<aaeron>
Hey. How shall I pass a file and a json object in a http post request?
<ryanprior>
I mean I appreciate Ruby's flexibility and interface consistency, and this is an example of both those things...but also of the price you pay for them.
<pontiki>
seriously, though, it works differently than would be expected given other enumerable methods on Hash
<ruboto>
mozzarella # => /tmp/execpad-42e1e088fb58/source-42e1e088fb58:2: warning: multiple values for a block parameter (2 f ...check link for more (https://eval.in/401884)
<Ox0dea>
Cripes.
zacstewart has joined #ruby
<mozzarella>
seems to work fine on 1.8
chipotles has joined #ruby
<Ox0dea>
I wonder if 1.9's ChangeLog has any mention of the new behavior.
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]