<shadewind>
no you're probably right... it doesn't "feel" like it matters as much here
<Spooner>
Sure others would do otherwise. *waits for opinion landslide*
<shadewind>
not to say that it matters terribly in C++ either
frem has joined #ruby
<shadewind>
although some C++ nazi would probably beg to differ
niklasb has joined #ruby
<Spooner>
I'd make class methods if they used civars or were factory methods, say. I can see your point about utilities though; there isn't really any reason to put them on the instance, but there also isn't any reason to put them in the class either.
Goles has quit [Ping timeout: 245 seconds]
SegFaultAX|work has joined #ruby
<Spooner>
shadewind : Just put them in a Module instead. Best of all worlds ;)
<Spooner>
shadewind : Ah, one argument for making such a method static in Java is that you don't have an implicit self. In Ruby, you still get a self in a class method; it is just that it is the class rather than the instance.
<shadewind>
but there's an argument to why it wouldn't really matter since in Ruby, a class is no less an object than one of its instances
mrsolo has quit [Quit: Leaving]
<Spooner>
Yep.
snuglepuss has quit [Remote host closed the connection]
<shadewind>
in C++, a class is very far from an object
Asebolka has joined #ruby
<Spooner>
Indeed.
h4mz1d has joined #ruby
<shadewind>
Java is probably closer to Ruby in that respect but static methods, of course, are not members of the class object
postmodern has joined #ruby
aantix has quit [Ping timeout: 244 seconds]
<shadewind>
hmm... I think they are in Obj-C though
<shadewind>
don't quite remember
<Spooner>
frem Dunno. You only give one like and it doesn't look like it has the 4 expected values in it. You might try fastercsv rather than the standard csv, but no idea if that would help.
dylanjha has quit [Quit: Leaving...]
<Spooner>
*You only give one line
Nisstyre-laptop has quit [Ping timeout: 246 seconds]
<Spooner>
frem Also you might want to specify the :col_sep, since it doesn't look like you are looking at a comma separated file (tab? Space?).
moshee has quit [Ping timeout: 260 seconds]
<frem>
It's comma separated, and there are four fields.
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
jslowe has quit [Read error: Connection reset by peer]
fantazo has quit [Ping timeout: 240 seconds]
<shadewind>
for removing all matches of a regex from a string, should I use gsub or is there something specific for removing stuff?
<Spooner>
Oh, I see. I was thinking wc -l was showning the first line (sort of like a reverse tail). Silly me!
sdwrage has quit [Quit: geekli.st/programmer]
nitti has joined #ruby
<Spooner>
shadewind : Yeah, gsub /.../, '' does the job best
mwilson` has quit [Ping timeout: 264 seconds]
kartouch has quit [Ping timeout: 264 seconds]
<Spooner>
frem No clue then. Do the 4 values get passed into the block correctly the first (and only) time it is run?
<shadewind>
about those missing parentheses... do people usually do that?
kartouch has joined #ruby
<Spooner>
I generally skip them unless I need them, for example when chaining or doing a more complex expression. Noone will cry if you use parens all the time though.
h4mz1d has quit [Ping timeout: 264 seconds]
<shadewind>
I don't want to be "that guy", the one where you can see he's coming from another language
<Spooner>
shadewind : Even a simple 'puts "hello"' is calling a method without parenthesis, after all.
sent-hil_ has quit [Ping timeout: 256 seconds]
<shadewind>
Spooner: some coding convention told me "only omit parentheses for keyword-like built-in calls with a single argument" or something along those lines
mark[oz] has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
<Spooner>
Nah, leaving off parens on if is pretty important, so is 10.times do, rather than using for or similar constructs. Yeah, I've seen that too. Many people follow that.
<frem>
Spooner: looks like the input file isn't a properly encoded as UTF-8
Nisstyre-laptop has joined #ruby
<shadewind>
Spooner: yeah, I try to always use some kind of iterator instead
<Spooner>
shadewind : And #puts even takes any number of arguments as do many of those other system methods. *shrugs*
<shadewind>
Spooner: but mostly because it's nicer
lledet has quit [Quit: lledet]
<Spooner>
while x < 10; x += 1; end will mark you out as a noob quicker than saying "Hey, Python is cool" in your comments ;)
mando has joined #ruby
<Pip>
Is Ruby more OO than Python?
<shadewind>
definitely
<shadewind>
I haven't done much python but the OO in Python seemed more like a hacky afterthought than anything else
<Spooner>
I'd say it is, yes. Python is more OO than C++ and PHP though, but that isn't hard ;)
stephh_ has joined #ruby
<frem>
Python has most of Ruby's OO capabilities, but they're not all exposed nearly as nicely.
<shadewind>
I stronly dislike the explicit self argument in Python methods
<Spooner>
Yeah, not many languages are built on OO. Hacky afterthought is very obvious in some though. Interestingly, I was noticing how much functional stuff had crept into Ruby, so Ruby is OO, but with functional hacky afterthought :D
<shadewind>
but maybe they've gotten rid of that
<frem>
explicit self is still a thing
rabidpraxis has joined #ruby
<Spooner>
frem Try 1.succ in Python and tell me it is OO ;)
MissionCritical has quit [Ping timeout: 240 seconds]
kyletcarey has joined #ruby
<shadewind>
Spooner: honestly, Ruby doesn't even try to be a functional language
baroquebobcat has quit [Quit: baroquebobcat]
yellow5 has quit [Ping timeout: 244 seconds]
<shadewind>
and I mean that in a positive way
stephh has quit [Ping timeout: 246 seconds]
<Spooner>
It doesn't but it has a lot of stuff like Proc.curry, and method chaining which is clearly inspired by functional. I don't mean that it is a functional language.
<frem>
Spooner: You can redefined True and False to be each other. That's OO enough for most things I'd do. ;)
epitron_ has joined #ruby
<shadewind>
Spooner: right
fauxmight has joined #ruby
thomasfedb has quit [Ping timeout: 244 seconds]
<shadewind>
but the implementation of those features do not seem hacky to me
<Spooner>
Not regular method chaining, I mean all those things like #map and #inject, which allow for a certain style o fchaining.
<shadewind>
not in the way that explicit self in Python does
<shadewind>
mhm
mando has quit [Ping timeout: 246 seconds]
epitron has quit [Ping timeout: 246 seconds]
nateberkopec has joined #ruby
<shadewind>
but they are still imperatives
yellow5 has joined #ruby
<fauxmight>
While in the response_handler of imap.idle Is there a way to access the methods associated with the imap instance being idle'd?
<Spooner>
Well, for example, to curry, we need to explicitly #curry. In a functional language, there is implicit currying. No difference to the explicit self issue, I don't think.
conor_ireland has quit [Quit: conor_ireland]
tjbiddle has quit [Ping timeout: 246 seconds]
CaptainJet has joined #ruby
erichmenge has joined #ruby
pothibo has quit [Quit: pothibo]
mark[oz] has quit [Excess Flood]
arubin has joined #ruby
<Spooner>
I think we could have implicit currying, but it would break old code that didn't use it, so we have to do it manually. But then again, Ruby doesn't say it is functional in the way that Python says it is OO, as you are saying.
<shadewind>
Spooner: yes, that was exactly my thinking
<shadewind>
explicit self feels like something you'd do in C
<shadewind>
since there is no langauge support for such a feature
sailias has joined #ruby
dylanjha has joined #ruby
thomasfedb has joined #ruby
thomasfedb has joined #ruby
thomasfedb has quit [Changing host]
bricker has quit [Read error: Operation timed out]
<Spooner>
Does Python require explicit self for methods or are you talking about needing to pass the first argument as self manually? I found the way Lua managed that kind of horrible afterthought-hacky, but maybe it was just trying to please everyone all the time...
<Spooner>
*kind of thing horrible
<shadewind>
Spooner: I don't really use Python but when declaring a method in Python, you have to explicitly declare self as an argument to the method
<shadewind>
"Compared with other programming languages, Python'€™s class mechanism adds classes with a minimum of new syntax and semantic"
<Spooner>
Not as bad as having to explicity extract parameters in Perl functions though (but I am hopeful they've got past that by now!).
hbpoison has joined #ruby
<Spooner>
shadewind : I find that a lot. I've looked at a few language docs in the last week (well, Haskell and Go) and whenever they talk about syntax being cleaner than other languages, they are specifically only talking about C++/Java, because they seemed just about as verbose as any other very high level language I've seen.
<Spooner>
If not more so :D
iamjarvo has quit [Quit: Computer has gone to sleep.]
<shadewind>
I personally don't care that much about syntax or verbosity in general
sailias has quit [Quit: Leaving.]
justinmcp has joined #ruby
<shadewind>
I never found verbosity to be the problem with Java actually
<shadewind>
I had more issues with Java as a platform than the language itself
graeme has quit [Quit: graeme]
niklasb has quit [Ping timeout: 276 seconds]
<Spooner>
Really?
hbpoison has quit [Ping timeout: 255 seconds]
havenn has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
<shadewind>
it simply isn't suited for the things I usually like to do
caleb_io has joined #ruby
under_my_shoes has quit [Ping timeout: 268 seconds]
<shadewind>
i.e. client side apps, embedded stuff, graphics, GPU processor et.c.
<shadewind>
processing*
<shadewind>
my tool of choice for lower level stuff is usually a subset of C++
<shadewind>
or Objective-C if it's for the Mac
cakehero has joined #ruby
<Spooner>
Dunno, Ruby is good for GPU stuff ;) Not like Ruby slows down your GPU.
justinmcp has quit [Ping timeout: 264 seconds]
dylanjha has quit [Quit: Leaving...]
<shadewind>
no, but OpenCL is a C API
MissionCritical has joined #ruby
<shadewind>
there are bindings but it's just simpler to do that in C
<Spooner>
And Ruby is no good at binding to C APIs?
joeycarmello has joined #ruby
<shadewind>
dunno, I haven't used Ruby enough yet
<CaptainJet>
Hint: It is
<Spooner>
Thanks CaptainJet ;)
<shadewind>
probably
glyytchy has quit [Quit: glyytchy]
ZubKonst_ has quit [Remote host closed the connection]
<shadewind>
when I run into something that would be much simpler to do in Ruby, I'll interface with Ruby
samphippen has quit [Quit: Computer has gone to sleep.]
<shadewind>
I try to not get too attached to my tools
ZubKonst has joined #ruby
Takehiro has joined #ruby
<Spooner>
Ruby is ideal for managing C stuff where the "stuff" does a lot and the code wrapping that API doesn't need to do a lot (or at least doesn't need to be performant). Of course, it relies on bindings being made :)
<shadewind>
Spooner: yeah, I agree, it seems great for that
c0rn_ has quit []
<shadewind>
my current project consists mostly of a tight inner loop and lots of juggling of data between OpenCL and OpenGL et.c.
<shadewind>
there's isn't much managing done
<Spooner>
Has anyone actually used Ruby-OpenCL? I've had a lot of success with running shaders from Ruby, but I don't really have much use for other parallel processing.
<shadewind>
so I might as well stick to C in the meantime
dylanjha has joined #ruby
QaDeS has quit [Ping timeout: 255 seconds]
<Spooner>
Ah yes, Ruby doesn't do well at "juggling data" :D
<shadewind>
Spooner: it doesn't?
havenn has joined #ruby
<shadewind>
or rather, please elaborate :)
ZubKonst has quit [Ping timeout: 260 seconds]
Takehiro has quit [Ping timeout: 265 seconds]
dylanjha has quit [Client Quit]
<Spooner>
Well, I mean it isn't so great at playing with binary data and converting it to and from Ruby data. Good Ruby<->C stuff has a narrow aperture :D
<shadewind>
Spooner: right, that's what I thought
under_my_shoes has joined #ruby
lindenle_ has quit [Quit: Leaving]
<shadewind>
Ruby-OpenCL seems a bit... dead
<Spooner>
My thing, by the way, is writing 2D games in Ruby, so I often cry at Ruby's ability to manipulate data in anything like a realtime way (and yes, Ruby is a bad fit for what I do, but I am contrary).
hadees has quit [Quit: hadees]
<shadewind>
Spooner: well there are both disadvantages and advantages I suppose
Floydzy has quit [Read error: Connection reset by peer]
Floydzy has joined #ruby
apok_ has joined #ruby
mjbamford has joined #ruby
under_my_shoes has quit [Quit: Leaving]
apok has quit [Ping timeout: 260 seconds]
apok_ is now known as apok
<Spooner>
Well, writing C extensions to support my perversion is sort of counter to the idea that Ruby is nice and doesn't segfault all over you, but what the hell?
under_my_shoes has joined #ruby
<shadewind>
segfaults build your character
<shadewind>
it makes you a man
<Spooner>
Good job I was a man to start with then.
glyytchy has joined #ruby
Servidorv has joined #ruby
mockra has quit [Quit: leaving]
<Servidorv>
hey guys
caleb_io has quit [Quit: Leaving...]
<Servidorv>
good nights
<Spooner>
shadewind : So what are you doing with OpenCL? Predicting the end of the world from data collected from puddles in Wales?
emergion has joined #ruby
ebobby has quit [Quit: Lost terminal]
cakehero has quit [Quit: Computer has gone to sleep.]
QaDeS has joined #ruby
<Servidorv>
i have a question, can anyone check my code and see if it does what is supposed too?? i tested it but it returns the array but without the .map, the code is supposed to merge 2 arrays, delete duplicate, and .map 3 new keys
<shadewind>
Spooner: it's for my thesis project, a spring-damper simulation 3d ultra sound data intended to aid in medical visualization
<shadewind>
Spooner: sounds fancier than it is though
<shadewind>
missing an "of" in that sentence
pskosinski has quit [Ping timeout: 246 seconds]
<Spooner>
servidorv : If you use map as your last thing, you don't need to explicitly return userlist.
<Servidorv>
oh ok,
maletor has quit [Quit: Computer has gone to sleep.]
joofsh has quit [Ping timeout: 260 seconds]
<Servidorv>
so that was the problem right??
<Spooner>
Also you can do commtotal = comments[id] || 0 (which is a tad shorter).
<Servidorv>
thanks i will change it
<Spooner>
servidorv : As it is, it maps userlist, then returns the _original_ userlist.
<Servidorv>
yeap the problem was the return then
<Servidorv>
:)
<Servidorv>
do you think it is a good coding?? or is it too newby??
<Spooner>
Got to remember that the result of the last statement is returned and that map (unlike #map!) doesn't change the original code.
<Servidorv>
yeah, is my first time codding ruby, ive been on it for the past 2 weeks
vhd has quit [Ping timeout: 260 seconds]
artnez has joined #ruby
<Spooner>
It is probably OK, but hard to see from that snippet what it could be.
<Servidorv>
thanks man
<Servidorv>
:)
robertotauille has joined #ruby
<Spooner>
Oh, we generally use do-end rather than {} when multilining a block (e.g. your uniq! block should be {} but the map should be do...end). That is just stylistic though.
<CaptainJet>
i personally like {} better
robertotauille has quit [Client Quit]
<Servidorv>
:) thanks for the tips guys
caleb_io has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
emmanuelux has joined #ruby
bapa has quit [Ping timeout: 246 seconds]
nitti has joined #ruby
postmodern has quit [Quit: Leaving]
icole has quit [Remote host closed the connection]
rowsdower has quit [Remote host closed the connection]
A124 has joined #ruby
rowsdower has joined #ruby
A124 has quit [Client Quit]
emergion has joined #ruby
hadees has joined #ruby
caleb_io has quit [Quit: Leaving...]
nitti has quit [Ping timeout: 264 seconds]
hbpoison has joined #ruby
havenn has quit [Remote host closed the connection]
daslicious has quit [Quit: daslicious]
roadt has joined #ruby
chrishunt has quit [Ping timeout: 248 seconds]
tomsthumb has joined #ruby
Ivo has joined #ruby
havenn has joined #ruby
daniel_-_ has quit [Ping timeout: 246 seconds]
justinmcp has joined #ruby
rowsdower has quit [Quit: Konversation terminated!]
cbuxton has joined #ruby
Servidorv has quit [Quit: Never put off till tomorrow, what you can do the day after tomorrow]
hsbt is now known as hsbt_away
cbuxton has left #ruby [#ruby]
chin-tastic has quit [Ping timeout: 252 seconds]
hsbt_away is now known as hsbt
slainer68 has quit [Remote host closed the connection]
apok has quit [Quit: apok]
Tearan has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
Tearan has quit [Client Quit]
chrisramon has quit [Quit: chrisramon]
hsbt has quit [Ping timeout: 246 seconds]
Araxia has quit [Quit: Araxia]
Asebolka has quit [Remote host closed the connection]
miso1337 has joined #ruby
joaoh82 has quit [Remote host closed the connection]
hsbt has joined #ruby
joaoh82 has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
voodoofish430 has quit [Quit: Leaving.]
Dreamer3 has joined #ruby
mjbamford has quit [Quit: Leaving...]
stephenjudkins has quit [Quit: stephenjudkins]
rabidpraxis has quit [Remote host closed the connection]
rabidpraxis has joined #ruby
Asebolka has joined #ruby
meskyanichi has joined #ruby
meskyanichi has quit [Client Quit]
sebastorama has joined #ruby
jenrzzz has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
verto|off is now known as verto
chin-tastic has joined #ruby
tothehilt has joined #ruby
rabidpraxis has quit [Ping timeout: 252 seconds]
Takehiro has joined #ruby
Targen has joined #ruby
joaoh82 has quit [Remote host closed the connection]
joaoh82 has joined #ruby
siyusong has joined #ruby
nari_ has joined #ruby
mjbamford has joined #ruby
justinmcp has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
Serial_Killer_C has quit [Ping timeout: 276 seconds]
Asebolka has quit [Remote host closed the connection]
<micsha>
I have a quick question, if I've built ruby from source, how do I uninstall it?
cableray has joined #ruby
slainer68 has joined #ruby
cakehero has joined #ruby
wuzzzzaah has quit [Quit: wuzzzzaah]
dfr|work has joined #ruby
mjbamford has quit [Quit: Leaving...]
Nisstyre-laptop has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 276 seconds]
caleb_io has joined #ruby
dmerrick has joined #ruby
slainer68 has quit [Ping timeout: 245 seconds]
dmerrick has quit [Client Quit]
mjbamford has joined #ruby
cakehero has quit [Ping timeout: 246 seconds]
Ruler_Of_Heaven_ has joined #ruby
pipopopo has quit [Ping timeout: 264 seconds]
jamesaxl has quit [Ping timeout: 248 seconds]
cousine has joined #ruby
sdwrage has joined #ruby
tothehilt has left #ruby [#ruby]
cousine has quit [Remote host closed the connection]
chrisramon has joined #ruby
sdwrage has quit [Read error: Connection reset by peer]
nitti has joined #ruby
hotovson has joined #ruby
cbuxton has joined #ruby
postmodern has joined #ruby
swarley has quit [Read error: Connection reset by peer]
davidcelis has joined #ruby
JonnieCache has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
frem has quit [Quit: leaving]
kiyoura has quit [Ping timeout: 276 seconds]
hotovson has quit [Ping timeout: 246 seconds]
Targen has quit [Ping timeout: 246 seconds]
swarley has joined #ruby
sertaconay has joined #ruby
h4mz1d has joined #ruby
justinmcp has quit [Remote host closed the connection]
Araxia has joined #ruby
g-ram has joined #ruby
matrixise has joined #ruby
miso1337 has quit [Quit: afk]
havenn has quit [Remote host closed the connection]
micsha has left #ruby [#ruby]
sebastorama has quit [Quit: Computer has gone to sleep.]
chrishunt has joined #ruby
lurraca has joined #ruby
<lurraca>
anyone knows the regexp to match all strings starting with / ?
radic has quit [Disconnected by services]
radic_ has joined #ruby
justinmcp has joined #ruby
TomJ has left #ruby [#ruby]
slank has joined #ruby
aa10123 has joined #ruby
<lurraca>
looks like /^\//.match('/test')
<lurraca>
should work
Yarou has joined #ruby
Yarou has quit [Changing host]
Yarou has joined #ruby
fungoat has joined #ruby
<aa10123>
Can some one point me to a good explanation of why everyone's compiling their own ruby rather than using the version that ship with the distros?
c0rn_ has joined #ruby
c0rn_ has quit [Client Quit]
stephh_ has quit [Ping timeout: 252 seconds]
<aa10123>
and maybe this is related, but is there a way to tell gem to use an alternate install location?
<Spooner>
aa10123 : Often the distro version isn't up to date. Also it is harder to manage multiple versions when installing that way.
c0rn_ has joined #ruby
<aa10123>
Spooner: why would you use multiple versions? I'm new to ruby.
<Spooner>
aa10123 : RVM or rbenv will let you install to your home dir, which makes life simpler.
<aa10123>
Spooner: yeah but from a deployment perspective, rvm and rbenv are madness
<Spooner>
aa10123 : Developers often need to test against multiple versions. At the moment, 1.9.3 is latest, but 1.8.7 is still popular, though soon will lose support.
<Spooner>
I am not sure what you mean by "madness"?
<Spooner>
You mean compiling compared to getting binaries?
<postmodern>
aa10123, if your deploying custom rubies, just use ruby-build, install into /usr/local/ configure PATH accordingly
cbuxton has quit [Quit: Leaving.]
<postmodern>
aa10123, also Ubuntu 12 and Fedora 17 both provide 1.9.x ruby packages
<aa10123>
Spooner: yeah, compared to binaries, in that binaries can be compiled once against known vetted sources, then deployed.
Trioke has quit [Ping timeout: 256 seconds]
<Spooner>
postmodern : Yes, but I'm guessing they are several patches behind what you get via RVM.
Banistergalaxy has quit [Ping timeout: 255 seconds]
<aa10123>
The idea of compiling ruby on my appserver isn't very appealing
<postmodern>
Spooner, only for 1.8.7
<Spooner>
(and, at times, even a version behind)
<aa10123>
postmodern: right so exactly. that's fairly new. why can't I find anything like virtualenv (showing my Python roots) that lets me use the system interpreter with an isolated set of modules?
stephh has joined #ruby
<Spooner>
And various other distros are less good at keeping up (I am pretty sure CentOS people have complained about that).
<postmodern>
Spooner, not that far behind, plus the maintainers back-port the security patches
Takehiro has joined #ruby
kyletcarey has quit [Quit: Lost terminal]
<waxjar>
os x still comes with 1.8.7 :s
<aa10123>
Spooner: and developers often need multiple versions, but as a web developer who just wants to hack on a rails app with a colleague, rvm is a lot to swallow
<postmodern>
aa10123, im not familiar with virtual env
cbuxton has joined #ruby
<Spooner>
waxjar : It does, but that is the system installation, not the versions available optionally from package managers.
<waxjar>
i know :p
<aa10123>
postmodern: basically, virtualenv does the equivalent of installing your gems to a place separate from your system library and then wraps python to use that place.
medik_ has joined #ruby
<Spooner>
aa10123 : If you just want one version and aren't developing a lot of different applications, then a system install of one version is fine.
<postmodern>
Spooner, waxjar, although 1.8.x is going to be abandoned next year, someone should open a bug on Apple's issue tracker
<postmodern>
aa10123, oh, checkout chgems and chruby
<postmodern>
aa10123, been using them exclusively for a month now
jorge has joined #ruby
<postmodern>
Spooner, but 1.8.7 is going to be abandoned, EOLed, game over man
<waxjar>
\o/
<postmodern>
Spooner, im not sure it's wise to package unmaintained software
<Spooner>
And that means people will stop using it bevcause? ;)
<aa10123>
postmodern: thanks a bunch. exactly what I was looking for.
<postmodern>
Spooner, security vulnerabilities
<postmodern>
aa10123, excellent, test it out, submit issues as necessary
joeycarmello has quit [Remote host closed the connection]
jorge has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 245 seconds]
mjbamford has quit [Quit: Leaving...]
<Spooner>
postmodern : Security is the theory, and I'm sure it will push some people, but others will see the huge cost of updating vs the possibility of security holes (which will only appear over time).
Banistergalaxy has joined #ruby
<postmodern>
Spooner, also unfixed bugs
jenrzzz has joined #ruby
<postmodern>
Spooner, actually people could just run one of the many update scripts
<postmodern>
Spooner, or migrate to rubinius/jruby
fungoat has quit [Remote host closed the connection]
<Spooner>
migrating to jruby rubinius just delays the issue or is the 1.8.7 deprecation only for CRuby/YARV?
alvaro_o_ has quit [Quit: Ex-Chat]
<postmodern>
Spooner, atleast rubinius/jruby have a maintained 1.8.7
<postmodern>
Spooner, they will eventually disable it
<postmodern>
Spooner, as they migrate to 1.9/2.0
<postmodern>
Spooner, basically, migrate or die :(
<Spooner>
Well, 2.0 won't be much used for a couple of years, so it is hardly relevant.
nateberkopec has joined #ruby
SegFaultAX|work has quit [Ping timeout: 265 seconds]
joofsh has joined #ruby
<Spooner>
In terms of being able to leap from 1.8 to 2.0, that is.
<medik_>
No one? :(
CaptainJet has quit []
<Spooner>
medik : I'd worry about the file being read forever, but maybe you should say how it "doesn't work" more precisely.
<postmodern>
Spooner, ruby-trunk is already 2.0
<postmodern>
Spooner, and it's more of an incremental leap from 1.9
stephh has quit [Ping timeout: 276 seconds]
<Spooner>
medik : Well, for another you seek to the end of the file then presumably can't find anything there, which "works" if that is your intention.
<Spooner>
postmodern : Well, that is true. Still, I expect it to be a year before it is commonly used (based on it being 6 months before it is formally released). People are wary of the bleeding edge, however stable it is.
<swarley>
dude. I invented a whole class & method api using preprocessors and structs in C just to do this XML parser
<medik_>
Spooner: My intention is to make this program act like tail -f <file>. To keep print out the logfile
<Spooner>
medik_ : That is quite important information if you want us to assess whether it does what you expect it to.
idiocrash has quit [Remote host closed the connection]
macmartine has quit [Quit: Computer has gone to sleep.]
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
Targen has joined #ruby
h4mz1d has quit [Ping timeout: 264 seconds]
JonnieCache has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
siyusong has quit [Quit: Computer has gone to sleep.]
stephh has quit [Quit: Lost terminal]
gridaphobe has quit [Ping timeout: 265 seconds]
Edward_ has joined #ruby
gridaphobe has joined #ruby
nari_ has joined #ruby
fir_ed has quit [Ping timeout: 246 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
palyer has quit []
lolmaus has joined #ruby
palyboy has joined #ruby
chin-tastic has joined #ruby
slainer68 has joined #ruby
locriani_ has joined #ruby
h4mz1d has joined #ruby
coderhut has joined #ruby
walbert has quit [Quit: Leaving.]
Yarou has quit [Quit: Leaving]
locriani has quit [Ping timeout: 244 seconds]
freeayu has quit [Ping timeout: 255 seconds]
chin-tastic has quit [Ping timeout: 248 seconds]
slainer68 has quit [Ping timeout: 252 seconds]
freeayu has joined #ruby
charliesome has joined #ruby
Vinz_ is now known as Vinz_`
miso1337 has quit [Quit: afk]
gridaphobe has quit [Remote host closed the connection]
nitti has joined #ruby
armenb has quit [Ping timeout: 264 seconds]
coderhut_ has joined #ruby
roadt has quit [Ping timeout: 260 seconds]
glyytchy has joined #ruby
<coderhut_>
Hello, I am calling a simple ruby file using following php system command and its working fine so far. Now I have a php array that I want to pass to this ruby file. What is the best approach to do this?
nitti has quit [Ping timeout: 260 seconds]
joeycarm_ has quit [Remote host closed the connection]
miso1337 has joined #ruby
miso1337 has quit [Client Quit]
tommyvyo has quit [Quit: Computer has gone to sleep.]
areil has joined #ruby
jgrevich_ has joined #ruby
h4mz1d has quit [Ping timeout: 246 seconds]
x82_nicole has quit [Quit: Computer has gone to sleep.]
d2dchat has quit [Remote host closed the connection]
jgrevich has quit [Ping timeout: 246 seconds]
jgrevich_ is now known as jgrevich
yxhuvud has joined #ruby
d2dchat has joined #ruby
sent-hil has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
d2dchat has quit [Remote host closed the connection]
kaneda__ has quit [Read error: Operation timed out]
Mon_Ouie has quit [Quit: WeeChat 0.3.9]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
Dreamer3 has joined #ruby
glyytchy has quit [Quit: glyytchy]
graft has quit [Ping timeout: 252 seconds]
emergion has joined #ruby
nemesit has joined #ruby
ZubKonst has joined #ruby
nemesit|osx has joined #ruby
<coderhut_>
Hello, I am calling a simple ruby file using following php system command and its working fine so far. Now I have a php array that I want to pass to this ruby file. What is the best approach to do this?
roadt has joined #ruby
jgrevich has quit [Ping timeout: 244 seconds]
sent-hil has quit [Remote host closed the connection]
Kruppe has quit [Remote host closed the connection]
nemesit has quit [Ping timeout: 256 seconds]
jgrevich has joined #ruby
Edward_ has quit [Read error: Connection reset by peer]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
robbyoconnor has joined #ruby
mahmoudimus has joined #ruby
sent-hil has joined #ruby
margle has joined #ruby
maletor has joined #ruby
hsbt has quit [Ping timeout: 268 seconds]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
reuf has quit [Ping timeout: 246 seconds]
sent-hil has quit [Remote host closed the connection]
miso1337 has joined #ruby
miso1337 has quit [Client Quit]
hsbt has quit [Ping timeout: 264 seconds]
thone_ has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
robustus has joined #ruby
ABK has joined #ruby
thone has quit [Ping timeout: 256 seconds]
ZubKonst_ has joined #ruby
ZubKonst has quit [Read error: Connection reset by peer]
hsbt has quit [Ping timeout: 256 seconds]
nitti has joined #ruby
Trioke has quit [Ping timeout: 255 seconds]
tjbiddle has joined #ruby
kil0byte has quit [Ping timeout: 264 seconds]
_rob_ has joined #ruby
nitti has quit [Ping timeout: 256 seconds]
justinmcp has joined #ruby
UberNerdGirl has quit [Quit: UberNerdGirl]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
miso1337 has joined #ruby
armenb has joined #ruby
under_my_shoes has quit [Quit: Leaving]
under_my_shoes has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
jenrzzz has joined #ruby
Araxia has quit [Quit: Araxia]
yoklov has quit [Quit: computer sleeping]
hsbt has quit [Ping timeout: 246 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
sideshowcoder has joined #ruby
Virunga has joined #ruby
_rob_ has quit [Quit: 离开]
xpen has joined #ruby
joeycarmello has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
_rob_ has joined #ruby
hsbt_away is now known as hsbt
dangerousdave has joined #ruby
zaki[] has joined #ruby
zaki[] has left #ruby ["Leaving"]
tjbiddle has quit [Quit: tjbiddle]
_rob_ has quit [Client Quit]
zaki[] has joined #ruby
FifthWall has joined #ruby
Derander has quit [Ping timeout: 272 seconds]
joeycarmello has quit [Ping timeout: 252 seconds]
Derander has joined #ruby
Paradox has quit [Quit: derpderp]
ZubKonst_ has quit [Read error: Connection reset by peer]
ZubKonst has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
Paradox has joined #ruby
pskosinski has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
ryanlecompte has quit [Remote host closed the connection]
JonnieCache has joined #ruby
<shevy>
coderhut_ hmm does php allow system commands to pass arguments?
<shevy>
ah you have a .rb file and call a .php file
nari_ has quit [Ping timeout: 268 seconds]
<shevy>
you can use `` to return results of that .php script
<shevy>
result = `php foo.php`
<coderhut_>
shevy yes it allows calling .rb file but i am not sure about sending arguments using system command
chin-tastic has joined #ruby
<coderhut_>
here is my two line php script which is calling ruby successfully but now i want to pass array to that ruby file too
arturaz has quit [Remote host closed the connection]
slainer68 has joined #ruby
Poapfel has joined #ruby
miso1337 has quit [Quit: afk]
seich- has quit [Ping timeout: 248 seconds]
Takehiro has joined #ruby
Pip has quit [Ping timeout: 246 seconds]
hsbt has quit [Ping timeout: 276 seconds]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
seich- has joined #ruby
slainer68 has quit [Ping timeout: 255 seconds]
hsbt has quit [Ping timeout: 255 seconds]
nitti has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
hbpoison has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
Zai has joined #ruby
scx has joined #ruby
crazed has quit [Ping timeout: 268 seconds]
artnez has quit [Quit: artnez]
nitti has quit [Ping timeout: 260 seconds]
daniel_-_ has joined #ruby
Astral has joined #ruby
Nanuq has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
Astral_ has joined #ruby
Astral_ has quit [Read error: Connection reset by peer]
Astral is now known as Guest41601
matrixise has quit [Ping timeout: 265 seconds]
hsbt has quit [Ping timeout: 272 seconds]
Guest41601 is now known as Astral_
rdark has quit [Client Quit]
anderse has joined #ruby
Takehiro has quit [Remote host closed the connection]
nari_ has joined #ruby
v0n has quit [Ping timeout: 246 seconds]
Takehiro has joined #ruby
hsbt has joined #ruby
sagax has quit [Ping timeout: 260 seconds]
sertaconay has joined #ruby
anderse has quit [Quit: anderse]
Nanuq has joined #ruby
Tuxist has joined #ruby
Takehiro has quit [Remote host closed the connection]
nari_ has quit [Ping timeout: 255 seconds]
chin-tastic has joined #ruby
sideshowcoder has quit [Quit: Lost terminal]
anderse has joined #ruby
chin-tastic has quit [Ping timeout: 255 seconds]
mucker has quit [Quit: Lost terminal]
akemEikko has joined #ruby
arubin has quit [Quit: Computer has gone to sleep.]
akemEikko has quit [Read error: Connection reset by peer]
akem has joined #ruby
slainer68 has joined #ruby
anderse has quit [Quit: anderse]
xpen has quit [Remote host closed the connection]
xpen has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
roadt has quit [Ping timeout: 246 seconds]
niklasb has joined #ruby
xpen_ has joined #ruby
hamed_r has joined #ruby
xpen has quit [Ping timeout: 256 seconds]
freeayu has quit [Ping timeout: 255 seconds]
freeayu has joined #ruby
<shevy>
I am learning C again!
seich- has quit [Ping timeout: 260 seconds]
<shevy>
for(i=0;i<sizeof(arr);i++) yay! ugly!
JonnieCache has joined #ruby
seich- has joined #ruby
daniel_-_ has quit [Ping timeout: 260 seconds]
graeme has joined #ruby
pjb1 has joined #ruby
chrxn has quit [Ping timeout: 240 seconds]
nitti has joined #ruby
epitron_ is now known as epitron
nitti has quit [Ping timeout: 256 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
emergion has joined #ruby
hbpoison has joined #ruby
roadt has joined #ruby
timonv has joined #ruby
joephelius has joined #ruby
pskosinski has quit [Quit: A few unofficial Red Eclipse 1.3.1 (r4131) servers: http://altred.tk/toggle.rb]
niklasb has quit [Read error: Connection reset by peer]
emergion has quit [Client Quit]
Takehiro has joined #ruby
Jacob_ has joined #ruby
samphippen has joined #ruby
Jacob_ is now known as Guest77815
Guest77815 is now known as ecksit
<ABK>
@shevy: it's good you're not going C++0x it's much more mutated :)
burgestrand1 has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
Xeago has joined #ruby
timonv has quit [Remote host closed the connection]
bluOxigen has joined #ruby
<shevy>
well C++ is odd
<shevy>
I am a minimal learner, I want to learn a bit, but not more
<shevy>
only to the point where I can understand 70-90% of the code in a language at maximum
justinmcp has joined #ruby
mengu has joined #ruby
GVRV has quit [Quit: Leaving]
timonv has joined #ruby
kaawee has joined #ruby
troessner has joined #ruby
niklasb has joined #ruby
Tuxist has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 256 seconds]
mengu has quit [Read error: Operation timed out]
daniel_-_ has joined #ruby
sertaconay has quit [Ping timeout: 255 seconds]
Agis__ has joined #ruby
<Agis__>
which editor you guys prefer. sublime text 2 or vim?
havenn has joined #ruby
Tuxist has joined #ruby
mengu has joined #ruby
<rking>
Agis__: Sublime has fancier defaults, but so far I haven't found one thing from it that I don't get from vim.
vhd has joined #ruby
<Agis__>
rking: so what you think vim has that sublime doesn't?
<rking>
Any GUI vs. Console application battle is tie-broken with the winner being console, because it works inside tmux and over ssh
nari_ has joined #ruby
<Agis__>
i see
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<Agis__>
so in terms of how productive, and fast you do things there's no a clear advantage?
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
<rking>
Agis__: That's a good question. I'd have to really pore over subl's features to figure out what it lacks, but http://www.sublimetext.com/docs/2/vintage.html looks like a fairly wimpy implementation of vi keys
<rking>
I'd be extremely hard-pressed to imagine someone beating a vimmer on actual editing
<Agis__>
nice
<shevy>
Agis__ if the choice is between these two then sublime
<rking>
Plus there's tying yourself to a commercial project, which I hate.
<shevy>
the console argument works the other way too - gvim will always look like crap :)
timonv has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
zaki[] has quit [Read error: Operation timed out]
<shevy>
I always found it odd that vim on screenshots looks better when not run as gvim
nari_ has quit [Read error: Operation timed out]
<rking>
I've never found an advantage to gvim.
<Agis__>
vim on destroyallsoftware looks great btw :P
<shevy>
Agis__ a gvim vim?
<Agis__>
i think it's just vim
<rking>
Maybe as training wheels for having a clickable set of menus at first?
<shevy>
haha like for bicycles? :)
<Agis__>
i'm a junior dev, I've started with sublime 2 and still use it, but I wanna try vim now
<Agis__>
i still can't get used to using h,j,k,l and not the arrows ;p
<shevy>
bright pink and bright teal on WHITE background
<shevy>
Agis__ aha those I found not so bad
<shevy>
I got tired of having to remember too much. when I realized I want to learn only 5% and never more, I switched to ...
<shevy>
NOTEPAD!!!
<Agis__>
hah
<shevy>
in vim it seems as if it follows the "there is more than one way to do it" philosophy
Virunga has quit [Remote host closed the connection]
<Agis__>
yes
<shevy>
you can use markers, but you can also jump to line numbers directly, and you can also search for something... so those are three ways to jump to a file _at least_
<rking>
Agis__: Heh. The destroyallsoftware .vimrc example unmaps the arrow keys to train you to hjkl
timonv has joined #ruby
<shevy>
see?
<shevy>
it's like a religion... it tries to change your brain :)
<Agis__>
oh
<Agis__>
hah
justinmcp has quit [Remote host closed the connection]
<rking>
The translation makes no sense, and even if it did, it'd be a bad example of translating Python to Ruby (e.g., it shows off nothing of Ruby. Just add some "end"s and lose some ":"s)
<shevy>
hmm
<shevy>
perhaps that was the masterplan
<shevy>
bitter pythonistas
<shevy>
showcasing that python is better than ruby :)
zaki[] has joined #ruby
<rking>
No, the author was plain goofing up
<rking>
n = add(1 + 1)
awarner has joined #ruby
<rking>
n = add(1, 2)
pac1 has joined #ruby
pjb1 has quit [Quit: pjb1]
nitti has quit [Ping timeout: 246 seconds]
pskosinski has joined #ruby
glyytchy has quit [Quit: glyytchy]
timonv has quit [Remote host closed the connection]
pjb1 has joined #ruby
awarner has quit [Remote host closed the connection]
niklasb has quit [Quit: WeeChat 0.3.9]
samphippen has joined #ruby
pkondzior_ has joined #ruby
pjb1 has quit [Client Quit]
kirun has joined #ruby
_md has joined #ruby
rabidpraxis has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
niklasb has joined #ruby
chin-tastic has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
daniel_-_ has quit [Read error: Operation timed out]
Ethan3 is now known as undersc0re97
undersc0re97 has quit [Changing host]
undersc0re97 has joined #ruby
under_my_shoes has quit [Quit: Leaving]
under_my_shoes has joined #ruby
niklasb has quit [Client Quit]
dqminh has joined #ruby
chin-tastic has quit [Ping timeout: 245 seconds]
<Agis__>
/j vim
kaawee has quit [Ping timeout: 264 seconds]
Virunga has joined #ruby
hbpoison has joined #ruby
Xeago has quit [Remote host closed the connection]
niklasb has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
mengu_ has joined #ruby
mengu has quit [Read error: Connection reset by peer]
emmanuelux has quit [Remote host closed the connection]
Zai has quit [Quit: Zai]
deadalus has joined #ruby
deadalus has quit [Changing host]
deadalus has joined #ruby
hsbt has quit [Ping timeout: 246 seconds]
zmo_ has joined #ruby
workmad3 has joined #ruby
bluenemo has quit [Ping timeout: 264 seconds]
vitor-br has quit [Ping timeout: 268 seconds]
thebAR has joined #ruby
bluenemo has joined #ruby
My_Hearing has joined #ruby
Mon_Ouie has quit [Disconnected by services]
My_Hearing is now known as Mon_Ouie
hsbt has joined #ruby
hsbt is now known as hsbt_away
symeog has joined #ruby
<symeog>
hey guys, i am a newcomer in ruby world and i am interested in web development. can anyone here help me how to begin ? i am working on a mac if that interests you.
<ecksit>
hey symeog and welcome. :)
<symeog>
nice to meet you ecksit
<ecksit>
i started with learning ruby first then i moved onto a web framework. do you have previous programming experience?
kaawee has joined #ruby
<symeog>
i do have c# and .net programming experience. yes
<symeog>
i also know OOP concepts well i guess
<ecksit>
that isn't a /bad/ thing in this case. :p
<symeog>
ok :)
hsbt_away has quit [Ping timeout: 240 seconds]
<timtux>
ecksit: buy a book!
<timtux>
:D
<timtux>
symeog: *
<symeog>
don't you want to ask me why i didn't prefer to go with ASP.NET MVC ?
<timtux>
symeog: no we all understand that
<ecksit>
not really symeog. the fact you are here is a plus :p
<troessner>
:D
hsbt_away has joined #ruby
<troessner>
well, there is this little known framework called rails i hear
<symeog>
thanks!!!!!
<troessner>
maybe that's a starting point
<ecksit>
timtux: i didn't buy a book (and spend money on ruby) until i played with ruby and was happy with continuing.
<timtux>
ecksit: taight
<symeog>
thats the point ecksit . u r in my mind!
<symeog>
so can you help me with that ? where do i start ?
pac1 has quit [Remote host closed the connection]
<ecksit>
i started with nettuts ruby tutorials.
<symeog>
i think i already have ruby and rails on my machine though…i am on a mountain lion
<symeog>
when i type ruby -v i get ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.2.0]
<timtux>
symeog: you have ruby but probably not railz
<symeog>
when i type rails -v i get Rails 3.2.8
<symeog>
that's it
<timtux>
symeog: but starta out with ruby, without rails.
<ecksit>
nice. that is easy then :p
<symeog>
i think u r right here timtux
<ecksit>
rails hides much of the heavy lifting behind the framework and it is good to know those things before getting into rails.
<Iszak>
what's the difference between File.readlines vs IO.readlines ?
<Dwarf>
It threw an error that i had to define the var first
<heftig>
Iszak: none. File < IO
<Iszak>
really? IO extends File, thought it would be opposite.
<Iszak>
thanks.
baphled_ has quit [Read error: Operation timed out]
<heftig>
File extends IO
<Dwarf>
So are you recommending I do IO isntead of File?
<Dwarf>
What's the gain?
<Iszak>
Dwarf that's what I want to know.
<heftig>
2 less characters in the code
<heftig>
so basically nothing
<Iszak>
Dwarf do you want the new line characters in the result?
nitti has quit [Ping timeout: 260 seconds]
<Dwarf>
Nope
slainer68 has quit [Remote host closed the connection]
piotr_ has joined #ruby
<Iszak>
okay so deadlines AFAIK will have the new line characters, not sure how it'll work with other line endings, carriage returns, will need to remove them.
<Iszak>
s/deadlines/readlines/
hbpoison has quit [Ping timeout: 265 seconds]
Virunga has quit [Remote host closed the connection]
RudyValencia- has joined #ruby
hsbt has quit [Ping timeout: 265 seconds]
new299_ is now known as new299
baphled has joined #ruby
RudyValencia has quit [Read error: Connection reset by peer]
<Dwarf>
yay
love_color_text_ has joined #ruby
nari_ has joined #ruby
<Dwarf>
So ehm
busybox42 has quit [Read error: Operation timed out]
<Iszak>
Dwarf it's easy, just map + strip, there's probably a better way to do it.
love_color_text has quit [Read error: Operation timed out]
jord has quit [Read error: Operation timed out]
jord has joined #ruby
<Dwarf>
Would .chop work?
under_my_shoes has quit [Quit: Leaving]
icooba has quit [Ping timeout: 256 seconds]
EPIK has quit [Ping timeout: 256 seconds]
<Spooner>
.chop only removed the last character. .chomp removed any sort of newline.
<Iszak>
Dwarf yeah chomp is better, strip will remove whitespace as well.
under_my_shoes has joined #ruby
<Dwarf>
ah
<Dwarf>
Alright
canton7 has joined #ruby
<Iszak>
I need to be in here more often, I'll learn so much.
EPIK has joined #ruby
<Dwarf>
And the & does what exactly?
hsbt has joined #ruby
<Spooner>
Dwarf: Sorry, that is shorthand for File.readlines('conf/admins.txt').map {|line| line.chomp }
icooba has joined #ruby
syskk has joined #ruby
syskk has quit [Changing host]
syskk has joined #ruby
niklasb has joined #ruby
estan has joined #ruby
<Dwarf>
Alright, thanks :)
<Iszak>
Spooner maybe you want to tell him exactly what & does? I would benefit from it as well.
<syskk>
im trying to run a ruby script and getting the following error: `posterous2disqus.rb:1:in `require': no such file to load -- posterous (LoadError)` I tried to `gem install posterous` but still getting the same error. Anyone can help?
<Spooner>
Means to apply #chomp to every line. You probably want to work through some basics of Ruby though, rather than leaping in (if you couldn't work out why it needed you to make $admins an Array before inserting onto it, I assume you are very new to programming).
<Iszak>
Spooner no I mean the to_proc stuff.
<Spooner>
syskk : require 'rubygems' before you require that gem.
<estan>
hi folks. is it possible to have gems both in a standard location (e.g. /usr/local), but also in another location (et.c. /opt/gems)? that is, if i use these instructions http://docs.rubygems.org/read/chapter/15#page101 , will i still be able to use gems in /usr/local?
<Spooner>
syskk : Or stop using the old version of ruby ;)
kaawee has quit [Ping timeout: 265 seconds]
<syskk>
Spooner: thanks. any reason why original author didnt do that?
<syskk>
Spooner: ah, got it
<estan>
(my goal is that i want both the gems in the standard location (/usr/local on my system) and some gems that i install to e.g. /opt/gems available for all users)
<syskk>
Spooner: what's the recommended way to install ruby on os x?
<Dwarf>
Spooner: not new, but some languages will do it for you if it's not defined ;)
<Dwarf>
New to ruby, yes
<Spooner>
syskk It isn't about the author doing it. Unless you manually require rubygems in Ruby 1.8.7, it doesn't know where to look for gems.
hbpoison has joined #ruby
<Spooner>
Dwarf : I'm interested to know which languages would do that. I'm pretty sure I can't think of any.
<Iszak>
syskk jury is out I'd day, but you can use rvm, rbenv (I'm assuming), macports
<Iszak>
s/day/say/
<Dwarf>
Mmmm
<syskk>
ok Iszak
<Dwarf>
PHP
<Dwarf>
iirc
<Dwarf>
Might be completely wrong tho
hsbt has quit [Ping timeout: 260 seconds]
GLEG has joined #ruby
<Dwarf>
Now
<Dwarf>
Another problem
<Spooner>
Dwarf : Nope. It won't generate an array if you push to null. It, like Ruby, doesn't force you to declare variables before use though.
scroduck has joined #ruby
<Dwarf>
Ah
<Dwarf>
I see
<scroduck>
bro, %Q{} is heredoc? %{} is also heredoc, how exactly it works?
<Spooner>
Iszak : Sorry, I got sidetracked. I'll leave & unless you are very new.
<Spooner>
*you are very keen ;)
<Iszak>
Spooner I'm very keen :)
<Dwarf>
I remember something like foreach($array as $key=>$value) { $newarray[$key] = $value; } to work th
<Spooner>
Dwarf : '$var' is a global variable in Ruby and 'var' is a local. '$var' is a local in PHP.
dqminh has quit [Remote host closed the connection]
<Dwarf>
That doesn't append to the text file
<Dwarf>
Aye
<Dwarf>
I know :)
syskk has quit [Ping timeout: 260 seconds]
syskk has joined #ruby
syskk has quit [Changing host]
syskk has joined #ruby
<Spooner>
You don't need to manually close files if you use a block properly. File.open("bleh", "a") do |f| f.puts "bleh" end
<Dwarf>
Ah
<Dwarf>
So removing that would make it work?
symeog has quit [Quit: symeog]
<Dwarf>
Or is there more broken about it?
<Spooner>
Also, we don't use parentheis around if (and we use unless, ratehr tahn if !). Thus: unless $admins.include? name.downcase
<GLEG>
i got a little problem. i installed something with "gem install" and the interpreter used by the file generated by RubyGems is "#!/usr/local/Cellar/ruby/1.9.3-p286/bin/ruby". why is that? i never ever want that. i want the path under my shell to be used (/usr/local/bin/ruby). or even better, i would like to specify "#!/usr/bin/env ruby" and always use that if it's possible
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
<Spooner>
Dwarf : Dunno, but it should work as I stated (though I don't see anything _wrong_ with your code).
<Spooner>
Dwarf : I recommend you work through a tutorial to get more of a feel for Ruby (rather than trying to write PHP in Ruby ;)). e.g. http://pine.fm/LearnToProgram/ - you'll be able to skip through the earlier stuff, since it starts very slow with 2 + 2, but soon gets to more meaty topics ;)
<Dwarf>
Mhm
<Dwarf>
I'm kinda doing the "learn as you go" approach
<Dwarf>
Porting this from PHP to ruby hehe
<Dwarf>
Altho the ruby version is more advanced already
<Dwarf>
Go figure
<Spooner>
Dwarf : Yeah, but if that means you are going to ask a simple question every 2 minutes, that would be answered on page 1 of a tutorial, then it isn't the best way ;)
symeog has joined #ruby
<Dwarf>
True, true
<Dwarf>
Good thing I'm a big fan of RTFM :D
<Spooner>
Dwarf : And yes, open('conf/admins.txt', 'a') {|f| f.puts name.downcase} would work. {} and do...end are (_mostly_) synonyms, but we generally use the former for single-line blocks and the latter for multiline blocks.
<Dwarf>
I figured as much :) Don'
<Dwarf>
I don't even know why I used do
hsbt is now known as hsbt_away
<Spooner>
'do' was correct since you were using a multi-line block in the pasted code.
hsbt_away is now known as hsbt
<workmad3>
Spooner: you don't follow wierich's rule for {} vs do/end? :)
<scroduck>
bro, %Q{} is heredoc? %{} is also heredoc, how exactly it works?
<Spooner>
I don't know what the rule is, workmad3
niklasb has quit [Client Quit]
<Dwarf>
But the f.close wasn't needed, so can't hurt to make it an one liner ;)
<workmad3>
Spooner: iirc, it's that {} should be used when you care about the return value of the block, do/end should be used otherwise
<Spooner>
Dwarf : Absolutely.
<Dwarf>
Sweet, it's working now :D
<Spooner>
workmad3 : Ah, yes. No, I don't like that, but can see a reason to use {} in multiline blocks if you are chaining (though I don't; I rather avoid chaining in multilines :D).
<scroduck>
thanks spon
<ecksit>
anyone purchase sublime?
bluenemo has quit [Remote host closed the connection]
hsbt has quit [Ping timeout: 256 seconds]
<Spooner>
Dwarf : I suspect #open and File#open were working differently (the former is actually IO#open). I always use File#open. It only closes the file handle for you if you use the block version. If you do: f = File.open("bleh"); f.puts "bleh"; you do have to manually f.close
<Dwarf>
Alright
<Dwarf>
Using the block version again since I need to reload the array now :D
hotovson_ has quit [Remote host closed the connection]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
<Spooner>
They are both "blocks", actually, regardless of which syntax or how many lines it spans.
<Spooner>
Ack, that was a flurry. *rests*
<Dwarf>
heh
<Dwarf>
You're real helpful
niklasb has joined #ruby
reuf has joined #ruby
slainer68 has joined #ruby
DrShoggoth has quit [Read error: Connection reset by peer]
DrShoggoth has joined #ruby
Agbeladem has joined #ruby
Agbeladem has left #ruby [#ruby]
bbttxu has quit [Ping timeout: 260 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
<ecksit>
what purpose does: Version = VERSION = '0.17.0.b6' do?
<ecksit>
wouldn't is make sense to omit the first operator and var?
<Mon_Ouie>
Maybe there are some automated tools, etc. that expect VERSION in all caps
<ecksit>
maybe. i thought is was standards with constants though.
jslowe has joined #ruby
<Spooner>
ecksit : It does: Version = (VERSION = '0.17.0.b6') - That is, it sets the value of VERSION = '0.17.0.b6', then sets Version to the value of VERSION
slainer68 has quit [Ping timeout: 255 seconds]
<ecksit>
yeah but why waste another assignment?
<Spooner>
I don't understand. It is setting two constants to the same value in one expression.
workmad3 has quit [Ping timeout: 252 seconds]
hsbt is now known as hsbt_away
<ecksit>
dw
hsbt_away is now known as hsbt
<Spooner>
It could be written VERSION = '0.17.0.b6'; Version = VERSION but that would be more code.
samphippen has joined #ruby
<scroduck>
i just have a piece of ruby code that i would like to understand, would someone be interested in explaining in PM as its not a specific question ?
<Mon_Ouie>
He's asking why they have both constants
dqminh has joined #ruby
<Mon_Ouie>
(or so I assume)
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
<ecksit>
I understand Spooner but the question is why they both map to the same value. Why not just use one?
<scroduck>
i dont understand a bit except 9 and 11 :D
<Spooner>
Mon_Ouie : Yeah, but what ecksit was saying made me think it was a syntax question.
<scroduck>
:(
<ecksit>
ah nah
<Spooner>
scroduck : You don't need to know about that file, since it is something internal in Rubygems created when you install a gem.
<scroduck>
hm ok
timonv has joined #ruby
hsbt has quit [Ping timeout: 256 seconds]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
cantonic_ has joined #ruby
<Spooner>
scroduck : I could explain what it does, but it would seem a little redundant. It just adds a new CLI command for you (sass-convert).
<Spooner>
scroduck : "See sass-convert --help for further information and options."
frogprince_mac has joined #ruby
Agis__ has quit [Quit: Agis__]
bairui has quit [Ping timeout: 256 seconds]
cantonic has quit [Ping timeout: 260 seconds]
cantonic_ is now known as cantonic
dqminh has quit [Ping timeout: 246 seconds]
hsbt has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
und3f has joined #ruby
postmodern has quit [Quit: Leaving]
hbpoison has quit [Read error: Connection reset by peer]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
hbpoison has joined #ruby
JonnieCache has joined #ruby
ABK has quit [Ping timeout: 260 seconds]
elaptics`away is now known as elaptics
nitti has joined #ruby
bairui has joined #ruby
chin-tastic has joined #ruby
fixl has quit [Ping timeout: 240 seconds]
hbpoison has quit [Ping timeout: 276 seconds]
nitti has quit [Ping timeout: 246 seconds]
chin-tastic has quit [Ping timeout: 245 seconds]
JonnieCache has quit [Ping timeout: 246 seconds]
<Spooner>
Mon_Ouie ecksit: The Version == VERSION thing seems to be pretty common. Odd, I'd not noticed it before. Probably something they put in Rails and everyone copied it (I feel that is an explanation I can run with, even if it isn't true :D).
<ecksit>
fair game
hsbt has quit [Ping timeout: 252 seconds]
syskk_ has joined #ruby
syskk_ has quit [Changing host]
syskk_ has joined #ruby
<Spooner>
Well, mustache, gist, hub, resque, flamingo gems at least (I got bored of looking).
<ecksit>
logic would dictate just use VERSION = ''. i cannot see the logic of double assignment.
<Spooner>
There are reasons for synonyms, but mainly when someone realises they have done it wrong (Version =) and want to correct it without breaking old code.
tonio97 has joined #ruby
syskk has quit [Ping timeout: 252 seconds]
syskk_ is now known as syskk
<shevy>
Spooner!
<shevy>
Where is Knifer!
anderse has joined #ruby
<shevy>
wtf is mustache... is that a misspelled thing you carry in your face?
<Spooner>
It is a templating thing, like erb (but without evaluation).
<syskk>
Spooner: I do have gcc, thats the weird thing
<syskk>
$ gcc -v [master]
<syskk>
Using built-in specs.
<syskk>
Target: i686-apple-darwin11
<syskk>
etc.
* Spooner
shrugs.
<Spooner>
You need an OSX bod, like Mon_Ouie, to help. Sorry.
<syskk>
@Mon_Ouie :)
mr-rich has quit [Max SendQ exceeded]
hsbt has quit [Ping timeout: 268 seconds]
Xeago has joined #ruby
uuair has quit [Ping timeout: 256 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
<nyuszika7h>
hi, is there a getopt-like module for ruby? like this: disconnect -n freenode -r Reconnecting
chichou has joined #ruby
<syskk>
Spooner: I aliased gcc-4.2 to gcc, lets see what it does :D
<Spooner>
nyuszika7h : In standard lib, optparse, but I'd recommend the slop gem.
<nyuszika7h>
ok
<nyuszika7h>
thanks :)
timonv has joined #ruby
frogprince_mac has quit [Quit: Leaving...]
GranMal has joined #ruby
canton7 has quit [Remote host closed the connection]
baphled_ has joined #ruby
canton7 has joined #ruby
uuair has joined #ruby
hsbt has joined #ruby
baphled has quit [Ping timeout: 248 seconds]
<GranMal>
Does anyone have a good algorithm for extracting a relevant image from a spidered page with Nokogiri? Or, is there a better gem for spidering pages?
Takehiro has quit [Remote host closed the connection]
freeayu has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
Neomex has joined #ruby
hsbt_away is now known as hsbt
Neomex has quit [Client Quit]
<syskk>
Spooner: lol fixed the problem by sym linking gcc-4.2 to gcc -_-
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
anderse has quit [Read error: Connection reset by peer]
philcrissman has joined #ruby
anderse has joined #ruby
canton7 has joined #ruby
havenn has quit [Remote host closed the connection]
anoNxeRo has quit [Ping timeout: 272 seconds]
slainer68 has joined #ruby
<matti>
Eh.
clj_newb has joined #ruby
colinta has joined #ruby
canton7 has quit [Remote host closed the connection]
syskk_ has joined #ruby
syskk_ has quit [Changing host]
syskk_ has joined #ruby
syskk has quit [Ping timeout: 252 seconds]
syskk_ is now known as syskk
<colinta>
Is there a simple way to have a proc run after being called N times? aka underscore's after function http://underscorejs.org/#after
<colinta>
I *wrote* a method to do this, but now I'm thinking I just reinvented a wheel
hsbt has quit [Ping timeout: 246 seconds]
sterNiX has joined #ruby
robbyoconnor has quit [Ping timeout: 260 seconds]
erichmenge has joined #ruby
mucker has quit [Quit: leaving]
hoelzro is now known as hoelzro|away
graeme has quit [Quit: graeme]
<colinta>
btw, this question is a race between the #rubymotion IRC channel and this one.
slainer68 has quit [Ping timeout: 260 seconds]
<colinta>
27 members over there, to 634 over here.
elaptics is now known as elaptics`away
somazero has joined #ruby
rweng has joined #ruby
chin-tastic has joined #ruby
philcrissman_ has joined #ruby
<rweng>
MyModule::ImportError vs MyModule::Import::Error - what would you prefere? MyModule::Import is a normal class
<colinta>
is MyModule::Import the only class that uses that class?
<rweng>
jupp
maletor has joined #ruby
mucker has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
<colinta>
MyModule::Import::Error then, i suppose. that puts Import::Error into a very small box ("i won't use it outside of the Import class")
<rweng>
guess that is a good question to figure where to put it :)
<rweng>
yeah
LucidDreamZzZ has quit [Quit: Leaving]
<rweng>
thanks!
chichou has quit [Remote host closed the connection]
LucidDreamZzZ has joined #ruby
philcrissman has quit [Ping timeout: 260 seconds]
chin-tastic has quit [Ping timeout: 256 seconds]
timonv has quit [Remote host closed the connection]
hsbt has quit [Ping timeout: 245 seconds]
chrisramon has joined #ruby
snniqu has joined #ruby
uuair has quit [Quit: uuair]
burgestrand1 has quit [Quit: Leaving.]
morozovm has quit [Read error: Connection reset by peer]
mparodi has quit [Read error: Operation timed out]
morozovm has joined #ruby
mmlac has joined #ruby
UberNerdGirl has quit [Quit: UberNerdGirl]
nitti has joined #ruby
cheez0r has joined #ruby
hbpoison has joined #ruby
nari_ has quit [Ping timeout: 240 seconds]
sideshowcoder has quit [Remote host closed the connection]
mikeycgto has joined #ruby
take_cheeze has quit [Ping timeout: 260 seconds]
dnyy has joined #ruby
<Spooner>
colinta : Not sure that method really fits the way Ruby runs, compared to javascript. Rather than use a magic "after", I'd just threads.each &:join before doing the bit I want to wait for.
dnyy has quit [Remote host closed the connection]
<colinta>
interesting... i'm not using threads, per se, just a bunch of async calls (to parse-sdk)
h4mz1d has joined #ruby
sterNiX has quit [Ping timeout: 244 seconds]
bluOxigen has joined #ruby
rweng has quit [Quit: rweng]
<Spooner>
They block though? So how do you run them without threads (without just running them consecutively)
<colinta>
well there are threads somewhere in there, but I'm not creating them. and this is on ios, so i'm not encouraged to "touch" the threads so much
burgestrand has joined #ruby
kaawee has quit [Ping timeout: 246 seconds]
nitti has quit [Ping timeout: 260 seconds]
hsbt has joined #ruby
workmad3 has joined #ruby
<colinta>
it's a bunch of `fetchInBackground` calls to ParseSDK, and when *all* of them are done, i will call the callback that my method was handed
Kruppe has joined #ruby
hbpoison has quit [Ping timeout: 260 seconds]
sailias has joined #ruby
mucker has quit [Quit: leaving]
<colinta>
each call to `fetchInbackground` accepts a callback, and in that callback i'm increasing the count of N. once N == my number of objects, I call the "real" callback
dnyy has joined #ruby
<colinta>
(callback == proc)
rkk_ has joined #ruby
bigmcq77 has quit [Quit: Computer has gone to sleep.]
burgestrand has quit [Client Quit]
sterNiX has joined #ruby
advorak has quit [Quit: This computer has gone to sleep]
<Spooner>
Yeah, but if they are non-blocking, then they'd all just complete immediately and you'd not know when they are completed. Oh right. Just "sleep 0.1 until n == 6" then. I was misunderstanding what after did (and no, I don't think that is a pattern I've seen before in Ruby, but I am not all-seeing).
Dalboz has joined #ruby
h4mz1d has quit [Ping timeout: 268 seconds]
sterNiX has quit [Max SendQ exceeded]
straind` has joined #ruby
scroduck has quit [Quit: leaving]
anderse has quit [Quit: anderse]
somazero has quit [Quit: Leaving]
withnale has quit [Quit: Terminated with extreme prejudice - dircproxy 1.2.0]
Squarepy has quit [Changing host]
Squarepy has joined #ruby
egn has quit [Read error: Operation timed out]
ryanlecompte has joined #ruby
egn has joined #ruby
sterNiX has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
straind has quit [Read error: Connection reset by peer]
KevinSjoberg has joined #ruby
sterNiX has quit [Max SendQ exceeded]
tobyo has joined #ruby
g-ram has joined #ruby
sterNiX has joined #ruby
hbpoison has joined #ruby
syskk_ has joined #ruby
syskk_ has quit [Changing host]
syskk_ has joined #ruby
rkk_ has quit [Ping timeout: 245 seconds]
tolbkni has joined #ruby
TheMechanic has joined #ruby
JonnieCache has joined #ruby
<colinta>
Spooner: it's a something I pulled out of my time with node.js, where you have tons of callbacks/async calls, and you often need to gather them together in this way. i'm gonna go on my merry way, then, and just use the methods i wrote. i haven't seen anything built into ruby that does the same thing
colinta has left #ruby [#ruby]
sterNiX has quit [Max SendQ exceeded]
syskk has quit [Ping timeout: 246 seconds]
syskk_ is now known as syskk
philcrissman_ has quit [Remote host closed the connection]
sterNiX has joined #ruby
<Spooner>
Yeah, it should be pretty simple to implement.
<ddd>
but tells me there is no FileList (under 1.9.3-p286)
<ddd>
did FileList become deprecated?
tolbkni has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
<Spooner>
Nope, but it is available in Rake, not in gemspecs. Use Dir[] instead.
<ddd>
gotcha. thanks. thought it was pure ruby.
<ddd>
err s/pure/core/
sterNiX has quit [Max SendQ exceeded]
<Spooner>
They do the same thing, but FileLists are easier to mutate (with #exclude, etc).
joeycarmello has joined #ruby
sterNiX has joined #ruby
<Spooner>
ddd I mean that Dir[] just gives you a string array, whereas FileList is a magic class that acts like an Array.
<ddd>
yeah i was trying to replace my Dir["File.join(File.dirname(__FILE__), '../../*.rb')"].each with something smaller and slightly more readable, but thats fine.
niklasb has quit [Ping timeout: 244 seconds]
<syskk>
when install jekyll (rake install) : ERROR: Could not find a valid gem 'kramdown' (= 0.13.7) in any repository
<syskk>
I tried bundle install but getting the same error
<ddd>
and being able to specify additional dirs to read for files like the FileList was showing would have been nice too. but i'll keep using the Dir
<syskk>
also getting Error Bundler::HTTPError during request to dependency API
<Spooner>
ddd FileLists only don't need to know about __FILE__ because Rake files set the cwd.
recycle has joined #ruby
<ddd>
syskk: that last error isn't really an error
<ddd>
RG shut down the dependency API server due to load issues for now
erichmenge has quit [Quit: Be back later]
<Spooner>
I think bundler is a bit broken at the mo.
<ddd>
it'll be back at a future date
<syskk>
ddd: ahh.. any way i can still install jekyll?
<ddd>
the problem is the kramdown gem not jekyll unless that file is no longer available (been yanked) on RG
<syskk>
i was able to install a newer version of kramdown
Tuxist has quit [Remote host closed the connection]
khakimov has joined #ruby
<ddd>
yeah that particular revision might no longer be pooled
<Spooner>
syskk: You could manually install the gem (gem install kramdown --verson "=0.13.7")
<syskk>
Spooner: tried that but it wont find it.
<Spooner>
But that would get old quickly, since there will be a lot of dependencies.
<syskk>
Spooner: where can i tell rake that im fine with the newer version?
wallerdev has joined #ruby
sterNiX has quit [Max SendQ exceeded]
<syskk>
Spooner: its not in Gemfile
<ddd>
look for where the dep is defined. might actually be in the jekyll gem (its jekyll.gemspec)
<Spooner>
syskk : It will be in the Gemfile.lock?
<syskk>
Spooner: well, bundle install worked suddenly
<Spooner>
It is flakey at the mo ;)
<ddd>
but that would mean a custom gem build if they did that, if as spooner said its not in your Gemfile and not locked with the Gemfile.lock (but most gems don't ship the .lock file)
bapa has joined #ruby
<Spooner>
No point shipping .lock with a gem. It is usually only shipped with apps.
g-ram has quit [Quit: Computer has gone to sleep.]
<ddd>
yep
<Spooner>
I had real problems pushing a new gem yesterday, in spite of rubygems saying that bit is working. I think too many people have suddenly become Rails hipsters and the world is coming crashing down!
sterNiX has joined #ruby
sterNiX has quit [Changing host]
sterNiX has joined #ruby
Katniss` has joined #ruby
<ddd>
hah
tjbiddle has joined #ruby
morozovm has quit [Read error: Connection reset by peer]
erichmenge has joined #ruby
morozovm has joined #ruby
recycle has quit [Remote host closed the connection]
UberNerdGirl has joined #ruby
bapa has quit [Read error: Connection reset by peer]
<Spooner>
x = "foo.txt"; File.basename(x, File.extname(x)) # Ugly, eh?
ylluminate has quit [Quit: Bye!]
symeog has joined #ruby
<Spooner>
shevy : Though yours works _if_ it is a 3-letter extension, of course.
<CaptainJet>
I've done that exact code before =(
hsbt is now known as hsbt_away
anderse has joined #ruby
hsbt_away is now known as hsbt
<shevy>
hmm now that you say it... indeed, my code will fail when I meet .jpeg
tjbiddle has quit [Quit: tjbiddle]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
<Spooner>
Or .gz or whatever, yes. Or any file without an extension.
<shevy>
ah... hmmm
dakine has quit [Quit: Leaving]
anderse has quit [Client Quit]
areil has quit [Remote host closed the connection]
tolbkni has quit [Quit: Ex-Chat]
tolbkni has joined #ruby
mr-rich has joined #ruby
tolbkni has quit [Client Quit]
slainer68 has joined #ruby
bapa has quit [Read error: Connection reset by peer]
bapa has joined #ruby
tommyvyo has joined #ruby
tolbkni has joined #ruby
hsbt has quit [Ping timeout: 265 seconds]
swarley has joined #ruby
dmiller has joined #ruby
roadt has quit [Ping timeout: 264 seconds]
bapa has quit [Ping timeout: 240 seconds]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
maletor has quit [Quit: Computer has gone to sleep.]
bapa has joined #ruby
sterNiX has quit [Read error: Connection timed out]
nitti has joined #ruby
roadt has joined #ruby
fyolnish has joined #ruby
hsbt has quit [Ping timeout: 244 seconds]
sterNiX has joined #ruby
siyusong has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
Squarepy has quit [Ping timeout: 268 seconds]
gmurphey has joined #ruby
deadSnowman has joined #ruby
yakko has joined #ruby
vitoravelino has joined #ruby
vitoravelino has quit [Changing host]
vitoravelino has joined #ruby
hsbt has joined #ruby
<yakko>
hey guys, on my last 2 ruby instalations (downloaded sources), I see that I need to run "gem" as a sudoer, which user should install ruby so that doesn't happen?
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
bapa has quit [Ping timeout: 244 seconds]
bbttxu has quit [Quit: bbttxu]
GranMal has quit [Read error: Connection reset by peer]
GranMal_ has joined #ruby
symeog has quit [Read error: Connection reset by peer]
havenn has joined #ruby
g-ram has joined #ruby
bapa has joined #ruby
LucidDreamZzZ has quit [Quit: Leaving]
F1skr has quit [Quit: WeeChat 0.3.9]
LucidDreamZzZ has joined #ruby
<swarley>
yakko; what distribution do you use?
hsbt has quit [Ping timeout: 246 seconds]
<yakko>
swarley: debian/ubuntu
g-ram has quit [Client Quit]
<swarley>
On debian based distros i've only been able to use gem as a sudoer
<swarley>
the only way around that is to use a non default install prefix
<yakko>
swarley: did you install them as root?
<yakko>
them=ruby
bapa has quit [Read error: Operation timed out]
<swarley>
like i said
tommyvyo has quit [Quit: Computer has gone to sleep.]
<swarley>
the way around that is with the install prefix
<yakko>
swarley: you mean sudo make install ?
LucidDreamZzZ has quit [Remote host closed the connection]
<Spooner>
Or you may have meant to say a = ["A", "Z"]; a[-1] #=> "Z"
Guest66882 has joined #ruby
<arietis>
matti: it's just annoying that in order to use ruby i need cloud hosting
<Spooner>
arietis : #=> means that the expression before returns this value, so a[-1] = "Z" will actually be #=> "Z" ;)
<arietis>
since there are no web hostings which support ruby web
swarley has quit [Ping timeout: 265 seconds]
<arietis>
i pay 1 euro per month for my php hosting
<Spooner>
arietis : You don't if you are using a standard web host to host a standard thing like Rails (there are PLENTY of Rails hosts that aren't "cloud"). You need cloud hosting only if you are doing something unusual.
<arietis>
Spooner: i'm using sinatra
<arietis>
:)
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<Spooner>
You said Ruby web, not Sinatra.
<arietis>
but sinatra is web aswell
<arietis>
isn't it?
<Spooner>
It is, but you said there were no ways to do Ruby web without cloud hosting and that it was really difficult because of that.
<arietis>
true
bbttxu has quit [Quit: bbttxu]
cbuxton has joined #ruby
cbuxton has left #ruby [#ruby]
<Spooner>
I'll admit that Heroku et al are very expensive (if you only want something trivial), but they do have free options.
pskosinski has quit [Read error: Connection reset by peer]
Guest66882 has quit [Ping timeout: 240 seconds]
dakine has joined #ruby
Synthead has quit [Remote host closed the connection]
Guest66882 has joined #ruby
<pmros>
what about openshift?
nanderoo has joined #ruby
UberNerdGirl has quit [Quit: UberNerdGirl]
canton7 has joined #ruby
Trioke has joined #ruby
ZubKonst has quit [Ping timeout: 260 seconds]
Guest66882 has quit [Max SendQ exceeded]
Guest66882 has joined #ruby
symeog has joined #ruby
symeog has left #ruby [#ruby]
davidboy has quit [Remote host closed the connection]
kapowaz has quit [Remote host closed the connection]
pkondzior_ has quit [Remote host closed the connection]
davidboy has joined #ruby
h4mz1d has joined #ruby
<Spooner>
pmros : Is openshift entirely free? I know Heroku free is a bit nerfed (goes to sleep) and although I looked at appfog, I couldn't see if their free was 100% working or not.
pjb1 has joined #ruby
pmros has quit [Read error: Connection reset by peer]
g-ram has quit [Quit: Computer has gone to sleep.]
Guest66882 has quit [Max SendQ exceeded]
<egn>
hi, is there a "default module" that gets loaded when you fire up irb? I'm using module_eval inside another module and I want it to eval as if it were in irb's default state
morozovm has quit [Read error: Connection reset by peer]
morozovm has joined #ruby
sterNiX has joined #ruby
sterNiX has quit [Changing host]
sterNiX has joined #ruby
pmros has joined #ruby
<conor_ireland>
Spooner: openshift itself is free, they have a paid option iirc
<Spooner>
conor_ireland : Yeah, but so do appfog and Heroku. It doesn't tell you if the free version is fully-functional though (that is, doesn't put the process to sleep). A website that takes 30s to load a page is useful for development (if no-one has accessed it for an hour), but less so for low-scale production use.
pskosinski has joined #ruby
bbttxu has joined #ruby
<conor_ireland>
Spooner: I watched them on floss weekly when they launched - irrc they said it is free and always free but when they release a paid option that will grow in line with the free version
TheMechanic has quit [Quit: TheMechanic]
<pmros>
free openshift option gives you much more than free heroku option
sterNiX has quit [Read error: Connection reset by peer]
<conor_ireland>
Spooner: in practice though you would have to check out their irc and ask real people who have used it
cakehero has joined #ruby
tbrock has joined #ruby
<tbrock>
hey guys, how would you make a custom parser for json by extending the json gem?
<Spooner>
pmros : Yes, appfog also seemed to be more generous (up to 16 processes, max 2GB memory total) compared to any number of completely separate dynos on Heroku. openshift is 3 processes, so is somewhere in between, I'd say.
guiocavalcanti has quit [Remote host closed the connection]
JonnieCache has joined #ruby
<Spooner>
Oh right, openshift is 3 processes, each 512MB RAM, so less than appfog. I'll shut up and try one of them again to see which suits me, since I have a Sinatra/mongodb app I never got around to doing properly because Heroku free was a bit sleepd ;)
pkondzior_ has joined #ruby
kapowaz has joined #ruby
<Spooner>
tbrock : What do you need a custom parser for? (I don't know how to extend the json gem, but I'm wondering if you really need to do so).
samphippen has joined #ruby
marius has joined #ruby
samphippen has quit [Client Quit]
nitti has joined #ruby
brianpWins has quit [Quit: brianpWins]
nitti has quit [Ping timeout: 246 seconds]
yakko has quit [Read error: Connection reset by peer]
swarley has joined #ruby
<tbrock>
Spooner, I'm working with some data that is "extended json", it has some types that aren't strict json types
yosinof has quit [Ping timeout: 272 seconds]
yakko has joined #ruby
<pmros>
Spooner: I didn't know appfog
<pmros>
it looks great
<Spooner>
pmros : I haven't used it apart from setting up an account there.
<Spooner>
tbrock : Ah, I didn't know there was such a thing. Good luck ;)
<swarley>
man, if C's preprocessor was a full implementation of m4 i would have just made something cool
g-ram has joined #ruby
mmlac has quit [Quit: mmlac]
whowantstolivefo has quit [Ping timeout: 246 seconds]
rippa has joined #ruby
chrisramon has quit [Remote host closed the connection]
dakine has quit [Quit: Leaving]
Nanuq has quit [Ping timeout: 245 seconds]
piotr_ has joined #ruby
Nanuq has joined #ruby
linusoleander has joined #ruby
<Spooner>
tbrock is it the Mongo extended JSON or similar? Looks like it is still just compliant JSON, but you could just walk the result replacing output hashes that matched { "$binary" : "%B£^BASDFC", "$type" : "bleh" } with the Ruby equivalent. That is, rather than parsing it specially.
g-ram has quit [Quit: Computer has gone to sleep.]
haa has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
mucker has quit [Client Quit]
CaptainKnots has quit [Quit: bazinga!]
cakehero has joined #ruby
<shevy>
I got so many ruby scripts...
<shevy>
awc737 debian hates gem
Tom2 has quit [Ping timeout: 265 seconds]
<awc737>
mm :/
<swarley>
lol
<swarley>
yeah
<ccooke>
well, to be fair, gem hates debian too :-)
<swarley>
you have to compile it yoursefl
<swarley>
yourself
slainer68 has joined #ruby
joeycarmello has quit [Remote host closed the connection]
<swarley>
and use --prefix=/home/`whoami`/<somedirhere> when you configure
<shevy>
these options are available (1) you stay within the debian world, which means you need to install rails in the way debian tells you to (2) you use some other ruby, like RVM ruby, or self-compiled (3) you change the path of debian's default, messed up gem path (see at output of "gem env" also do "gem list") (4) you realize that debian is ran by monkeys and stop using it altogether (best option in the long run
<shevy>
for your own sanity really)
<swarley>
and add that to your path
<otters>
where does gem install executables to
<shevy>
depens on the default prefix of your ruby install
<shevy>
depends
vlad_starkov has joined #ruby
<swarley>
uhm, i think /usr/local/bin/gem/bind/
<shevy>
hmm executables...
<swarley>
err
<swarley>
bin/
<shevy>
yeah bin/ subfolder of ruby SITEDIR
<shevy>
if --prefix=/usr was used, this should be /usr/bin/ then
<shevy>
"I have finally reached a decision regarding my involvement in the Debian Ruby packaging efforts."
<shevy>
"I have decided to stop."
<shevy>
hehe :)
<shevy>
swarley, well the debian mentality is that everything needs to fit into the debian world
vlad_starkov has quit [Ping timeout: 276 seconds]
<shevy>
which is ok IF they tell newbies what to do in case of gem + ruby on debian
<swarley>
What’s the stable Ruby branch? 1.8 or 1.9? If it’s 1.9, why are people still actively developing in the ruby_1_8 branch? How long will they continue to be maintained in parallel, dividing the manpower?
nitti has joined #ruby
<swarley>
That's how i feel about the 1.8 branch as well
vlad_sta_ has quit [Remote host closed the connection]
<shevy>
the problem is that debian has idiots
<swarley>
it should be wiped off the face of the earth so that people will finally move to 1.9
<shevy>
"they're not distribution maintainers. It's not their area of expertise, and to be frank, they're doing a very poor job at that. I trust the Debian maintainers, because I know them, I have been one myself, and they made an amazing distribution, which haven't failed me since I first installed it in 1999."
<shevy>
quite an attitude :)
<shevy>
swarley I still write compatible for 1.8 because I hate the Encoding change
<shevy>
for the most part I can avoid problems via # Encoding: ASCII-8BIT
<shevy>
but not for all. one script I have fails to recognize umlauts
cnf has left #ruby [#ruby]
<shevy>
the script works fine on 1.8
<shevy>
man this is epic:
<shevy>
"At that point, I made a vow: if I ever have to use anything ruby, it will be from the Debian repository."
maletor has joined #ruby
v0n has quit [Ping timeout: 260 seconds]
<swarley>
meh. I personally have no reason to ever touch the 1.8 executable again
<shevy>
awc737 you should make a vow too perhaps :)
<swarley>
Lol, if he does that, he'll end up screwed
<shevy>
though I have to say, debian was the first distribution I liked
sailias has joined #ruby
<swarley>
I like the arch bleeding edge concept
<shevy>
xorg server was not working, but this was good, it forced me to work through the handbook and so I learned the UNIX way :)
nitti has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
<awc737>
uhh
<awc737>
i am using from deb repo
<awc737>
which vow should i take?
GranMal has joined #ruby
<shevy>
I had SuSE before, that thing had a handbook 5x as large, and it sucked 50x more
<awc737>
im using 1.9
<shevy>
awc737 to only use debian-ruby solutions :)))
bondar has quit []
havenn has quit [Remote host closed the connection]
<awc737>
thats all i did
<shevy>
btw Hanmac uses debian + ruby, he is good (he is offline right now)
<awc737>
everything i did was from apt-get
<shevy>
\o/
<swarley>
the thing i hate most abot debian installing ruby is that if you apt-get install ruby (this used to be true, i'm not sure if it still is) it defaults to 1.8
<swarley>
about*
morozovm has quit [Read error: Connection reset by peer]
mauo has joined #ruby
<mauo>
nick mauo
morozovm has joined #ruby
<shevy>
HAHAHA this is awesome, please look swarley:
<shevy>
"gem update ?system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get."
<shevy>
I think they really really really... love gem :)
<swarley>
:|
<shevy>
swarley hmm I thought that changed already
<shevy>
that's another disease... not providing header files by default
krion has quit [Remote host closed the connection]
jbw has joined #ruby
<shevy>
that's the old "we are a server distribution, we need no stinking header files. And besides, our users are dumb anyway."
<swarley>
Description-en: Transitional package for ruby1.8
<swarley>
that comes from
<swarley>
apt-cache stats ruby
IrishGringo has quit [Read error: Operation timed out]
<shevy>
hmmm odd... perhaps ubuntu switched to 1.9.x? I think Hanmac said something that ruby 1.9 is the latest on debian now... I'll ask him when he gets back
<swarley>
This is a transitional package which ensures that users of ruby will use
<swarley>
ruby1.8 in the future. It can safely be removed.
<shevy>
aha
Nanuq has quit [Ping timeout: 245 seconds]
<swarley>
you have to specify ruby1.9.1-full
<swarley>
to get gem, and everything
Nanuq has joined #ruby
<swarley>
that has everything but the tk bindings
mengu_ has quit [Quit: Konversation terminated!]
FifthWall has joined #ruby
mmlac has joined #ruby
tomsthumb has quit [Quit: Leaving.]
baphled_ has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
mauo has joined #ruby
justinmcp has joined #ruby
mauo has left #ruby [#ruby]
SuperrMann has quit [Quit: Computer has gone to sleep.]
c001os has quit [Quit: Távozom]
Takehiro has quit [Remote host closed the connection]
<pmros>
I love arch :)
sailias has quit [Quit: Leaving.]
havenn has joined #ruby
mjbamford has joined #ruby
dakine has joined #ruby
jamjam has joined #ruby
rdg has joined #ruby
a_a_g has quit [Quit: Leaving.]
IrishGringo has joined #ruby
blacktulip has quit [Remote host closed the connection]
morozovm has quit [Read error: Connection reset by peer]
morozovm has joined #ruby
cbuxton has joined #ruby
hikimonk has joined #ruby
KillerFox has joined #ruby
conor_ireland has quit [Quit: conor_ireland]
fantazo has joined #ruby
Squarepy has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<epitron>
best package manager ever
<epitron>
most packages ever
<swarley>
best package manager ever is bzip
<epitron>
nope.. xz :)
JetAway has joined #ruby
CaptainJet has quit [Disconnected by services]
<pmros>
pacman
JetAway is now known as CaptainJet
sebastorama has joined #ruby
daniel_-_ has joined #ruby
ewandje has joined #ruby
yeban_ has joined #ruby
<swarley>
epitron; nope, xz uses too much memory
robbyoconnor has joined #ruby
<swarley>
I can extract files on my 128mb ram computer with bzip, but not with the xz version
<swarley>
xz one runs out of memory to allocate
baphled has joined #ruby
<epitron>
does that make bzip the best? or your computer the worst? :)
vlad_starkov has joined #ruby
lushious has quit [Remote host closed the connection]
mjbamford has quit [Quit: Leaving...]
<swarley>
it was just a joke :p
<swarley>
but the computer is awful
h4mz1d has quit [Ping timeout: 256 seconds]
lushious has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
rdg has quit [Quit: ttfn]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
locriani_ has quit [Remote host closed the connection]
<Spooner>
swarley : That is great ;)
etherdev has quit [Quit: etherdev]
<swarley>
hit alt three times xD
locriani has joined #ruby
<pmros>
lol
syskk_ has quit [Ping timeout: 264 seconds]
Squarepy has quit [Remote host closed the connection]
drago757 has joined #ruby
Takehiro has joined #ruby
mjbamford has joined #ruby
pmros has quit [Quit: Konversation terminated!]
vlad_starkov has joined #ruby
`brendan has joined #ruby
daniel_-_ has quit [Ping timeout: 255 seconds]
GuidovanPossum has joined #ruby
Beoran_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
justinmc_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<swarley>
HOLY MOTHER OF JESUS TESTICLES. WHY CANT I JUST WRITE THIS PARSER
answer_42 has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 245 seconds]
<matti>
swarley: ;/
<matti>
swarley: You embarked on writing XML parser in C.
<swarley>
well, the hardest part, is making myself keep working on it
<matti>
swarley: Your subconcious is working trying to minimise potential brain damage this causes.
c0rn_ has quit []
nitti has joined #ruby
u89 has joined #ruby
rabidpraxis has joined #ruby
ZubKonst has quit [Read error: Connection reset by peer]
ZubKonst has joined #ruby
timonv has joined #ruby
vlad_starkov has joined #ruby
<GuidovanPossum>
but there are already Ruby xml parsers right why the need for more?
<Spooner>
GuidovanPossum : Don't ask that question. It will only rile him :D
CaptainJet has quit []
<davidcelis>
did you know: if you have to force yourself to keep doing something, it's because you don't want to do that something and probably shouldn't be doing that something?
vlad_starkov has quit [Remote host closed the connection]
cinsk has quit [Ping timeout: 255 seconds]
<swarley>
Yeah probably
epochwolf is now known as epochwolf|123
epochwolf|123 is now known as epochwolf
<swarley>
GuidovanPossum; i know, and i've given up on finding a good reason why
<swarley>
at this point its just to prove to myself that i can finish something
mikepack has quit [Remote host closed the connection]
nitti has quit [Ping timeout: 246 seconds]
h4mz1d has joined #ruby
<GuidovanPossum>
I've used hpricot, and I know people tell me it's outdated, to make animations from two xml keyframes and enjoy it
<swarley>
GuidovanPossum; that's how this started. Its a... meh forget it. no point in explaining it
rabidpraxis has quit [Remote host closed the connection]
sent-hil has joined #ruby
marius has quit []
<swarley>
Lol, I finally finished the first parser callback. And not all of the functions i call within it are even implemented
love_color_text has joined #ruby
sent-hil has quit [Remote host closed the connection]
v0n has joined #ruby
c0rn_ has joined #ruby
under_my_shoes has quit [Quit: Leaving]
under_my_shoes has joined #ruby
mahmoudimus has joined #ruby
morozovm has quit [Read error: Connection reset by peer]
morozovm has joined #ruby
GranMal has quit [Quit: GranMal]
reuf has joined #ruby
c0rn_ has quit []
maletor has quit [Quit: Computer has gone to sleep.]
CaptainKnots has joined #ruby
CaptainKnots has quit [Changing host]
CaptainKnots has joined #ruby
bradhe has joined #ruby
vlad_starkov has joined #ruby
morozovm has quit [Read error: Connection reset by peer]
morozovm has joined #ruby
hikimonk has left #ruby [#ruby]
hikimonk has joined #ruby
vlad_sta_ has joined #ruby
hikimonk has quit [Quit: Leaving.]
lurraca has joined #ruby
joephelius has quit [Quit: WeeChat 0.3.9]
timonv has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 260 seconds]
ryanlecompte has joined #ruby
sent-hil has joined #ruby
Servidorv has joined #ruby
morozovm has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
`brendan has quit [Read error: Connection reset by peer]
Servidorv has quit [Quit: Oops. My brain just hit a bad sector]
lurraca_ has joined #ruby
Xeago has joined #ruby
`brendan has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
JohnBat26 has quit [Ping timeout: 246 seconds]
h4mz1d has quit [Ping timeout: 264 seconds]
lurraca has quit [Ping timeout: 264 seconds]
Xeago has quit [Ping timeout: 255 seconds]
morozovm has quit [Read error: Connection reset by peer]
kiyoura has quit [Quit: Leaving]
kiyoura has joined #ruby
mmlac has quit [Quit: mmlac]
morozovm has joined #ruby
h4mz1d has joined #ruby
u89 has quit []
GuidovanPossum has quit [Quit: GuidovanPossum]
mjbamford has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
alanp has joined #ruby
cbuxton has quit [Quit: Leaving.]
alanp has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
mmlac has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby
mmlac has quit [Client Quit]
baroquebobcat has quit [Client Quit]
chin-tastic has joined #ruby
telagraphic has joined #ruby
icooba has quit [Quit: Computer has gone to sleep.]
elico has joined #ruby
maletor has joined #ruby
dnstbr has joined #ruby
futilegames has joined #ruby
futilegames has quit [Client Quit]
hbpoison has quit [Ping timeout: 265 seconds]
fantazo has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 272 seconds]
sent-hil has quit [Remote host closed the connection]
nitti has joined #ruby
h4mz1d has quit [Ping timeout: 272 seconds]
kiyoura has quit [Ping timeout: 256 seconds]
SuperrMann has joined #ruby
robbyoconnor has quit [Ping timeout: 246 seconds]
chichou has joined #ruby
nitti has quit [Ping timeout: 246 seconds]
dagnachewa has quit [Quit: Leaving]
dangerousdave has quit [Quit: Leaving...]
tchebb has quit [Disconnected by services]
tchebb1 has joined #ruby
hotovson has quit [Remote host closed the connection]
emergion has joined #ruby
und3f has quit [Quit: Leaving.]
under_my_shoes has quit [Quit: Leaving]
dnstbr has quit [Quit: Computer has gone to sleep.]
under_my_shoes has joined #ruby
emergion has quit [Client Quit]
chichou has quit [Remote host closed the connection]
hotovson has joined #ruby
whowantstolivefo has quit [Read error: Connection reset by peer]
whowantstolivefo has joined #ruby
timonv has joined #ruby
morozovm has quit [Quit: morozovm]
v0n has quit [Ping timeout: 246 seconds]
dmiller has joined #ruby
swarley has quit [Ping timeout: 255 seconds]
hotovson has quit [Read error: No route to host]
jenrzzz has quit [Ping timeout: 265 seconds]
atmosx has joined #ruby
<atmosx>
hello
<FifthWall>
howdy
chin-tastic has quit [Ping timeout: 260 seconds]
axl__ has joined #ruby
h4mz1d has joined #ruby
QKO has joined #ruby
vlad_starkov has joined #ruby
<atmosx>
good thanks u?
<atmosx>
easiest way to convert utf-8 to ascii?
dnstbr has joined #ruby
QKO_ has quit [Ping timeout: 244 seconds]
ryanlecompte has quit [Remote host closed the connection]
<workmad3>
atmosx: it's either trivial (for codepoints 0-127) or pretty much impossible
<matti>
Hi workmad3
<workmad3>
hey matti
<waxjar>
what's the convention regarding file structure for extensions of classes like String?
hbpoison has joined #ruby
under_my_shoes has quit [Quit: Leaving]
under_my_shoes has joined #ruby
<atmosx>
ah did it.
timonv has quit [Remote host closed the connection]
<atmosx>
no it's not all I need was -> ready2roll = utf8_word.force_encoding("ASCII")
<atmosx>
ty however
<workmad3>
atmosx: that doesn't convert
UberNerdGirl has quit [Quit: UberNerdGirl]
vlad_starkov has quit [Remote host closed the connection]
<workmad3>
atmosx: all that does is say 'interpret these bytes as ASCII rather than UTF8'
timonv has joined #ruby
<workmad3>
atmosx: which is all that's needed for unicode code-points 0-127 (which are identical to ASCII) but will cause weird data corruption otherwise
<workmad3>
atmosx: hence it's either trivial or pretty much impossible
ryanlecompte has joined #ruby
bitri has joined #ruby
<atmosx>
works for me :-P
<atmosx>
but thanks for explaining anyway
emmanuelux has quit [Excess Flood]
axl__ has quit [Quit: axl__]
hbpoison has quit [Ping timeout: 255 seconds]
mmlac has joined #ruby
emmanuelux has joined #ruby
cbuxton1 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
d2dchat has quit [Remote host closed the connection]
greenarrow has quit [Quit: IRC is just multiplayer notepad]
Virunga has joined #ruby
Dalboz has joined #ruby
fixl has joined #ruby
maletor has joined #ruby
atmosx has quit [Quit: WeeChat 0.3.8]
rowsdower has joined #ruby
h4mz1d has quit [Ping timeout: 246 seconds]
Dalboz has quit [Client Quit]
Dalboz has joined #ruby
baphled has quit [Ping timeout: 264 seconds]
Dwarf has quit [Ping timeout: 246 seconds]
sebastianb has quit [Ping timeout: 246 seconds]
ohcibi has quit [Read error: Connection reset by peer]