devbug has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swistak35 has joined #ruby
<Ox0dea>
Module#private is just a method that takes one or more method names and privatizes them, and `def` and #define_method both return the name of the defined method.
<Ox0dea>
s/return/evaluate to/, technically.
jottr has joined #ruby
firstdayonthejob has quit [Ping timeout: 264 seconds]
cjbischof_ has joined #ruby
smathy has joined #ruby
uglybandersnatch has quit [Ping timeout: 248 seconds]
astrobun_ has joined #ruby
yqt has quit [Ping timeout: 248 seconds]
speakingcode has joined #ruby
ramfjord_ has joined #ruby
roshanavand_ has quit [Quit: This computer has gone to sleep]
johnmilton has quit [Ping timeout: 260 seconds]
mbff has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
uglybandersnatch has joined #ruby
cdg has quit [Remote host closed the connection]
<mbff>
Question: How can I have guard run all my tests if any file in a couple of folders change?
Vile` has joined #ruby
cdg has joined #ruby
sadin has quit [Quit: Leaving]
<benzrf>
how does the magic work that scopes args-less private to blocks
djbkd has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
sq271 has joined #ruby
joonty has joined #ruby
mikhael_k33hl has quit [Ping timeout: 250 seconds]
jdawgaz has joined #ruby
Disavowed has quit [Ping timeout: 260 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rmulliga` has joined #ruby
ramfjord_ has quit [Ping timeout: 276 seconds]
marr has quit [Ping timeout: 248 seconds]
cdg has quit [Ping timeout: 276 seconds]
<Ox0dea>
benzrf: The VM maintains the current visibility of method definition; Module#private just sets it to METHOD_VISI_PRIVATE.
djbkd_ has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
<baweaver>
!spam lq
djbkd_ has joined #ruby
crowell has quit [Ping timeout: 264 seconds]
djbkd_ has quit [Client Quit]
jhass has joined #ruby
GitGud has joined #ruby
blackgoat has joined #ruby
preyalone has joined #ruby
<preyalone>
is there a memoize functor in ruby?
<baweaver>
?xy
<ruby[bot]>
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
<Ox0dea>
preyalone: No, but you can roll your own. :)
bronson has quit [Ping timeout: 260 seconds]
<baweaver>
technically either ||= pr something similar
<Ox0dea>
Yes, that'd be a crucial piece.
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bob434 has quit [Quit: This computer has gone to sleep]
Devalo has joined #ruby
diegoaguilar has joined #ruby
merida has quit [Remote host closed the connection]
merida has joined #ruby
Devalo has quit [Ping timeout: 240 seconds]
rkazak has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jud has quit [Read error: Connection reset by peer]
jud has joined #ruby
nerium has quit [Quit: nerium]
bob434 has joined #ruby
howdoi has joined #ruby
bob434 has quit [Client Quit]
dc2 has joined #ruby
saneax_AFK is now known as saneax
ruby-lang477 has joined #ruby
noService has joined #ruby
<ruby-lang477>
Question for the chat: if you had an interview coming up where you'd be working with an unknown ruby/rails API for 60 minutes to do some kind of exercise, what would you brush up on? File I/O & Serialization probably?
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tjbiddle has joined #ruby
Guest93 has joined #ruby
dcunit3d has quit [Ping timeout: 260 seconds]
<Guest93>
ㅇ
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 248 seconds]
blackgoat has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
<Radar>
ruby-lang477: depends entirely on what that API did.
startupality has quit [Quit: startupality]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
jcdesimp_ has quit [Remote host closed the connection]
Oog has joined #ruby
startupality has joined #ruby
kfpratt has quit [Remote host closed the connection]
Vlat- has joined #ruby
devbug_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
fullofcaffeine has quit [Ping timeout: 244 seconds]
<ruby-lang477>
@Radar I know what the domain of the API is but have no documentation on it. I think they're planning to spring it on me come interview time.
tildes has quit [Ping timeout: 264 seconds]
edwinvdgraaf has joined #ruby
tildes has joined #ruby
kfpratt has joined #ruby
edwinvdgraaf has quit [Ping timeout: 248 seconds]
kfpratt has quit [Client Quit]
aeterne has quit [Read error: Connection reset by peer]
kp666 has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
bronson has joined #ruby
Musashi007 has joined #ruby
mhoungbo has quit [Ping timeout: 260 seconds]
Musashi007 has quit [Client Quit]
Salve has quit [Remote host closed the connection]
Aviio has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
kp666 has joined #ruby
startupality has quit [Quit: startupality]
ruby-lang477 has quit [Ping timeout: 250 seconds]
ascarter has joined #ruby
Xiti has quit [Quit: Xiti]
fedexo has quit [Ping timeout: 276 seconds]
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
statelesscode has quit [Quit: statelesscode]
matp has quit [Ping timeout: 246 seconds]
startupality has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
LoneHermit has joined #ruby
symm- has joined #ruby
baweaver has quit [Remote host closed the connection]
kies^ has quit [Ping timeout: 248 seconds]
kies has quit [Ping timeout: 268 seconds]
unshadow has quit [Quit: leaving]
Disavowed has joined #ruby
Macaveli has joined #ruby
Aviio has quit [Remote host closed the connection]
ziyadb has quit [Quit: Connection closed for inactivity]
aufi has joined #ruby
monoprotic has quit [Ping timeout: 244 seconds]
kies has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
griffindy has joined #ruby
tildes has quit [Ping timeout: 252 seconds]
jrafanie has joined #ruby
djbkd has joined #ruby
Caerus has joined #ruby
mondok has joined #ruby
_djbkd has joined #ruby
merida_ has joined #ruby
merida has quit [Ping timeout: 244 seconds]
jrafanie has quit [Ping timeout: 260 seconds]
djbkd has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
startupality has quit [Quit: startupality]
dc2 has quit [Ping timeout: 276 seconds]
joonty has joined #ruby
ur5us has joined #ruby
cdg has joined #ruby
charlemagne has joined #ruby
Devalo has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
araujo has quit [Ping timeout: 244 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030_ has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
devbug has quit [Ping timeout: 268 seconds]
mary5030 has quit [Ping timeout: 240 seconds]
<PaulePanter>
benzrf: Thank you! adaedra recommended to use `each()` too.
bezhermoso has joined #ruby
mistermocha has joined #ruby
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
firstdayonthejob has joined #ruby
araujo has joined #ruby
haxrbyte has joined #ruby
araujo has quit [Max SendQ exceeded]
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
startupality has joined #ruby
araujo has joined #ruby
bezhermoso has quit [Quit: Zzzzz...]
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
araujo has quit [Max SendQ exceeded]
mistermo_ has quit [Ping timeout: 248 seconds]
uglybandersnatch has quit [Ping timeout: 248 seconds]
araujo has joined #ruby
matp has joined #ruby
preyalone has quit [Quit: Connection closed for inactivity]
My_Hearing has quit [Ping timeout: 260 seconds]
LoneHermit has quit [Remote host closed the connection]
Guest93 has joined #ruby
Guest93 has quit [Client Quit]
mank has joined #ruby
codecop has joined #ruby
cpup has quit [Ping timeout: 244 seconds]
cpup has joined #ruby
merida_ has quit [Remote host closed the connection]
<Caerus>
hi, im here looking for some advice. after a long hiatus from programming i fell in love with ruby (and rails). I am currently reading "Beginning Ruby(2nd edition)" to refresh/relearn but as i had to RVM to 1.8.7 ...
merida has joined #ruby
safjj has joined #ruby
nanoz has joined #ruby
Vlat- has quit [Quit: Vlat-]
<Caerus>
i fear i might be too outdated? can someone recommend a good up-to-date ruby book?
<apeiros>
Caerus: to get going, you can still use that book and just use ruby 2.3.0
stannard has joined #ruby
<apeiros>
there's less than a handful of incompatibilities with the old syntax, and it's relatively unlikely that you'll run into those.
<Caerus>
apeiros, that was my first intention but it seem a lot has changed so some code on book wont work
<apeiros>
you can gist it along with the error and ask here
duncannz has quit [Remote host closed the connection]
jackcom has joined #ruby
jackcom was kicked from #ruby by ruby[bot] [was banned before]
<adaedra>
?botsnack
<ruby[bot]>
nomnomnomnom
Musashi007 has quit [Quit: Musashi007]
<flughafen>
shevy: nevar!!@!!!!
mistermocha has quit [Ping timeout: 244 seconds]
fevrbd has joined #ruby
MonsterMunch_ has joined #ruby
phatypus has quit [Quit: .>]
nerium has quit [Quit: nerium]
MonsterMunch has quit [Ping timeout: 244 seconds]
MonsterMunch_ is now known as MonsterMunch
uglybandersnatch has quit [Ping timeout: 276 seconds]
fevrbd has quit [Ping timeout: 244 seconds]
guardian has quit [Quit: Coyote finally caught me]
BLuEGoD has joined #ruby
guardian has joined #ruby
<BLuEGoD>
hi
bronson has joined #ruby
andywojo has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
sdothum has joined #ruby
<BLuEGoD>
how do I get the name of a method passed as a block? as in def foo; yield ; end ; get 'bar' when calling foo { bar } # bar is a method
araujo_ has quit [Quit: Leaving]
pawnbox has joined #ruby
MonsterMunch has quit [Read error: Connection reset by peer]
mank has joined #ruby
bluOxigen has quit [Ping timeout: 248 seconds]
bluOxigen has joined #ruby
TheCubeLord has quit [Quit: Leaving]
<Ox0dea>
BLuEGoD: You'll have to get your hands dirty.
<toretore>
BLuEGoD: it's very likely that this is not the best solution to the problem you're trying to solve
MonsterMunch has joined #ruby
jorum has quit [Ping timeout: 260 seconds]
MonsterMunch has quit [Client Quit]
<Cork>
if i want to make a tool that extends irb, is there any documentation on how one could do that?
<BLuEGoD>
thanks - method foo is just a wrapper I call for multiple methods. So I want to log the name of the method I'm calling without repeating myself on every method. What's your suggestion ?
bronson has quit [Ping timeout: 264 seconds]
ely-se has joined #ruby
Queitsch has joined #ruby
<ely-se>
Hi, is it possible to get Bundler to generate Gemfile.lock (which doesn't yet exist) without installing any gems?
Queitsch has quit [Remote host closed the connection]
<BLuEGoD>
thanks Ox0dea! Not sure I will use that in the end.. I may rather just repeat myself in this case!
<Ox0dea>
BLuEGoD: Good eye. ;)
Queitsch has joined #ruby
mondok has quit [Ping timeout: 246 seconds]
LoneHermit has quit [Ping timeout: 248 seconds]
merida has joined #ruby
<Ox0dea>
BLuEGoD: The problem you've bumped into, for the record, is that blocks are not objects; they're essentially an implementation detail, so you've got to muck about with the VM to "observe" them.
<BLuEGoD>
Ox0dea: I see. Perhaps a proc may help there instead of a block?
charlemagne has joined #ruby
<Ox0dea>
BLuEGoD: From the perspective of improved introspection, that doesn't really change anything.
jgpawletko has left #ruby [#ruby]
<BLuEGoD>
right, okay :/
ely-se has quit [Quit: leaving]
<Ox0dea>
After all, Kernel#proc is just a method that takes a block and turns it into a Proc.
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby
<shevy>
wow looking at RubyVM::InstructionSequence there is scary
charlemagne has quit [Ping timeout: 260 seconds]
<Ox0dea>
BLuEGoD: If your blocks are sufficiently simple, that trick of finding the `opt_send_without_block` instruction and grabbing the method name out of the Hash that immediately follows is actually reasonably robust.
andywojo has joined #ruby
<BLuEGoD>
I see, but still, I don't think that code will easily pass a code review haha
<Ox0dea>
Hey, you wanted to inspect a block. :P
wethu has joined #ruby
jorum has joined #ruby
<BLuEGoD>
I know. If it was some sort of Method object I could do method.original_name - that would be fine lol
jottr has joined #ruby
<wethu>
Hello, I have found code where there are bracket'd arguments inside a block argument, e.g.: something.reduce({}) do |memo, (foo, (bar))| ... end; can someone please point me in the right direction to read more about whats going on with those?
<rahc>
/usr/lib/ruby/vendor_ruby/active_record/connection_adapters/connection_specification.rb:190:in `rescue in spec': Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError)
<rahc>
however, `gem 'mysql2'` is in my Gemfile
DominicBurford has joined #ruby
ziyadb has joined #ruby
<adaedra>
?rails
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Ox0dea>
rahc: And your Gemfile.lock?
<Ox0dea>
adaedra: It's secretly a Bundler question, no?
<rahc>
adaedra: what do you mean by "update" my Gemfile.lock?
<Ox0dea>
wethu: That looks pretty good, but lemme cook up an example of where it's crucial.
<wethu>
Ox0dea, That would be very much appreciated thank you
kentnl has quit [Ping timeout: 250 seconds]
<adaedra>
rahc: bundler uses Gemfile.lock to load dependencies at runtime. When doing `bundle install`, it tells it to install the gem in the Gemfile and update the Gemfile.lock with the newly added gems.
<rahc>
adaedra: I'm not sure what you mean by "update the Gemfile.lock with the newly added gems"; does Gemfile.lock contain a list of installed gems?
htmldrum has joined #ruby
htmldrum_ has joined #ruby
<adaedra>
rahc: open it and look inside?
<rahc>
$ cat Gemfile.lock
<rahc>
## Nothing here
CloCkWeRX has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
<adaedra>
run bundle install.
<rahc>
adaedra: I would like to understand what that will do to the files in my tree before I run it
<adaedra>
nothing.
mank has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rahc>
adaedra: hence I'm asking what you mean when you say "update the Gemfile.lock"
<adaedra>
simple
<rahc>
if it does nothing, then why do I need to run it? :-)
<adaedra>
there is a Gemfile.lock file that bundler uses
<rahc>
what does it use it for?
<adaedra>
running bundle install with update its contents (or create it, if not here)
<DominicBurford>
add new gems to gemfile and run bundle install in terminal in the root of your application - this will update the Gemfile.lock
<rahc>
what are its contents?
DominicBurford is now known as dbford
<rahc>
adaedra: what are its contents?
nyu has joined #ruby
<adaedra>
well you can run bundle install and see what it generates.
<Ox0dea>
wethu: Hey, sorry that took a while; I abandoned a more elaborate example for this one: https://eval.in/541211
htmldrum_ has quit [Ping timeout: 252 seconds]
<dbford>
Anyone in here at Imperial College London or UCL?
charlemagne has joined #ruby
<rahc>
11:16 < rahc> adaedra: I would like to understand what that will do to the files in my tree before I run it
htmldrum has quit [Ping timeout: 260 seconds]
<rahc>
and files elsewhere, for that matter
dionysus69 has joined #ruby
<rahc>
there doesn't seem to be much documentation on how bundle works
<adaedra>
!
<rahc>
there's plenty of documentation on what commands to give it, but not why or what the consequences of those are
<rahc>
beyond "it makes it work"
<Ox0dea>
wethu: Enumerable#each_with_index gives you an Enumerator that yields pairs; if you don't destructure the pair, the first block parameter will consume the whole Array and throw everything off by one, so to speak.
<adaedra>
bundle help install, for starters.
<rahc>
adaedra: ah that's helpful, thanks
fevrbd has joined #ruby
<wethu>
Ox0dea, I see, i will have to have a play around with the REPL but i think I'm starting to get it :)
MonsterMunch has joined #ruby
<Ox0dea>
wethu: It's a bit like "bounded splatting", I guess.
<Ox0dea>
You can destructure method arguments, but it's pretty unorthodox; it makes more sense in the context of blocks since you don't have as much say in how things get yielded.
mdw has quit [Quit: Sleeping Zzzzz]
johnmilton has joined #ruby
fevrbd has quit [Ping timeout: 248 seconds]
toretore has quit [Ping timeout: 276 seconds]
bricker has quit [Ping timeout: 248 seconds]
<wethu>
Sweet! Bingo, i got it i think :) well enough to play with, thanks for that
<Ox0dea>
wethu: It's really just a syntactic convenience; anywhere you can destructure, you could just as well have taken one argument and indexed into it or whatnot.
ldnunes has joined #ruby
<Ox0dea>
It is pretty nice, though. :)
unshadow has joined #ruby
DaniG2k has joined #ruby
<wethu>
:)
dbford has left #ruby [#ruby]
tubuliferous has quit [Ping timeout: 250 seconds]
but3k4 has joined #ruby
darkf has quit [Quit: Leaving]
bob434 has joined #ruby
charlemagne has quit [Ping timeout: 246 seconds]
Regulati_ has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 240 seconds]
n008f4g_ has quit [Ping timeout: 260 seconds]
dostoyevsky has quit [Ping timeout: 246 seconds]
dostoyevsky has joined #ruby
decoponio has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
cd-rum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
My_Hearing has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jackjackdripper has quit [Quit: Leaving.]
jorum has quit [Ping timeout: 240 seconds]
tvw has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 260 seconds]
DaniG2k_ has joined #ruby
charlemagne has joined #ruby
mdw has joined #ruby
<Elysia>
Ox0dea: I think I mostly listened to that song because of the tablecloth.
davee_ has quit [Ping timeout: 240 seconds]
rodfersou has joined #ruby
DaniG2k has quit [Ping timeout: 276 seconds]
gagrio|trng has joined #ruby
<Ox0dea>
Elysia: I think you've conflated "Chop Suey!" with "B.Y.O.B."?
DaniG2k_ has quit [Quit: leaving]
trinaldi has joined #ruby
<Elysia>
Ox0dea: that's entirely possible, most of System of a Down was about incomprehensible lyrics and mostly a fine tune to go with it
jdawgaz has joined #ruby
gbgdev has joined #ruby
mikhael_k33hl has quit [Quit: Leaving]
Aviio has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
tref has joined #ruby
charlemagne has quit [Ping timeout: 248 seconds]
Caerus has left #ruby ["zZz"]
<shevy>
you people are in such a happy singing mood
Coldblackice_ has quit [Ping timeout: 250 seconds]
dn5 has joined #ruby
j3r0 has joined #ruby
Coldblackice_ has joined #ruby
charlemagne has joined #ruby
jorum has joined #ruby
<SebastianThorn>
so silent in here lately, does that hangman-bot still exist?
dostoyevsky has quit [Ping timeout: 244 seconds]
dostoyevsky has joined #ruby
<SebastianThorn>
!hangman gem
<shevy>
I think the bots can not coexist
cpup has quit [Ping timeout: 268 seconds]
<adaedra>
It's in -offtopic, SebastianThorn.
cpup has joined #ruby
<SebastianThorn>
aww, ok
jottr has joined #ruby
fevrbd has joined #ruby
krz has joined #ruby
merida has quit [Remote host closed the connection]
fevrbd has quit [Ping timeout: 276 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
charlemagne has quit [Ping timeout: 276 seconds]
rdark has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
bob434 has joined #ruby
bob434 has quit [Client Quit]
Devalo has quit [Read error: Connection reset by peer]
<canton7>
atmosx, you will never stop creating threads, surely?
<atmosx>
argh,it's inside the loop
<atmosx>
ty canton7
aegis3121 has joined #ruby
My_Hearing has quit [Ping timeout: 248 seconds]
wethu has quit [Quit: This computer has gone to sleep]
nobitanobi has joined #ruby
blackgoat has quit [Quit: WeeChat 1.4]
<canton7>
not entirely sure why it's returning EDEADLK: it must be calling pthread_mutex{try,}lock() internally somewhere...
BSaboia has joined #ruby
<canton7>
seems OSX limits the number of threads a process can spawn to ~2000 - are you on OSX?
nobitanobi has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
n008f4g_ has quit [Ping timeout: 276 seconds]
<hanmac>
yeah he is
nobitanobi has joined #ruby
mank has quit [Read error: Connection reset by peer]
dn5 has quit [Ping timeout: 244 seconds]
joonty has quit [Ping timeout: 260 seconds]
openstruct has joined #ruby
cdg has joined #ruby
openstruct has quit [Client Quit]
dn5 has joined #ruby
IrishGringo has joined #ruby
mank has joined #ruby
charlemagne has quit [Read error: No route to host]
swills has joined #ruby
dn5 has quit [Ping timeout: 276 seconds]
kies has quit [Ping timeout: 264 seconds]
citrusfizz has quit [Read error: Connection reset by peer]
citrusfizz_ has joined #ruby
citrusfizz_ is now known as citrusfizz
dn5 has joined #ruby
mprelude_ has joined #ruby
jrafanie has joined #ruby
jorum has quit [Quit: Lost terminal]
jorum has joined #ruby
malconis has joined #ruby
fexilal has joined #ruby
malconis has quit [Remote host closed the connection]
mprelude has quit [Ping timeout: 252 seconds]
malconis has joined #ruby
fevrbd has joined #ruby
rbennacer has joined #ruby
nocontrol has joined #ruby
neilhwatson has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
_blizzy_ has quit [Quit: Leaving]
tvw has quit []
fevrbd has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
joonty has joined #ruby
<hightower2>
If anyone is looking for a good Ruby HTTP lib, after being unhappy with curb's memory usage and em-http-request's usage of EventMachine, I finally found typhoeus, which has comparable feature set, but is both memory-correct and lightweight. Very happy with it so far.
_stu_ has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
jottr has quit [Ping timeout: 240 seconds]
NET||abuse has joined #ruby
mary5030_ has quit [Remote host closed the connection]
<workmad3>
hightower2: I tend to use faraday, which can support typhoeus as an adapter if you want it :)
mary5030 has joined #ruby
<darix>
hightower2: if there is one thing we arent lacking ... http client libraries.
LoneHerm_ has joined #ruby
<hightower2>
darix, really? is there any other http lib that you know of which supports specifying source inteface (or bind IP) and that can execute parallel requests? (I only knew of curb, em-http-request and now typhoeus)
noService has quit [Ping timeout: 246 seconds]
floatingpoint has joined #ruby
<darix>
hightower2: i never said they will have all the things you need. especially as you didnt specify them upfront ... but in general we have plenty of libraries ... and then you have libX pull client1 libY pull client2 and so on
<darix>
lots of fun
the_drow has quit [Quit: This computer has gone to sleep]
howdoi has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
`tim` has joined #ruby
User458764 has joined #ruby
noService has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
dravine has joined #ruby
codecop has quit [Remote host closed the connection]
nobitanobi has quit []
jschoolcraft has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Acontius has quit [Quit: Connection closed for inactivity]
blackmesa has joined #ruby
<atmosx>
canton7: yes
<atmosx>
I'm on OSX
idefine has joined #ruby
<NET||abuse>
hey guys, i've a vagrantfile which i believe is ruby syntax, i have a docblock line $stuff=<<SCRIPT [ -f /tmp/$file ] || sudo wget -q $fileurl -o /tmp/$file SCRIPT
stannard has joined #ruby
<NET||abuse>
will this work? There are more lines in the block but basically i'm no tseeing $file or $fileurl in the vagrant up output
<NET||abuse>
unzip: cannot find or open /tmp/, /tmp/.zip or /tmp/.ZIP.
aegis3121 has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
dhollinger has joined #ruby
idefine has quit [Ping timeout: 244 seconds]
evidex has quit [Remote host closed the connection]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
<shevy>
looks like shell script syntax
kappy has quit [Remote host closed the connection]
idefine has joined #ruby
<atmosx>
shevy: that's shell, the vagrant file is ruby
skade has quit [Quit: Computer has gone to sleep.]
<atmosx>
NET||abuse: there's an error in the shell file, if you're trying to fetch a .zip file
<atmosx>
shell script
lessless has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
idletask has quit [Ping timeout: 248 seconds]
idletask has joined #ruby
spk has quit [Ping timeout: 250 seconds]
IrishGringo has quit [Ping timeout: 268 seconds]
spk has joined #ruby
washt has joined #ruby
rbennacer has quit [Remote host closed the connection]
RTG` has quit [Read error: Connection reset by peer]
ChiefAlexander has quit [Remote host closed the connection]
Seich has joined #ruby
DenSchub_ has joined #ruby
braincra- has joined #ruby
dgncn_ has joined #ruby
MaienM has joined #ruby
babblebre has joined #ruby
UserInNeed has joined #ruby
mistermo_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgncn has quit [Ping timeout: 240 seconds]
braincrash has quit [Ping timeout: 240 seconds]
jehoesefat has quit [Read error: Connection reset by peer]
DenSchub has quit [Ping timeout: 240 seconds]
nlsun_ has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Ping timeout: 240 seconds]
Meeh has joined #ruby
lipoqil has joined #ruby
mic_e_ has quit [Quit: No Ping reply in 180 seconds.]
interpel1x has joined #ruby
No_One has joined #ruby
Biohazard has joined #ruby
lipoqil has quit [Changing host]
lipoqil has joined #ruby
No_One has quit [Changing host]
No_One has joined #ruby
levifig has joined #ruby
Veejay has joined #ruby
Biohazard is now known as Guest26624
d0nn1e has joined #ruby
halfamind has quit [Read error: Connection reset by peer]
halfamind has joined #ruby
pandaant has quit [Remote host closed the connection]
whippythellama has joined #ruby
No_One is now known as kspencer
nettoweb has joined #ruby
tref has quit [Quit: tref]
andikr has quit [Remote host closed the connection]
ndrst has joined #ruby
IrishGringo has joined #ruby
ndrst is now known as Guest52539
jazzonmymind has joined #ruby
Luna_Moonfang has joined #ruby
aspiers has joined #ruby
JoL1hAHN has joined #ruby
gregf has quit [Quit: WeeChat 1.4]
mistermo_ has quit [Ping timeout: 268 seconds]
kp666 has joined #ruby
Devalo has quit [Read error: Connection reset by peer]
Uber|Dragon has joined #ruby
Devalo has joined #ruby
ssm has joined #ruby
nettoweb has quit [Client Quit]
fevrbd has joined #ruby
jehoesefat has joined #ruby
mallu has joined #ruby
mistermocha has quit [Remote host closed the connection]
idefine has joined #ruby
weemsledeux has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
idefine_ has quit [Ping timeout: 276 seconds]
fevrbd has quit [Ping timeout: 248 seconds]
ChiefAlexander has joined #ruby
gregf has joined #ruby
mary5030 has joined #ruby
pawnbox has joined #ruby
valetudo has joined #ruby
valetudo has quit [Max SendQ exceeded]
idefine has quit [Ping timeout: 260 seconds]
valetudo has joined #ruby
renier has joined #ruby
jorum has quit [Quit: leaving]
marr has quit [Ping timeout: 244 seconds]
mary5030 has quit [Remote host closed the connection]
hs366 has joined #ruby
<shevy>
sexy sexy ruby
<shevy>
I'd wish more people would do ruby-GUIs
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
jdawgaz has joined #ruby
kies has joined #ruby
idefine has joined #ruby
dc2 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros>
I wish there was a decent way to do mac GUIs with ruby
skweek has quit [Ping timeout: 244 seconds]
rbennacer has quit [Remote host closed the connection]
<darix>
apeiros: Qt bindings?
roshanavand_ has joined #ruby
Snowy has joined #ruby
<apeiros>
granted, haven't tried those for a couple of years now. last time was with ruby 1.8 (1.8.2 - 1.8.7), never got it to work properly.
rbennacer has joined #ruby
<apeiros>
does Qt still look like an odd-one-out on osx or does it look like a native app?
prestorium has joined #ruby
<havenwood>
apeiros: I'd prefer it if the free RubyMotion covered OS X instead of iOS.
SenpaiSilver has quit [Quit: Leaving]
<kspencer>
shevy: I'd be doing gui's but i can never figure the whole thing out, and I've looked at tutorials
<apeiros>
havenwood: not sure I get you right there - you mean even if rubymotion was free and covered osx, you'd still prefer qt?
rippa has joined #ruby
bricker has joined #ruby
noService has quit [Ping timeout: 246 seconds]
mank has quit [Read error: Connection reset by peer]
<havenwood>
apeiros: I said that very poorly. I mean the free version of RubyMotion only covers iOS. But if instead it covered OS X i'd happen to get more use of it.
preyalone has joined #ruby
pwnd_nsfw` is now known as pwnd_nsfw
<shevy>
kspencer well the basics are quite simple; you use widgets, these widgets can respond to events such as mouse click. if you know javascript, it'll even be simpler. problem is there are just so few people who want to write oldschool GUI apps in the days of the www era
<havenwood>
GUI bindings is a rare area where I envy the Pythonistas.
<shevy>
<havenwood> shevy: two snakes is too many snakes
<shevy>
:D
<shevy>
the python guys must have armies of C and C++ savvy devs
kirillzh has joined #ruby
kirillzh has quit [Max SendQ exceeded]
idefine_ has joined #ruby
mank has joined #ruby
kirillzh has joined #ruby
mank has quit [Max SendQ exceeded]
ascarter has joined #ruby
mank has joined #ruby
ascarter has quit [Client Quit]
workmad3 has joined #ruby
sadin has joined #ruby
idefine has quit [Ping timeout: 276 seconds]
dopie has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Devalo has quit [Remote host closed the connection]
aegis3121 has quit [Ping timeout: 240 seconds]
idefine_ has quit [Ping timeout: 244 seconds]
mank has quit [Read error: Connection reset by peer]
Devalo has joined #ruby
slawrence00 has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
griffindy has joined #ruby
agentmeerkat has joined #ruby
cjbottaro has joined #ruby
last_staff has joined #ruby
mank has joined #ruby
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
skweek has joined #ruby
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
idefine has joined #ruby
valetudo has quit [Read error: Connection reset by peer]
lodom has joined #ruby
<lodom>
hi
cjbottaro has quit [Client Quit]
inukshuk_ has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
Uber|Dragon has quit [Ping timeout: 250 seconds]
djellemah has joined #ruby
idefine has joined #ruby
<lodom>
I want to write a C program with embedded ruby on windows and tried cygwins ruby 2.2.0 with -dev and rubyinstaller ruby with devkit installed. I've also read that mixing cygwin and rubyinstaller is a no go so I installed mingws gcc, added it to path and tried to compile the test.c which gave me a bunch of dll errors. I was searching the net for some useful links but couldn't find any. sites related to building
<lodom>
native gems didn't help much either. I also read about using c++ and ruby dlls but it has to be C. Im neither a windows dev expert nor a C pro and I know that this might not be a good starting base.. but anyhow, I want to achieve it. please see the following pastebin for the outputs I got and I hope one can give me a helpful tip. (I have no problems compiling this code on linux or using ruby in C on linux, bu
aryaching has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
hightower3 has joined #ruby
aryaching has joined #ruby
mleung has quit [Client Quit]
sepp2k has joined #ruby
skweek has joined #ruby
mark3 has quit [Remote host closed the connection]
bronson has joined #ruby
Guest38 has joined #ruby
symm- has joined #ruby
halfamind has quit [Read error: Connection reset by peer]
mleung has joined #ruby
halfamind has joined #ruby
scepticulous has quit [Ping timeout: 244 seconds]
hightower2 has quit [Ping timeout: 276 seconds]
Salve has quit [Remote host closed the connection]
aryaching has quit []
bronson has quit [Ping timeout: 248 seconds]
dc2 has quit [Ping timeout: 276 seconds]
rodfersou|lunch has quit [Quit: leaving]
floatingpoint has joined #ruby
SpikeSpiegel has joined #ruby
SpikeSpiegel is now known as GitGud
ferr has quit [Quit: WeeChat 1.4]
symm- has quit [Ping timeout: 252 seconds]
idefine__ has quit [Remote host closed the connection]
wilbert has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
pandaant has joined #ruby
shinnya has joined #ruby
idefine has joined #ruby
robbyoconnor has joined #ruby
tvw has joined #ruby
silentpost has joined #ruby
Blaguvest has joined #ruby
skade has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n008f4g_ has quit [Ping timeout: 260 seconds]
ChiefAlexander has quit [Remote host closed the connection]
Devalo has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
someoneelsetho is now known as speakingcode
speakingcode has quit [Quit: leaving]
oncall-pokemon has joined #ruby
ChiefAlexander has joined #ruby
Salve has joined #ruby
speakingcode has joined #ruby
MonsterMunch has quit [Quit: MonsterMunch]
GitGud has quit [Quit: But first, let me drink some protein...]
nobitanobi has joined #ruby
symm- has joined #ruby
tubuliferous has joined #ruby
merida has joined #ruby
preyalone has quit [Quit: Connection closed for inactivity]
vdamewood has quit [Quit: Life beckons.]
idefine has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
idefine has joined #ruby
Devalo has quit [Ping timeout: 276 seconds]
rcvalle has joined #ruby
unshadow has quit [Quit: leaving]
Musashi007 has joined #ruby
aegis3121 has joined #ruby
User458764 has joined #ruby
matt_d_ is now known as matt_d
joonty has quit [Ping timeout: 276 seconds]
idefine has quit [Remote host closed the connection]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has joined #ruby
wilbert has quit [Ping timeout: 252 seconds]
ChiefAlexander has quit [Remote host closed the connection]
ruby-lang870 has joined #ruby
bronson has joined #ruby
ivanskie has joined #ruby
Riviera- has joined #ruby
baweaver has joined #ruby
idefine has quit [Remote host closed the connection]
codecop has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
wilbert has joined #ruby
pandaant has quit [Quit: Lost terminal]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has joined #ruby
wldcordeiro has joined #ruby
vasilakisfil has quit [Quit: Konversation terminated!]
troulouliou_div2 has joined #ruby
codecop has quit [Remote host closed the connection]
moua has left #ruby ["Leaving..."]
baweaver has quit [Ping timeout: 248 seconds]
poguez_ has joined #ruby
marr has joined #ruby
joonty has joined #ruby
merida has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 240 seconds]
idefine has quit [Remote host closed the connection]
roshanavand_ has quit [Quit: This computer has gone to sleep]
FooMunki has quit [Quit: FooMunki]
araujo has quit [Ping timeout: 248 seconds]
FooMunki has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
jehoesefat has quit [Ping timeout: 268 seconds]
idefine has joined #ruby
mhoungbo has quit [Remote host closed the connection]
dopie has quit [Quit: Lost terminal]
dopie has joined #ruby
Zarthus_ is now known as Zarthus
joonty has quit [Ping timeout: 268 seconds]
roshanavand_ has joined #ruby
silentpost has quit [Ping timeout: 244 seconds]
n008f4g_ has joined #ruby
baweaver has joined #ruby
_stu_ has quit [Quit: _stu_]
idefine has quit [Ping timeout: 250 seconds]
<floatingpoint>
sanity check: Dir["/some_dir/*.txt"] will match anything ending in .txt in some_dir, correct?
<nobitanobi>
How do you sufix methods that return a date like "April 10, 2013 9:00"? For example, if I want to return the time the visit happened (but that time also includes date), would you do def visit_datetime?
mjc_ has joined #ruby
mrgrieves has quit [Ping timeout: 248 seconds]
WhoLettem has joined #ruby
<WhoLettem>
Hey
<WhoLettem>
How do I make an account on here?
<adaedra>
/msg NickServ HELP
armyriad has quit [Ping timeout: 240 seconds]
troulouliou_div2 has quit [Remote host closed the connection]
weemsledeux has joined #ruby
baweaver has quit [Ping timeout: 260 seconds]
<floatingpoint>
sanity check: Dir["/some_dir/*.txt"] will match anything ending in .txt in some_dir, correct?
armyriad has joined #ruby
tubuliferous has quit [Ping timeout: 244 seconds]
<aegis3121>
nobitanobi: probably. Does it return a DateTime object, or a String?
wilbert has quit [Ping timeout: 252 seconds]
<floatingpoint>
hm. this must be a tough question to answer
Musashi007 has quit [Quit: Musashi007]
SCHAAP137 has joined #ruby
SCHAAP137 has joined #ruby
baweaver has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
morissette has quit [Remote host closed the connection]
<nobitanobi>
aegis3121: should the object class change the name of the method?
nettoweb has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
Disavowed has joined #ruby
czerasz has quit [Quit: Leaving]
drewo has joined #ruby
<aegis3121>
¯\_(ツ)_/¯ Depends on who you ask. I would probably call it visit_datetime regardless and make sure I document what it returns (String, Datetime, w/e)
<aegis3121>
Someone who (their fault, really, I suppose) consumes it without reading the docs might expect it to return a DateTime object, though.
roshanavand_ has quit [Quit: This computer has gone to sleep]
<nobitanobi>
aegis3121: cool, thanks :)
<nobitanobi>
datetime vs date_time :{
<nobitanobi>
:)
<aegis3121>
that seems....mostly preferential lol
<apeiros>
nobitanobi: visited_datetime is bad
<apeiros>
you don't annotate the type in other methods either, do you?
<aegis3121>
but `visit` doesn't really make sense on its own
<nobitanobi>
right, I'm trying to sufix it with what is conceptually is returning
mwlang has joined #ruby
<apeiros>
visit_at
baweaver has quit [Remote host closed the connection]
<nobitanobi>
apeiros: I was thinking on being explicit that I'm returning not just a date, but also a time
<apeiros>
or maybe "visit" itself is wrong if it's not clear enough.
<apeiros>
no, don't do that. that's documentation stuff.
<apeiros>
as illustrated above, it's just silly to annotate the type in the method name.
elifoster has joined #ruby
baweaver has joined #ruby
<nobitanobi>
apeiros: thanks
ChiefAlexander has joined #ruby
JoshGlzBrk has joined #ruby
chocoelho has left #ruby ["WeeChat 1.4"]
14WAAJ0BT has joined #ruby
<mwlang>
Is there a size limit to Nokogiri::XML ? I have an XML document with a base64 encoded field in it that’s running to the tune of 11mb. It’s failing to parse with premature end of data. I’m not sure if it’s bad data or size limitation, just yet...
ixti has quit [Ping timeout: 244 seconds]
jkahn has joined #ruby
<apeiros>
mwlang: I doubt 11MB would trigger any limit. my bet is on bad data.
nando293921 has joined #ruby
ljames has joined #ruby
jdawgaz has joined #ruby
edwinvdgraaf has quit [Ping timeout: 264 seconds]
sadin has quit [Quit: Leaving]
Devalo has joined #ruby
<nobitanobi>
apeiros: so even if to me the concept of what the method is returning might be a date or date and time, you would avoid suffixing it yes?
<smathy>
mwlang, no limit as far as I know, other than machine RAM. I've heard of people doing hundreds of megs, even gigs.
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
Snowy has quit [Remote host closed the connection]
<apeiros>
nobitanobi: yes. unless I have explicitly two methods where one does date and the other time of day.
<nobitanobi>
I guess my question is more what is the human expression that we will use to represent a moment in time that is defined by a date and a time.
<apeiros>
though honestly I doubt I'd ever do that. I'd just chain on the datetime returning method.
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nobitanobi>
in order to make my method self documented :)
<mwlang>
smathy: thanks for that. will focus my effort on the content, then.
maletor has joined #ruby
davedev24 has quit []
<nobitanobi>
regardless of whether I am returning a datetime or a string
<smathy>
mwlang, yeah, look for stuff not confirming to the specified encoding.
<nobitanobi>
how do I make my method self documenting to say that I am returning a moment in time that is represented with date and a time
<smathy>
*orming
<nobitanobi>
apeiros: perhaps `_moment`
ryanprior has joined #ruby
idefine has joined #ruby
Synthead has quit [Ping timeout: 252 seconds]
<apeiros>
nobitanobi: eh, if you really think "visit" or "visit_at" is unclear, then I'd prefer visit_date or visit_appoinment over visit_moment.
<ryanprior>
I have a string that comprises YAML fragments that could be children of a hypothetical parent node. I want to parse them all and get a list of YAML ASTs, but when I YAML.parse them, it just reads the first one. Is there an easy way to get what I want?
<nobitanobi>
thanks apeiros
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
ryanprior: --- is the yaml document separator
nettoweb has joined #ruby
mikecmpbll has joined #ruby
<ryanprior>
apeiros: my strings don't have --- between the subdocuments. Do I need to build a regex to insert them?
<apeiros>
ryanprior: how does your document separate the yaml fragments then?
duncannz has joined #ruby
<apeiros>
and why doesn't it use proper yaml syntax to do so?
jehoesefat has joined #ruby
drewo has quit [Ping timeout: 248 seconds]
duncannz has quit [Max SendQ exceeded]
yfeldblum has joined #ruby
duncannz has joined #ruby
boontdustie has joined #ruby
idefine has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
<ryanprior>
apeiros: because it's intended as end-user documentation, not as valid YAML.
BtcBen has joined #ruby
tubuliferous has joined #ruby
<apeiros>
and you parse end-user documentation because…?
Blaguvest has quit [Ping timeout: 252 seconds]
drewo has joined #ruby
f4cl3y has quit [Ping timeout: 260 seconds]
<ryanprior>
I want to write a test that ensures the YAML examples parse.
jaruga_ has quit [Quit: jaruga_]
Don_John has joined #ruby
<apeiros>
well then I guess good luck at parsing documentation. there's really not much to say. figure how to separate them and parse them separately.
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
idefine has joined #ruby
jehoesefat has quit [Client Quit]
mdw has quit [Quit: Sleeping Zzzzz]
Don_John has quit [Read error: Connection reset by peer]
idefine has quit [Remote host closed the connection]
axl__ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<ryanprior>
apeiros: thank you!
yfeldblum has joined #ruby
axl_ has quit [Ping timeout: 268 seconds]
axl__ is now known as axl_
nanoz has quit [Read error: Connection reset by peer]
jmignault has joined #ruby
idefine has joined #ruby
ramfjord has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubuliferous has quit [Ping timeout: 276 seconds]
nchambers is now known as DeerGod
blackmesa has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 260 seconds]
ruby-lang870 has quit [Ping timeout: 250 seconds]
Synthead has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
davee_ has joined #ruby
evidex has quit [Read error: Connection reset by peer]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
anirban has joined #ruby
codecop has joined #ruby
r00by has joined #ruby
evidex has quit [Quit: leaving]
tubulife| has joined #ruby
mleung_ has joined #ruby
smathy_ has joined #ruby
nertzy2 has joined #ruby
diprotic has joined #ruby
mwlang_ has joined #ruby
[spoiler] has quit [Ping timeout: 250 seconds]
freerobby has quit [Ping timeout: 250 seconds]
monoprotic has quit [Ping timeout: 250 seconds]
mleung has quit [Ping timeout: 250 seconds]
err_ok has quit [Ping timeout: 250 seconds]
jhill has quit [Ping timeout: 250 seconds]
mleung_ is now known as mleung
tubuliferous_ has quit [Read error: Connection reset by peer]
mwlang has quit [Ping timeout: 250 seconds]
cpup has quit [Ping timeout: 250 seconds]
iamvery has quit [Ping timeout: 250 seconds]
mwlang_ is now known as mwlang
jlyndon has quit [Ping timeout: 250 seconds]
halfdan has quit [Ping timeout: 250 seconds]
HashNuke has quit [Ping timeout: 250 seconds]
apipkin_ has quit [Ping timeout: 250 seconds]
jcp has quit [Ping timeout: 250 seconds]
pizzaops has quit [Ping timeout: 250 seconds]
alnewkirk has quit [Ping timeout: 250 seconds]
LBRapid has quit [Ping timeout: 250 seconds]
braderhart has quit [Ping timeout: 250 seconds]
[dmp] has quit [Ping timeout: 250 seconds]
hackeron_ has quit [Ping timeout: 250 seconds]
gmci has quit [Ping timeout: 250 seconds]
_dev has quit [Ping timeout: 250 seconds]
err_ok has joined #ruby
freerobby has joined #ruby
cpup has joined #ruby
idefine has quit [Remote host closed the connection]
LBRapid has joined #ruby
nettoweb has quit [Ping timeout: 250 seconds]
sqdntf has quit [Ping timeout: 250 seconds]
madhatter has quit [Ping timeout: 250 seconds]
yeticry has quit [Ping timeout: 250 seconds]
Platini has quit [Ping timeout: 250 seconds]
_dev has joined #ruby
nofxx has quit [Ping timeout: 250 seconds]
nertzy has quit [Ping timeout: 250 seconds]
aef has quit [Ping timeout: 250 seconds]
hays has quit [Ping timeout: 250 seconds]
iamvery has joined #ruby
smathy has quit [Ping timeout: 250 seconds]
alnewkirk has joined #ruby
hackeron has joined #ruby
nofxx has joined #ruby
madhatter has joined #ruby
ifhodp has joined #ruby
yeticry has joined #ruby
halfdan has joined #ruby
idefine has joined #ruby
jlyndon has joined #ruby
hays has joined #ruby
braderhart has joined #ruby
jhill has joined #ruby
jcp has joined #ruby
HashNuke has joined #ruby
skweek has quit [Remote host closed the connection]
<r00by>
hi, I was wanting to deploy a little ruby slack chatbot, I was wondering if anyone could recommend a service for deploying such a small ruby app to?
pizzaops has joined #ruby
apipkin_ has joined #ruby
mostlybadfly has joined #ruby
gmci has joined #ruby
agentmeerkat has joined #ruby
tildes has joined #ruby
skweek has joined #ruby
Devalo has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
kirun has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
jjturner has joined #ruby
araujo_ has joined #ruby
idefine has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
marr has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
_stu_ has quit [Quit: _stu_]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
devbug has joined #ruby
smathy_ is now known as smathy
<mwlang>
r00by: I think heroku offers some sort of free hosting for very small apps. not 100% sure on that, though.
blandflakes is now known as DuskPidgeon
DuskPidgeon is now known as blandflakes
araujo has quit [Ping timeout: 248 seconds]
bob434 has joined #ruby
[dmp] has joined #ruby
devbug has quit [Client Quit]
n008f4g_ has quit [Ping timeout: 276 seconds]
whippythellama has quit [Quit: WeeChat 1.4]
jackjackdripper has joined #ruby
rbennacer has joined #ruby
<r00by>
mwlang: they do, but they will get suspended if they don't receive any requests for a while, my app listens for live updates from Pusher, but I think they'll be dropped if my app is suspended
whippythellama has joined #ruby
_blizzy_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
DeerGod is now known as nchambers
drewo has quit [Ping timeout: 260 seconds]
aef has quit [Remote host closed the connection]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
tjohnson_ has joined #ruby
zzak____ has joined #ruby
jabreity_ has joined #ruby
twodayslate_ has joined #ruby
jdawgaz has joined #ruby
deimos_ has joined #ruby
Disavowed has quit [Ping timeout: 276 seconds]
jackjackdripper has quit [Client Quit]
rbennacer has joined #ruby
jcp_ has joined #ruby
Y_Ichiro_ has joined #ruby
jackjackdripper has joined #ruby
User458764 has joined #ruby
andersh_ has joined #ruby
akahn_ has joined #ruby
nwhirschfeld_ has joined #ruby
kireevco_ has joined #ruby
jhill_ has joined #ruby
acerna_ has joined #ruby
fexilal has quit [Ping timeout: 240 seconds]
Guest4184_______ has joined #ruby
pfg__ has joined #ruby
zacts_ has joined #ruby
hostess_ has joined #ruby
ozzloy_ has joined #ruby
danzilio_ has joined #ruby
tvl has joined #ruby
ryanprio` has joined #ruby
baweaver has joined #ruby
bronson has quit []
rbennacer has quit [Remote host closed the connection]
Eiam has joined #ruby
Dr_r00t3r has joined #ruby
ryanprior has quit [Remote host closed the connection]
rbennacer has joined #ruby
bogdanteleaga_ has joined #ruby
<mwlang>
r00by: in that case, I’d suggest a small VPS at digital ocean.
kenichi_ has joined #ruby
existensil_ has joined #ruby
spaceghost|work has joined #ruby
dfockler has quit [Read error: Connection reset by peer]
tubbo` has joined #ruby
Dr_r00t3r has quit [Client Quit]
Dr_r00t3r has joined #ruby
Uber|Dragon has quit [Ping timeout: 244 seconds]
<mwlang>
I run a full-fledge gitlab server at DO and it costs me just shy of $20/mo with heavy daily use (~15 repos and ~3 developers)
chridal_ has joined #ruby
SenpaiSilver_ has joined #ruby
ereslibre_laptop has joined #ruby
<smathy>
r00by, the sleep mode shouldn't result in a dropped connection, just a delay for the first request during a sleep.
pwnd_nsfw` has joined #ruby
mnrmnaugh_ has joined #ruby
<r00by>
mwlang: okay, I'll check it out. Sounds like pretty good value. I had looked into prgrmr, aws and docker.
jottr has joined #ruby
cschneid- has joined #ruby
User458764 has quit [Ping timeout: 240 seconds]
pwnd_nsfw has quit [Read error: Connection reset by peer]
jinie has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
jcp has quit [Ping timeout: 250 seconds]
jhill has quit [Ping timeout: 250 seconds]
tubbo has quit [Ping timeout: 250 seconds]
blackjid has quit [Ping timeout: 250 seconds]
Guest4184______ has quit [Ping timeout: 250 seconds]
pfg has quit [Ping timeout: 250 seconds]
amitchellbullard has quit [Ping timeout: 250 seconds]
zzak___ has quit [Ping timeout: 250 seconds]
tjohnson has quit [Ping timeout: 250 seconds]
jabreity has quit [Ping timeout: 250 seconds]
andersh has quit [Ping timeout: 250 seconds]
deimos has quit [Ping timeout: 250 seconds]
twodayslate has quit [Ping timeout: 250 seconds]
kireevco has quit [Ping timeout: 250 seconds]
danzilio has quit [Ping timeout: 250 seconds]
chridal has quit [Ping timeout: 250 seconds]
acerna has quit [Ping timeout: 250 seconds]
akahn has quit [Ping timeout: 250 seconds]
pipework has quit [Ping timeout: 250 seconds]
zacts has quit [Ping timeout: 250 seconds]
kenichi has quit [Ping timeout: 250 seconds]
existensil has quit [Ping timeout: 250 seconds]
ozzloy has quit [Ping timeout: 250 seconds]
weaksauce has quit [Ping timeout: 250 seconds]
mnrmnaugh has quit [Ping timeout: 250 seconds]
hostess has quit [Ping timeout: 250 seconds]
tobiasvl has quit [Ping timeout: 250 seconds]
bogdanteleaga has quit [Ping timeout: 250 seconds]
nwhirschfeld has quit [Ping timeout: 250 seconds]
cschneid_ has quit [Ping timeout: 250 seconds]
Sthebig has quit [Ping timeout: 250 seconds]
Y_Ichiro has quit [Ping timeout: 250 seconds]
mhoungbo has joined #ruby
amitchellbullard has joined #ruby
kireevco_ is now known as kireevco
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
tvl is now known as tobiasvl
tubbo` is now known as tubbo
bogdanteleaga_ is now known as bogdanteleaga
idefine has joined #ruby
amitchellbullard has joined #ruby
amitchellbullard has quit [Changing host]
armyriad has joined #ruby
SenpaiSilver has quit [Read error: Connection reset by peer]
Guest26624 has quit [Ping timeout: 240 seconds]
<r00by>
smathy: really? okay, I'll give it a shot since the delay wouldn't be a problem
jabreity_ is now known as jabreity
jinie has joined #ruby
Sthebig has joined #ruby
Sthebig has quit [Changing host]
Sthebig has joined #ruby
kobain has joined #ruby
danzilio_ is now known as danzilio
<mwlang>
so, on the nokogiri problem, still: I’ve narrowed it down. It’s definitely a size of content problem. it’s basically a SOAP message with an embedded, escaped SOAP message in that. When that embedded string reaches 10mb in size, nokogiri comes up completely empty on that element’s content.
<apeiros>
apes: can't judge how idiomatic code is when you take it out of context.
idefine has joined #ruby
graffix has left #ruby [#ruby]
FooMunki has joined #ruby
<apes>
apeiros: I'm not sure there is more context to provide - it's about constructing an array from variables and other arrays
IrishGringo has joined #ruby
stunder001 has joined #ruby
<apes>
Would something like `result = [foo, bar] + baz` be better?
jokester has joined #ruby
elifoster has quit [Ping timeout: 264 seconds]
<mwlang>
I’m fine with both, but probably prefer the latter.
BLuEGoD has quit [Ping timeout: 260 seconds]
<mwlang>
I tend to think of splatting arrays as digging deeper into the facilities of the language than I need to.
<smathy>
Latter is clearer, I tend to use the simplest operators where possible and no significant disadvantage. Not a comment on whether either is idiomatic.
<smathy>
Heh, we're "tend"ing :)
<mwlang>
LMAO
<mwlang>
I guess its true, then. Why get fancy when you don’t need to?
<smathy>
Exactly.
<smathy>
We're not writing Perl after all.
tenderlove has joined #ruby
* apeiros
wouldn't consider [foo, bar, *baz] fancy
<smathy>
You came from a Perl background right?
<apeiros>
that's quite long ago
B1n4r10 has quit [Ping timeout: 244 seconds]
* smathy
nods as he backs away slowly
skweek has quit [Ping timeout: 248 seconds]
<apeiros>
time passes… must be >15y now.
MooseTans has joined #ruby
<smathy>
Yeah, about 10 for me.
zenergi has quit [Quit: leaving]
jgrevich has joined #ruby
<smathy>
I still say the splat is fancier than the concat.
BLuEGoD has joined #ruby
<smathy>
...I go for simplest unless there's a reason.
citrusfizz has quit [Quit: ChatZilla 0.9.92 [Firefox 45.0.1/20160315153207]]
BLuEGoD is now known as Guest61911
trinaldi has quit [Quit: WeeChat 1.5-dev]
mrgrieves has joined #ruby
gizmore has quit [Ping timeout: 276 seconds]
skweek has joined #ruby
Dimik has joined #ruby
pwnd_nsfw` is now known as pwnd_nsfw
maletor has quit [Quit: Computer has gone to sleep.]
<apes>
Thank you for your input!
halfamind has quit [Read error: Connection reset by peer]
MooseTans is now known as moosetans
halfamind has joined #ruby
mhoungbo has joined #ruby
B1n4r10 has joined #ruby
<shevy>
apeiros did you not also wrote some 50.000 lines of php code or something :D
skade has quit [Quit: Computer has gone to sleep.]
<apeiros>
you're referring to my framework. I probably wrote way beyond 50kLoC of PHP in my life
skade has joined #ruby
Eiam_ has joined #ruby
Breaking_Pitt has joined #ruby
jaruga has joined #ruby
jaruga is now known as jaruga_
<mwlang>
for me, splatting is akin to passing by value vs. passing by reference in compiled languages, or more specificaly in my case with Delphi/Pascal. When prefixing a parameter passed into a method, we were in-effect, bypassing potential compiler warnings/checks that would otherwise prevent you sending an unknown oject type into the method. You then also as the programmer, be aware of what you were doing inside that method and correctly handle tho
<mwlang>
special parameters.
infernix has joined #ruby
Snowy has joined #ruby
<mwlang>
granted that’s not quite the same with Ruby’s splat operator, but *something still makes me stand up and pay attention.
<shevy>
*cats
<shevy>
stand up and pay attention to cats mwlang!
skade has quit [Quit: Computer has gone to sleep.]
<djellemah>
^5 noice
drewo has joined #ruby
<eam>
splatting is a throwback to perl's list context
anirban has quit [Quit: Konversation terminated!]
<eam>
in perl, list types are splatted by default
n008f4g_ has quit [Ping timeout: 244 seconds]
blackgoat has joined #ruby
johnmilton has quit [Quit: Namaste]
weaksauce has joined #ruby
ur5us has joined #ruby
andersh_ has quit []
wldcordeiro has quit [Ping timeout: 240 seconds]
anders__ has joined #ruby
anders__ has quit [Client Quit]
SCHAAP137 has quit [Quit: Leaving]
DonOtreply has joined #ruby
drewo has quit [Quit: WeeChat 1.2]
drewo has joined #ruby
yqt has joined #ruby
Breaking_Pitt has quit [Read error: Connection reset by peer]
anders__ has joined #ruby
ruby-lang400 has joined #ruby
baweaver has quit [Remote host closed the connection]
moosetans has quit [Ping timeout: 246 seconds]
<ruby-lang400>
I have two int values from a MySQL recordset that I'm trying to compare using if a > b etc but am getting incositent results can anyone help?
<ruby-lang400>
for example sometimes i get 9 > 24 is true!
ascarter has joined #ruby
<blandflakes>
ruby-lang400: that sounds like string comparison
halfamind has quit [Read error: Connection reset by peer]
<ruby-lang400>
blandflakes - I set'em first with a = 0 and b= 0 then assign the MySQL values using a = valuea and b = valueb then do if a<b then...
Ikri has quit [Ping timeout: 250 seconds]
<apeiros>
ruby-lang400: that a=0 and b=0 is pointless
<smathy>
ruby-lang400, right, setting them to integers first makes no difference to what you (probably) assign to them later.
skade has joined #ruby
<blandflakes>
yup. what is the type of valuea?
<smathy>
ruby-lang400, after doing the a = valuea do a a.class
nofxx has quit [Ping timeout: 240 seconds]
Disavowed has joined #ruby
skade has quit [Client Quit]
nofxx has joined #ruby
biberu has joined #ruby
<smathy>
(like log, puts, view in debugger, etc)
a11 has quit [Remote host closed the connection]
darkf has joined #ruby
andikr has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
mistermocha has quit [Ping timeout: 240 seconds]
ixti has joined #ruby
yfeldblum has joined #ruby
cd-rum has joined #ruby
a11 has joined #ruby
DonOtreply is now known as moosetans
dionysus69 has quit [Ping timeout: 276 seconds]
crdpink2 has quit [Read error: Connection reset by peer]
crdpink2 has joined #ruby
IrishGringo has quit [Ping timeout: 240 seconds]
wldcordeiro has joined #ruby
<ruby-lang400>
blandflakes - aha a.class gives me string! I'll go read how to convert to an int - thankyou!!
chipotle has quit [Ping timeout: 240 seconds]
<blandflakes>
ruby-lang400: best of luck. Worth mentioning that if these are actually numbers, it may be worth revisiting the schema of your table
<ruby-lang400>
blankflakes - the MySQL values are from Select Count() so I expected them to be ints
baweaver has joined #ruby
nettoweb has quit [Excess Flood]
phatypus has joined #ruby
IrishGringo has joined #ruby
<blandflakes>
could be a library thing - i'm not super familiar with most interfaces with mysql
<blandflakes>
in any case, now that you have the cause, you should be able to figure it out :)
Es0teric has quit [Quit: Computer has gone to sleep.]
boontdustie has quit [Remote host closed the connection]
fullofca_ has quit [Remote host closed the connection]
moei has quit [Quit: Leaving...]
Breaking_Pitt has joined #ruby
phatypus has quit [Client Quit]
chipotle has joined #ruby
smathy has quit [Ping timeout: 276 seconds]
graffix has joined #ruby
smathy_ has joined #ruby
Xiti has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
a11 has quit [Remote host closed the connection]
dtzuzu has quit [Quit: WeeChat 1.3]
Guest61911 has joined #ruby
smathy_ is now known as smathy
dtzuzu has joined #ruby
chrisja has joined #ruby
skweek has quit [Ping timeout: 244 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
swills has quit [Ping timeout: 244 seconds]
djbkd has quit [Remote host closed the connection]
maletor has joined #ruby
chipotle has quit [Max SendQ exceeded]
graffix has left #ruby [#ruby]
a11 has joined #ruby
chipotle has joined #ruby
mrgrieves has quit [Ping timeout: 260 seconds]
Guest61911 has quit [Ping timeout: 246 seconds]
oncall-pokemon has quit [Quit: Connection closed for inactivity]
whippythellama has quit [Quit: WeeChat 1.4]
codecop has quit [Quit: Išeinu]
Antiarc_ is now known as Antiarc
andywojo has joined #ruby
ta_ has joined #ruby
neilhwatson has quit [Quit: leaving]
ruby-lang400 has quit [Quit: Page closed]
cpruitt has quit [Quit: cpruitt]
B1n4r10 has quit [Ping timeout: 244 seconds]
moosetans has quit [Quit: moosetans]
Musashi007 has joined #ruby
xaxisx has quit [Quit: xaxisx]
stannard has quit [Remote host closed the connection]
smathy_ has joined #ruby
smathy has quit [Ping timeout: 260 seconds]
axl_ has quit [Quit: axl_]
smathy_ is now known as smathy
baweaver has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
axl_ has joined #ruby
rbennacer has joined #ruby
<mwlang>
well, I think I found the source of my limitation on the XML parsing. appears to be coming straight from libxml2. When I use the libxml-ruby gem (which I understand nokogiri also does) and pass in the document, I immediately hit upon this error: Fatal error: internal error: Huge input lookup at :53.
rbennacer has quit [Remote host closed the connection]
fevrbd has quit [Ping timeout: 248 seconds]
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
skade has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
benlieb has joined #ruby
smathy has quit [Ping timeout: 244 seconds]
DrCode has quit [Ping timeout: 276 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mostlybadfly has quit [Quit: Connection closed for inactivity]
ascarter has joined #ruby
skade has quit [Client Quit]
B1n4r10 has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
a11 has quit [Remote host closed the connection]
stannard has joined #ruby
a11 has joined #ruby
ascarter has quit [Client Quit]
n008f4g_ has joined #ruby
moeabdol4 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
smathy has joined #ruby
lkba has quit [Remote host closed the connection]
camilasann has quit [Remote host closed the connection]
stannard has quit [Ping timeout: 244 seconds]
ramfjord has joined #ruby
ldnunes has quit [Quit: Leaving]
ffgghh has quit [Ping timeout: 244 seconds]
tubuliferous has quit [Ping timeout: 248 seconds]
jmignault has quit [Ping timeout: 248 seconds]
krz has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
ascarter has joined #ruby
tubuliferous has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
Musashi007 has joined #ruby
B1n4r10 has quit [Quit: Lost terminal]
Guest61911 has joined #ruby
prestorium has quit [Excess Flood]
AlexRussia has joined #ruby
yfeldblum has quit [Remote host closed the connection]
bob434 has quit [Quit: This computer has gone to sleep]
bob434 has joined #ruby
yfeldblum has joined #ruby
Musashi007 has quit [Quit: Musashi007]
whippythellama has joined #ruby
wldcordeiro has quit [Ping timeout: 246 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bluOxigen_ has joined #ruby
benlieb has quit [Quit: benlieb]
camilasan has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
noy|b has joined #ruby
dgncn_ is now known as dgncn
ta_ has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
Musashi007 has joined #ruby
ramfjord_ has joined #ruby
chouhoulis has joined #ruby
ziyadb has joined #ruby
IrishGringo has quit [Ping timeout: 260 seconds]
Lomex has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
Karix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
<mykeura>
Hola, alguien ha podido instalar "rvm" o "rbenv" en Arch Linux?
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
the toplevel namespace, does any of you have some estimate if people are more likely to have it a module or class? module Foobar versus class Foobar? Which one is more likely?