fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
_whitelogger has joined #ruby
Jelco has quit [Remote host closed the connection]
justsee has joined #ruby
_whitelogger has joined #ruby
_whitelogger has joined #ruby
_whitelogger has joined #ruby
shiki has quit [Remote host closed the connection]
redbeard0x0a has quit [Client Quit]
mohits has quit [Ping timeout: 248 seconds]
redbeard0x0a has joined #ruby
macmartine has joined #ruby
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
cakehero has joined #ruby
queequeg1 has joined #ruby
sdwrage has quit [Quit: geekli.st/programmer]
queequeg1 has quit [Client Quit]
_whitelogger has joined #ruby
mohits has joined #ruby
choffstein has joined #ruby
redbeard0x0a has quit []
Bosma has quit [Ping timeout: 244 seconds]
yoklov has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
n_blownapart has joined #ruby
chare has joined #ruby
<chare> So what options do I have for my rails app
<chare> is heroku the only serious choice?
freeayu has quit [Ping timeout: 268 seconds]
<zelrik> hm
<zelrik> is this the channel for Rails too?
<chare> CLOSE enough
<zelrik> I am asking if there is a dedicated channel to rails
seanstickle has quit [Quit: seanstickle]
tomsthumb_ has joined #ruby
<chare> zelrik you gonna answer my question?
freeayu has joined #ruby
<zelrik> no
[eko] has quit [Quit: This computer has gone to sleep]
<chare> why not
<zelrik> I dont think heroku is the only choice
<zelrik> My company is not using it
<zelrik> and they use ruby on rails
<zelrik> not sure what they use yet though
tomzx_ has quit [Ping timeout: 260 seconds]
<chare> wtf you work at a company and you don't know anything about your company?
baphled has quit [Ping timeout: 244 seconds]
<zelrik> chare: so what
ping-pong has quit [Ping timeout: 272 seconds]
eko has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
<n_blownapart> hi I have some questions about scope in this beginner's prog. thanks: http://pastie.org/4541999
freeayu__ has joined #ruby
perry is now known as perryh_away
yasushi has quit [Remote host closed the connection]
<n_blownapart> my first would be why can't line 10 be entirely in the dog_years= method def? ^^
yasushi has joined #ruby
mohits has quit [Ping timeout: 248 seconds]
<chare> zelrik so go look up what your company does
<banisterfiend> n_blownapart: you mean multiplying by 7?
<banisterfiend> it can
<zelrik> chare: dont tell me what to do, I just started
<chare> so you about to get fired?
seanstickle has joined #ruby
<zelrik> lol
<banisterfiend> n_blownapart: def dog_years=(years); @dog_years = years * 7; end
freeayu has quit [Ping timeout: 252 seconds]
<chare> first day on the job and already getting fired?
<arooni-mobile> hi folks; im trying to reconstruct a HTTP POST request im looking at in firebug. i see vars like: csstandard_request:true, dataonly:false, type:json.... and then encoded_data. .... 1) is encoded data = POST's body? 2) what are these other vars and how can i set them?
<zelrik> chare: why should I get fired
<n_blownapart> banisterfiend: thanks for replying. well I meant the whole line, since the setter method requires self explicitly.
<chare> zelrik you can't figure stuff out
<shachaf> banisterfiend: Huh?
<banisterfiend> n_blownapart: what do u mean?
<shachaf> banisterfiend: That function is weird. foo.dog_years = 5 should set @dog_years to 35?
<zelrik> chare: you were the one asking question, so stfu
mike4_ has quit [Ping timeout: 276 seconds]
deryl has quit [Quit: deryl]
<banisterfiend> n_blownapart: what do u mean?
<n_blownapart> banisterfiend: its private, so I guess the calculation has to be done in age= , where dog_years= gets called . I don't know frankly its confusing.
<chare> zelrik so you gonna look it up
<banisterfiend> oh isee
<banisterfiend> n_blownapart: what you have currently is fine i think
<zelrik> look up what?
gavit has quit [Read error: Connection timed out]
mike4_ has joined #ruby
gavit has joined #ruby
<n_blownapart> not the calculation, but the whole line. I tried to put line 10 in def age=(years) and the output was just a blank gap.
<n_blownapart> banisterfiend: ^^
appamajig has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<n_blownapart> sorry correction banisterfiend in def dog_years=
<chare> why you being so resistant zelrik
<n_blownapart> the output was Bart is in dog years. banisterfiend
<banisterfiend> n_blownapart: no idea what u're talking about sorry
Goles has quit [Quit: Computer has gone to sleep.]
<n_blownapart> banisterfiend: my question is since it's private anyway why cant the calculation on self be done in the scope of the dog_years definition.
chadkeck has quit [Remote host closed the connection]
ping-pong has joined #ruby
<banisterfiend> n_blownapart: what did u have in mind
justinmcp has quit [Ping timeout: 248 seconds]
<n_blownapart> ie why is dog_years set with the simple math down in def age=, instead of in dog_years= ?
<n_blownapart> banisterfiend: 66
<n_blownapart> so banisterfiend I don't understand the rules of scope here enough to see the difference in where to have line 10
<banisterfiend> n_blownapart: u could do it either way i guess
<banisterfiend> it's nothing to do with scope
mattp_ has quit [Quit: WeeChat 0.3.7]
<banisterfiend> it's just about where you decide to put the functionalithy
justinmcp has joined #ruby
<n_blownapart> but I tried to put line 10 on line 6, and the 70 (the age in dog years) was just missing and there was a literal gap.
<n_blownapart> banisterfiend: ^^
choffstein has quit [Remote host closed the connection]
<n_blownapart> in the output there was a gap, that is..... banisterfiend
<banisterfiend> n_blownapart: you cant put line 10 on line 6
<banisterfiend> it'll cause an infinite loop
kpshek has joined #ruby
<banisterfiend> cos you're calling dog_years= inside dog_years=
<banisterfiend> n_blownapart: just put the calculation there: @dog_years = years * 7
<n_blownapart> ok thanks banisterfiend I'll try it.
tommyvyo has quit [Quit: Computer has gone to sleep.]
yaymukund has quit [Ping timeout: 240 seconds]
tommyvyo has joined #ruby
kpshek has quit [Client Quit]
appamajig has quit [Quit: Leaving]
uris has quit [Quit: Lost terminal]
<yoklov> is there a better way to write `some_file.each_line.to_a.join ''`
Spooner has quit [Ping timeout: 245 seconds]
<banisterfiend> yoklov: what is some_file ? a string?
<yoklov> nope
<yoklov> an actual file
<banisterfiend> yoklov: Files dont support each_line afaik
<yoklov> hrm.
<yoklov> it has been working?
<yoklov> well, it did with STDIN
<banisterfiend> oh they do
Xethron has quit [Read error: Connection reset by peer]
<banisterfiend> yoklov: then do this instead; File.readlines(file_name).join(" ")
<yoklov> hm. I don't need the space, but okay.
banisterfiend has quit [Read error: Connection reset by peer]
pozican has quit [Read error: Connection reset by peer]
QKO_ has joined #ruby
<n_blownapart> banisterfiend: yeah when I try it like so, I get the same gap in the output: http://pastie.org/4541999
cakehero has joined #ruby
QKO has quit [Ping timeout: 252 seconds]
gavit has quit [Read error: Connection timed out]
davidcelis has joined #ruby
gavit has joined #ruby
banisterfiend has joined #ruby
banisterfiend has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
TheLZA has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
ananthakumaran has joined #ruby
quazimodo has joined #ruby
igotnolegs has joined #ruby
yasushi has quit [Remote host closed the connection]
havenn has joined #ruby
deryl has joined #ruby
justinmcp has quit [Remote host closed the connection]
pu22l3r has joined #ruby
mike4_ has quit [Quit: bbl]
<insecurlex> n_blownapart: I think you are using wrong your instance variables, you could try with this http://pastie.org/4542184
justinmcp has joined #ruby
iamjarvo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
<n_blownapart> thanks insecurlex . It's a book example illustrating how to make a setter method prvate ...note line 13: http://pastie.org/4541999
<n_blownapart> *private
<n_blownapart> insecurlex: its from a textbook. peace.
havenn has quit [Remote host closed the connection]
yakko has joined #ruby
<insecurlex> n_blownapart: Nice :)
t8914 has joined #ruby
macmartine has joined #ruby
khakimov has joined #ruby
k_89 has joined #ruby
mike4_ has joined #ruby
ibash has joined #ruby
mmokrysz has joined #ruby
savage- has joined #ruby
k_89 has quit [Ping timeout: 252 seconds]
kyktommy has joined #ruby
kyktommy has quit [Client Quit]
kn330 has quit [Ping timeout: 246 seconds]
pfaff has quit [Ping timeout: 268 seconds]
[1]dtribble has joined #ruby
jorge_ has quit [Remote host closed the connection]
pfaff has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
khakimov has quit [Quit: Computer has gone to sleep.]
tomsthumb_ has quit [Quit: Leaving.]
emmanuelux has quit [Ping timeout: 248 seconds]
dtribble has quit [Ping timeout: 248 seconds]
GMFlash has joined #ruby
gavit has quit [Read error: Connection timed out]
macmartine has quit [Quit: Computer has gone to sleep.]
gavit has joined #ruby
pting has quit [Quit: Ex-Chat]
seanstickle has quit [Quit: seanstickle]
Banistergalaxy has quit [Ping timeout: 256 seconds]
ibash has quit [Quit: ibash]
Takehiro_ has joined #ruby
mmokrysz has left #ruby [#ruby]
yasushi has joined #ruby
yakko has quit [Quit: No Ping reply in 180 seconds.]
yakko has joined #ruby
yaymukund has joined #ruby
Banistergalaxy has joined #ruby
pu22l3r has quit [Remote host closed the connection]
QKO has joined #ruby
drago757 has quit [Quit: drago757]
<davidcelis> n_blownapart: as in... napoleon?
<n_blownapart> davidcelis: yup: "Able was I ere I saw Elba."
QKO_ has quit [Ping timeout: 268 seconds]
gavit has quit [Read error: Connection timed out]
adurity has joined #ruby
TorpedoSkyline has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
gavit has joined #ruby
graspee has quit [Quit: leaving]
verto is now known as verto|off
<chare> wtf is a block?
<RubyPanther> chare: a closure
shachaf has left #ruby [#ruby]
<yoklov> chare: a small function inside a function
<yoklov> not necessarially small, i guess.
<chare> so why the hell is it not called a closure
tomsthumb_ has joined #ruby
rubious has quit [Quit: Linkinus - http://linkinus.com]
infinitiguy has joined #ruby
<adurity> chare: the same reason some languages call functions methods and vice versa
<davidcelis> chare: a proc
<yoklov> i thought not all blocks are procs
<Banistergalaxy> Yoklov buy a book
<Banistergalaxy> Or I beat yo candy ass
<n_blownapart> I heard in ruby procs are rarely used. the advice to me was to focus on blocks while learning ruby.
<yoklov> why
jasonLaster has quit [Remote host closed the connection]
choffstein has joined #ruby
charliesome has joined #ruby
<RubyPanther> Blocks are all procs, even if you pass a lambda as a block it is still a proc. So they are constantly used. And they're not called closures because we're usually not using them for functional-style programming and that they are closures is just a detail. The point is that they are object-encapsulated blocks of code.
<yoklov> n_blownapart: blocks have literals. last i checked, the way you make procs is by Proc.new {a block…}
<RubyPanther> def foo(&block); puts block.class end ; foo {"omg"}
<RubyPanther> Proc
<n_blownapart> yoklov: I don't know the distinctions are subtle so I'm told.
<TTilus> so dont focus on the distinction, focus on how to use them efficiently
yoklov has left #ruby ["bye!"]
yoklov has joined #ruby
<yoklov> yeah, it certainly seems that way
<RubyPanther> I would say really the one thing to focus on is strict OOP and having really really short methods that do 1 thing
<yoklov> there's also the whole method(sym) and lambda(&block) thing that always trips me up
dotnull has joined #ruby
<yoklov> focus on having pure functions that manipulate data
<RubyPanther> lambdas are almost never needed, way over-used, and method(sym) is a special case thing for metaprogramming and you should not be metaprogramming often
dotnull has quit [Remote host closed the connection]
<yoklov> oh wait there are too many function types for that to be plesant okay go back to the oo thing
dotnull has joined #ruby
<yoklov> i mean, it depends what you want to do.
m104 has joined #ruby
<yoklov> http://pastebin.com/Knpbuj8d is what i was working on now
<yoklov> pretty meta.
n_blownapart has quit [Remote host closed the connection]
choffstein has quit [Remote host closed the connection]
SCommette has joined #ruby
<RubyPanther> That is disgusting
<RubyPanther> beyond words
<yoklov> haha
<yoklov> of course!
vDubG has quit [Ping timeout: 245 seconds]
<TTilus> oh my eyes!
vDubG has joined #ruby
<TTilus> wtf is that turd?
<yoklov> a self-modifying ruby script
<RubyPanther> If you use OOP you wouldn't have to eval at all, you would just say send(:foo)
<yoklov> ruby scriptname.rb edit newfn
<yoklov> editor opens up
<yoklov> type in function def
<TTilus> ...with no excuse for its existence
<arooni-mobile> how do i view the documentation for a particular gem? i already tried running gem_server but i dont think its installed
<yoklov> save close
t8914 has quit [Remote host closed the connection]
noyb has quit [Ping timeout: 244 seconds]
<yoklov> then run the script again with args for your function
<yoklov> and voila, it runs it
t42982 has joined #ruby
<yoklov> its like a big quine.
<TTilus> AARGH!
<yoklov> the eval isn't really necessary, just saves having to have two copies of everythin.
<RubyPanther> That is not a quine
<TTilus> use pry instead
<TTilus> :)
<yoklov> RubyPanther: it is, actually.
<chare> I want "Go on rails" so i can stop using ruby
<yoklov> run it with args `cat cat`
<yoklov> or `cat bootstrap`
<yoklov> oh, wait
<wmoxam> chare: go write it :p
<yoklov> well, it rewrites itself to itself every time
jenrzzz has joined #ruby
<yoklov> e.g. the line `File.open $0, 'w' do |f|`
<chare> wmoxam: so you agree that ruby sucks shit?
<RubyPanther> I even like go, but I vote boot the troll
<wmoxam> chare: cute
<yoklov> chare, i remember you were trolling on #go a month or so ago
<yoklov> err, #go-nuts
<yoklov> about COM objects
<chare> wrong person
<yoklov> uh-huh.
daguar has joined #ruby
<chare> what are COM objects
<TTilus> gg
<yoklov> RubyPanther: either way, it depends what you want to do with your code. If you're interested in writing sane, maintainable code, then by all means, stay away from eval and metaprogramming, and _certainly_ self-modifying scripts.
<yoklov> but i'm in it for the pathological and bizarre
<RubyPanther> COM objects are something dirty that grandpa does, ask again in 5 years
<wmoxam> yoklov: that's the _why spirit!
<RubyPanther> No, there is no reason to stay away from meta-programming, it is just not something that you should do often
freeayu3 has joined #ruby
<RubyPanther> _why's code didn't have useless uses of eval or a bunch of procedural crap, his code is clean and good
infinitiguy has quit [Quit: Leaving.]
<yoklov> err
<chare> yoklov: can you get me unmuted in the go-nuts channel
<yoklov> actually read my code
gavit has quit [Read error: Connection timed out]
jrxiii has joined #ruby
Y_Ichiro has quit [Read error: Connection reset by peer]
<RubyPanther> _why's C code is properly procedural, and his Ruby is properly OO
gavit has joined #ruby
fgro has joined #ruby
<wmoxam> RubyPanther: I thought he advocated writing 'fun' code occationally
<wmoxam> ie: fuck the rules
<wmoxam> :p
freeayu__ has quit [Ping timeout: 246 seconds]
<yoklov> the OO way for this involves not having a script modify itself
<jrxiii> I wouldn't fuck the rules unless I was sure I'm the only eng who'll ever touch that code
<wmoxam> jrxiii: that was the idea
<yoklov> actually, basically every programming paradigm says that's a bad idea
<jrxiii> then go for it
<jrxiii> lol
jenrzzz has quit [Ping timeout: 240 seconds]
<RubyPanther> Why would bad code be fun?
<jrxiii> what engineers do behind closed doors...
Jackneill has joined #ruby
<wmoxam> RubyPanther: that's assuming 'bad' is a constant
<wmoxam> RubyPanther: ever heard of ruby golf?
GMFlash has quit [Quit: Computer has gone to sleep.]
<RubyPanther> _why would have fun by writing clean beautiful code that was also whimsical, not just awful procedural nonsense pretending to be Ruby
Jackneill is now known as Guest71417
<wmoxam> RubyPanther: or the ioccc?
<wmoxam> ok, obviously we are having different conversations here
<RubyPanther> code golf is a game with a clear goal, it is not writing the code poorly just for the heck of it
<yoklov> RubyPanther, really, did you actually read my code or did you see 1 global and 5 uses of eval and immediately puke
<yoklov> because it seems like the latter
freeayu3 has quit [Read error: Connection reset by peer]
<RubyPanther> You do know it is not even OO, right?
<yoklov> who the fuck cares?
<jrxiii> I missed the link. I wanna see the code!
<RubyPanther> You should, or why would you have picked Ruby over Perl?"
<wmoxam> omg
<wmoxam> judgemental much?
<yoklov> RubyPanther: i picked ruby because it's more modern, and supports functional programming better, which i have a background in.
<RubyPanther> Larry Wall said that if you want to write all your code using OOP then Ruby is better than Perl... and he then launched a defense of proceduralism and talked about why Perl is great at that... And I agree. If you don't want strict OO, use Perl.
<yoklov> OO is nice, but it's not the only way to solve a problem.
andrewhl has quit [Remote host closed the connection]
Realtor has joined #ruby
<RubyPanther> Ruby isn't any more modern than Perl except in that Perl is more post-modern.
<Realtor> is there a ruby job channel
<wmoxam> RubyPanther: you always use all your tools as god intented eh?
<wmoxam> Realtor: no
<jrxiii> yokolov: OMG what were you thinking?!
<Realtor> wmoxam: thanks
<jrxiii> I rarely see anything that ugly.
<RubyPanther> Often there is a clear difference between tools and if you want to swing the tool in a certain way, one of the tools is clearly designed for it and effective for it
<jrxiii> And I see a LOT of bad ruby code.
<yoklov> jrxiii: I was wondering if i could write a self-modifying script that could store data i entered in at the command line for me
<wmoxam> RubyPanther: I don't see it being clear in this case
SCommette has quit [Quit: SCommette]
<wmoxam> Ruby is a perfectly usable tool in this case
<RubyPanther> The only thing I've seen that was uglier, I had to write a code generator just to manage it... http://stuff.rubypanther.com/perl.rb
<jrxiii> that is the beauty of ruby. Like jazz, it'll encompass just about anything people want to do to it and stay Ruby.
<RubyPanther> That is nonsense, if you say it twice once with "Ruby" and once with "Perl" then choose which one it applies to more. And that is Perl.
<yoklov> try it: save it anywhere, and run `ruby script_name.rb set foo` then some data, then ^D. you can then get that data back by doing `ruby script_name.rb cat foo`
moshee has quit [Ping timeout: 245 seconds]
<wmoxam> RubyPanther: just because it doesn't appeal to your idea of what Ruby should look like? Come on. That's ridiculous
<yoklov> right now it doesn't really let you define functions without manually placing another eval in $data['code'], unfortunately, but i just started it like 3 hours ago
moshee has joined #ruby
<RubyPanther> Ruby explicitly rejects both the notion that there is only one way that should be allowed, but also that all ways are equal and subjective. There is usually a "correct" way, and it should be done that way unless there is a _reason_ not to, and there should only be a small number of ways to do things... enough to cover the real use cases with one correct way for each case
<RubyPanther> If it is procedural, that is not "my" notion.
<jrxiii> ha. That's bold yokolov. I don't make time for this kind of thing.
<yoklov> honestly it's pretty short to even be considered procedural
<RubyPanther> once you got to doing two things, it was already long!
<yoklov> less than 50 lines, real huge
liluo has joined #ruby
<RubyPanther> And it does a wrong list of things, that is the very definition of procedural... a list of instructions
<wmoxam> yoklov: watch out, the coding standard commitee of Oregon is on your case
savage- has quit [Remote host closed the connection]
<jrxiii> self modifying script to store data you entered in the command line for you? can i get a use case?
<wmoxam> yoklov: they may knock at your dorr and threaten to confenscate your computer
<yoklov> well
s1n4 has joined #ruby
<yoklov> i can also add function definitions
<yoklov> but right now you have to add another eval
<yoklov> for each function
<yoklov> i was about to fix that
pingfloyd has quit [Quit: pingfloyd]
yasushi has quit [Remote host closed the connection]
<wmoxam> jrxiii: and he hasn't even submitted a budget projection! The nerve!
<RubyPanther> You could probably cut the LOC in half just making it OO
<yoklov> it can also already edit them in a text editor
<yoklov> RubyPanther: uh-huh.
freeayu3 has joined #ruby
<davidcelis> wish I could use Heroku to run a ruby script that's not a sinatra or rails app
rburton- has joined #ruby
<jrxiii> I'm just wondering what problem he's solving
<yoklov> RubyPanther: realize that this script has to be able to spit out every piece of data in it each time.
<jrxiii> it seems like the problem is that he has too much time on his hands
<yoklov> ^
<wmoxam> davidcelis: does it have to be either? I was under the impression that it runs rack apps
paolooo has joined #ruby
<wmoxam> jrxiii: the horror
<jrxiii> I wish I had that problem
jorge__ has joined #ruby
<RubyPanther> You could also use a data store for that.
<jrxiii> I'm jealous
michaelmartinez has joined #ruby
<yoklov> … :/
<davidcelis> wmoxam: it's not a rack app either, not a web app at all
<yoklov> 'use a data store'
prtksxna has joined #ruby
<wmoxam> jrxiii: I played SC2 tonight instead of being a productive citizen
<chare> sc2 > call of duty
<wmoxam> I should be throw in the gulag or somthing
<jrxiii> I play games every day
<chare> sc2 > halo
<davidcelis> wmoxam: i literally wanna just have heroku do `ruby afile.rb` and let it run foreverever
<RubyPanther> I'm not saying I never stuffed data into a script. Just not in Ruby. http://stuff.rubypanther.com/dieosama.pl
mrdodo has quit [Remote host closed the connection]
<jrxiii> it's part of running a games studio.
<jrxiii> but I rarely have free time
<wmoxam> davidcelis: why heroku?
<davidcelis> because free
<wmoxam> davidcelis: because you want to do it for free?
savage- has joined #ruby
t42982 has quit [Remote host closed the connection]
<wmoxam> ah
<chare> what alternatives are there to heroku?
<chare> that are free
t55759 has joined #ruby
<yoklov> RubyPanther: then why does it bother you, too close to home? :p
<jrxiii> well it bothers me, like challenging music I think has no merit
<wmoxam> davidcelis: maybe get a shell account? they're close to free
<jrxiii> mostly because it's a technical pursuit that doesn't touch my own experience
<davidcelis> shell?
<wmoxam> davidcelis: http://freeshell.org/
<yoklov> jrxiii: it's a random idea, and i'm seeing how far i can take it.
<yoklov> maybe I can learn something from it.
<wmoxam> I paid for an account there a long time back
nilg has joined #ruby
<yoklov> something, you know, actually usable
<RubyPanther> it bothers me in the same way it would bother me if somebody went up to an "open mic" and pounded randomly on a coffee can without attempting to make music, and then complained that people booed.
<wmoxam> forgotten the password long ago though, lol
<jrxiii> you have to know something about ruby to get it to happen, more power to you
<RubyPanther> not the end of the world, but a legitimate teachable moment
<wmoxam> RubyPanther: I didn't realize this was a performance space where people paid addmission to get in
<jrxiii> I think your time would be better spent reading the c code for ruby itself.
<wmoxam> :p
<yoklov> haha
<yoklov> funny you should say that
<jrxiii> open mic is free until you buy coffee
<RubyPanther> Why would paying money have anything to do with it? That implies a whole bunch of politics that is not actually the consensus.
jorge__ has quit [Ping timeout: 260 seconds]
<davidcelis> "Any illegal activities which includes, but certainly isn't limited to spamming, portflooding, portscanning, irc bots or unattended processes intended as a bot, encryption cracking, unauthorised connections to remote hosts and any sort of scam can really not be tolerated here."
<davidcelis> since when are IRC bots illegal
<jrxiii> open mic, like heroku, is free if your time is worthless
<yoklov> i've been trying to get a garbage collector working in c lately, and i decided to give up for a bit and write some weird code.
<wmoxam> davidcelis: oh, you want an IRC bot
mahmoudimus has joined #ruby
<jrxiii> yoklov: you have succeeded
gavit has quit [Read error: Connection timed out]
<davidcelis> wmoxam: yeaaah
<davidcelis> wmoxam: :P
<RubyPanther> davidcelis: It doesn't say IRC bots are illegal, it is just a poorly worded sentence.
<RubyPanther> Portscanning is also not illegal, nor are unattended processes (thankfully)
adurity has quit [Remote host closed the connection]
s1n4 has quit [Quit: Lost terminal]
gavit has joined #ruby
<jrxiii> who here does ruby 85-100% of their professional day?
<yoklov> jrxiii: yeah. unfortunately, i still have no clue what is wrong with my garbage collector, if anything, or if I'm just forgetting to protect a temporary somewhere which is causing the segfaults.
<RubyPanther> I do, as long as Ruby extensions in C count.
QKO_ has joined #ruby
<davidcelis> jrxiii: Yes
<yoklov> obviously, more weird ruby code is the solution to my problem,
<yoklov> obviously, more weird ruby code is the solution to my problem.
<wmoxam> jrxiii: yup
adurity_ has joined #ruby
Eldariof-ru has joined #ruby
<yoklov> err, whoops.
<jrxiii> right on, I always wonder.
gtuckerkellogg has joined #ruby
<yoklov> anyway, i'm out. night all.
yoklov has quit [Quit: bye!]
<RubyPanther> You could at least do something interesting like embed the user code inside classes
<jrxiii> So, anyone interested in moving to SF Bay to do ruby for a well-funded location-based games studio? I'm looking for awesome rubyists.
<jrxiii> yoklov is officially excluded from the above
<RubyPanther> is "SF Bay" code for that brown valley south of the bay?
<davidcelis> jrxiii: hahaha
<jrxiii> Mountain View is beautiful right now, if that matters.
QKO has quit [Ping timeout: 252 seconds]
<RubyPanther> There is no mountain visible from Mountain View, just a few dry ridgelines.
<jrxiii> I cycle through Portola Valley and Woodside to San Gregorio and Pescadero and it's quite green.
<jrxiii> the coastal range is, well, tall enough to challenge me as I ride up them
<jrxiii> lol
<jrxiii> East bay isn't very green, that's for sure
<RubyPanther> being tall doesn't make a mountain, rising higher than the stuff to the sides of it does ;)
<jrxiii> right on, I've seen mntns for sure. Definitely not the pyranees
<RubyPanther> If you're from somewhere south of there, it probably does really seem green, though if you're from anywhere between SF and the arctic sea it looks dead and brown
s1n4 has joined #ruby
<jrxiii> I love inland oregon. Montana is wonderful.
<jrxiii> Alaska is super lush
<jrxiii> But I've lived in SoCal… omg talkinbout brown!
<jrxiii> Air you can chew...
<jrxiii> dat ish cray
yakko has quit [Remote host closed the connection]
rouss has joined #ruby
ananthakumaran has quit [Ping timeout: 244 seconds]
banisterfiend has joined #ruby
ananthakumaran has joined #ruby
gtuckerkellogg has quit [Ping timeout: 244 seconds]
codezombie has joined #ruby
savage- has quit [Remote host closed the connection]
gavit has quit [Read error: Connection timed out]
jrxiii has quit [Quit: jrxiii]
deryl has quit [Quit: deryl]
gtuckerkellogg has joined #ruby
gavit has joined #ruby
freeayu3 has quit [Ping timeout: 246 seconds]
justinmcp has quit [Remote host closed the connection]
Goles has joined #ruby
gtuckerkellogg has quit [Ping timeout: 245 seconds]
infinitiguy has joined #ruby
mattp_ has joined #ruby
perryh_away is now known as perryh
freeayu has joined #ruby
fgro has quit [Ping timeout: 260 seconds]
codezombie has quit [Ping timeout: 265 seconds]
centipedefarmer has joined #ruby
m104 has quit [Quit: Be back later]
rburton- has quit [Quit: rburton-]
prtksxna has quit [Ping timeout: 246 seconds]
centipedefarmer has quit [Client Quit]
infinitiguy has quit [Quit: Leaving.]
savage- has joined #ruby
jarred has joined #ruby
prtksxna has joined #ruby
mike4_ has quit [Remote host closed the connection]
t55759 has quit [Remote host closed the connection]
t93410 has joined #ruby
gavit has quit [Read error: Connection timed out]
infinitiguy has joined #ruby
eataix has joined #ruby
gavit has joined #ruby
infinitiguy has quit [Client Quit]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
answer_42 has joined #ruby
dotnull has quit [Remote host closed the connection]
Realtor has quit [Ping timeout: 245 seconds]
rouss has quit [Read error: No route to host]
<chare> Lets talk about heroku
moshee has quit [Ping timeout: 256 seconds]
<chare> anyone there?
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
skyjumper has left #ruby [#ruby]
yxhuvud has joined #ruby
<chare> anyone there?
mxbtty has joined #ruby
Takehiro_ has quit [Remote host closed the connection]
perryh is now known as perry
mxbtty has quit [Client Quit]
Takehiro has joined #ruby
gtuckerkellogg has joined #ruby
khakimov has joined #ruby
freeayu__ has joined #ruby
betamine has quit [Ping timeout: 244 seconds]
Goles has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
freeayu has quit [Ping timeout: 245 seconds]
<davidcelis> no
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
k_89 has joined #ruby
<chare> davidcelis: what do you know about heroku
<davidcelis> heroku more like herlolku
PapaSierra has quit [Ping timeout: 246 seconds]
Takehiro has quit [Remote host closed the connection]
tomsthumb_ has quit [Quit: Leaving.]
<chare> explain what youmean
justinmcp has joined #ruby
Eldariof59-ru has joined #ruby
Morkel has joined #ruby
Eldariof27-ru has joined #ruby
Eldariof-ru has quit [Ping timeout: 240 seconds]
tewecske has joined #ruby
Eldariof59-ru has quit [Ping timeout: 248 seconds]
<chare> you guys are all dumb?
<davidcelis> yep, we're all dumb
<davidcelis> it can't be that we are busy people and don't look at the IRC window every five seconds
<davidcelis> we must just be stupid
flyinprogramer has joined #ruby
<banisterfiend> davidcelis: sup dave
<davidcelis> banisterfiend: oh you know
<davidcelis> banisterfiend: being super dumb n stuff
<davidcelis> how bout you
<chare> you both stupid?
<banisterfiend> davidcelis: trying to organize the pry plugin system a bit
<davidcelis> chare: Sir, I do believe that if I were approached and told that this channel contained only one stupid people, I would make the estimate that it were you. I would stake money on that estimate.
<davidcelis> banisterfiend: what's wrong with the way it is?
gtuckerkellogg has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<davidcelis> chare: You are being a stupid people.
michaelmartinez has quit [Quit: michaelmartinez]
QKO has joined #ruby
PapaSierra has joined #ruby
<banisterfiend> /ban chare
freeayu__ has quit [Ping timeout: 246 seconds]
QKO_ has quit [Ping timeout: 245 seconds]
savage- has quit [Remote host closed the connection]
gavit has quit [Read error: Connection timed out]
yasushi has joined #ruby
gavit has joined #ruby
jarred has quit [Quit: jarred]
<davidcelis> Well that appears to have shut him up
<davidcelis> maybe he's not as much of a stupid people as I thought
<banisterfiend> davidcelis: some of them dont work well together
freeayu__ has joined #ruby
<banisterfiend> davidcelis: but i think we've fixed most of that now
<davidcelis> nice
<shevy> chare say something
<davidcelis> oui, mon chare
tomsthumb_ has joined #ruby
mneorr has joined #ruby
<chare> Failures:
<chare> 1) StaticPages GET /static_pages works! (now write some real specs)
<chare> NameError:
<chare> undefined local variable or method `static_pages_index_path' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_1:0x9a9c578>
<chare> Failure/Error: get static_pages_index_path
<chare> # ./spec/requests/static_pages_spec.rb:7:in `block (3 levels) in <top (required)>'
<chare> Finished in 0.031 seconds
<chare> 1 example, 1 failure
<chare> Failed examples:
mrdodo has joined #ruby
<chare> rspec ./spec/requests/static_pages_spec.rb:5 # StaticPages GET /static_pages works! (now write some real specs)
<chare> Randomized with seed 12649
<davidcelis> stop it
<chare> rails is a piece of shit
justinmcp has quit [Remote host closed the connection]
t93410 has quit [Remote host closed the connection]
t17708 has joined #ruby
<davidcelis> you sucking at rails != rails being a piece of shit
justinmcp has joined #ruby
<chare> rails is too complicated
mneorr has quit [Client Quit]
<shevy> chare true
<chare> SEE I'M RIGHT
\13k has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
freeayu__ has quit [Ping timeout: 245 seconds]
indian has quit [Ping timeout: 248 seconds]
<banisterfiend> davidcelis: have you looked at pry-capture (aka pry-rescue) yet?
<davidcelis> chare: no
arooni-mobile has quit [Ping timeout: 265 seconds]
<chare> davidcelis: you use rails?
<davidcelis> banisterfiend: not yet, really
<davidcelis> chare: yep
<chare> davidcelis: you and ENJOY it?
<davidcelis> i and enjoy it?
<davidcelis> SynaxError
<davidcelis> SyntaxError*
<banisterfiend> davidcelis: do you use any plugins?
<chare> davidcelis: how can you ENJOY it, wtf?
<davidcelis> chare: by being able to read code and, thereby, understand what the framework is doing rather than joining an IRC channel and whining?
<davidcelis> banisterfiend: yeah i use a few
<banisterfiend> davidcelis: which ones
<chare> davidcelis: I'm not going to read the entire rails implementation
<davidcelis> pry-coolline, pry-doc, pry-stack_explorer, pry-exception_explorer
<davidcelis> chare: i haven't read the entire rails implementation either
td123 has quit [Ping timeout: 252 seconds]
<banisterfiend> davidcelis: haha, you actually use exception explorer? which ones do u use often e?
gavit has quit [Read error: Connection timed out]
<davidcelis> chare: but when i want to know how something its doing works, i read the code
<davidcelis> chare: you wanna have a real discussion bro, or you just wanna bitch some more?
<davidcelis> banisterfiend: i use doc and coolline most
gavit has joined #ruby
<banisterfiend> davidcelis: cool, stack_explorer at all?
freeayu__ has joined #ruby
m104 has joined #ruby
m104 has quit [Client Quit]
Eldariof27-ru has quit []
<davidcelis> sometimes, mostly to see whats up with the rails stack
<davidcelis> rails stack is pretty big
td123 has joined #ruby
<banisterfiend> Yeah
<banisterfiend> cool
<banisterfiend> glad someone is using it :))
quest88 has quit [Quit: quest88]
aetaric has quit [Ping timeout: 246 seconds]
aetaric has joined #ruby
iori has joined #ruby
<chare> Go > Ruby
td123 has quit [Quit: WeeChat 0.3.8]
yasushi has quit [Remote host closed the connection]
<charliesome> chare: welcome to #ruby
freeayu__ has quit [Ping timeout: 248 seconds]
<chare> charliesome: so you agree with me?
<davidcelis> chare: i dont think there is any reason for you to be here anymore
JarJar has joined #ruby
[1]dtribble has quit [Ping timeout: 245 seconds]
<charliesome> chare: i haven't used go enough to form an opinion, but keeping in mind that this is #ruby, i'm not sure many people would appreciate you telling us how much better go is
<y2k> like, why fat girls use bikini...
<chare> tour.golang.org/
dtribble has joined #ruby
<shevy> chare usually you would use an argument but you gave none
<chare> shevy: I'm waiting for you to back me up
<shevy> chare without arguments? you can make any statement
<shevy> Ruby > Go
<chare> you're suppose to fill in the gaps in my argument
<shevy> and it'll be valid just as well
justsee is now known as justsee|away
justsee|away is now known as justsee
<shevy> chare come on man. give a little bit more than zero
freeayu__ has joined #ruby
eridani has joined #ruby
<chare> shevy: have you used go?
<shevy> no
<chare> WTF
<shevy> I have ruby. Why would I need go?
<charliesome> chare: i think #go-nuts might be a better place for you than here
<eridani> go: lack of exceptions leads to inconsistent error reporting and often the loss of the original error. can't use fork reliably with goroutines. wtf? reliably daemonization is impossible - will require special cases just for one common task
<davidcelis> go sux
<charliesome> eridani: don't forget the conservative gc
<eridani> now take that to go and bring the results back to us if you're bored
<davidcelis> see i can make blanket statements too! that's fun
<y2k> :/
<y2k> guys!
<y2k> this is just irc, and a #ruby channel. relax! :x
<chare> you guys using ruby on rails on the heroku platform?
und3f has joined #ruby
<shevy> chare you asked this before
<chare> you guys in for a surprise, heroku RUNS ON GO
<chare> LOLOLOLO
flyinprogramer has quit [Quit: flyinprogramer]
<shevy> chare fascinating
<RubyPanther> Go doesn't compete with Ruby, it competes with mRuby. And they are both awesome!
<charliesome> RubyPanther: does go even compete with mruby?
<eridani> by runs on go i assume you mean doozerd? one application?
<charliesome> i see go and (m)ruby as having separate use cases
<davidcelis> chare: another reason not to use heroku
<chare> eridani: you mad that heroku is using go?
<RubyPanther> They have separate best use cases, that is the closest I can get to your wording. ;)
<chare> davidcelis: so what you using instead of heroku?
thone has joined #ruby
<davidcelis> chare: a real server
Banistergalaxy has quit [Ping timeout: 240 seconds]
<chare> davidcelis: you using amazon ec2?
<davidcelis> chare: learn to UNIX
<davidcelis> chare: for big apps at work, sure. linode for my own small projects
<RubyPanther> Heroku charges a 40% premium just for automated handholding.
bambanx has joined #ruby
gavit has quit [Read error: Connection timed out]
<chare> rubypanther: what are the price comparisons?
<bambanx> hey
und3f has quit [Client Quit]
banisterfiend has quit [Remote host closed the connection]
gavit has joined #ruby
<charliesome> if you're willing to type a few commands to install nginx and ruby, you can save a huge amount by doing it on your own server
<chare> does linode have anything free?
<RubyPanther> chare: Heroku is just EC2 + renamed capistrano + markup, except they keep the savings when you need to scale depending on time of day.
<charliesome> a friend and i bought a dedicated server from hetzner, installed kvm on it and run our own 'cloud servers'.
und3f has joined #ruby
<charliesome> 24gb of ram, intel i7 980x, $80 per month
thone_ has quit [Ping timeout: 248 seconds]
<chare> so I need something FREE
<chare> what are my options
<RubyPanther> linode does free stuff, but not in the same way. My first experience with them was as a free user during the 2007 Rails Rumble, and I've been a paying customer ever since
<charliesome> chare: heroku's free service is alright for small-time stuff
<chare> ok how do I do heroku + voltdb
<chare> i don't want to use piece of shit postgresql
mohits has joined #ruby
mneorr has joined #ruby
<charliesome> chare: i'd love to know what you have against pgsql
<RubyPanther> Postgres is the best RDBMS there is, better than the commercial ones. And the only one that lets you write triggers in Ruby.
<chare> voltdb > postgresql
<charliesome> but if you're after a free server, there's ec2's shitty free offering
<eridani> do not feed the troll /ignore cshare
<charliesome> apart from that, i don't see companies lining up to give free servers to cheapskates
<chare> do you guys even know what voltdb is?
Banistergalaxy has joined #ruby
pygmael has joined #ruby
justinmcp has quit [Remote host closed the connection]
<eridani> volt hodls everything in memory. hope you don't have a lot of data
<RubyPanther> Fun fact: VoltDB 2.5 is 37% buzzwords.
<chare> what do you mean by 37% buzzwords
justsee has quit [Quit: Leaving...]
<chare> I'm trying to get a system using "rails + voltdb + neo4j"
<chare> do i want amazon or linode or something else?
justsee has joined #ruby
justsee has quit [Client Quit]
<Tobsn> voltdb is actually neat
<chare> elaborate
<Tobsn> what i think is buzzword right now is memsql
<Tobsn> and always was couchdb
<RubyPanther> Only you can know what you want. You already want stuff that sucks for you, like a database designed for companies with lots of money for hw that have exceeded a regular DBs performance capacity... on a free cheapskate server.
<chare> isn't memsql competing in the same space as voltdb?
<Tobsn> pretty much
<RubyPanther> Oh they are more buzzword savvy they are NewSQL
<Tobsn> but memsql set up this cutsy story about how they are so smart and so cool
<Tobsn> theres a video and all
<eridani> In voltdb every request is serialised through each partition of the database. This means that if you have one partition (i.e. a single server),
adurity_ has quit [Remote host closed the connection]
<eridani> each database request will be run sequentially, with no parallelism at all. If you have partitioned data, then requests that affect different individual partitions
<eridani> may run in parallel, however any multi-partition requests must be run against the entire cluster on their own.
<chare> the in-memory database is crowded now, i know there are much more than voltdb and memsql i just can't remember the names
<charliesome> eridani: that's actually pretty funny
<Tobsn> oh i also love when people compare redis with mongodb - not buzzword but the comparison just blows my mind
<Tobsn> as far as i heard from friends who run massive dbs they love membase...
<Tobsn> like... LOVE it
<chare> eridani: voltdb is meant for oltp where a request doesn't hit the entire database
<eridani> performance is likely to tank if you try to run any complex queries on the system. Any long running, multi-partition query will block all other users of the database until it completes, which means that the system is only suitable for simple OLTP applications, with well thought out data structures. Don't be tempted to sneak any reports into your apps!
<RubyPanther> Rubyists use Redis when they want fast access to data and don't need database features
<Tobsn> well for that you use memcache
<Tobsn> and load it on first request
<Tobsn> redis has only the queue benefit and lately now also pubsub
<Tobsn> but key/value, why use redis if you can just use memcache
<charliesome> chare: voltdb sucks because it doesn't allow me to leverage the efficiencies of the distributed scalable hyperflux paradigm
<eridani> If you want to change the schema on voltdb just shut down every server and wait for it to serialize it's memory store to disk, reconfigure the catalog, then start the server on each node and wait while it loads everything into memory
<charliesome> chare: and if you even THINK about reticulating splines on that thing, then you're in for a bad day!
<chare> ok so whats the difference between postgresql and mysql
<RubyPanther> Tobsn: nope. Different problem space. Memcache is volatile, it is wrong to compare it to a data store. It is just a cache. Actually in many cases I have memcached in front of redis in front of postgres.
<Tobsn> so why redis?
<Tobsn> you just if the memcache get and if not you fetch it from db and store it for a day
<chare> ok so then if i change my plan to "rails + postgresql + neo4j" are you guys going to approve
<chare> or shoot my plan down again
<Tobsn> no need to use redis if you dont use pubsub or queues
<Tobsn> chare, why not mongo? ;)
banisterfiend has joined #ruby
<eridani> mongo has the same single thread problem as voltdb
<chare> isn't mongo meant for a completely different problem space?
<eridani> one long running read query stops all other activity
<Tobsn> hu?
<Tobsn> you sure about that?
<RubyPanther> Because memcached runs on every node and redis runs on each group of nodes
mneorr has quit [Ping timeout: 244 seconds]
<eridani> i am sure as of version 2.0
<Tobsn> i have long running map reduces
<Tobsn> but they never locked anything
<RubyPanther> But in this case postgres is actually considered a backup
mneorr has joined #ruby
dangerousdave has joined #ruby
<chare> how does postgresql implement changing the schema without down time?
<RubyPanther> Why would there be down time?
und3f has quit [Ping timeout: 260 seconds]
Banistergalaxy has quit [Ping timeout: 246 seconds]
nopolitica has joined #ruby
<eridani> are you sharded? do you have read replicas in each shard? each shard is independent
<Tobsn> ah
<Tobsn> yes
<eridani> and slaves can handle reads while writes go to the master of each shard
<Tobsn> 4 shards, each shard is 3 replicaset
<eridani> if you specify read from slave for each query
<Tobsn> yes i do
justinmcp has joined #ruby
<Tobsn> well then this is explained
<Tobsn> ah seems like 10gen is working on the concurrency problem as of 2.0
<eridani> i am wrong about threading on 2.0. it was that way back in 1.8
<Tobsn> yep
katherinem13 has quit [Quit: katherinem13]
<eridani> multi readers are allowed but 1 writer blocks everything else
<shevy> "abc"-"a" NoMethodError: undefined method `-' for "abc":String
<shevy> :(
<Tobsn> when i started with 1.4, it sucked horrible... i commited a lot of bugs directly - up until 1.8 it was very sucky esp sharding
<charliesome> can someone enlighten me on why mongo is actually useful
<chare> eridani: explain to me how postgresql implements schema changes without downtime so I know I should dump voltdb
gavit has quit [Read error: Connection timed out]
<Tobsn> map reduce on a single box: 4sec - same map reduce on any size of shard with any type of replication: >50 sec
<Tobsn> there were so many bugs in the sharding etc. - but thats all gone since 1.8
<eridani> for mongo you can store any nested data structure as a row in your db without creating a fixed schema
gavit has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
<Tobsn> not only any nested data structure, any type of fields... there is no restrictions of what fields have to be in a collection and which not... i have one collection where i just pump in raw impression data, all fields are different. at the end a mongodb background process aggregates the data into separate collections
<eridani> in postgresql every command uses mvcc. you can roll back in the middle several schema changes or commit them
<Tobsn> but isnt that by default off?
<charliesome> can't you just stick a string of json in a column in a regular db
<eridani> during which readers are not blocked unless you've specified ???serializable??? in your configuration
y2k has left #ruby [#ruby]
<charliesome> if you want to query by anything then just reify that into a real column
<Tobsn> charliesome, can you run complex map reduce on that string?
<charliesome> Tobsn: yes, but you'd do it outside of your db
<eridani> ???serializable??? = transaction isolation level serializable (i think)
<Tobsn> postgres supports json datatypes, so yes you could... but then why not just use couchdb/mongo (and dont use couch)
<eridani> mongodb let's you index sub sub sub objects for fast queries. i don't think that's implemented in postgresql json
<eridani> there is no perfect database with every feature
<Tobsn> yeah thats not implemented
<Tobsn> charliesome, that just made no sense hehe
<charliesome> hmm i didn't realise mongo let you index deeply into objects
<eridani> and the mongodb types are richer than plain json types. you have native dates and datetimes
<chare> eridani: since postgresql is row store order on disk how does changing the schema fix everything on disk for a huge database?
<charliesome> that's kinda useful i guess
<Tobsn> if you do it outside your db, then just use memcached or sqlite
<charliesome> still: mongo seems like it has a narrow use case
<Tobsn> charliesome, also you have native geo fields
<charliesome> people tend to use it as a rdbms replacement
Banistergalaxy has joined #ruby
<Tobsn> nah its awesome. i dropped mysql and postgres in end of 2008 for it... never looked back.
<eridani> the schema change may take a while to run depending on data size but you can still query the database while it's running. is that what you were asking?
<Tobsn> (after using mysql/postgres for over 9 years in small to big installments)
<chare> eridani: so you're saying it just starts rewriting the whole database, but in a way thats safe to undo
<eridani> mongo has significantly better write throughput at the expense of durability when compared to mysql/postgresql
<eridani> csharE: that's the effect but i'm not sure of the implementation details
<chare> erdiani: so if something bad durability wise happens to mongo, what are you suppose to do?
QKO_ has joined #ruby
banisterfiend has quit [Ping timeout: 246 seconds]
igotnolegs has quit [Quit: Computer has gone to sleep.]
<eridani> i had mongo break on me with version 1.6. i had to break the cluster and recreate it to fix it
<eridani> but that's not the durability problem i was talking about
<Tobsn> durability in what sense?
<Tobsn> how to make it more reliable?
<eridani> writes aren't commited to disk immediately. you can lose some data during a power outage
<Tobsn> ah yeah
<Tobsn> the not acid compliant issue
<Tobsn> well... honestly, this never happens
<Tobsn> unless you unplug the server
<Tobsn> we're running it currently as third party provider on a tracking system which also tracks simple page loads and impressions and it peaks to a few hundred thousand inserts a second
<Tobsn> and if we compare access logs with raw inserts, they match up
<eridani> and before you guys ask about another database i also managed to break riak in an unfixable way but otherwise it worked very well
<Tobsn> never lost data so far
t17708 has quit [Remote host closed the connection]
QKO has quit [Ping timeout: 245 seconds]
<Tobsn> chare, cool is too that you can just add servers and it will balance in the background
<chare> mongodb is declared as a document db, what does it mean to be a "document db" what are the different requirements that necessitate a dedicated document database
<eridani> you shouldn't lose data due to high load. you just get long running queries
<Tobsn> (it slows down the db a bit)
t66410 has joined #ruby
<Tobsn> hehe
<Tobsn> okay, he's all yours.
<Tobsn> time for coffee.
<chare> Tobsn: what cool what?
<eridani> cshare: i suggest you read some of the basic tutorials on mongodb.org
Morkel has quit [Quit: Morkel]
<eridani> they'll explain the basics
azm has joined #ruby
azm has joined #ruby
azm has quit [Changing host]
<Tobsn> chare, in general mongodb doesnt work much different than sql
<Tobsn> from your perspective its pretty much the same
<Tobsn> just that you never have to define a table
<Tobsn> and you can scale without trying to shoot yourself
qwerxy has joined #ruby
<chare> I'm not understanding why they threw away acid to scale, aren't there these other databases like voltdb and memsql that retain sql but try to scale by a better implementation
und3f has joined #ruby
<Tobsn> acid != scaling
<chare> retain acid
leonardoro has joined #ruby
<Tobsn> acid is also not necessary
<Tobsn> its performance vs. quality assurance
<chare> but why give it up if you don't have to
<Tobsn> you have to
<Tobsn> to make those fast inserts possible
leonardoro is now known as microchipatwork
<chare> ok so is mongodb meant to attack the problem of docs.google.com?
<eridani> the sql standard requires acid to be sql compliant
<eridani> you can have acid without sql
arturaz has joined #ruby
<Tobsn> chare ACID - the last D is durability, which mongodb does not do but you can turn that on with journaling which makes mongodb much slower.
<Tobsn> so it does it but you will lose speed for the D
mneorr has quit [Ping timeout: 260 seconds]
<Tobsn> and as to "docs" - just ignore that term
<eridani> synchronous writes are necessary for durability but seriously harm performance
mneorr has joined #ruby
<Tobsn> imagine mysql without the need to define a table
<eridani> and with nested tables
<chare> you mean like semistructured xml?
<Tobsn> yes, and you would be able to store an array or objects within a field
<eridani> with data typed fields
<eridani> not just plain xml
<chare> OK NEW TOPIC: whats the difference between neo4j and titan
<eridani> you also give up joins, foreign keys, data volidation, stored procedures, triggers, default values and lots more
<eridani> that was for mongodb
<Tobsn> like {name: 'chare', address: [ street: 'somewhere', zip: 12345 ], male: true } - and then you would say find( { address.zip: 12345 } );
<eridani> a lot
<Tobsn> hehe titan
gavit has quit [Read error: Connection timed out]
<eridani> i did test out neo4j a long time ago. it was very fast but only single machine at the time
<chare> so if you start getting big you're screwed with neo4j?
<Tobsn> chare, you know what you should do? get on a 256mb ram rackspace cloud node with ubuntu or debian and just install those dbs
<eridani> titan is based on distributed db's
<chare> i heard it can't shard with neo4j
gavit has joined #ruby
<eridani> i don't know about neo4j anymore. haven't looked in years
<chare> wtf eridani you failing me as a database expert
<Tobsn> lol
<Tobsn> well there is just not much use for neo4j or titan
<eridani> i'm surprised you asked me about something i don't have detailed notes on
<eridani> it's a graph database
<Tobsn> thats like cassandra... its a really neat idea but dont try to use it.
<eridani> if you want to calculate friends of friends of friends of friends it can do it very quickly
<chare> wtf how are key value stores and graph databases not useful
<eridani> try doing that in postgresql sometimes with 10m users
<eridani> you probably don't want a graph database
<eridani> it's special purpose
<Tobsn> chare, key value is very useful - but do you personally have a use for a serious graph db?
<eridani> like a keyword search database
<chare> my data is a graph so I'm using a graph database
qwerxy has quit [Quit: offski]
<chare> graph of chess positions
<Tobsn> so then go find out how neo and titan works
<Tobsn> and update eridanis notes
<chare> what do i use instead of a graph then?
<Tobsn> i dont know if thats a "graph" as in for a graph db
<chare> each position has a variable number of positions connected to it
<chare> its not structured like a schema
<eridani> start with what you want to store and then list every type of thing you want to find and then start building the quereies for each of those things
Takehiro has joined #ruby
elhu has joined #ruby
<chare> and so i should use a graph db over sql right?
<Tobsn> store it in python
<Tobsn> it supports matrixes
<Tobsn> ;)
<chare> next random topic:
<chare> how do i do bitcoin stuff in the cloud without getting hacked
<Tobsn> lol
<Tobsn> with magic man
<chare> do you know what bitcoin is?
<Tobsn> fucking magic.
<Tobsn> no never heard of bitcoin
<eridani> are you storing a current list of positions, 1 game, every famous game, or every possible game?
<Tobsn> is it a graph db?
<Tobsn> ;)
<chare> every position of every game i can get my hand on
<Tobsn> chare, softlayer boxes have two interfaces. turn off the public.
<chare> Tobsn: i do not understand what is softlayer
<eridani> i need to go
<Tobsn> yeah me too
<chare> you tell that girlfriend no
<chare> tell her no
<eridani> she says no
<eridani> i don't listen
<eridani> bye
<Tobsn> bye
mneorr has quit [Ping timeout: 244 seconds]
pygmael has quit [Read error: Connection reset by peer]
pygmael has joined #ruby
chare has quit [Quit: Leaving]
elhu has quit [Quit: Computer has gone to sleep.]
gavit has quit [Read error: Connection timed out]
mneorr has joined #ruby
gavit has joined #ruby
haxrbyte has joined #ruby
mneorr1 has joined #ruby
Middy has quit [Remote host closed the connection]
insecurlex has quit [Remote host closed the connection]
Araxia has quit [Quit: Araxia]
LouisGB has joined #ruby
fearoffish has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
guns has joined #ruby
elhu has joined #ruby
workmad3 has joined #ruby
specialGuest has joined #ruby
microchipatwork has quit [Quit: microchipatwork]
leonardoro has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
mneorr1 has quit [Quit: Leaving.]
leonardoro has quit [Client Quit]
banisterfiend has joined #ruby
burgestrand has joined #ruby
mohits has quit [Ping timeout: 272 seconds]
mneorr has joined #ruby
nohonor has quit [Quit: Leaving]
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
t66410 has quit [Remote host closed the connection]
t26032 has joined #ruby
perry is now known as perryh_away
yasushi has joined #ruby
mohits has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
nohonor has joined #ruby
yasushi has quit [Remote host closed the connection]
nohonor has quit [Client Quit]
Takehiro has quit [Remote host closed the connection]
nohonor|staafl has joined #ruby
guns has quit [Quit: guns]
Takehiro has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
iori has quit [Remote host closed the connection]
bambanx has quit [Quit: Saliendo]
yasushi has joined #ruby
bluOxigen has quit [Ping timeout: 268 seconds]
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
qwerxy has joined #ruby
atmosx has joined #ruby
specialGuest has quit [Ping timeout: 246 seconds]
gavit has quit [Read error: Connection timed out]
mrdodo has quit [Remote host closed the connection]
gavit has joined #ruby
s1n4 has quit [Quit: leaving]
justinmcp has quit [Remote host closed the connection]
Guest65370 has quit [Remote host closed the connection]
imami|afk is now known as banseljaj
kaneda_ has joined #ruby
bluOxigen has joined #ruby
mohits has quit [Ping timeout: 246 seconds]
himsin has joined #ruby
savage- has joined #ruby
shadoi has quit [Quit: Leaving.]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
gmci has quit [Ping timeout: 244 seconds]
iori has joined #ruby
Emmanuel_Chanel has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
resure has joined #ruby
Speed has joined #ruby
Speed has joined #ruby
pygmael has quit [Read error: Connection reset by peer]
khakimov has quit [Quit: Computer has gone to sleep.]
pygmael has joined #ruby
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
apeiros_ has joined #ruby
Eldariof-ru has joined #ruby
er1c_ has quit [Ping timeout: 276 seconds]
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
gmci has joined #ruby
azm has quit [Ping timeout: 246 seconds]
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 272 seconds]
inteq has quit []
bluOxigen has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
fgro has joined #ruby
azm has joined #ruby
azm has joined #ruby
azm has quit [Changing host]
mmokrysz has joined #ruby
mmokrysz has left #ruby [#ruby]
fgro_ has joined #ruby
fgro has quit [Ping timeout: 246 seconds]
mmokrysz has joined #ruby
pygmael has quit [Read error: No route to host]
mmokrysz has left #ruby [#ruby]
pygmael has joined #ruby
katherinem13 has joined #ruby
elhu has quit [Quit: Computer has gone to sleep.]
katherinem13 has quit [Ping timeout: 252 seconds]
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
shiki has joined #ruby
macer1 has joined #ruby
flyinprogramer has joined #ruby
yasushi has quit [Remote host closed the connection]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
beneggett has joined #ruby
ph^ has joined #ruby
Foxandxss has joined #ruby
JarJar has quit [Remote host closed the connection]
matled has quit [Ping timeout: 248 seconds]
JarJar has joined #ruby
brdude has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
pygmael has quit [Read error: Connection reset by peer]
flyinprogramer has quit [Quit: flyinprogramer]
pygmael has joined #ruby
dtribble has quit [Ping timeout: 246 seconds]
gavit has quit [Read error: Connection timed out]
prtksxna has quit [Ping timeout: 244 seconds]
gavit has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
mohits has quit [Ping timeout: 246 seconds]
matled has joined #ruby
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Guest71417> can you help me? C:/Users/Jackneill/Desktop/Tabornok/lib/tabornok/messagehandler.rb:5:in `<module:Tabornok>': uninitialized constant Tabornok::Irc (NameError), i required the file where the Irc class is, also they are in the same module
savage- has quit [Remote host closed the connection]
TheLZA has quit [Quit: Bye]
mrdodo has joined #ruby
TheLZA has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
banisterfiend has joined #ruby
beneggett has joined #ruby
nohonor|staafl has quit [Ping timeout: 268 seconds]
<burgestrand> Guest71417: you’re wrong
Guest71417 is now known as Jackneill
beneggett has quit [Remote host closed the connection]
Jackneill has quit [Changing host]
Jackneill has joined #ruby
<burgestrand> Jackneill: Could you paste your code somewhere? I can’t tell you what is wrong, but I can tell you that you are wrong because Ruby don’t lie about these things.
<Jackneill> burgenstrand: i guess yes, but where?
<Jackneill> sec
nohonor|staafl has joined #ruby
mrdodo has quit [Ping timeout: 240 seconds]
t26032 has quit [Remote host closed the connection]
t502 has joined #ruby
<Jackneill> burgestrand, http://hastebin.com/banoceseja.rb
mohits has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
<Jackneill> error is at line 7
<burgestrand> Hm, give me a minute, I’ll run it myself. It looks like it should not cause an issue at first glance.
<Jackneill> okok
gavit has quit [Read error: Connection timed out]
<burgestrand> Jackneill: it doesn’t cause an issue when I run it on my system. Double-check to make sure you don’t have any weird invisible characters around line 7 in messagehandler.rb
gavit has joined #ruby
<Jackneill> burgestrand, i dont have so i dont know whats the problem :/
wallerdev has quit [Quit: wallerdev]
<burgestrand> Jackneill: I would try just re-creating the files again with minimal requires again and see if that works. The code runs fine here, so I would assume the issue comes from somewhere you have not told us about.
banseljaj is now known as imami|afk
<Jackneill> burgestrand, my full code is here: https://github.com/Jackneill/Tabornok you can see
<burgestrand> Jackneill: nice, I can replicate the error here now
<apeiros_> that's what you get for using require_relative :-p
<burgestrand> Yeah.
<burgestrand> Or, well, requiring all files in all files.
* apeiros_ leaves the constructive helping to burgestrand
qwerxy has quit [Quit: offski]
k_89 has quit [Ping timeout: 265 seconds]
<burgestrand> Jackneill: I would assume this issue comes from you requiring pretty much everything everywhere. Your entry-point is requiring 'tabornok/irc', but before it has a chance to define anything, that file will go on and require the parser, which requires the messagehandler, which requires irc, but since IRC is already loaded (it came here from the irc file) it will not require IRC again before continuing down.
conor_ireland has quit [Quit: conor_ireland]
<Jackneill> :/
<Jackneill> anyway thanks.
<Jackneill> i will look for it
<burgestrand> Jackneill: the way people usually do this is that they require dependencies first, and then define things that use them.
<burgestrand> Not the kind of circular require that happens here.
<Jackneill> kk
<burgestrand> For example, while the irc file depends on the parser being loaded, you should probably not load the parser *in* the IRC file but above it sometime later.
<burgestrand> Either that or just change the layout of things. ^^
<Jackneill> thanks :)
mneorr has quit [Quit: Leaving.]
dpk has joined #ruby
arturaz has quit [Ping timeout: 260 seconds]
guns has joined #ruby
fgro_ has quit [Quit: Lost terminal]
qwerxy has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
qwerxy has quit [Client Quit]
banisterfiend has joined #ruby
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
yasushi has quit [Ping timeout: 245 seconds]
yasushi has joined #ruby
pygmael has quit [Read error: Connection reset by peer]
pygmael has joined #ruby
IPGlider has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
conor_ireland has joined #ruby
guns has quit [Quit: guns]
<quazimodo> guys
<quazimodo> is there any way to call a method onlf if it exists?
<apeiros_> you can test with respond_to?
<quazimodo> apeiros_: maybe
<apeiros_> ?
<Mon_Ouie> NB: The "?" was part of the method name — it wasn't a question
<apeiros_> oh I'm not the only one using NB, awesome :D
<Mon_Ouie> Is it uncommon in English? I never wondered about that actually :p
<shevy> Nota Bene?
<apeiros_> no idea. it's latin, therefore international!
<shevy> I think it is not that uncommon in english
<shevy> in the old MUD I used to play decades ago, they had english helpfiles, and sometimes additional information on the bottom of the helpfile like "Nota Bene: Horse combat currently is not entirely balanced."
Stalkr_ has joined #ruby
answer_42 has quit [Remote host closed the connection]
brdude has quit [Quit: brdude]
dhruvasagar has quit [Ping timeout: 252 seconds]
answer_42 has joined #ruby
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
dhruvasagar has joined #ruby
Morkel has joined #ruby
Morkel_ has joined #ruby
Morkel has quit [Read error: Connection reset by peer]
Morkel_ is now known as Morkel
<shevy> @@eats_errors = Object.new
<shevy> def @@eats_errors.flush(*) end
<shevy> man...
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
fixl has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
shell0x has quit [Remote host closed the connection]
im0b has quit [Remote host closed the connection]
ladder4 has quit [Remote host closed the connection]
pvh has quit [Remote host closed the connection]
kapowaz has quit [Read error: Connection reset by peer]
notbrent has quit [Remote host closed the connection]
davidboy has quit [Remote host closed the connection]
TheFuzzb_ is now known as TheFuzzball
Dr4g_ has quit [Read error: Connection reset by peer]
patricksroberts has quit [Read error: Connection reset by peer]
aquaranto has quit [Remote host closed the connection]
octarine has quit [Remote host closed the connection]
mroth has quit [Remote host closed the connection]
NimeshNeema has quit [Read error: Connection reset by peer]
denysonique has quit [Remote host closed the connection]
burgestrand has quit [Quit: Leaving.]
jonnie|h1me is now known as JonnieCache|home
Tomasso has joined #ruby
fcoury has quit [Read error: Connection reset by peer]
anildigital_work has quit [Remote host closed the connection]
dotemacs has quit [Remote host closed the connection]
MoMo has quit [Remote host closed the connection]
lectrick has quit [Remote host closed the connection]
dnyy_ has quit [Read error: Connection reset by peer]
Spaceghostc2c has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
relix has quit [Remote host closed the connection]
MetaCosm has quit [Read error: Connection reset by peer]
_marvin has quit [Remote host closed the connection]
<JonnieCache|home> whoops
kaichanvong has quit [Remote host closed the connection]
[diecast] has quit [Remote host closed the connection]
SeanTAllen has quit [Remote host closed the connection]
moeSeth has quit [Remote host closed the connection]
mohits has quit [Read error: Connection reset by peer]
conor_ireland has quit [Quit: conor_ireland]
burgestrand has joined #ruby
aquaranto has joined #ruby
t502 has quit [Remote host closed the connection]
t61242 has joined #ruby
conor_ireland has joined #ruby
octarine has joined #ruby
shell0x has joined #ruby
emmanuelux has joined #ruby
dotemacs has joined #ruby
SeanTAllen has joined #ruby
moshee has quit [Ping timeout: 240 seconds]
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
zz_chrismcg is now known as chrismcg
[diecast] has joined #ruby
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
MetaCosm has joined #ruby
MoMo has joined #ruby
dnyy_ has joined #ruby
JonnieCa1he|home has joined #ruby
fantazo has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
NimeshNeema has joined #ruby
JonnieCache|home has quit [Read error: Operation timed out]
ladder4 has joined #ruby
TPD has joined #ruby
gogiel has quit [Remote host closed the connection]
yasushi has quit [Remote host closed the connection]
JonnieCa1he|home has quit [Ping timeout: 245 seconds]
notbrent has joined #ruby
TPD has left #ruby [#ruby]
JonnieCache|home has joined #ruby
mklappstuhl has joined #ruby
lectrick has joined #ruby
macer1_ has joined #ruby
fcoury has joined #ruby
peterhellberg has joined #ruby
jim21 has joined #ruby
<jim21> Hello
lkba has joined #ruby
macer1 has quit [Ping timeout: 272 seconds]
pskosinski has quit [Remote host closed the connection]
jim21 has left #ruby [#ruby]
katherinem13 has joined #ruby
bluenemo has joined #ruby
bluenemo has joined #ruby
macer1_ has quit [Remote host closed the connection]
macer1 has joined #ruby
pskosinski has joined #ruby
sanman has joined #ruby
`brendan has joined #ruby
katherinem13 has quit [Ping timeout: 245 seconds]
gavit has quit [Read error: Connection timed out]
<sanman> hi
gavit has joined #ruby
Dr4g_ has joined #ruby
<shevy> doLoadDataFromFile ($file)
<shevy> "Loads data for the database from a YAML file"
<shevy> why does PHP annoy me
emsilva has joined #ruby
denysonique has joined #ruby
rakunHo has quit [Remote host closed the connection]
sanman has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
RichieEvan has quit [Quit: RichieEvan]
pygmael_ has joined #ruby
yasushi has joined #ruby
JonnieCache|home has quit [Ping timeout: 265 seconds]
pygmael has quit [Ping timeout: 260 seconds]
pygmael_ is now known as pygmael
anildigital_work has joined #ruby
shiki has quit [Remote host closed the connection]
shiki has joined #ruby
k_89 has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
s1n4 has joined #ruby
baphled has joined #ruby
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
pskosinski has quit [Remote host closed the connection]
pskosinski has joined #ruby
joephelius has quit [Ping timeout: 244 seconds]
_marvin has joined #ruby
pvh has joined #ruby
qwerxy has joined #ruby
s1n4 has quit [Quit: Lost terminal]
qwerxy has quit [Client Quit]
cakehero has joined #ruby
Morkel has quit [Quit: Morkel]
<shevy> why do python projects consistently have better documentation than ruby projects :(
atmosx has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby
im0b has joined #ruby
joephelius has joined #ruby
philcrissman has joined #ruby
kaichanvong has joined #ruby
kirun has joined #ruby
gry has joined #ruby
arturaz has joined #ruby
<peterhellberg> shevy: Django is probably not representative for Python projects in general.
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
arturaz has quit [Remote host closed the connection]
Axsuul has quit [Ping timeout: 252 seconds]
mike4_ has joined #ruby
IPGlider has quit []
guns has joined #ruby
guns is now known as Guest85589
Guest85589 is now known as help
patricksroberts has joined #ruby
help is now known as Guest55251
Guest55251 is now known as guns
relix has joined #ruby
peterhellberg has quit [Remote host closed the connection]
Markvilla has joined #ruby
virunga has joined #ruby
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
t61242 has quit [Remote host closed the connection]
t47965 has joined #ruby
moeSeth has joined #ruby
choffstein has joined #ruby
deryl has joined #ruby
Eldariof-ru has quit []
pygmael_ has joined #ruby
mahmoudimus has joined #ruby
r0bby has joined #ruby
pygmael has quit [Ping timeout: 246 seconds]
pygmael_ is now known as pygmael
<otters> lol
<otters> method names starting with do
<otters> as opposed to dontLoadDataFromFile
robbyoconnor has quit [Ping timeout: 244 seconds]
und3f has quit [Quit: Leaving.]
<apeiros_> otters: just wait for the realDoLoadDataFromFile
<otters> realRealDoDoLoadDataFromFile
<otters> I'm hanging out for the addition of the ==== operator to PHP
luckman212 has joined #ruby
<apeiros_> ^^
<otters> "really, seriously, without a doubt completely equal test"
<apeiros_> and !!==
mahmoudimus has quit [Client Quit]
workmad3 has joined #ruby
choffstein has quit [Remote host closed the connection]
andrewhl has joined #ruby
luckman212_ has quit [Ping timeout: 260 seconds]
Bauer1 has joined #ruby
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
Russell^^ has joined #ruby
gry has quit [Quit: gone]
<Bauer1> guys, I have a ruby script with the following error and relevant snippet: https://gist.github.com/668a087f1e2cccd938d6
<Bauer1> it works on shorter strings like <script src="/WebResource.axd?d=r3Q5zOFO91eR-uV7bhVLIg2&amp;t=633836056270796669" type="text/javascript">
<Bauer1> but in this case, the string spans few lines long
<Bauer1> how to adjust it to work?
conor_ireland has quit [Quit: conor_ireland]
<shevy> otters yeah and also camelcase
<shevy> I am going to file a feature addition to symfony
<shevy> add reallyDoLoadDataFromFile
infinitiguy has joined #ruby
<otters> dearGodPleaseLetMeLoadThisDataFromFile
justinmcp has joined #ruby
qwerxy has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
<gavit> how do you push your production code to your server? -> git pull requests on production server?
arturaz has joined #ruby
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
fastred has joined #ruby
fungoat has joined #ruby
pskosinski has quit [Remote host closed the connection]
gavit has quit [Read error: Connection timed out]
jorge_ has joined #ruby
gavit has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
<Muz> gavit: server, singular? ;)
<Muz> But yeah, $vcs pull $tag or $branch, package as an RPM or whatever and deploy as you would any other system package. Depends on what the code is and how many servers you have in what kind of existing deployment setup.
<aspiers> does Test::Unit have a method which allows outputting extra debug info which would be useful in a failure?
<aspiers> (I don't want to use the 3-param version of assert_equal)
<aspiers> something like Perl's Test::More::diag()
freeayu has joined #ruby
freeayu__ has quit [Ping timeout: 256 seconds]
seanstickle has joined #ruby
t47965 has quit [Remote host closed the connection]
t6295 has joined #ruby
yasushi has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
infinitiguy has quit [Quit: Leaving.]
qwerxy has quit [Quit: offski]
macer1 has quit [Remote host closed the connection]
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
savage- has joined #ruby
ly_gs has joined #ruby
macer_ has joined #ruby
macer__ has joined #ruby
bluOxigen has quit [Ping timeout: 248 seconds]
berserkr has joined #ruby
QKO has joined #ruby
mklappstuhl has quit [Ping timeout: 246 seconds]
pskosinski has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
pskosinski has quit [Read error: Connection reset by peer]
drago757 has joined #ruby
pskosinski has joined #ruby
QKO_ has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
verbad has joined #ruby
elhu has joined #ruby
tomsthumb_ has quit [Quit: Leaving.]
qwerxy has joined #ruby
mutewinter has left #ruby ["Textual IRC Client: http://www.textualapp.com/"]
elhu has quit [Quit: Computer has gone to sleep.]
justinmcp has joined #ruby
GMFlash has joined #ruby
verto|off is now known as verto
macer___ has joined #ruby
macer____ has joined #ruby
macer__ has quit [Ping timeout: 244 seconds]
macer_ has quit [Ping timeout: 244 seconds]
dotnull has joined #ruby
macer____ has quit [Client Quit]
macer_ has joined #ruby
gavit has quit [Read error: Connection timed out]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
gavit has joined #ruby
sepp2k has joined #ruby
clocKwize has joined #ruby
busybox42 has quit [Remote host closed the connection]
fbernier has joined #ruby
timonv has quit [Remote host closed the connection]
coldmind has joined #ruby
mrdodo has joined #ruby
bluenemo has quit [Ping timeout: 246 seconds]
fbernier has quit [Ping timeout: 244 seconds]
<shevy> Please note that Muz never leaves off a '.' in his sentences
clocKwize has quit [Quit: clocKwize]
macer_ has quit [Ping timeout: 246 seconds]
macer___ has quit [Ping timeout: 246 seconds]
freeayu has quit [Ping timeout: 265 seconds]
ibash has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
<WhereIsMySpoon> shevy: ?
<shevy> WhereIsMySpoon just look at it!
<shevy> compare it with this here:
<shevy> <otters> I'm hanging out for the addition of the ==== operator to PHP
<shevy> bad otters not finishing his sentence with a '.'
<WhereIsMySpoon> i thought it was amusing without a '.'
<shevy> it takes extra effort to type it
<shevy> I think Muz angrily hits the '.' key
<WhereIsMySpoon> .£$(£$)>.$>34.>>$£>*)"!£"!"(>.
<WhereIsMySpoon> ?
<WhereIsMySpoon> i angrily hit lots of keys
<seanstickle> The ==?==!== operator is much better
<WhereIsMySpoon> am i cool now?
<WhereIsMySpoon> lol
freeayu has joined #ruby
<WhereIsMySpoon> "it equally might equally not equally be"?
gavit has quit [Read error: Connection timed out]
<WhereIsMySpoon> gavit: i push mine doing "git push heroku"
gavit has joined #ruby
<WhereIsMySpoon> damnit
<WhereIsMySpoon> gavit: i push my server commits to my prod server doing "git push heroku"
<WhereIsMySpoon> after committing it all that is
bluenemo has joined #ruby
<gavit> WhereIsMySpoon, that's on heroku, I'm using my own webserver
<WhereIsMySpoon> oic
* gavit wonders how Heroku's side looks like
<WhereIsMySpoon> heroku is cools
<WhereIsMySpoon> easy to setup + use
workmad3 has joined #ruby
<gavit> git push mygitrepo, and then automatically do a pull on /www/myphusiondir?
<WhereIsMySpoon> sounds legit
qwerxy has quit [Quit: offski]
pskosinski has quit [Quit: http://www.redeclipse.net -- Fast-paced online FPS]
pskosinski has joined #ruby
dotnull has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
macmartine has joined #ruby
dotnull has joined #ruby
GMFlash has quit [Quit: Computer has gone to sleep.]
verto is now known as verto|off
mrdodo has quit [Remote host closed the connection]
deryl has quit [Quit: deryl]
teh4 has joined #ruby
iamjarvo has joined #ruby
drago757 has quit [Quit: drago757]
<burgestrand> gavit: it’s a post-receive hook to checkout the new code and do some installation steps
<burgestrand> say, bundling, migrating database, bundling assets
ly_gs has quit [Remote host closed the connection]
fungoat has quit [Quit: fungoat]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
QKO has quit [Ping timeout: 244 seconds]
jmcphers has quit [Ping timeout: 240 seconds]
Spooner has joined #ruby
gavit has quit [Read error: Connection timed out]
graspee has joined #ruby
mneorr has joined #ruby
gavit has joined #ruby
insecurlex has joined #ruby
QKO has joined #ruby
mneorr1 has joined #ruby
jmcphers has joined #ruby
kaneda_ has quit [Remote host closed the connection]
Jake232 has joined #ruby
justinmcp has quit [Ping timeout: 246 seconds]
insecurlex has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 252 seconds]
philips_ has quit [Excess Flood]
kaneda_ has joined #ruby
moshee has quit [Ping timeout: 248 seconds]
moshee has joined #ruby
Jake232 has quit [Client Quit]
philips_ has joined #ruby
GoGoGarrett has joined #ruby
<shevy> any GUI based editor which also has a terminal embedded or usable?
flyinprogramer has joined #ruby
flyinprogramer has quit [Client Quit]
<shevy> specifically when I change some yaml files, I need to run an alias in bash
dreda has joined #ruby
arturaz has quit [Ping timeout: 246 seconds]
philips_ has quit [Excess Flood]
kvirani has quit [Remote host closed the connection]
philips_ has joined #ruby
<shevy> hmm django settings.py is ugly
xargoon has joined #ruby
mneorr1 has quit [Quit: Leaving.]
bluOxigen has joined #ruby
mneorr has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
macmartine has joined #ruby
ibash has quit [Quit: ibash]
deryl has joined #ruby
teh4 has left #ruby ["Leaving"]
gavit has quit [Read error: Connection timed out]
paolooo has quit [Quit: Page closed]
gavit has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
GoGoGarrett has quit [Remote host closed the connection]
<seanstickle> Python in general is pretty ugly.
bluOxigen has joined #ruby
apok has joined #ruby
azm has quit [Read error: Connection reset by peer]
himsin has quit [Ping timeout: 240 seconds]
ly_gs has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<shevy> hehe
<shevy> I think I would have preferred a yaml file instead
verbad has quit []
<shevy> DATABASES = {
<shevy> 'default': {
<shevy> 'ENGINE': 'django.db.backends.sqlite3',
t6295 has quit [Remote host closed the connection]
t56381 has joined #ruby
<shevy> dunno... really feel yaml would have been slightly nicer
mrdodo has joined #ruby
jasonLaster has joined #ruby
mrdodo has quit [Remote host closed the connection]
mrdodo has joined #ruby
TorpedoSkyline has joined #ruby
GoGoGarrett has joined #ruby
<weeb1e_> sigh
<shevy> weeb1e_ !
<shevy> weeb1e_ and otters
<shevy> my two favourite nicks here
<weeb1e_> Does anyone know how I can create a "fake" instance of a sinatra app for rendering stuff to be sent over websockets?
dotnull has quit [Remote host closed the connection]
<weeb1e_> I need an instance so that I can use render methods, helpers and have nested partials, without having to reimplement everything
<weeb1e_> But I cannot figure out a way to get it to work :(
arooni-mobile has joined #ruby
dotnull has joined #ruby
<shevy> self.execute(*args, **options.__dict__)
<shevy> TypeError: decode() argument 1 must be string, not None
<shevy> python errors are mysterious
timonv has joined #ruby
guns has quit [Ping timeout: 240 seconds]
fbernier has joined #ruby
<Spooner> shevy : I've seen just as bad in Ruby :)
<otters> I haven't
insecurlex has joined #ruby
<shevy> hmm
<shevy> I figured out, with help, that it has to do with my locales
<shevy> but the error message I got there on the commandline was still quite cryptic
<shevy> "locale -a" gives only C, C.UTF-8, POSIX and de_DE.utf8
<shevy> where is the one encoding to rule them all? one language to bind them?
<Spooner> Just write a Python generator in Ruby and stop telling us how terrible Python is (we know or we don't care :D).
dotnull has quit [Remote host closed the connection]
savage- has quit [Remote host closed the connection]
strnx has quit [Max SendQ exceeded]
dotnull has joined #ruby
cakehero has joined #ruby
<shevy> don't tempt me!
strnx has joined #ruby
choffstein has joined #ruby
<otters> ooh, I hate python too
<otters> is this the right place
<shevy> this here is a good place for any otter we will ever have
insecurlex has quit [Remote host closed the connection]
<shevy> we should all have animal nicks
<shevy> any volunteers for monkey?
pygmael has quit [Read error: Connection reset by peer]
pygmael has joined #ruby
freeayu has quit [Quit: 离开]
Jake232 has joined #ruby
katherinem13 has joined #ruby
Takehiro has quit [Remote host closed the connection]
emmanuelux has quit [Ping timeout: 240 seconds]
gavit has quit [Read error: Connection timed out]
dotnull has quit [Remote host closed the connection]
gavit has joined #ruby
dotnull has joined #ruby
katherinem13 has quit [Ping timeout: 240 seconds]
fbernier has quit [Ping timeout: 240 seconds]
ly_gs has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
shevy has quit [Ping timeout: 244 seconds]
vlad_starkov has quit [Ping timeout: 245 seconds]
eataix has quit [Quit: ZNC - http://znc.in]
dtribble has joined #ruby
dotnull has quit [Read error: Connection reset by peer]
dotnull has joined #ruby
Takehiro has joined #ruby
chimkan has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
yasushi has joined #ruby
chimkan has quit [Client Quit]
Takehiro has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Takehiro has joined #ruby
mneorr has quit [Quit: Leaving.]
savage- has joined #ruby
brianpWins has quit [Quit: brianpWins]
mneorr has joined #ruby
gavit has quit [Read error: Connection timed out]
apok has quit [Quit: apok]
QKO_ has joined #ruby
gavit has joined #ruby
yasushi has quit [Ping timeout: 265 seconds]
shevy has joined #ruby
QKO has quit [Ping timeout: 252 seconds]
TorpedoSkyline has quit [Ping timeout: 265 seconds]
ego12 has joined #ruby
choffstein has quit [Remote host closed the connection]
Rizzle has joined #ruby
Eldariof-ru has joined #ruby
<ego12> Hi guys, I'm attempting to use ruby for the first time to install an existing software package. I am having a lot of isuses and was hoping you could help
Foxandxss has joined #ruby
mneorr has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
sepp2k has quit [Ping timeout: 246 seconds]
azm has joined #ruby
azm has joined #ruby
azm has quit [Changing host]
mneorr has quit [Client Quit]
elhu has joined #ruby
savage- has quit [Remote host closed the connection]
indian has joined #ruby
elhu has quit [Client Quit]
ibash has joined #ruby
slycog has joined #ruby
burgestrand has quit [Ping timeout: 256 seconds]
katherinem13 has joined #ruby
gavit has quit [Read error: Connection timed out]
gavit has joined #ruby
verto|off is now known as verto
dreda has left #ruby [#ruby]
infinitiguy has joined #ruby
Goles has joined #ruby
bluOxigen_ has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
bluOxigen has quit [Ping timeout: 272 seconds]
mohits has joined #ruby
deryl has quit [Quit: deryl]
sepp2k has joined #ruby
Eldariof59-ru has joined #ruby
tk_ has quit [Quit: ばいばい]
bluOxigen_ has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
bluOxigen has joined #ruby
just4dos has joined #ruby
Eldariof-ru has quit [Ping timeout: 248 seconds]
jblack has joined #ruby
infinitiguy has quit [Quit: Leaving.]
infinitiguy has joined #ruby
bier has quit [Ping timeout: 252 seconds]
ping-pong has quit [Ping timeout: 245 seconds]
td123 has joined #ruby
gavit has quit [Read error: Connection timed out]
iori has quit [Remote host closed the connection]
infinitiguy has quit [Client Quit]
infinitiguy has joined #ruby
gavit has joined #ruby
iamjarvo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ph^ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Takehiro has quit [Remote host closed the connection]
jgrevich has joined #ruby
t56381 has quit [Remote host closed the connection]
t3244 has joined #ruby
deo has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
uris has joined #ruby
seanstickle has quit [Quit: seanstickle]
elhu has joined #ruby
resure has quit [Ping timeout: 246 seconds]
bluenemo has quit [Remote host closed the connection]
tomsthumb_ has joined #ruby
ly_gs has joined #ruby
elhu has quit [Client Quit]
Takehiro has joined #ruby
infinitiguy has quit [Quit: Leaving.]
darkc0met has quit [Changing host]
darkc0met has joined #ruby
darkc0met has joined #ruby
bier has joined #ruby
ping-pong has joined #ruby
arturaz has joined #ruby
<ego12> Hi guys, I'm attempting to use ruby for the first time to install an existing software package. I am having a lot of isuses and was hoping you could help
resure has joined #ruby
Spaceghostc2c has joined #ruby
<apeiros_> you're not using 1.9.3
verto is now known as verto|off
Eldariof27-ru has joined #ruby
verto|off is now known as verto
dpk has quit [Quit: Asleep at the keyboard.]
gavit has quit [Read error: Connection timed out]
Eldariof59-ru has quit [Ping timeout: 268 seconds]
gavit has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
rburton- has joined #ruby
liluo has quit [Remote host closed the connection]
td123 has quit [Quit: WeeChat 0.3.8]
ph^ has joined #ruby
br4ndon has joined #ruby
dpk has joined #ruby
davidboy has joined #ruby
<arooni-mobile> looking for a great http library that supports: ssl, adding/editing cookies, and adding a POST body parameters that look like.... :key => {:key => value1} etc. ive tried httpclient... any other things to try?
macmartine has joined #ruby
macer1 has joined #ruby
jgrevich_ has joined #ruby
<ego12> apeiros_: i am using 1.9.3
jgrevich has quit [Ping timeout: 252 seconds]
jgrevich_ is now known as jgrevich
banisterfiend has quit [Read error: Connection reset by peer]
drago757 has joined #ruby
dotnull has quit [Remote host closed the connection]
dotnull has joined #ruby
Araxia has joined #ruby
<ego12> apeiros_: you just answered on the stackoverflow, i read it, i tried it, i love you
banisterfiend has joined #ruby
mneorr has joined #ruby
deo has quit [Read error: Connection reset by peer]
rippa has joined #ruby
quest88 has joined #ruby
emsilva has quit [Ping timeout: 252 seconds]
brianpWins has joined #ruby
khakimov has joined #ruby
elhu has joined #ruby
emsilva has joined #ruby
codezombie has joined #ruby
dotnull has quit [Remote host closed the connection]
heftig has quit [Ping timeout: 240 seconds]
tommyvyo has joined #ruby
dotnull has joined #ruby
dotnull has quit [Remote host closed the connection]
fbernier has joined #ruby
mrdodo has quit [Read error: Connection reset by peer]
mrdodo has joined #ruby
dotnull has joined #ruby
QKO has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
lkba has quit [Ping timeout: 240 seconds]
JonnieCache|home has joined #ruby
indian has quit [Ping timeout: 240 seconds]
QKO_ has quit [Ping timeout: 244 seconds]
Jelco has joined #ruby
deryl has joined #ruby
t3244 has quit [Remote host closed the connection]
t90789 has joined #ruby
Eldariof-ru has joined #ruby
GMFlash has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
shadoi has joined #ruby
elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ianbrandt has joined #ruby
Eldariof27-ru has quit [Ping timeout: 260 seconds]
drago757 has quit [Quit: drago757]
verto is now known as verto|off
maletor has joined #ruby
specialGuest has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
specialGuest has quit [Changing host]
tommyvyo has joined #ruby
specialGuest has joined #ruby
Jelco has quit [Ping timeout: 248 seconds]
dotnull has quit [Remote host closed the connection]
coldmind has quit [Quit: Leaving]
mneorr has quit [Ping timeout: 246 seconds]
Jelco has joined #ruby
baphled has quit [Ping timeout: 244 seconds]
berserkr has quit [Quit: Leaving.]
mneorr has joined #ruby
savage- has joined #ruby
ahuman has quit [Remote host closed the connection]
ahuman has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
r0bby is now known as robbyoconnor
rippa has quit [Ping timeout: 256 seconds]
yakko has joined #ruby
rippa has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
baphled has joined #ruby
jonathanwallace has joined #ruby
sebicas has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
heftig has joined #ruby
mneorr has quit [Quit: Leaving.]
jonathanwallace has quit [Ping timeout: 268 seconds]
Jake232 has quit [Ping timeout: 245 seconds]
savage- has quit [Remote host closed the connection]
conor_ireland has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
timonv has joined #ruby
grillo has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
fantazo has joined #ruby
timonv has quit [Ping timeout: 268 seconds]
shevy_from_termi has joined #ruby
<shevy_from_termi> hi
fantazo_ has joined #ruby
shevy_from_termi has quit [Remote host closed the connection]
<shevy> hmm
verto|off is now known as verto
fantazo has quit [Ping timeout: 244 seconds]
QKO_ has joined #ruby
<sebicas> hi
<otters> hey
grillo has joined #ruby
<shevy> hi sebicas
<sebicas> Hi shevy….
<sebicas> How are you doing?
<shevy> dunno
<shevy> the webframeworks are all way too complicated
QKO has quit [Ping timeout: 246 seconds]
sdwrage has joined #ruby
<sebicas> I agree
ringotwo has joined #ruby
ringotwo has quit [Remote host closed the connection]
khakimov has quit [Quit: Computer has gone to sleep.]
<shevy> were they easier 5 years ago?
<shevy> somehow I feel as if I lost the connection
<shevy> I find rack alone complicated enough, and it is just a tiny little 2% part ...
ly_gs has quit [Remote host closed the connection]
<azm> just use html ?
<azm> and ascii art.
<azm> <blink> Oh Hai ! </blink>
<shevy> html is unfortunately not dynamic
<azm> it is ^^
<shevy> the data you store in it is dead
<azm> well yea
robbyoconnor has quit [Read error: Connection reset by peer]
<shevy> and just look at ERB, this thing is the ugliest shit ever
<fowl> because shevy killed it and ate its children
<shevy> WHY can anyone use erb... WHY
<azm> why do you need data to be dynamic ?
robbyoconnor has joined #ruby
<shevy> azm gives you more power
ibash has quit [Quit: ibash]
<azm> what specifically ?
fantazo_ has quit [Ping timeout: 240 seconds]
<shevy> every time you wish to query data
Rizzle has quit [Disconnected by services]
<azm> what kind of data ?
fantazo has joined #ruby
<shevy> every kind of data, without any limitation
<azm> like for example update the stock queue ?
<shevy> every kind of data
<azm> what is data ?
<shevy> every kind of information
<shevy> hmm rack seems nice
<shevy> it comes with lobster.ru
<azm> why not just rewrite every time and then ?
<azm> and use html
fantazo_ has joined #ruby
airhorns has joined #ruby
<shevy> huh
<azm> lobster.ru is crazy domain
<shevy> that is so 1990
m104 has joined #ruby
Bosma has joined #ruby
<arooni-mobile> i can get login to this site with curl -x 'POST' --data 'encoded_data=?.... blah blah' https://www.couchsurfing.org/login'.... but when i try to do it with a ruby HTTP library; i cannot (site doesnt let me in). ive tried with curb and http-client already
yakko has quit [Remote host closed the connection]
<shevy> this is the lobster http://pastie.org/pastes/4545753/text
myth17 has joined #ruby
ryanf has joined #ruby
fantazo has quit [Ping timeout: 244 seconds]
<azm> what does the long string means ?
maletor has quit [Quit: Computer has gone to sleep.]
<azm> it inflated twice then deleted and then unpacked
pskosinski has joined #ruby
<azm> sound like some horrible murder
<shevy> dunno
<shevy> but if you puts it
<shevy> you will have an ascii lobster
deryl has quit [Quit: deryl]
<azm> i dont have ruby interpreter
ph^ has quit [Remote host closed the connection]
Spooner has quit [Ping timeout: 246 seconds]
verto is now known as verto|off
<shevy> then this lobster you will never see :(
<shevy> I'll give you an ascii man though
<shevy> o
shadoi has quit [Quit: Leaving.]
<shevy> |
<shevy> /\
tommyvyo has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
<shevy> was tortured though
<azm> so you just write puts
<azm> infront of the code ?
<shevy> well, rack seems to return the lobster, and this is then served to the browser, where it is displayed
<shevy> http://pastie.org/4545788 here it is
<shevy> even is camouflaged thanks to pastie.org
<azm> whee
Filuren has joined #ruby
<azm> but what you coude in order to make him ?
<azm> *code
Stalkr_ has quit [Ping timeout: 246 seconds]
jonathanwallace has joined #ruby
Filuren is now known as Stalkr_
<shevy> azm nah that is just static data
<shevy> there isn't much code associated with that
<azm> so you want to have dynamic lobster ?
<shevy> I don't think you'll get far with a lobster
<shevy> dynamic or static
<shevy> a lobster is not build for greatness
deryl has joined #ruby
<shevy> sebicas it would be nice if stdlib ruby could provide something a bit more advanced than the old 'cgi' module
michaelmartinez has joined #ruby
rubbish has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
<azm> so ruby is made for website making
michaelmartinez has quit [Client Quit]
<azm> if I want to dynamically share stories about my lobster with friends for example
brianpWins has quit [Ping timeout: 245 seconds]
<azm> but you do not need framework for it
wvms has joined #ruby
<azm> ruby on rails
wvms has quit [Remote host closed the connection]
<azm> that will do it
ph^ has joined #ruby
<azm> that like ruby
<azm> is static
<azm> and once its on rails it moves
<shevy> azm ruby does not have a lot of limitations
<azm> wow
<shevy> azm have you been using another programming language?
<azm> shevy, do you think I could make gae engine with ror ?
wvms has joined #ruby
<azm> yes
<shevy> I dont use ror
<shevy> ask on #rubyonrails
<azm> asm,C,python,C++
<shevy> c AND c++???
<azm> haskell
<shevy> linus torvalds does not like C++
<shevy> matz does not like C++
<azm> well whatever
<shevy> those are clever people! they use C
<azm> I dont want to start flames
<azm> please
<azm> lets stay at the lobster
<shevy> I like << from C++ though
<azm> using /= like
<azm> shevy, so for what do you use ruby ?
<azm> exept lobsters
imami|afk is now known as banseljaj
wvms has quit [Client Quit]
wvms has joined #ruby
<azm> i think C++ is kinda robust tho
<azm> no matter what linus or matz says
<azm> they are irrelevant
<shevy> azm hmm for most everything
<azm> what project you working right now shevy
<azm> Im curoius
<fowl> azm: while you're in His temple, please do not talk about Matz (PBUH) in such light
<azm> inspire me
<shevy> azm, today I added code to my bash-replacement, to the ruby compile-scripts, to pipes | in ruby... and right now I am trying to think about what a new but SMALL ruby webframework would require
<azm> shevy, why did you replace bash ? why is your replacement better ?
<shevy> an addon to cgi
<shevy> azm it is not yet better
<shevy> bash is superfast...
<shevy> I dont want to stay in shell scripts though
<azm> fowl, sorry I havent meant to offend your religion and leaders
<azm> on linux ?
<azm> what distro you use ?
<shevy> wherever ruby works must this replacement work too
<shevy> I test on linux 99% of the time though
<shevy> the speed difference is an issue though :(
<azm> ruby is slow
<azm> fact.
insecurlex has joined #ruby
<shevy> yeah
Jake232 has joined #ruby
<shevy> hopefully mruby will be much faster
codezombie has quit [Quit: Linkinus - http://linkinus.com]
<davidcelis> OMG RUBY IS SO SLOOW
<davidcelis> UGH
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<fowl> yea it takes forever to compile your apps
<davidcelis> fowl: should have stuck with assembly
<azm> cobol
<azm> all the way
<shevy> IF SALARY > 8000
RichieEvan has joined #ruby
<shevy> OR SALARY == PREV-SALARY
rburton- has quit [Quit: rburton-]
<shevy> PROCEDURE DIVISION.
<shevy> DISPLAY 'Hello, world'.
noyb has joined #ruby
<shevy> this is sparta!
<shevy> I mean, Cobol!
<azm> there should be some web framework for COBOL
<azm> i could code in in ruby
virunga has quit [Ping timeout: 246 seconds]
verto|off is now known as verto
<azm> so underrated
arooni-mobile has quit [Ping timeout: 240 seconds]
<shevy> you already know python
<shevy> there is no need for you to use ruby
brianpWins has joined #ruby
Filuren has joined #ruby
Stalkr_ has quit [Read error: Connection reset by peer]
banisterfiend has quit [Read error: Connection reset by peer]
Filuren is now known as Stalkr_
liluo has joined #ruby
banisterfiend has joined #ruby
pygmael_ has joined #ruby
vinleod has joined #ruby
pygmael has quit [Ping timeout: 246 seconds]
pygmael_ is now known as pygmael
arooni-mobile has joined #ruby
TheLZA has quit [Quit: Bye]
liluo has quit [Remote host closed the connection]
fbernier has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby
verto is now known as verto|off
mrdodo has quit [Remote host closed the connection]
<azm> ryanf, yea but this one is uselelss
<azm> ryanf, alrady found some info
Axsuul has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
sdwrage has left #ruby [#ruby]
gmci has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
macer1_ has joined #ruby
workmad3 has joined #ruby
banisterfiend has joined #ruby
macer1 has quit [Ping timeout: 246 seconds]
urbann has joined #ruby
gmci has joined #ruby
mrdodo has joined #ruby
macer1_ has quit [Ping timeout: 250 seconds]
resure has quit []
resure has joined #ruby
macmartine has joined #ruby
burgestrand has joined #ruby
arooni-mobile has quit [Ping timeout: 246 seconds]
macer1 has joined #ruby
ego12 has quit [Ping timeout: 252 seconds]
ego12 has joined #ruby
otters has quit [Quit: WeeChat 0.3.8]
banisterfiend has quit [Remote host closed the connection]
Stalkr_ has quit [Read error: Connection reset by peer]
otters has joined #ruby
Filuren has joined #ruby
banisterfiend has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend` has joined #ruby
macer1_ has joined #ruby
Takehiro has quit [Remote host closed the connection]
nohonor|staafl has quit [Read error: Connection reset by peer]
punffin has joined #ruby
hoelzro|away is now known as hoelzro
<regedarek> Hello
DriVen has joined #ruby
<DriVen> hi
<punffin> hi
m104 has quit [Quit: Be back later]
verto|off is now known as verto
macer1 has quit [Ping timeout: 246 seconds]
<DriVen> i wana learn about ruby
<regedarek> I have some ruby problem :)
<DriVen> please can someone help?
<regedarek> try: google.pl Try Ruby! :) on codeschool.com
<hoelzro> DriVen: what kind of help do you need?
<punffin> ruby it is
<DriVen> mental?
<punffin> what mental?
<DriVen> iam a pro at ruby
<DriVen> just ask the feds
<punffin> o really?
bradhe has joined #ruby
<DriVen> yer
<regedarek> So my problem is how to add another array with enumerator: https://gist.github.com/4f9a62860e5a91d0de57
<punffin> i dont believe
<DriVen> regedarek
<DriVen> sec
<DriVen> i look and then i help
<DriVen> 1sec
<DriVen> nig
<punffin> yea help him
<regedarek> :)
Beoran_ has quit [Ping timeout: 245 seconds]
<DriVen> hey regedarek
<DriVen> thats a mess bro
<DriVen> who wrote that
<DriVen> also
<DriVen> it fails
<DriVen> sec
v1n3 has joined #ruby
<DriVen> regedarek
<DriVen> post the link of the rental shop
<DriVen> i wiull fix it
<DriVen> ty
<v1n3> Howdy! Any one have any tips on monitoring puma with god?
<DriVen> ;)
myth17 has quit [Quit: Leaving]
<punffin> ask DriVen he is pro
<DriVen> ok i look it over
<workmad3> v1n3: god is already monitoring all pumas... it's just what god does... </troll>
horofox has joined #ruby
<v1n3> lol.. I've felt pretty dumb goggling this.. :)
<regedarek> So I would like to extend data with new array
<punffin> god is a troll?
macer1 has joined #ruby
macer1_ has quit [Ping timeout: 272 seconds]
<DriVen> (User has been permanently banned from jesusLovesMe (ever come in here again))
<DriVen> oh shyt
<DriVen> oooops
<DriVen> wrong link
<DriVen> sec
iamjarvo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Jackneill has quit [Ping timeout: 248 seconds]
verto is now known as verto|off
<DriVen> (User has been permanently banned from UndergroundPriv8 (no dos allowed you sad bastard))
<DriVen> * Disconnected (Remote host closed socket).
lledet has quit [Quit: lledet]
<DriVen> jesus
<DriVen> cntrl + V is borked
robbyoconnor has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 240 seconds]
<regedarek> ehh :/
<regedarek> bye
robbyoconnor has joined #ruby
<regedarek> I`ll try on ruby_on_rails :)
Guedes has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
<DriVen> 52k
Guedes has quit [Client Quit]
<punffin> DriVen, did you help him?
Goles has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<regedarek> maybe it is too hard for him :)
ExNihil has joined #ruby
<punffin> :)
QKO_ has quit [Ping timeout: 244 seconds]
<ExNihil> Hello.
<v1n3> hola
<v1n3> the problem with puma and god is that the puma pid changes and god tries to restart it endlessly although it is already running.
<ExNihil> So, why is every single chat room so quiet?
punffin has left #ruby [#ruby]
Takehiro has joined #ruby
jbw has quit [Ping timeout: 240 seconds]
azm has quit [Ping timeout: 252 seconds]
Beoran_ has joined #ruby
QKO has joined #ruby
und3f has joined #ruby
vinleod has quit [Quit: Life beckons.]
<regedarek> it is weekend :)
perryh_away is now known as perryh
Filuren has quit [Read error: Connection reset by peer]
apok has joined #ruby
Stalkr_ has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
arturaz has quit [Remote host closed the connection]
<burgestrand> v1n3: can’t god work with already-existing pidfiles?
Stalkr_ has quit [Read error: Connection reset by peer]
Filuren has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
<v1n3> yes, i'm using this cmd w.start = "puma /foo/app.ru -p 8000 --pidfile /tmp/foo.pid"
<v1n3> and w.pid_file = '/tmp/foo.pid'
banseljaj is now known as imami|afk
<burgestrand> v1n3: in the god guide it tells you how to watch processes that deamonize themselves
<burgestrand> v1n3: http://godrb.com/
<burgestrand> v1n3: “WATCHING NON-DAEMON PROCESSES”
workmad3 has joined #ruby
<v1n3> I was hoping someone could point me to a known good god config for puma
<burgestrand> Oh, wrong section I believe. :p
bluOxigen has joined #ruby
<burgestrand> Meh it is there somewhere.
br4ndon has joined #ruby
<ExNihil> Can you hear me?
specialGuest1 has joined #ruby
<burgestrand> Ah it’s just the pid_file attribute under Config files are ruby code.
<burgestrand> imo all the process watchers require far too much config :/
<v1n3> agreed
specialGuest has quit [Ping timeout: 244 seconds]
ExNihil has quit [Read error: Connection reset by peer]
ExNihil has joined #ruby
r0bby has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
br4ndon has quit [Client Quit]
t90789 has quit [Remote host closed the connection]
<ExNihil> Is it just me, or is this chat room laggy?
t32528 has joined #ruby
<v1n3> for all the effort it takes to configure god, you'd think their was a dashboard output somewhere that assured you it ws working
macmartine has joined #ruby
r0bby_ has joined #ruby
oddmunds has quit [Ping timeout: 245 seconds]
<v1n3> oh, god status takes an optional list
robbyoconnor has quit [Ping timeout: 246 seconds]
ExNihil has left #ruby [#ruby]
Araxia has quit [Quit: Araxia]
jbw has joined #ruby
r0bby has quit [Ping timeout: 248 seconds]
ryanf has quit [Quit: leaving]
hakunin_ is now known as hakunin
v1n3 has quit [Quit: v1n3]
vectorshelve has joined #ruby
<vectorshelve> undefined method `require_all' for main:Object (NoMethodError) while using the gem require_all. Wierd error despite adding the gem to my Gemfile
arooni-mobile has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
Filuren is now known as Stalkr_
ego12 has quit []
seanstickle has joined #ruby
<arooni-mobile> i can get login to this site with curl -x 'POST' --data 'encoded_data=?.... blah blah' https://www.couchsurfing.org/login'.... but when i try to do it with a ruby HTTP library; i cannot (site doesnt let me in). ive tried with curb and http-client already
rubier has joined #ruby
<shevy> vectorshelve perhaps it teaches you to not use require_all :D
<vectorshelve> shevy: its a good gem.. :)
r0bby_ has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
r0bby_ has quit [Changing host]
r0bby_ has joined #ruby
<arooni-mobile> hahaha nevermind; solved it! i was POSTing to the wrong URL!!! stupid arooni-mobile !!!
oddmunds has joined #ruby
Eldariof-ru has quit []
<regedarek> Hmm, I prepare simpler issue :) I would like to connect array of hashes => https://gist.github.com/3389802
<rubier> Can someone explain why this isn't working as expected: http://pastebin.com/d1WxMKqZ
chare has joined #ruby
pu22l3r has joined #ruby
<rubier> maybe the thread has it's own STDOUT?
DriVen has quit [Quit: Leaving]
specialGuest1 has quit [Ping timeout: 246 seconds]
punkrawkR has quit [Read error: Connection reset by peer]
<vectorshelve> shevy: shevy easiest way to require all files from a relative directory ?
Filuren has joined #ruby
Stalkr_ has quit [Read error: Connection reset by peer]
<shevy> vectorshelve Dir['*].each {|file| require file}
<shevy> Dir['*'].each {|file| require file}
<vectorshelve> shevy: I have a.rb in bin/ and i want to in a.rb require all files inside lib/
pu22l3r has quit [Remote host closed the connection]
<shevy> give the path to it!
<shevy> also use something like Pathname(__FILE__).dirname.realpath
<vectorshelve> shevy: http://stackoverflow.com/questions/735073/best-way-to-require-all-files-from-a-directory-in-ruby here in the first answer how can I give relative path ?
<vectorshelve> shevy: even this doesnt work Dir[File.dirname(__FILE__) + '../lib/*.rb'].each {|file| require file }
robbyoconnor has joined #ruby
<shevy> make sure that this returns the proper path
Takehiro has quit [Remote host closed the connection]
Filuren has quit [Ping timeout: 255 seconds]
<shevy> Pathname(__FILE__).dirname.realpath.to_s
resure has quit []
Stalkr_ has joined #ruby
<vectorshelve> shevy: so how would it be using that line for ..lib/
<shevy> I dont know where your files are
<shevy> with realpath you get the absolute path though
<vectorshelve> shevy: see.. i have app/bin/a.rb and in this a.rb I wanna require all files from app/lib/
<shevy> step 1:
<shevy> get the real absolute path to a.rb
<shevy> or rather, the bin directory
r0bby_ has quit [Ping timeout: 276 seconds]
<shevy> store it in a variable
<shevy> before you have not completed step 1, do not continue to step 2
<vectorshelve> shevy: well... thats confusing.. please help with that line of code :)
noyb has quit [Ping timeout: 272 seconds]
Goles has joined #ruby
<arooni-mobile> question: if i have a class class foo; @class_var=blah.... def initialize; ..... //how come i cant access @class_var here? end
<shevy> vectorshelve what is confusing. you must solve step 1 first
<shevy> path = Pathname(__FILE__).dirname.realpath.to_s
<shevy> puts path
<shevy> what is confusing here
<shevy> ensure that the path is proper
<shevy> that is step 1
<shevy> arooni-mobile, it was not initialized
<vectorshelve> shevy: here Pathname(__FILE__).dirname.realpath.to_s how do I do for lib ?
brianpWins has quit [Quit: brianpWins]
<shevy> arooni-mobile, move the variable into initialize and it will work
<vectorshelve> shevy: ../lib
<shevy> vectorshelve, did you solve step 1.
<arooni-mobile> shevy, so i have to declare it in the constructor?
<shevy> arooni-mobile, yes, or in another method you call
<shevy> .new calls allocate() first I think, then initialize()
<vectorshelve> shevy: I get uninitialized constant Pathname (NameError)'
Asher has quit [Quit: Leaving.]
<shevy> vectorshelve good
<shevy> step 0 is
<shevy> require 'pathname'
<vectorshelve> shevy: undefined method `call' for Pathname:Class (NoMethodError)
<arooni-mobile> whats the best way to encode POST body data to URL encoded.... so i can send it with httpclient?
<arooni-mobile> i.e. id like something that takes a hash as input and results a URL encoded string
s1n4 has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
<Jake232> arooni-mobile: Most http libs will handle this for you
ejholmes has joined #ruby
<arooni-mobile> Jake232, i'm using httpclient; i think it just takes a raw string that it slaps into http body
<vectorshelve> shevy: you sure about the steps /
<vectorshelve> shevy: got it
hunglin has joined #ruby
<vectorshelve> shevy: /home/user/github/app/bin
<Jake232> arooni-mobile: res = clnt.post(uri, { 'keyword' => 'ruby', 'lang' => 'en' }) where clnt is a instance of HTTPClient
<vectorshelve> shevy: so it gives the absolute path
burgestrand has quit [Quit: Leaving.]
sebicas has quit [Quit: sebicas]
<Jake232> arooni-mobile: (according the their docs anyway)
hunglin has quit [Client Quit]
cakehero has quit [Quit: Computer has gone to sleep.]
<shevy> vectorshelve why do you use .call
hunglin has joined #ruby
hunglin has quit [Client Quit]
<shevy> I know I never pasted .call
<vectorshelve> shevy: that was my mistake... I had a . after Pathname.. which when I removed it worked fine
<shevy> so you don't seem to liiiiisten :(
<shevy> ok try
<shevy> in this variable
<vectorshelve> shevy: no dear.. while pasting.. some how the . got added :)
<shevy> absolute_path = Pathname.... blablabla
<shevy> pp Dir[absolute_path+'../lib/*']
<shevy> and do require 'pp' before you use pp
<vectorshelve> shevy: so now I have the absolute path me with
<vectorshelve> me
<shevy> ^^^ do that above
<shevy> that is step 2
ScottNYC has joined #ruby
<shevy> if the pp works, you have your files
t32528 has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 252 seconds]
t52397 has joined #ruby
<vectorshelve> shevy: I didnt understand the blah blah part
waxjar has joined #ruby
<shevy> no
<shevy> the point is, get a variable first
<shevy> to the result of the Pathname thing
<waxjar> is there a way to restore a class to its "default state"?
<vectorshelve> shevy: it returned an empty array
<shevy> then use that variable vectorshelve
<vectorshelve> shevy: absolute_path = Pathname(__FILE__).dirname.realpath.to_s pp Dir[absolute_path+'../lib/*']
<shevy> how can this be
hunglin has joined #ruby
<shevy> ok perhaps
<arooni-mobile> Jake232, would it matteer if i used :keys instead of "keys"
<shevy> no how can this be
<Jake232> arooni-mobile: I doubt it
<shevy> Dir['/tmp/../*']
<shevy> vectorshelve, perhaps you miss one /
hunglin has quit [Client Quit]
<vectorshelve> shevy: so where do I add that ?
<shevy> I dont know your path
<shevy> play around with it, try it
<shevy> pp Dir[absolute_path+'/../lib/*']
<shevy> something like that
<shevy> this is why you should use irb
<shevy> it instantly gives you the results
<vectorshelve> shevy: ryt
macmartine has joined #ruby
<waxjar> what i'm looking for is this, kinda: `Class.thing = 'haha'; Class.reset; Class.thing #=> nil`
<shevy> guess how I do these things
<shevy> I have irb loaded, type in things, copy/paste into IRC :)
<shevy> waxjar, this requires the method reset() on your class
<shevy> by default, ruby objects do not have this method
<shevy> you could patch class Object to add it
conor_ireland has quit [Quit: conor_ireland]
<shevy> or
<shevy> if you use a specialized class anyway, you can define it
rippa has quit [Ping timeout: 244 seconds]
<shevy> class Foo; def initialize; @foo = 5; end; def reset; @foo = nil; end; end
jarek has joined #ruby
ScottNYC has quit [Quit: Linkinus - http://linkinus.com]
<jarek> Hi
<waxjar> that's not what i mean, i mean the general idea resetting a class to it's "initial" state, or something
dangerousdave has quit [Quit: Leaving...]
<waxjar> *idea of
<jarek> is there a naming convention for events that are non-discrete?
<waxjar> it causes some troubles for some tests i'm running
drago757 has joined #ruby
<shevy> waxjar yeah. there is no general reset method by default. so how do you want to solve this? you cant use reset if this method does not exist
<jarek> e.g. lets say that 'sliderDragged' event fires many times when user drags the slider, how should I call an event that fires only after user has finished performing the drag?
<waxjar> shevy, let me write up a gist real quick, it'll explain the problem better
<vectorshelve> shevy: absolute_path = Pathname(__FILE__).dirname.realpath.to_s pp Dir[absolute_path+'../lib/*']
<vectorshelve> shevy: this should work ^^ dont know why
<shevy> vectorshelve you can check the path
<shevy> does absolute_path show the proper path at all?
<shevy> does this path exist
<vectorshelve> shevy: yes thats perfect
<shevy> ok so you know that this part is correct
<shevy> pp Dir[absolute_path+'/../lib/*']
<vectorshelve> shevy: only pp Dir[absolute_path+'../lib/*'] returns []
<shevy> does absolute_path have a trailing / ?
<vectorshelve> shevy: now worked :) with
sebicas has joined #ruby
m104 has joined #ruby
ryanf has joined #ruby
<vectorshelve> shevy: pp Dir[absolute_path+'/../lib/*']
jdiez has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
<shevy> ok
<shevy> always look at the /
<vectorshelve> shevy: so now how do I shorten it ? absolute_path = Pathname(__FILE__).dirname.realpath.to_s pp Dir[absolute_path+'/../lib/*'] to require the files /
<vectorshelve> shevy: yes I missed it /
m104 has quit [Client Quit]
<waxjar> shevy, i think this illustrates my problem a little better: https://gist.github.com/3389983
nilg has quit [Read error: Connection reset by peer]
hoelzro is now known as hoelzro|away
hoelzro|away is now known as hoelzro
<shevy> dunno how to shorten that
<shevy> let's ask the channel
<shevy> Channel!
guns has joined #ruby
<vectorshelve> shevy: but how can I aquire the files.. but still wondering
<shevy> wake up!
<shevy> how to shorten:
<vectorshelve> shevy: why Dir["/path/to/directory/*.rb"].each {|file| require file } aint working
<shevy> Dir[Pathname(__FILE__).dirname.realpath.to_s+'/../lib/*']
<shevy> btw vectorshelve Dir[Pathname(__FILE__).dirname.realpath.to_s+'/../lib/*'].each {|file| require(file) }
answer_42 has quit [Ping timeout: 276 seconds]
<shevy> vectorshelve is the path correct, then it should work
<shevy> vectorshelve, or try Dir.glob
<shevy> yeah, try glob vectorshelve
sebicas has quit [Client Quit]
<shevy> Dir.glob('*cgi')
apok has quit [Quit: apok]
<vectorshelve> shevy: code please.. I never used it
cakehero has joined #ruby
<shevy> what is the problem
<shevy> start irb
<zelrik> is there a ruby on rails channel?
<vectorshelve> shevy: Dir[Pathname(__FILE__).dirname.realpath.to_s+'/../lib/*'].each {|file| require(file) } worked but looks ugly... doesnt look like shevy code :)
<shevy> Dir.glob('*.txt')
<shevy> vectorshelve, yeah it's awful.
<vectorshelve> zelrik: yes #rubyonrails
<shevy> I hate Pathname
<shevy> I dont know another way though
<vectorshelve> shevy: me too ppl hardly used it
noyb has joined #ruby
<shevy> and nobody else in this channel knows either
<vectorshelve> shevy: ;)
guns has quit [Client Quit]
<vectorshelve> shevy: so hw can we better this Dir[Pathname(__FILE__).dirname.realpath.to_s+'/../lib/*'].each {|file| require(file) }
hoelzro is now known as hoelzro|away
<shevy> I told you
<shevy> I dont know
<shevy> find a way without Pathname
<waxjar> vectorshelve, what are you trying to do?
<vectorshelve> waxjar: requiring in app/bin/a.rb all the files in app/lib/
nopolitica has quit [Ping timeout: 252 seconds]
arooni-mobile has quit [Ping timeout: 245 seconds]
<waxjar> you could try running ruby with the -I flag? -I ../lib or something
<waxjar> then just require the main file from your lib in a.rb
<vectorshelve> waxjar: in the command line ?. but I want to require them in .rb files
dpk has quit [Quit: Asleep at the keyboard.]
<waxjar> i suppose you're doing something like #! /usr/bin/env ruby in a.rb?
<vectorshelve> shevy: doesnt work -> Dir.glob(File.dirname(__FILE__) + '/../lib/*') {|file| require file}
<shevy> are you sure you used it correctly
horofox has quit [Quit: horofox]
<shevy> and why did you merge everything together again
<shevy> I told you to use variables...
horofox has joined #ruby
<shevy> step 1
<shevy> - ensure that absolute_path has the path towards what you need
<shevy> step 2
<waxjar> vectorshelve: https://gist.github.com/3390047 i used _s instead of /s in the file names, because gist doesn't support subfolders
<shevy> Dir.glob(absolute_path+'*')
<shevy> I must leave here for some minutes
fbernier has joined #ruby
und3f has quit [Quit: Leaving.]
rking has quit [Read error: Connection reset by peer]
rking has joined #ruby
horofox has quit [Client Quit]
Z_Mass has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
specialGuest1 has joined #ruby
<rubier> anyone have experience with using the logger class with threads? I'm having issues logging inside a thread and I'm not sure exactly what's going on: http://pastebin.com/d1WxMKqZ
niklasb has joined #ruby
s1n4 has quit [Quit: leaving]
jarek has quit [Quit: jarek]
bradhe has quit [Remote host closed the connection]
jslvk has joined #ruby
verto|off is now known as verto
vinleod has joined #ruby
<jslvk> !aaa
robbyoconnor has joined #ruby
verto is now known as verto|off
r0bby has joined #ruby
arooni-mobile has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
s1n4 has joined #ruby
mohits_ has joined #ruby
r0bby_ has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 276 seconds]
r0bby_ has joined #ruby
vectorshelve has quit [Quit: Page closed]
mohits has quit [Ping timeout: 248 seconds]
dpk has joined #ruby
r0bby has quit [Ping timeout: 260 seconds]
burgestrand has joined #ruby
alanp has joined #ruby
robbyoconnor has joined #ruby
s1n4 has quit [Quit: leaving]
brianpWins has joined #ruby
infinitiguy has joined #ruby
r0bby_ has quit [Ping timeout: 240 seconds]
Takehiro has joined #ruby
s1n4 has joined #ruby
alanp_ has quit [Ping timeout: 265 seconds]
robbyoconnor has quit [Ping timeout: 276 seconds]
Takehiro has quit [Ping timeout: 240 seconds]
infinitiguy has quit [Quit: Leaving.]
xnm has quit [Ping timeout: 246 seconds]
specialGuest1 has quit [Quit: WeeChat 0.3.8]
specialGuest has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
<jslvk> :{?
<matti> So hot...
<jslvk> outside?
<matti> rubier: You have to join your thread ;]
pv has joined #ruby
<matti> jslvk: Yeah.
macer1 has quit [Remote host closed the connection]
<jslvk> yeah i live in the south US
<jslvk> SWAMP BUTT
<chare> ruby on rails security is good or sucks?
<matti> chare: Deceny by default.
<matti> chare: But there is always room for improvement ;]
<chare> what does that mean?
<jslvk> chare: decent XSS protection and sql injection stuff between rails and activerecord
lkba has joined #ruby
<matti> chare: what he said --> jslvk
<jslvk> you need to of course have some idea about security going in
drago757 has quit [Quit: drago757]
td123 has joined #ruby
Husel has joined #ruby
bowlowni has quit [Read error: Connection reset by peer]
bowlowni has joined #ruby
<jslvk> also, for SQL injection..most ORMs have some built in scrubbing and whatnot
ph^ has quit [Remote host closed the connection]
Araxia has joined #ruby
<arooni-mobile> hoif i have 5 or 6 arguments to send to a method; is it better to have (var_1, var_2, var_3) or pass a hash?
<jslvk> if the number of variables in arbitrary use a params hash
<arooni-mobile> well hte # of args is fixed
<arooni-mobile> i may add/remove args in future
pu22l3r has joined #ruby
bowlowni has quit [Read error: Connection reset by peer]
bowlowni has joined #ruby
<arooni-mobile> why you think ? :p
<jslvk> arooni-mobile: yeah then just do something like def myfn(arg1, arg2, args*) and keep the ones in you need explicitly
<jslvk> *args
baphled has quit [Quit: Lost terminal]
<rubier> matti: interesting. even after reading the docs for join, I'm still a bit confused as to what's currently going on, and how join will change the flow.
<arooni-mobile> jslvk, keep the ones i need explicit like arg1, arg2 right
<jslvk> yep
<matti> rubier: There is a problem with scope ;]
<matti> rubier: Also ;p
deryl has quit [Quit: deryl]
<rubier> yeah, I realized that after I posted the code. I've made log global.
bluOxigen has quit []
`brendan has joined #ruby
<arooni-mobile> just out of curiosity why is that better than passing a hash
<arooni-mobile> because arg1 arg2 is clearer?
macer1 has joined #ruby
<jslvk> arooni-mobile: more or less, since *args is just going to be a hash or joined as an array
<jslvk> not very helpful for self-documenting code
<rubier> hah, actually, scope was my only issue! thanks!
<rubier> not sure why I wasn't getting an undefined local variable error
fastred has quit [Quit: fastred]
<matti> rubier: Well, you should join threads anyway ;p
qwerxy has joined #ruby
<matti> rubier: Anyway, happy logging!
fbernier has quit [Ping timeout: 248 seconds]
jslvk has quit []
<rubier> matti: the actual threads are going to be created inside an infinite loop, so I don't think I have to worry about making sure they get executed before my program terminates (which is what the point of join is, if I understand it correctly)
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
<matti> rubier: Writing a server?
jenrzzz has joined #ruby
<rubier> yup
<matti> rubier: Look at EventMachine then.
<matti> rubier: It nice, and super easy to make nice servers with it.
<bperry> eventmachine was dead I thought
epochwolf is now known as atomicwolf
<matti> bperry: Still better older version than infinite loop and not-quite-decent-threads in Ruby for a server ;]
<bperry> probably
techsurvivor has joined #ruby
<matti> :)
<dtribble> is eventmachine dead? or rather is there an event loop implementation to replace it?
<matti> I haven't heard about it being dead.
<matti> There has been a slow-down in development.
<matti> But.
CodeFriar has quit [Read error: Connection reset by peer]
<rubier> matti: thanks for the tip. This is a dead simple udp messaging system, so I'm not too concerned with performance so I'd rather save on complexity. Just spawning threads for connections on the off chance I receive two simultanously (nearly impossible).
BeLucid has quit [Read error: Connection reset by peer]
<matti> rubier: OK OK :)
<rubier> hehe
BeLucid has joined #ruby
<macer1> hey
techsurvivor has quit [Client Quit]
techsurvivor has joined #ruby
<macer1> will creating every time OpenSSL::Cipher::Cipher.new('AES-128-CFB8').decrypt will result in performance loss?
<macer1> or not..
gentz_ has quit [Read error: Operation timed out]
<macer1> I want to add simple decrypt! method to String
t52397 has quit [Remote host closed the connection]
gentz has joined #ruby
t13531 has joined #ruby
danheberden has quit [Ping timeout: 272 seconds]
igotnolegs has joined #ruby
yakko has joined #ruby
madhatter has quit [Ping timeout: 272 seconds]
madhatter has joined #ruby
danheberden has joined #ruby
bradhe has joined #ruby
qwerxy has quit [Quit: offski]
mikalv has left #ruby [#ruby]
bradhe has quit [Remote host closed the connection]
rubier has quit [Quit: Page closed]
perryh is now known as perryh_away
bradhe has joined #ruby
brdude has joined #ruby
virunga has joined #ruby
classix has quit [Ping timeout: 272 seconds]
undyingrage has quit [Ping timeout: 272 seconds]
undyingrage has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
moeSeth has quit [Ping timeout: 272 seconds]
atomicwolf has quit [Ping timeout: 272 seconds]
mike4_ has quit [Ping timeout: 276 seconds]
deryl has joined #ruby
classix has joined #ruby
<macer1> hmm..how to make a function that waits for thing from another thread?
jasonLaster has quit [Remote host closed the connection]
EuroTrash has joined #ruby
jasonLaster has joined #ruby
mike4_ has joined #ruby
<ryanf> join
pygmael has quit [Read error: Connection reset by peer]
pygmael has joined #ruby
brdude has quit [Ping timeout: 260 seconds]
epochwolf has joined #ruby
gry has joined #ruby
robbyoconnor has joined #ruby
joephelius has quit [Ping timeout: 246 seconds]
jasonLaster has quit [Ping timeout: 248 seconds]
SegFaultAX has quit [Ping timeout: 268 seconds]
<matti> macer1: Have a look on threads synchronisation. There is a way to notify others that one has finished ;]
<macer1> not really /finished/
<macer1> it is thread that reads packet
<macer1> and main thread needs to wait for packet
<macer1> that read packest*
<macer1> packets*
<macer1> ...
specialGuest has quit [Ping timeout: 276 seconds]
robbyoconnor has quit [Ping timeout: 240 seconds]
<macer1> i.e thread will call notify_new_packet(packet) and what to do from there...
pu22l3r has quit [Remote host closed the connection]
wvms has quit [Ping timeout: 244 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
<matti> macer1: Is this a producer/consumer approach?
SegFaultAX has joined #ruby
virunga has quit [Quit: Sto andando via]
<macer1> matti: kind of...
<macer1> there is a thread that read packets from stream using eventmachine
<macer1> the 'connect' method needs to send hi packet and wait for response
seanstickle has quit [Quit: seanstickle]
timonv has joined #ruby
burgestrand has quit [Quit: Leaving.]
allanm_ has joined #ruby
x0F has quit [Read error: Connection reset by peer]
eph3meral has joined #ruby
burgestrand has joined #ruby
qwerxy has joined #ruby
<burgestrand> macer1: I lost connection for a moment, but have you looked at the ruby Queue?
x0F has joined #ruby
<macer1> macer1> there is a thread that read packets from stream using eventmachine
<macer1> macer1> the 'connect' method needs to send hi packet and wait for response
gh has joined #ruby
<macer1> queue looks interesting
<burgestrand> macer1: you just put any ruby object into it. All readers will block if the queue is empty, and once an item enters the queue one of the blocked readers will awaken and get the item.
wvms has joined #ruby
allanm has quit [Ping timeout: 260 seconds]
<macer1> oh
<burgestrand> macer1: there is also SizedQueue if you want to limit the number of items in the queue.
<macer1> also I am trying to implement eventmachine as using read_packet while true is using all cpu :P
<macer1> even loop { 1 } is using all cpu
<burgestrand> macer1: yeah, that’s to be expected
<burgestrand> macer1: if you are using eventmachine have a look at the next_tick method
ryanf has quit [Read error: Connection reset by peer]
<macer1> queue looks like what I am needing, but what to do with next_tick?
<macer1> also, queue after consuming is cleaned?
joephelius has joined #ruby
<burgestrand> macer1: if you need to do something in a loop in eventmachine it’s not a good idea since you’ll block the reactor from running, say loop { 1 } is bad
<burgestrand> macer1: but doing next_tick { 1 } is okay
<burgestrand> macer1: when you take an item from the queue it is removed from the queue
<macer1> OK, it looks like I don't need it
<macer1> burgestrand: awesome
<macer1> thanks!
<burgestrand> macer1: also if you are using eventmachine and Queue together be careful not to try to pop item from queue in eventmachine loop (or add item to sized queue) as it may block the reactor
<macer1> heh, ok
Z_Mass has quit [Quit: Leaving]
<macer1> def read_data; if enough data then read and add to queue; end; def wait_for_packet; queue.pop; end
Ethan has quit [Read error: Connection reset by peer]
bradhe_ has joined #ruby
BrianJ has joined #ruby
<matti> burgestrand: Perhaps he could leverage Channel to pass data.
sailias has quit [Ping timeout: 244 seconds]
robbyoconnor has joined #ruby
<burgestrand> matti: dunno, looks useful
<burgestrand> didn’t know about channel :)
t13531 has quit [Remote host closed the connection]
pv has quit [Remote host closed the connection]
t15229 has joined #ruby
<burgestrand> channel is one-to-many though
<burgestrand> maybe… the docs are not helpful
bradhe has quit [Ping timeout: 252 seconds]
<matti> burgestrand: He could subscribe to a channel before EM.run.
<matti> burgestrand: And then in receive_data just @channel.push
<matti> No idea, though.
<matti> Depends on what is needed.
<matti> Hehe
Jake232 has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Ping timeout: 276 seconds]
<macer1> channel is kinda two-way queue?
ryanf has joined #ruby
<matti> No.
<matti> Its a pub/sub kid of thing.
burgestrand has quit [Quit: Leaving.]
<matti> If you don't plan to fork (bad with EM) or, fork_reactor (less bad, but annoying).
<matti> Then it might just do.
<macer1> oh
<macer1> interesting
<macer1> o.O this looks like what I need :)
<matti> :>
<macer1> packet.subscribe { |p| p p }
eph3meral has quit [Quit: eph3meral]
Husel has left #ruby [#ruby]
<macer1> hmm
Ethan has joined #ruby
<macer1> can I subscribe to a one type of packet :>?
<macer1> like subscribe to chat packets
<macer1> and then display them on console
perryh_away is now known as perryh
<macer1> maybe just check at subscribe if class of packet is chatpacket
<matti> Hold on.
sailias has joined #ruby
igotnole_ has joined #ruby
igotnolegs has quit [Ping timeout: 240 seconds]
zodiak has quit [Quit: Leaving]
arooni-mobile has quit [Ping timeout: 256 seconds]
burgestrand has joined #ruby
<macer1> huh?
chare has quit [Quit: Leaving]
DrShoggoth has quit [Ping timeout: 245 seconds]
<matti> macer1: Sorry.
<matti> macer1: An example.
<matti> macer1: Probably not the greatest one :)
<matti> [ Everything can be done better ]
<matti> macer1: There is a chat-alike-thing in the examples for EventMachine.
<macer1> matti: your name looks like Polish :S
codezombie has joined #ruby
<macer1> is it?
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<matti> It is.
<macer1> matti: cześć
<matti> Czesc!
qwerxy has quit [Quit: offski]
<macer1> :D
bradhe_ has quit [Remote host closed the connection]
<macer1> thanks for examples. looks good.
<matti> :)
<matti> I hope it works ;p
theTrav has joined #ruby
<matti> And use --pre version of EventMachine (unless there is official stable one already *citation needed*).
<macer1> huh?
<macer1> I just gem install it
<matti> I mean, when gem install --remote --pre eventmachine
<matti> ;]
pskosinski has quit [Remote host closed the connection]
<macer1> why pre
<theTrav> so I'm trying to get my sinatra app to kick off a command line process. I'm playing with fork, Process.daemon and Process.spawn
<macer1> it works without it
codezombie has quit [Client Quit]
<matti> macer1: I know, pre 1.0.0 beta 4 (IIRC) is buggy and relatively old.
codezombie has joined #ruby
<matti> macer1: You want beta :) Trust me, I am the Doctor.
<theTrav> I want the command line process to run in its own completely detatched thread, log to a file, and return its pid to the sinatra app
<theTrav> fork seems to come close, but it still gets exceptions trickling back to the sinatra app
vinleod has quit [Quit: Life beckons.]
<macer1> 1.9.3p194 :015 > EM::VERSION
<macer1> => "0.12.10"
<theTrav> daemon detatches the sinatra app, which is not what I want
<theTrav> do I need to fork and then detatch?
timonv has quit [Remote host closed the connection]
<matti> macer1: No, get it with --pre ;)
<matti> theTrav: Depends how do you fork / what do you do.
<macer1> ehh will it work if I specify it as dependency in gem
<macer1> with pre version?
<matti> theTrav: You could leverage EventMachine witn em-sinatra.
<matti> theTrav: And have a deffer ;p
verto|off is now known as verto
<matti> macer1: Should be, a gem is just a gem.
pskosinski has joined #ruby
<macer1> matti: actually -pre installed 1.0 beta 4 -_-
<matti> macer1: And that is the version you want ;]
<theTrav> my pref is to avoid gems until I understand how the std library does it
ken_barber has joined #ruby
<macer1> ahh
<macer1> you mean pre beta...
<macer1> ok
<matti> macer1: :)
<matti> macer1: Yes, its less bugy.
<theTrav> I'm currently just doing pid = fork { `ls > out.txt`}
<matti> macer1: And there is huge version gap between the two.
<matti> theTrav: Look at popen, popen3 etc.
<macer1> OK, I will post my code when I will complete that :o
ruby0101 has joined #ruby
<matti> theTrav: With fork you'd have to get pipes to read etc.
<matti> theTrav: Can get messy quickly.
<matti> theTrav: Or, just get Thread.new { <some code to run on the side> }
<theTrav> actually spawn looks fairly in depth
<matti> Ah, 1.9 then
<matti> ;]
<theTrav> yeah 1.9.3 sorry
<matti> spawn is nice.
<matti> macer1: Good luck and have fun! :)
<theTrav> with some performance patch (falcon?)
GMFlash has quit [Quit: Computer has gone to sleep.]
gmci has quit [Ping timeout: 252 seconds]
mrdodo has quit [Remote host closed the connection]
<matti> macer1: EM is so much fun, and when you get used to it, you will never want to write another server without it ;]
<macer1> I planned to touch eventmachine all day but I could not find the motivation :S
* matti gives macer1 teh look ;p
emmanuelux has joined #ruby
<macer1> matti: teh look? co co :D?
gmci has joined #ruby
<matti> theTrav: You could do a quick Google for "background task / process" in Rails.
<matti> theTrav: People keep asking about it again, and again, and again...
<theTrav> yeah I have googled a couple of times
<matti> theTrav: There are some good practices.
<theTrav> lots of out of date info
airhorns has quit [Read error: Connection reset by peer]
<theTrav> it got me to looking at the docs for fork, daemon and spawn
<theTrav> I think spawn might have the goods
<theTrav> it's just a lot to take in
<theTrav> might have jumped the gun on irc support ;P
<matti> macer1: "Patrzy spod nosa ;p"
<macer1> a ok
<matti> :)
<macer1> def channel; @channel ||= EM::Channel.new; end will set it to channel.new if it is nil?
Nisstyre has quit [Read error: Connection reset by peer]
<matti> macer1: ||= does this, yes.
<macer1> I didn't know that trick. less crap in initialize :)
<matti> theTrav: The "IRC support" is disappointed ;p
<matti> theTrav: :)
<matti> theTrav: Don't get too carried away, this can get ugly quickly ;]
techsurvivor is now known as tech|away
<matti> theTrav: First time you will even think about IO.pipe... step back, take a deep breath ;p
<theTrav> heheh, it's a learning project. Don't worry I'm not leaving a mess where it'll cause other people problems
<matti> theTrav: Make coffee and re-think ;p
<matti> theTrav: Nah, ask away about anything.
cascalheira has joined #ruby
<theTrav> pipe does sound cool
<theTrav> just the name of it :P
<theTrav> can I build a series of them interconnected?
<matti> Yeah. Its a one nasty blocking streaming sock of a hamster.
<matti> ;d
<matti> s/sock/son/
<matti> Anyway ;] Have fun, that is the important bit ;] And fiddle with spawn first ;]
Nisstyre has joined #ruby
deryl has quit [Quit: deryl]
<theTrav> ok, so, spawn did the same thing
<matti> ;]
<theTrav> pid = spawn("./dashboard-bootstrap.rb #{params[:command]}", :chdir => "../../", :err => :out, :out => "log")
<theTrav> that dashboard-bootstrap.rb
<theTrav> it interacts with aws
<theTrav> supposedly creating an instance
<theTrav> it throws an exception, because the instance already exists. All expected
<matti> And when you do this, what is going on?
<theTrav> but I expected all that to come out in the log
<theTrav> but it came out in the sinatra console