<rien>
is there something akin to a Array.split that takes a predicate?
Seich has quit [Client Quit]
rickruby has joined #ruby
frxx has joined #ruby
rickruby has quit [Remote host closed the connection]
retrofade has joined #ruby
totalmajor has joined #ruby
rickruby has joined #ruby
<apeiros>
rien: how do you mean?
axl_ has quit [Quit: axl_]
<apeiros>
btw., we use `Array#split` to denominate instance methods
<rien>
I want to divide a list of numbers on every odd number and end up with clumps, say
<rien>
I thought I had typed Array#split. I'm aware of the convention
<apeiros>
Array#chunk might be close to what you want
<apeiros>
(or actually Enumerable#chunk, not sure)
<apeiros>
Array#split you'd have to implement yourself (should be quite easy)
<apeiros>
at least as long as you don't try to recreate all of String#split's special cases
<rien>
apeiros: that was it! thanks
<Hanmac>
chunk is one of the funiest Enumerable methods ;P
<rien>
why is it funny?
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
zxd has joined #ruby
<rien>
Array#chunk doesn't work with .with_index :/
Bumptious has quit [Read error: Connection timed out]
<rien>
there's a way around it apparently: xs.enum_for(:chunk).with_index
<rien>
so messy :/
shedd has quit [Remote host closed the connection]
niklasb has joined #ruby
liamkeily has joined #ruby
cbetta is now known as cbetta_afk
Bumptious has joined #ruby
zxd has quit [Ping timeout: 252 seconds]
cj3kim has quit [Remote host closed the connection]
arSar has joined #ruby
<arSar>
hi
mlpinit has joined #ruby
mlpinit has quit [Read error: Connection reset by peer]
vlad_sta_ has quit [Remote host closed the connection]
mlpinit has joined #ruby
danshultz has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
cj3kim has joined #ruby
russt has quit [Ping timeout: 265 seconds]
rankine has quit [Ping timeout: 272 seconds]
RoryHughes has joined #ruby
prc has quit [Quit: Leaving.]
phipes has quit [Remote host closed the connection]
mehlah has quit [Ping timeout: 264 seconds]
RoryHughes has quit [Max SendQ exceeded]
wildroman2 has joined #ruby
russt has joined #ruby
<TTilus>
hi
<TTilus>
sup?
danshultz has quit [Ping timeout: 272 seconds]
rm_ has joined #ruby
<apeiros>
hm, Array#split is actually longer than I expected it to become…
flame_ has quit [Quit: Computer has gone to sleep.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<liamkeily>
is it normal for gems to take a long time to download on a local computer compared to a server. For example I'm trying to install chef and on server it took 1 min, locally its taking forever. My internet connection is not too bad.
timonv has joined #ruby
Iszak has joined #ruby
<apeiros>
liamkeily: no. but it can happen at times.
<liamkeily>
its downloading hundreds of gemspec.rz files and they are taking at least 5 seconds each
blandflakes has quit [Ping timeout: 272 seconds]
relix has joined #ruby
black-coffee has joined #ruby
kevind has quit [Quit: kevind]
relix has quit [Max SendQ exceeded]
<apeiros>
it usually pays to use the newest rubygems as there have been releases which improved gem download.
<rien>
actually Array#chunk wasn't it
phipes has joined #ruby
<apeiros>
rien: yeah, Array#chunk isn't split, it's only close. I thought you might still be able to use it for what you want.
<rien>
what I need (and will have to write) is a mix of inject and take_while
flame_ has joined #ruby
<Hanmac>
rien give us a sample of your input and wanted output
<liamkeily>
ok thanks ill try updating then, is there an easy command for that?
wildroman2 has quit [Ping timeout: 272 seconds]
<rien>
input: an .rb file, output: an array of text chunks from the file, each chunk with one def
<Hanmac>
no i mean real data
sharms has joined #ruby
<rien>
that's the real data. any .rbfile
spider-mario has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
<arSar>
to see If certain string contains another string could I use a =~ b
<apeiros>
could make it 1.9 compatible, but why bother :)
S0da has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
jmo has joined #ruby
<mneorr>
any ideas how to emulate the time of STDOUT.puts(line), but not actually print it to terminal?
ephemerian has quit [Quit: Leaving.]
BuffyNZ has left #ruby [#ruby]
<mneorr>
i'm writing a performance test, and comparing that the script is 3x faster than running `cat` on the same input
mikepack has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
Jetchisel has joined #ruby
ehc has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
<mneorr>
so if you just `cat log` , it's too fast. if you `cat log`.each_line { |l| STDOUT.puts l } , the timing is good, but test output becomes bloated
cbetta_afk is now known as cbetta
Baluse has quit []
elux has joined #ruby
predator217 has joined #ruby
klaut has joined #ruby
KaCzY has quit [Read error: Connection reset by peer]
nowthatsamatt has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
tylersmith has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
klaut_ has joined #ruby
klaut has quit [Read error: Connection reset by peer]
<arSar>
just for curisosity. Why this does not work? var2 is in var1 var1 =~ /var2/i
predator117 has quit [Ping timeout: 248 seconds]
robustus has quit [Ping timeout: 245 seconds]
<mneorr>
arSar: what are the values of var2 and var1?
<arSar>
var1="abcdefg" and var2="abc"
emocakes has quit [Quit: Leaving...]
<cong>
that needs to be "var2" =~ /var2acbeblahblah/
<cong>
woop
<cong>
that needs to be /var2acbeblahblah/ =~ /var2/
robustus has joined #ruby
klaut_ has quit [Ping timeout: 246 seconds]
senayar has joined #ruby
<cong>
if you want to check the variables: var1 =~ var2
Guest84005 has quit [Remote host closed the connection]
<arSar>
cong: and the /i ?
senayar has quit [Client Quit]
<arSar>
I want them to case no sensitive
<cong>
oh, i thought that was unimportant
advorak has quit [Ping timeout: 252 seconds]
<cong>
//#{var1}/i that should do it
<cong>
/#{var1}/i that should do it
<cong>
that feels really weird
<arSar>
let me try
mary5030 has quit [Remote host closed the connection]
<arSar>
xD
sailias has joined #ruby
fixl has joined #ruby
kofno has joined #ruby
<cong>
i prefer var1/i but that's the division operator
figgleberry has joined #ruby
Jason has left #ruby [#ruby]
tgandrews has quit [Remote host closed the connection]
aryaching has joined #ruby
zetaspartan2552 has joined #ruby
zetaspartan2552 has quit [Client Quit]
moneydouble has quit [Quit: Leaving.]
AlSquire has quit [Quit: This computer has gone to sleep]
bricker`work is now known as bricker`away
Wolland has joined #ruby
matchaw has joined #ruby
totalmajor has quit [Remote host closed the connection]
michaeldeol has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
totalmajor has joined #ruby
shedd has joined #ruby
ludar has joined #ruby
rm_ has joined #ruby
dogweather has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
tahzeem has quit [Read error: Operation timed out]
lyanchih has joined #ruby
ambushsabre has quit [Quit: rip]
abramovic has quit [Quit: Leaving.]
lukec has joined #ruby
colonolGron has quit [Ping timeout: 245 seconds]
Hanmac1 has joined #ruby
bentonrr has quit [Remote host closed the connection]
totalmajor has quit [Ping timeout: 272 seconds]
shedd has quit [Ping timeout: 246 seconds]
Necrolyte has joined #ruby
Necrolyte has quit [Client Quit]
danshultz has joined #ruby
rm_ has quit [Ping timeout: 248 seconds]
marr has quit [Ping timeout: 272 seconds]
ludar has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 248 seconds]
phipes has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 245 seconds]
phipes has joined #ruby
othernameperson has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
EngierkO has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sjdflksdf has joined #ruby
<sjdflksdf>
Hey, does anyone in here have a job with programming?
Mars has joined #ruby
tyl has joined #ruby
falood has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
Mars is now known as Guest5758
<sjdflksdf>
I really want to learn programming, but just worry about not having a degree in it.
dima has joined #ruby
<sjdflksdf>
I want to ultametly get a job dealing with computers/programming/etc. but IDK. Its not just about "money", its that I really would enjoy getting good at this.
<sjdflksdf>
I just wonder though if I'm wasting my time or not.
apeiros_ has quit [Read error: Connection reset by peer]
apeiros has quit [Ping timeout: 245 seconds]
flubba has quit [Remote host closed the connection]
estebistec has quit [Remote host closed the connection]
Guest5758 has quit [Ping timeout: 252 seconds]
cow_ has joined #ruby
wallerdev has joined #ruby
guardianx has joined #ruby
<apeiros__>
sjdflksdf: a CS degree is not needed for many programming/coding gigs
liamkeily has quit [Quit: This computer has gone to sleep]
apeiros__ is now known as apeiros
liamkeily has joined #ruby
<apeiros>
sjdflksdf: sorry, private messages are not welcome.
<sjdflksdf>
Ok, didn't know that bothered you. Do you have a job in programming?
<benzrf>
are minors allowed at rubyconf, because if so i might try to convince my parents to take me next year
<benzrf>
assuming i havent decided that CL is my new favorite language by then
<apeiros>
sjdflksdf: that's not really related to your question, but yes.
<apeiros>
benzrf: I doubt they have a minimum age requirement
Faris has quit [Ping timeout: 240 seconds]
<apeiros>
benzrf: but drop them an email?
<benzrf>
ok
dima has quit [Remote host closed the connection]
<benzrf>
is it usually in november or does it hop around the year ?
<apeiros>
benzrf: I mean non of the content is *dangerous* to little kids :o)
Astralum has quit [Quit: Leaving]
styped has joined #ruby
styped has quit [Max SendQ exceeded]
liamkeily has quit [Client Quit]
<apeiros>
no idea
Faris has joined #ruby
<benzrf>
alright
styped has joined #ruby
<apeiros>
(except maybe if you're in a sect which considers self-thinking dangerous)
<sjdflksdf>
apeiros: Not sure how its not related, but ok. I guess I was just curious what your expereince was with getting a job. Did you have a CS degree?
<apeiros>
sjdflksdf: whether I have a job in IT or not is hardly related to "is CS degree needed for IT"
nanoyak has quit [Quit: Computer has gone to sleep.]
St_Marx has joined #ruby
bentonrr has joined #ruby
robbyoconnor has joined #ruby
<arSar>
how can I replace from this d:\\test\\dir the 2 slashes by just one. I'm trying with gsub() but I get no good resoult
<benzrf>
arSar: why do you have 2 slashes
<apeiros>
arSar: I doubt that you really have two slashes
<apeiros>
I bet you're looking at an inspect and confuse the escape sequence.
<benzrf>
^
<arSar>
it comes from a funcion
<apeiros>
"\\" # <- this is *one* backslash
<arSar>
apeiros: let me show you my problem
<apeiros>
>> puts "\\"
Vivekananda has joined #ruby
liamkeily has joined #ruby
kofno has quit [Ping timeout: 248 seconds]
<apeiros>
hrm, eval-in non-functional again :(
<benzrf>
that feel when eval-in is down
phipes has quit [Remote host closed the connection]
klaut has joined #ruby
<apeiros>
that feel when you plug in ethernet cable because you copy 250GB and now must. not. touch. laptop because the plug is moving…
<arSar>
I have this: var1="a:\\dir1\\dir2" and var2="a:\\dir1" if I do this ---> var1 =~ /#{var2}/i I don't get a match
<arSar>
because of the doble slash in var1
<benzrf>
var1 only has 1 slash
St_Marx has quit [Ping timeout: 240 seconds]
<benzrf>
"\\" is the literal for one slash
<apeiros>
arSar: there are no double slashes there
butblack has joined #ruby
<arSar>
I get nil
<arSar>
why then ?
<apeiros>
because of how you interpolate
<benzrf>
\t is tab, \n is newline
phipes has joined #ruby
<apeiros>
or how regex interpolates
<benzrf>
arSar: what if i wanted the string \that
<benzrf>
if I wrote "\that", it'd be a tab, then hat
<benzrf>
so you need a double backslash for one
<apeiros>
/#{var2}/ expands to /a:\dir1/
<apeiros>
and that \d there is "digit"
maletor has quit [Quit: Computer has gone to sleep.]
<arSar>
apeiros: I understand
<apeiros>
use Regexp.escape
<apeiros>
var1 =~ /#{Regexp.escape(var2)}/i
<arSar>
apeiros: let me try
mlpinit has quit [Remote host closed the connection]
cbetta is now known as cbetta_afk
klaut has quit [Ping timeout: 265 seconds]
<arSar>
apeiros: you are reight
<arSar>
thank you so much
<arSar>
:
<arSar>
:)
chomskiii has joined #ruby
<apeiros>
irc.putc
<apeiros>
you're welcome
iliketurtles has quit [Quit: zzzzz…..]
kofno has joined #ruby
dogweather has joined #ruby
iamjarvo_ has joined #ruby
styped has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
m00nlight has joined #ruby
dodosan has joined #ruby
tylersmith has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
timonv has joined #ruby
croaky has quit [Ping timeout: 272 seconds]
MattStratton has joined #ruby
abramovic has joined #ruby
figgleberry has quit [Ping timeout: 240 seconds]
sjdflksdf has quit [Quit: Page closed]
zz_N00D is now known as CripperZ
jmo has quit [Ping timeout: 260 seconds]
sailias has quit [Quit: Leaving.]
tylersmith has quit [Ping timeout: 248 seconds]
timonv has quit [Ping timeout: 272 seconds]
danshultz has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
liamkeily1 has joined #ruby
mneorr has joined #ruby
liamkeily has quit [Ping timeout: 272 seconds]
jmo has joined #ruby
phipes has quit [Remote host closed the connection]
dodosan has quit [Remote host closed the connection]
iamjarvo_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
CripperZ is now known as N00D
maxyanelis has joined #ruby
cong has quit []
rm__ has joined #ruby
mneorr has quit [Ping timeout: 246 seconds]
iamjarvo has quit [Ping timeout: 245 seconds]
estebistec has joined #ruby
vlad_starkov has joined #ruby
phipes has joined #ruby
rm__ has quit [Ping timeout: 260 seconds]
lnemo has joined #ruby
figgleberry has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
pskosinski has quit [Remote host closed the connection]
arSar has quit [Quit: Lost terminal]
gja has joined #ruby
rmillerx has joined #ruby
colonolGron has joined #ruby
levity_island has quit [Quit: levity_island]
maxyanelis has quit [Remote host closed the connection]
Mars has joined #ruby
roadt has joined #ruby
Mars is now known as Guest35893
heidi has quit [Quit: Leaving.]
figgleberry has quit [Ping timeout: 272 seconds]
liamkeily1 has quit [Quit: This computer has gone to sleep]
lewix has quit [Remote host closed the connection]
<benzrf>
sometimes the data will be other functions
dodosan has joined #ruby
<shevy>
I watched the video but I was more concentrating on the pronounciation of the swedish language and the jokes he did
Brolen has joined #ruby
<shevy>
I actually can not really tell you what else he spoke about :(
<benzrf>
thats fine
<benzrf>
one major idea in haskell is currying
<benzrf>
which is the idea that if i have a function that takes 2 arguments, it's really a function that takes 1 argument and gives back another function
<ddd>
bookmarked for perusal later. thanks for the share
<benzrf>
so for example
kofno has quit [Ping timeout: 272 seconds]
<benzrf>
shevy: look @ this haskell
<benzrf>
add a b = a + b
<benzrf>
that's the same as this ruby:
dodosan has quit [Client Quit]
<benzrf>
add = proc {|a| proc {|b| a + b}}
<shevy>
I hate procs too
<benzrf>
so haskell's 'add 1 2' is like ruby's 'add.call(1).call(2)'
okinomo has joined #ruby
<shevy>
add.call().call() that is so awful, I would never do that
<benzrf>
well that is how multi-arg functions work in haskell
mneorr has joined #ruby
skulker_ has joined #ruby
<benzrf>
the type of 'add' in that example is
<benzrf>
Int -> Int -> Int
<benzrf>
cuz it takes an Int and gives an Int -> Int
<shevy>
add 1, 2
<shevy>
now that's more like it
<benzrf>
more like add 1 2
<benzrf>
zip [1, 2, 3] [4, 5, 6]
skulker has quit [Ping timeout: 272 seconds]
<benzrf>
=> [(1, 4), (2, 5), (3, 6)]
<benzrf>
zip :: [a] -> [b] -> [(a, b)]
<benzrf>
expressive typing
LexicalScope has quit [Ping timeout: 252 seconds]
mneorr has quit [Ping timeout: 248 seconds]
rickruby has quit [Remote host closed the connection]
rickruby has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
DouweM has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
yacks has quit [Ping timeout: 240 seconds]
rickruby has quit [Ping timeout: 246 seconds]
rmillerx has quit [Quit: rmillerx]
Brolen has quit [Quit: Brolen]
Hanmac has joined #ruby
<mdpatrick>
Anyone know if there's a good way to debug whats going on with Net:HTTP? I'm using a few libraries that rely on it: knife, knife-solo, berkshelf... all of these libraries seem to be having some kind of connection issue
klaut has joined #ruby
Yarou has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
emocakes has joined #ruby
klaut has quit [Read error: Connection reset by peer]
klaut has joined #ruby
<Iszak>
mdpatrick use a proxy like charles
iliketurtles has joined #ruby
kitak has joined #ruby
iliketurtles has quit [Excess Flood]
LexicalScope has joined #ruby
iliketurtles has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
iliketurtles has quit [Excess Flood]
yshh has joined #ruby
nateberkopec has joined #ruby
dapz has quit [Ping timeout: 260 seconds]
klaut has quit [Ping timeout: 272 seconds]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
robbyoconnor has joined #ruby
lyanchih has quit [Quit: lyanchih]
yshh has quit [Ping timeout: 252 seconds]
danshultz has joined #ruby
Hanmac has joined #ruby
<jrobeson>
another option is pointing at an introspected tunnel like ngrok
<jrobeson>
mdpatrick, ^^
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gja has quit [Quit: This computer has gone to sleep]
skulker_ has quit [Ping timeout: 240 seconds]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
butblack has left #ruby [#ruby]
dogweather has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
CaptainJet has quit []
Jake232 has joined #ruby
rm__ has joined #ruby
rickruby has joined #ruby
agjacome has quit [Quit: leaving]
bentonrr has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
jmo has quit [Ping timeout: 272 seconds]
rm__ has quit [Ping timeout: 272 seconds]
jacobat has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<mdpatrick>
jrobeson, Iszak: I'll look into these options. Thanks.
yacks has joined #ruby
lukec has quit [Ping timeout: 248 seconds]
lukec_ has joined #ruby
bentonrr has joined #ruby
lethjakman has quit [Ping timeout: 248 seconds]
tyl has joined #ruby
baroquebobcat has joined #ruby
robbyoconnor has quit [Ping timeout: 246 seconds]
lfox has quit [Quit: ZZZzzz…]
blarghmatey has quit [Ping timeout: 252 seconds]
lfox has joined #ruby
banghouse has joined #ruby
banghouse is now known as Guest69320
yshh has joined #ruby
yacks has quit [Read error: Operation timed out]
Guest69320 has quit [Ping timeout: 272 seconds]
mary5030 has joined #ruby
yshh has quit [Ping timeout: 272 seconds]
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Deele has quit [Ping timeout: 260 seconds]
mmitchell has joined #ruby
<ericwood>
woohoo, took over the pygmentize gem!
sambao21 has joined #ruby
<ericwood>
resurrected it from the dead :D
robbyoconnor has joined #ruby
<benzrf>
pygmentize gem?
flame_ has quit [Remote host closed the connection]
<ericwood>
yes
<benzrf>
isnt pygmentize a python package?!
<ericwood>
it's a vendored version with a ruby wrapper
<ericwood>
it means take the library and stick it in your own in a nutshell
flame_ has quit [Remote host closed the connection]
<benzrf>
ah
<ericwood>
yup!
bentonrr has quit [Remote host closed the connection]
bentonrr has joined #ruby
dominikh has quit [Ping timeout: 245 seconds]
chihhsin has quit [Read error: Connection reset by peer]
chihhsin has joined #ruby
meatherly has quit [Remote host closed the connection]
dominikh has joined #ruby
flame_ has joined #ruby
aavt has joined #ruby
carif has quit [Ping timeout: 265 seconds]
<RubyPanther>
Just finished reading the AR vs Sequel link from Ruby Weekly, I gotta say, for a pro-Sequel post I couldn't be any less interested in Sequel after reading it. Composite primary keys?! My goodness, these people know nothing of the level of legacy WTF that is out there. No, don't ask for composite primary keys. Make a db view and hide that nonsense in the db where nobody has to see it again.
rickruby has quit [Remote host closed the connection]
<benzrf>
wat
<benzrf>
'make a db view'?
<benzrf>
what does that mean?
rickruby has joined #ruby
<RubyPanther>
There are these things. In databases. They are called a "view." It is unambiguous.
<benzrf>
what do they do?
<RubyPanther>
They make a query look like a table.
dseitz has joined #ruby
<benzrf>
oh, those!
<benzrf>
ok
<benzrf>
what do you have against composite primary keys though?!
browndawg has joined #ruby
browndawg has quit [Client Quit]
<RubyPanther>
It isn't that I personally have something "against" them, it is that they are generally considered harmful. Like, since the late 90s. database keys are metadata, not data; composite keys are *always* the result of using data as the key. It is bad for real, known reasons.
<benzrf>
... realy?!
<benzrf>
*really
<RubyPanther>
The only time you deal with it is legacy nightmares (my specialty) but the approach, for years, has been to hide that garbage behind views and provide a sane interface
<benzrf>
i read like 3 articles about how you should pick meaningful primary keys and how using autoincrementing ints is bad
<RubyPanther>
Is Sequel really better for writing a giant WTF, though? His article seems to make the claim, but I'm dubious.
<benzrf>
wtf?
<benzrf>
oh derp
<benzrf>
i thought you were using it to mean something else from the context
<benzrf>
<)<
rickruby has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
w|t has quit [Ping timeout: 252 seconds]
yshh has joined #ruby
<RubyPanther>
benzrf: If you're serious, I suspect you should check the dates on those posts, if they were old or from April 1. There are certainly cases of "autoincrementing ints" that are bad, for example ones that don't use the database features and try to increment the number in the app layer
cow_ has quit [Remote host closed the connection]
<benzrf>
im asking about it in #postgresql atm
<jrobeson>
i've dealt with composite primary keys for id => language id mappings .. i don't like it
<jrobeson>
it was in an existing system
radic has quit [Ping timeout: 265 seconds]
<RubyPanther>
I was a dba in the bad-old-days, and yeah, we chose meaningful primary keys... because we were expecting to be massaging our live production data by hand and it is just easier from the console that way. That is literally the reason, because we were using crude tools and wanting the columns to have enough meaning to type them out like that
w|t has joined #ruby
dapz has joined #ruby
radic has joined #ruby
klaut has joined #ruby
<RubyPanther>
Once you're using an ORM, you've added that capability in the app layer, and the database no longer "benefits" from conscripting data into meta-data duty. And you simply _can_not_ guarantee that data won't ever change. If it is data, it might change, just as business rules change. The meta-data doesn't need to change.
gquental has quit [Read error: Connection reset by peer]
timonv has quit [Ping timeout: 248 seconds]
yshh has quit [Ping timeout: 246 seconds]
<benzrf>
the people in #postgresql say that youre wrong about everything
yshh has joined #ruby
<RubyPanther>
What if you have a meaningful primary key, but then somebody else is doing data warehousing? Then what happens when your primary key data has to change? Sure, a database can cascade the changes, but now you can't reference historical warehoused data without a bunch of extra logic. Landmines like that are under every step when you don't follow database best practices
robbyoconnor has quit [Ping timeout: 246 seconds]
flame_ has quit [Remote host closed the connection]
<RubyPanther>
I'm not in there, but I have been in the past... surely they would disagree with anything anybody said about anything
<benzrf>
ha
danshultz has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
flame_ has joined #ruby
simplyaubs has quit [Quit: simplyaubs]
klaut has quit [Ping timeout: 272 seconds]
cosmicpanda has joined #ruby
<benzrf>
RubyPanther: what if you want to use the data in more than one context or from more than one program?
<benzrf>
isnt structured data read by a program that understands the structure > unstructured data with structure imposed on it by the reading program?
w|t has quit [Ping timeout: 272 seconds]
flame_ has quit [Remote host closed the connection]
<benzrf>
like strong vs weak typing
descala has quit [Ping timeout: 252 seconds]
braincrash has joined #ruby
<RubyPanther>
benzrf: I do, certainly , use data that way. That actually is an argument for keeping the data and metadata separate, so that you have proper structure
descala has joined #ruby
flame_ has joined #ruby
<benzrf>
??!?
<RubyPanther>
The majority of my data is also accessed from legacy windows apps
tyl has joined #ruby
<RubyPanther>
If you don't follow modern practices, you have to resort to SQL constantly, or be tweaking the ORM constantly to strongarm it into doing things the old way
w|t has joined #ruby
<benzrf>
well SQL _is_ designed to do sql...
<benzrf>
the db guys are always yelling @ me that orms are cute but not a good general solution for things more complicated than select this from that where theother = thing
<RubyPanther>
Right, and an ORM is designed to stand in front so you don't see the SQL back there.
<benzrf>
youre talking about sql like it's not a first class citizen
<benzrf>
if a dsl exists to do something, why use a generic language?
<benzrf>
sql is designed for querying, even more so than orms
<benzrf>
i'm not a major fan of string manipulation, and i enjoy orms, but i think they have some significant points
<RubyPanther>
If you don't value ORMs, then you probably have a difficult time measuring a Sequel vs AR post, it seems to me.
flame_ has quit [Remote host closed the connection]
<benzrf>
i like orms
<benzrf>
but i think sql has a purpose
<RubyPanther>
If people wanted to write SQL, we'd still all be using RBatis
<benzrf>
what is rbatis?
flame_ has joined #ruby
<RubyPanther>
A thing that involves SQL that people don't want to use anymore, judging from the context
niklasb has quit [Ping timeout: 246 seconds]
flame_ has quit [Remote host closed the connection]
<benzrf>
i thought a large part of orms' popularity was because of ruby/python/whatever people not wanting to learn another language to talk to their data?
w|t has quit [Ping timeout: 240 seconds]
<benzrf>
not because sql was necessarily bad
flame_ has joined #ruby
<RubyPanther>
Nope, it was to abstract out the implementation details of serializing the data into the database
<benzrf>
huh?
<benzrf>
oh i see what you're saying
<RubyPanther>
So that you can present an interface that is based on your problem domain, rather than being based on the database.
<benzrf>
sounds like you wouldn't like sequel then
<benzrf>
it's more like sql as a ruby dsl than an ORM
<benzrf>
afaict
baroquebobcat has quit [Quit: baroquebobcat]
<benzrf>
i.e. it returns hashes for rows
<RubyPanther>
The funny part is that I use way more RDBMS features in my Ruby apps than most people
gquental has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
<RubyPanther>
But that doesn't mean I want to expose them to the ORM user. That stuff still has to be properly hidden. Things like composite keys, there is no way the user isn't going to be asked to be aware of it and not step in it. Data and metadata are just different. It is the same as with a Ruby object id. It is not supposed to have meaning outside of the currently running program. It is not data. New objects should not attempt to choose their
<RubyPanther>
IDs. Why would a new row get to choose its ID? What if it chooses wrong? What it changes its mind?
yshh has quit [Remote host closed the connection]
brunetti has quit [Remote host closed the connection]
rm__ has joined #ruby
chrisan has quit [Ping timeout: 272 seconds]
<benzrf>
ehaliewicz:
<benzrf>
*eh
w|t has quit [Ping timeout: 272 seconds]
<RubyPanther>
The fact that data changes over time, just that one cow pattie, destroys the whole concept of meaningful keys. They are known to be harmful, and the harm grows, like bit rot, without even touching the data. The older it gets, the more likely some of it has changed. Which is worse, not being able to cross reference archived data with live data, because some of the live data might have changed since being archived, or having the keys cla
<RubyPanther>
im to have meaning, but actually they're all lies because you couldn't change the keys to match new data because you knew the archive needed to reference future archives?
hielscher has joined #ruby
<benzrf>
iunno, i feel like as long as your connection api returns hi-level objects, theres nothing wrong with writing raw sql
<benzrf>
what problems arise there
<benzrf>
?
w|t has joined #ruby
vlad_starkov has joined #ruby
<RubyPanther>
I agree, there is nothing wrong with writing SQL. I write lots of SQL. What is wrong is writing SQL that is demonstrably harmful, and the claimed benefits are related to using only primitive tools in an unsafe way
rm__ has quit [Ping timeout: 246 seconds]
<benzrf>
how is sql harmful
<benzrf>
?
<RubyPanther>
It is still SQL even without composite keys ;)
vlad_starkov has quit [Read error: Connection reset by peer]
<benzrf>
yes, but composite keys prevent overlapping data
DrShoggoth has joined #ruby
<RubyPanther>
Another funny thing he says is that Sequel is better, because AR users like to monkey-patch. So... if AR stayed the same, didn't change a single line of code, but I stopped monkey patching it... it would improve? I'm pretty sure that is wrong. I do at least agree that the gems that do so are mostly bad, but how can it be AR's fault? If I write a bad gem that monkey-patches Sequel, will Sequel suck more?
<benzrf>
youre guaranteed not to end up with invalid overlaps if you have a uniqueness constraint on the columns that are, in fact, unique and identifying
robbyoconnor has quit [Excess Flood]
<RubyPanther>
composite keys have NOTHING to do with preventing overlapping data; you can do that with a regular database constraint if you want it in the database
robbyoconnor has joined #ruby
phipes has quit [Remote host closed the connection]
<benzrf>
then why have both an int primary id AND an effective key that isnt actually one>
tekacs has quit [Ping timeout: 252 seconds]
<RubyPanther>
Modern theory generally says that things like if data overlaps should be worried about in the app layer, and the database should worry only about keeping the data consistent, but even if you want to do all that in the db there is no reason to deny yourself the ability to ever archive data
mary5030 has quit [Remote host closed the connection]
<RubyPanther>
because a constraint isn't an "effective key" that is just not what it is
kitak has quit [Ping timeout: 245 seconds]
<RubyPanther>
a key is metadata that you can use to reference other data
qz has quit [Ping timeout: 252 seconds]
JStoker has quit [Ping timeout: 252 seconds]
TwinkleH1od has quit [Ping timeout: 260 seconds]
sec^nd has quit [Ping timeout: 240 seconds]
eyckelboom has quit [Ping timeout: 252 seconds]
Drakevr has quit [Ping timeout: 260 seconds]
<RubyPanther>
there are real, practical benefits of having that metadata be something that doesn't change. Actually it is a basic requirement because maybe not you, but the person coming after you, will almost certainly want to archive data. And the new boss will change the business rules, and a different set of data will be required not to overlap.
TwinkleHood has joined #ruby
qz has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Drakevr has joined #ruby
eyckelboom has joined #ruby
tekacs has joined #ruby
JStoker has joined #ruby
<benzrf>
wat?
sec^nd has joined #ruby
<benzrf>
everything ive ever seen says that the key is supposed to be the thing that uniquely identifies the row, that can be used to look up a specific one
<RubyPanther>
"Sorry sir, the changes will cost $17m because of the cost of re-building the keys in 15 years of warehoused data, otherwise we'll break all our analytics"
okinomo has quit [Read error: Connection reset by peer]
<RubyPanther>
If it is based on real data, data changes. Therefore, it cannot be used to look up a specific row of data; instead all you can do is look up whichever row has data that matches some sort of search that has been shoehorned onto the keys.
lethjakman has quit [Ping timeout: 272 seconds]
robbyoconnor has quit [Ping timeout: 246 seconds]
<RubyPanther>
It needs to be both unique, and unchanging. Also, a maintenance programmer should be able to look at the database and tell what is data and what is metadata.
yacks has joined #ruby
St_Marx has joined #ruby
benzrf has left #ruby [#ruby]
Kricir has quit [Remote host closed the connection]
yshh has joined #ruby
okinomo has joined #ruby
IceDragon has quit [Quit: Space~~~]
michaeldeol has joined #ruby
f0ster has quit [Remote host closed the connection]
<RubyPanther>
Also, the post claims that AR wants to do constraints in the app layer, but actually AR doesn't know, doesn't care. That should be an issue for however you create the schema.
N00D is now known as zz_N00D
mneorr has joined #ruby
rickruby has joined #ruby
<RubyPanther>
He also talks about postgres support, and while I love Postgres and it is the only RDBMS I willingly choose... I can't really see how AR is getting in my way. He talks about wanting to not be afraid to use triggers, he should just be less afraid. ;)
robbyoconnor has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Riking has joined #ruby
cow_ has joined #ruby
mneorr has quit [Ping timeout: 248 seconds]
zxq9 has quit [Quit: Konversation terminated!]
psyl0n has quit [Remote host closed the connection]
flame_ has quit [Quit: Computer has gone to sleep.]
<Riking>
how good is Eclipse's ruby plugin? should I search for a different IDE?
ewnd9 has joined #ruby
michaeldeol has quit [Remote host closed the connection]
michaeldeol has joined #ruby
mikepack has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
<Riking>
I just found aptana, which is available as an Eclipse plugin. Trying it now
mikepack has quit [Remote host closed the connection]
kitak has joined #ruby
mlpinit has joined #ruby
Faris has quit [Ping timeout: 246 seconds]
iamjarvo_ has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
robbyoconnor has joined #ruby
mikepack has joined #ruby
michaeldeol has quit [Ping timeout: 272 seconds]
klaut has joined #ruby
cow_ has quit [Remote host closed the connection]
mechanicles has joined #ruby
mlpinit has quit [Ping timeout: 240 seconds]
estebistec has quit [Remote host closed the connection]
totalmajor has quit [Remote host closed the connection]
St_Marx has quit [Ping timeout: 240 seconds]
gja has quit [Quit: This computer has gone to sleep]
totalmajor has joined #ruby
iamjarvo_ has quit [Ping timeout: 245 seconds]
tjbiddle has joined #ruby
klaut has quit [Ping timeout: 252 seconds]
St_Marx has joined #ruby
totalmajor has quit [Ping timeout: 252 seconds]
jmo has joined #ruby
elux has left #ruby [#ruby]
SHyx0rmZ has quit [Ping timeout: 252 seconds]
Parker0 has joined #ruby
kitak has quit [Remote host closed the connection]
decoponio has joined #ruby
benzrf has joined #ruby
<benzrf>
shevy: let me pour haskelly goodness into your brain
danshultz has joined #ruby
ewnd9 has quit [Remote host closed the connection]
flubba has quit [Remote host closed the connection]
ewnd9 has joined #ruby
flubba has joined #ruby
lethjakman has joined #ruby
Nilium has quit [Ping timeout: 246 seconds]
dima has joined #ruby
gizmore has joined #ruby
<gizmore>
<?= die('PHP'=='solid'); ?>
havenwood has joined #ruby
<gizmore>
i quit php
brennanMKE has quit [Remote host closed the connection]
totalmajor has joined #ruby
<benzrf>
gigetoo: congrats
<benzrf>
were all very happy for you
brennanMKE has joined #ruby
zxq9 has joined #ruby
<gizmore>
let me restart at ruby=0; # How do i install a gem locally for development (aid in enhancing the gem)
danshultz has quit [Ping timeout: 272 seconds]
<gizmore>
i`d like to extend a "country" gem
<gizmore>
and add preferred languages for a country
mikepack has quit [Remote host closed the connection]
<ddd>
go to the homepage for it, find wher ethey keep the source and get it and extract it out
<ddd>
see a gemfile for an example how to specify the git part. think i got it right though
<benzrf>
its my favorite imperative language so far
<benzrf>
although it has some major flaws
Nilium has joined #ruby
<gizmore>
ddd: thank you very much... what would my localhost git repo look like? file:///DATA/ProjectRuby/countrygem ?
vlad_starkov has quit [Read error: Operation timed out]
dima has quit [Remote host closed the connection]
<ddd>
then you can modify your fork all you want, and it will pull in your fork instead of the actual git for the gem,
<ddd>
no
<ddd>
well idk if git: will take a file:// uri
<ddd>
it might, idk
dima has joined #ruby
<gizmore>
yeah, that´s exatly what i want, git clone, use with bundler on my ror project, git commit && git push
michaeldeol has joined #ruby
<gizmore>
in case my data could help the countrygem... of course in ruby everything is like done and standards
<ddd>
just get a github account, fork the gem, use YOUR github uri for the 'git:' part of the gem line and it will ignore the real git
<gizmore>
standards some people define in their gems :}
<benzrf>
you hardly need a github to use git
<gizmore>
yep, don´t see the point
<gizmore>
i have a gitolite server anyway
<ddd>
benzrf: i said i didn't know if git: portion of the git: spec in Gemfile could use file: uris
<ddd>
that works too
jmo has quit [Ping timeout: 246 seconds]
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dima__ has joined #ruby
<gizmore>
i want that setup on my localhost desktop, for developement and
<ddd>
just suggested the github. the point being I don't know if gem 'country', git: file//path/to/local/filesystem/gitrepo.git works or not in Gemfile
<ddd>
thats all i was saying
gja has joined #ruby
<ddd>
if it doesn't then github is easy to set up if you don't already have a git server running elsewhere
dima has quit [Read error: Connection reset by peer]
<gizmore>
iirc i read something about "gemming gems"
<ddd>
thats all i meant
<gizmore>
and there someone explained how to setup gemdev
<gizmore>
probably bundler or "gem" should do it somehow
<ddd>
:shrug:
<gizmore>
use gem to install a forced version of country1.0.0
<gizmore>
from the gitclone.... then simply all projects use it by default
<benzrf>
ddd: you could just use git://localhost/foo
<ddd>
gem 'country', '1.0.0', git: file://blahblahcountry.git or something
<RubyPanther>
bundler should handle it correctly with any git urio
<RubyPanther>
-o
<gizmore>
thanks benzrf
<ddd>
so long as the version file matches what you're specifying it should work fine
mansi has quit [Remote host closed the connection]
<ddd>
the gem's version.rb that is
<gizmore>
so basically my old php code featured Country<=>Language ... you could query countries for their spoken languages, order by relevance
michaeldeol has quit [Ping timeout: 245 seconds]
<gizmore>
it seems there is no ror/country gem that features the langmap?
mansi has joined #ruby
banghouse has joined #ruby
dima__ has quit [Remote host closed the connection]
<Riking>
benzrf, kinda having trouble thinking of stuff to do. as I always have
<Riking>
what's a non-trivial thing i could practice with
<benzrf>
Riking: codewars.com is neat
<benzrf>
it has challenges n shit
<Riking>
OK
<benzrf>
Riking: btw you can in fact write bukkit plugins in ruby via purugin, which is a jruby + bukkit api extension
<benzrf>
plugin
<benzrf>
i just wrote one in the last 3-4 days
mmitchell has quit [Remote host closed the connection]
<Riking>
as i said, i'm trying to move away from MC
<benzrf>
it was much nicer than when i used eclise & java
<benzrf>
mk
kitak has joined #ruby
<benzrf>
i find ruby & python to be nice for scripting, ad hoc data processing, and websites
jmo has joined #ruby
<benzrf>
*by ad hoc data processing i mean things like taking a web page, scraping the links off of it, and making a nice graph of what websites it points to
<Riking>
codewars.com isn't loading anything.....
<benzrf>
really?
<benzrf>
its up for me
<gizmore>
benzrf: i feel like a new man when dropping php
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
<Riking>
Uncaught ReferenceError: FAYE_URL is not defined
Yarou has quit [Quit: This computer has gone to sleep]
okinomo has quit [Ping timeout: 248 seconds]
dima has quit [Ping timeout: 240 seconds]
zz_karupanerura is now known as karupanerura
okinomo has joined #ruby
<gizmore>
okay, so why do those country libs do not use a db + activerecord?
dogweather has quit [Remote host closed the connection]
lethjakman has quit [Ping timeout: 246 seconds]
Tentra has quit [Ping timeout: 248 seconds]
rm__ has joined #ruby
brennanMKE has joined #ruby
tacos1de has joined #ruby
guardianx has quit [Ping timeout: 246 seconds]
guardianx has joined #ruby
rm__ has quit [Ping timeout: 252 seconds]
brennanMKE has quit [Ping timeout: 248 seconds]
jmo has quit [Ping timeout: 252 seconds]
gja has quit [Quit: This computer has gone to sleep]
Asher has quit [Quit: Leaving.]
klaut has joined #ruby
<ddd>
can someone give me a concrete example of this? I don't quite understand what it means. rescue clauses can be directly placed on the outermost level of a method definition without needing to enclose the contents in a begin/end block.
<ddd>
i understand begin ; method (args) ; rescue ExceptionName ; msg to send back ; end but not understanding the wording that sentence is using
Barrin6 has quit [Quit: Leaving]
Asher has joined #ruby
<ddd>
rescue ExceptionName, puts "Error caught", method(args) is that what they mean?
<pipecloud>
ddd: It's easier on multiple lines, one sec.
<ddd>
ok
<ddd>
i got what you meant with the ;. I newlined it in the head
klaut has quit [Ping timeout: 246 seconds]
fire has joined #ruby
SteveBenner09 has quit [Remote host closed the connection]
SteveBenner09 has joined #ruby
<ddd>
now thats inside the method itself. how would you do it outside of the method in question? or is that allowed without using begin rescue end clause?
<ddd>
because the method would return the Exception if it died during it's execution, wouldn't it?
<ddd>
ahh ok didn't realize that was what they meant
<pipecloud>
I'm not sure about the second question you asked: "now thats inside the method itself. how would you do it outside of the method in question? or is that allowed without using begin rescue end clause?"
nanoyak has joined #ruby
<ddd>
yeah like could you do rescue HumanError, "this failed", huuman(@name)
gja has joined #ruby
<ddd>
so that if huuman threw a HumanError, "this failed" would be output because the rescue statement caught it
<ddd>
not sure if thats right syntax or even possible. thats what i *thought* they were meaning by directly placed on the outermost level
<ddd>
but i guess 'definition' should have told me
fire has quit [Quit: WeeChat 0.4.1]
OdNairy has joined #ruby
okinomo has quit [Ping timeout: 252 seconds]
okinomo has joined #ruby
purpleidea has joined #ruby
Asher has quit [Quit: Leaving.]
<purpleidea>
trying to get the interface name (and cidr) that an ip address is on... trying to use 'system-getifaddrs', which installs but errors when i try to 'require' it. any ideas?
LexicalScope` has joined #ruby
<purpleidea>
no such file to load -- system/getifaddrs
Vivekananda has quit [Quit: Ex-Chat]
rippa has joined #ruby
roadt has quit [Ping timeout: 272 seconds]
<Riking>
bsp---he's gone
<Riking>
but i finished
vlad_starkov has joined #ruby
<pontiki>
purpleidea: i dunno, i just installed it and i can require it. did something go wrong in the installation?
vlad_starkov has quit [Read error: Connection reset by peer]
lewix has quit [Remote host closed the connection]
<purpleidea>
pontiki: i did it as root... other than that, i don't think so
<SteveBenner09>
well so far I've only used RestClient lightly but now I'm integrating these type of tools into a serious product and toolset so... I take my time to research :)
<shevy>
module Foo; def hi; puts 'hi'; end; class Bar; include Foo; end; end; Foo::Bar.new.hi
<shevy>
in your auto-include proposal, variant 1 would have worked blassing
<blassing>
I was hoping it would
shime has quit [Ping timeout: 245 seconds]
<bnagy>
autoinclude is awful
nemesit|znc has quit [Ping timeout: 265 seconds]
<blassing>
not being auto is verbose
jmo has joined #ruby
<bnagy>
makes code unreadable
<bnagy>
look at Fails
<blassing>
Fails?
<bnagy>
Ruby on Fails
<blassing>
oh
bauerbob has joined #ruby
<shevy>
blassing not being auto is verbose, that is a fine statement. now again, what if people don't want autoinclude?
<blassing>
there is that
<shevy>
I think you can not uninclude cleanly in ruby right now
Brolen has quit [Quit: Brolen]
<Hanmac1>
you cant uninclude nor unextend nor unprepend ...
Hanmac1 is now known as Hanmac
<shevy>
:(
<shevy>
that's like loading a gun and making sure you can't get the ammo back again
AirDisa has joined #ruby
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
<Hanmac>
shevy compare it with baking a cake ... once you added the ingredients (modules) you cant remove them anymore ;P
AirDisa has quit [Remote host closed the connection]
<shevy>
except that these are bytes, not atoms!
AirDisa has joined #ruby
<waxjar>
you can undefine inidividual methods, but who knows what kind of nasty business self.included / self.extended did
<bnagy>
undefine doesn't undefine
<Hanmac>
lets say what blassing wants is not good for ruby
<bnagy>
it just 'blocks' dispatch
gasbakid has joined #ruby
<blassing>
sure, I can live with that :D
<shevy>
blassing see? now Hanmac realized that what you want is not good for ruby!!!
<blassing>
just learning here
jegerlow has joined #ruby
<waxjar>
really bnagy? :(
brennanMKE has joined #ruby
freebs has joined #ruby
grep_away is now known as grep_awesome
vlad_starkov has joined #ruby
AirDisa has quit [Remote host closed the connection]
<bnagy>
waxjar: afaik yeah
<bnagy>
I believe you can still step around it, even
pen has joined #ruby
AirDisa has joined #ruby
<bnagy>
but I haven't fiddled with it for a while, could be wrong / out of date
<waxjar>
heh, it is ruby after all :p
<bnagy>
anyway gtg
pushpak has joined #ruby
blassing has left #ruby [#ruby]
nemesit|znc has joined #ruby
blassing has joined #ruby
AirDisa has quit [Read error: Connection reset by peer]
obs has quit [Ping timeout: 246 seconds]
jonathanwallace has joined #ruby
AirDisa has joined #ruby
jkamenik has quit [Quit: Leaving.]
joaoh82 has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
mneorr has joined #ruby
blassing has left #ruby [#ruby]
gasbakid has quit [Max SendQ exceeded]
aspiers has quit [Read error: Connection reset by peer]
psyl0n has quit [Remote host closed the connection]
joaoh82 has quit [Read error: Connection reset by peer]
klcant102 has joined #ruby
joaoh82 has joined #ruby
gasbakid has joined #ruby
m00nlight has joined #ruby
spyderman4g63 has joined #ruby
z has quit [Ping timeout: 246 seconds]
z has joined #ruby
jegerlow has quit [Ping timeout: 272 seconds]
SHyx0rmZ has joined #ruby
aryaching has joined #ruby
mneorr has quit [Ping timeout: 272 seconds]
AirDisa has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
joaoh82 has quit [Ping timeout: 260 seconds]
totalmajor has joined #ruby
vlad_starkov has joined #ruby
Hanmac1 has joined #ruby
blackmes1 has joined #ruby
AirDisa has joined #ruby
psyl0n has joined #ruby
agjacome has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
blarghmatey has joined #ruby
figgleberry has joined #ruby
nateberkopec has joined #ruby
totalmajor has quit [Ping timeout: 260 seconds]
gasbakid has quit [Remote host closed the connection]
kewubenduben has quit []
estebistec has joined #ruby
AirDisa has quit [Remote host closed the connection]
pskosinski has joined #ruby
DrShoggoth has joined #ruby
z has quit [Ping timeout: 246 seconds]
eka has joined #ruby
az has joined #ruby
wildroman2 has quit [Remote host closed the connection]
z has joined #ruby
lewix has quit [Remote host closed the connection]
DrShoggoth has quit [Max SendQ exceeded]
banghouse has joined #ruby
aspiers_ has joined #ruby
DrShoggoth has joined #ruby
sepp2k1 has joined #ruby
shime_ has quit [Ping timeout: 272 seconds]
AlSquire has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
z has quit [Ping timeout: 246 seconds]
rubyracer has joined #ruby
TomRone has quit [Ping timeout: 240 seconds]
sepp2k has quit [Ping timeout: 246 seconds]
jegerlow has joined #ruby
shime has joined #ruby
axl_ has joined #ruby
z has joined #ruby
psyl0n has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
bklane has quit [Remote host closed the connection]
TomRone has joined #ruby
klcant102 has quit [Quit: Leaving]
z has quit [Ping timeout: 246 seconds]
aspiers_ has quit [*.net *.split]
banghouse has quit [*.net *.split]
JStoker has quit [*.net *.split]
dayepa has quit [*.net *.split]
pipecloud has quit [*.net *.split]
lupine has quit [*.net *.split]
bgy has quit [*.net *.split]
brennanMKE has joined #ruby
Parker0 has joined #ruby
obs has joined #ruby
DrShoggoth has quit [Ping timeout: 272 seconds]
sayan_ has quit [Ping timeout: 246 seconds]
Brolen has joined #ruby
Neomex has joined #ruby
klcant102 has joined #ruby
JPascal has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
meatherly has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
brennanMKE has quit [Ping timeout: 272 seconds]
michaeldeol has joined #ruby
mechanicles has joined #ruby
aspiers_ has joined #ruby
dayepa has joined #ruby
z has joined #ruby
pipecloud has joined #ruby
JStoker has joined #ruby
bgy has joined #ruby
lupine has joined #ruby
banghouse has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
drago777 has joined #ruby
tyl has quit [Write error: Broken pipe]
meatherly has quit [Read error: Connection reset by peer]
threesome has joined #ruby
pen has quit []
meatherly has joined #ruby
DrShoggoth has joined #ruby
havenwood has joined #ruby
mansi_ has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
Megtastique has joined #ruby
michaeldeol has quit [Ping timeout: 272 seconds]
centipedefarmer has quit [Remote host closed the connection]
gja has joined #ruby
joriso has joined #ruby
<olivier_bK>
hy all
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
mansi_ has quit [Ping timeout: 260 seconds]
DrShoggoth has quit [Ping timeout: 246 seconds]
havenwood has quit [Ping timeout: 272 seconds]
<olivier_bK>
In the script A i call the script b for make a backup of database
<olivier_bK>
but all the time after 5 or 10s
Kar- has joined #ruby
<olivier_bK>
i get lost connection
<olivier_bK>
do you know how i can tell to the script A to wait
<olivier_bK>
??
Neomex has quit [Quit: Neomex]
kewubenduben has joined #ruby
sayan has joined #ruby
<Hanmac1>
olivier_bK: rails ?
<olivier_bK>
ruby
<Hanmac1>
no i mean what do you use for backuping the database?
Advocation has joined #ruby
joriso has quit [Read error: Connection reset by peer]
<olivier_bK>
ohh
<olivier_bK>
mysqldump
<olivier_bK>
:)
<klcant102>
olivier_bK: you can try to use sleep(num_secs) in your script
mechanicles has quit [Quit: Computer has gone to sleep.]
<olivier_bK>
okai but
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<olivier_bK>
all database doesn't have same size
AlSquire has quit [Ping timeout: 272 seconds]
joaosa has joined #ruby
<olivier_bK>
for exemple for agfio is 100Mo but for korus is 1Go
AlSquire has joined #ruby
<Hanmac1>
there is popen or Open3 ... one of them has a way to wait unitl its finish
DrShoggoth has joined #ruby
okinomo has quit [Ping timeout: 252 seconds]
<klcant102>
olivier_bK: so you are actually wanting to have script A wait until script B finishes before it continues (not a timed thing ... but a trigered thing)?
<shevy>
what is the way to check if string x = 'abc3gg' includes a (at least one) number?
<olivier_bK>
klcant102, yes
<shevy>
found it
samsonasu has joined #ruby
lmickh has joined #ruby
<phutchins>
If i'm trying to use json in a recipe, can i just do node = { :logstash => { :server => .... ?
<olivier_bK>
klcant102, do you have an idea ?
jkamenik has joined #ruby
cow_ has quit [Remote host closed the connection]
Nilium_ has joined #ruby
<phutchins>
and also, can someone explain to me the difference (or point me in the right direction on how to google the answer) between doing something like bleh: "stuff" and :bleh => "stuff"
Wolland has quit [Remote host closed the connection]
<hoelzro>
phutchins: they're the same
mrnugget has quit [Quit: mrnugget]
rm_ has quit [Read error: Connection reset by peer]
rm_ has joined #ruby
DrShoggoth has quit [Ping timeout: 240 seconds]
niklasb has joined #ruby
Czupa has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
_maes_ has joined #ruby
fmcgeough has joined #ruby
snath has quit [Ping timeout: 240 seconds]
obs has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
kewubenduben has quit [Ping timeout: 240 seconds]
kewubenduben has joined #ruby
mneorr has joined #ruby
sayan has quit [Max SendQ exceeded]
nhmood_ has joined #ruby
banghouse is now known as Guest53487
z is now known as Guest54434
asteve has joined #ruby
<olivier_bK>
how i can tell to my script to wait until script b finishe before to display lost connection ?
sayan has joined #ruby
DrShoggoth has quit [Max SendQ exceeded]
MindfulMonk has joined #ruby
joaoh82 has joined #ruby
bean has joined #ruby
nateberkopec has quit [Quit: Leaving...]
shime has quit [Ping timeout: 246 seconds]
Guest53487 is now known as banghouse
Guest54434 has quit [Ping timeout: 246 seconds]
z_ has joined #ruby
<hoelzro>
olivier_bK: is script b running as a child process of script a?
_honning_ has joined #ruby
<olivier_bK>
no
DrShoggoth has joined #ruby
<olivier_bK>
hoelzro, he do ssh connection on server b for execute the script
MindfulMonk has quit [Client Quit]
mneorr has quit [Ping timeout: 245 seconds]
nhmood_ has quit []
nhmood has joined #ruby
<hoelzro>
"[15:42] < olivier_bK> | In the script A i call the script b for make a backup of database"
<hoelzro>
I'm confused now...
DeanH has joined #ruby
DeanH has quit [Max SendQ exceeded]
<shevy>
lol
wildroman2 has joined #ruby
mzdravkov has left #ruby [#ruby]
<shevy>
he just wants to backup something
joaoh82 has quit [Ping timeout: 252 seconds]
<shevy>
phutchins obviously you save a character if you use the first version
<shevy>
or perhaps two
mary5030 has joined #ruby
<olivier_bK>
hoelzro, in the server A i have a script he try to connect in ssh to server b for execute the script b for backup database
<olivier_bK>
but sometimes the size of database is different so i get lost connection
<olivier_bK>
from server b
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
<hoelzro>
olivier_bK: could you paste the code for script A?
alexherbo2 has joined #ruby
<olivier_bK>
yes
<olivier_bK>
gime me one minute
<olivier_bK>
thanks
mansi_ has quit [Remote host closed the connection]
<shevy>
phutchins well, can you show the complete syntax?
cow_ has joined #ruby
DrShoggoth has quit [Ping timeout: 246 seconds]
<hoelzro>
olivier_bK: I've never used Net::SSH, but you might have to set some sort of timeout parameter
<shevy>
obviously "node = { :blaah..." would not be valid
lewix has joined #ruby
kevind has joined #ruby
<hoelzro>
check strace/logs for more information
Brolen has quit [Quit: Brolen]
<txdv>
o ruby with its green threads
tylersmith has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
<txdv>
all the disatvantages of thread synchronization combined with no advantage on multi processors
drago777 has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
mordocai has joined #ruby
drago777 has joined #ruby
<phutchins>
hoelzro: yeah sure. Its a bunch of json after the { but to shorten it with a complete example... maybe something like: node = { :blah => { :other_blah => [ "hi there" ] } }
mengu has quit []
<hoelzro>
yeah, that looks fine
<phutchins>
hoelzro: ok cool thx.
ambushsabre has joined #ruby
<phutchins>
and would be thes same as node.blah = { :other_blah => [ "hi there" ] }
<phutchins>
yes?
ludar has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
<olivier_bK>
hoelzro, i going to see
_honning_ has quit [Ping timeout: 272 seconds]
<hoelzro>
more like node[:blah] = { :other_blah => [ 'hi there' ] }
<hoelzro>
node.blah = is a method call
<hoelzro>
(well, so is node[:blah]...)
<phutchins>
ah, i think the node object for chef allows it but that makes sense and good to know about pure ruby...
<phutchins>
i know i can do node[:blaah]
<phutchins>
but the node = threw me off
<hoelzro>
ah
<hoelzro>
well
<hoelzro>
you *could* create an object that treated node.blah = as node[:blah] =
ludar is now known as ludarr
z_ has quit [Ping timeout: 246 seconds]
Advocation has quit [Quit: Advocation]
ludarr is now known as ludar
<pontiki>
that might even be an OpenStruct
z_ has joined #ruby
Nuck has quit [Quit: Nuck Off]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
vlad_starkov has joined #ruby
<phutchins>
hoelzro: yeah, i think thats what chef's node object does. only when accessing tho not assigning. I may have to do node.default = {
gja has quit [Quit: This computer has gone to sleep]
sharms has quit [Ping timeout: 240 seconds]
az has quit [Ping timeout: 240 seconds]
Dwarf has quit [Ping timeout: 240 seconds]
mordocai` has joined #ruby
drago777 has quit [Ping timeout: 240 seconds]
TomRone has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
az has joined #ruby
r0bby_ has quit [Ping timeout: 246 seconds]
crus` has joined #ruby
z has quit [Ping timeout: 245 seconds]
ereslibre_laptop has joined #ruby
ereslibre_laptop has joined #ruby
ereslibre_laptop has quit [Changing host]
mneorr has quit [Ping timeout: 252 seconds]
figgleberry has quit [Ping timeout: 272 seconds]
totalmajor has joined #ruby
lurch__ has joined #ruby
lurch__ has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
MindfulMonk has joined #ruby
joaoh82 has quit [Ping timeout: 246 seconds]
z has joined #ruby
miqsu has joined #ruby
rubyracer has quit [Quit: Konversation terminated!]
Hien_ has joined #ruby
phus1on has quit [Ping timeout: 272 seconds]
dioms_ has joined #ruby
cow_ has quit [Remote host closed the connection]
cow_ has joined #ruby
jmbrown412 has joined #ruby
phus1on has joined #ruby
<jmbrown412>
Is it possible to create a gem that uses another gem? I want to create a gem for talking to Equifax and would likely use some gem to do the XML messaging.
cameronbarton has joined #ruby
cow__ has joined #ruby
cgore has joined #ruby
totalmajor has quit [Ping timeout: 272 seconds]
lethjakman has joined #ruby
cow_ has quit [Read error: Connection reset by peer]
Taranis has joined #ruby
[0x1a]_ has joined #ruby
cow__ has quit [Remote host closed the connection]
geggam has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 248 seconds]
roadt has quit [Read error: Connection reset by peer]
z has quit [Ping timeout: 246 seconds]
robmozart_ has joined #ruby
rm_ has joined #ruby
z has joined #ruby
<DouweM>
sure, you can specify the other gem as a dependency
havenwood has joined #ruby
rickruby has quit [Remote host closed the connection]
<havenwood>
apeiros: So next Ruby release will be 2.1.1 :O
<apeiros>
lessless: in what regard?
attomos has quit [Quit: leaving]
<havenwood>
we've entered the modern era... :P
<apeiros>
havenwood: I'll read about it next year :)
<havenwood>
haha
<lessless>
apeiros, can user read file outside of Rails.root
<havenwood>
2.2 next Christmas, what wonders will it bring?!
<apeiros>
lessless: aha, now a question which makes some sense
<apeiros>
not sure
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doodlehaus has joined #ruby
meatherly has quit [Ping timeout: 248 seconds]
soobus has joined #ruby
rm_ has quit [Ping timeout: 260 seconds]
mreiss has quit [Ping timeout: 260 seconds]
<havenwood>
lessless: try #rubyonrails for Rails stuffs
endash_ has joined #ruby
<lessless>
havenwood, it's a plain ruby stuff dude
bean has joined #ruby
<havenwood>
Rails.root #=> lies!
<shevy>
Rails.root is plain ruby?
<lessless>
IO.read is plain ruby
<lessless>
wtf people
cameronbarton has quit [Quit: cameronbarton]
<lessless>
Rails.root is a simple variable here
Lulzon has joined #ruby
lfox has joined #ruby
lethjakman has joined #ruby
byprdct has quit [Ping timeout: 272 seconds]
<shevy>
<lessless> apeiros, can user read file outside of Rails.root
<shevy>
on a computer, you can use File.readlines just fine on all files you have read access to
<apeiros>
havenwood, shevy: replace `Rails.root` with "/some/dir"
<apeiros>
tadaa, plain ruby question
moneydouble has left #ruby [#ruby]
<havenwood>
Whew, back to sanity! :P
totalmajor has joined #ruby
bean has quit [Client Quit]
<Hanmac>
lessless lets say, if the system is correct configured and secured you should not be able to read outside of Rails.root (otherwise it might be a security (w)hole)
<shevy>
again I see Rails here
<shevy>
what is going on
adambeynon has quit []
<shevy>
neither Hanmac or lessless are on #rubyonrails hmmmm :)
<lessless>
shevy, turn on abstract thinking buddy :)
bean has joined #ruby
<lessless>
it's a variable
bean has quit [Client Quit]
flubba has joined #ruby
<shevy>
sure, you can use any variable you want to for File.readlines
Kricir has joined #ruby
<lessless>
are you an Hindu or something?
<shevy>
no
iamjarvo has quit [Remote host closed the connection]
<shevy>
are you a Railser or something?
maletor has joined #ruby
iamjarvo has joined #ruby
<lessless>
Hanmac, do you mean a chroot?
<Hanmac>
maybe ;P but i am not telling you that ,P
<apeiros>
gawd, what's wrong with you guys?
<apeiros>
are you all having a bad day or something?
rm_ has joined #ruby
Advocation has joined #ruby
meatherl_ has quit [Read error: Connection reset by peer]
colonolGron has quit [Quit: leaving]
meatherly has joined #ruby
* Hanmac
thinks he eat to much "chick peas" ;P
joaoh82 has joined #ruby
bean has joined #ruby
rankine has joined #ruby
dogweather has joined #ruby
rankine has quit [Changing host]
rankine has joined #ruby
iamjarvo_ has joined #ruby
cameronbarton has joined #ruby
michaeldeol has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
iamjarvo_ has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
interactionjaxsn has joined #ruby
Advocation has quit [Quit: Advocation]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamjarvo_ has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby
niklasb has quit [Ping timeout: 252 seconds]
jmo has joined #ruby
burlyscudd has quit [Quit: Leaving.]
Virtualize has joined #ruby
flame_ has quit [Remote host closed the connection]
flame_ has joined #ruby
mikeg has joined #ruby
coca_rails has quit [Remote host closed the connection]
coca_rails has joined #ruby
flame_ has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
artgoeshere has joined #ruby
olivier_bK has quit [Read error: Operation timed out]
flame_ has joined #ruby
ambushsabre has quit [Quit: rip]
<artgoeshere>
I'm testing for `object.name.empty?` were object.name is a string, though sometimes empty
<artgoeshere>
Every once in awhile it ends up nil
<artgoeshere>
And that breaks my logic 'cause nil.empty? throws an error
flame_ has quit [Remote host closed the connection]
<artgoeshere>
Is there a sexy ruby way to get around there? or do I need to write the whole thing out:
<artgoeshere>
if object.name && object.name.empty?
flame_ has joined #ruby
<Hanmac>
object.name.to_s.empty?
jmo has quit [Ping timeout: 246 seconds]
mjburgess has quit [Ping timeout: 245 seconds]
<artgoeshere>
aaaaaaah
<artgoeshere>
Thank you
Linux_Extremist has joined #ruby
Linux_Extremist has quit [Max SendQ exceeded]
Linux_Extremist has joined #ruby
rankine has quit [Ping timeout: 265 seconds]
interactionjaxsn has quit [Remote host closed the connection]
ssvo has joined #ruby
RoryHughes has joined #ruby
interactionjaxsn has joined #ruby
aspires has joined #ruby
tylersmith has joined #ruby
stetho has quit [Ping timeout: 240 seconds]
figgleberry has joined #ruby
rickruby has joined #ruby
DeanH has joined #ruby
interactionjaxsn has quit [Ping timeout: 245 seconds]
croaky has joined #ruby
rickruby has quit [Remote host closed the connection]
byprdct has joined #ruby
rickruby has joined #ruby
benzrf has joined #ruby
<benzrf>
hello rubyists
coca_rails has quit [Remote host closed the connection]
coca_rails has joined #ruby
coca_rails has quit [Remote host closed the connection]
glanotte has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
S0da has joined #ruby
rickruby has quit [Ping timeout: 272 seconds]
<benzrf>
man why is every channel so freakin quiet
<shevy>
well I used php many years ago, I kinda need to use something better
<shevy>
(to fully replace it)
<pontiki>
there's sequel pro for macs
<shevy>
"RailsDB Admin is similar in functionality to PHPMyAdmin and other database browsing and data editing tools."
<pontiki>
but it's desktop, not webapp
<dogweather>
desktop = better
iamjarvo_ has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
<pontiki>
i forget what the linux tool is called
<dogweather>
use it tunnelled through ssh via a non-standard port
iamjarvo has quit [Read error: Connection reset by peer]
<pontiki>
i think it already does that, dogweather
<dogweather>
nice
chatrjr_ has joined #ruby
<pontiki>
if not, you can easiliy make it
chatrjr_ has quit [Client Quit]
<dogweather>
yep
JustinAiken has left #ruby [#ruby]
Mars has joined #ruby
<dogweather>
my personal independence day: the day i uninstall php from my servers
bean has joined #ruby
<pontiki>
i'm not sure about desktop utilities for pg
<pontiki>
lol
<dogweather>
pgadmin
<pontiki>
YES!! I WILL CELEBRATE WITH YOU
Mars is now known as Guest54348
chatrjr has joined #ruby
echevemaster has joined #ruby
croaky has joined #ruby
toekutr has joined #ruby
<shevy>
dogweather you have to use php still?
<dogweather>
no actually --- i meant "the day i uninstalled php..."
<dogweather>
this month i switched to running a vps-per-app.
<dogweather>
and my apps are all rails or static pages.
iamjarvo_ has quit [Remote host closed the connection]
<dogweather>
i host my blogs on managed wp isps
iamjarvo has joined #ruby
<shevy>
guys, my brain is currently not working well
burlyscudd1 has joined #ruby
burlyscudd1 has quit [Client Quit]
<shevy>
I have some different arrays. I want to get the combined size, how many members are in all arrays together
monkegjinni has joined #ruby
<shevy>
right now I use ... sum = 0, and count up
<shevy>
but there is a way without having to declare a local var
<shevy>
and I dont remember how that was done
burlyscudd has quit [Ping timeout: 252 seconds]
burlyscudd has joined #ruby
virtual|a has quit [Ping timeout: 246 seconds]
saarinen has quit [Quit: saarinen]
<pontiki>
my blogs are all static
<shevy>
got it ... .inject(0) {|sum, element|
<pontiki>
jekyll, octopress, or middleman
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chatrjr has quit [Quit: Leaving]
bogeyd6 has quit [Ping timeout: 240 seconds]
rickruby has joined #ruby
saarinen has joined #ruby
sharms has quit [Ping timeout: 240 seconds]
levity_island has joined #ruby
hexus0 has joined #ruby
toekutr has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
sharms has joined #ruby
MindfulMonk has quit [Quit: Leaving]
rickruby has quit [Remote host closed the connection]
b00stfr3ak has quit [Ping timeout: 245 seconds]
rickruby has joined #ruby
Neomex has joined #ruby
Meistarin has quit [Ping timeout: 240 seconds]
blandflakes has quit [Quit: Page closed]
Asher has joined #ruby
soobus has joined #ruby
Meistarin has joined #ruby
rickruby has quit [Ping timeout: 260 seconds]
shedd has joined #ruby
timonv has quit [Remote host closed the connection]
Bosox20051 has quit [Remote host closed the connection]
lfox has quit [Quit: ZZZzzz…]
SteveBenner09 has joined #ruby
ylluminate has joined #ruby
LexicalScope has quit [Ping timeout: 272 seconds]
magoo has joined #ruby
Neomex has quit [Quit: Neomex]
ehc has joined #ruby
klcant102 has quit [Quit: Leaving]
Ilmen has joined #ruby
Megtastique has joined #ruby
hololeap has joined #ruby
senj has joined #ruby
ylluminate has quit [Read error: Connection reset by peer]
ylluminate` has joined #ruby
shedd has quit [Ping timeout: 252 seconds]
pierre1 has quit [Quit: Leaving]
jkamenik has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
<dogweather>
pontiki: yeah, i like those. but i realized i needed to go to zero-administration & maintenance.
butblack has joined #ruby
<dogweather>
wordpress is cheaper because i can pay a non-programmer intern to configure it.
niklasb has joined #ruby
ylluminate` has quit [Ping timeout: 248 seconds]
rippa has joined #ruby
tropicalmug has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<shevy>
hehehe
<shevy>
dogweather, I like that quote :)
<Ilmen>
Hello; I just downloaded RubyGo (a program written in Ruby) and tried to run it via the terminal of my Ubuntu 13.10 (I have Ruby 1.9.1), and I get an "invalid multibyte char (US-ASCII)" error entailed by a "ç" character in the main ruby file
<shevy>
Ilmen well encoding problems there
<shevy>
Ilmen try this in that .rb file:
<shevy>
# Encoding: ASCII-8BIT
<shevy>
then that specific error may disappear
skulker has joined #ruby
<Ilmen>
I'll try this, thanks
<shevy>
but I assume that this program is ancient, so you may run into other problems
flubba has quit [Remote host closed the connection]
banghouse has quit [Remote host closed the connection]
<rien>
apeiros: ping
flubba has joined #ruby
jonahR has joined #ruby
jonahR has quit [Client Quit]
mikeg has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
butblack has left #ruby [#ruby]
meatherly has joined #ruby
flubba has quit [Ping timeout: 240 seconds]
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ForceMultiplier has quit [Ping timeout: 272 seconds]
Virtualize has quit [Quit: Leaving...]
cj3kim has joined #ruby
dogweather has quit []
doodlehaus has joined #ruby
<Ilmen>
I installed tk and tcl + tk8.6-dev and tcl8.6-dev packages from Ubuntu repo's.... but still getting this "in `require': cannot load such file -- tk (LoadError)" error
meatherly has quit [Ping timeout: 245 seconds]
<Ilmen>
how does ruby know whether this tk module exists?
<monsieurp>
Ruby knows it all.
snath has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Virtualize|away has joined #ruby
agent_white has quit [Ping timeout: 252 seconds]
<shevy>
Ilmen this would require a = there
<shevy>
./configure --with-tcl=/usr/lib/tcl8.6
<Ilmen>
ouch
<shevy>
Ilmen ruby tries to query what exists when you compile it
<shevy>
but you use ubuntu, so you are using what someone else did for you
RoryHughes has quit []
<shevy>
in ubuntu and debian, they typically remove everything
<shevy>
even mkmf
kep has quit [Quit: WeeChat 0.4.2]
<shevy>
Ilmen in ruby source archive, there is ext/tk directory
<shevy>
in that directory, ruby extconf.rb can be run
<shevy>
when everything is fine, the bindings are compiled and are then available
<shevy>
require 'tk' will work once these are compiled
<Ilmen>
hmm
<shevy>
Ilmen you made tcl and tk available, but you still lack the ruby-bindings to them