bsaboia_ has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
brianpWins has joined #ruby
_theriffer_ has joined #ruby
agjacome has quit [Quit: leaving]
emmanuelux has quit [Remote host closed the connection]
jimg has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
radic_ has joined #ruby
Davey has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
Jt123 has joined #ruby
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
falood has joined #ruby
TwitchTEK has joined #ruby
Spooner has quit [Remote host closed the connection]
<TwitchTEK>
Howdy All! App development question coming...
<TwitchTEK>
What I am looking for:
<TwitchTEK>
An automatic music file organizer.
<TwitchTEK>
Desired endstate
<TwitchTEK>
To have all of my music files, mp3, mp4, ogg, occ, etc... correctly tagged, correctly named, delete all duplicates, and placed in correct folder. I will have a 'one folder to rule them all' music collection on my home server (Windows Server 2008). Folder tree will resemble something along lines of:
<TwitchTEK>
Application needs ability to run in both Linux and Windows environments, and/or, be launched from a Linux environment, browse network to a Windows machine, and execute its actions on files on that Windows machine. Application needs to be 'smart enough' to be pointed to a directory, search every subdirectory, and do its thing; fire and forget. Application needs to correctly tag files automatically,
<TwitchTEK>
correctly rename files automatically, move files and place in correct file/folder/directory structure automatically, and delete duplicates automatically
<TwitchTEK>
Conditions:
<TwitchTEK>
My server, Windows Server 2008 R2 32bit, with a huge chunk of storage as a network shared drive. On this share, I have backups, copies & pastes, and data from hard drives, CDs, and computers from up to about 10 or so years ago. So, in addition to everything else, I have mountains of music spread all over the place.
<TwitchTEK>
What I do not need/want
MeatballMadness has quit [Remote host closed the connection]
<popl>
TwitchTEK: hey dude. There's a pastebin URL in the topic.
jesly has joined #ruby
krz has joined #ruby
<sevenseacat>
sif read topic
<popl>
sif?
<sevenseacat>
'as if'
tomzx_mac_ has quit [Ping timeout: 256 seconds]
mocfive has joined #ruby
saintcajetan has quit [Remote host closed the connection]
MeatballSadness has quit [Ping timeout: 250 seconds]
<TwitchTEK>
didnt even see that
athst has joined #ruby
<taion809>
you'd probably be better off writing a python script to do this
<TwitchTEK>
think so?
<taion809>
yes
rickmasta has quit [Quit: Be back later]
prk has quit [Ping timeout: 260 seconds]
amh345 has joined #ruby
<TwitchTEK>
ok, ill have to check python out.
saintcajetan has joined #ruby
<TwitchTEK>
far as python goes, i saw the beets app, written in python, but it doesnt do what i want it to. ill keep lookin at the python route
<taion809>
thought i was in ##php, ruby would have been fine for this -_-
bigmac has joined #ruby
<sevenseacat>
lol
ssvo has quit [Ping timeout: 264 seconds]
icole has quit [Remote host closed the connection]
rickmasta has joined #ruby
mrrob has joined #ruby
banjara has quit [Quit: Leaving.]
<bnagy>
taion809: no.. no I did you did the right thing to send him to #python :>
banjara has joined #ruby
<pixelgremlins>
nope, that didn't work either... prices.each do |p| puts p gives me: {"amazon_new"=>[{"image"=>"imageurl.com", "url"=>"bookurl.com", "price"=>45.55}], "amazon_used"=>[{"image"=>"2ndImageUrl .com", "url"=>"2ndbookurl.com", "price"=>67.45}]} need to loop through image, url, and price.
gr4yscale has joined #ruby
<popl>
you know you've got an array of hashes yeah?
shadoi has quit [Read error: Connection reset by peer]
tomzx_mac has joined #ruby
Nisstyre has joined #ruby
shadoi has joined #ruby
<pixelgremlins>
I'm just basically wanting a multi-dim array of these and loop through the sub array and output it to a table...
zeade has joined #ruby
<popl>
you declare a hash with {} and an array with []
<bnagy>
if there's one hash per array then hsh.values.flatten.each {|subhsh| p subhsh['image']}
<popl>
is that correct?
baroquebobcat has quit [Quit: baroquebobcat]
io_syl has quit [Ping timeout: 240 seconds]
<popl>
yep
ixti has quit [Read error: Operation timed out]
<bnagy>
actually doesn't matter if there are multiple books per value
<bnagy>
zzz
adeponte has joined #ruby
<popl>
bnagy: what?
<bnagy>
popl: what what?
rrecio has joined #ruby
<popl>
bnagy: what were you referring to?
<popl>
your solution?
<bnagy>
yeah
<pixelgremlins>
thanks bnagy that worked... need to read up on flatten/values.. don't know those methods..
mikepack has joined #ruby
jimg has joined #ruby
<bnagy>
pixelgremlins: do you work with irb / pry?
seitensei has quit [Quit: Computer has gone to sleep.]
kofno has quit [Remote host closed the connection]
<bnagy>
helps a lot to see things step by step
<pixelgremlins>
irb
mfletcher has quit [Remote host closed the connection]
<pixelgremlins>
well, this is for Rails app -- but right now just using irb / a .rb file to figure out the hash looping I need for my view. Need to get my app prototype done by early next week, and feeling the pressure lol
seitensei has joined #ruby
nettoweb has joined #ruby
mikepack has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
<popl>
in pixelgremlins' example price is an array containing two elements, both hashes, which each have an array of three hashes as values?
harrymoreno has quit [Ping timeout: 248 seconds]
brianpWins has quit [Quit: brianpWins]
<bnagy>
no
<bnagy>
it's a hash with two k/v pairs, each value being an array with one hash in it
harrymoreno has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
<pixelgremlins>
a hash w/in a hash or 2 level multi-dimensional hash
tomzx_mac has quit [Ping timeout: 240 seconds]
<popl>
hm, the indentation is a bit screwy
`p has quit [Remote host closed the connection]
banjara has quit [Client Quit]
banjara has joined #ruby
<bnagy>
popl: oh, sorry I was looking at the channel not the gist
jimg has quit [Ping timeout: 240 seconds]
falood has quit [Remote host closed the connection]
<bnagy>
.. ugh, no it's using shortcut hash parsing inside the array
<bnagy>
ok not a syntax error, just awful
harrymoreno has quit [Ping timeout: 255 seconds]
harrymoreno_ is now known as harrymoreno
DanKnox is now known as DanKnox_away
brianpWins has quit [Client Quit]
gr4yscale has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 246 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<pixelgremlins>
the whole point is that each parent hash has a funky name that I don't want to remember...but the sub-hash has same key name, so I can put them in the right columns..
mklappstuhl has quit [Remote host closed the connection]
rrecio has quit [Ping timeout: 256 seconds]
banjara has quit [Quit: Leaving.]
bradleyprice has quit [Remote host closed the connection]
banjara has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
banjara has quit [Client Quit]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
banjara has joined #ruby
Levin_22 has quit [Quit: Levin_22]
rrecio has joined #ruby
brianpWins has joined #ruby
baroquebobcat has joined #ruby
<popl>
haha cool. %w{foo bar baz} is equivalent to qw/foo bar baz/ in Perl?
<popl>
"equivalent"
brianpWins has quit [Client Quit]
bigmac has quit [Quit: Leaving]
brianpWins has joined #ruby
wsterling has quit [Remote host closed the connection]
[1]SoonerBourne has joined #ruby
voodoofish has joined #ruby
richiebkr has joined #ruby
wsterling has joined #ruby
chile_andes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Nisstyre-laptop has joined #ruby
Guga_ has quit [Quit: ~]
SoonerBourne has quit [Ping timeout: 240 seconds]
[1]SoonerBourne is now known as SoonerBourne
brianpWins has quit [Client Quit]
io_syl has joined #ruby
mansi has quit [Remote host closed the connection]
falkoner has joined #ruby
mansi has joined #ruby
poga has joined #ruby
harrymoreno has quit [Ping timeout: 256 seconds]
harrymoreno has joined #ruby
mansi has quit [Ping timeout: 246 seconds]
richiebkr has quit [Ping timeout: 248 seconds]
jimg has joined #ruby
nettoweb has quit [Quit: nettoweb]
Triconium has quit [Quit: Leaving...]
Nisstyre-laptop has quit [Quit: Leaving]
mmitchell has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
splittingred has quit [Quit: splittingred]
Jackneill has joined #ruby
dash_ has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
athst has joined #ruby
thesheff17 has quit [Remote host closed the connection]
w0rldmaker has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
mansi has joined #ruby
GeissT has quit [Read error: Connection reset by peer]
GeissT has joined #ruby
coderhut has joined #ruby
coderhut has quit [Client Quit]
dmiller has quit [Remote host closed the connection]
coderhut has joined #ruby
fschuindt has quit [Quit: Computer has gone to sleep.]
pootler_ has joined #ruby
macmartine has joined #ruby
havenwood has joined #ruby
timkohrumel has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
mansi has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
pootler_ has quit [Ping timeout: 256 seconds]
pootler_ has joined #ruby
pootler__ has joined #ruby
gr4yscale has joined #ruby
lucianosousa has joined #ruby
dmiller has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
Paradox has quit [Quit: off to herp the derps]
Paradox has joined #ruby
DomKM has quit [Quit: Leaving.]
himsin has joined #ruby
kenmaz has joined #ruby
dmiller has quit [Remote host closed the connection]
arya has joined #ruby
kenmaz has quit [Ping timeout: 264 seconds]
girija has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
_theriffer_ has quit [Quit: _theriffer_]
apeiros has joined #ruby
sayan has joined #ruby
tommyvyo has quit [Quit:]
timkohrumel has joined #ruby
banjara has quit [Quit: Leaving.]
coderhut has quit [Quit: Page closed]
banjara has joined #ruby
banjara has quit [Client Quit]
thams has quit [Quit: thams]
banjara has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
Aaaarg has joined #ruby
harrymoreno has quit [Ping timeout: 264 seconds]
harrymoreno_ has joined #ruby
athst has quit [Quit: athst]
tagrudev has joined #ruby
generalissimo has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
n_blownapart has joined #ruby
d3c has joined #ruby
pyrac has quit [Quit: pyrac]
banjara has quit [Quit: Leaving.]
timonv has quit [Remote host closed the connection]
<n_blownapart>
could anyone explain how result is used here? I'm getting an error: undefined local variable or method `result'. thanks http://pastie.org/8061972
amh345 has quit [Quit: amh345]
banjara has joined #ruby
d3c has quit [Client Quit]
<macmartine>
n_blownapart result isn't defined
akells` has quit [Remote host closed the connection]
<Hanmac>
i think he miss the =
<lucianosousa>
n_blownapart: just follow Hanmac tip ;)
Kar- has joined #ruby
<n_blownapart>
macmartine: Hanmac that takes a = ? thanks all + lucianosousa
wargasm has quit [Read error: Connection reset by peer]
<n_blownapart>
dang it was an error in the book example. driving me nuts ... thanks Hanmac macmartine lucianosousa
sarkis has quit [Ping timeout: 268 seconds]
mahmoudimus has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
serp` has joined #ruby
<pontiki>
the way ruby read line 2 (as posted) is "call the method result with the argument assert(expected == actual)
girija has joined #ruby
Apane has quit [Ping timeout: 256 seconds]
<n_blownapart>
pontiki yeah you mean as it is incorrectly on the pastie without the = right?
subbyyy has quit [Ping timeout: 264 seconds]
banjara has quit [Client Quit]
apeiros has quit [Read error: Operation timed out]
banjara has joined #ruby
<pontiki>
yes
jkline has joined #ruby
pyrac has joined #ruby
<n_blownapart>
pontiki: thanks cheers
<pontiki>
you could also save a local variable in that construction
<lenswipe_dev>
that said the stackoverflow post has info in it like what version of ruby i have
<lenswipe_dev>
etc
nes1983 has quit [Remote host closed the connection]
<popl>
so that's two URLs you want people to visit? :)
predator117 has joined #ruby
LennyLinux has joined #ruby
<bnagy>
oh wow.. possibly just wrong headers..
<bnagy>
or possibly something awful
<lenswipe_dev>
popl, it's two URL's that have the answers to questions like "what version of ruby are you running" and "can we see the output"
<lenswipe_dev>
popl, I could paste it all in here if you would like....I suspect you wouldn't though
<popl>
Personally I don't care, but you might get banned for it.
<popl>
I don't know how strict the people here are.
<lenswipe_dev>
hmm
<lenswipe_dev>
so if you don't care why bring it up
<bnagy>
paste sites are fine
Al__ has joined #ruby
<bnagy>
we prefer gist or pastie ( no ads )
rdark has quit [Ping timeout: 268 seconds]
<lenswipe_dev>
ah ok
<bnagy>
lenswipe_dev: does this thing work on jruby by any chance?
<bnagy>
cause that's an easy fix :/
<CFUDev>
anybody please to help me ?
<popl>
CFUDev: People saw your question. If someone wants to or can help they will.
<lenswipe_dev>
bnagy, how do you mean?
rdark has joined #ruby
<lenswipe_dev>
bnagy, I haven't tried it - how do I try it
timmow has quit [Read error: Connection reset by peer]
<bnagy>
lenswipe_dev: jruby.org
<bnagy>
they have an x64 installer with jre bundled
timmow has joined #ruby
<lenswipe_dev>
bnagy, are you asking me to test it in jruby or are you asking me if I'm using it with jruby?
<bnagy>
I guess I'm asking you to test with jruby :)
<lenswipe_dev>
right-o
<lenswipe_dev>
I have netbeans which bundles jruby with it - I'll give it a go under there
<CFUDev>
from those have read my code, is something wrong with it ?
<bnagy>
just be aware that the jruby installer will change your path
<bnagy>
CFUDev: yes, there is
<lenswipe_dev>
see above
yashshah has quit [Read error: Connection reset by peer]
<bnagy>
CFUDev: apparently it doesn't do what you want
danslo has quit [Quit: danslo]
t_p has joined #ruby
<bnagy>
netbeans? :<
yashshah has joined #ruby
<CFUDev>
bhagy: netbeans question is for me ?
<bnagy>
lenswipe_dev: anyway, x64 support on windows MRI is really very new
<lenswipe_dev>
MRI?
<bnagy>
sorry that's the name for 'original' ruby
<bnagy>
Matz' Ruby Interpreter, although it's really KRI these days, cause it was rewritten
<CFUDev>
bnagy: So what do you sugest to do, in order to solve that issue ?
<CFUDev>
do you have any solution ?
<bnagy>
CFUDev: nope
<CFUDev>
:/
Zeeraw has joined #ruby
Layke has joined #ruby
Zeeraw has quit [Client Quit]
banjara has quit [Quit: Leaving.]
falood_ has quit [Ping timeout: 252 seconds]
banjara has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
Zeeraw has joined #ruby
<bnagy>
lenswipe_dev: short version, MRI needs a C build chain, which they used to use mingw32 for, but on x64 they didn't have a good chain for some of the critical libs, so it took ages to sort out
<lenswipe_dev>
right
<bnagy>
in the meantime I got bored and just switched to jruby for all windows stuff
<lenswipe_dev>
but on jruby you think...ok let's see
yashshah has joined #ruby
jimg has joined #ruby
harrymoreno has quit [Ping timeout: 264 seconds]
<bnagy>
some C extensions work, but not all, but there's an FFI port for almost everything
banjara has quit [Client Quit]
banjara has joined #ruby
harrymoreno has joined #ruby
wudofyr___ has quit [Remote host closed the connection]
wudofyr___ has joined #ruby
davout has quit [Remote host closed the connection]
Spami has joined #ruby
Spami has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
emergion has joined #ruby
filipe_ has quit [Ping timeout: 240 seconds]
CFUDev has quit [Quit: Hard work pays off in the future, laziness pays off now]
timonv has joined #ruby
klaas has joined #ruby
admin0 has quit [Ping timeout: 252 seconds]
<lenswipe_dev>
bnagy, trying to figure out how to get a jruby console
kunday has joined #ruby
<phrearch>
when writing tests, should i use seperate tc_class files for each class test?
<bnagy>
lenswipe_dev: just use jruby instead of ruby at the cmd prompt
<phrearch>
like i have lib/rover.rb and lib/basestation.rb , should i place test files for both in tests/tc_basestation.rb and tests/tc_rover.rb ?
<phrearch>
and if so, whats the common way to run all tests in a directory?
<lenswipe_dev>
bnagy, it was installed by netbeans - will that make a different?
<lenswipe_dev>
'jruby' is not recognized as an internal or external command,
<lenswipe_dev>
operable program or batch file.
<lenswipe_dev>
apparently that's a yes
<bnagy>
I have no idea, I wouldn't trust netbeans as far as I could spit it though
<lenswipe_dev>
T_T
davout has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
joonty has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
LennyLinux has quit [Remote host closed the connection]
dfdf has quit [Remote host closed the connection]
rrecio has joined #ruby
kenmaz has quit [Remote host closed the connection]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
eka has joined #ruby
_Andres has joined #ruby
richiebkr has quit [Quit: richiebkr]
snearch has joined #ruby
wildcard0 has joined #ruby
<phrearch>
anyone know of a common way to run multiple test files from one command?
sevenseacat has quit [Quit: Leaving.]
filipe_ has joined #ruby
rrecio has quit [Ping timeout: 256 seconds]
kunday has quit [Quit: kunday]
<lenswipe_dev>
bnagy, heh - the install just died in jruby too
gyre007 has joined #ruby
`MArceLL` has quit [Read error: Connection reset by peer]
<tjr_>
just a cuestion. I'm user divmod to know if certian division has a rest or not. If has rest I want to get the result + 1. Ej 10.divmod(8) = [1, 2] so I want to get 2
<tjr_>
is there a way to do this in a simple way ¿
gsvolt has joined #ruby
_Renegade has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
RORgasm has quit [Read error: Connection reset by peer]
RORgasm_ has joined #ruby
ananthakumaran has joined #ruby
juarlex has joined #ruby
w0rldmaker has quit [Ping timeout: 268 seconds]
devoldmx has joined #ruby
filipe_ has quit [Ping timeout: 240 seconds]
jds has quit [Ping timeout: 252 seconds]
timkohrumel has quit [Ping timeout: 264 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
<workmad3>
ericwood: HATEOAS FTW!!!!
Davey has joined #ruby
<ericwood>
is that a word?
<workmad3>
ericwood: hypermedia as the engine of application state
* ericwood
cringes
<workmad3>
:D
Zai00 has joined #ruby
<ericwood>
I hate complicated terms/definitions for simple concepts
timkohrumel has joined #ruby
<ericwood>
and people sitting around nitpicking about what those terms/definitions really mean when nobody really cares
banjara has quit [Quit: Leaving.]
<workmad3>
ericwood: it's a wonderful concept... all of your API responses return hypermedia formats that contain links to the next valid states in your application!
banjara has joined #ruby
_br__ has joined #ruby
<ericwood>
I know what those words mean, but not in that order :P
<workmad3>
ericwood: what? you mean you don't want a lovely religious debate about whether WEBDAV is REST or not? :)
<tommylommykins>
does anyone know much about ruby's tail recursion?
<workmad3>
ericwood: btw, I know exactly what you mean... I can sit around and nitpick about all this stuff, and sometimes it's useful to really pin down the meaning of something
dhruvasagar has joined #ruby
<tommylommykins>
having enabled it, it doesn't seem to occur in places where I might expect it to
banjara has quit [Client Quit]
<yim>
man
banjara has joined #ruby
<yim>
dreamweaver is so nice
<yim>
especially the new one
<pipework>
Haha.
<ericwood>
workmad3: I won't debate that, I just hate complicated things sometimes :P
<pipework>
yim: Oh man, that's a good one.
moos3 has joined #ruby
<workmad3>
ericwood: but end of the day, my *actual* viewpoint is much more pragmatic and along the lines of 'yeah, this stuff is useful at times, but don't just shove it in because it's 'right', give it some thought :)
Judge has quit [Remote host closed the connection]
<yim>
pipework:
<ericwood>
that reflects my views on TDD
<pipework>
tommylommykins: I don't believe that ruby has tail call optimization.
<yim>
pipework: you should really check it out
<tommylommykins>
pipework: it does :)
<pipework>
Which isn't 1:1 with tail recursion.
<ericwood>
yim: we won't
<yim>
ericwood: lol
<ericwood>
I'm serious
Mon_Ouie has joined #ruby
<tommylommykins>
it just doesn't seem to do TCO in all places where I think it colud
<ericwood>
everyone here is forbidden from using dreamweaver
<yim>
ericwood: lol I know
<workmad3>
ericwood: awww :(
<ericwood>
sorry
<ericwood>
I don't make the rules
<workmad3>
ericwood: yim was making some convincing arguments!
<ericwood>
lol
<pipework>
tommylommykins: I'm not sure.
<yim>
dreamweaver has a built in sftp!
<workmad3>
ericwood: which was making me forget that even my *mother* was cursing dreamweaver just last week
<pipework>
tommylommykins: Ruby itself doesn't perform it, but it doesn't not either.
banjara has quit [Client Quit]
<ericwood>
pipework: now it's crystal clear :P
banjara has joined #ruby
<workmad3>
yim: if you're still deploying your sites over FTP (even SFTP) you're Doing It Wrong(tm)
<pipework>
ericwood: Which is crystal clear?
<yim>
workmad3: that is the only way I know lol
<pipework>
yim: I'd say then those are more like beginner level tools.
<yim>
pipework: I am quite a beginner
<workmad3>
ericwood: pipework is referring to the fact that (unlike python) ruby implementations are not prohibited from implementing TCO if they so desire
bobbyz has quit [Ping timeout: 246 seconds]
<pipework>
Pros just ssh pipe a patch file and patch the application live.
<ericwood>
workmad3: ah okay
<yim>
I tried using sublime
<tommylommykins>
pipework: ruby really has TCO ;)
<workmad3>
it's possible that MRI has a compile option to enable some TCO, but iirc it's not on by default which probably means it's still experimental
<ericwood>
pipework: I use NC to manually speak FTP
<tommylommykins>
honestly, it does
<yim>
all it is is a text editor
<pipework>
tommylommykins: Show me. :)
<yim>
then coda
<yim>
which seem restricted
<yim>
textmate is quite nice
<ericwood>
Vim
tkuchiki has quit [Remote host closed the connection]
<pipework>
yim: It's a WYSIWYG editor.
<ericwood>
VimVimVimVim
<pipework>
I'm a vim guy.
timkohrumel has quit [Remote host closed the connection]
* workmad3
feels at home
<yim>
I never got around using vim
<pipework>
workmad3: And inside ruby, you may be able to implement it as well.
<yim>
quite intimidating for a noob
<pipework>
yim: Don't worry, enjoy the tools you like, but you'll have a lot more fun with better tools later.
philcrissman_ has quit [Remote host closed the connection]
<pipework>
workmad3: What, no.
<pipework>
I was trying to outhipster you.
<workmad3>
pipework: meh
<pipework>
You win because you out-apatheticated me. :(
<workmad3>
do people still care if you're hipster or not?
theRoUS has quit [Quit: Leaving]
<ericwood>
yes
<ericwood>
it means the world to me
<pipework>
Ask the trees.
<workmad3>
pipework: the trees suck
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
<workmad3>
pipework: they're real assholes
<pipework>
workmad3: You didn't even take the time to realize the zen in that. :(
<workmad3>
pipework: they keep on telling me to not burn things
<yim>
So what is a good setup for mac
<workmad3>
yim: ubuntu </troll>
<yim>
Sublime text 2 + transmit + terminal
<yim>
lol
<pipework>
yim: My condolences.
<pipework>
tmux, vim, git, at least.
<pipework>
For me, that is. :(
<ericwood>
iTerm2 + MacVim + Chrome
filipe_ has joined #ruby
<yim>
yeah
<yim>
people keep saying git
<ericwood>
that's pretty much all I use to do my job
* tommylommykins
wonders if anyone else uses Netbeans for Ruby? :D
bobbyz has joined #ruby
<ericwood>
oh and git
<yim>
but i don't know what that is
<yim>
nor how to use it
<workmad3>
iTerm2 + vim + chrome + git + oh-my-zsh
<workmad3>
yim: it's source control
guiocavalcanti has quit [Remote host closed the connection]
* tommylommykins
wonders if he gets to be the most hipster if he's the only one who uses netbeans :D
<ericwood>
tommylommykins: one of our senior devs did for a long time...he's an amazing dev, too, it was so confusing
<workmad3>
yim: do you at least know how to use source control?
<yim>
what makes iterm2 different than the oem terminal on osx?
<workmad3>
tommylommykins: nope... netbeans is java
LennyLinux has quit [Remote host closed the connection]
<yim>
no
<yim>
I don't know any of that bro
<workmad3>
tommylommykins: java == not hipster
guiocavalcanti has joined #ruby
<hoelzro>
yim: iterm2 is far superior to Terminal.app
<ericwood>
yim: it doesn't suck, lots of really nice features
<tommylommykins>
D:
threesome has quit [Ping timeout: 246 seconds]
<ericwood>
it's configurable out the ass
<yim>
interesting
Zeeraw has quit [Quit: Computer has gone to sleep.]
<workmad3>
plus the keyboard commands to switch terminal windows are non-sucky :)
<ericwood>
yep
<ericwood>
and you can put tabs at the bottom!!!
<ericwood>
also, the hotkey window!
<yim>
for a noob like me
<yim>
don't know if that would be beneficial
<ericwood>
yim: just do whatever you want
<yim>
at least for now
<ericwood>
you'll want some of its features later one
<ericwood>
*on
<workmad3>
the only reason I've never gotten around to seriously using tmux is because I use iTerm2
<yim>
I think I might just end up coding coda for now
jprovazn has quit [Quit: Leaving]
<ericwood>
workmad3: if you're not working remotely, tmux gets in the way; especially when iterm2 does splits natively...
banjara has quit [Quit: Leaving.]
ctooley has joined #ruby
<yim>
dreamweaver is a little bit too clunky
<ericwood>
so I only use tmux for remote work
<ericwood>
screen sux, tmux 4 lyfe
Lubinski has joined #ruby
zigomir has quit [Quit: zigomir]
banjara has joined #ruby
<workmad3>
ericwood: I turn on ssh connection sharing and just use multiple windows
<ericwood>
oh interesting
<ctooley>
How do I inject a path in front of the ruby version of the class path so I can test out a development version of code without overriding the installed version of code.
<hoelzro>
(connection sharing)++
<workmad3>
ericwood: with zsh able to tab-complete my ssh config short-names
<hoelzro>
I still prefer tmux on remote machines, though
DrShoggoth has quit [Quit: Leaving]
<ctooley>
I unfortunately only have one server I can test this code on
banjara has quit [Client Quit]
<ericwood>
workmad3: yeah, I love zsh
<pipework>
I like having a client and remote tmux. I just go one deeper whenever I need.
dhruvasagar has quit [Read error: Operation timed out]
<ericwood>
workmad3: I have the coolest zsh setup for vim mode
guiocavalcanti has quit [Ping timeout: 264 seconds]
blaxter_ has joined #ruby
<workmad3>
ericwood: oh yeah, alfred
blaxter_ is now known as blaxter
<workmad3>
ericwood: that's pretty important on mac, IMO :)
<ericwood>
workmad3: I just updated to alfred2.0 so I have to redo all of my custom plugins :\
boblu has quit [Read error: Operation timed out]
<pipework>
I use alfred for sure.
<tjbiddle>
Actually - grep just finished. May have it, but if anyone else knows just in case I'm going down the wrong path feel free to chime in :-)
<workmad3>
yim: btw, don't pay too much attention to us all comparing our various geek creds :)
<ericwood>
I need to start taking advantage of some of the more advanced features
burlyscudd has quit [Quit: Leaving.]
<Mon_Ouie>
tommylommykins: Can you show examples where it doesn't perform TCO?
<pipework>
I also use Dash.
<workmad3>
tjbiddle: find ~/.rvm -name client.rb
<ericwood>
tjbiddle: do "which ruby" and check out the rdoc directory on the path it points to
<ericwood>
or that
<workmad3>
tjbiddle: or maybe xmlrpc/client.rb (not sure if the -name command can take directory names like that)
Maniacal has quit [Remote host closed the connection]
<tommylommykins>
Mon_Ouie: sure, I'll see if I can cook up an example
<Mon_Ouie>
I also wonder why it's off by default (maybe because of the loss of debugging informations?)
jesly1 has joined #ruby
andikr has quit [Remote host closed the connection]
<workmad3>
ericwood: I'm not enough of an alfred poweruser to have custom plugins
<ericwood>
me either
<tjbiddle>
ericwood: workmad3 - Thanks for confirming :-) - Was in ~/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/xmlrpc/client.rb (Assuming I'm editing the right one).
<ericwood>
I cannot live without the clipboard history, though
miskander has joined #ruby
<pipework>
ericwood: With what?
<ericwood>
alfred
<ericwood>
it's a powerpack feature, and it's the greatest thing in the world
<ericwood>
especially the snippets
<pipework>
Oh powerpack.
<ericwood>
(╯°□°)╯︵ ┻━┻
<ericwood>
worth every penny, but I bought it a long time ago when it was cheaper
alex__c2022 has joined #ruby
banjara has quit [Quit: Leaving.]
<yim>
workmad3: of course, I started ignoring everything once vim was mentioned :)
falkoner has joined #ruby
<tommylommykins>
hmm, suddenly there's no TCO :s
banjara has joined #ruby
jds has joined #ruby
falkoner has left #ruby [#ruby]
Lubinski has quit [Quit: Leaving]
ctooley has quit [Ping timeout: 248 seconds]
nezumi has quit [Read error: Operation timed out]
Haoc has joined #ruby
Lubinski has joined #ruby
ner0x has quit [Ping timeout: 264 seconds]
<workmad3>
yim: grab that prag bookshelf book though... it's a great intro to version control for beginners
cofin has quit [Quit: cofin]
<workmad3>
yim: and you *need* version control... it's one of the few absolutes in development, IMO
timkohrumel has joined #ruby
<workmad3>
it doesn't have to be distributed... but if you can't roll back your work to an older version safely, you're crippling yourself
Lubinski has quit [Client Quit]
banjara has quit [Client Quit]
<pipework>
tommylommykins: Thanks for pointing out the config though, that's nifty.
banjara has joined #ruby
banjara has quit [Client Quit]
<yim>
workmad3: understood
banjara has joined #ruby
<yim>
workmad3: btw, I am not trying to become a full blown programmer but just want to know the concept of it
<yim>
workmad3: my focus is on advertising but we do work with plenty of analytical tools that I would like to comprehend
<workmad3>
yim: version control is useful even outside programming
`MArceLL` has joined #ruby
<tommylommykins>
Mon_Ouie: This seems to be the smallest example I can concoct
<tommylommykins>
I would expect TCO to occur on that
<workmad3>
yim: you probably do some form of version control already, such as making a copy of a file, then making a couple of changes that you aren't sure of
taion809 has quit []
<tommylommykins>
TCO does occur if foo is defined as "def foo; foo end"
<ericwood>
I can't live without version control
<ericwood>
I'd literally die without it
<workmad3>
ericwood: wow, does each beat of your heart get commited to a git repo in your brainstem?
<ericwood>
yes
<workmad3>
ericwood: and removing version control would mean your brainstem vanishes and you die?
<ericwood>
basically
<workmad3>
cool
<ericwood>
not the best setup, really
* workmad3
tries to delete the central git repo
<workmad3>
drats, it's in version control :(
<pixelgremlins>
can someone help me w/ a regular expression? I need to pull New Price: $128.98 out of a doc, remove the New Price: $, and put 128.98 into newprice as a float
<ericwood>
I'm like voldemort, my soul lives in various git repos around the world
<pixelgremlins>
well, see the thing is - - the 128.98 is unknown.. ie it will be different depending on what the page loads the constant is: New Price: $
kadoo has joined #ruby
thesubroot has joined #ruby
<pixelgremlins>
that was just an example
cofin has joined #ruby
<ericwood>
moar examples plz
_maes_ has joined #ruby
Lubinski_ has joined #ruby
<pixelgremlins>
html = "Title: The Essential Guide to Primary Care Procedures<br>Author(s): Mayeaux, E.J.<br>I
<pixelgremlins>
SBN: 9780781773904<br>List Price: $134.99<br>New Availability: Usually Ships in 3-5 Busine
<pixelgremlins>
ss Days<br>New Price: $128.98<br>"
<thesubroot>
I'm making a script where it should evaluate some lines then wait for the user to type some keys, get the that value and then proceed the rest of the script. How to do that?
Lubinski_ has quit [Client Quit]
Nisstyre has quit [Quit: Leaving]
<pixelgremlins>
That's what the api gives me, I need to grab the new price
tomzx_mac has joined #ruby
miskander has quit [Quit: miskander]
generalissimo has quit [Remote host closed the connection]
<ericwood>
my regex will grab any and all prices
kadoo has quit [Client Quit]
jasonsmr has joined #ruby
<Mon_Ouie>
tommylommykins: Thanks. That is odd, because this code does work: http://pastie.org/8063337
<jasonsmr>
hello ruby channel.
fmcgeough has joined #ruby
Lubinski has quit [Disconnected by services]
Lubinski_ has joined #ruby
<Mon_Ouie>
But if you replace the call to bar with a call to foo, it doesn't do it anymore
<jasonsmr>
Question , how can I change a configuration file for a ruby application? 1.) Easly 2.) Repetivly
<tommylommykins>
thesubroot: the simplest code is something along the lines of "loop {process gets}", where process is some function that you defined yourself
binaryplease has joined #ruby
<ericwood>
jasonsmr: what kind of config file?
<ericwood>
we need moar infos plz
<pixelgremlins>
^^ that is the api -- there's a New Price, Used Price, and Ebook Price .. -- I need to search for the New Price line, and grab the price after New PRice put that in newprice variable, THEN do the same for used price: into a usedprice variable, and ebook price
<pipework>
ericwood: Oh it's awesome to see you use pianobar too!
<ericwood>
pipework: another thing I recommend: running pianobar in iterm2's hotkey window
jesly1 has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 258 seconds]
<ericwood>
so you can get to it easily from anywhere
<ericwood>
pipework: pffft I have rubular! :P
geggam has joined #ruby
<pipework>
ericwood: Ah, I usually stick it in vim as window 1, pane 1.
<pipework>
s/vim/tmux/ sorry
angusigu1ss has quit [Ping timeout: 264 seconds]
<ericwood>
lol I was about to ask if you used conqueterm :P
<pipework>
ericwood: It's a polyglot tool though.
<pipework>
I like using xterm, but iterm2 on mac.
<ericwood>
btw you can run vim inside of vim using conqueterm
<ericwood>
and you can run vim inside of that vim
<pipework>
I once spent a while using vim inside emacs.
* tommylommykins
will have to brush up on his C and see if he can make sense of the ruby source code that implements TCO
<pipework>
That was pretty crazy.
<thesubroot>
tommylommykins: I didn't get what you mean. My script is in two parts:
yekta has quit [Quit: yekta]
<thesubroot>
evaluate the 1st part
carloslopes has joined #ruby
<thesubroot>
then wait for keystroke
<thesubroot>
get it
<thesubroot>
and then evaluate the 2nd part
bigoldrock has joined #ruby
<thesubroot>
tommylommykins: how to do it?
burlyscudd has joined #ruby
<tommylommykins>
thesubroot: that's up to you, but the general pattern will be more or less what I gave you. You just have to fill in the blanks
robscomputer has joined #ruby
girija has joined #ruby
<tommylommykins>
(I know there's a lot of blanks :s)
LennyLinux has joined #ruby
poseid has quit [Quit: Leaving.]
baroquebobcat has joined #ruby
banjara has quit [Quit: Leaving.]
kpshek has joined #ruby
<Mon_Ouie>
It's weird: the two functions have the same bytecode, except for the name of the methods being called and the tailcall flag being omitted. http://pastie.org/8063393
cmarques has quit [Ping timeout: 248 seconds]
<Mon_Ouie>
or rather methods*
banjara has joined #ruby
bigoldrock has quit [Ping timeout: 268 seconds]
ntus1017 has joined #ruby
ctooley has joined #ruby
jesly has joined #ruby
<ctooley>
ugh, didn't know I'd been disconnected.
Neener54 has joined #ruby
cj3kim has joined #ruby
<ctooley>
I've got a rubygem installed and I have a new copy of the software which I'd like to test out on the same machine. How do I get ruby to use a path to the local directory structure instead of finding it in gems?
ckrailo has joined #ruby
persand has quit [Quit: persand]
cj3kim has quit [Read error: Connection reset by peer]
rickmasta has quit [Quit: Leaving...]
pootler_ has joined #ruby
sayan has quit [Read error: Connection reset by peer]
pootler__ has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
carloslopes has quit [Remote host closed the connection]
jesly has quit [Client Quit]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
ferdev has quit [Ping timeout: 252 seconds]
ferdev has joined #ruby
ttt has joined #ruby
ybart has quit [Quit: ybart]
allanm__ has quit [Read error: Connection reset by peer]
banjara has quit [Client Quit]
banjara has joined #ruby
railsbros_dirk has quit [Ping timeout: 264 seconds]
banjara has quit [Client Quit]
ybart has joined #ruby
banjara has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
<jasonsmr>
With info reguarding the ruby program fog.. is there a simple method of changing the configuration file of these ruby programs to include a diffrent configuration for diffrent needs?
<jasonsmr>
Rather, I would like to develop a method for starting the ruby program fog* & with starting it pass a newly created configuration file to it.
aganov has quit [Quit: aganov]
<jasonsmr>
Method of newly created configuration file a user prompt...
<jasonsmr>
How do I do this?
pyrac has quit [Quit: pyrac]
<ctooley>
jasonsmr, are you talking about fog the cloud library set for ruby?
ybart has quit [Client Quit]
<jasonsmr>
yes sir
<ctooley>
That's a library set, not a program.
<ericwood>
gem install cloud
vlad_starkov has joined #ruby
<jasonsmr>
I have multiple AWS accounts, and I was thinking that there has to be a better way to sitch between them than rewriting the fog config
Criztian has quit [Remote host closed the connection]
Solnse has joined #ruby
<ctooley>
jasonsmr, you can override the credentials when you instantiate the object creating multiple objects to talk to your multiple AWS accounts.
binaryplease has quit [Ping timeout: 268 seconds]
bradhe has joined #ruby
<fredjean>
jasonsmr: I believe that fog can be configured via environment variables.
<fredjean>
Or at least, environment variables can be used to configure fog.
burlyscudd has quit [Quit: Leaving.]
fomatin has joined #ruby
richiebkr has joined #ruby
<jasonsmr>
well heres my existing fog config it works with only one account >> http://sprunge.us/DiAM the accounts are changed now of course
<fredjean>
I normally set AWS_ACCESS_KEY_ID to the access key, and reach out to it in my program viaENV['AWS_ACCESS_KEY_ID']
devoldmx has joined #ruby
<jasonsmr>
fredjean: I have heard that, but I guess I dont see how its more simple
<fredjean>
It's more flexible… Not more simple.
richiebkr has quit [Client Quit]
<jasonsmr>
I could see doing in terminal before running fog ; # set EN_VAR
ElderFain_ has joined #ruby
<fredjean>
Are you using RVM or RBENV?
JumpMast3r has quit [Quit: JumpMast3r]
<jasonsmr>
I suppose your right ^^ I just never could get fog to grab ENV VARS from my ~.bashrc yet.. I must be doing something wrong
banjara has quit [Quit: Leaving.]
<jasonsmr>
I was tying to use RVM
arturaz has quit [Ping timeout: 268 seconds]
banjara has joined #ruby
bigoldrock has joined #ruby
<fredjean>
You can set variables in the .rvmrc file for your project.
apeiros has quit [Remote host closed the connection]
<fredjean>
That helps with not having to configure it manually with each call.
<jasonsmr>
my instructions said it was FOG_RC
binaryplease has joined #ruby
sarkis has joined #ruby
niklasb has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
<fredjean>
Another approach would be to pass the path to a configuration file that holds the configuration.
ElderFain has quit [Ping timeout: 260 seconds]
<fredjean>
In this case, the program would read the file and configure itself based on the contents of the file.
richiebkr has joined #ruby
<fredjean>
Ruby already has a great way to handle this via YAML.
<jasonsmr>
fredjean: thats another option I saw but havent tried yet
eliqtrope has joined #ruby
ElderFain has joined #ruby
falood has quit [Remote host closed the connection]
harrymoreno_ has joined #ruby
<eliqtrope>
hi all
<jasonsmr>
yea, I dont have the RVM installed or configured
kasper has quit [Read error: Connection reset by peer]
redgirl has joined #ruby
kasper has joined #ruby
<havenwood>
atmosx: Dynamic linking in OS X can be a pain, especially with it using readline and openssl alternatives. I think the idea was making it so dead simple you can drop it and get to coding.
_rrecio has joined #ruby
lyanchih has quit [Quit: lyanchih]
<havenwood>
atmosx: No prob to compile and link, but nice to have binaries install option!!
angusiguess has quit [Ping timeout: 255 seconds]
kasper has quit [Read error: Connection reset by peer]
kasper has joined #ruby
tbrock has quit [Client Quit]
v0n has quit [Read error: Operation timed out]
rrecio has quit [Ping timeout: 260 seconds]
<atmosx>
havenwood: yeap. I see what you mean
Voodoofish430 has joined #ruby
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
richiebkr has joined #ruby
<atmosx>
havenwood: I'm having a hard-time to keep up with all these abstraction levels anyway
Appineer has quit [Remote host closed the connection]
crazymykl has joined #ruby
<havenwood>
atmosx: Also, RVM is automating building of a variety of binaries since Ruby doesn't provide binaries like JRuby, etc.
kasper_ has joined #ruby
num74 has quit [Quit: leaving]
kasper has quit [Read error: Connection reset by peer]
<atmosx>
havenwood: does rvm provide jruby?
<havenwood>
atmosx: Yup.
<atmosx>
nice
relix has joined #ruby
<havenwood>
atmosx: RVM supports building a ton of Rubies, even Topaz and mruby from head if I recall.
threesome has joined #ruby
<atmosx>
jruby targets mostly embedded systems right?
iamjarvo has quit [Quit: iamjarvo]
lsmola has quit [Ping timeout: 246 seconds]
<atmosx>
hm
<havenwood>
atmosx: Are you thinking mruby?
<atmosx>
yes
<atmosx>
mruby
<atmosx>
I wonder if it would run on a bifferboard
<havenwood>
atmosx: I was playing with mruby, and compiled a FizzBuzz to C-bytecode then wrapped it to be a standalone executable that doesn't need mruby or Ruby to run: https://github.com/havenwood/mruby-fizzbuzz
<atmosx>
have to go home take a shower
tbrock has joined #ruby
<atmosx>
havenwood: that's an interesting idea
<havenwood>
400k self-exectuable FizzBuzz... now to run it on my toaster.
kadoo has joined #ruby
<havenwood>
atmosx: Actually wrote a little Ruby script to automate the process, since it was a bit annoying.
kadoo has quit [Max SendQ exceeded]
kadoo has joined #ruby
Shirakawasuna has joined #ruby
kadoo has quit [Client Quit]
soulisson has quit [Read error: Operation timed out]
<atmosx>
hm
<atmosx>
seems interesting
<pipework>
Does it?
davout has quit [Remote host closed the connection]
TheBatman has left #ruby [#ruby]
devoldmx has joined #ruby
leonardocabeza has joined #ruby
nezumi has joined #ruby
<atmosx>
depends on the case scenario
<atmosx>
I'm off
<atmosx>
bb
atmosx has quit [Quit: And so the story goes…]
kasper_ has quit [Remote host closed the connection]
ferdev has quit [Quit: ferdev]
pothibo has quit [Quit: pothibo]
arya_ has quit []
fomatin has quit [Quit: Computer has gone to sleep.]
Maior has joined #ruby
<jasonsmr>
hi Any hints about your YAML ruby configuration handles?
richiebkr has quit [Quit: richiebkr]
burlyscudd1 has quit [Read error: Operation timed out]
<jasonsmr>
I was* thinking about using a bash script and array values to auto rewrite my configuration :P no fun
<Maior>
I've got a vendor-provided Ruby app I'm trying to `bundle install` in on my build server; this fails because my gem cache needs me to be root to write there; is there a way I can do this without being root? (I've missed the point of bundler slightly, I feel, if I need to be root to install things with it)
jeffreylevesque_ has quit [Read error: Connection reset by peer]
kraljev4 has joined #ruby
<kraljev4>
Hello, I have a question
<kraljev4>
what is preferred in ruby
kevinykchan has joined #ruby
<kraljev4>
cond && T || F
cmarques has joined #ruby
<kraljev4>
cond ? T : F
timkohrumel has joined #ruby
pranny has joined #ruby
timkohrumel has quit [Read error: Connection reset by peer]
<kraljev4>
first or the second? What are the most notable differences?
pranny has quit [Client Quit]
<Hanmac>
second one does makes more sence
<tommylommykins>
usually the latter, since the ternary syntax is explicity designed for the purpose
timkohrumel has joined #ruby
pyrac has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
<tommylommykins>
although you're also free to do if cond then T else F end \o/
<tommylommykins>
but that's a bit more verbose
girija has joined #ruby
<kraljev4>
are there any (dangeroud) differences between the two
<havenwood>
Maior: Are you using the apt-get Ruby package?
<kraljev4>
thanks tommy for your contrib, also.
bionoid has joined #ruby
* superscott[8]
didn't even know that first one is the same way of writing the second one
<havenwood>
Maior: I'm assuming all gem installs require sudo with your current setup, not just bundler?
nezumi has quit [Ping timeout: 240 seconds]
<havenwood>
Maior: Depending on where you've set the gem install directory, you may or may not be required to sudo. I certainly prefer to set it up such that I don't sudo.
<havenwood>
Maior: Just an aside, but be sure to `bundle --deployment` in production for local vendor.
nari has quit [Read error: Connection reset by peer]
malcolmva has joined #ruby
nari has joined #ruby
kevinykchan has quit [Ping timeout: 240 seconds]
DanKnox is now known as DanKnox_away
<popl>
superscott[8]: the truth table is equivalent
amedeiros has joined #ruby
soulisson has joined #ruby
apod has quit [Quit: apod]
<tommylommykins>
popl: truth table?
browndawg has joined #ruby
DanKnox_away is now known as DanKnox
dagobah has quit [Remote host closed the connection]
<tommylommykins>
popl: I think T is just shorthand for a consequent phrase?
<tommylommykins>
-phrase +expression/block/code
<superscott[8]>
popl: yeah, didn't know you could do that, but makes sense kinda. i read it at first as condition AND true OR false
<kraljev4>
cond && 'yes' || 'no'
<kraljev4>
sure
<kraljev4>
3 == 4 && 'yes' || 'no'
richiebkr has quit [Quit: richiebkr]
<superscott[8]>
which didn't make sense in my brain, but makes sense now that i see the light
jibi has joined #ruby
<terrellt>
kraljev4: Ternary operator's easier to read, go with that.
<Maior>
havenwood: I'm using Debian Wheezy's Ruby, yes; all gem installs require sudo, I'd really rather this wasn't the case
bradhe has quit [Remote host closed the connection]
CFUDev has quit [Quit: Pull the pin and count to what?]
<Maior>
havenwood: ...however if I `bundle install --deployment && bundle package`, yeah, success
bradhe has joined #ruby
<havenwood>
Maior: Good solution, best to use --deployment. :)
djbkd has joined #ruby
<kraljev4>
there is a danger:
<kraljev4>
irb(main):004:0> 3 == 3 && nil || 'no'
<kraljev4>
=> "no"
kevinykchan has joined #ruby
<kraljev4>
irb(main):005:0> 3 == 3 ? nil : 'no'
<kraljev4>
=> nil
<superscott[8]>
Maior: (you could use rvm, or chruby, or rbenv if you don't want to sudo gems)
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
fomatin has joined #ruby
Dave is now known as Guest21112
woolite64 has joined #ruby
ner0x has joined #ruby
timonv has joined #ruby
<popl>
tommylommykins: Do people use consequent phrase to refer to that sort of thing? I've only heard it in music theory classes.
<Maior>
havenwood: superscott[8]: cheers
<Maior>
thought bundler was the tool for avoiding root-gems and rbenv was just for switching ruby versions; thanks for the enlightenment
<tommylommykins>
popl: probaby not. I was having a brainfart trying to think of the proper word
timmow has quit [Ping timeout: 240 seconds]
<popl>
tommylommykins: anyways, I mean if you draw out the truth table for the ternary operator versus && || it will be equivalent
ghr has quit [Quit: Computer has gone to sleep.]
bradhe_ has joined #ruby
<tommylommykins>
ah
bradhe has quit [Read error: Connection reset by peer]
chrisja has joined #ruby
leonardocabeza has quit [Quit: Leaving]
<havenwood>
but it won't be equiv as kraljev4 pointed out when nil or false are between && and ||.
bradhe_ has quit [Remote host closed the connection]
leonardocabeza has joined #ruby
brianpWins has quit [Quit: brianpWins]
<havenwood>
And makes you think of && || precedence.
benlieb has joined #ruby
<popl>
d'oh
<popl>
you are correct
<popl>
obviously
Neener54 has quit [Quit: Leaving...]
<kraljev4>
tell me, guys, how do you cope with the heat :) We have 35°C here.
leonardocabeza has quit [Client Quit]
leonardocabeza has joined #ruby
timonv has quit [Remote host closed the connection]
<havenwood>
kraljev4: head away from equator
kevinykchan has quit [Ping timeout: 240 seconds]
jgoss has joined #ruby
jgoss has joined #ruby
jgoss has quit [Changing host]
apeiros has joined #ruby
obs has quit [Quit: Konversation terminated!]
yashshah has quit [Read error: Connection reset by peer]
<popl>
I should not make assertions before coffee. :)
brianpWins has joined #ruby
<popl>
kraljev4: thanks
Appineer has joined #ruby
Appineer has left #ruby [#ruby]
codecop has joined #ruby
rdark has quit [Quit: leaving]
iamjarvo has joined #ruby
bradhe has joined #ruby
camilasan has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Quit: Leaving.]
hadees_ has joined #ruby
JumpMast3r has joined #ruby
hadees has quit [Ping timeout: 264 seconds]
hadees_ is now known as hadees
synthetix has quit [Remote host closed the connection]
Guest21112 has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
x1337807x has joined #ruby
kevinykc_ has joined #ruby
phrearch has quit [Remote host closed the connection]
Doc_X has quit [Remote host closed the connection]
<ShellFu>
hey when using File.new||open in a method, is it proper to close the file at the end of said method? Or will it get closed when the program exits? Im basically concerned about open file pointers sticking around.
leonardocabeza has quit [Quit: Leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
burlyscudd has joined #ruby
<havenwood>
ShellFu: Using a block closes it automatically at block end.
<havenwood>
ShellFu: Hence nice to use a block, otherwise you've got to close it yourself.
Jerematic has joined #ruby
<ShellFu>
havenwood, Understood. I appreciate the input.
carloslopes has joined #ruby
angusiguess has joined #ruby
Maior has left #ruby [#ruby]
<apeiros>
the block also ensures that the file is being closed
sambao21 has joined #ruby
_Renegade has joined #ruby
Mattx has quit [Quit: Leaving]
thesubroot has quit [Quit: thesubroot]
workmad3 has quit [Read error: Operation timed out]
<Hanmac>
ShellFu: you can also look at the directly methods: like File.open(path){|f|f.read} can be replaced with File.read(path)
w0rldmaker has joined #ruby
kevinykchan has joined #ruby
<ShellFu>
ah interesting.
pootler__ has joined #ruby
LennyLinux has quit [Remote host closed the connection]
ChristianS has quit [Excess Flood]
camt has joined #ruby
ChristianS has joined #ruby
athst has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
yacks has quit [Ping timeout: 246 seconds]
w0rldmaker has quit [Ping timeout: 257 seconds]
kevinykchan has quit [Ping timeout: 260 seconds]
Shirakawasuna has quit [Ping timeout: 252 seconds]
<Hanmac>
the interesting point: on an 64bit maschine with flonums, 0.0 has fixed ID but -0.0 does have not ;P
mocfive has joined #ruby
Jerematic has quit [Quit: Leaving]
harrymoreno_ has joined #ruby
mary5030 has joined #ruby
harrymoreno has quit [Ping timeout: 255 seconds]
harrymoreno_ is now known as harrymoreno
adambeynon has joined #ruby
<mary5030>
hi, I need someone to guid me on a problem i have with active record
<r0bgleeson>
Hanmac: just confirming suspicions while reading an article about -0 and +0
<Hanmac>
mary5030: #rubyonrails
<r0bgleeson>
Hanmac: ruby gets a lot of it, for example 1/0
<r0bgleeson>
a lot of it right*
dangerousdave has quit [Read error: Connection reset by peer]
Alina-malina has quit [Quit: Leaving]
dangerousdave has joined #ruby
twoism has joined #ruby
Jerematic has joined #ruby
marcdel has joined #ruby
failshell has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nezumi has joined #ruby
<r0bgleeson>
Hanmac: as far as, the IEEE spec defines that as the right thing to do (return Infinity)
<Hanmac>
r0bgleeson: "1/0" does raise an error, "1/0.0" makes an infinity object ... PS: 0.0 and -0.0 does MAKE a difference, but you cant test easly for that
epta has quit [Ping timeout: 246 seconds]
<r0bgleeson>
Hanmac: oops sorry, yeah, for floats
epta has joined #ruby
<r0bgleeson>
Hanmac: it sounds like it is more of an issue in something like C
mahmoudimus has joined #ruby
<r0bgleeson>
Hanmac: at least ive never had to worry about it before :)
v0n has quit [Ping timeout: 246 seconds]
Alina-malina has joined #ruby
johnmlocklear_ has quit [Ping timeout: 260 seconds]
<Hanmac>
Banistergalaxy: my sfml-ruby binding can draw tiled-tmx files ... so the GameEngine can be started ;P
joesavage has joined #ruby
johnmlocklear_ has joined #ruby
ffio has quit [Quit: WeeChat 0.4.0]
gasbakid has quit [Ping timeout: 264 seconds]
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
sayan has joined #ruby
angusiguess has joined #ruby
kasper has quit [Ping timeout: 255 seconds]
jduan1981 has joined #ruby
nikeita has joined #ruby
<joesavage>
I'm trying to execute a Ruby script from a bash file which runs via cron. The script executes seemingly fine (as 'root' - not advised etc. etc. I know), however this execution doesn't seem to have loaded the gems correctly as the 'json' gem cannot be found even though it's accessible through regular 'root' ssh usage. I think I need to do something in the bash file to set up the correct Ruby gem path for that session, but I'm not sure..
w0rldmaker has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
angusigu1ss has quit [Ping timeout: 241 seconds]
<joelteon>
pi * i?
binaryplease has joined #ruby
<apeiros>
joesavage: compare the env of your cron job and your login shell
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros>
you probably set stuff up in files which are only read by login shells
<Hanmac>
(maybe he is using rvm or similar)
<joesavage>
I am indeed using rvm
vlad_starkov has quit [Remote host closed the connection]
<joesavage>
I'm pretty sure it _is_ an environment issue, however I'm not terribly experienced with these things so I'm not sure how to check the differences in env
<apeiros>
joesavage: google "rvm wrapper"
<apeiros>
or ask in #rvm
cj3kim has joined #ruby
guiocavalcanti has joined #ruby
sambao21 has joined #ruby
<joesavage>
I seem to remember when I experienced this problem previously I just added a line in my bash file to set the environment and then got on with the task -- I know it's not really a long term fix, but it's a pretty specific situation for my server use. Any ideas what kind of thing that might have been?
mikepack has quit [Remote host closed the connection]
wereHamster has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
jonahR has joined #ruby
alvaro_o has joined #ruby
guiocava_ has joined #ruby
LennyLinux has joined #ruby
gasbakid_ has quit [Quit: Quitte]
Zeeraw has joined #ruby
gasbakid has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
fomatin has quit [Quit: Computer has gone to sleep.]
buibex has joined #ruby
buibex has quit [Remote host closed the connection]
slash_ni1k has joined #ruby
slash_ni1k has left #ruby [#ruby]
guiocavalcanti has quit [Ping timeout: 240 seconds]
v0n has joined #ruby
<popl>
joesavage: you have to specifically set up your environment when you run things with cron
jkline has joined #ruby
_Renegade has joined #ruby
Al__ has quit [Quit: Al__]
ffio has joined #ruby
fomatin has joined #ruby
bionoid has quit [Remote host closed the connection]
ramblex has quit [Ping timeout: 252 seconds]
bionoid has joined #ruby
devoldmx has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
LarsSmit has joined #ruby
athst has quit [Quit: athst]
danslo has joined #ruby
athst has joined #ruby
Zai00 has quit [Quit: Zai00]
dmiller has quit [Remote host closed the connection]
_Renegade has quit [Quit: _Renegade]
jeebster has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
forrest has joined #ruby
ffio has joined #ruby
cmarques has quit [Ping timeout: 246 seconds]
allanm has joined #ruby
gr4yscale has joined #ruby
ehaliewicz has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cantonic has quit [Quit: cantonic]
LennyLinux has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 260 seconds]
ffio has quit [Client Quit]
devoldmx has joined #ruby
LennyLinux has joined #ruby
harrymoreno_ has joined #ruby
harrymoreno has quit [Ping timeout: 268 seconds]
harrymoreno_ is now known as harrymoreno
Davey has quit [Quit: Computer has gone to sleep.]
danshultz has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
johnnyfuchs has quit [Remote host closed the connection]
chichou has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
devoldmx3 has joined #ruby
rezzack has joined #ruby
johnnyfuchs has joined #ruby
gr4yscale has quit [Ping timeout: 246 seconds]
jeffreylevesque has joined #ruby
tourdedave has joined #ruby
ffio has joined #ruby
devoldmx27 has joined #ruby
marcdel has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
preller has quit [Ping timeout: 245 seconds]
v0n has quit [Ping timeout: 255 seconds]
verto has joined #ruby
Squarepy has quit [Quit: Leaving]
timkohrumel has quit [Remote host closed the connection]
jkline has quit [Quit: jkline]
devoldmx3 has quit [Ping timeout: 264 seconds]
joesavage has quit [Quit: Page closed]
burlyscudd has joined #ruby
nezumi has joined #ruby
apod has joined #ruby
timkohrumel has joined #ruby
Nilbus has joined #ruby
mikepack has joined #ruby
binaryplease has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
spider-mario has joined #ruby
sideshowcoder has quit [Ping timeout: 264 seconds]
camt has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
<Nilbus>
I'm trying to figure out how to anchor and alias a map and can't figure out the syntax. Is a map anchorable? Examples of what I'm trying: https://gist.github.com/nilbus/5825281
bradhe has joined #ruby
patbr0wn has quit [Ping timeout: 246 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
lenswipe has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
burlyscudd has quit [Read error: Operation timed out]
sideshowcoder has joined #ruby
kirun has joined #ruby
LarsSmit has quit [Quit: Leaving.]
bradhe has quit [Ping timeout: 246 seconds]
hackman127 has joined #ruby
denver has quit [Remote host closed the connection]
<apeiros>
Nilbus: line 4, add a newline after &title
<apeiros>
and keep "Your vehicle's title:" indented the same as &title
_rrecio has quit [Remote host closed the connection]
icecandy has quit [Read error: Connection reset by peer]
<Nilbus>
ah I tried that but had also indented. Let me give that a try
v0n has joined #ruby
icecandy has joined #ruby
rrecio has joined #ruby
`p has quit [Quit: Leaving]
axl_ has quit [Quit: axl_]
<apeiros>
you can try such things simply by doing something like: a = {'test' => 'map'}; b = {'x' => a, 'y' => a}; puts b.to_yaml
<Nilbus>
oh, that's a great idea
LennyLinux has quit [Remote host closed the connection]
zeromodulus has quit [Read error: Connection reset by peer]
<Nilbus>
awesome, that did the trick. Thanks apeiros!
zeromodulus has joined #ruby
zeromodulus has quit [Changing host]
zeromodulus has joined #ruby
rrecio has quit [Read error: Connection reset by peer]
interactionjaxsn has quit [Remote host closed the connection]
rrecio has joined #ruby
<hackman127>
I'm trying to install DevKit and json on Windows 7 with Ruby 1.9.1, and when I run `ruby dk.rb install` it's giving me this: [WARN] Skipping existing DevKit helper library for 'C:/Develop/Languages/Ruby192'. If I add a -f, I get the message that it's updating the helper library, but when I go to run a bundle install, json is still failing saying "Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers." Any ideas?
interactionjaxsn has joined #ruby
L8D has quit [Remote host closed the connection]
LennyLinux has joined #ruby
LennyLinux has quit [Remote host closed the connection]
LennyLin_ has joined #ruby
devoldmx27 has quit [Ping timeout: 260 seconds]
jeremy_c has joined #ruby
thoraxe has quit [Quit: leaving]
devoldmx has joined #ruby
burlyscudd has joined #ruby
interactionjaxsn has quit [Ping timeout: 255 seconds]
axl_ has joined #ruby
Davey has joined #ruby
momomomomo has joined #ruby
<hackman127>
4636
<apeiros>
0967
karthikselva has joined #ruby
<pipework>
0008
ELLIOTTCABLE has quit [Quit: best short-url ever. <http://ell.io/tt>]
ELLIOTTCABLE has joined #ruby
skered- has joined #ruby
skered- has left #ruby [#ruby]
tourdedave has quit [Quit: tourdedave]
bradhe has joined #ruby
choobie has quit [Ping timeout: 246 seconds]
rickmasta has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
interactionjaxsn has joined #ruby
obs has joined #ruby
v0n has quit [Quit: WeeChat 0.4.1]
v0n has joined #ruby
RORgasm_ has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
blaxter has quit [Quit: foo]
vlad_starkov has quit [Ping timeout: 260 seconds]
karthikselva has left #ruby [#ruby]
andikr has quit [Remote host closed the connection]
ELLIOTTCABLE has quit [Remote host closed the connection]
fomatin has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Quit: Quitter]
axl_ has quit [Quit: axl_]
choobie has joined #ruby
choobie has quit [Changing host]
choobie has joined #ruby
tourdedave has joined #ruby
axl_ has joined #ruby
Apane has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
nikeita has quit [Quit: sleep]
tatsuya__ has joined #ruby
ffio has joined #ruby
dhruvasa1ar has joined #ruby
tatsuya_o has quit [Read error: Connection reset by peer]
bigoldrock has quit [Read error: Connection reset by peer]
Evixion` is now known as Evixion
bigoldrock has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
bean has quit [Quit: Computer has gone to sleep.]
ffio has quit [Client Quit]
momomomomo has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
fomatin has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
bionoid has quit [Remote host closed the connection]
momomomomo has quit [Client Quit]
visof has joined #ruby
jlast_ has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
jlast has quit [Read error: Operation timed out]
kil0byte has joined #ruby
Aaaarg has quit [Quit: Aaaarg]
browndawg has quit [Quit: Leaving.]
dp has joined #ruby
harrymoreno has quit [Ping timeout: 246 seconds]
<dp>
can someone tell me what this actually means? /usr/lib/ruby/1.9.1/rubygems/specification.rb:1637:in `raise_if_conflicts': Unable to activate jekyll-asset-pipeline-0.1.6, because jekyll-1.0.3 conflicts with jekyll (~> 0.12) (Gem::LoadError)
harrymoreno has joined #ruby
cads has quit [Read error: Operation timed out]
Hobogrammer has quit [Ping timeout: 245 seconds]
rrecio has quit [Ping timeout: 260 seconds]
rrecio has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
ErsatzRyan has joined #ruby
robscomputer has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bklane has quit [Remote host closed the connection]
srji has joined #ruby
dmiller has joined #ruby
carloslopes has quit [Remote host closed the connection]
bklane has joined #ruby
ErsatzRyan has quit [Remote host closed the connection]
ferdev has joined #ruby
patbr0wn has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
Hanmac1 has quit [Quit: Leaving.]
danshultz has joined #ruby
mocfive has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
nomenkun has quit [Remote host closed the connection]
<ctooley>
Is there a way to pass an environment variable to something that uses net/https.rb to get it to skip certificate verification?
pu22l3r_ has joined #ruby
dp has left #ruby [#ruby]
fermion has quit [Ping timeout: 246 seconds]
brianpWins has quit [Quit: brianpWins]
arya has quit []
huoxito has quit [Quit: Leaving]
nikeita has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
geekbri has quit [Remote host closed the connection]
agent_white has joined #ruby
Aaaarg has quit [Quit: Aaaarg]
nezumi has joined #ruby
<_br__>
Anyone have an idea how to screenshot a long (you need to scroll) website automatically to show the entire page seamlessly concatinated?
<_br__>
Do I really need to hack something together with imagemagick?
vlad_starkov has quit [Read error: Connection reset by peer]
<_br__>
Never mind, someone wrote a plugin in FF for that.
<min|dvir|us-work>
_br__: look into Capybara.
rickmasta has quit [Quit: Leaving...]
danshultz has quit [Remote host closed the connection]
devoldmx3 has joined #ruby
<_br__>
min|dvir|us-work: thanks, I'll try
min|dvir|us-work has left #ruby [#ruby]
<ryan_turner>
I have an array of hashes, and the hashes all have the same keys. One of the hashes value is unique. I need to update a value on the hash where another value is unique. What is the smart way to iterate over the array to make that change?
sailias has quit [Ping timeout: 268 seconds]
<ryan_turner>
[{id_1 => 1, id_2 => 1}, {id_1 => a, id_2 =>2}] <--- I want to change "a" to 2.
falkoner has joined #ruby
robscomputer_ has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 252 seconds]
kpshek has quit []
srji has quit [Ping timeout: 248 seconds]
ephemerian has joined #ruby
<canton7>
it's hard to tell from your example what is supposed to be unique and what isn't, when there are only two sub-hashes
Davey has quit [Quit: Computer has gone to sleep.]
<Spooner>
ryan_turner, arr.each {|h| h[id_1] = 2 if h[id_1] == a }
superscott[8] has quit [Quit: superscott[8]]
bradhe has quit [Remote host closed the connection]
<ryan_turner>
Ah, so nothing better than just doing .each
nomenkun has joined #ruby
<ryan_turner>
Fair enough! Not a bad deal :)
rickmasta has joined #ruby
tomzx_mac_ has joined #ruby
<popl>
well that's not your actual data so it is hard to give a good answer for your usecase
tomzx_mac has quit [Ping timeout: 248 seconds]
ffio has joined #ruby
kpshek has joined #ruby
burlyscudd has joined #ruby
dmyers has left #ruby [#ruby]
jlast has quit [Remote host closed the connection]
prstat has quit [Quit: leaving]
nomenkun has quit [Ping timeout: 248 seconds]
fmcgeough has quit [Quit: fmcgeough]
kofno has quit [Remote host closed the connection]
DomKM has quit [Quit: Leaving.]
pixelgremlins has quit [Ping timeout: 264 seconds]
superscott[8] has joined #ruby
DomKM has joined #ruby
byprdct has joined #ruby
DomKM has quit [Client Quit]
burlyscudd has quit [Ping timeout: 255 seconds]
end_guy has quit [Ping timeout: 240 seconds]
DomKM has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
lenswipe has quit [Ping timeout: 268 seconds]
b0oh has joined #ruby
<Spooner>
Yeah, as popl says, it could be better if we had a better idea of the use-case. You could do arr.find {|h| h[id_1] == a }[id_1] = 2 (but assumes there will be exactly one replacement needed).
harrymoreno has quit [Ping timeout: 248 seconds]
min|dvir|us has joined #ruby
davetherat has joined #ruby
end_guy has joined #ruby
<min|dvir|us>
I have a Date instance. How do I change the day of the Date?
phantasm66 has quit [Quit: *poof*]
<Spooner>
min|dvir|us, date += 1
<min|dvir|us>
No, I don't want to add a day, I want to set the day.
harrymoreno has joined #ruby
huoxito has joined #ruby
<Spooner>
A date is immutable.
<min|dvir|us>
OK, so you're saying I'd have to make a new one?
<Spooner>
You could do Date.new(d.year, d.month, 12)
[BNC]dmyers has joined #ruby
<min|dvir|us>
date += 1 does what -- make a new instance with the day increased by one?
<Spooner>
Yep.
<min|dvir|us>
That's very unclear.
DrShoggoth has quit [Quit: Leaving]
<Spooner>
x += y is just sugar for x = x + y
<popl>
What's unclear?
<min|dvir|us>
Makes date seem mutable.
<Spooner>
It is different in other languages, where += is a method in itself.
gr4yscale has joined #ruby
<min|dvir|us>
I understand that, coming from Python.
mocfive has quit [Remote host closed the connection]
<Spooner>
Actually, better to use Date#succ, rather than += 1
_maes_ has joined #ruby
ffranz has quit [Quit: Leaving]
<Spooner>
(or Date#next_day if you want to be really clear)
Trynemjoel has joined #ruby
visof has quit [Read error: Connection reset by peer]
paul_trone has joined #ruby
[BNC]dmyers has left #ruby [#ruby]
Solnse has quit [Ping timeout: 240 seconds]
<apeiros>
min|dvir|us: "Makes date seem mutable" only when you conflate objects and variables
fomatin has joined #ruby
kevinykchan has joined #ruby
dmiller has quit [Remote host closed the connection]
cofin has joined #ruby
<Spooner>
apeiros, In C++, however, += can mutate an object. No problem with people struggling with the specific meaning of += in Ruby.
richiebkr has joined #ruby
<apeiros>
Spooner: yes. but we're not talking about C++.
icole has quit [Remote host closed the connection]
<min|dvir|us>
apeiros: gotcha, you're better than me.
<min|dvir|us>
My bad.
<apeiros>
and when learning ruby, it's IMO rather important to learn the concept of variables vs. objects
richiebkr has quit [Client Quit]
stonevil has joined #ruby
<apeiros>
(same as when learning C it's important to learn the concept of pointers, e.g.)
jlast has joined #ruby
<min|dvir|us>
Would you also say it's important to have a very high opinion of yourself in relation to others when learning Ruby?
* Xeago
wrote a fair deal of C without ever touch pointer, purely stack!
<apeiros>
min|dvir|us: wtf?
<Xeago>
ah the english, it escapes me
<popl>
min|dvir|us: Hey dude.
<popl>
min|dvir|us: You came into the channel slinging your ego around. You have no room to talk.
arya_ has joined #ruby
<apeiros>
min|dvir|us: maybe you should not interpret every written word in a ego-value system
<min|dvir|us>
apeiros: I'm just fucking with ya, mate.
<apeiros>
min|dvir|us: careful
<popl>
I think that is backpedaling.
DomKM has quit [Quit: Leaving.]
<popl>
That is not constructive.
eliqtrope has quit [Quit: Page closed]
arya has quit [Ping timeout: 248 seconds]
theRoUS has quit [Ping timeout: 264 seconds]
<apeiros>
min|dvir|us: my remark about conflation was not supposed to mean "you're stupid you can't understand the difference between those things!!!"
<min|dvir|us>
:)
<r0bgleeson>
apeiros: can't you spot his troll hair
<apeiros>
it was meant as a factual statement. if you lack that knowledge, then yes, things will look that way.
min|dvir|us has quit [Quit: leaving]
<aces1up>
i am creating my own gem, i have created the gemspec and the gem gets created fine and all is well, but the .gemspec file used to create gem is not included in the .gem file.. is there a setting to make this happen?
<apeiros>
r0bgleeson: sometimes hard to tell whether somebody is trolling or truly offended and unable to communicate it in an acceptable way
<r0bgleeson>
aces1up: add it to Specification#files=
<r0bgleeson>
apeiros: he's a troll, for sure
spider-mario has quit [Read error: Connection reset by peer]
<popl>
I don't know. He is using his real name.
<apeiros>
and the "unable to communicate" part can even be due to language barriers
<popl>
I don't think a troll would use his real name.
<aces1up>
r0bgleeson great thanks.
<popl>
Or at least his "real name".
vlad_starkov has joined #ruby
<popl>
It was in his pastes and his ircname.
<r0bgleeson>
well then he has serious insecurity issues
<popl>
I think he's probably a youngster with a complex.
kristiandelay has quit [Remote host closed the connection]
<popl>
his handle is min|dvir|us :)
<popl>
that's 1337
ssickle has joined #ruby
b0oh has quit [Quit: Leaving.]
codecop has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
ffio has quit [Quit: WeeChat 0.4.1]
tomzx_mac_ has quit [Quit: tomzx_mac_]
tomzx_mac has joined #ruby
slainer68 has joined #ruby
atyz has quit [Quit: Leaving...]
kevinykchan has quit [Quit: Computer has gone to sleep.]
timkohrumel has quit [Remote host closed the connection]
lellisga has joined #ruby
skasio has quit [Ping timeout: 264 seconds]
`p has quit [Ping timeout: 246 seconds]
sarkis has quit [Ping timeout: 260 seconds]
DomKM has quit [Quit: Leaving.]
alvaro_o has joined #ruby
fredjean_ has quit [Quit: Computer has gone to sleep.]
agent_white has quit [Quit: leaving]
jimg has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
athst has joined #ruby
slash_nick has joined #ruby
slash_nick has joined #ruby
`p has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
jimg has quit [Ping timeout: 246 seconds]
harrymoreno has quit [Ping timeout: 255 seconds]
jeffreylevesque has joined #ruby
Guest53088 has joined #ruby
slash_nick has quit [Ping timeout: 240 seconds]
Guest53088 has left #ruby [#ruby]
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
end_guy has joined #ruby
danslo has joined #ruby
MrZYX is now known as MrZYX|off
bmn has joined #ruby
freerobby has joined #ruby
ninp0 has joined #ruby
rickmasta has quit [Ping timeout: 252 seconds]
pyrac has quit [Quit: pyrac]
freerobby has quit [Ping timeout: 246 seconds]
DomKM has joined #ruby
_rrecio has joined #ruby
ericmathison has quit [Quit: leaving]
cj3kim has joined #ruby
harrymoreno has joined #ruby
slash_nick has quit [Ping timeout: 240 seconds]
rrecio has quit [Ping timeout: 260 seconds]
umttumt has joined #ruby
classix has quit [Quit: leaving]
anonymuse has joined #ruby
Katronix has joined #ruby
falood has joined #ruby
dcunit3d has joined #ruby
classix has joined #ruby
ShellFu_afk is now known as ShellFu
<Katronix>
Hi all, I hope this is the correct place to ask, I'm using sinatra and trying to figure out from the views folder how do I specify where CSS files are?