eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<crocket>
toretore, If you specify how to construct a config database in the repo, you don't need to keep config in the repo.
<eladmeidar>
toretore: i like your ways.
<eladmeidar>
Configurations does not belong in the db, nor in source control.
eka has joined #ruby
<toretore>
crocket: i still don't see how a database is better
<crocket>
toretore, My coworkers approve stupid ways of doing things as long as they don't violate deadlines.
<toretore>
crocket: with the db you're still going to have to populate it or you're back to no config
<crocket>
toretore, I agree that a database is not much better, but it's better than commiting changes to config.
<pontiki>
some wag will likely come along and write a migration to load configuration data and BOOM config in repo yet again
<ramfjord>
yeah, one advantage of db is you can have the db password stored elsewhere on the host
<ramfjord>
and could have changing prod passwords somewhere in the deploy script
nicholas040 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
xargoon has joined #ruby
<crocket>
toretore, However, it's a good idea to keep config structure in the repo.
<toretore>
provide a config sample
<ramfjord>
at least a dev config
<crocket>
yes
<crocket>
It's a config structure for ui tests.
j_mcnally has quit [Ping timeout: 256 seconds]
Hanmac has joined #ruby
nateberkopec has joined #ruby
oso96_2000 is now known as oso|away
nicholas040 has joined #ruby
brunops has joined #ruby
<ramfjord>
it is kind of sad to need to do dev to avoid config file changes - code reviews would be a good way of keeping people from cowboy pushing changes
willgorman_ has quit [Ping timeout: 240 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
<crocket>
toretore, The amount of config will grow.
yano has quit [Ping timeout: 630 seconds]
<crocket>
I want to reign the complexity before it grows.
<eladmeidar>
of course.
<toretore>
ok, here's what you do: provide a default config file that is checked in; then allow another config file that overrides the first, not checked in
yfeldblum has quit [Remote host closed the connection]
<crocket>
toretore, Manually keeping up with config directives was a nightmare for many ruby installations.
<crocket>
An admin nightmare
nateberkopec has quit [Ping timeout: 240 seconds]
* eladmeidar
likes deep_merge
yfeldblum has joined #ruby
<eladmeidar>
i like deep merge and i cannot lie!
<toretore>
it's a rails thing though :/
Takle has quit [Remote host closed the connection]
<crocket>
toretore, However, copying config.js.example to config.js would be simple and do the job for my ui tests.
terrell_t has quit [Remote host closed the connection]
<eladmeidar>
indeed
<eladmeidar>
long story short
<crocket>
It's better than keeping up with the complexity of database migration.
<eladmeidar>
keep an example file in the repo, real configuration, not in the repo
bradhe has quit [Remote host closed the connection]
<toretore>
there is probably some java xml configuration framework you can use
<crocket>
eladmeidar, I may put the real config in .gitignore
* eladmeidar
waits for hifve
* eladmeidar
's hand is in the air
<eladmeidar>
crocket: exactly
mehlah has quit [Quit: Leaving...]
xargoon has joined #ruby
<toretore>
eladmeidar: hifive!
Asher has joined #ruby
<toretore>
can't leeave you hanging
ddv has quit [Ping timeout: 245 seconds]
<crocket>
toretore, I'm workin on nodejs.
<eladmeidar>
toretore: thank you
<crocket>
a json config would be simpler.
yfeldblu_ has joined #ruby
<eladmeidar>
toretore: 4 years ago you would have guessed it.
<toretore>
guessed what?
St_Marx has joined #ruby
<eladmeidar>
crocket: that he is working on nodejs
<toretore>
oh
<toretore>
did nodejs exist 4 years ago?
bradhe has joined #ruby
arya_ has quit [Ping timeout: 240 seconds]
<eladmeidar>
you would have known it anyway, you and your laser eyes
<toretore>
Initial releaseMay 27, 2009
<toretore>
damnit
<crocket>
I'm writing ui tests in nodejs.
<crocket>
I need to keep ui test configuration somewhere.
ddv has joined #ruby
nicholas040 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 240 seconds]
xcv has joined #ruby
icarus_ has quit [Ping timeout: 256 seconds]
xargoon has quit [Ping timeout: 240 seconds]
<eladmeidar>
HA
dorei has quit []
djbkd has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
yano has joined #ruby
djbkd has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
dc_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
omosoj has quit [Ping timeout: 264 seconds]
<Eiam>
hmm.. inline rescue of Errno::ENOENT
starkhalo has quit [Ping timeout: 240 seconds]
<Eiam>
I have a library I don't own that will sometimes fail with Errno:ENOENT which is if a file doesn't exist on disk. I'd like to just swallow it and return nil instead. so I tried THING::Thingy.find_thing(blah) rescue Errno::ENOENT || nil
<Eiam>
unfortunately that gets me Errno::ENOENT and not nil
starkhalo has joined #ruby
<wallerdev>
well
arrubin has joined #ruby
<wallerdev>
when you rescue something it returns the error message it just stops raising it
<wallerdev>
so it simplifies to Errno::ENOENT || nil
<wallerdev>
|| nil isnt going to do anything there since Errno::ENOENT isnt falsy
<Eiam>
right, which gives me the left side
nateberkopec has joined #ruby
<Eiam>
right, so point me towards the bridge I can cross
<Eiam>
to solve this gap =)
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<wallerdev>
if result == Errno::ENOENT; return nil; end
<Eiam>
I mean I guess i could just do a big begin/rescue block
<wallerdev>
lol
<Eiam>
hmm
<Eiam>
rather conditionally create it
<Eiam>
x = result if result != Errno::ENOENT
<wallerdev>
if you do it often id just wrap it in a method
<Eiam>
except without repeating myself twice
<Eiam>
nah just this once
<Eiam>
(twss)
starkhalo has quit [Ping timeout: 248 seconds]
<toretore>
begin; find_thing; rescue ENOENT; nil; end
<Eiam>
bah
<Eiam>
wanted to avoid that
<Eiam>
but a least you ended up at the same place i did
<toretore>
why?
<Eiam>
cause its 3 lines of code
<wallerdev>
code golf of course
<wallerdev>
lol
nerdy has joined #ruby
<Eiam>
for something that ultimately i shouldn't have to do
<Eiam>
I'm tempted to just implement Maybe or a NullObject just to solve this
<Eiam>
but i don't want to drop it into the entire codebase so
nateberkopec has quit [Ping timeout: 240 seconds]
prdx_ has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
timgauthier has joined #ruby
<wallerdev>
yeah unfortunately rescue is kinda limited in terms of usage like that
zorak has quit [Read error: Connection reset by peer]
OffTheRails has joined #ruby
crocket has left #ruby ["Leaving"]
edgarjs is now known as edgarjs_afk
<Eiam>
hmm no inject!
<Eiam>
any clean way to just assign it back into the object you were enumerating without using a temp value and re-assgning?
<Eiam>
maybe it'll work with @blah = @blah.inject
<wallerdev>
object.tap ?
grieg has quit [Ping timeout: 240 seconds]
closer009 has quit [Ping timeout: 252 seconds]
<Eiam>
nah @blah = @blah.inject worked
<Eiam>
don't get why we don't have @blah.inject! but w/e
xcv has quit [Remote host closed the connection]
AlexRussia has quit [Remote host closed the connection]
<wallerdev>
! methods are dumb anyway
* Eiam
shrugs
<Eiam>
just tools
closer has joined #ruby
tyfighter has quit [Quit: <3]
marr has quit [Ping timeout: 260 seconds]
upsell5 has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
zz_karupa is now known as karupa
enebo has joined #ruby
stytown has joined #ruby
senayar has quit [Remote host closed the connection]
CrAzOiD has quit [Quit: Leaving]
Panicky has joined #ruby
eladmeidar has quit [Quit: eladmeidar]
senayar has joined #ruby
Doppp has joined #ruby
mg^^ is now known as mg^afk
enebo has quit [Client Quit]
AlexRussia has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 256 seconds]
bradhe has quit [Remote host closed the connection]
nateberkopec has joined #ruby
Panicky has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
maddtech has quit [Quit: Leaving]
CorpusCallosum has joined #ruby
<zenspider_>
inject! ???
<zenspider_>
that's... icky
zenspider_ is now known as zenspider
<wallerdev>
lol
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wallerdev>
you dont want to replace your array variable with a value?
sevenseacat has joined #ruby
dapz has joined #ruby
CodeLicker has joined #ruby
dapz has quit [Client Quit]
<zenspider>
wallerdev: just the concept of it is entirely borked.
nateberkopec has quit [Ping timeout: 240 seconds]
<zenspider>
like... what if there is more than one reference to it? why should it know that? Why should it track that?
<wallerdev>
im not really sure what hes using inject for in the first place lol
<zenspider>
I guess at that point, we might as well have smalltalk's #become:
<zenspider>
(which is awesome... but more in the dictionary sense of the word)
<wallerdev>
yeah that sounds neat
Mon_Ouie has quit [Ping timeout: 260 seconds]
zorak has joined #ruby
<zenspider>
until you reassign nil w/ some other object and everything goes to hell
<zenspider>
but smalltalk has tools for that too
<wallerdev>
lol
<wallerdev>
i never got into smalltalk
oo_ has joined #ruby
Aryasam_ has quit [Ping timeout: 240 seconds]
upsell5 has quit [Quit: upsell5]
<wallerdev>
looked at it a little then decided erlang would be a more practical skillset to learn
Hanmac1 has quit [Ping timeout: 264 seconds]
CodeLicker has quit [Ping timeout: 240 seconds]
j_mcnally has joined #ruby
mikeg has joined #ruby
djbkd has quit [Remote host closed the connection]
CodeLicker has joined #ruby
duncannz has quit [Quit: Leaving]
cpruitt has joined #ruby
nfk has quit [Quit: yawn]
Hanmac has joined #ruby
<eam>
does ruby have an equiv to perl's =~ s///e ?
xcv has joined #ruby
hgl has joined #ruby
<eam>
ignore that, gsub takes a block
kfs has joined #ruby
DivineEntity has joined #ruby
mikeg has quit [Ping timeout: 264 seconds]
pietr0 has quit [Quit: pietr0]
<ericwood>
ugh, does instance_eval not continue execution after it runs?
<ericwood>
I have something like: if block_given?; instance_eval(&block); puts "lol"; end
willgorman_ has joined #ruby
<ericwood>
and the "lol" never prints :(
CorpusCallosum has quit [Ping timeout: 245 seconds]
<ericwood>
oh whoops
<ericwood>
that's because I didn't rebuild the gem
<ericwood>
ignore me, I am stupid
aspires has quit []
cpruitt has quit [Ping timeout: 264 seconds]
Mon_Ouie has joined #ruby
Noob101 has joined #ruby
nateberkopec has joined #ruby
CodeLicker has quit [Ping timeout: 240 seconds]
whyy has joined #ruby
wallerdev has quit [Quit: wallerdev]
hgl has quit [Remote host closed the connection]
andrewjanssen has quit [Ping timeout: 240 seconds]
hgl has joined #ruby
xargoon has joined #ruby
andrewjanssen has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
simoz1111116 has quit [Ping timeout: 264 seconds]
whyy has quit [Ping timeout: 240 seconds]
CodeLicker has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
SilverKey has joined #ruby
andrewjanssen has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
CorpusCallosum has joined #ruby
bradhe has quit [Remote host closed the connection]
wallerdev has joined #ruby
idiocrash has joined #ruby
nateberkopec has joined #ruby
nerdy has quit [Quit: Computer has gone to sleep.]
<zenspider>
so stupid. :P
bricker`work has quit [Ping timeout: 264 seconds]
<zenspider>
ericwood: stop rebuilding the gem and set up your load path correctly for development?
<ericwood>
in other news my Roomba DSL is working with a real live roomba now
<zenspider>
kk. thanks. I'd like to get this set up and running by the end of the month so I can show it at the next monthly meeting w/ Jane
<ericwood>
that's totally feasible
<ericwood>
we can make that happen
<ericwood>
there's also Artoo, but it's overkill imho
lw has joined #ruby
<ericwood>
this is just pure ruby and easy to hack
<ericwood>
artoo uses the player framework
<zenspider>
*nod*
<zenspider>
they're not up to ruby programming (can barely type), but this will be a much more tangible reason to get into this stuff
<ericwood>
one of the demos I got out of that random pull request was a key-driven remote
<ericwood>
so you can control it via the arrow keys (just tested it, it works!)
b1nd_ is now known as b1nd
<ericwood>
that should blow some minds
<zenspider>
nice
<zenspider>
ok... I need to not distract myself... more slides
<ericwood>
get back to it man!
vt102 has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
nerdy has quit [Quit: Computer has gone to sleep.]
zorak has quit [Read error: Connection reset by peer]
SilkFox has quit [Ping timeout: 240 seconds]
tokik has joined #ruby
ARCADIVS has joined #ruby
Channel6 has joined #ruby
lw has quit [Remote host closed the connection]
mrmargolis has joined #ruby
frankjpinto has quit [Ping timeout: 240 seconds]
cpruitt has joined #ruby
britneywright has joined #ruby
edgarjs_afk is now known as edgarjs
jack_rabbit has joined #ruby
T_Hunt has quit [Ping timeout: 240 seconds]
cpruitt has quit [Quit: cpruitt]
toretore has quit [Quit: This computer has gone to sleep]
benlieb has joined #ruby
hamakn has quit [Remote host closed the connection]
tus has quit []
ekinmur has quit []
Stuttergart has quit [Quit: Leaving]
zorak has joined #ruby
zorak_ has joined #ruby
speakingcode has quit [Read error: Connection reset by peer]
ekinmur has joined #ruby
yetanotherdave has quit [Ping timeout: 256 seconds]
iamjarvo has joined #ruby
starkhalo has joined #ruby
stytown has quit [Quit: stytown]
wallerdev has quit [Quit: wallerdev]
andrewhl has quit [Quit: andrewhl]
Cache_Money has joined #ruby
deric_skibotn has quit [Ping timeout: 272 seconds]
mattknox has joined #ruby
s34n has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
ixti has quit [Ping timeout: 272 seconds]
thoolihan has quit [Ping timeout: 240 seconds]
zorak has quit [Quit: Saliendo]
phoo1234567 has joined #ruby
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
hamakn has joined #ruby
edgarjs is now known as edgarjs_afk
thoolihan has joined #ruby
nateberkopec has quit [Quit: Leaving...]
havenwood has joined #ruby
duncannz has joined #ruby
cpruitt has joined #ruby
snath has joined #ruby
alexju has joined #ruby
ghr has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
cpruitt has quit [Read error: Connection reset by peer]
arya_ has quit [Ping timeout: 240 seconds]
cpruitt has joined #ruby
nateberkopec has joined #ruby
eka has joined #ruby
mattknox has quit [Quit: Page closed]
alexju has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 256 seconds]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 264 seconds]
arya_ has joined #ruby
banjara has quit [Quit: Leaving.]
ValicekB has quit [Ping timeout: 264 seconds]
darkxploit has quit [Ping timeout: 264 seconds]
kaspergrubbe has quit [Remote host closed the connection]
<ramblinpeck>
Is there a way to increment a range eg: (1..5) -> (2..6) without converting at an array, mapping +, and creating a new ones from the minmax?
<theharshest>
What is the difference between "spec.add_development_dependency" in gemspec and "require" in Gemfile (of the gem)?
Hobogrammer has quit [Read error: Connection reset by peer]
CorpusCallosum has quit [Ping timeout: 255 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Photism has quit [Quit: Leaving]
neiled has joined #ruby
<OffTheRails>
ramblinpeck, not that I can think of
<OffTheRails>
you could create a new range with first/last of existing range
<OffTheRails>
r = (1..3)
<OffTheRails>
(r.first+1..r.last+1)
ValicekB has joined #ruby
<ramblinpeck>
OffTheRails: that is a little cleaner, thanks. need a sliding window kind of behavior and nothing I can find says specifically that ranges are immutable it seems like they pretty much are
<OffTheRails>
I'm looking at the api and I don't think it offers what you're looking for
bmurt has joined #ruby
saarinen has joined #ruby
StephenA1 has joined #ruby
xcv has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 0.4.3]
freerobby has joined #ruby
Hobogrammer has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
troyready has quit [Ping timeout: 255 seconds]
heftig has quit [Ping timeout: 252 seconds]
gregf has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
saarinen has joined #ruby
gregf has quit [Client Quit]
gregf has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
heftig has joined #ruby
freerobby has quit [Quit: Leaving.]
ekinmur has quit []
saarinen has quit [Quit: saarinen]
cpruitt has quit [Quit: cpruitt]
cpruitt has joined #ruby
radic has quit [Ping timeout: 248 seconds]
theharshest has quit [Quit: This computer has gone to sleep]
jack_rabbit has quit [Ping timeout: 240 seconds]
dik_dak has quit [Quit: Leaving]
yetanotherdave has joined #ruby
alexju has joined #ruby
heftig has quit [Ping timeout: 252 seconds]
Doppp has quit [Ping timeout: 248 seconds]
oo_ has quit [Remote host closed the connection]
radic has joined #ruby
StephenA1 has quit [Quit: StephenA1]
Hanmac has joined #ruby
andrewhl has joined #ruby
timgauthier has joined #ruby
heftig has joined #ruby
dc_ has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whyy has joined #ruby
keepguessing has joined #ruby
andrewhl has quit [Quit: andrewhl]
whyy has quit [Ping timeout: 255 seconds]
andrewjanssen has joined #ruby
Soda has quit [Remote host closed the connection]
absolutezeroff has quit [Ping timeout: 245 seconds]
dc_ has joined #ruby
cpruitt has quit [Quit: cpruitt]
dc_ has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
eka has joined #ruby
eka has quit [Client Quit]
wallerdev has joined #ruby
oo_ has joined #ruby
agent_white has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
brunops has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
<agent_white>
Herro
mgberlin has quit [Remote host closed the connection]
<goshdarnyou>
ok this might be a silly question but is there a guide/walkthrough somewhere for test first ruby? it's cool and all but figuring out what to do with zero explanation besides the rspec test is getting difficult as i reach the later exercises...
<ecksit>
hey, i have installed https://rubygems.org/gems/acquia_toolbelt on MRI 1.9.3 and it creates the executable however when trying to install on 2.1.2 it doesn't create the executable. any ideas?
mgberlin_ has joined #ruby
agent_white has joined #ruby
mbuf has joined #ruby
<grug>
jimbow: don't get caught up in what is "the best" or you'll never get started :P
<mbuf>
when using 'gem install activerecord-import-0.5.0.gem' on Ubuntu 12.04, I get ERROR: Loading command: install (LoadError) cannot load such file -- zlib
<mbuf>
trying to use rbenv and have zlib1g, zlib1g-dev and zlibc already installed
mgberlin has quit [Ping timeout: 240 seconds]
Cache_Money has quit [Quit: Cache_Money]
<mbuf>
what could be the problem?
<jimbow>
well, what's the most popular book that is easy to understand
CorpusCallosum has quit [Ping timeout: 240 seconds]
charlied3 has quit [Ping timeout: 245 seconds]
charlied3 has joined #ruby
<gzl>
jimbow: I think "how to think like a computer scientist" (which is based in python, I think) is pretty decent.
<jimbow>
is there one for ruby?
<gzl>
I don't know.
<gzl>
but python and ruby are similar enough at that level that it wouldn't be a big deal to read one that happens to use python and then learn ruby separately after.
<agent_white>
That's what I was looking for! I was tryin ["FF", "00", "FF"].pack ... instead.
<agent_white>
FLeiXiuS``: "hex string to hex ruby"
<eam>
speaking of, why is pack a method on Array instead of on String?
<agent_white>
eam: Iono, string has unpack?
<FLeiXiuS``>
ruby hex string to raw hex was apparently way off
<eam>
agent_white: String should have both afaict
<agent_white>
Hahah. Simplify it a bit more.
<agent_white>
eam: Well I guess... an array is multiple elements, so packing them into one makes sense. While a string is one big lump, to be unpacked?
<eam>
I think these two functions didn't translate well from perl
<pontiki>
you pack an array, and unpack a string
<eam>
you pack and unpack strings, which are arrays of bytes :)
<pontiki>
sortamaybe
<eam>
hey now I have a ruby question: I want to learn about ruby bindings tonight
<eval-in_>
eam => undefined local variable or method `x' for main:Object (NameError) ... (https://eval.in/170324)
<Mon_Ouie>
Because binding returns a *new* binding
<Mon_Ouie>
Which is a sub-binding of the current one
<eam>
is there a definition of sub-binding?
<Mon_Ouie>
Each binding has a reference to a parent binding. Variable look up basically works like this: def lookup(var); table.has_key?(var) if table.has_key? var then table[var] elseif parent then parent.lookup(var) else raise NameError end; end
ta has joined #ruby
<existensil>
the bindings seem to behave like they are a nested scope, so if the variable exists in the outer scope (where binding is called) it works, but if defined in one nested scope the other nested scope won't see it
<eam>
Mon_Ouie: is there a way to get a handle on the current binding? What if I want to, for example, call #local_variable_set on the current binding context (not in a stringy eval?)
moritzs has joined #ruby
bal has joined #ruby
scotty2 has joined #ruby
<eam>
existensil: that is super helpful thanks (and thanks Mon_Ouie)
<Mon_Ouie>
local_variable_set will work if the existing variable is there
<eam>
but if it isn't? I should add, I'm trying to understand ruby's scoping boundaries
<existensil>
I've haven't played with binding much. This is fascinating.
<existensil>
and confusing
<eam>
and why, for example, an if / else / end stanza seems to not create a separate binding at all
<Mon_Ouie>
Yes, conditions and loops don't create their own scopes
<Mon_Ouie>
class, module, def, and blocks do
<eam>
what I'm sort of playing with is whether it would be possible to dynamically modify the instantiation of the local variable
<eam>
it looks like it may not be
<existensil>
its ruby. there is pretty much always a way
<existensil>
:-P
<Mon_Ouie>
This also creates funny differences between for-loops vs #each :)
toretore has joined #ruby
<eam>
this is super helpful
<Mon_Ouie>
What do you mean exactly by "instanciation of local variables"?
dangerousdave has joined #ruby
scotty2 has left #ruby [#ruby]
aspires has quit []
quazimodo has quit [Ping timeout: 240 seconds]
<eam>
to perform whatever mechanations are necessary such that the code: eval "x" returns the value of x (where x = ... appears nowhere in the code)
<eam>
for example: eval gets; eval gets
<eam>
and pass a local variable betweeen
Morkel has joined #ruby
<eam>
what I'm hearing is that it can only be done by creating a sub-binding and running the eval in that
<shevy>
ewwww
<shevy>
eval
<existensil>
yay, eval!
overmacht has joined #ruby
arya_ has joined #ruby
<Mon_Ouie>
Yes, that's how REPLs like Pry and IRB do it
<shevy>
I always need to wash my body after using eval
<eam>
well, eval is only necessary to stave off the compile time pass check
<shevy>
let's wash eam!
<existensil>
its also good at staving off bordom
<eam>
I'm so covered in perl I'll never be clean
<existensil>
*boredom
<existensil>
and sanity
<shevy>
I know what sanity was
<shevy>
a long time ago
overmacht has quit [Max SendQ exceeded]
overmacht has joined #ruby
overmacht has quit [Max SendQ exceeded]
overmacht has joined #ruby
alem0lars has joined #ruby
overmacht has quit [Max SendQ exceeded]
overmacht has joined #ruby
overmacht has quit [Max SendQ exceeded]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
alem0lars has quit [Client Quit]
mehlah has joined #ruby
overmacht has joined #ruby
overmacht has quit [Max SendQ exceeded]
mengu has quit [Remote host closed the connection]
overmacht has joined #ruby
overmacht has quit [Max SendQ exceeded]
arya_ has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
overmacht has joined #ruby
overmacht has quit [Max SendQ exceeded]
agent_white has quit [Ping timeout: 248 seconds]
overmacht has joined #ruby
tectonic has joined #ruby
techsethi has joined #ruby
agent_white has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
overmacht has quit [Client Quit]
jack_rabbit has quit [Ping timeout: 245 seconds]
overmacht has joined #ruby
dc_ has joined #ruby
mehlah has quit [Ping timeout: 240 seconds]
overmacht has quit [Client Quit]
schaerli has joined #ruby
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
<Mattias>
How would one install a self-signed certificate on another machine? Is it different depending on which application will use it? Like one way for php and another for ruby?
jack_rabbit has joined #ruby
peret has quit [Remote host closed the connection]
<Mattias>
ericwood: You don't happen to know how to install a self-signed certificate (the one on my ftp server) to another machine? Does it differ depending on if I do it for ruby or for php? Or is it global for the machine? (Both servers runs ubuntu)
techsethi has quit [Quit: techsethi]
senayar has joined #ruby
ecksit has joined #ruby
<Hanmac>
Mon_Ouie: i am still unsure about when using .find and when using .bsearch ... :/
ascarter has joined #ruby
doev has joined #ruby
<arup_r>
Shall I need to use >= always in #bsearch ?
StephenA1 has joined #ruby
<jhass>
arup_r: no, did you read the docs?
ecksit has quit [Client Quit]
<arup_r>
jhass: reading and trying
<jhass>
they clearly say that it has two modes
<arup_r>
docs used only >=
<arup_r>
okie
<arup_r>
My question is wromg
<arup_r>
I meant to say
<jhass>
one where it should return true/false and one where it should return a number < 0, = 0, > 0
<arup_r>
In find-minimum mode, should I need to use only >= ?
<jhass>
the requirement of the method is that your block returns true/false, how you achieve that is on your own
<jhass>
well, return true false given some circumstances, that the simple examples with >= fulfill
<jhass>
but how you achieve that behavior is not dictated anywhere
<arup_r>
jhass: got it
<arup_r>
Now the thing is when block retunr false ?
shevy has joined #ruby
shvelo has quit [Ping timeout: 248 seconds]
<jhass>
"the block returns false for any element whose index is less than i, and"
<jhass>
"the block returns true for any element whose index is greater than or equal to i."
<zenspider>
more of this?
<zenspider>
and in two channels?
vyorkin has joined #ruby
lxsameer has joined #ruby
peret has joined #ruby
keepguessing has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
vyorkin has quit [Ping timeout: 256 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r>
jhass: Whatever example I try, I got nil if element not found, or the element..
<jhass>
that's what the method does
ghr has quit [Ping timeout: 245 seconds]
overmacht has quit [Read error: Connection reset by peer]
<arup_r>
means false return is internally . .. we can't see it :)
quazimodo has joined #ruby
<jhass>
"the block returns false" means it should do that for a correct implementation
shevy has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
ndrei has joined #ruby
shevy has joined #ruby
vyorkin has joined #ruby
alex88 has joined #ruby
klaut has joined #ruby
JBreit has joined #ruby
ddv has joined #ruby
ddv has quit [Changing host]
JBreit has left #ruby [#ruby]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r>
jhass: that's finding for me now.. how to create one example where I can see block returns false...
<arup_r>
I am trying and but failing in every attempt
<Mon_Ouie>
The block is not bsearch, it's what *you* pass to bsearch
vyorkin has quit [Ping timeout: 240 seconds]
StephenA1 has quit [Quit: StephenA1]
klaut has quit [Ping timeout: 248 seconds]
<arup_r>
jhass: OMG.. You made it. But how can I fit this line *the block returns false for any value which is less than x,* there ?
uresu has joined #ruby
<arup_r>
Where is that comparison made..?
Spami has quit [Quit: This computer has gone to sleep]
dontwork has joined #ruby
ecksit has joined #ruby
Xeago has joined #ruby
klaut has joined #ruby
<ecksit>
hey, i have installed https://rubygems.org/gems/acquia_toolbelt on MRI 1.9.3 and it creates the executable however when trying to install on 2.1.2 it doesn't create the executable. any ideas?
<jhass>
arup_r: as Mon_Ouie said, you're confusing the block with the method
echevemaster has quit [Remote host closed the connection]
sputnik13 has joined #ruby
foo-bar- has joined #ruby
<arup_r>
jhass: >> [1,2,3].bsearch { true }
<arup_r>
It seems I got it
Takle has quit [Ping timeout: 256 seconds]
quazimodo has quit [Ping timeout: 248 seconds]
mehlah has quit [Quit: Leaving...]
alem0lars has quit [Quit: alem0lars]
<arup_r>
I have to put my comparison logic inside the block.. block will perform the computation for each element until it gets a true value.. In doing so, if all iteration is done and it couldn't find any true value, it will return `nil`, or if it get `true` for any iteration, then that iteration *x* will be returned.
alem0lars has joined #ruby
<arup_r>
While performing iteration, if block find any false value, it will go for next iteration. But if it get `true` value, then it will stop and return that iteration *x*
<arup_r>
Am I get it correctly ?
foo-bar- has quit [Ping timeout: 264 seconds]
<arup_r>
>> [false, false, 1, true].bsearch { |x| x }
<Mon_Ouie>
Well no, there's the other problem that "1" is an integer that would cause find-any mode to be used. As said in the docs, you cannot mix both of them.
alem0lars has quit [Client Quit]
JBreit has joined #ruby
<jhass>
well, in his example it should hit the second false as first element and start find-min mode
overmacht has quit [Quit: overmacht]
alem0lars has joined #ruby
JBreit has left #ruby [#ruby]
claymore has quit [Ping timeout: 240 seconds]
* zenspider
sighs
<zenspider>
he infects ruby-talk, #ruby-lang, and #ruby... no escape
<DefV>
?
<sevenseacat>
heh
<Mon_Ouie>
"it is undefined which value is actually picked up at each iteration"
<Mon_Ouie>
So I wouldn't make those types of assumptions
Joulse has joined #ruby
<arup_r>
zenspider: If I don't do mistake, You are Ryan davis.. Am I right ?
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<sevenseacat>
too many ryans in the ruby world
<arup_r>
zenspider: What is your problem, if people want to learn through discussion..
<arup_r>
sevenseacat: I don't he has a problem with me and my question since 1 year back
<arup_r>
He always insulted me... every where he could
<arup_r>
Now here he also started
fabrice31 has joined #ruby
<arup_r>
He will convince people so that people can stop helping me....
dumdedum has joined #ruby
<sevenseacat>
people can make up their own minds.
kaspergrubbe has joined #ruby
ta has quit [Remote host closed the connection]
<jhass>
arup_r: just put him on ignore and be done with it
<arup_r>
sevenseacat: He personally emailed me and told I am a leech and more and he insulted me..
<sevenseacat>
good to know, but irrelevant to this channel.
<arup_r>
jhass: see now he said **he infects ruby-talk, #ruby-lang, and #ruby... no escape**
<arup_r>
It is insulting...
<jhass>
arup_r: welcome to the internet. Learn your tools. IRC: /ignore, your MUA should have filters
eladmeidar has joined #ruby
<jhass>
arup_r: and that'll be it for this discussion or I vote that you have to leave too
roolo has joined #ruby
<arup_r>
I am asking questions.. which myself couldn't help me out.. I am not well like you guys.. so I am trying to learn it with you people..
<ecksit>
let me just slip this in here...
<ecksit>
hey, i have installed https://rubygems.org/gems/acquia_toolbelt on MRI 1.9.3 and it creates the executable however when trying to install on 2.1.2 it doesn't create the executable. any ideas?
<jhass>
ecksit: did you receive any warnings upon installation?
<ecksit>
nope, seems to install just fine.
elaptics`away is now known as elaptics
<arup_r>
jhass: sorry, I shouldn't say.. But he made me to start.. sorry again
ghr has joined #ruby
<jhass>
ecksit: gist your `gem env`
tectonic has quit []
eladmeidar has quit [Client Quit]
<Mon_Ouie>
Are you sure your PATH isn't just set wrong (i.e. you don't have the PATH for Ruby 2.1.2 gem binaries in it)?
tesuji has joined #ruby
alexju has quit [Remote host closed the connection]
<ecksit>
seems like 1.9.3 doesn't have as much in it :S
<Mon_Ouie>
That's because the rubygems version is different
<ecksit>
i noticed that
<arup_r>
Mon_Ouie: What you meant to say by - "it is undefined which value is actually picked up at each iteration" ?
<arup_r>
I was out of track for some time
<ecksit>
but i don't have the knowledge to understand too much more then that
<Mon_Ouie>
That's a quote from the documentation
<Mon_Ouie>
It means you shouldn't rely on which exact element it's going to be passing to your block
<arup_r>
ok
obs has joined #ruby
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
CpuID has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
techsethi has joined #ruby
<ecksit>
hmm, actually, Mon_Ouie what version are you running locally?
andrewlio has joined #ruby
<zenspider>
arup_r: let's get something straight. You wrote ME asking ME for help AFTER your help vampirism drove me to unsubscribe from ruby-talk. I refused and gave my reasons why. If you find that insulting, tough.
pontiki has joined #ruby
<Mon_Ouie>
gem -v is 2.2.2, ruby -v is 2.1.2p95
timonv has quit [Remote host closed the connection]
<ecksit>
do you mind attempting to install acquia_toolbelt locally? maybe it is just my setup.
<ecksit>
(i am using chruby and i may have b0rked it)
<jhass>
ecksit: so, /Users/jacob/.gem/ruby/2.1.0/bin is empty?
moritzschaefer has joined #ruby
<ecksit>
nope, it has other gems in it
<zenspider>
ecksit: do you still have the output from your failed 2.0 install?
<ecksit>
just not the one i am after
<Mon_Ouie>
Meh, it seems to have many dependencies, I don't really feel like installing/uninstalling all of that
chrishough has quit [Quit: chrishough]
<zenspider>
Mon_Ouie: pro tip: gem i -i xxx somegem
<zenspider>
then you just rm -rf xxx
hgl___ has joined #ruby
<ecksit>
sure, let me go again zenspider
<Mon_Ouie>
Does it at least appear when you list local gems?
<zenspider>
wow. that's a lot of stuff
CpuID has joined #ruby
CpuID has quit [Client Quit]
<zenspider>
yup. I just installed it clean
<zenspider>
and nothing in the bin
<zenspider>
aaaand NOTHING in the gem
<zenspider>
huh...
qba73 has joined #ruby
<ecksit>
:S
Macaveli has joined #ruby
Xeago has quit [Remote host closed the connection]
<ecksit>
1.9.3 works and it passes the CI builds on all versions
<ecksit>
maybe something changed in the ruby gems release and i just haven't kept an eye on it close enough
timonv has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
<zenspider>
ecksit: dude. the gem is empty. totally empty
<jhass>
gr33n7007h: does it work after a bash -l ?
<gr33n7007h>
let me check
<gr33n7007h>
yes
<jhass>
so, as said, make sure your terminal launches a login shell
<gr33n7007h>
jhass, doing it now :)
Takle has joined #ruby
spider-mario has joined #ruby
<gr33n7007h>
that's done now to see if it stays
<workmad3>
I've found that gnome is somewhat annoying when it comes to running .bash_profile and .bashrc
Xeago has quit [Remote host closed the connection]
<DefV>
I've found that gnome is somewhat annoying.
<workmad3>
it's what prompted me to rewrite .bash_profile to just do '. .bashrc'...
<workmad3>
DefV: ah yeah, that too
<workmad3>
DefV: but less so than unity ;)
* sevenseacat
uses unity :(
<gr33n7007h>
what is rvm command to use 1.9.3 again?
Caius has joined #ruby
<sevenseacat>
`rvm use 1.9.3` :P
<jhass>
gr33n7007h: or rvm use system
<gr33n7007h>
do both work
<workmad3>
sevenseacat: you poor poor person :(
<workmad3>
gr33n7007h: the second one works if your system ruby is 1.9.3
dscrd has quit []
<sevenseacat>
i dont mind it actually.... its the best of an annoying bunch
<DefV>
< OSX
mengu has joined #ruby
<DefV>
works like a charm
<gr33n7007h>
Awesome, all is working thank god oh and sevenseacat jhass :)
<DefV>
(if I beat it into submission now & again)
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<sevenseacat>
gr33n7007h: good stuff
<workmad3>
DefV: tbh, most unix/linux windows managers work like a charm for me... what I want out of them is a terminal I can run vim and other command line stuff from, and chrome, firefox and spotify
<workmad3>
DefV: preferably with 2 monitors so I can shove half of it out the way when I don't need it fully visible :)
* gr33n7007h
is a happy chappy
FLeiXiuS`` has quit [Ping timeout: 264 seconds]
osvimer has joined #ruby
<arup_r>
In find-any mode - there must be two values x and y (x <= y) .. Are picking up the values for x and y also undefined ?
nfk has joined #ruby
lewis_ has joined #ruby
<gr33n7007h>
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux] is the most upto date ruby now
lewis_ is now known as lewix
<sevenseacat>
i thought ruby ditched patch levels now that theyre doing their semver stuff
<workmad3>
sevenseacat: I thought that too... but just checked my ruby-installed 2.1.2 and it also has a p95
<jhass>
arup_r: the block is still yielded one value. Which element is picked from your array is said to be undefined
<sevenseacat>
huh, so does mine
hgl___ has joined #ruby
banjara has joined #ruby
<sevenseacat>
o.O
jzigmund has quit [Ping timeout: 252 seconds]
<jhass>
I think they don't do patchlevel releases anymore, but failed to rip that out of the build system
<sevenseacat>
i'm positive i would have just done `ruby-build 2.1.2`
<workmad3>
jhass: heh :) I was just about to speculate similar
<workmad3>
sevenseacat: hell, I just did 'ruby-install ruby 2.1' ;)
jzigmund has joined #ruby
jack_rabbit has joined #ruby
<workmad3>
and the source tarball doesn't have a patchlevel... so yeah, I guess they just haven't removed all code and build traces of it yet
<arup_r>
jhass: I don't know if possible or not. Still asking, any way can it be coded to see the block output for every iteration? In what iteration, what output is being generated I meant to say.
jackneill has quit [Ping timeout: 240 seconds]
<workmad3>
arup_r: could you gist the code you have so far please?
<jhass>
arup_r: sure, just print iti with p
<jhass>
arup_r: btw. did you do any real ruby program yet?
<arup_r>
zenspider: stop please. Let me learn something here.. Awesome people around here.. I know what else you wrote.. But just ignore all..
Takle has quit [Remote host closed the connection]
<wasamasa>
arup_r: do you understand what he's complained about?
timonv has joined #ruby
hgl___ has quit [Ping timeout: 240 seconds]
<jhass>
arup_r: what is wrong with you? just ignore him
<jhass>
seriously
<arup_r>
jhass: yes.. But now I am learning some methods from doco, which I have never used.
banjara has quit [Ping timeout: 248 seconds]
<sevenseacat>
he didnt even say anything >_>
oo__ has quit [Read error: Connection reset by peer]
mehlah has quit [Read error: Connection reset by peer]
<sevenseacat>
ah ive seen you around on SO
garethrees has joined #ruby
<jhass>
arup_r: it's because in my experience it's way more efficient to only skim what's there a few times and then learn it if you have an actual usecase. You seem to be investing a lot of time in stuff you may never need.
<jhass>
Focusing on getting some actual developer experience instead will also ease understanding these parts
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Pro|_>
how should i reformat this? SomethingDb.database.soft_cache.builders.map { |k, v| [k, v.get] }.select { |v| v[1] != nil }.map { |v| "#{v[1].getCurrentState}: #{v[0]}" }.join("\n---\n"); end
<jhass>
Pro|_: for starters |k, v| in the select
<jhass>
Pro|_: then replace k, v with descriptive names
<jhass>
Pro|_: not sure where that end is coming from
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
<Pro|_>
i don't like it as a oneliner also
ghr has quit [Ping timeout: 264 seconds]
<Pro|_>
so should i do object = object.operation
<Pro|_>
each time i do map/select/etc
<arup_r>
jhass: you are right. Thing is I always do some experiment with methods in API, so that I can familiar with it.. and if I met such situation, then I can use it directly...:-)
<workmad3>
Pro|_: so split it over several lines with some descriptive temp variable names
<pontiki>
or just have one map{}.join, and do the other operations inside the map body
<workmad3>
Pro|_: you don't have to do 'object = object.op'... you can rename it to a more appropiate name at that point
<arup_r>
>> "abscbbdf".count('^b')
Xeago has joined #ruby
<workmad3>
pontiki: he'd need map{}.compact.join still ;)
<pontiki>
or maybe map{}.compact.join
<workmad3>
hehe
<arup_r>
is awesome trick I was not aware of 7 months back.. and I used to do it more complicated way..
Joulse has quit [Quit: Joulse]
<pontiki>
even so
<arup_r>
familiarty with API handle this situations very easily.. so I try to learn from API...
<pontiki>
keep reading the docs, arup_r
moritzs has joined #ruby
<pontiki>
just don't forget to actually apply them to something real
<arup_r>
workmad3: Use #select.. then don't need to use #compact although...
Xeago has quit [Remote host closed the connection]
<workmad3>
arup_r: compact is much nicer reading there :P
<arup_r>
workmad3: No issue.. :-)
<pontiki>
the important operations are all in one block there, arup_r, that's why it's cleaner
arya_ has quit [Ping timeout: 256 seconds]
jackneill has joined #ruby
Joulse has joined #ruby
moritzschaefer has quit [Ping timeout: 240 seconds]
<arup_r>
pontiki: Read it incorrectly.. :-) #map is perfect in this case
<jhass>
I'd sa map.compact over select.map is purely personal preference, I do prefer select.map
<arup_r>
jhass: +1 to you..
jackneill has quit [Remote host closed the connection]
banister has joined #ruby
sandstrom has joined #ruby
<pontiki>
even in the case Pro|_ has presented?
<pontiki>
that just seems convoluted
<workmad3>
jhass: sure... but here you'd need to either do '.map{...}.select{|h| !h.nil?}' (or, cleaner, .reject{|h| h}) or just use compact
uresu has quit [Quit: uresu]
<workmad3>
jhass: or you'd need to introduce another .map at the start to prevent two calls to 'v.get'
<sandstrom>
I've upgraded from 1.9.3 to 2.1.2 and trying to debug a failing test. `def foo; my_var = 1; ensure; puts my_var; end;` here, my_var in the ensure block is nil, it seems (boiled down example)
<workmad3>
(I know in my case I didn't bother avoiding that, but it would be a simple change)
<sandstrom>
Could it be the GC that has removed the object?
<pontiki>
.tap might be useful in there
<jhass>
sandstrom: pretty sure that example doesn't reproduce your issue without even trying it
uresu has joined #ruby
<workmad3>
sandstrom: jhass is right, your example doesn't reproduce your issue
<workmad3>
sandstrom: just tried it on 2.1.2
<jhass>
workmad3: I don't follow... he filters out the nils for v.get and I'd keep it that way
<sandstrom>
jhass: workmad3 Your right! I just can't phantom how this happens
<Mon_Ouie>
I can ghost it either
<pontiki>
you mean the line breaks, jhass ?
<jhass>
sandstrom: your method probably raises before the assignment happens, but that's wild guessing
<workmad3>
jhass: you forgot to escape your line breaks
<workmad3>
jhass: so your code would break ;)
arya_ has joined #ruby
sevenseacat has quit [Quit: Leaving.]
jackneill has joined #ruby
<workmad3>
hmm... ok, so maybe not
<jhass>
no, that's actually valid ruby
<jhass>
you can also leave the dot on the previous line
<workmad3>
yeah, I've not encountered it that way around
<jhass>
but even me hates that :P
CorpusCallosum has quit [Ping timeout: 248 seconds]
<workmad3>
I was under the impression that would need line-break escapes to stop ruby interpretting it like that
<workmad3>
*interpretting it weirdly
<workmad3>
jhass: but still... why 3 explicit blocks over 1 explicit block? :)
<sandstrom>
jhass: you are right, that does indeed seem to be the case!
<jhass>
workmad3: maybe I'm just used to that chained thinking over evaluating the condition, imagining the possible results and what operation to follow on that
<jhass>
I just dislike maps with conditional operations
arya_ has quit [Ping timeout: 248 seconds]
francisfish has quit [Remote host closed the connection]
Xeago has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pontiki>
that's not logical
<pontiki>
(see what i did there)
krz has joined #ruby
benlieb has quit [Quit: benlieb]
yfeldblum has quit [Remote host closed the connection]
<workmad3>
jhass: I'm not fond of them in the first case, when figuring out what to do... but they can be a good cleanup once you have the process, and added to that, 4 iterations with 3 of them having to call back to ruby with each object is pretty expensive, as opposed to 3 iterations with only 1 of them having to call back to ruby with each object
mr_foobar_baz has joined #ruby
mengu has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
sigurding has joined #ruby
arya_ has joined #ruby
<jhass>
let me elaborate a bit more: I'd be more okay with .map {|k, v| v = v.get; v ? "#{v.getCurrentState}: #{k}" : "" }.join than .map {|k, v| v = v.get; "#{v.getCurrentState}: #{k}" if v }.compact.join; The former is defining an alternative result that is consumable by .join for the case v.get returns nil. The later defines a special value that is filtered out afterwards, it's not an alternative result, it's basically a magic value.
Takle has joined #ruby
<jhass>
I still do prefer the .select.map over both of these
shaileshg has joined #ruby
<workmad3>
jhass: the first one doesn't work in this case though
EvanR has joined #ruby
<workmad3>
jhass: because it introduces extra sets of the join string into the final result
<jhass>
yeah, I just needed something to highlight what I mean
EvanR is now known as Guest67134
<pontiki>
i do see your point, jhass
mailo has joined #ruby
cek has left #ruby [#ruby]
<workmad3>
jhass: sure... except you managed to pick an example that also introduced a special value that needed filtering out ;)
timonv has quit [Remote host closed the connection]
EvanR__ has quit [Ping timeout: 260 seconds]
Takle has quit [Remote host closed the connection]
<workmad3>
jhass: but you could do .reject(&:empty?) on it rather than .compact...
<jhass>
I have a reason to say that I prefer the select.map over both
<pontiki>
filter before rather than filter after?
<jhass>
yes
<workmad3>
jhass: except in this case you're filtering in the middle, not before or after
roolo has quit [Ping timeout: 248 seconds]
havenwood has quit [Remote host closed the connection]
<workmad3>
jhass: if you wanted a filter before, you could do '.select{|, v|
kaspergrubbe has quit [Read error: No route to host]
<jhass>
select.map filters out the invalid datapoints, map.select filters the result of the map, requiring to introduce a special value to mark the invalid datapoints
kaspergrubbe has joined #ruby
agjacome has joined #ruby
<workmad3>
jhass: if you wanted a filter before, you could do '.select{|_, v| v.get}.map{|k, v| "#{v.get.getCurrentState}: "#{k}"}.join(...)'
funktor has joined #ruby
skaflem has joined #ruby
<jhass>
the first map is building the dataset needed for the operation by transforming the given one
<workmad3>
jhass: which is a completely unnecessary step in this situation
<pontiki>
welll.... you're call v.get twice
<jhass>
necessity and clarity are rather opposing things
francisfish has joined #ruby
<workmad3>
jhass: not always ;)
<jhass>
I'm already more at the general case anyway
<workmad3>
jhass: we're not arguing general case though
<workmad3>
jhass: we're arguing specific case ;)
<jhass>
if you got to optimize this one, you're probably right, it's not what I'm saying
<workmad3>
jhass: but that's exactly what my point was
<workmad3>
jhass: I wasn't disagreeing in general... I was disagreeing in this specific case
<jhass>
where did Pro|_ said that piece is performance critical?
foo-bar- has joined #ruby
<jhass>
and if it's not performance critical I rather optimize for code clarity
<workmad3>
jhass: performance critical != completely screw over performance for the sake of *maybe* a tiny bit of debatable clarity
Takle has joined #ruby
Xeago has quit [Remote host closed the connection]
<workmad3>
jhass: again, debatable clarity in this specific case, not the general case ;)
mijicd has quit [Remote host closed the connection]
<jhass>
that it'd completely screw performance is slightly exaggerated...
<pontiki>
you're both being rather hyperbolic
duncannz has quit [Ping timeout: 248 seconds]
<pontiki>
i'd go with your first remark, jhass: it's taste
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<arup_r>
Actually this post I first read, where author stressed on the x selections.. But doc said it is undefined about *x* selections... clever doco..
senayar has quit [Remote host closed the connection]
anaeem1 has joined #ruby
grieg has joined #ruby
<workmad3>
Hanmac: yeah, I liked that one :)
<workmad3>
Hanmac: I was moderately surprised by how much of the 'solid' surfaces of the solar system Earth took up
blackmesa has joined #ruby
yfeldblum has joined #ruby
Macaveli has quit [Quit: Leaving]
kalusn has joined #ruby
funktor has quit [Remote host closed the connection]
<Hanmac>
hm i currnetly does thinking if the moones of Jupiter & Saturn are populated, the orientation for comunication between them must be cruel ;P ... like some from Moon A wants to comunicate with someone on Moon B, but not possible because the planet is in the way so the comunication must be rooted over Moon C
jottr has joined #ruby
Zebroid has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 264 seconds]
tus has joined #ruby
Joulse has joined #ruby
Takle has quit [Remote host closed the connection]
<lupine>
question: I'm using (j)ruby-ldap to do a lookup, like: LDAP::SSLConn#search2( full_dn, LDAP::LDAP_SCOPE_BASE, "objectClass=person" ) - however, in theory I should be able to do this lookup without a filter
<lupine>
"in theory", since I'm using a full dn and a scope of base, but #search and #search2 both demand that third argument for the filter, and explode if one isn't there
DivineEntity has quit [Quit: leaving]
foo-bar- has joined #ruby
kalusn has quit [Remote host closed the connection]
kalusn has joined #ruby
Takle has joined #ruby
mengu has quit []
sinfex has joined #ruby
foo-bar- has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
lolmaus has joined #ruby
sigurding has quit [Quit: sigurding]
zegerjan has quit [Ping timeout: 255 seconds]
ringarin has joined #ruby
foo-bar- has joined #ruby
fabrice31 has joined #ruby
workmad3 is now known as wm3|away
mijicd has joined #ruby
anaeem1 has quit [Remote host closed the connection]
pmcd has joined #ruby
p0sixpscl has joined #ruby
pmcd has left #ruby [#ruby]
IceyEC has joined #ruby
whyy has joined #ruby
uresu has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
senayar has quit [Remote host closed the connection]
Heskie has joined #ruby
hgl has joined #ruby
Macaveli has joined #ruby
arup_r has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 264 seconds]
shevy has quit [Ping timeout: 256 seconds]
arup_r has joined #ruby
tobiasvl has quit [Quit: Lost terminal]
Xeago_ has joined #ruby
MrDoctor has joined #ruby
perlsyntax has joined #ruby
banjara has joined #ruby
<MrDoctor>
Is there a way I can terminate a ruby process and then resume execution back from the point where I had the process last terminated
<MrDoctor>
If there is no such thing, how should we go about implementing it
shaileshg has quit [Quit: Connection closed for inactivity]
<MrDoctor>
Any ideas would be very helpful
Xeago has quit [Ping timeout: 248 seconds]
<jhass>
MrDoctor: serialize the relevant state and add an option to load that
obs has quit [Ping timeout: 240 seconds]
luthier has joined #ruby
cpruitt has joined #ruby
<MrDoctor>
Could you please elaborate on that a bit jhass
<jhass>
not really, it's very specific to ones program
kayloos has joined #ruby
kalusn has quit [Read error: Connection reset by peer]
obs has joined #ruby
banjara has quit [Ping timeout: 240 seconds]
<MrDoctor>
Would encapsulating all the variables I use in my code into a class, and then serialising an instance of the class, be a good idea?
<apeiros>
for your case, marshal is probably the easiest. be aware that it can't serialize procs (Hashes with default-procs f.ex.) and IOs
anarang has joined #ruby
osvimer has quit [Ping timeout: 240 seconds]
<jhass>
MrDoctor: not necessarily for the program flow, but as a serialization/deserialization step, that's a common practice
krz has quit [Ping timeout: 240 seconds]
<MrDoctor>
I am somewhat confounded
<jhass>
that is, don't actually use that class to work with the data and don't pass it around too much, but collecting all relevant data in it is a sane thing to do
SilkFox has joined #ruby
<jhass>
this all depends a bit on the size of your program of course
<MrDoctor>
Could you give me any resource that describes such a procedure?
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby
schaary is now known as schaary|afk
sinfex has quit [Ping timeout: 264 seconds]
brunops has quit [Ping timeout: 240 seconds]
pwk has joined #ruby
freerobby has joined #ruby
stytown has quit [Quit: stytown]
GriffinHeart has joined #ruby
<pwk>
hi. Say i have the name of a method in a string: 'selector_string = "myMethod"' and now I would like to call obj.myMethod(3) by using the selector_string to specify the method name; is it possible=?
okdamn has left #ruby [#ruby]
laudace has joined #ruby
stytown has joined #ruby
brunops has joined #ruby
yfeldblum has joined #ruby
Edelwin has quit [Changing host]
Edelwin has joined #ruby
<pwk>
it appears the answer to my question is 'o.send(selector_string, 3)'
<workmad3>
Dagobert: ./configure --help will give you all the config options
enebo has joined #ruby
treehug88 has joined #ruby
<Dagobert>
workmad3: configure is not yet there, just configure.in
<Dagobert>
I am pulling from svn, not the tarball
<laudace>
I have a rails app that works fine on my mac, but when I clone it to my linux box, rspec stops working with a "spec/support/helpers.rb:2:in `block in <top (required)>': uninitialized constant Features (NameError)". Yes I'm using rvm, and everything else is identical.
<laudace>
Not sure even where to begin to figure out what's going wrong
iamjarvo_ has joined #ruby
gil has quit [Remote host closed the connection]
echevemaster has joined #ruby
krz has quit [Client Quit]
<workmad3>
Dagobert: well, there's info in the README.md file of the repo too
geggam has joined #ruby
Hanmac has joined #ruby
ta has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
Guest3652 has quit [Read error: Connection reset by peer]
<Dagobert>
workmad3: I did read that, but „If `./configure` does not exist or is older than configure.in, run autoconf to (re)generate configure“ seems to lack necessary steps
Hanmac1 has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Ping timeout: 256 seconds]
<workmad3>
Dagobert: how so? you run 'autoconf'
cmoneylulz has quit [Remote host closed the connection]
disorder20 has joined #ruby
<disorder20>
hi
mr_foobar_baz has quit [Quit: WeeChat 0.4.3]
<disorder20>
is the "retry" keyboard removed from the recent version of ruby?
<disorder20>
I can't use it in a for loop
mike24 has joined #ruby
bal has quit [Quit: bal]
<Mon_Ouie>
No, it isn't. But it was never about loops. It's used in begin … end blocks along with exception handling
<workmad3>
disorder20: oh man... the second edition? :/
manlio has joined #ruby
<disorder20>
yes
<godd2>
disorder20 that's for an older version of ruby
ta has joined #ruby
<godd2>
you should expect at least a few things that will break
<disorder20>
oh ok
<workmad3>
disorder20: I hope you didn't just buy that...
<Mon_Ouie>
Oh yes, it did use to work in 1.8 actually
<Mon_Ouie>
(1.8 has died since then)
<godd2>
disorder20 what version of ruby do you have installed that youre learning on?
<disorder20>
2.0
wildroman2 has quit [Remote host closed the connection]
<disorder20>
how many things have changed since 1.8?
jinie has quit [Ping timeout: 272 seconds]
<Mon_Ouie>
2431, precisely
tjr9898 has quit [Remote host closed the connection]
<Mon_Ouie>
(Just "many" — not really something you can count)
<disorder20>
lol
<workmad3>
disorder20: new syntax, changed semantics, changed stdlibs...
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3>
disorder20: enough that learning from an old book will be problematic ;)
<disorder20>
ok thanks
<workmad3>
disorder20: but then, you just found that out anyway :)
osvimer has quit [Quit: leaving]
Trynemjoel has quit [Ping timeout: 245 seconds]
gil has joined #ruby
stytown has joined #ruby
darkxploit has joined #ruby
laudace has left #ruby [#ruby]
Xeago has quit [Read error: Connection reset by peer]
<godd2>
disorder20 what page is that retry example on?
gr33n7007h has quit [Ping timeout: 252 seconds]
T_Hunt has joined #ruby
Xeago has joined #ruby
<godd2>
pp 99 ?
relix has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
jottr_ has joined #ruby
Ankhers has joined #ruby
einarj has quit [Ping timeout: 248 seconds]
ta has quit [Ping timeout: 240 seconds]
Beoran has quit [Ping timeout: 248 seconds]
SBoolean has joined #ruby
jinie has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
relix has quit [Client Quit]
relix has joined #ruby
relix has quit [Client Quit]
BalkM has quit [Quit: Computer has gone to sleep.]
BalkM has joined #ruby
havenwood has quit [Remote host closed the connection]
einarj has joined #ruby
Trynemjoel has joined #ruby
havenwood has joined #ruby
_maes_ has joined #ruby
gr33n7007h has joined #ruby
T_Hunt has quit [Ping timeout: 255 seconds]
_maes_ has quit [Client Quit]
bazy has joined #ruby
BalkM has quit [Read error: Connection reset by peer]
BalkM_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_maes_ has joined #ruby
p0sixpscl has quit [Quit: p0sixpscl]
schaerli has quit [Remote host closed the connection]
zorak_ has quit [Ping timeout: 255 seconds]
<godd2>
in 3rd edition of Programming Ruby as a footnote: "Prior versions of Ruby also supported the retry keyword as a looping mechanism. This has been removed in Ruby 1.9."
j_mcnally has joined #ruby
mconnolly has joined #ruby
jfran_ has joined #ruby
mconnolly has quit [Client Quit]
p0sixpscl has joined #ruby
banjara has joined #ruby
BalkM_ has quit [Ping timeout: 240 seconds]
Takle has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
mjsmith2 has quit []
claymore has joined #ruby
Beoran has joined #ruby
banjara has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
manlio has quit [Ping timeout: 245 seconds]
zorak_ has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
wildroman2 has joined #ruby
CaptainJet has joined #ruby
manlio has joined #ruby
tjr9898 has joined #ruby
maximski_ has quit []
havenwood has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
beanHolez has joined #ruby
<shevy>
I was surprised I could even compile the latest ruby
<ericwood>
the trick is to not build it from scratch
<ericwood>
idk why people do that
<ericwood>
there's binaries
<shevy>
lol
hgl_ has quit [Ping timeout: 264 seconds]
<ericwood>
seriously tho why bother
timonv has quit [Remote host closed the connection]
<shevy>
because they don't have to wait for anyone packaging things up?
mikepack_ has joined #ruby
<ericwood>
they build nightly, right?
<havenwood>
we need more elves for wrapping
<ericwood>
idk the stable is always available
sinfex has joined #ruby
<ericwood>
shevy: I thought you were still on 1.8
<beanHolez>
I have a lambda that is taking either a Hash or an Array as its argument. If a hash, it needs to use each_value, but just each if an array is passed. Is there a more elegant way than just having a conditional branch for each?
<shevy>
ericwood I think half a year ago, I actually found out that tenderlove has packaged syck as a gem
<shevy>
and that gem works
disorder20 is now known as kkuno
<ericwood>
beanHolez: is the function being passed into each_value and map the same?
<shevy>
so I can continue working with my invalid yaml files
theharshest has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
<beanHolez>
ericwood: yes, I need to apply the same logic to both
bricker`work has joined #ruby
vyorkin has quit [Ping timeout: 240 seconds]
<ericwood>
beanHolez: you could say: -> { |i| your code }; result = input.is_a?(Hash) ? input.each_object(&whatevs) : input.map(&whatevs)
<ericwood>
beanHolez: so, still a conditional but you reuse the function passed in
<ericwood>
just as kind of a stupid example
theharshest has quit [Read error: Connection reset by peer]
xaxisx has quit [Quit: xaxisx]
cmoneylulz has joined #ruby
theharshest has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
mikesplain has joined #ruby
tjr9898 has quit [Remote host closed the connection]
theharshest has quit [Read error: Connection reset by peer]
niftylettuce_ has joined #ruby
<beanHolez>
ericwood: Ah, nicer than what I was going with. I'll give it a shot, thanks
St_Marx has quit [Quit: Ex-Chat]
charlied3 has joined #ruby
theharshest has joined #ruby
Ankhers has quit [Remote host closed the connection]
iamjarvo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ericwood>
no problemo homie
Ankhers has joined #ruby
iamjarvo has joined #ruby
theharshest has quit [Read error: Connection reset by peer]
theharshest has joined #ruby
dwayhs has joined #ruby
St_Marx has joined #ruby
theharshest has quit [Read error: Connection reset by peer]
dangerou_ has quit [Read error: Connection reset by peer]
sigurding has quit [Quit: sigurding]
iamjarvo has quit [Client Quit]
alex88 has quit [Quit: Leaving...]
dangerousdave has joined #ruby
theharshest has joined #ruby
User458764_NotHe has quit [Ping timeout: 248 seconds]
vt102 has joined #ruby
AlexRussia has quit [Quit: No Ping reply in 180 seconds.]
yfeldblum has joined #ruby
theharshest has quit [Read error: Connection reset by peer]
mikeg has joined #ruby
theharshest has joined #ruby
AlexRussia has joined #ruby
theharshest has quit [Read error: Connection reset by peer]
theharshest has joined #ruby
icarus_ has joined #ruby
alexa_ has joined #ruby
pietr0 has joined #ruby
tjr9898 has joined #ruby
thomasxie has quit [Quit: Leaving.]
paulfm has quit []
tjr9898 has quit [Remote host closed the connection]
havenwood has quit []
yfeldblum has quit [Ping timeout: 240 seconds]
Takle has quit [Ping timeout: 248 seconds]
tjr9898 has joined #ruby
blueOxigen has joined #ruby
bluOxigen has quit [Read error: No route to host]
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uffs has joined #ruby
frankjpinto has joined #ruby
ephemerian has quit [Quit: Leaving.]
noop has joined #ruby
nedbat has joined #ruby
stytown has quit [Quit: stytown]
<nedbat>
hi, total ruby newb here, i had sass and hub etc working fine on my ubuntu machine, but something has changed and I don't know what. Now "which ruby" reports nothing, but "type ruby" reports "ruby is hashed (/home/ned/.rbenv/shims/ruby)" What makes that happen, and how can I make ruby be on the path again instead?
Notte has joined #ruby
dblessing_ has joined #ruby
<ericwood>
not that I can help you but how did you have ruby installed?
<ericwood>
via the apt-get package?
<nedbat>
ericwood: honestly, i'm not sure...
<ericwood>
nedbat: lets fix that
<nedbat>
ericwood: but "which sass" is the same story
<alexa_>
Hey, I'm trying to solve a bit of a puzzle involving virtus. I have two classes inside the same namespace, where one has the other as a property type. But when trying to instanciate the former class, its classname is appended to the namespace, resulting in a nameerror when trying to locate the child. This might be a bit hard to follow, so here's a gist of the exception stack:
<ericwood>
nedbat: did you accidentally delete your computer?
<nedbat>
ericwood: this is a django app, but uses sass, and I have hub installed also.
<nedbat>
ericwood: I think the only thing I changed was to install a new version of my .bashrc, and I could have lost some local customization in the process.
cmoneylulz has quit [Remote host closed the connection]
<nedbat>
ericwood: before we do that: do you know what .rbenv/shims means? where does that come from?
dblessing has quit [Ping timeout: 240 seconds]
dblessing_ is now known as dblessing
<ericwood>
nedbat: rbenv is a ruby version manager
K3dare has joined #ruby
<nedbat>
ericwood: ok, and shims?
<ericwood>
shims are what it uses to hook into stuff to ensure the correct version
<ericwood>
so ignore that
<ericwood>
do you know how to use rbenv?
fabrice31 has quit [Ping timeout: 240 seconds]
<ericwood>
I do not
timonv has joined #ruby
larsam has joined #ruby
fabrice31_ has quit [Ping timeout: 240 seconds]
BalkM_ has joined #ruby
francisfish has quit [Remote host closed the connection]
nicholas040 has joined #ruby
IceyEC has joined #ruby
<nedbat>
ericwood: i don't know how to. I'm trying to understand what might have made this change in my system.
atmosx has quit [Remote host closed the connection]
Joulse has quit [Quit: Joulse]
<ericwood>
no clue man
stytown has joined #ruby
atmosx has joined #ruby
havenwood has joined #ruby
xaxisx has joined #ruby
Dreamer3 has joined #ruby
p0sixpscl has quit [Quit: p0sixpscl]
mikespla_ has joined #ruby
obs has quit [Quit: Konversation terminated!]
<nedbat>
ericwood: thanks, I appreciate the help.
mconnolly has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
<pontiki>
nedbat: did you install something that might have changed your .profile, .bash_profile, and/or .bashrc files?
mikesplain has quit [Ping timeout: 240 seconds]
<pontiki>
or something else that might have changed you PATH envar?
BalkM_ has quit [Read error: No route to host]
<nedbat>
pontiki: I may have once, and then overwritten that with a fresh copy of my own dotfiles
<nedbat>
(which was foolish)
BalkM_ has joined #ruby
shvelo has joined #ruby
<pontiki>
perhaps
mikecmpbll has quit [Ping timeout: 255 seconds]
<pontiki>
since you had installed rbenv before (as indicated by the hashed commands), you might just install rbenv again and see if that clears things up
Squarepy has joined #ruby
<pontiki>
do the directions to install django have you doing something like that?
timonv_ has joined #ruby
Wolland has joined #ruby
vyorkin has joined #ruby
MmmmPie has joined #ruby
IceDragon has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
BalkM_ has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
Wolland has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
razrunelord has joined #ruby
upsell5 has quit [Quit: upsell5]
foo-bar- has quit []
freezey has quit [Remote host closed the connection]
<centrx>
It's a change in versioning style, before the versioning was 1.1, 1.2, etc
workmad3 has quit [Ping timeout: 245 seconds]
mikesplain has joined #ruby
leah has quit [Quit: Peaces]
kkuno has joined #ruby
failshe__ has quit [Remote host closed the connection]
jottr has joined #ruby
mikesplain is now known as mikespla_
failshell has joined #ruby
<nedbat>
centrx: I mean, when they were deciding to make backward-breaking changes from 1.8, why didn't they number it 2.0? Why choose 1.9?
failshell has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
failshell has joined #ruby
IceDragon has quit [Ping timeout: 248 seconds]
Neomex has quit [Quit: Leaving]
<centrx>
nedbat, Because the versioning style was backwards-incompatible changes can be in different version number in the second place, and the third place is the minor version number for only backwards-compatible changes
slainer6_ has quit [Remote host closed the connection]
<nedbat>
centrx: meaning that 1.4->1.5 could have also been incompatible?
<centrx>
nedbat, Yes
<nedbat>
and that has changed now, or not?
andrewjanssen has joined #ruby
<centrx>
nedbat, Starting with Ruby 2.0, they will use a different naming style called Semantic Versioning
benzrf is now known as benzrf|offline
<nedbat>
centrx: yes, I see.
wallerdev has quit [Quit: wallerdev]
soulcake has quit [Read error: Connection reset by peer]
funktor has quit [Remote host closed the connection]
havenwood has joined #ruby
<benzrf>
tskogberg:
<benzrf>
*tsk
<benzrf>
nedbat: why do you barely use it
jaimef has joined #ruby
<benzrf>
when it has such nice OO and decent language support for HOFs???
<nedbat>
benzrf: orthodoxy! :)
cmoneylulz has joined #ruby
<benzrf>
nedbat: fie
lkba has joined #ruby
jprovazn has joined #ruby
chrishough has quit [Quit: chrishough]
relix has joined #ruby
failshell has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 256 seconds]
tjr9898 has joined #ruby
yfeldblum has joined #ruby
BalkM_ has joined #ruby
kaspergrubbe has joined #ruby
roolo has quit [Quit: Leaving...]
carraroj has quit [Quit: Konversation terminated!]
maestrojed has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
razrunelord has quit []
failshell has joined #ruby
johnrover has joined #ruby
subraminion has quit [Ping timeout: 240 seconds]
carraroj has joined #ruby
Alina-malina has quit [Quit: Leaving]
johnrover has left #ruby [#ruby]
dgaffney has joined #ruby
johnrover has joined #ruby
Heskie has quit []
<dgaffney>
yo - anyone know how to properly escape a hash in Yard Docs?
kireevco has joined #ruby
mikecmpbll has joined #ruby
<dgaffney>
as in, I want to provide some embedded hash like {one: 1} to the documentation, and whenever I do it yardoc just prints it out as if it were trying to use the braces for as the notation for links
<shevy>
I don't get this
<shevy>
it's 8 o clock at night... and almost 30 °C
banister has joined #ruby
banister has quit [Max SendQ exceeded]
circ-user-7rjXe has joined #ruby
<centrx>
dgaffney, Did you try backslashes?
banister has joined #ruby
<dgaffney>
yeah, as in # @param params [Hash] \{one: 1\} - no dice
Notte has joined #ruby
nedbat has left #ruby [#ruby]
andrewjanssen has quit [Quit: Leaving...]
epochwolf has quit [Ping timeout: 240 seconds]
<shevy>
wow
<shevy>
that's ruby for you
Zackio has joined #ruby
<shevy>
when the comments become more complicated than the real code at hand
MusachiMiyamotoF has joined #ruby
gruz0[russia] has joined #ruby
Alina-malina has joined #ruby
<centrx>
Code should be self-documenting
<centrx>
Ruby makes this possible
kalusn has joined #ruby
<dgaffney>
meh - not a good enough argument when you're leaving your job
epochwolf has joined #ruby
<existensil>
Still nice to have some usage examples at the tops of classes other devs might use
<shevy>
ack
<shevy>
why are you leaving your job?
<dgaffney>
phd time
<shevy>
oh
tjr9898 has quit [Remote host closed the connection]
<dgaffney>
and add redcarpet to the proj and add --markup=markdown to the yardoc command and you're golden.
<wasamasa>
code-with-codecode-code?
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
<dgaffney>
yo dog
tjr9898 has joined #ruby
lemur has quit [Remote host closed the connection]
Takle has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
elaptics is now known as elaptics`away
ValicekB has quit []
qhartman has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
<shevy>
that's why dgaffney has the big brains
<shevy>
I realized that my brain can't deal with complexity
<shevy>
so I drag everything down to my level and there I will beat it
blackmesa has joined #ruby
<shevy>
The problem I had with decorating my comments with special markup was that I had to look at it whenever I looked at the code
<shevy>
that was very distracting, like visually distracting from the flow of the code
naquad has joined #ruby
vereteran has quit [Ping timeout: 240 seconds]
reebs has joined #ruby
<dgaffney>
hahah - thats totally where I'm at too, shevy - unfortunately the level of my devs is kind of all over the place and I need to leave them with something that will behave very well
tacos1de has quit [Ping timeout: 264 seconds]
<dgaffney>
and when it doesn't, there's gotta be enough for them to hold on to
kirun has joined #ruby
Wolland has joined #ruby
<beanHolez>
I want to use a lambda as a block for a .each enumerator, but can't seem to make it work. Is it even possible?
yetanotherdave has joined #ruby
<dgaffney>
beanHolez: code code code
lxsameer has joined #ruby
<beanHolez>
I have something like a = lambda {|i| i*5}; [1,2,3,4,5].each(&:a)
Wolland has quit [Read error: Connection reset by peer]
<dgaffney>
mm
gruz0[russia] has quit [Quit: Leaving]
tacos1de has joined #ruby
<yxhuvvd>
beanHolez: that would be &a, not &:a.
<dgaffney>
[1,2,3,4,5].collect{|x| a.call(x)} would do it?
<beanHolez>
yxhuvvd: Thank you! Ugh, such a small change
ndrei has quit [Ping timeout: 240 seconds]
BalkM__ has joined #ruby
<dgaffney>
ahh nice yxhuvvd
chrishough has joined #ruby
koyd has joined #ruby
Wolland has joined #ruby
<shevy>
dgaffney have you considered writing a detailed tutorial + explanations of it including code samples?
<yxhuvvd>
beanHolez: I can recommend reading up on what & and Symbol#to_proc actually does.
<beanHolez>
yxhuvvd: Any particular reading outside of docs?
<dgaffney>
shevy: I have indeed the part that they are actually most likely to grow out I have a couple demos in place - that's the nice thing about leaving with months of runway as a senior dev - I can totally leave them in a safe spot with super well doc'ed stuff
andrewjanssen has joined #ruby
BalkM_ has quit [Read error: Connection reset by peer]
terrellt has quit [Remote host closed the connection]
SBoolean has quit [Remote host closed the connection]
dapz has joined #ruby
terrellt has joined #ruby
x1337807x has joined #ruby
charlied3 has joined #ruby
Aryasam has joined #ruby
mikepack_ has quit [Remote host closed the connection]
<beanHolez>
Setting the value in lines 14 and 16 is useless, because it doesn't change the value in place, but I'm not sure how to get the returns right.
adelcampo has joined #ruby
freezey has joined #ruby
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
failshell has quit [Remote host closed the connection]
<apeiros>
beanHolez: assigning to a local variable doesn't what you want it to
FLeiXiuS`` has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
xaxisx has joined #ruby
IceyEC has quit [Ping timeout: 248 seconds]
<beanHolez>
apeiros: exactly. That's where the problem lies, but I'm not sure HOW to go about fixing it in this case
<apeiros>
for Array, use map!
nicholas040 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros>
for Hash, use hash.each do |k,v| hash[k] = escape(v) end
yfeldblum has joined #ruby
pushpak has joined #ruby
failshel_ has joined #ruby
gregf has joined #ruby
gregf has quit [Client Quit]
saarinen has quit [Quit: saarinen]
IceyEC has joined #ruby
<beanHolez>
apeiros: ahhhhh, I see. Thanks for your help, works like a charm
ValicekB has quit []
<lectrick>
shevy: the idea was that 1.arg would return a lambda-like object that takes the 1st argument and applies later sent messages to it
MusachiMiyamotoF has quit [Ping timeout: 256 seconds]
<apeiros>
beanHolez: btw., an alternative for the if/elsif: case value; when String …; when Array, Hash …; else raise "Invalid data"; end
adelcampo is now known as doritostains
<apeiros>
ooooh… I just had an idea for my programming language
doritostains has quit [Quit: doritostains]
<beanHolez>
apeiros: I started doing exactly that, but didn't realize you could have multiple comparisons with when
<beanHolez>
like: when Array, Hash
adelcampo has joined #ruby
<apeiros>
if … [else if …] [else … | unreachable else | unused else] end
adelcampo is now known as doritostains
nanoyak has quit [Quit: Computer has gone to sleep.]
Jam has joined #ruby
<apeiros>
actually the last one not being optional. i.e., `else`, `unreachable else` or `unused else` is mandatory
bradhe has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
cmoneylulz has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
<apeiros>
btw. beanHolez - don't put such logic into a controller. at the very least, move it into a library.
momomomomo has quit [Remote host closed the connection]
momomomomo has joined #ruby
treehug88 has joined #ruby
yfeldblum has joined #ruby
Shidash has quit [Ping timeout: 248 seconds]
saarinen has joined #ruby
JoshGlzBrk has joined #ruby
charliesome has joined #ruby
rayners has quit [Read error: No route to host]
<beanHolez>
aperios: What's the problem with having it where it is right now? I need this to happen with every response. I was considering even making it rack middleware, but have never done anything like that, so wasn't sure about the best direction
<beanHolez>
Not that I disagree, just genuinely curious
mikepack has quit [Remote host closed the connection]
<apeiros>
and use tab completion for nicks. less embarrassing :-p
jtiggo has joined #ruby
<beanHolez>
Whoa, didn't know that was even a feature. Don't use IRC often
<apeiros>
google lean/small controllers
<yxhuvvd>
personally, I wonder why you are implementing escaping yourself instead of using something that is already built in.
stytown has quit [Quit: stytown]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<beanHolez>
yxhuvvd: We use RABL as a templating solution for our API, and they have an option for global escaping, but it escapes literally everything: numbers, integers, booleans, everything.
jottr has joined #ruby
ringarin has joined #ruby
<beanHolez>
So this causes problems on the frontend when trying to do things like check truthiness of booleans, for example
ringarin has quit [Client Quit]
<beanHolez>
lol, "numbers, integers" whoops
niftylettuce_ has quit [Quit: Connection closed for inactivity]
bricker`work has quit [Quit: Lost terminal]
Arkaniad has quit [Ping timeout: 248 seconds]
DivineEntity has joined #ruby
claymore has quit [Quit: Leaving]
blackmesa has joined #ruby
<beanHolez>
When we get a response from the server that is something like {is_admin: "false"} instead of {is_admin: false}, we're in for a world of hurt
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 240 seconds]
Morkel_ is now known as Morkel
stytown has joined #ruby
saarinen has quit [Quit: saarinen]
circ-user-0GAHI has joined #ruby
<apeiros>
given that json doesn't have integers - lol indeed ;-p
ta has joined #ruby
<yxhuvvd>
apeiros: there is still a difference between numbers and strings though.
<apeiros>
orly? :D
manlio has quit [Remote host closed the connection]
Notte has quit [Remote host closed the connection]
<apeiros>
but all booleans are numbers!
tjr9898 has joined #ruby
Pulpie has joined #ruby
wildroman2 has joined #ruby
BalkM____ has joined #ruby
<Pulpie>
"e".to_i shows 0. Is there a way for it to return nil instead of 0?
<yxhuvvd>
Pulpie: Integer("e") rescue nil
cmoneylulz has joined #ruby
<Pulpie>
interesting so thats a cast to int right?
<Pulpie>
is there a reason to_i doesn't use this method?
Kricir has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
<apeiros>
yxhuvvd, Pulpie: add `, 10` as second argument, otherwise depending on the situation, you'll get unexpected issues
Kricir has quit [Remote host closed the connection]
<wallerdev>
i think xml is on the way out
<wallerdev>
maybe switch to json
<pontiki>
you must speak to the vast number of java coders before you assert that
nanoyak has joined #ruby
pencilcheck has quit [Ping timeout: 245 seconds]
<wallerdev>
as far as im concerned java doesnt exist anymore
<shevy>
pontiki
<vivekrai>
I understand but unfortunately, the program I am targeting doesn't give output in JSON format (yet)
<shevy>
do you have blood on your hands?
<shevy>
aka did you write java code
<arup_r>
xcesariox: Kernel#integer take second argument I never noticed.. soo :-)
<pontiki>
it still makes up nearly 40% of web aps, though
<wallerdev>
ive never used Integer
AlexRussia_ has joined #ruby
<wallerdev>
always to_i
FLeiXiuS`` has quit [Ping timeout: 255 seconds]
<shevy>
ack
<wallerdev>
to_i is superior
AlexRussia has quit [Read error: Connection reset by peer]
<pontiki>
i do, shevy, but i atone daily
<xcesariox>
arup_r: lol okay.
<wallerdev>
Integer is like python style
<wallerdev>
str(5)
<vivekrai>
wallerdev: So, I kind of need to work with the output XML data using this library (or any other easy, suitable one) and get a Hash out of it.
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki>
vivekrai: if *all* you want is xml -> ruby hash, look at the nori gem
phutchins has quit [Ping timeout: 245 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
circ-user-0GAHI has quit [Remote host closed the connection]
<wallerdev>
or rexml
<pontiki>
or that
uffs1 has quit [Ping timeout: 256 seconds]
<arup_r>
xcesariox: It seems your question has other smell.. What is that ? :-)
<vivekrai>
wallerdev: ReXML would be ultra slow for the kind of targetted output. pontiki : I don't know how fast that would be. Is it built on C?
<arup_r>
wallerdev: why not Nokogiri ?
j_mcnally has quit [Ping timeout: 264 seconds]
<wallerdev>
ah
<wallerdev>
well you didnt say you had a large data set haha
Kricir has joined #ruby
<apeiros>
wallerdev: I don't really like the Kernel#Capitalized methods :-/
<apeiros>
I'd prefer e.g. Integer.from_string("10", 2)
<wallerdev>
yeah capitalized methods in general are weird
<apeiros>
Integer # without args, is always the constant
<pontiki>
nori is built on nokogiri
<apeiros>
Kernel.Integer # is always the method
<apeiros>
Kernel::Integer # is always the constant again
awkwords has joined #ruby
<apeiros>
Kernel::Integer() # is always the method
<wallerdev>
hm
<vivekrai>
pontiki: Working with Nokogiri is problematic. Also, it introduces a lot of other dependencies too. Do you have any other in mind?
<apeiros>
wallerdev: if the choice is only between "did it change" and "is wallerdev dumb", then I fear it's the latter :)
<wallerdev>
:D
<pontiki>
vivekrai: nope
<wallerdev>
oh well
judd7 has joined #ruby
<vivekrai>
Or let's just forget about the problem and try to answer .. given I have a nested structure (of arrays or some custom data structure).. how do I build a Hash out of it?
<vivekrai>
pontiki: Please have a look at it. The hashed output is terminated prematurely and I don't know why.
<vivekrai>
wallerdev: Please see
yfeldblum has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
dblessing has joined #ruby
maestrojed has joined #ruby
AlexRussia_ is now known as AlexRussia
pencilcheck has joined #ruby
yakko has joined #ruby
x1337807x has joined #ruby
<zalmoxes>
anyoen have experience with scrapping data from a webpage that uses ajax?
nicholas040 has joined #ruby
<zalmoxes>
i used mechanize to scrape a page, but the data i need isn't actually there, it's being fetched with javascript
siflyn has quit []
havenwood has quit [Ping timeout: 264 seconds]
MrDoctor has quit [Ping timeout: 255 seconds]
sailias has quit [Read error: Connection reset by peer]
chrishough has quit [Ping timeout: 240 seconds]
diana has joined #ruby
mconnolly has joined #ruby
senayar has joined #ruby
chrishough has joined #ruby
chrishough has quit [Client Quit]
<existensil>
zalmoxes: might want to look at phantomjs
gtc has quit [Remote host closed the connection]
chrishough has joined #ruby
<existensil>
headless webkit
bradhe has joined #ruby
stytown has joined #ruby
<existensil>
its javascript, but, eh... we all have to know javascript anyways
<pontiki>
vivekrai: if i told you that it only has the *last* hit, would that be enough of a clue?
<pontiki>
vivekrai: i.e.: you're replacing the key "Hit" over and over again, instead of treating as an array
yfeldblum has joined #ruby
<mg^>
Thankfully I don't have to know javascript.
stytown has quit [Client Quit]
diana has quit [Killed (idoru (Spam is off topic on freenode.))]
<mg^>
I have to know too many things as it is.
<vivekrai>
pontiki: Hmm. I noticed that part.. how could I handle it then? convert to array rather than dict?
BalkM_____ has joined #ruby
BalkM____ has quit [Read error: Connection reset by peer]
acrussell has quit [Quit: Leaving.]
<pontiki>
the IterationHits is your actual array, you should treat that accordingly.
olivier_bK has joined #ruby
<zalmoxes>
doesn't the ajax script make a GET request in the background anywy? I don't get why i'd need something like phantomJS to render a page instead of getting the data directly
<pontiki>
i daresay BlastOutput_iterations is *also* going to be an array
einarj has joined #ruby
Macaveli has joined #ruby
<existensil>
zalmoxes: you fetch the page with phantomjs, let the page make its ajax request (either waiting, or hooking into a ready event, etc), then you can scrape the page like any other
diegoviola has joined #ruby
stytown has joined #ruby
<Macaveli>
hi all
timonv has quit [Remote host closed the connection]
timgauthier has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MmmmPie has quit [Ping timeout: 240 seconds]
bradhe has quit [Read error: Connection reset by peer]
Macaveli has quit [Remote host closed the connection]
Macaveli has joined #ruby
dblessing has quit [Remote host closed the connection]
sepp2k has quit [Read error: Connection reset by peer]
<existensil>
zalmoxes: if you want to just figure out what requests its making and build them yourself, that would work too...
dblessing has joined #ruby
<existensil>
no phantomjs required
aspires has quit []
<existensil>
but if the logic is complex or it requires cookies or something else, phantomjs is a great solution
<Macaveli>
whats does the x :y bit do max = x > y ? x : y
Xeago has joined #ruby
bradhe has joined #ruby
vt102 has quit [Ping timeout: 255 seconds]
<existensil>
Macaveli: that is equivilent to this: if x > y; x; else; y; end
<existensil>
Macaveli: its called the ternary operator
sepp2k has joined #ruby
<Macaveli>
thanks existensil
<existensil>
test_expression ? if_true : if_false
aspires has joined #ruby
francisfish has joined #ruby
<Beoran>
? : is called the ternary operator, it comes from the C programming language originally
dangerousdave has quit [Read error: Connection reset by peer]
<arup_r>
I made myself crazy while I was reading it .. for proc no way I convinced myself with -n-1... so I took the 2 examples here to make others carzy too.,.. :-)
replay has joined #ruby
momomomomo has joined #ruby
cwang has quit [Ping timeout: 264 seconds]
dc_ has quit [Remote host closed the connection]
sailias has joined #ruby
kireevco has quit [Quit: Leaving.]
sailias has quit [Remote host closed the connection]
<markoso>
i have done codeschool.com but teamtreehouse has a better ruby deep dive. but honestly I left them and I been just trying to code as much as i can.. and watching vids. 25.00 month is high for me atm
<markoso>
Exercise' lol
<terrellt>
pontiki: That's a cool idea.
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Zenigor has quit [Remote host closed the connection]
<markoso>
I have been looking for a mentor for sometime..
northfurr has joined #ruby
johnrover has joined #ruby
<markoso>
terrellt: what city in Oregon?
<thejamespinto>
markoso: don't get me started, I suffer from superhero syndrom
<markoso>
ok lol
<terrellt>
I am -not- up for mentoring, but Portland has an EXCELLENT ruby group.
<thejamespinto>
I gave up mentoring, most people just expect you to hold their hand and lay down the very basics, I'm not a book :P
<terrellt>
I went to school in Medford.
<thejamespinto>
terrellt: checked the video?
<terrellt>
Oregon has some good Ruby conferences. Rails-conf was in Portland last year, Ruby on Ales is hosted in Bend.
sigurding has quit [Quit: sigurding]
VooDooNOFX has joined #ruby
<terrellt>
thejamespinto: Can't.
<markoso>
I had a mentor for ahwile, I did not let him hold my hand he challenged me a lot.
<markoso>
I will def go to Ruby on Ales :)
<pontiki>
sign of a good mentor
<markoso>
My mentor is way to busy now ,
<thejamespinto>
I'm curious, are any of you guys not a ginger?
<pontiki>
don't give answers, ask questions
<terrellt>
...Wat
<pontiki>
not a guy, not a ginger
bradhe has quit [Remote host closed the connection]
<thejamespinto>
=P
<markoso>
yea he would ask me questions or show me code to figure it out.. pretty cool
DivineEntity has joined #ruby
<markoso>
I am not a ginger lol
<thejamespinto>
markoso: awkward =P
<markoso>
random questions much?
<pontiki>
you are being rather awkward, yeah
<markoso>
hawkward
nanoyak has joined #ruby
DrShoggoth has quit [Quit: Leaving]
<markoso>
So as a rails developer do you absolutely need to know JS? I can't stand it lol
bradhe has joined #ruby
<markoso>
Ruby spoiled me
<pontiki>
i would feel quite hamstrung if i didn't know JS
<pontiki>
but i suppose one could spen all one's time in the backend
<markoso>
I know the basics lol
nateberkopec has quit [Quit: Leaving...]
endash has quit [Quit: endash]
<markoso>
My original idea was full stack.
ecksit has joined #ruby
<pontiki>
the coming wave is client-side apps, though that may swing back again
<markoso>
But I am not the best designer :/
<terrellt>
The "full stack" is HTML/CSS/JS/Ruby.
ecksit has quit [Client Quit]
<terrellt>
So...yes.
<terrellt>
(Well, depending. Devops slips in there sometimes too.)
<pontiki>
design, as in visual design, is quite a different skill
snath has quit [Ping timeout: 256 seconds]
hanikazmi_ has joined #ruby
<markoso>
wanna critique a site i made after learning html css lol
preller has quit [Ping timeout: 252 seconds]
timfoo has joined #ruby
<thejamespinto>
markoso: There is a nice rails-way saying - make it work, make it better, make it faster - stands for many things including not focusing on JS
hanikazmi has quit [Read error: Connection reset by peer]
<markoso>
Oh I am a total linux nerd so im good there
<pontiki>
however, knowing how to implement a visual design is important for the well-rounded dev
benzrf is now known as benzrf|offline
mike24 has quit [Ping timeout: 245 seconds]
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
<terrellt>
Converting a design and knowing what makes a good UI is important.
<terrellt>
Actually being able to photoshop a good design, less so. But if you can, you're instantly worth more.
<thejamespinto>
I gave up CSS :/
mrmargolis has quit [Remote host closed the connection]
<pontiki>
i think it's really important to understand how the user experiences your site
<thejamespinto>
pontiki: +1
earthquake has joined #ruby
<markoso>
Photoshop should not be involved this day in age
<csmrfx>
depends
<markoso>
not for layout anyways
<csmrfx>
youre mistaken
crudson has quit [Quit: q term]
tjr9898 has quit [Remote host closed the connection]
<toretore>
*your
<terrellt>
That's ridiculous. It's a good tool with a huge suite of designers who know how to use it.
<markoso>
Photoshop for web design is on its way out.
<markoso>
You're
<thejamespinto>
markoso: here's your future with CSS... you're gonna learn a ton of it, then realize you should spend more time coding server-side and get somebody else to do CSS for you :P
gr33n7007h has joined #ruby
crudson has joined #ruby
<markoso>
thejamespinto: I'd rather do server side I am not mr designer
<markoso>
I was just told to become fullstack
<thejamespinto>
markoso: don't
<pontiki>
what is you evidence for that, markoso ?
nfk has quit [Remote host closed the connection]
codezomb has joined #ruby
<pontiki>
i have potential evidence unrelated to anything here
<markoso>
pontiki: hours of research lol
<pontiki>
oh come on
jobewan has quit [Quit: Leaving]
<pontiki>
photoshop and illustrator, as well as other adobe products are still used by more designers than anything else
<markoso>
I'm not here to debate CSS and PHotoshop..
<markoso>
Thats
<pontiki>
not *developers*, *designers*
<frankjpinto>
hi all. agreed, photoshop / illustrator will stay around for a a decade IMO
<thejamespinto>
markoso: let me tell you a new thing to become then: become an expert at one thing, nobody likes to hire ducklings
sgen has quit [Quit: Leaving]
<markoso>
You misunderstood me .
<pontiki>
the only thing i see about adobe products is that they've lost a lot of people with deep knowledge of those products
<thejamespinto>
frankjpinto: nice surname :P
<pontiki>
oh that's possible
p0sixpscl has joined #ruby
<pontiki>
but if you're saying "Photoshop for web design is on it's way out" perhaps you should really clarify what you mean
einarj has joined #ruby
<markoso>
What I mean, yes PS , IS are awesome and used all the time, just PS to CSS is not as common because CSS advancing.
<frankjpinto>
thejamespinto: mighty fine one yourself ;)
<terrellt>
PS to CSS was never common.
<markoso>
It was in the late 2000s
<terrellt>
Not professionally at least.
<markoso>
mid
<markoso>
I know 4 designers that use PS to design to CSS..
hanikazmi_ has quit [Quit: No Ping reply in 180 seconds.]
<pontiki>
the CSS that PS and AI generate has *always* sucked
<terrellt>
^
<frankjpinto>
PS to CSS is extremely common to dev shops that outsource design
<markoso>
Most web devs i know use CSS and PS to make images
<markoso>
yes
<terrellt>
Woah, wait.
<markoso>
so we misunderstood lol
<pontiki>
are you talking about image slicing?
<terrellt>
So you don't mean using PS to conver to CSS
hanikazmi has joined #ruby
<terrellt>
You mean you get a PSD file and you use the layers to build your layout.
<markoso>
Many use PS to convert to CSS
<terrellt>
In which case, that's not going anywhere.
riotjones has quit [Ping timeout: 256 seconds]
<markoso>
That's my argument lol
preller has quit [Ping timeout: 240 seconds]
<markoso>
PS to CSS is fading
<markoso>
case dismissed
<markoso>
Pure CSS is the majority now
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
<frankjpinto>
i need a nick and my creativity is failing, who wants to help!? :D
<pontiki>
that is actually completely different than your initial statement
<markoso>
SYmantical Code not PS crap code lol
<markoso>
Sorry I should have elaborated.
<thejamespinto>
frankjpinto: frankpinto
<pontiki>
i barely even write any CSS anymore
* terrellt
has people for that.
<terrellt>
MOST of the time.
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pontiki>
i write SASS/SCSS
dogeydogey has joined #ruby
<pontiki>
or use frameworks that use those
<terrellt>
Lol.
<markoso>
Sass is groovy
<dogeydogey>
hey what's the best way to zip a file in ruby?
<terrellt>
I just combine the two. Why would you write raw CSS anymore.
<pontiki>
exactly
GriffinHeart has joined #ruby
<terrellt>
dogeydogey: `zip file1.jpg` ?
<frankjpinto>
I knew this guy at my old job that was a wizard w/ CSS. Knew all the quirks of all the browsers. Could make any site behave / look exactly the way you wanted it in all browsers
<markoso>
I think I will just focus on Ruby and Rails I know bootstrap :)
<frankjpinto>
The derivative that comes w/ most feature phones nowadays. In latam right now, we have to deal w/ a lot of legacy stuff *sigh*
<markoso>
So i notice at amazon most Ruby books are from 2008 2010 Know of any that are up to dat?
mikesplain has quit [Ping timeout: 255 seconds]
<frankjpinto>
i'd have to check out some of our devices specs real quick to check name / version of derivative
<markoso>
date*
<terrellt>
markoso: Depends. What do you want out of a ruby book?
codabrink has joined #ruby
<markoso>
To learn
omosoj has quit [Quit: Leaving]
claymore has quit [Quit: Leaving]
<pontiki>
the latest edition of programming ruby is up to date well enough
GriffinHeart has quit [Ping timeout: 248 seconds]
<terrellt>
Ruby tutorials are best for basics, codeschool is great for Rails. If you want software engineering things there are great books for that.
<pontiki>
delta between that and 2.1 is minimal
<markoso>
I know the basics
kalusn has joined #ruby
<pontiki>
POODR is likely to never go out of date
<terrellt>
^ EXCELLENT software engineering book.
jaimef has quit [Excess Flood]
alexa_ has joined #ruby
<pontiki>
the classics, eloquent ruby, well-grounded rubyist, confident ruby, etc, are also timeless
<markoso>
ok thx
nemesit|znc has quit [Ping timeout: 256 seconds]
<terrellt>
Confident Ruby like, JUST came out in the last year, no?
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki>
i think so?
bradhe has quit [Remote host closed the connection]
<terrellt>
Instant classic? ;)
<pontiki>
yeah
Arkaniad has quit [Ping timeout: 248 seconds]
tectonic has joined #ruby
tectonic has quit [Max SendQ exceeded]
<pontiki>
well, it's a collection of stuff he's been talking about for ages
bradhe has joined #ruby
<terrellt>
The talk was great.
<markoso>
So terrellt how many of your students actually get jobs doing Ruby?
<terrellt>
I haven't been here long enough to say.
<markoso>
Where is the campus? Portland?
<terrellt>
Corvallis.
<terrellt>
Portland State is in Portland.
Arkaniad has joined #ruby
Arkaniad|Laptop has joined #ruby
nemesit|znc has joined #ruby
Arkaniad has quit [Read error: Connection reset by peer]
kalusn has quit [Ping timeout: 248 seconds]
<pontiki>
right, so i'm seeing confident ruby published June 2012
CorpusCallosum has quit [Ping timeout: 264 seconds]
<ericwood>
oooh are we talking about portland ruby gigs?
<ericwood>
might be looking for one in the next year...
dogeydogey has left #ruby ["Bye"]
blackmesa has quit [Ping timeout: 240 seconds]
JoshGlzBrk has joined #ruby
mijicd has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
maximski has quit []
<terrellt>
ericwood: Where ya at?
mijicd has joined #ruby
jhass|off is now known as jhass
jaimef has joined #ruby
<terrellt>
Oh, YOU'RE looking for one.
dangerousdave has quit [Ping timeout: 255 seconds]
<markoso>
Three day workshop, one day conference. Limited seats. October 22-25th, 2014. rails workshop when i move there sweet
<ericwood>
terrellt: austin
mattstratton has joined #ruby
<ericwood>
if I decide to make the move I'll have that fun problem of finding somewhere great without any connections in the city
<ericwood>
can't wait :D
Arkaniad|Laptop has quit [Ping timeout: 240 seconds]
dblessing has quit [Quit: dblessing]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gregf has joined #ruby
<koyd>
any of you guys working remote?
<terrellt>
ericwood: Good luck! There's some good ruby shops up there.
<ericwood>
terrellt: that's what I hear, and there's probably going to be some ember work too
<ericwood>
we'll see
<ericwood>
all hypothetical right now
SilkFox has joined #ruby
senayar has quit [Remote host closed the connection]
Aryasam has joined #ruby
frankjpinto has quit [Quit: Leaving]
senayar has joined #ruby
enebo has joined #ruby
alexa_ has quit [Ping timeout: 264 seconds]
razum2um has quit [Quit: Leaving.]
frankjpinto has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
funktor has joined #ruby
timonv has joined #ruby
<pontiki>
koyd: i can work either remote or onsight
x1337807x has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
<GeekOnCoffee>
I work completely remote
SilkFox has quit [Ping timeout: 252 seconds]
iamjarvo has joined #ruby
francisfish has quit [Remote host closed the connection]
<koyd>
I'm thinking on switching to full remote but don't really know where to look for remote stuff
Arkaniad|Laptop has joined #ruby
j_mcnally has quit [Ping timeout: 240 seconds]
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
ffranz has quit [Quit: Leaving]
nateberkopec has joined #ruby
SilverKey has quit [Quit: Halted.]
<ericwood>
the remote store
fold has quit [Ping timeout: 256 seconds]
FLeiXiuS`` has joined #ruby
mr_snowf1ake has joined #ruby
<frankjpinto>
^ you can get one of those universals
benzrf|offline is now known as benzrf
gigetoo has quit [Remote host closed the connection]
<pontiki>
remote work is getting harder to find, especially for full time workers
gigetoo has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
kith has quit [Quit: kith]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kith has joined #ruby
blackmesa has joined #ruby
Xeago has quit [Remote host closed the connection]
<frankjpinto>
when you say remote work you mean working for one company full-time from out of office yes?
<ericwood>
I thought it was becoming more popular
JamBlack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<frankjpinto>
I personally don't like to hire ppl for remote unless its a short contract
knutmithut has quit [Ping timeout: 245 seconds]
<ericwood>
same
<frankjpinto>
needing somebody urgently and having them be AFK is frustrating, have to stop what i'm doing and do what they would have done. Just distracting worrying about it
<ericwood>
I've found I need proximity for a lot of teamwork stuff
dapz has joined #ruby
FLeiXiuS`` has quit [Ping timeout: 256 seconds]
<ericwood>
big pieces can be remote but the early and late phases really require us all there
<koyd>
that's been my experience, only short contracts and that's what I don't like about it
<koyd>
but I was under the impression it was becoming more popular and that it was just me looking in the wrong places :)