klaut has quit [Remote host closed the connection]
bricker`LA has quit [Ping timeout: 240 seconds]
emocakes has quit [Quit: Leaving...]
lagweezle has joined #ruby
lagweezle is now known as lapweezle
Brolen has quit [Quit: Brolen]
<lapweezle>
howdy folks
<benzrf>
sup lapweezle
<lapweezle>
Kind of hoping someone here is knowledgeable on AWS...
relix has joined #ruby
<benzrf>
lapweezle: my only experience with anything aws related is using heroku
<benzrf>
;p
jameshyde has joined #ruby
Wolland has joined #ruby
<lapweezle>
I'm fiddling with it as a possible persistent IRC system, and sort lightweight hosty thingy, but trying to figure out how storage land works.
<lapweezle>
I suppose I should care less, given how inexpensive 1GB of space is. A whopping 10-12 cents per month.
blarghmatey__ has quit [Ping timeout: 245 seconds]
croaky has joined #ruby
g0bl1n has joined #ruby
joriso has quit [Remote host closed the connection]
bricker`LA has joined #ruby
melvinsh has joined #ruby
meatherly has quit [Remote host closed the connection]
phipes has quit [Remote host closed the connection]
coffeina has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
phipes has joined #ruby
mneorr has joined #ruby
skulker has joined #ruby
kalamazoo has quit [Remote host closed the connection]
marshjello has joined #ruby
croaky has quit [Ping timeout: 245 seconds]
spider-mario has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
subbyyy has joined #ruby
skulker has quit [Remote host closed the connection]
kalamazoo has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
melvinsh has quit [Remote host closed the connection]
<shevy>
now now
mklappstuhl has quit [Ping timeout: 240 seconds]
Landshark753 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kitak has joined #ruby
<shevy>
what would be cool would be if we were like the BORG
<shevy>
and we could all collectively code in ruby
Megtastique has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
Kricir has joined #ruby
<kc8qvp_>
hrm, I think it is bundle and not gem that is doing sudo when I'm not looking
nateberkopec has quit [Quit: Leaving...]
<apeiros>
do you have passwordless sudo? or how can it do that behind your back?
<benzrf>
kc8qvp_: it has done that
<benzrf>
apeiros: it somehow taps into your existing sudo status
<benzrf>
so if you sudo something, then bundle install, it will work
<benzrf>
IME
<apeiros>
benzrf: you mean the normal "I used sudo once and then I don't need a password for the next N minutes"?
<benzrf>
yeah
<benzrf>
iirc
ace_striker has quit [Ping timeout: 272 seconds]
mib_mib has joined #ruby
byprdct has joined #ruby
subbyyy has quit [Quit: #om]
<lapweezle>
I feel like I missed part of a conversation...
<kc8qvp_>
apeiros: passwordless sudo, yes, but as mentioned it's incredibly typical for sudo to not require a password for X minutes after a successful run.
lkba has joined #ruby
<Xeago>
kc8qvp_: isn't that the normal mode of operation?
estebistec has joined #ruby
<Xeago>
you can use sudo -K to reset it
subbyyy has joined #ruby
mib_mib has quit [Client Quit]
<kc8qvp_>
Xeago: it is, yes
freezey has joined #ruby
mojjojo has quit [Quit: mojjojo]
<kc8qvp_>
I have no problem with sudo, just with other apps calling it w/o telling me
mklappstuhl has joined #ruby
jmo has joined #ruby
<lapweezle>
+!
<lapweezle>
er, +1, even
<shevy>
hah
<shevy>
bundler!
<shevy>
Hanmac1 I told ya
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smathieu has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
mklappstuhl has quit [Ping timeout: 272 seconds]
narcan has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
estebistec has quit [Remote host closed the connection]
agent_white has joined #ruby
colonolGron has quit [Quit: Lost terminal]
croaky has joined #ruby
mneorr has quit [Ping timeout: 252 seconds]
ambushsabre has quit [Quit: rip]
skulker has quit [Ping timeout: 245 seconds]
jamesaxl has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Ping timeout: 260 seconds]
skulker has joined #ruby
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
ambushsabre has joined #ruby
lukec has quit [Quit: lukec]
byprdct has joined #ruby
dogweather has joined #ruby
skulker has quit [Ping timeout: 272 seconds]
skulker has joined #ruby
danshultz has joined #ruby
Soliah has quit [Quit: Soliah]
gja has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
freezey has joined #ruby
chrisan has quit [Ping timeout: 241 seconds]
hadees has joined #ruby
tt1187 has quit [Ping timeout: 252 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
aspires has quit []
Xeago has quit [Remote host closed the connection]
skulker has quit [Ping timeout: 245 seconds]
gja has quit [Client Quit]
Xeago has joined #ruby
croaky has quit [Ping timeout: 245 seconds]
jameshyde has quit [Quit: Leaving.]
skulker has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
freezey has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
mklappstuhl has joined #ruby
sharms has joined #ruby
gja has joined #ruby
estebistec has joined #ruby
aspires has joined #ruby
<pontiki>
doesn't HTTParty do POST?
banghouse has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
skulker has quit [Ping timeout: 272 seconds]
axl_ has quit [Quit: axl_]
skulker has joined #ruby
jameshyde has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
jmbrown412 has joined #ruby
mklappstuhl has quit [Ping timeout: 245 seconds]
<ziikutv>
yea
<ziikutv>
thanks
<jmbrown412>
Created a gem, add rspec to the gem. I am trying to build a spec to test /lib/equifaxxy/response. I am getting "Cannot load such file" Confused as to why. Any thoughts?
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shedd has quit [Remote host closed the connection]
skulker has quit [Ping timeout: 245 seconds]
<jmbrown412>
Also spec_helper.rb is requiring /lib/equifaxxy/response
closures999 has joined #ruby
skulker has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
jamesaanderson has joined #ruby
ziikutv has left #ruby [#ruby]
jamesaanderson has quit [Max SendQ exceeded]
hadees has quit [Read error: Connection reset by peer]
jamesaanderson has joined #ruby
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
<benzrf>
Hash#merge! and Hash#update are the same right
aspires has quit []
mehlah has quit [Quit: Leaving...]
frabrunelle has left #ruby ["Leaving..."]
skulker has quit [Ping timeout: 252 seconds]
Mars has joined #ruby
skulker has joined #ruby
Mars is now known as Guest73974
butblack has quit [Quit: butblack]
cow_ has quit [Remote host closed the connection]
flame_ has quit [Quit: Computer has gone to sleep.]
cow_ has joined #ruby
aspires has joined #ruby
Virtualize has quit [Quit: Leaving...]
skulker has quit [Ping timeout: 265 seconds]
mary5030 has quit [Remote host closed the connection]
<agent_white>
Scored poodr as an Xmas gift. Wewt!
jameshyde has quit [Quit: Leaving.]
skulker has joined #ruby
<benzrf>
neat
nicebub has joined #ruby
Hanmac1 has quit [Ping timeout: 246 seconds]
apeiros has quit [Remote host closed the connection]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has joined #ruby
apeiros has quit [Remote host closed the connection]
<pontiki>
nice!
Hanmac has joined #ruby
tomasso has left #ruby [#ruby]
S0da has quit [Read error: Connection reset by peer]
<NewYearInterpol>
What would anybody reccomend as a good game development library for Ruby?
jmimi has quit [Quit: Leaving.]
<NewYearInterpol>
Prefferably one that's relatively up to date. I've been looking around and all I could find was Gosu.
<WJW>
Foo::Bar means the value of a constant Bar defined inside of Foo. Bar could be of any type, but usually it would be a module or a class. Foo would have to be a module or a class.
croaky has quit [Ping timeout: 240 seconds]
m00nlight has quit [Ping timeout: 240 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sailias has joined #ruby
shedd has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
Soda has joined #ruby
m00nlight has joined #ruby
kitak has joined #ruby
skulker has joined #ruby
travisjeffery has joined #ruby
totalmajor has joined #ruby
russt has joined #ruby
nateberkopec has joined #ruby
endash has quit [Quit: endash]
shedd has quit [Ping timeout: 272 seconds]
robertrv has joined #ruby
totalmajor has quit [Ping timeout: 240 seconds]
yacks has joined #ruby
Guest12886 has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
sharms has quit [Ping timeout: 240 seconds]
tonni has quit [Read error: Connection reset by peer]
RubyPanther has joined #ruby
tonni has joined #ruby
law has joined #ruby
<law>
what's a good way to strip a consistently-formatted Time object out of a string?
<law>
like:
<law>
Wed Jan 1 01:21:13 2014: #somechannel: <law!law@dopefish.fuzzy-logic.org> arbitrary text
<law>
that time format will consistently be like that
Jetchisel has joined #ruby
vlad_starkov has joined #ruby
jandersatl has joined #ruby
<law>
I just want to be able to parse a log file and say "Grab the Time object off the beginning of that string, and then blow through a case statement to do 'stuff' based on the rest of the string"
<WJW>
If Time doesn't have a parsing function, I'd probably try hacking at it with regular expressions.
<apeiros>
law: if it's always in the same place, String#[] with positions
<apeiros>
if it's in the string multiple times, String#scan
<law>
nope, it'll always be in the same place
<law>
I was trying to shoehorn Datetime.strptime, but for whatever reason that's not working for me
ziikutv has joined #ruby
sharms has joined #ruby
<ziikutv>
What if i have a class depicted by a variable called leagueTest..and do puts leagueTest how do I change the default behaviour? to print something else instead of #<GetTeamInfo:0x000000012d81c8> perhaps something from the methods in the class?
<ziikutv>
if you can point me to the right documentation that would be fine too.
baroquebobcat has quit [Quit: baroquebobcat]
<WJW>
Define to_s on it? Define inspect on it?
vlad_starkov has quit [Ping timeout: 245 seconds]
<WJW>
I usually don't puts things that aren't strings.
NewYearInterpol has quit [Ping timeout: 245 seconds]
cow_ has quit [Remote host closed the connection]
<law>
hrm, I'm not seeing how String#[] would help me in this case...
<newton>
when making a string like: "%{name}" % { name: 'test' } - is there a way to do "%{name} %{something}{one}" % { name: 'test', something: { one: 1 } }?
<law>
date = "Wed Jan 1 01:21:13 2014: #somechannel: <law!law@dopefish.fuzzy-logic.org> arbitrary text"[0,24]....
<WJW>
law, "foo"[1] => "o"
<law>
oh wait, I'm an idiot
<law>
I was thinking a date with 2 digits would add a field, but I see now the extra space in "Jan 1"
<law>
so the tenth would be "Jan 10"
<law>
derp :-p
<WJW>
law, "foo"[1...3] => "oo"
jamesaanderson has quit [Client Quit]
<WJW>
newton, not sure what you're asking.
<newton>
WJW: basically I have stuff coming in as a hash, and I'd like to do "%{value} ... %{some_other_value} % hash
mneorr has joined #ruby
<WJW>
newton, you are using Ruby to build up JS code?
<newton>
taking json and formatting it to other output
psyl0n has quit [Remote host closed the connection]
<WJW>
newton, the #{expr} syntax inside double quotes is often useful in formatting output.
dayepa has quit [Ping timeout: 246 seconds]
aspires has quit []
<WJW>
x = "I mean it"; "foo #{x} bar" => "foo I mean it bar"
<newton>
yes, I'm aware of that - but I'm trying to keep the lines a little shorter
<newton>
the json is being parsed into a hash (json comes from a webhook)
<newton>
right now I'm doing "%{blah} %{blah2}" % hash so I don't have to do "#{hash['blah']}..."
aspires has joined #ruby
<newton>
but I'm not sure if it's possible to access the nested information with the %{value} syntax
<WJW>
newton, the last part of your desired output looks like json.
gquental has quit [Ping timeout: 252 seconds]
tedstriker has quit [Quit: Anti-Fraping status set.]
<WJW>
I am not aware there's a %{value} syntax in Ruby. In what context can it be used?
dayepa has joined #ruby
braincrash has quit [Quit: bye bye]
<newton>
"%{name}" % { name: 'WJW' } => "WJW"
skulker has quit [Remote host closed the connection]
tedstriker has joined #ruby
okinomo has quit [Read error: Connection reset by peer]
<WJW>
OK, that's the sprintf operator.
<apeiros>
sprintf and family. as of 1.9
russt has quit [Ping timeout: 240 seconds]
skulker has joined #ruby
okinomo has joined #ruby
russt has joined #ruby
<WJW>
I guess they expanded it beyond what it does in C.
<apeiros>
before 1.9 already. %p is for inspect (which doesn't exist in C)
jmbrown412 has quit []
braincrash has joined #ruby
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
heftig has quit [Quit: Quitting]
skulker has quit [Ping timeout: 265 seconds]
<ziikutv>
ty
ziikutv has quit [Quit: Leaving.]
jamesaanderson has joined #ruby
marshjello has quit [Read error: Connection reset by peer]
<WJW>
Sprintf is never the first tool in the toolbox I tend to reach for.
<law>
basically, I want to parse my ircd log files (which contain server status messages along with assorted channel messages) and turn them into HTML based on the date and channel name
okinomo has joined #ruby
gquental has joined #ruby
<law>
however, ircd doesn't split the logs based on channel name, it just throws everything together in one big ol' logfile
<WJW>
law, why not use brute force?
<law>
so I'll have 6+ channel logs all in one file. At least everything is in chronological order
<law>
I think I *am* brute-forcing it, but I just want to check with those who know better, to see if I'm about to shoot myself in the foot
gja has joined #ruby
Hanmac2 has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
<law>
so, we start parsing the logfile. I'm going line by line, grabbing the date off the beginning and turning it into a Time object
travisjeffery has quit [Client Quit]
<law>
then I slice the line, removing the date, and then see if the line starts with a channel-name
mmr has quit [Quit: leaving]
<law>
i.e. "#<somechannelname>: arbitrary text..."
okinomo has quit [Client Quit]
okinomo has joined #ruby
<law>
if it does, see if a file exists under YYYY/MM/DD/channelname.html. If it doesn't, make the dir structure and open that file for writing
<rjhunter>
sounds reasonable to me
schreceng has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
<law>
if it does exist... now I don't know what
butblack has joined #ruby
<WJW>
Track what files you have open, so you can close them eventually.
<law>
how can I tell if I've parsed this line before? how can I track what files I have open?
<pontiki>
not really the right way to look at it Radcircle
<Radcircle>
then what is? :o
<Radcircle>
that wikipedia page is confusing
<Radcircle>
⇔ is a metalogical symbol meaning "can be replaced in a logical proof with"
<popl>
Click on the Simple English link for a simpler explanation.
<tobiasvl>
Radcircle: !(true && false) is the same as (!true || !false)
<popl>
^
<tobiasvl>
anyway, just think of it like this: the expression inside the parentheses is evaluated first, then the return value replaces the entire parenthesis
Bumptiou_ has quit [Read error: Connection timed out]
tharindu has quit [Quit: Leaving...]
marr has joined #ruby
sec^nd has quit [Ping timeout: 240 seconds]
Bumptious has joined #ruby
Guest28193 has joined #ruby
croaky has joined #ruby
kitak has quit [Remote host closed the connection]
mehlah has joined #ruby
mojjojo has quit [Quit: mojjojo]
banghouse has joined #ruby
Hanmac has joined #ruby
banghouse is now known as Guest57640
sec^nd has joined #ruby
emocakes has joined #ruby
mojjojo has joined #ruby
ephemerian has joined #ruby
aapzak_ is now known as aapzak
Hanmac1 has quit [Ping timeout: 272 seconds]
mojjojo has quit [Read error: Connection reset by peer]
mojjojo has joined #ruby
Rickmasta has quit [Ping timeout: 272 seconds]
huttan_ has quit [Ping timeout: 246 seconds]
tharindu has joined #ruby
huttan- has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
okinomo has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
okinomo has joined #ruby
RoryHughes has joined #ruby
larissa has quit [Ping timeout: 272 seconds]
RoryHughes has quit [Max SendQ exceeded]
t_p has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Ping timeout: 252 seconds]
RoryHughes has joined #ruby
mklappstuhl has joined #ruby
wildroman2 has quit [Remote host closed the connection]
jmo has quit [Ping timeout: 252 seconds]
blackmes1 has quit [Ping timeout: 240 seconds]
croaky has quit [Ping timeout: 246 seconds]
kitak has joined #ruby
huttan has joined #ruby
mengu has quit [Remote host closed the connection]
razibog has quit [Ping timeout: 245 seconds]
marcoecc has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
marcoecc is now known as Guest70257
mklappstuhl has quit [Ping timeout: 260 seconds]
nemesit|znc has quit [Ping timeout: 260 seconds]
pranny has quit [Quit: Leaving.]
plotter has joined #ruby
decoponio has joined #ruby
phipes has joined #ruby
nemesit|znc has joined #ruby
decoponio has quit [Client Quit]
Guest70257 has quit [Quit: auth]
xiphias has quit [Ping timeout: 240 seconds]
ephemerian has quit [Quit: Leaving.]
xiphias has joined #ruby
Guest95227 is now known as andredieb
andredieb is now known as Guest67468
mneorr has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Awhite has quit [Read error: Connection reset by peer]
h_kon has quit [Remote host closed the connection]
robert_ has quit [Read error: Connection reset by peer]
ephemerian has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
xiphias has joined #ruby
h_kon has joined #ruby
mneorr has quit [Ping timeout: 246 seconds]
monkegjinni has joined #ruby
fire has joined #ruby
Guedes has left #ruby ["Saindo"]
okinomo has quit [Read error: Connection reset by peer]
juni0r has quit [Ping timeout: 245 seconds]
dawe has quit [Quit: leaving]
Speed has joined #ruby
juni0r has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
jmo has joined #ruby
banister_ has quit [Ping timeout: 252 seconds]
xiphias has joined #ruby
r0bby_ is now known as robbyoconnor
phipes has quit [Remote host closed the connection]
law has joined #ruby
TheNumb has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby
TheNumb has joined #ruby
frxx has quit []
xiphias has quit [Ping timeout: 240 seconds]
frx has joined #ruby
huttan has quit [Ping timeout: 272 seconds]
Loaft has joined #ruby
xiphias has joined #ruby
ffio has joined #ruby
law has quit [Ping timeout: 240 seconds]
huttan has joined #ruby
banister has joined #ruby
okinomo has joined #ruby
wildroman2 has joined #ruby
nateberkopec has joined #ruby
workmad3 has joined #ruby
crashx has joined #ruby
fire has quit [Quit: WeeChat 0.4.1]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
mojjojo has quit [Quit: mojjojo]
fijimunkii has quit [Ping timeout: 245 seconds]
nateberkopec has quit [Ping timeout: 245 seconds]
lyanchih_ has quit [Ping timeout: 252 seconds]
mojjojo has joined #ruby
falood has quit [Remote host closed the connection]
kep has joined #ruby
m8 has joined #ruby
monkegjinni has quit [Remote host closed the connection]
razibog has joined #ruby
sayan has quit [Ping timeout: 260 seconds]
larissa has joined #ruby
eka has joined #ruby
fire has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
agent_white has joined #ruby
maasha has joined #ruby
ym2ha0 has joined #ruby
ym2ha0 has left #ruby [#ruby]
thumpba has joined #ruby
Hanmac1 has joined #ruby
<maasha>
hi
huttan has quit [Ping timeout: 240 seconds]
<maasha>
I am looking for a way to test if stderr is emtpy when using popen3?
wildroman2 has quit [Remote host closed the connection]
Awhite has joined #ruby
<tobiasvl>
maasha: hmm, what exactly do you mean by an empty stderr?
alexherbo2 has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
okinomo has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
<maasha>
tobiasvl: if I run a command using popen3 and there are verbose input in stderr - then I would like to know before openening a file and writing it to disk.
<maasha>
ehrhm. verbose output
lkba has joined #ruby
monkegjinni has joined #ruby
<tobiasvl>
stdout.read
<tobiasvl>
?
<tobiasvl>
i mean stderr.read (if you've called it stderr that is
thumpba has quit [Ping timeout: 272 seconds]
<maasha>
tobiasvl: then I need to rewind or some other dirty hackery thing.
intuxicated has joined #ruby
<maasha>
tobiasvl: I think eof? does the trick.
<maasha>
yup. eof? it is.
endash has quit [Quit: endash]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freerobby has quit [Ping timeout: 272 seconds]
huttan has joined #ruby
tomsthumb has joined #ruby
mklappstuhl has joined #ruby
chrisan has joined #ruby
psyl0n has joined #ruby
rickruby has joined #ruby
Radcircle has quit [Remote host closed the connection]
blackmes1 has joined #ruby
rjhunter has joined #ruby
m00nlight has joined #ruby
<pontiki>
or .rewind
cow_ has quit [Remote host closed the connection]
fire has quit [Quit: WeeChat 0.4.1]
eval-in has quit [Remote host closed the connection]
cow_ has joined #ruby
mklappstuhl has quit [Ping timeout: 272 seconds]
pranny has joined #ruby
eval-in has joined #ruby
<maasha>
$> is stdout?
RoryHughes has quit []
rickruby has quit [Ping timeout: 272 seconds]
joonty has quit [Ping timeout: 246 seconds]
cow_ has quit [Ping timeout: 252 seconds]
marcoecc has joined #ruby
crashx has quit [Quit: crashx]
pranny has quit [Ping timeout: 252 seconds]
senayar_ has joined #ruby
RoryHughes has joined #ruby
butblack has joined #ruby
<maasha>
confirmed.
joaoh82 has quit [Remote host closed the connection]
agjacome has joined #ruby
Kar- has joined #ruby
aagdbl has quit [Quit: Leaving.]
eval-in has quit [Remote host closed the connection]
aagdbl has joined #ruby
eval-in has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
senayar_ has quit [Remote host closed the connection]
allsystemsarego has joined #ruby
mneorr has joined #ruby
senayar has quit [Ping timeout: 246 seconds]
axl_ has joined #ruby
totalmajor has joined #ruby
axl_ has quit [Client Quit]
sayan has joined #ruby
NewYearInterpol has joined #ruby
adambeynon has joined #ruby
agjacome has quit [Ping timeout: 245 seconds]
derebos has joined #ruby
jamesaxl has quit [Ping timeout: 245 seconds]
senayar has joined #ruby
mneorr has quit [Ping timeout: 260 seconds]
NewYearInterpol is now known as LinearInterpol
<shevy>
8) is smiley?
<shevy>
confirmed!
mzdravkov has joined #ruby
senayar has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
Awhite has quit [Read error: Connection reset by peer]
joonty has joined #ruby
tharindu has quit [Quit: Leaving...]
relix has joined #ruby
relix has quit [Max SendQ exceeded]
relix has joined #ruby
huttan has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
huttan has joined #ruby
nateberkopec has joined #ruby
kitak has quit [Remote host closed the connection]
varfoo has quit [Quit: WeeChat 0.4.0]
kodcuadambot has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
railslearner1 has joined #ruby
crashx has joined #ruby
Gonzih has joined #ruby
kitak has joined #ruby
kodcuadambot has quit [Remote host closed the connection]
senayar has joined #ruby
kitak has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 245 seconds]
rickruby has joined #ruby
railslearner1 has quit [Client Quit]
calleerlandsson has joined #ruby
calleerlandsson has quit [Client Quit]
nateberkopec has joined #ruby
flame_ has joined #ruby
senayar has quit [Remote host closed the connection]
kitak has joined #ruby
<shevy>
huh
rickruby has quit [Ping timeout: 245 seconds]
pranny has joined #ruby
nateberkopec has quit [Ping timeout: 252 seconds]
mrnugget has quit [Quit: mrnugget]
Awhite has joined #ruby
agent_white has joined #ruby
dukz_ has joined #ruby
pranny has quit [Ping timeout: 252 seconds]
<emocakes>
wut?
flame_ has quit [Ping timeout: 240 seconds]
krz has quit [Quit: WeeChat 0.4.2]
dukz has quit [Ping timeout: 252 seconds]
zipper has joined #ruby
flame_ has joined #ruby
<shevy>
emocakes popl speaketh in strange ways
LinearInterpol has quit [Ping timeout: 272 seconds]
Gonzih has quit [Quit: IRC is just multiplayer vim.]
flame_ has quit [Quit: Computer has gone to sleep.]
axl_ has joined #ruby
Gonzih has joined #ruby
freerobby has joined #ruby
bluenemo has joined #ruby
nemesit|znc has quit [Ping timeout: 252 seconds]
bluenemo has quit [Remote host closed the connection]
dukz_ has quit [Remote host closed the connection]
nemesit|znc has joined #ruby
dukz has joined #ruby
crashx has quit [Quit: crashx]
vlad_starkov has joined #ruby
bahar has quit [Changing host]
bahar has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
freerobby has quit [Ping timeout: 260 seconds]
joaoh82 has joined #ruby
ewnd9 has quit [Ping timeout: 245 seconds]
mrnugget has joined #ruby
dukz has quit [Client Quit]
rickruby has joined #ruby
xjiujiu has quit [Ping timeout: 272 seconds]
centipedefarmer has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
joaoh82 has quit [Ping timeout: 265 seconds]
phutchins has quit [Ping timeout: 245 seconds]
rickruby has quit [Ping timeout: 252 seconds]
axl_ has quit [Quit: axl_]
vlad_starkov has joined #ruby
cow_ has joined #ruby
Guest11107 is now known as __Al__
mzdravkov has left #ruby [#ruby]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 245 seconds]
razibog has quit [Ping timeout: 265 seconds]
kaldrenon has joined #ruby
butblack has quit [Quit: butblack]
danshultz has joined #ruby
Guest67468 is now known as andredieb
tomsthumb has quit [Quit: Leaving.]
mneorr has joined #ruby
andredieb is now known as Guest9268
jonjames has quit [Ping timeout: 252 seconds]
Wolland has joined #ruby
mojjojo has quit [Quit: mojjojo]
Guest9268 is now known as andredeib
andredeib is now known as andredieb
andredieb has quit [Changing host]
andredieb has joined #ruby
xjiujiu has joined #ruby
<WJW>
Radcircle, DeMorgan's Laws.
crashx has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
kep has quit [Quit: WeeChat 0.4.2]
kung has quit [Read error: Connection reset by peer]
mojjojo has joined #ruby
kung has joined #ruby
browndawg has joined #ruby
mojjojo has quit [Client Quit]
danshultz has quit [Remote host closed the connection]
nemesit|znc has quit [Ping timeout: 265 seconds]
<WJW>
guinslym, are you here?
nemesit|znc has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
<WJW>
guinslym, I get 6. Your console is hosed up. Your Ruby may be hosed up.
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
andikr has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
jonjames has joined #ruby
dr_bob has joined #ruby
max96at has joined #ruby
shime has joined #ruby
m00nlight_ has joined #ruby
senayar has joined #ruby
m00nlight has quit [Ping timeout: 272 seconds]
nateberkopec has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
huttan has quit [Read error: Connection reset by peer]
huttan has joined #ruby
nateberkopec has quit [Ping timeout: 260 seconds]
pranny has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
ffranz has joined #ruby
ffranz has quit [Read error: Connection reset by peer]
pengunix has joined #ruby
<pengunix>
So I installed a gem, can I run the tests for that gem somehow?
pranny has quit [Ping timeout: 252 seconds]
mccloudy has quit [Remote host closed the connection]
agjacome has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
pranny has joined #ruby
guinslym has quit [Ping timeout: 240 seconds]
pranny has quit [Client Quit]
pranny has joined #ruby
RubNoob has joined #ruby
Emmanuel_Chanel has joined #ruby
banister has joined #ruby
ffranz has joined #ruby
pranny has quit [Read error: Connection reset by peer]
mehlah has quit [Quit: Leaving...]
<Morrolan>
pengunix: I usually just cd into the gem's installation directory, and run `rake`.
<pengunix>
Morrolan: and how can I specify to install the latest gem in a Gemfile?
<pengunix>
Morrolan: 'mygem', 'latest' doesn't work
<Morrolan>
Not specifying a version should make it fetch the latest published version.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
floyd20183 has quit [Ping timeout: 265 seconds]
alvinsj has joined #ruby
<Morrolan>
(As long as no Gemfile.lock exists, of course. If there is one already, and you want to update, then `bundle update` is required.)
<pengunix>
Morrolan: right
<pengunix>
I just found out it is case sensitive, and it simply couldn't find the gem.
<Morrolan>
Oh, heh. :D
<pengunix>
Morrolan: hm, and apparently native gem extensions have to be compiled under root, right?
alvinsj has left #ruby [#ruby]
<WJW>
NO ROOT
yacks has joined #ruby
<WJW>
pengunix, there are 'rbenv' and other similar tools that will help you compile your Ruby in userland, and the gems along with it.
freerobby has joined #ruby
<WJW>
'rbenv', 'rvm', ...
vlad_starkov has quit [Remote host closed the connection]
<shevy>
pengunix I think only the "make install" step, the make step should have made the binaries in the directory where the gem was extracted to
<shevy>
you can try manually, extract the gem via gem unpack
<shevy>
once you have the binaries/bindings, you can copy them all over the filesystem at your leisure
<pengunix>
the termios gem requires root apparently.
mojjojo has joined #ruby
Sp4rKy has joined #ruby
mjburgess has joined #ruby
CptJeanLucPicard is now known as ArchBeOS
pen has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
<Morrolan>
Compiling should never be done as root.
<shevy>
I tried to compile termios
<shevy>
I cant even get it to compile
<shevy>
termios.c:404:30: error: request for member 'f' in something not a structure or union
<shevy>
Makefile:206: recipe for target 'termios.o' failed
timonv has quit [Remote host closed the connection]
joaoh82 has joined #ruby
<banister>
shevy i set sail in a tear drop and escaped beneath the door sill, cause the smell of her perfume echoes in my head still
<shevy>
pengunix what ruby version are you using?
<banister>
shevy i see my people trying to drown the sun in weekends of whiskey sours, cause how many times can you wake up in this comic book and plant flowers?
<pengunix>
shevy: it is used by capistrano for passphrase input for private key.
<pengunix>
shevy: but I will use a ssh forward so this won't be necessary, too.
diegoviola has joined #ruby
joaoh82 has quit [Ping timeout: 252 seconds]
vpretzel has joined #ruby
r0bby_ has joined #ruby
mklappstuhl has quit [Ping timeout: 245 seconds]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: No route to host]
joaoh82 has joined #ruby
wildroman2 has joined #ruby
timonv has joined #ruby
Kar- has quit [Ping timeout: 252 seconds]
madb055 has quit [Ping timeout: 245 seconds]
Brolen has quit [Quit: Brolen]
nannes has joined #ruby
<nannes>
Hi there
<nannes>
I cannot find the package called "ruby-bundle" in debian
<WJW>
nannes, what would it be good for?
<nannes>
do you know how is it called? (sometimes distros just change name to the packages)
lowski has joined #ruby
<nannes>
WJW: To install the requireg gems for a program
<Morrolan>
Sounds like bundler.
<nannes>
yeah sorry, typo
<Morrolan>
That'd be a question for #debian, though. Did you ask in there, yet? :)
<WJW>
nannes, loading any Ruby-related thing from a package is a bad idea, to the best of my understanding.
niklasb has joined #ruby
<Morrolan>
Apart from that, just use packages.debian.org and search for "bundler" in your distro's index.
<WJW>
nannes, Use 'rbenv' to get Ruby and use 'gem' to get gems.
<WJW>
nannes, gem install bundler
<nannes>
Morrolan: Yes, I did. They told me to ask here xD
<Morrolan>
... why would they do that.
<nannes>
The same thing I told them, Morrolan, Indeed I think it's a debian issue, just like you
<nannes>
WJW: thanks
mneorr has joined #ruby
breakingthings has joined #ruby
phansch has joined #ruby
LinearInterpol has joined #ruby
<Morrolan>
And yea, if you intend to do more than just playing around with Ruby, I'd set up a ruby env which is separate from the system-provided one, too. (E.g. via rbenv, rvm, chruby, ...)
<Morrolan>
WJW: There are probably a few systems around which use it for internal scripts, instead of Perl or Python.
vlad_starkov has joined #ruby
<Morrolan>
a few distros*
<WJW>
In that case, they have a good reason to have Ruby to support those scripts.
<WJW>
Xubuntu doesn't.
<Morrolan>
Frankly if one of their users installs some software which relies on Ruby, having the package manager provide it is the way to go.
<Morrolan>
Imagine Ubuntu showing a popup "Sorry, if you want to use this software you need to install Ruby via a tool intended for devs". ;D
<Morrolan>
Their target audience would probably faint!
ambushsabre has joined #ruby
<WJW>
To date I haven't encountered a case of software being distributed that depends on Ruby except the web sites I work on with my colleagues.
mneorr has quit [Ping timeout: 252 seconds]
totalmajor has quit [Ping timeout: 260 seconds]
LeoSWE has joined #ruby
<LeoSWE>
Hello
<Morrolan>
Vagrant comes to mind. But that's about it.
<WJW>
nannes, are you installing Ruby to fulfill a dependency of some other software you are downloading, or do you want to work with Ruby yourself?
ambushsabre has quit [Ping timeout: 240 seconds]
<nannes>
WJW: The first.
postmodern has quit [Quit: Leaving]
<WJW>
nannes, in that case, the crucial question is what that other software actually requires. As Morrolan says, it might really be designed to work with the same version of Ruby, Bundler, etc. provided in packages in the distro.
wildroman2 has quit [Remote host closed the connection]
<LeoSWE>
I have a question about hosting RoR application, is it possible on a shared server of 1and1 like "performance" ?
johnyboy6000 has joined #ruby
sethen has quit [Read error: Connection reset by peer]
gregoriokusowski has quit [Quit: gregoriokusowski]
ambushsabre has joined #ruby
<nannes>
WJW: I don't know whether it actually requires specific versions of those packages, but I can say there's nothing about this written in the install page
<WJW>
LeoSWE, there is a channel #rails.
<LeoSWE>
thank you
<nannes>
Anyway, I've just installed bundler with gem, as you suggested, and then I created a simbolic link to /bin/bundle
<nannes>
Launched it, and got an error, about the environment variable
<nannes>
Should I set it some way?
<nannes>
$ bundle install
<WJW>
nannes, I may have mislead you, spoke from developer viewpoint.
<nannes>
/usr/bin/env: ruby: No such file or directory
<WJW>
nannes, it's looking for 'ruby'.
<WJW>
nannes, 'ruby' isn't in your $PATH anywhere.
<nannes>
it is
wildroman2 has joined #ruby
<WJW>
nannes, maybe PATH is getting stomped somewhere along the way?
wildroman2 has quit [Remote host closed the connection]
<nannes>
/usr/bin/ruby1.8
johnyboy6000 has quit [Remote host closed the connection]
<nannes>
do you know how is it called the env variable to set?
<nannes>
$ruby maybe? xD
<WJW>
nannes, is there /usr/bin/ruby ?
<nannes>
I mean, I don't know how to manually set it
<olivier_bK>
how i can do for install only gem for ruby ?
wildroman2 has joined #ruby
<nannes>
I have 2 ruby versions
<nannes>
1.8
<nannes>
and 1.9.1
<nannes>
I think I'll uninstall 1.9.1, since I'm using 1.8
<WJW>
nannes, it's looking for the name 'ruby' plain.
<apeiros>
1.8 is long dead
<olivier_bK>
nanashiRei, or rv use ruby 1.8
<rjhunter>
olivier_bK: I don't understand your question. What are you trying to do?
<nannes>
WJW: oh ok, I'll link it with ln -s
<olivier_bK>
rvm use ruby 1.8 ( sorry )
LeoSWE has left #ruby [#ruby]
RaCx has joined #ruby
<WJW>
olivier_bK, you want to install some gem?
<olivier_bK>
rjhunter, i would want to install only gem
<rjhunter>
olivier_bK: you want to install a gem called "only"?
phansch has quit [Remote host closed the connection]
<nannes>
ok, another error
<nannes>
$ bundle install
<nannes>
/bin/bundle:3:in `require': no such file to load -- bundler (LoadError)
<nannes>
from /bin/bundle:3
joaosa has quit [Ping timeout: 240 seconds]
razibog has joined #ruby
danshultz has joined #ruby
joaosa has joined #ruby
phansch has joined #ruby
momomomomo has joined #ruby
<rjhunter>
nannes: that means your Ruby can't find your Bundler. If they're both installed from Debian packages, that's a bit surprising.
<nannes>
no, they are not
<nannes>
I mean, not both of them
<nannes>
only ruby is
nateberkopec has joined #ruby
<WJW>
rjhunter, I tricked nannes into not installing from debian packages.
* Hanmac1
point and laugh about bundler
<rjhunter>
ah, if you're mixing and matching, they won't find each other
Hanmac1 is now known as Hanmac
<WJW>
nannes and rjhunter, I should be ashamed of myself.
<nannes>
no way WJW ;) ;) you're great!
browndawg1 has joined #ruby
<WJW>
I made you mix and match.
grep_away is now known as grep_awesome
<nannes>
Do you know if there's a way to ake them point to each other?
<nannes>
(without reinstalling)
<rjhunter>
nannes: Mix and match can work, but it's much more complicated. (playing around with RUBYPATH and similar)
aqabiz has joined #ruby
aqabiz has quit [Max SendQ exceeded]
freebs has joined #ruby
<nannes>
rubypath, ok, I'll check taht
<WJW>
nannes, in the end you may have to appeal to experts on the tool you are trying to run that depends on Ruby, and ask what they usually do to provide Ruby and bundler and such friends.
aqabiz has joined #ruby
aqabiz has quit [Max SendQ exceeded]
zipper has quit [Quit: Lost terminal]
<rjhunter>
^
tannerburson has quit [Quit: tannerburson]
<rjhunter>
nannes: What are you trying to install, out of interest?
aqabiz has joined #ruby
aqabiz has quit [Max SendQ exceeded]
senayar has quit [Remote host closed the connection]
<nannes>
WJW: I don't think they provide it into their package itself
aqabiz has joined #ruby
aqabiz has quit [Max SendQ exceeded]
<rjhunter>
Hmm, those instructions seem to imply that the Debian packages should do just fine.
<WJW>
Maybe there is a community around it or you could raise the author.
nateberkopec has quit [Ping timeout: 252 seconds]
<nannes>
rjhunter: Yes, but I have a little problem
aqabiz has joined #ruby
L8D has joined #ruby
aqabiz has quit [Max SendQ exceeded]
<nannes>
I have the old-stable debian (squeeze), and ruby-bundler is not available in it
jprovazn has quit [Quit: Leaving]
sharms has quit [Ping timeout: 240 seconds]
<rjhunter>
ahhh, in that case i'd suggest looking for a "backport" of ruby-bundler
phansch_ has joined #ruby
aqabiz has joined #ruby
mrnugget has quit [Ping timeout: 272 seconds]
aqabiz has quit [Max SendQ exceeded]
joaoh82 has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
<nannes>
rjhunter: I've already tried, it's not even available in the backports :((
sec^nd has quit [Remote host closed the connection]
zipper has joined #ruby
stryek has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
phansch has quit [Ping timeout: 245 seconds]
aqabiz has joined #ruby
sec^nd has joined #ruby
jerius has joined #ruby
<pengunix>
rbenv?
nowthatsamatt has joined #ruby
Virtualize has joined #ruby
sharms has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<rjhunter>
Can you run another server with a more up-to-date OS? It's 2014 -- you can spin up new machines in the cloud for nothing (or next to nothing) with Amazon or Heroku etc
<rjhunter>
in fact, I notice that the app you're trying to install has instructions for deploying to Heroku
wildroman2 has joined #ruby
<nannes>
I've sent an email to my provider, I'm still waiting for their reply
<nannes>
To change the operating system.
Albymig has joined #ruby
<rjhunter>
that's what's great about the cloud -- no sending email, just click the "new server" button and choose the OS you want
<shevy>
pengunix when you use those debian things, you often end up having to use things which debian modified
<nw>
but instead of the dot notation, you can use brackets if you need to have something like a hyphen in your tag name
<shevy>
for instance, by default the debian guys remove mkmf
<Takumo>
I was doing it the second way, without passing anything as I don't require the scope nw , just need to generate the exact same XML every time
<nw>
Takumo: ah, of course
<pengunix>
right
<nw>
yeah, i don't know if there's a way to do it without passing |xml|
<pengunix>
anyone here with some capistrano experience, specifically version 3?
<dagobah>
Does ruby treat the '_' variable in any special way, e.g in terms of memory.
<pengunix>
I know there is #capistrano, but it is dead.
shredding has quit [Client Quit]
jprovazn has joined #ruby
bmaland has joined #ruby
jimmyy has quit []
shredding has joined #ruby
sambao21 has joined #ruby
jrd00 is now known as jrd0
<rjhunter>
nw: interestingly, the [] method is documented as being for namespaces (but I'm pretty sure it happens to work for tag names anyway)
jrd0 is now known as jrd00
jrd00 is now known as jrd0
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<nannes>
guys, what does actually happen when I run "bundle install"? Does it read the necessary packages from a particular file in the actual folder and install them, or... anything else?
<rjhunter>
pengunix: i haven't used capistrano for a while, but i'm quite familiar with the project
spider-mario has joined #ruby
<pengunix>
rjhunter: ok, so I just found out that capistrano v3 only supports git pull
<pengunix>
rjhunter: earilier capistranos were able to create a tar.gz and upload it using sftp.
<pengunix>
*earlier
spider-mario has quit [Read error: Connection reset by peer]
<pengunix>
rjhunter: all this is not possible anymore with cap v3
<rjhunter>
nannes: it reads dependencies from the file called `Gemfile`, contacts the Rubygems server to figure out which versions to install, then installs them
<nannes>
rjhunter: oh I forgot to tell you that It was a mistake to link "bundler", indeed now I linked "bundle" that is a different executable, and the command at least started his job
wmoxam has joined #ruby
wmoxam has quit [Changing host]
wmoxam has joined #ruby
B064F377 has quit [Ping timeout: 245 seconds]
<rjhunter>
nannes: oh yeah, sorry, the executable is called "bundle", the library is called "bundler"
<rjhunter>
pengunix: capistrano's "git" scm (the default) will execute commands like `git clone foo`. You can map the git command to, say, `sudo my-other-git` and the result will be `sudo my-other-git clone foo`
B064F377 has quit [Ping timeout: 245 seconds]
<rjhunter>
pengunix: capistrano no longer deals with sftp or scp or anything other than running commands through ssh (and locally)
Landshark753 has quit [Ping timeout: 240 seconds]
B064F377 has joined #ruby
nateberkopec has joined #ruby
_HolyCow has quit [Ping timeout: 240 seconds]
l0gicpath has left #ruby [#ruby]
larissa has quit [Quit: Leaving]
meatherly has quit [Read error: Connection reset by peer]
<rjhunter>
pengunix: you can use SSHKit to copy thing up if you want. Capistrano uses SSHKit to run commands, so they work well together.
meatherly has joined #ruby
samsonasu has joined #ruby
<pengunix>
rjhunter: So I want to let it create a tar.gz, upload it using SFTP and extracting it on the target, the symlink stuff can stay the same afterwards.
terrellt has quit [Ping timeout: 260 seconds]
devdazed has joined #ruby
<rjhunter>
pengunix: that sounds like a different "scm" for capistrano
wildroman2 has quit [Remote host closed the connection]
Landshark753 has joined #ruby
AlSquire has joined #ruby
l0gicpath has joined #ruby
wmoxam has quit [Quit: leaving]
wmoxam has joined #ruby
ehc has joined #ruby
B064F377 has quit [Ping timeout: 240 seconds]
h_kon has quit [Remote host closed the connection]
centipedefarmer has quit [Remote host closed the connection]
B064F377 has joined #ruby
ahawkins has quit [Quit: leaving]
jamesaxl has joined #ruby
terrellt has joined #ruby
h_kon has joined #ruby
popl has quit [Ping timeout: 272 seconds]
<rjhunter>
pengunix: can I ask why you want a tar.gz involved at all?
Landshark753 has quit [Ping timeout: 240 seconds]
phutchins has joined #ruby
snath has quit [Ping timeout: 240 seconds]
shredding has quit [Quit: shredding]
centipedefarmer has joined #ruby
phansch_ has quit [Ping timeout: 252 seconds]
shredding has joined #ruby
<pengunix>
rjhunter: yes, currently it is requires to have a repository server and which allows inbound connections for git pull
Landshark753 has joined #ruby
<pengunix>
rjhunter: in many deployment scenarios the customer only got a simple vserver and there is no repository server which can be connected to.
momomomomo has quit [Quit: momomomomo]
Landshark753 has quit [Max SendQ exceeded]
<pengunix>
rjhunter: so instead of git pull I want rather a git push from the deployment system or, what I find even more elegant, a simple sftp upload using a tar.gz
<pengunix>
rjhunter: because git wasn't really made for deployment stuff
<pengunix>
rjhunter: jenkins calls capistrano at the end as deployment job
vpretzel has left #ruby [#ruby]
<pengunix>
rjhunter: the whole stuff resides already in a folder then
Landshark753 has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
dagnachew has joined #ruby
dagnachew has quit [Max SendQ exceeded]
arturaz has quit [Ping timeout: 240 seconds]
Landshark753 has quit [Max SendQ exceeded]
dagnachew has joined #ruby
predator117 has quit [Ping timeout: 272 seconds]
predator117 has joined #ruby
enebo has joined #ruby
Landshark753 has joined #ruby
burlyscudd has quit [Quit: Leaving.]
Landshark753 has quit [Max SendQ exceeded]
kalamazoo has joined #ruby
jameshyde has joined #ruby
centipedefarmer has joined #ruby
lyanchih has joined #ruby
Landshark753 has joined #ruby
Landshark753 has quit [Max SendQ exceeded]
h_kon has quit [Remote host closed the connection]
mechanicles_ has joined #ruby
Landshark753 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rjhunter>
pengunix: I don't think capistrano v3 will do what you directly
Landshark753 has quit [Max SendQ exceeded]
<rjhunter>
*what you want
<rjhunter>
you could use ssh port forwarding to let the target hosts access the repository via the deploy host
m8 has joined #ruby
iamjarvo has quit [Remote host closed the connection]
Landshark753 has joined #ruby
tt1187 has quit [Remote host closed the connection]
motto has quit [Ping timeout: 245 seconds]
tt1187 has joined #ruby
iamjarvo has joined #ruby
<rjhunter>
or you could use a couple of Before hooks to create/upload/extract a git tarball, and leave `git pull` to point at the results
eregon_ is now known as eregon
Chillectual has joined #ruby
<rjhunter>
someone on the mailing list might have a better suggestion to achieve what you want
blandflakes has joined #ruby
skulker has joined #ruby
jameshyde has quit [Ping timeout: 260 seconds]
LinearInterpol has quit [Disconnected by services]
Chillectual is now known as LinearInterpol
m8 has quit [Max SendQ exceeded]
m8 has joined #ruby
skulker has quit [Remote host closed the connection]
<pengunix>
rjhunter: yes, this 'upload the git repository to target and then let capistrano pull from it' approach is inefficient.
jedimind has joined #ruby
<pengunix>
rjhunter: and there aren't tasks anymore but just hooks, right?
Chillectual has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
lyanchih has quit [Ping timeout: 240 seconds]
LinearInterpol has quit [Disconnected by services]
Chillectual is now known as LinearInterpol
B064F377 has quit [Ping timeout: 252 seconds]
Landshark753 has quit [Ping timeout: 240 seconds]
B064F377 has joined #ruby
<rjhunter>
pengunix: my understanding is that it's all rake tasks now, so all the regular rake rules apply
wildroman2 has joined #ruby
iamjarvo_ has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<pengunix>
rjhunter: is there somewhere a table or diagram for capistrano v3 where all tasks are listed / described?
fire has quit [Quit: WeeChat 0.4.1]
wildroman2 has joined #ruby
<rjhunter>
pengunix: rake -T
coffeina has joined #ruby
<rjhunter>
pengunix: or rather, cap -T
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
kcombs has joined #ruby
axl_ has joined #ruby
momomomomo has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
Landshark753 has joined #ruby
Landshark753 has quit [Max SendQ exceeded]
cow_ has quit [Remote host closed the connection]
Landshark753 has joined #ruby
cow_ has joined #ruby
<pengunix>
rjhunter: Can I override an existing task?
<rjhunter>
pengunix: yup, all the rake rules apply
RaCx has joined #ruby
grzywacz has joined #ruby
cow__ has joined #ruby
<pengunix>
rjhunter: ok, can I also inherit from an existing task so I don't have to copy everything?
<maasha>
rjhunter: apeiros I suppose the answer is that the Enumerator is modified while being iterated leading to an endless loop
jmo has joined #ruby
_maes_ has joined #ruby
shredding has quit [Quit: shredding]
mneorr has joined #ruby
ankov has quit [Remote host closed the connection]
Landshark753 has quit [Ping timeout: 240 seconds]
fuhgeddaboudit has joined #ruby
jetblack has joined #ruby
fedesilva has joined #ruby
B064F377 has quit [Ping timeout: 252 seconds]
jmo has quit [Ping timeout: 260 seconds]
Megtastique has joined #ruby
michael_lee has joined #ruby
mehlah has joined #ruby
figgleberry has joined #ruby
Landshark753 has joined #ruby
B064F377 has joined #ruby
ankov has joined #ruby
Landshark753 has quit [Read error: Connection reset by peer]
ankov has quit [Read error: Connection reset by peer]
mneorr has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
Landshark753 has joined #ruby
maasha has quit [Ping timeout: 272 seconds]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
<shevy>
nannes real men pick the manual way
zxd has quit [Ping timeout: 272 seconds]
ankov has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
ankov has quit [Read error: Connection reset by peer]
jamesaanderson has joined #ruby
pablovilas has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 240 seconds]
<rjhunter>
shevy: as true as that might be, nannes isn't trying to develop in ruby. he or she is trying to run an application that happens to be written in ruby.
<shevy>
yeah, he fell into the debian trap
CalimeroTeknik_ is now known as CalimeroTeknik
<shevy>
people should really use distributions where you can use any version you'd like to
<shevy>
like NixOS
<shevy>
or gobolinux :>
zxd has joined #ruby
tfitts has quit [Remote host closed the connection]
tfitts has joined #ruby
joaoh82 has joined #ruby
deception has joined #ruby
lsmola_ has quit [Ping timeout: 246 seconds]
B064F377 has quit [Ping timeout: 272 seconds]
B064F377 has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ankov has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
mojjojo has joined #ruby
LinearInterpol has joined #ruby
B064F377 has quit [Ping timeout: 240 seconds]
drago777 has joined #ruby
B064F377 has joined #ruby
Guest57640 is now known as banghouse
jamesaxl has quit [Ping timeout: 252 seconds]
thiago__ has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Write error: Connection reset by peer]
iamjarvo has joined #ruby
Jake232 has joined #ruby
fuhgeddaboudit has joined #ruby
bean has joined #ruby
digital-ghost has joined #ruby
mojjojo has quit [Quit: mojjojo]
jamesaanderson has joined #ruby
bentonrr has joined #ruby
jameshyde has joined #ruby
aspires has joined #ruby
michael_lee has quit [Ping timeout: 240 seconds]
wildroman2 has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
Landshark753 has joined #ruby
Landshark753 has quit [Max SendQ exceeded]
Diranged has joined #ruby
Landshark753 has joined #ruby
mojjojo has quit [Client Quit]
Landshark753 has quit [Max SendQ exceeded]
<Diranged>
Hey anyone have any tips for making a 'rake spec' command that only runs rake-spec on files inside of directories that have been modified (as a git pre-commit check)
wildroman2 has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 245 seconds]
Landshark753 has joined #ruby
<Diranged>
ie .. i touched /modules/foo/manifest/mypuppetclass.pp … so run the spec tests in /modules/foo/**/*_spec.rb
Landshark753 has quit [Max SendQ exceeded]
mneorr has quit [Ping timeout: 265 seconds]
Landshark753 has joined #ruby
senj has quit [Ping timeout: 240 seconds]
mojjojo has joined #ruby
interactionjaxsn has quit [Ping timeout: 240 seconds]
sec^nd has quit [Ping timeout: 240 seconds]
tannerburson has quit [Quit: tannerburson]
jamesaanderson has joined #ruby
snath has quit [Quit: Leaving]
jamesaanderson has quit [Max SendQ exceeded]
snath has joined #ruby
Hanmac1 has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
mojjojo has quit [Client Quit]
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
mityaz has quit [Quit: See ya!]
burlyscudd has joined #ruby
jamesaanderson has joined #ruby
jamesaanderson has quit [Max SendQ exceeded]
Hanmac has quit [Ping timeout: 265 seconds]
B064F377 has quit [Ping timeout: 245 seconds]
drago777 has quit [Ping timeout: 240 seconds]
jamesaanderson has joined #ruby
Virtualize has quit [Quit: Leaving...]
kalamazoo has quit [Remote host closed the connection]
larissa has joined #ruby
skulker has quit [Remote host closed the connection]
aganov has quit [Quit: Leaving]
Virtualize has joined #ruby
drago777 has joined #ruby
lsmola_ has joined #ruby
kaldreno_ has joined #ruby
ambushsabre has quit [Quit: rip]
ffranz has quit [Quit: Leaving]
threesome has joined #ruby
derebos has quit [Ping timeout: 252 seconds]
freezey has joined #ruby
kaldrenon has quit [Ping timeout: 260 seconds]
IceDragon has joined #ruby
krz has quit [Ping timeout: 247 seconds]
fuhgeddaboudit has joined #ruby
nemesit|znc has quit [Ping timeout: 246 seconds]
RaCx_ has joined #ruby
ambushsabre has joined #ruby
interactionjaxsn has joined #ruby
RaCx_ has quit [Client Quit]
interact_ has joined #ruby
motto has joined #ruby
RaCx_ has joined #ruby
krz has joined #ruby
RaCx has quit [Ping timeout: 245 seconds]
RaCx_ is now known as RaCx
maletor has quit [Quit: Computer has gone to sleep.]
Coolhand has joined #ruby
m8 has quit [Ping timeout: 272 seconds]
r0bby_ has quit [Excess Flood]
dann_ has joined #ruby
huttan has quit [Read error: Connection reset by peer]
huttan has joined #ruby
r0bby_ has joined #ruby
ankov has quit [Remote host closed the connection]
RoryHughes has joined #ruby
interactionjaxsn has quit [Ping timeout: 245 seconds]
FooBarWidget has joined #ruby
<FooBarWidget>
I'm trying to debug some segmentation faults in the ruby interpreter
Tamal has joined #ruby
timonv has quit [Remote host closed the connection]
<FooBarWidget>
it seems to crash on totally innocent code
Coolhand has quit [Client Quit]
<FooBarWidget>
for example it seems to crash in 'CFUNC :loop'
kalamazoo has joined #ruby
niharvey has joined #ruby
<FooBarWidget>
there is no evidence so far that native extensions are the culprit. the segmentation fault backtraces never show any native extensions
<FooBarWidget>
how do I find out why my ruby interpreter segfaults?
burlyscudd has quit [Quit: Leaving.]
RoryHughes has quit [Client Quit]
hl has joined #ruby
mark_locklear has joined #ruby
<Morrolan>
FooBarWidget: Might want to give #ruby-lang a shot, too. I *think* there you'll find more people who are familiar with the inner workings of Ruby.
<Morrolan>
Worst case, try the mailing list.
derebos has joined #ruby
crashx has quit [Quit: crashx]
kevind_ has joined #ruby
huttan has quit [Ping timeout: 245 seconds]
Sthebig has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
Megtastique has quit []
ffranz has joined #ruby
law has joined #ruby
huttan has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
wildroman2 has quit [Remote host closed the connection]
kevind has quit [Ping timeout: 245 seconds]
kevind_ is now known as kevind
sambao21 has joined #ruby
pskosinski has joined #ruby
zeade has joined #ruby
mneorr has joined #ruby
flubba__ has quit [Remote host closed the connection]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
flubba has joined #ruby
ehc has quit [Quit: ehc]
sharms has joined #ruby
wildroman2 has joined #ruby
Kar- has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
<dann_>
what's the easy way to turn "example" into "e x a m p l e"
mbytes has joined #ruby
maletor has joined #ruby
drago777 has joined #ruby
<FooBarWidget>
example".split("").join(" ")
niharvey has quit [Ping timeout: 252 seconds]
<Hanmac1>
dann_: "example".chars.join(' ') #=> "e x a m p l e"
burlyscudd has joined #ruby
<DouweM>
Hanmac1: NoMethodError: undefined method `join' for #<Enumerator: "example":chars>
<Hanmac1>
DouweM: depends on the ruby version
<Hanmac1>
yours it to old ;P
Hanmac1 is now known as Hanmac
<DouweM>
fair point :P
Virtualize has quit [Quit: Leaving...]
<apeiros>
"example".gsub(/.(?!\z)/, '\0 ')
* Morrolan
stabs apeiros
mansi_ has quit [Read error: Connection reset by peer]
troessner has quit [Read error: Connection reset by peer]
mansi has joined #ruby
troyready has joined #ruby
dagobah has quit [Remote host closed the connection]
maletor has quit [Client Quit]
maletor has joined #ruby
Megtastique has joined #ruby
Vivekananda has quit [Read error: Connection reset by peer]
dann_ has quit [Ping timeout: 272 seconds]
* apeiros
dies a horribly painful and slow death
<apeiros>
whyyyyyyyy?!?
mklappstuhl has joined #ruby
* waxjar
screams dramatically
freezey has quit [Remote host closed the connection]
<Morrolan>
But don't you do such a thing again. :<
bentonrr has quit [Read error: Operation timed out]
kung has quit [Read error: Connection reset by peer]
drago777 has quit [Ping timeout: 240 seconds]
cameronbarton has quit [Quit: cameronbarton]
<apeiros>
murdered by a fellow countryman…
bentonrr has joined #ruby
<apeiros>
and the corpse mocked by a bandaid
kung has joined #ruby
<apeiros>
can it get worse?
* Morrolan
grins
dogweather has quit [Remote host closed the connection]
danshultz has quit [Read error: Connection reset by peer]
kalamazoo has quit [Remote host closed the connection]
dogweather has joined #ruby
mjburgess has quit [Ping timeout: 245 seconds]
danshultz has joined #ruby
mklappstuhl has quit [Ping timeout: 245 seconds]
drago777 has joined #ruby
croaky has joined #ruby
g0bl1n has joined #ruby
Ven-2 has joined #ruby
<Ven-2>
Hello
psyl0n has quit [Remote host closed the connection]
EngierkO has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
sharms has quit [Ping timeout: 240 seconds]
<apeiros>
yes, yes it can get worse! my solution is even slower :(
Gonzih has quit [Ping timeout: 272 seconds]
dogweather has quit [Ping timeout: 240 seconds]
<Ven-2>
How i can found in Array n=['a','j','ja','o'] is starting of napis='jaki' . function for found index in n Array '2' (if i search better in length)
Virtualize has joined #ruby
dann_ has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
thumpba has joined #ruby
sharms has joined #ruby
wallerdev has joined #ruby
gregoriokusowski has joined #ruby
kalamazoo has joined #ruby
dblessing has joined #ruby
RaCx has quit [Read error: Connection reset by peer]
krz has quit [Ping timeout: 260 seconds]
RaCx has joined #ruby
<dann_>
browser crashed
RaCx has quit [Client Quit]
drumusician has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
<dann_>
"example".chars is an Enumerable, so you have to convert it to an array before using join(' ')
<apeiros>
dann_: only in "old" rubies ;-)
krz has joined #ruby
<dann_>
like so: "example".chars.to_a.join(' ') #=> "e x a m p l e"
<dann_>
oh yeah
<DouweM>
When did that change?
maletor has joined #ruby
<dann_>
I'm using 1.9.3
<apeiros>
I think in 2.0
andrewhl has joined #ruby
<dann_>
dang
<apeiros>
might be it only changed in 2.1, not sure
jmo has joined #ruby
<dann_>
do any of you know if gosu works on 2.0?
<DouweM>
apeiros: where's that defined? Can't find it on the Enumerator or Enumerable docs pages
mneorr has quit [Remote host closed the connection]
<apeiros>
DouweM: String#chars?
Eiam has joined #ruby
<DouweM>
ooh
<DouweM>
Returns an array now rather than an enumeator
<apeiros>
ok, 2.0 already returns an Array for String#chars
mneorr has joined #ruby
<DouweM>
I thought #join would be on enumerator
<apeiros>
#each_char still returns an enumerator
<DouweM>
Right. Makes more sense
<dann_>
what's the point of enumerators anyway
<apeiros>
DouweM: whaaat? noooo, that'd make no sense :)
<dann_>
enlighten me
<DouweM>
apeiros: I'm saying the >=2.0 situation makes sense ;)
bentonrr has quit [Remote host closed the connection]
<DouweM>
apeiros: with #each_char returning an enumerator and #chars an array
<apeiros>
ah
<apeiros>
yeah
ephemerian has quit [Quit: Leaving.]
ace_striker has quit [Ping timeout: 272 seconds]
Kar- has quit [Ping timeout: 265 seconds]
niharvey has joined #ruby
jmo has quit [Ping timeout: 240 seconds]
<dann_>
looking into the logs of what I missed, «apeiros: "example".gsub(/.(?!\z)/, '\0 ') »
jonjames has quit [Quit: Leaving]
<dann_>
using that
ephemerian has joined #ruby
law has quit [Quit: leaving]
geggam has joined #ruby
Soda has quit [Read error: Connection reset by peer]
mneorr has quit [Ping timeout: 241 seconds]
cameronbarton has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
subbyyy has joined #ruby
rjhunter has joined #ruby
totalmajor has joined #ruby
h0rrorvacui has joined #ruby
mehlah has quit [Quit: Leaving...]
ffranz has quit [Quit: Leaving]
Virtualize has quit [Quit: Leaving...]
drago777 has joined #ruby
mbytes has quit [Remote host closed the connection]
<apeiros>
dann_: that's actually slower than .split("").join(" ")
flubba has quit [Remote host closed the connection]
<Hanmac>
gosu? ah my old friend ... i dropped it after i found a better gl lib with more functions
<apeiros>
Hanmac: small bugs - you don't test for "starts with", only "contains", and he said "index"
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ffranz has joined #ruby
ebobby has joined #ruby
mansi has quit [Read error: Connection reset by peer]
brennanMKE has quit [Remote host closed the connection]
mansi has joined #ruby
rickruby has joined #ruby
DrShoggoth has quit [Quit: Leaving]
brennanMKE has joined #ruby
w4pm has joined #ruby
timonv has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
sharms has quit [Ping timeout: 240 seconds]
<dann_>
apeiros: :(
psyl0n has joined #ruby
dr_bob has quit [Quit: Leaving.]
sharms has joined #ruby
Sthebig has joined #ruby
lukec has quit [Quit: lukec]
Sthebig has quit [Changing host]
Sthebig has joined #ruby
jhaals has joined #ruby
drago777 has joined #ruby
jameshyde has joined #ruby
_bart has joined #ruby
totalmajor has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
brennanM_ has joined #ruby
burlyscudd has quit [Quit: Leaving.]
totalmajor has joined #ruby
onewheelskyward_ is now known as onewheelskyward
sambao21 has quit [Quit: Computer has gone to sleep.]
totalmajor has quit [Read error: Connection reset by peer]
brennanMKE has quit [Read error: Connection reset by peer]
carlyle has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
totalmajor has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
Megtastique has quit []
Kar- has quit [Ping timeout: 260 seconds]
dapz has quit [Ping timeout: 245 seconds]
michael_lee has quit [Quit: Ex-Chat]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
tannerburson has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
jameshyde has quit [Ping timeout: 272 seconds]
zxd has quit [Ping timeout: 272 seconds]
sambao21 has quit [Client Quit]
sharms has joined #ruby
Virtualize has joined #ruby
brennanM_ has quit [Ping timeout: 246 seconds]
carlyle has quit [Ping timeout: 246 seconds]
drago777 has joined #ruby
RaCx has joined #ruby
RaCx has quit [Client Quit]
rehat has quit [Remote host closed the connection]
<Ven-2>
Hanmac, thanks
phus1on_ is now known as phus1on
<Ven-2>
Hanmac, tell me another problem
Landshark753 has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
<Ven-2>
Hanmac, I have string = 'jakis text ten test is good' How optimal cuting them to a minimal substring?
smathieu has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
carraroj has quit [Quit: Konversation terminated!]
<Ven-2>
'jakis text ten test is good' = 'ja-k-is- -te-xt- -te-n- ...
smathieu has joined #ruby
mehlah has joined #ruby
Landshark753 has joined #ruby
Landshark753 has quit [Max SendQ exceeded]
ce_afk is now known as cescalante
Chillectual has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
dagnachew has quit [Quit: Leaving]
guinslym has joined #ruby
carraroj has joined #ruby
LinearInterpol has quit [Disconnected by services]
Chillectual is now known as LinearInterpol
mjburgess has joined #ruby
<Hanmac>
Ven-2: 'jakistexttentestisgood'.scan(Regexp.union(%w{ja k is te xt n st g o d})) #=> ["ja", "k", "is", "te", "xt", "te", "n", "te", "st", "is", "g", "o", "o", "d"]
RaCx has joined #ruby
<Ven-2>
Not exactly, I no have any substring
ace_striker has quit [Ping timeout: 272 seconds]
<Ven-2>
I need optimal
Advocation has joined #ruby
<Ven-2>
array of it
smathieu has quit [Ping timeout: 246 seconds]
brennanMKE has joined #ruby
noop has joined #ruby
<terrellt>
"Optimal"?
Kar- has joined #ruby
dogweather has joined #ruby
<Ven-2>
Hanmac, I need all combination, all posibility of cut them (recurection?)
iamjarvo has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 272 seconds]
<Ven-2>
optimal for length (minimal element of substring)
carraroj has quit [Client Quit]
<Ven-2>
terrellt, yes optimal
g0bl1n has quit [Ping timeout: 245 seconds]
tylersmith has quit [Ping timeout: 240 seconds]
<Ven-2>
how cut string for every possibility of substring
TheHodge has left #ruby [#ruby]
interact_ has quit [Remote host closed the connection]
<shevy>
your coworker must be as impatient as Hanmac here - Hanmac also has 2.1.1
<dann_>
maybe 2.1.1 implements time travel
<shevy>
I am on 1.9.3something :(
<dann_>
same here shevy
<shevy>
hehe
carraroj has joined #ruby
<terrellt>
We just locked a project to >= 2.0.0. Just because we wanted prepend.
<Ven-2>
terrellt, any idea?
<terrellt>
Ven-2: I don't understand what you want, so I can't really help.
mklappstuhl has quit [Read error: No route to host]
Guest23844 has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
croaky has quit [Read error: Connection reset by peer]
FooBarWidget has left #ruby [#ruby]
stkowski_ has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
stkowski_ has quit [Client Quit]
kalamazoo has quit [Ping timeout: 264 seconds]
<Ven-2>
terrellt, this is simple I need cut string similar this: 'jakistexttentestisgood' = 'jak-is-te-xt-te-n-te-st-is-good' optimal cut string for minimal count of elements
<terrellt>
optimal cut string for minimal count of elements
<terrellt>
[10:28] * Landshark753 (~textual@119.70-40-226.netnet.net) has joined #ruby
<terrellt>
Bah
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<terrellt>
I don't know what "optimal cut string for minimal count of elements" means.
<shevy>
Ven-2 this was no explanation man ;)
<Ven-2>
minimal element in output, max length of this element
<shevy>
nope, it still was no explanation
* Ven-2
my english is bad ;(
<shevy>
j-a-k-i-s-t-e etc...
<apeiros>
Ven-2: don't say it's simple if you couldn't solve it yourself :-p
<shevy>
that's minimal element and max length too
drago777 has joined #ruby
mark_locklear has quit [Remote host closed the connection]
<Ven-2>
shevy, is is twice in first string
<shevy>
hehe
<Ven-2>
'te' too
<shevy>
te is
<shevy>
actually three times
noop has quit [Ping timeout: 246 seconds]
dogweather has joined #ruby
croaky has joined #ruby
<Ven-2>
apeiros, it simple to undestuud but dificult to implement. in my opinion i need search all combination.
noop has joined #ruby
r_s has joined #ruby
dann__ has joined #ruby
<terrellt>
Oh, wow, that's not simple. I think I get it. You want to split a string in such a way that for every element s in the array that element appears the least number of times possible.
gja has joined #ruby
<terrellt>
-Why-
<Ven-2>
Please tell me HOW i can cut my string in every possible combination, and get optimal
dann__ is now known as weenle
OdNairy has joined #ruby
deception has quit [Read error: Connection reset by peer]
31NAAG89Y has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
dann_ has quit [Ping timeout: 272 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
ankov has joined #ruby
<Eiam>
yeah I don't understand the question
ankov has quit [Remote host closed the connection]
<Eiam>
I don't see how 'jak-is-te-xt-te-n.." is an "optimal" cut of anything
_bart has quit []
<Eiam>
it looks arbitrary, or like it requires understandings of phonograms or something
<Ven-2>
Eiam, ok, tell me what i can show all possible output
<Eiam>
wtf
<Ven-2>
HOW i can cut my string in every possibility substring
<Eiam>
Ven-2: what is the logic that determines what the hell a substring is!
<Eiam>
Ven-2: what rule dictates that you cut "isate" on "is" and "ate" ?
noop has quit [Ping timeout: 246 seconds]
<Eiam>
because it looks 100% arbitrary to me.
<Ven-2>
substring is= maximum of length substring
ewnd9 has quit [Ping timeout: 252 seconds]
<shevy>
wat
<shevy>
maximum is: 'isatestornotatext' == 'isatestornotatext'
ehc has joined #ruby
<Eiam>
Ven-2: no, that makes no sense.
<Ven-2>
i need cut string in minimal element , each element will be largest to posibility)
<shevy>
what does this mean "largest to possibility"... what possibility
<terrellt>
Ven-2: What's your native language?
bricker has joined #ruby
<Ven-2>
Polish
<weenle>
Ven-2: maybe what you need is simply not possible in regex
<terrellt>
Any translators up in here?
falkn0r has joined #ruby
<shevy>
matti speaks polish
<Eiam>
Ven-2: a substring is a portion of another string. A "substring" cannot be the "maximum length substring" because then it would be "the whole string"
<shevy>
matti, Ven-2 tries to say something in english
<matti>
What for?
nanoyak has joined #ruby
<Ven-2>
How to divide a string optimally due to the length of the elements. Yes, to the number of elements as small as possible and at the same time to each element was the longest as possible. W jaki sposób podzielic string optymalnie ze względu na długość elementów. Tak, by ilośc elementów była jak najmniejsza i jednocześnie aby kazdy element był najdłuzszy jak to tylko jest możliwe.
<shevy>
there it is
lsmola_ has quit [Ping timeout: 245 seconds]
JohnBat26 has joined #ruby
<shevy>
matti can you babelfish this to us please :>
<matti>
No.
<matti>
Go on Google Translate.
<Ven-2>
Eiam, no whole, because number of substring is 1 not > than one
kep has joined #ruby
<Eiam>
w/e, paying work to do now.
<Eiam>
Ven-2: I'm sorry dude I don't understand the rules you are trying to define
<shevy>
matti it was like 20 years since I last played baldur's gate
<matti>
20?
<qurve>
Hey all, very long time ruby/rails developer, but have never authored my own gem and I need to: Does anyone have any suggested "Read this before you build your first gem"
<matti>
shevy: U NUTS?
<matti>
;]
Galgorth has joined #ruby
<Morrolan>
Only plaid through that one once, a long time ago. :)
<qurve>
Mostly looking for best practices, common pitfalls.
<shevy>
time passes by quickly man
<matti>
shevy: Old git.
<matti>
shevy: That makes me an ancient git.
<shevy>
qurve nah, start doing it. write a .gemspec
<qurve>
Rad.
<shevy>
qurve hehe
<shevy>
the do-it-yourself route is more painful but you learn more that way
<matti>
Morrolan: I never finished it back then...
<qurve>
Yeah, I usually just go with it and learn along the way.
subbyyy has joined #ruby
<matti>
Morrolan: Since BG:EE supports modern hardware, I took upon the task.
<shevy>
qurve did you already write a file that details usage example of your gem?
<matti>
Morrolan: ;]
bgy has joined #ruby
mtraptor4 has joined #ruby
aspiers_ has joined #ruby
pipecloud has joined #ruby
mjburgess has joined #ruby
Taranis has joined #ruby
bluehavana has joined #ruby
bricker has joined #ruby
ereslibre_laptop has joined #ruby
JStoker has joined #ruby
lupine has joined #ruby
rickruby has joined #ruby
jokke has joined #ruby
Guest85414______ has joined #ruby
z has joined #ruby
ckrailo has joined #ruby
<qurve>
Sometimes there's a few "OK, you're going to screw up X, just don't try to do Y"
<shevy>
also do you have specified all dependencies of your gem already
<Morrolan>
matti: Yea, it's a nice revamp.
bricker has quit [Quit: leaving]
<Morrolan>
Though the ingame store for characters did annoy me a tad.
<shevy>
qurve and the directory structure may be important as well, depending on whether you use tests or specs that is
<Morrolan>
But there's a bunch of nifty additions.
<qurve>
That is the next step, in my case this is an internal gem that is basically just a custom thor setup.
<mereghost>
qurve: not really.
Diranged has left #ruby [#ruby]
<shevy>
release early, release often!
bricker has joined #ruby
<shevy>
release as if your internal is in fact the whole world audience!
sid_ has quit [Excess Flood]
<qurve>
Agreed 100%
drumusician has joined #ruby
<qurve>
I document all my own code and I'm a one man shop :)
<qurve>
Nothing is worse than looking at code you write 6 months ago.
<shevy>
yeah
jhaals has quit [Ping timeout: 240 seconds]
<shevy>
and your own code confuses you
<matti>
Morrolan: Hehe
khismetix has joined #ruby
<mereghost>
Nothing is worse than looking at the code you wrote last week. =/
<matti>
Morrolan: BG and Mass Effect are my all time favourite.
<shevy>
happens to me right now, I am trying to turn an old project into a gem... cfdg... it does fancy things like http://www.contextfreeart.org/gallery/ ...
<Morrolan>
Mass Effect is very nice too, yes.
<shevy>
and my own old code confuses me and makes me angry
ankov has quit [Remote host closed the connection]
<shevy>
then I imagine that this code was not written by me, instead matti wrote it. then I am not as angry anymore, I just wonder at the amount of sheer incompetence in these files!!!
khismetix is now known as npq101
<mereghost>
shevy: hahaha
Megtastique has quit []
<Morrolan>
Is that your revenge for him not providing you with the desired polish-on-polish action, shevy? ;)
cameronbarton has quit [Quit: cameronbarton]
bentonrr has joined #ruby
jameshyde1 has joined #ruby
jameshyde1 has quit [Max SendQ exceeded]
sid_ has joined #ruby
<qurve>
Thanks again guys.
croaky has joined #ruby
<shevy>
Morrolan nah, we have a long past relationship, he is like my ex now
qurve has quit [Quit: ChatZilla 0.9.90.1 [Firefox 26.0/20131205075310]]
* shevy
cuddles matti
<shevy>
I'd wish he would code in ruby though :<
<Eiam>
read my own code 6 months later? please, that tool will have been torn down and execs will ask for something new
byprdct has joined #ruby
razibog has joined #ruby
<Eiam>
why document or unit test any of it!
* Eiam
sobs in the corner
* Morrolan
grins
npq101 has left #ruby [#ruby]
<Morrolan>
Look at it another way - you'll never be in danger of loosing your job, there's always work left to do.
<shevy>
6 months later is ok
<Eiam>
oh ain't that the truth, and thats totally *without* any code work!
<shevy>
6 years later is dreadful
byprdct has joined #ruby
<Eiam>
nah I'll never look at a piece of code that old
<Eiam>
ever.
Morrolan has left #ruby ["Parting..."]
Morrolan has joined #ruby
Kricir has joined #ruby
<shevy>
Eiam I lately discovered one reason why testing is actually useful
<Eiam>
software process changes too fast around here
drago777 has quit [Ping timeout: 240 seconds]
<shevy>
not because of finding bugs or ensuring that it works
<shevy>
but, when I want to refactor, to actually remind me what functionality I used to have (10 years ago...)
Czupa has joined #ruby
<Eiam>
shevy: sure, so when I do a huge refactor because everyone changed their mind once they got what they asked for, I can refactor with confidence! =)
ankov has joined #ruby
<Eiam>
I keep meaning to write out a list of "lessons learned from confident ruby" so i can refer to it as I code
<ericwood>
ugh I can't keep track of which channel I'm in
<shevy>
I am porting an old project and I already lost quite a lot of things I once was able to do with it... but I can not remember what it was, I did not write everything down back then :(
<ericwood>
just tried answering a JS question in ruby
<ericwood>
then realized it was #javascript
<matti>
shevy: Cuddles?
<shevy>
Eiam yeah, it may also be related to how large a project is. for small projects, I just never seem to run into the sheer amount of problems I end up with when doing larger projects
<popl>
#firstworldanarchy
Solnse has quit [Quit: Leaving.]
<shevy>
matti no not now, I have a headache
<Eiam>
yeah I don't think I really have 'large" projects I guess
<Eiam>
I used to have a big ass obj-c app that was like 8 years old
<shevy>
Eiam define large :)
<Eiam>
that sucked
<matti>
shevy: LOL
<shevy>
I start at "more than one file" lately :D
<matti>
shevy: I want divorce.
RaCx has joined #ruby
<shevy>
or perhaps... less than 500 lines of code. hmm
<Eiam>
most of my code/files is view's anyway
<shevy>
matti ok but I will be sad, and socially isolated for a while
<Eiam>
lots of haml
<Eiam>
just visualizing the same data in lots of different ways mostly
maletor has quit [Quit: Computer has gone to sleep.]
<shevy>
hmm
jhaals has joined #ruby
<Eiam>
by team, due date, assignee, schedule, so on
<shevy>
I guess you work in a very specialized environment
croaky has quit [Ping timeout: 262 seconds]
<mereghost>
shevy: "Large project" is relative to its complexity.
<shevy>
mereghost how large is your largest :D
carraroj has joined #ruby
<waxjar>
we all know i got the largest
<Eiam>
shevy: hmm.. as specialized as "shipping software to millions" gets I suppose
<Eiam>
shevy: which I'm sure plenty of companies do
<shevy>
whoa
nannes has quit [Read error: Connection reset by peer]
jamesaxl_ has quit [Ping timeout: 240 seconds]
<terrellt>
Eiam: Which software is this?
<mereghost>
shevy: I actually have no idea. Currently I'm working on something that is approaching 50k lines of code spread between multiple libs.
<mereghost>
shevy: And it's like 20% of the full project.
<shevy>
wow
asobrasil has left #ruby [#ruby]
maletor has joined #ruby
jamesaxl_ has joined #ruby
<Ven-2>
how I can cut from begining of string , variable? str='this is the thing'; z='th' ; how cut only first 'th' from variable 'z'
<terrellt>
You know, that sounds like a lot, but I don't think 50k is that ridiculous.
<Eiam>
I don't even count lines of code, or pay attention to it =0
croaky has joined #ruby
<terrellt>
Eiam: Right.
<mereghost>
terrellt: And it isn't. =)
<shevy>
I think my largest standalone project is at 9000 lines, but including newlines and a lot of comments and some yaml files usually
larissa has quit [Quit: Leaving]
derebos has quit [Ping timeout: 260 seconds]
drago777 has joined #ruby
<terrellt>
Eiam: If I start counting lines somebody above me will hear and I'll get "why not more lines? Hmmm?"
bean has joined #ruby
<mereghost>
We don't use this metric. The thing is that the amount of stuff that need to be generated on the fly is pretty high.
<Eiam>
terrellt: operating systems and software updates to them
weenle has quit [Ping timeout: 272 seconds]
bentonrr has quit [Remote host closed the connection]
Muz_ is now known as Muz
carlyle has joined #ruby
totalmajor has quit [Remote host closed the connection]
<shevy>
you guys scare me
<shevy>
that would be way too much code to handle
iamjarvo has joined #ruby
<mereghost>
hahahaha! Not really.
<Eiam>
shevy: eh my code is split out into discrete "mini apps"
<Eiam>
one "app" that just mounts mini "apps" on routes under it
krz has quit [Quit: WeeChat 0.4.2]
totalmajor has joined #ruby
<mereghost>
Eiam: The exact approach my team took.
<Eiam>
so whenever I want to make a change its usually 1-2 files inside a mini app somewhere down the branch, its pretty easy to find what I'm after
<shevy>
Eiam yeah but mereghost has 50k lines!!!
<Eiam>
shevy: sure, I'm sure mine is easily near that?
sharms has quit [Ping timeout: 240 seconds]
<Eiam>
especially if you count the 3 custom gems that support those apps too
<shevy>
well nah that would be cheating
<shevy>
if I would count all gems then I'd be in that range too
bentonrr has joined #ruby
<guinslym>
Hi! I have a "case when" syntax. And ruby expected an '}' bracket? But I don't see the needs of it since the "case when" syntax doesn't require one: my gist :: https://gist.github.com/guinslym/8224915
croaky_ has joined #ruby
<Eiam>
no no, these are gems that I wrote/maintain that are internal only =)
olivier_bK has quit [Ping timeout: 260 seconds]
<Eiam>
and often need modification to support new requests. I don't see why I wouldn't count them =)
mengu has joined #ruby
<shevy>
guinslym did you try to remove the lines before 'case'
<waxjar>
guinslym: i think you need brackets around number-50
sharms has joined #ruby
<shevy>
btw that code works in irb for me
interactionjaxsn has joined #ruby
<shevy>
so I am rather sure your error happens somewhere else
totalmajor has quit [Read error: Connection reset by peer]
<ericwood>
the rails project I work on has 30457 lines of code
Mars has joined #ruby
<ericwood>
sorrry files not LOC
<shevy>
omg
<ericwood>
the largest has quite a few lines of code
croaky has quit [Ping timeout: 264 seconds]
<mereghost>
guinslym: hmmm... your code runs fine here.
Mars is now known as Guest89664
<shevy>
that's a lot of files
<ericwood>
it's a really big rails project
<guinslym>
waxjar: when I put a bracket I have 2 errors
<ericwood>
lots of separation into files (it's a good thing)
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skaflem has quit [Quit: Leaving]
<mereghost>
ericwood: ouch. =O
bricker_ has joined #ruby
<guinslym>
mereghost: i'll run it again
bricker_ is now known as bricker`work
bricker has quit [Disconnected by services]
joaoh82 has quit [Remote host closed the connection]
<ericwood>
it's really not that bad at all
<ericwood>
lots of functionality, but it's all split up into a nice folder structure
<mereghost>
guinslym: Missing } are usually a symptom of unclosed hashes, blocks or lambdas.
<ericwood>
and we're moving a lot of things into their own Rails engines
<Eiam>
okay I did a quick find | wc -l
<shevy>
guinslym I think your file must be larger than that
<Eiam>
13,197
kep has quit [Quit: WeeChat 0.4.2]
joaoh82 has joined #ruby
<shevy>
and the error must be in other areas of that .rb file
<mereghost>
ericwood: Seems like a quite cool arch.
<ericwood>
it's just rails
cbetta is now known as cbetta_afk
bentonrr has quit [Remote host closed the connection]
<shevy>
hehe
kate_r has quit [Ping timeout: 272 seconds]
<Eiam>
for what I currently maintain anyway, doesn't count any older things
<ericwood>
granted, there's quite a bit of cruft, but we're removing a lot of it little by little
<mereghost>
ericwood: Did you started the project with this kind of modularity in mind or was it bolted on after a bit?
drago777 has quit [Ping timeout: 240 seconds]
<ericwood>
mereghost: the whole project is 6 years old, it started with a very early version of rails
colonolGron has joined #ruby
<ericwood>
and we've migrated it all the way up to rails 3 since
<terrellt>
Eiam: Was that the whole command?
<ericwood>
I've only been on the project for 2 years though
<Eiam>
terrellt: no lol
voodoofish has quit [Ping timeout: 240 seconds]
<mereghost>
ericwood: nice! :) The step between rails 1 to rails 2 was a real pita. =/
<ericwood>
yeah luckily I wasn't here for that lol
<ericwood>
but 2-3 was pretty tough, it took us a while
drago777 has joined #ruby
<Ven-2>
ok, I'm return with smalest trouble: I have str='thisismythesis' tab = ['is','th','m','y','es'] how get array %w(th is is m y th es is) is possible to match only in begining of string
<ericwood>
granted, after that all future upgrades should be a lot easier since we refactored things
<mereghost>
ericwood: We are on the process of migrating the front-end (the rails piece) to Rails4. *sigh*
<ericwood>
good luck
kate_r has quit [Max SendQ exceeded]
<guinslym>
mereghost: you right I forgot to close a bracket before calling this function thks
<ericwood>
Ven-2: can you give a bit more information? I'm not 100% sure what you're asking
<Ven-2>
ok, I'm return with smalest trouble: I have str='thisismythesis' tab = ['is','th','the','t','m','y','es'] how I can get this array %w(th is is m y th es is)
kate_r has joined #ruby
<mereghost>
guinslym: yw =)
kate_r has quit [Max SendQ exceeded]
<Ven-2>
ericwood, simple i have Array tab and string
<Ven-2>
how cut the string using element of tab
deception_ is now known as deception
<ericwood>
aaah I see now
Virtualize has joined #ruby
<guinslym>
shevy: Yes it is I didn't put the line that I called the function. now I did add it on my gist
<Ven-2>
(if this is simplest can You use matches only in begining of string)
<shevy>
if the case menu stays as simple as that, perhaps use a hash instead
drago777 has joined #ruby
VictorSK has quit [Client Quit]
sharms has quit [Ping timeout: 240 seconds]
<shevy>
or an array
<shevy>
yeah... an array would work best
Asher has quit [Quit: Leaving.]
<cloaked1>
I find a bunch of questions/answers on SO about Socket Recv timeout but I'm probably not crafting my query correctly. Perhaps someone could point me to a good article or other documentation that allows me to do the following: I am connecting to a remote host using raw TCP (not a webserver). The remote side sends the data I am expecting but it never properly closes the connection when the data is done getting sent so my client just si
<Ven-2>
Anybody can help me? I have str='thisismythesis' tab = ['is','th','the','t','m','y','es','s'] how I can get this array %w(th is is m y the s is)
<cloaked1>
would like to set a timeout on the receive so that I can just close the connection when I get my data...
diegoviola has joined #ruby
<WJW>
I think the point of iterators is nonstrict (i. e. "lazy") evaluation.
coffeina has quit [Quit: Wychodzi]
earthquake has joined #ruby
<cloaked1>
in other words, I'd like to keep the connection open for n time and then just close the connection
<guinslym>
shevy: thks I had too much tabulations
joaosa has quit [Ping timeout: 240 seconds]
nisstyre has quit [Ping timeout: 240 seconds]
leandroico has quit [Quit: Connection closed for inactivity]
carraroj has quit [Quit: Konversation terminated!]
sharms has joined #ruby
<mereghost>
cloaked1: does any kind of keepalive would help you?
<WJW>
Hanmac: "... my country ... the greatest purveyer of violence in the world today ..." -- MLK Jr.
drago777 has quit [Ping timeout: 240 seconds]
ebobby has quit [Quit: Lost terminal]
<shevy>
Ven-2 you know that %w() is an array in ruby?
cameronbarton has joined #ruby
voodoofish has joined #ruby
<ericwood>
shevy: he does
<Ven-2>
shevy, yes this is array
jmo has joined #ruby
<WJW>
dann_: I think the point of enumerators is lazy evaluation.
pen has quit []
andrewhl has quit [Quit: andrewhl]
<cloaked1>
all of the documentation I'm finding is setting recv timeout to do something if timeout is reached BEFORE the recv starts...not the recv itself. Anyone? I need the recv itself... IE I should be able to get everything I need in n seconds and if I don't, close the connection gracefully and return what I got.
roodee has joined #ruby
nisstyre has joined #ruby
motto has quit [Ping timeout: 246 seconds]
<WJW>
>> "This interpreter is running again."[6...(6 + "interpreter".length)]
<shevy>
hmm guys... the only way to turn a 'string' into an ['string'] array element, is by doing i.e. (if it is a variable) var = 'string'; var = [var] right?
<shevy>
I am just wondering whether there is a #to_ method or something else
<cloaked1>
you could use to_a
<DouweM>
there's no method that would turn a string into an array *in place*
<cloaked1>
but that just makes a single element array with your string as index 0
<shevy>
hmm
<DouweM>
you'd still need to reassign the var
Gonzih has joined #ruby
<cloaked1>
you could: array = string.split(//)
jmo has quit [Ping timeout: 246 seconds]
<WJW>
shevy, you can do it directly instead of through the intermediary of the variable.
<guinslym>
shevy: Yes that's really shorter than what I did. I'm learning ruby by following a book and by doing in ruby all the assignment that I had in a java course that I had 2 years ago.
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
roodee has joined #ruby
<mereghost>
shevy: You can use Array(your_string)
mklappstuhl has joined #ruby
<WJW>
>> "This interpreter is running again."[5...16]
sambao21 has quit [Quit: Computer has gone to sleep.]
drumusician has quit [Ping timeout: 272 seconds]
<shevy>
ohhh...
<shevy>
interesting
<Ven-2>
WJW, I have string='thisismythesis' and Array tab = ['is','th','the','t','m','y','es','s'] how I can get this array ['th','is' 'is' 'm' 'y' 'the' 's' 'is']
<havenwood>
cloaked1: Just: "this is a string".chars
<WJW>
Ven-2, you understand how to extract a substring from a specified location, right?
sharms has quit [Ping timeout: 240 seconds]
<Ven-2>
no, this is my hobby
<Hanmac>
Ven-2 i already showed you hours ago you can do this, i dont want to repeat myself
<shevy>
I think the problem is that he did not use ruby
<shevy>
before
<Eiam>
Ven-2: then take an interest in your hobby and read up on the many algorithms that implement it
<Ven-2>
Eiam, no. this is to complicateg
<Hanmac>
shevy no the problem is that he is not listening
<Ven-2>
only cut element from begining of string
<Ven-2>
and put it on output array
<shevy>
Hanmac he does not understand you ;)
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
mneorr has quit [Remote host closed the connection]
noop has quit [Ping timeout: 264 seconds]
<WJW>
Ven-2, do you understand yet how to take a substring in Ruby?
<shevy>
Ven-2 Hanmac spricht Deutsch, frag mal auf Deutsch nach, dann gibt er bessere Antworten
<Hanmac>
shevy no i showed him the excact code line how to do that and he still does not know
sambao21 has quit [Client Quit]
<havenwood>
Ven-2: not that simple, it starts with both 't' and 'th'
<Ven-2>
no optimal matches, only cut string using array elements
<Hanmac>
>>>>> (19:22:11) Hanmac: Ven-2: 'jakistexttentestisgood'.scan(Regexp.union(%w{ja k is te xt n st g o d})) #=> ["ja", "k", "is", "te", "xt", "te", "n", "te", "st", "is", "g", "o", "o", "d"]
mbytes has joined #ruby
<WJW>
Ven-2, is it a discussion on a problem in software engineering, or a question on the Ruby language?
<Ven-2>
Hanmac, thanks
RubyRonin has joined #ruby
<mereghost>
WJW
<Ven-2>
it looks good
burlyscudd has joined #ruby
<mereghost>
WJW: seems a conflict of different languages.
<shevy>
hehehe
<mereghost>
WJW: Real world ones. :)
RaCx has quit [Quit: Computer has gone to sleep.]
joaosa has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
kirun has joined #ruby
<WJW>
Maybe when everyone talks at her at once, she gets overwhelmed.
sharms has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
Gonzih has quit [Quit: IRC is just multiplayer vim.]
Virtualize has quit [Quit: Leaving...]
xiphias has joined #ruby
pixelgremlins has quit [Ping timeout: 272 seconds]
m8 has quit [Max SendQ exceeded]
psyprus has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
m8 has joined #ruby
psyprus has joined #ruby
alex88 has joined #ruby
mary5030 has quit [Remote host closed the connection]
gregoriokusowski has quit [Ping timeout: 265 seconds]
iamjarvo has quit [Remote host closed the connection]
mary5030 has joined #ruby
gregoriokusowski has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
drago777 has quit [Ping timeout: 240 seconds]
cameronbarton has quit [Quit: cameronbarton]
iamjarvo has joined #ruby
mary5030 has joined #ruby
sambao21_ has joined #ruby
<Hanmac>
Ven-2 if the string is encoded corectly than String#size works, except you have a deadly outdated ruby
<Ven-2>
Hanmac, Thanks ok,
sambao21 has quit [Ping timeout: 240 seconds]
sambao21_ is now known as sambao21
sharms has quit [Ping timeout: 240 seconds]
xiphias has quit [Ping timeout: 240 seconds]
flame_ has joined #ruby
mbytes` has joined #ruby
mbytes has quit [Ping timeout: 240 seconds]
Virtualize has joined #ruby
drago777 has joined #ruby
xiphias has joined #ruby
psyprus has quit [Ping timeout: 240 seconds]
sharms has joined #ruby
psyprus has joined #ruby
iamjarvo has quit [Ping timeout: 264 seconds]
joaosa has quit [Ping timeout: 240 seconds]
iamjarvo_ has joined #ruby
klaut has quit [Remote host closed the connection]
jamesaxl_ has quit [Remote host closed the connection]
croaky_ has quit [Ping timeout: 260 seconds]
jameshyde1 has joined #ruby
Asher has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
ankov has quit [Remote host closed the connection]
xiphias has joined #ruby
sepp2k has joined #ruby
zleslie has left #ruby ["WeeChat 0.4.2"]
<Ven-2>
Hanmac, Your answers is good but have one small trouble. if in my Array tab no include element apear in string script nothing reporting, simple skip this substring/element of tab Array.
Guest89664 has quit [Remote host closed the connection]
mlpinit has quit [Read error: Connection reset by peer]
<Ven-2>
this is trouble for me. I don;t know about my mistake in tab construct
mlpinit has joined #ruby
jprovazn has quit [Quit: Odcházím]
jameshyde1 has quit [Ping timeout: 264 seconds]
gregoriokusowski has quit [Write error: Broken pipe]
tzzzzz has joined #ruby
tzzzzz has quit [Quit: tzzzzz]
fantazo has quit [Ping timeout: 272 seconds]
gregoriokusowski has joined #ruby
cameronbarton has joined #ruby
timonv has quit [Remote host closed the connection]
dru has quit [Read error: Connection reset by peer]
mary5030_ has joined #ruby
xiphias has quit [Ping timeout: 240 seconds]
mbytes` has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
sharms has quit [Ping timeout: 240 seconds]
xiphias has joined #ruby
mary5030_ has quit [Read error: Connection reset by peer]
sharms has joined #ruby
mary5030_ has joined #ruby
aspires has joined #ruby
pablovilas_ has joined #ruby
rankine has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 246 seconds]
iamjarvo has joined #ruby
az has left #ruby [#ruby]
drago777 has quit [Ping timeout: 240 seconds]
larissa has joined #ruby
end_guy has quit [Remote host closed the connection]
blackmes1 has quit [Write error: Broken pipe]
totalmajor has joined #ruby
pablovilas has quit [Ping timeout: 252 seconds]
Guest28193 has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
joaosa has joined #ruby
winux has joined #ruby
Vivekananda has joined #ruby
SHyx0rmZ has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Ping timeout: 240 seconds]
drago777 has joined #ruby
winux has quit [Client Quit]
hl has quit [Ping timeout: 260 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
xiphias has quit [Ping timeout: 240 seconds]
Mars has joined #ruby
madb055 has joined #ruby
Mars is now known as Guest61035
xiphias has joined #ruby
cbetta_afk is now known as cbetta
SHyx0rmZ has joined #ruby
<Ven-2>
how split string with not cuting separators? this delete sep 'abcdef'.split(/[a|c|bc|f]/) this 'abcdef'.scan(/[a|c|bc|f]/) delete some substring 'de'
sambao21 has joined #ruby
jxport has quit [Ping timeout: 246 seconds]
jxport has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
coca_rails has joined #ruby
iamjarvo has joined #ruby
hl has joined #ruby
kewubenduben has quit [Read error: Connection reset by peer]
xiphias has quit [Ping timeout: 240 seconds]
drago777 has joined #ruby
kewubenduben has joined #ruby
wildroman2 has quit [Ping timeout: 272 seconds]
xiphias has joined #ruby
lfox has quit [Quit: ZZZzzz…]
sambao21 has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby
mneorr has joined #ruby
Megtastique has joined #ruby
pablovilas_ has quit [Remote host closed the connection]
razibog has quit [Remote host closed the connection]
<wmoxam>
just depricate a feature at a time and keep on pumping python2 point releases
<havenwood>
shevy: (some bot posted a ton of cpan perl stuff in 2009 >.>)
iamjarvo has quit [Ping timeout: 240 seconds]
<waxjar>
yeah, they could do that too
<havenwood>
why we must kill 1.8! long live 2.x!
<wmoxam>
1.8 is dead
<havenwood>
;)
polysics has joined #ruby
<shevy>
damn WJW you are right, I cant find ruby on XKCD
psyl0n has quit [Remote host closed the connection]
mlpinit has quit [Quit: Leaving...]
<waxjar>
i heard they've got a tool that translate python 2 code to python 3 code but it doesn't really work so you basically have to maintain two versions of your code
polysics has left #ruby [#ruby]
<waxjar>
*translates
lfox has joined #ruby
<apeiros>
what does a tool matter which doesn't work?
<shevy>
apeiros a tool that does not work is better than no tool at all!!!
<waxjar>
it works sometimes? :p idk
<shevy>
lol waxjar
<shevy>
50% chance to work
<wallerdev>
they should just write a tool to convert python to ruby
<wallerdev>
problem solved
<waxjar>
haha
subbyyy has quit [Read error: Operation timed out]
relix has joined #ruby
<havenwood>
python devs have been urging people to move to 3 for ages, but very few pythonistas are willing
<shevy>
guido does not want to be obsolated like that by a script
<waxjar>
the numbercrunchers wont be happy with that
<havenwood>
<3 Ruby
<shevy>
havenwood, yeah you must force people
<shevy>
like perl 6!
deception has quit [Quit: Goodbye]
ssvo has joined #ruby
<wallerdev>
python is like windows, no one wants to upgrade because everything still works on their current version :p
cameronbarton has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
falkn0r has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
codenapper has joined #ruby
<WJW>
The pythonistas would probably raise an exception to being compared to Microsoft anything.
<havenwood>
what is it Pythonistas say? later is better than now, but never is better than later?
bentonrr has joined #ruby
l0gicpath has left #ruby [#ruby]
<havenwood>
^ my version of the zen of python
<shevy>
they say: Sszszs hsh ShshSSSssss!!
benlieb has quit [Remote host closed the connection]
<shevy>
they have banned the nick python from #python :(
Virtualize has quit [Quit: Leaving...]
<shevy>
I always thought they are about fun
totalmajor has joined #ruby
<wallerdev>
ruby is the fun community, python is for serious people
Advocation has joined #ruby
<shevy>
serious cat
drago777 has joined #ruby
lfox has quit [Ping timeout: 240 seconds]
Advocation has quit [Client Quit]
<wallerdev>
also we're one of the few languages with 2 irc channels for the same purpose
<shevy>
hehe
<WJW>
wallerdev, LOL
<shevy>
the #ruby-lang guys are splinters
benlieb has joined #ruby
<ericwood>
ruby-lang is more for core language discussion
<WJW>
Implementaiton?
<wallerdev>
i remember the days when #ruby-lang was the real #ruby channel :O
<ericwood>
yeah more implementation stuff
<shevy>
*splitter
Czupa has quit [Ping timeout: 260 seconds]
<wallerdev>
then rails came out and everyone joined #ruby because they didnt know about #ruby-lang :p
<shevy>
yeah but #ruby-lang added voice registration
totalmajor has quit [Remote host closed the connection]
<shevy>
which was when I decided to quit it
mengu has quit [Remote host closed the connection]
<ericwood>
I like that but every once and a while nickserv forgets about me and I have to part and rejoin >.<
<shevy>
some guys from #ruby-lang never go to #ruby
<wmoxam>
shevy: it became too hard to troll?
baordog_ has joined #ruby
<shevy>
wmoxam it became too hard to SPEAK AND BE HEARD
<shevy>
:>
<WJW>
They're just chatting over there about not-Ruby stuff.
<shevy>
hehehe
mklappstuhl has joined #ruby
<apeiros>
unlike here
<apeiros>
which is totally focused on ruby :D
<ericwood>
#pwnt
<shevy>
man, we mention ruby every third sentence
klaut has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
<shevy>
did we ever have more than 1000 folks here on #ruby yet?
<Hanmac>
shevy i dont think so, but we should have ;P
codenapper has quit [Quit: codenapper]
Solnse has joined #ruby
jameshyde1 has joined #ruby
<wallerdev>
anyone here work for a company hiring in the SF area?
drago777 has quit [Ping timeout: 240 seconds]
totalmaj_ has joined #ruby
Asher has quit [Quit: Leaving.]
derebos has joined #ruby
benlieb has quit [Quit: benlieb]
aspires has quit []
mlpinit has joined #ruby
sethen has quit [Quit: Leaving]
ehc has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
* apeiros
wants to work in the science fiction area too!
<nannes>
"error installing debugger-linecache" "checking for vm_core.h... no"
<wallerdev>
neat
<wallerdev>
haha
aspires has joined #ruby
Virtualize has quit [Client Quit]
<WJW>
Virtuous machine?
LiquidInsect has joined #ruby
ffranz has quit [Quit: Leaving]
jameshyde1 has quit [Ping timeout: 260 seconds]
<apeiros>
Veritable Manga
<shevy>
wow
<shevy>
Manga is sexy
croaky has joined #ruby
Mohan has quit [Read error: Connection reset by peer]
<shevy>
nannes obviously you lack that .h file
<mneorr>
I have a Ruby - UNIX question, not sure if it'll make sense. I have a formatter https://github.com/mneorr/xcpretty that's meant to be piped after the `xcodebuild` command. The problem is that if `xcodebuild` exits with 1, my script after pipe exits with 0. What we want to achieve is transfer the `pipestatus` over from the previous command
<nannes>
no, shevy
<nannes>
It's a bundle install
carlyle has quit [Remote host closed the connection]
<shevy>
oh bundler. I can't touch that, Hanmac can
<Hanmac>
i only do with a long pointy needle
SHyx0rmZ has quit [Ping timeout: 246 seconds]
sharms has quit [Ping timeout: 240 seconds]
<mneorr>
The manual way of solving the problem would be `xcodebuild | xcpretty; exit ${PIPESTATUS[0]}` but i'm looking if there
<alex88>
someone ever tried to get a page screenshot using something like capybara-webkit but not during tests?
<nannes>
shevy: Let's put it this way: the same happens with gem install
<mneorr>
's a way to embed that into script.
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<WJW>
mneorr, is your script setting up the pipeline?
<shevy>
nannes good! now let's see... the name of the gem is debugger-linecache, and it wants a file called vm_core.h
phutchins has quit [Ping timeout: 260 seconds]
<mneorr>
WJW: nope, the script is used by the end users
sambao21 has quit [Quit: Computer has gone to sleep.]
soulcake has quit [Read error: Connection reset by peer]
<WJW>
mneorr, the end users type the pipeline into their shells?
<nannes>
shevy: Shouldn't it be part of perl?
<mneorr>
the users are already using the fugly `xcodebuild`. so if they wanna make the output readable, they pipe it to `xcpretty`
coca_rails has quit [Remote host closed the connection]
smathieu_ has joined #ruby
<slash_nick>
shevy: HH
totalma__ has joined #ruby
<apeiros>
no, HH, short for "Heil Hitler", a neo-nazi greeting
<shevy>
hey slasher
<shevy>
aaaah
totalmaj_ has quit [Ping timeout: 246 seconds]
<apeiros>
(or just nazi greeting, actually)
sharms has quit [Ping timeout: 240 seconds]
smathieu_ has quit [Read error: No buffer space available]
meatherly has joined #ruby
croaky has joined #ruby
smathieu has joined #ruby
jmo has joined #ruby
sharms has joined #ruby
tannerburson has quit [Quit: tannerburson]
allsystemsarego has quit [Quit: Leaving]
Underbyte has quit [Remote host closed the connection]
lewix has quit [Remote host closed the connection]
g0bl1n has joined #ruby
Kricir has joined #ruby
jmo has quit [Ping timeout: 264 seconds]
ganesh has quit [Quit: Konversation terminated!]
Guedes0 has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
<Hanmac>
yeah we still have a little nazi problem in germany ... but hopefuly the party gets in the next votings under 5% (you need >5% to get into the goverment) ... currently there are some trails against member of this party because the stole goverment money and didnt paid the bills ... otherwise they still try to forbit this nazi party ... but they didnt manage to do that
camilasan has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
Guedes0 has quit [Client Quit]
drago777 has quit [Ping timeout: 240 seconds]
DGuedes has joined #ruby
meatherly has joined #ruby
DrShoggoth has joined #ruby
r0bby_ is now known as robbyoconnor
croaky has quit [Ping timeout: 240 seconds]
DrShoggoth has quit [Max SendQ exceeded]
LinearInterpol has quit [Ping timeout: 260 seconds]
DrShoggoth has joined #ruby
subbyyy has joined #ruby
ambushsabre has quit [Quit: rip]
croaky has joined #ruby
<shevy>
Hanmac criminal incompetence ;)
drago777 has joined #ruby
threesome has quit [Ping timeout: 240 seconds]
drago777 has quit [Excess Flood]
smathieu has quit [Remote host closed the connection]
sharms has quit [Ping timeout: 240 seconds]
DGuedes is now known as Guedes
drago777 has joined #ruby
smathieu has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
millerti has joined #ruby
Underbyte has joined #ruby
<shevy>
hmm
<shevy>
how can I split at / /, but exclude start of string ^ ?
<Hanmac>
shevy the covernment are only competent in doing something criminal
<millerti>
Something weird is going on that I don't understand. I'm creating a hash with initializer like this: fitters = Hash.new { LineFitter.new }
maletor has quit [Quit: Computer has gone to sleep.]
<millerti>
When I call methods on objects like this, it's almost as though it's creating a new object each time: fitters[0].add(0,0)
baordog_ has quit [Remote host closed the connection]
RKornmeyer has quit [Ping timeout: 240 seconds]
<pontiki>
or the one you are drawing from
<WJW>
No, the one you are looking at.
rickruby has quit [Read error: Connection reset by peer]
<pontiki>
either/both
moeSeth_ has quit [Ping timeout: 245 seconds]
ddv has quit [Ping timeout: 245 seconds]
culturelabs has quit [Ping timeout: 246 seconds]
Guest85414______ has quit [Ping timeout: 246 seconds]
BRMatt has quit [Ping timeout: 240 seconds]
geggam has quit [Quit: Leaving]
rickruby has joined #ruby
poguez has quit [Ping timeout: 272 seconds]
HashNuke_ has quit [Ping timeout: 272 seconds]
<medecau>
grok provides short and tested patterns for different patterns
bklane has joined #ruby
landon__ has quit [Ping timeout: 245 seconds]
dogweath_ has quit [Remote host closed the connection]
<medecau>
what am I saying?
dnyy has quit [Ping timeout: 240 seconds]
itamaryu has quit [Ping timeout: 240 seconds]
[Neurotic] has quit [Ping timeout: 240 seconds]
joshwines_ has quit [Ping timeout: 246 seconds]
<pontiki>
i have no idea
mtraptor4_ has quit [Ping timeout: 246 seconds]
<bklane>
Looking at different ways of validating a website field, HTTP or URI but they all seem overly complex, anyone know a simpler way?
dogweather has joined #ruby
<pontiki>
bklane: the URI module is made for that
RubyRonin has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130814063812]]
LinearInterpol has joined #ruby
Kricir has quit [Ping timeout: 246 seconds]
<bklane>
it just fails instead of nil, so just need to do rescue I guess
<medecau>
basically it seems to give you easier ways of doing regex matches without having to write regex patterns
platzhirsch has joined #ruby
<platzhirsch>
peng.
nowthatsamatt has quit [Quit: nowthatsamatt]
razibog has quit [Quit: Leaving.]
danshultz has quit [Remote host closed the connection]
mtraptor4_ has joined #ruby
moeSeth_ has joined #ruby
BRMatt has joined #ruby
guilleiguaran has joined #ruby
landon__ has joined #ruby
itamaryu has joined #ruby
mary5030 has quit [Remote host closed the connection]
RKornmeyer has joined #ruby
ggherdov has quit [Ping timeout: 246 seconds]
poikon has quit [Ping timeout: 264 seconds]
postmodern has joined #ruby
ambushsabre has joined #ruby
<shevy>
pong.
culturelabs has joined #ruby
joshwines_ has joined #ruby
Guest85414______ has joined #ruby
poikon has joined #ruby
dogweath_ has joined #ruby
dogweather has quit [Read error: Connection reset by peer]
drago777 has quit [Ping timeout: 240 seconds]
alex88 has quit [Quit: Leaving...]
sayan has joined #ruby
ambushsabre has quit [Ping timeout: 240 seconds]
<shadoi>
Grok is basically about producing filters for log files, it gives you a sort of menu of common filters, and allows you to define new ones that aren't language specific.
ceej has quit [Ping timeout: 246 seconds]
m00nlight_ is now known as m00nlight
drago777 has joined #ruby
<shadoi>
ie. "apache logs 3rd field == IP address" or whatever
Guest85414______ has quit [Ping timeout: 245 seconds]
culturelabs has quit [Ping timeout: 264 seconds]
ambushsabre has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
Guest85414______ has joined #ruby
Jakee` has quit [Ping timeout: 240 seconds]
sharms has quit [Ping timeout: 240 seconds]
jameshyde1 has joined #ruby
colonolGron has quit [Quit: Lost terminal]
geggam has joined #ruby
Jakee` has joined #ruby
jpinnix_ has quit [Ping timeout: 245 seconds]
shedd has quit [Remote host closed the connection]
ceej has joined #ruby
sayan has quit [Excess Flood]
dogweath_ has quit []
CpuID has quit [Quit: This computer has gone to sleep]
ggherdov has joined #ruby
coca_rails has joined #ruby
sayan has joined #ruby
niftylettuce has joined #ruby
w_alexus has quit [Read error: Operation timed out]
ace_striker has joined #ruby
coca_rails has quit [Remote host closed the connection]
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
momomomomo has quit [Quit: momomomomo]
cgcardona_ has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
Guest77847 has quit [Read error: Operation timed out]
flame_ has quit [Quit: Computer has gone to sleep.]
culturelabs has joined #ruby
jameshyde1 has quit [Ping timeout: 246 seconds]
jpinnix_ has joined #ruby
Guest14883 has joined #ruby
<WJW>
This is the second time in the last couple of days someone wanted to read logs, but the other time, it was chat logs.
fedesilva has joined #ruby
<cgcardona_>
hi, i'm using the encryptor gem (https://github.com/attr-encrypted/encryptor) to encrypt some auth and refresh tokens. I'm then saving the encrypted tokens, salt, and initilization_vector to a postgres db. However when I try to decrypt I'm getting the following error: 'OpenSSL::Cipher::CipherError (wrong final block length)'
flame_ has joined #ruby
<cgcardona_>
i think it has to do with the initialization vector coming back as binary- what data format should I store it in?
sharms has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
freebs has quit [Quit: Leaving.]
LinearInterpol has quit [Read error: Connection reset by peer]
drago777 has joined #ruby
LinearInterpol has joined #ruby
cameronbarton has quit [Quit: cameronbarton]
enebo has quit [Quit: enebo]
<WJW>
cgcardona_, what formats are you trying now?
grep_awesome is now known as grep_away
fedesilv_ has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
tannerburson has joined #ruby
meatherly has quit [Remote host closed the connection]
<cgcardona_>
I'm storing it as binary now. and i'm generating it w/ `iv = OpenSSL::Cipher::Cipher.new('aes-256-cbc').random_iv`
meatherly has joined #ruby
fedesilva has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
<WJW>
cgcardona_, do the docs for postgres say that binary format could pad to some length?
bklane has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 264 seconds]
claymore has quit [Quit: Leaving]
CpuID has joined #ruby
grieg has joined #ruby
bklane has joined #ruby
<WJW>
cgcardona_, for testing purposes, try storing on a file.
andrewstewart has joined #ruby
delinquentme has joined #ruby
<WJW>
cgcardona_, or just try storing, reading back, and comparing to what you thought you stored; that's even easier.
aryaching has quit [Ping timeout: 246 seconds]
bklane_ has joined #ruby
bklane has quit [Read error: Connection reset by peer]
meatherly has quit [Ping timeout: 246 seconds]
<shevy>
var = !var
<shevy>
that acts like a toggle from true to false and from false to true, right?
cameronbarton has joined #ruby
<WJW>
shevy, yes.
Kricir has quit [Ping timeout: 246 seconds]
<shevy>
cool
<delinquentme>
whats a really simple blog system that I can run off github?
<shevy>
you can't imagine how awful I wrote ruby things 6 years ago
<WJW>
shevy, good software engineering avoids togglese.
<delinquentme>
simpler than jekyll
<WJW>
toggles
<shevy>
WJW how do you provide commandline options that a user can overrule/change?
fuhgeddaboudit has quit [Ping timeout: 246 seconds]
drago777 has quit [Ping timeout: 240 seconds]
cj3kim has quit [Remote host closed the connection]
<WJW>
shevy, do you define the options, or are you implementing options someone else defines?
klaut has quit [Remote host closed the connection]
Azure has quit [Quit: My MBP went to sleep.]
<shevy>
yeah, I define the options, all flags/options that the script can respond to. Most of the time from the commandline, sometimes directly from within other scripts
mansi has quit [Remote host closed the connection]
byprdct has quit [Ping timeout: 260 seconds]
<WJW>
So make each option mean something, and in your code, interpret that meaning by setting flags and responding to how they are set.
<shevy>
This script generates some images, and can also generate webpages. Sometimes a user may want to do both, sometimes only one of these two
mansi has joined #ruby
drago777 has joined #ruby
SHyx0rmZ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
<WJW>
shevy, some writers in this chat channel have mentioned some package that helps parse command line options.
tannerburson has quit [Quit: tannerburson]
mansi has joined #ruby
skulker has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
Azure has joined #ruby
mikemac has quit [Ping timeout: 265 seconds]
<terrellt>
Co-workers use docopts for CLI.
<terrellt>
delinquentme: ...HTML?
awestroke has quit [Remote host closed the connection]
<shevy>
guys
<shevy>
would you write it "hardcoded" or "hard-coded"?
Kricir has joined #ruby
figgleberry has quit [Ping timeout: 240 seconds]
sharms has quit [Ping timeout: 240 seconds]
freebs has joined #ruby
<terrellt>
shevy: Would you write it as color or colour?
<WJW>
I've done both today.
<shevy>
well colour :(
madb055 has quit [Read error: Connection reset by peer]
<shevy>
but only because I was taught british english in school, the rest of the world uses color
<terrellt>
Well, there you go, write it as you wish.
shadoi1 has joined #ruby
klaut has joined #ruby
shadoi has quit [Read error: Connection reset by peer]
klaut has quit [Remote host closed the connection]
klaut has joined #ruby
<WJW>
Also, "hard coded".
EngierkO has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sharms has joined #ruby
<WJW>
class BiblPageHardcoding; ...; end
<shevy>
hmm
Tranquility_ has joined #ruby
<shevy>
the ' ' disturbs me more than the other two variants
drago777 has quit [Ping timeout: 240 seconds]
<shevy>
curious that I actually never see soft coded or softcoded or soft-coded
<WJW>
I guess soft is the default.
ssvo has quit [Quit: Lost terminal]
madb055 has joined #ruby
skulker has joined #ruby
shedd has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
hololeap has joined #ruby
shedd has quit [Read error: Connection reset by peer]
<WJW>
"tyre", "boot", "pressurise".
shedd has joined #ruby
centipedefarmer has joined #ruby
MattStratton has joined #ruby
cameronbarton has quit [Quit: cameronbarton]
<WJW>
British say "in three hours' time"; US say "in three hours".
drago777 has joined #ruby
skulker has quit [Remote host closed the connection]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamesaanderson has joined #ruby
havenwood has quit [Remote host closed the connection]
sharms has quit [Ping timeout: 240 seconds]
Virtualize has joined #ruby
Virtualize has quit [Read error: Connection reset by peer]
gregoriokusowski has joined #ruby
ambushsabre has quit [Quit: rip]
sharms has joined #ruby
shedd has quit [Ping timeout: 246 seconds]
jmo has joined #ruby
<shevy>
hmm another question
spider-mario has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
<shevy>
is there like a system in ruby based on hooks where you specify that certain methods must always be called when before or with other methods, other than specifying these inside of the method at hand
emocakes has joined #ruby
<WJW>
Rails does that.
<WJW>
or more specifically Active Record.
breakingthings has quit []
<WJW>
but it's not a general facility, that I know of.
<terrellt>
shevy: wat
motto has quit [Quit: Sto andando via]
bklane_ has left #ruby ["Leaving..."]
drago777 has quit [Ping timeout: 240 seconds]
ambushsabre has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
<WJW>
Active Record: before_save :set_blah_cache
flame_ has quit [Quit: Computer has gone to sleep.]
banghouse has quit [Remote host closed the connection]
<shevy>
terrellt hmm
<shevy>
right now I do things like that
<shevy>
def foo
<shevy>
bar
<shevy>
inside of bar, I always call ble
drago777 has joined #ruby
medecau has quit [Quit: medecau]
<shevy>
now when there is a lot of code, with lots of methods, lots of classes, I lose track
reset has quit [Ping timeout: 240 seconds]
sharms has joined #ruby
virt|away has joined #ruby
phipes has quit []
derebos has joined #ruby
<shevy>
I am looking at old code I did and wondering wtf is going on
<shevy>
was I drunk
<shevy>
did I have a head injury
bentonrr_ has joined #ruby
<shevy>
WJW that's an interesting way
Kricir has joined #ruby
shanlar- has joined #ruby
phipes has joined #ruby
<shevy>
what does before_save mean here - it means that, before some data is stored into the database, some other action is run?